(receipt: unknown)
| 57 | * @returns `{success: true, data: <receipt>}` if successful, `{success: false, error: <error>}` otherwise |
| 58 | */ |
| 59 | export function parseReceipt(receipt: unknown): ValidationResult<Receipt> { |
| 60 | return receiptSchema.safeParse(receipt); |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * Used to interpolate secrets into config. This function only interpolates the secrets and does not perform any |