@flexprice/mcp-server 2.1.1 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +1499 -724
- package/bin/mcp-server.js.map +64 -28
- package/bun.lock +33 -33
- package/esm/funcs/invoicesGetMeterUsagePreviewInvoice.d.ts +16 -0
- package/esm/funcs/invoicesGetMeterUsagePreviewInvoice.d.ts.map +1 -0
- package/esm/funcs/invoicesGetMeterUsagePreviewInvoice.js +82 -0
- package/esm/funcs/invoicesGetMeterUsagePreviewInvoice.js.map +1 -0
- package/esm/funcs/{plansPostPlansIdClone.d.ts → plansClonePlan.d.ts} +3 -3
- package/esm/funcs/plansClonePlan.d.ts.map +1 -0
- package/esm/funcs/{plansPostPlansIdClone.js → plansClonePlan.js} +5 -5
- package/esm/funcs/plansClonePlan.js.map +1 -0
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.d.ts +4 -4
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.d.ts.map +1 -1
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.js +4 -4
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.js.map +1 -1
- package/esm/funcs/subscriptionsPreviewSubscriptionModify.d.ts +16 -0
- package/esm/funcs/subscriptionsPreviewSubscriptionModify.d.ts.map +1 -0
- package/esm/funcs/subscriptionsPreviewSubscriptionModify.js +88 -0
- package/esm/funcs/subscriptionsPreviewSubscriptionModify.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/encodings.d.ts +1 -0
- package/esm/lib/encodings.d.ts.map +1 -1
- package/esm/lib/encodings.js +6 -0
- package/esm/lib/encodings.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +7 -3
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.d.ts +7 -0
- package/esm/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.d.ts.map +1 -0
- package/esm/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.js +35 -0
- package/esm/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.js.map +1 -0
- package/esm/mcp-server/tools/plansClonePlan.d.ts +7 -0
- package/esm/mcp-server/tools/plansClonePlan.d.ts.map +1 -0
- package/esm/mcp-server/tools/{plansPostPlansIdClone.js → plansClonePlan.js} +7 -7
- package/esm/mcp-server/tools/plansClonePlan.js.map +1 -0
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.d.ts +1 -1
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js +4 -4
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js.map +1 -1
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.d.ts +7 -0
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.d.ts.map +1 -0
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js +35 -0
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js.map +1 -0
- package/esm/models/address.d.ts +11 -0
- package/esm/models/address.d.ts.map +1 -0
- package/esm/models/address.js +13 -0
- package/esm/models/address.js.map +1 -0
- package/esm/models/alertstate.d.ts +16 -0
- package/esm/models/alertstate.d.ts.map +1 -0
- package/esm/models/alertstate.js +17 -0
- package/esm/models/alertstate.js.map +1 -0
- package/esm/models/autotopup.d.ts +9 -0
- package/esm/models/autotopup.d.ts.map +1 -0
- package/esm/models/autotopup.js +11 -0
- package/esm/models/autotopup.js.map +1 -0
- package/esm/models/billingcadence.d.ts +0 -2
- package/esm/models/billingcadence.d.ts.map +1 -1
- package/esm/models/billingcadence.js +0 -2
- package/esm/models/billingcadence.js.map +1 -1
- package/esm/models/billingperiod.d.ts +2 -0
- package/esm/models/billingperiod.d.ts.map +1 -1
- package/esm/models/billingperiod.js +2 -0
- package/esm/models/billingperiod.js.map +1 -1
- package/esm/models/changedinvoice.d.ts +14 -0
- package/esm/models/changedinvoice.d.ts.map +1 -0
- package/esm/models/changedinvoice.js +16 -0
- package/esm/models/changedinvoice.js.map +1 -0
- package/esm/models/changedinvoiceaction.d.ts +18 -0
- package/esm/models/changedinvoiceaction.d.ts.map +1 -0
- package/esm/models/changedinvoiceaction.js +16 -0
- package/esm/models/changedinvoiceaction.js.map +1 -0
- package/esm/models/changedinvoicestatus.d.ts +18 -0
- package/esm/models/changedinvoicestatus.d.ts.map +1 -0
- package/esm/models/changedinvoicestatus.js +16 -0
- package/esm/models/changedinvoicestatus.js.map +1 -0
- package/esm/models/changedlineitem.d.ts +12 -0
- package/esm/models/changedlineitem.d.ts.map +1 -0
- package/esm/models/changedlineitem.js +14 -0
- package/esm/models/changedlineitem.js.map +1 -0
- package/esm/models/changedlineitemaction.d.ts +20 -0
- package/esm/models/changedlineitemaction.d.ts.map +1 -0
- package/esm/models/changedlineitemaction.js +18 -0
- package/esm/models/changedlineitemaction.js.map +1 -0
- package/esm/models/changedresources.d.ts +11 -0
- package/esm/models/changedresources.d.ts.map +1 -0
- package/esm/models/changedresources.js +13 -0
- package/esm/models/changedresources.js.map +1 -0
- package/esm/models/changedsubscription.d.ts +10 -0
- package/esm/models/changedsubscription.d.ts.map +1 -0
- package/esm/models/changedsubscription.js +13 -0
- package/esm/models/changedsubscription.js.map +1 -0
- package/esm/models/changedsubscriptionaction.d.ts +18 -0
- package/esm/models/changedsubscriptionaction.d.ts.map +1 -0
- package/esm/models/changedsubscriptionaction.js +16 -0
- package/esm/models/changedsubscriptionaction.js.map +1 -0
- package/esm/models/cloneplanop.d.ts +12 -0
- package/esm/models/cloneplanop.d.ts.map +1 -0
- package/esm/models/{postplansidcloneop.js → cloneplanop.js} +4 -3
- package/esm/models/cloneplanop.js.map +1 -0
- package/esm/models/createpricerequest.d.ts +0 -2
- package/esm/models/createpricerequest.d.ts.map +1 -1
- package/esm/models/createpricerequest.js +0 -2
- package/esm/models/createpricerequest.js.map +1 -1
- package/esm/models/createsubscriptionrequest.d.ts +1 -2
- package/esm/models/createsubscriptionrequest.d.ts.map +1 -1
- package/esm/models/createsubscriptionrequest.js +1 -2
- package/esm/models/createsubscriptionrequest.js.map +1 -1
- package/esm/models/creditbreakdown.d.ts +7 -0
- package/esm/models/creditbreakdown.d.ts.map +1 -0
- package/esm/models/creditbreakdown.js +9 -0
- package/esm/models/creditbreakdown.js.map +1 -0
- package/esm/models/creditgrantcadence.d.ts +1 -1
- package/esm/models/executesubscriptionmodifyop.d.ts +6 -6
- package/esm/models/executesubscriptionmodifyop.d.ts.map +1 -1
- package/esm/models/executesubscriptionmodifyop.js +5 -5
- package/esm/models/executesubscriptionmodifyop.js.map +1 -1
- package/esm/models/executesubscriptionmodifyrequest.d.ts +11 -0
- package/esm/models/executesubscriptionmodifyrequest.d.ts.map +1 -0
- package/esm/models/executesubscriptionmodifyrequest.js +13 -0
- package/esm/models/executesubscriptionmodifyrequest.js.map +1 -0
- package/esm/models/getmeterusagepreviewinvoiceop.d.ts +6 -0
- package/esm/models/getmeterusagepreviewinvoiceop.d.ts.map +1 -0
- package/esm/models/getmeterusagepreviewinvoiceop.js +11 -0
- package/esm/models/getmeterusagepreviewinvoiceop.js.map +1 -0
- package/esm/models/invoicefilter.d.ts +1 -0
- package/esm/models/invoicefilter.d.ts.map +1 -1
- package/esm/models/invoicefilter.js +1 -0
- package/esm/models/invoicefilter.js.map +1 -1
- package/esm/models/invoiceresponse.d.ts +1 -0
- package/esm/models/invoiceresponse.d.ts.map +1 -1
- package/esm/models/invoiceresponse.js +1 -0
- package/esm/models/invoiceresponse.js.map +1 -1
- package/esm/models/lineitemquantitychange.d.ts +8 -0
- package/esm/models/lineitemquantitychange.d.ts.map +1 -0
- package/esm/models/lineitemquantitychange.js +10 -0
- package/esm/models/lineitemquantitychange.js.map +1 -0
- package/esm/models/previewsubscriptionmodifyop.d.ts +12 -0
- package/esm/models/previewsubscriptionmodifyop.d.ts.map +1 -0
- package/esm/models/previewsubscriptionmodifyop.js +16 -0
- package/esm/models/previewsubscriptionmodifyop.js.map +1 -0
- package/esm/models/submodifyinheritancerequest.d.ts +6 -0
- package/esm/models/submodifyinheritancerequest.d.ts.map +1 -0
- package/esm/models/{executesubscriptioninheritancerequest.js → submodifyinheritancerequest.js} +2 -2
- package/esm/models/submodifyinheritancerequest.js.map +1 -0
- package/esm/models/submodifyquantitychangerequest.d.ts +7 -0
- package/esm/models/submodifyquantitychangerequest.d.ts.map +1 -0
- package/esm/models/submodifyquantitychangerequest.js +9 -0
- package/esm/models/submodifyquantitychangerequest.js.map +1 -0
- package/esm/models/subscriptionmodifyresponse.d.ts +9 -0
- package/esm/models/subscriptionmodifyresponse.d.ts.map +1 -0
- package/esm/models/subscriptionmodifyresponse.js +11 -0
- package/esm/models/subscriptionmodifyresponse.js.map +1 -0
- package/esm/models/subscriptionmodifytype.d.ts +12 -0
- package/esm/models/subscriptionmodifytype.d.ts.map +1 -0
- package/esm/models/subscriptionmodifytype.js +13 -0
- package/esm/models/subscriptionmodifytype.js.map +1 -0
- package/esm/models/subscriptionphasecreaterequest.d.ts +2 -0
- package/esm/models/subscriptionphasecreaterequest.d.ts.map +1 -1
- package/esm/models/subscriptionphasecreaterequest.js +3 -0
- package/esm/models/subscriptionphasecreaterequest.js.map +1 -1
- package/esm/models/subscriptionpricecreaterequest.d.ts +0 -2
- package/esm/models/subscriptionpricecreaterequest.d.ts.map +1 -1
- package/esm/models/subscriptionpricecreaterequest.js +0 -2
- package/esm/models/subscriptionpricecreaterequest.js.map +1 -1
- package/esm/models/tenantbillingdetails.d.ts +10 -0
- package/esm/models/tenantbillingdetails.d.ts.map +1 -0
- package/esm/models/tenantbillingdetails.js +13 -0
- package/esm/models/tenantbillingdetails.js.map +1 -0
- package/esm/models/tenantresponse.d.ts +15 -0
- package/esm/models/tenantresponse.d.ts.map +1 -0
- package/esm/models/tenantresponse.js +15 -0
- package/esm/models/tenantresponse.js.map +1 -0
- package/esm/models/transactionreason.d.ts +30 -0
- package/esm/models/transactionreason.d.ts.map +1 -0
- package/esm/models/transactionreason.js +31 -0
- package/esm/models/transactionreason.js.map +1 -0
- package/esm/models/transactionstatus.d.ts +14 -0
- package/esm/models/transactionstatus.d.ts.map +1 -0
- package/esm/models/transactionstatus.js +15 -0
- package/esm/models/transactionstatus.js.map +1 -0
- package/esm/models/transactiontype.d.ts +12 -0
- package/esm/models/transactiontype.d.ts.map +1 -0
- package/esm/models/transactiontype.js +13 -0
- package/esm/models/transactiontype.js.map +1 -0
- package/esm/models/userresponse.d.ts +12 -0
- package/esm/models/userresponse.d.ts.map +1 -0
- package/esm/models/userresponse.js +14 -0
- package/esm/models/userresponse.js.map +1 -0
- package/esm/models/usertype.d.ts +12 -0
- package/esm/models/usertype.d.ts.map +1 -0
- package/esm/models/usertype.js +13 -0
- package/esm/models/usertype.js.map +1 -0
- package/esm/models/walletconfig.d.ts +7 -0
- package/esm/models/walletconfig.d.ts.map +1 -0
- package/esm/models/walletconfig.js +10 -0
- package/esm/models/walletconfig.js.map +1 -0
- package/esm/models/walletconfigpricetype.d.ts +14 -0
- package/esm/models/walletconfigpricetype.d.ts.map +1 -0
- package/esm/models/walletconfigpricetype.js +15 -0
- package/esm/models/walletconfigpricetype.js.map +1 -0
- package/esm/models/walletresponse.d.ts +39 -0
- package/esm/models/walletresponse.d.ts.map +1 -0
- package/esm/models/walletresponse.js +39 -0
- package/esm/models/walletresponse.js.map +1 -0
- package/esm/models/walletstatus.d.ts +14 -0
- package/esm/models/walletstatus.d.ts.map +1 -0
- package/esm/models/walletstatus.js +15 -0
- package/esm/models/walletstatus.js.map +1 -0
- package/esm/models/wallettransactionresponse.d.ts +46 -0
- package/esm/models/wallettransactionresponse.d.ts.map +1 -0
- package/esm/models/wallettransactionresponse.js +46 -0
- package/esm/models/wallettransactionresponse.js.map +1 -0
- package/esm/models/wallettxreferencetype.d.ts +16 -0
- package/esm/models/wallettxreferencetype.d.ts.map +1 -0
- package/esm/models/wallettxreferencetype.js +17 -0
- package/esm/models/wallettxreferencetype.js.map +1 -0
- package/esm/models/wallettype.d.ts +12 -0
- package/esm/models/wallettype.d.ts.map +1 -0
- package/esm/models/wallettype.js +13 -0
- package/esm/models/wallettype.js.map +1 -0
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +10 -2
- package/esm/tool-names.js.map +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/manifest.json +11 -3
- package/package.json +1 -1
- package/src/funcs/invoicesGetMeterUsagePreviewInvoice.ts +144 -0
- package/src/funcs/{plansPostPlansIdClone.ts → plansClonePlan.ts} +9 -9
- package/src/funcs/subscriptionsExecuteSubscriptionModify.ts +7 -7
- package/src/funcs/subscriptionsPreviewSubscriptionModify.ts +153 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +9 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -3
- package/src/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.ts +47 -0
- package/src/mcp-server/tools/{plansPostPlansIdClone.ts → plansClonePlan.ts} +6 -6
- package/src/mcp-server/tools/subscriptionsExecuteSubscriptionModify.ts +4 -4
- package/src/mcp-server/tools/subscriptionsPreviewSubscriptionModify.ts +45 -0
- package/src/models/address.ts +23 -0
- package/src/models/alertstate.ts +21 -0
- package/src/models/autotopup.ts +19 -0
- package/src/models/billingcadence.ts +0 -2
- package/src/models/billingperiod.ts +2 -0
- package/src/models/changedinvoice.ts +41 -0
- package/src/models/changedinvoiceaction.ts +23 -0
- package/src/models/changedinvoicestatus.ts +25 -0
- package/src/models/changedlineitem.ts +29 -0
- package/src/models/changedlineitemaction.ts +25 -0
- package/src/models/changedresources.ts +28 -0
- package/src/models/changedsubscription.ts +28 -0
- package/src/models/changedsubscriptionaction.ts +25 -0
- package/src/models/{postplansidcloneop.ts → cloneplanop.ts} +9 -10
- package/src/models/createpricerequest.ts +0 -3
- package/src/models/createsubscriptionrequest.ts +4 -3
- package/src/models/creditbreakdown.ts +15 -0
- package/src/models/executesubscriptionmodifyop.ts +14 -14
- package/src/models/executesubscriptionmodifyrequest.ts +31 -0
- package/src/models/getmeterusagepreviewinvoiceop.ts +21 -0
- package/src/models/invoicefilter.ts +4 -0
- package/src/models/invoiceresponse.ts +4 -0
- package/src/models/lineitemquantitychange.ts +21 -0
- package/src/models/previewsubscriptionmodifyop.ts +39 -0
- package/src/models/{executesubscriptioninheritancerequest.ts → submodifyinheritancerequest.ts} +3 -3
- package/src/models/submodifyquantitychangerequest.ts +19 -0
- package/src/models/subscriptionmodifyresponse.ts +25 -0
- package/src/models/subscriptionmodifytype.ts +17 -0
- package/src/models/subscriptionphasecreaterequest.ts +9 -0
- package/src/models/subscriptionpricecreaterequest.ts +0 -3
- package/src/models/tenantbillingdetails.ts +21 -0
- package/src/models/tenantresponse.ts +29 -0
- package/src/models/transactionreason.ts +35 -0
- package/src/models/transactionstatus.ts +19 -0
- package/src/models/transactiontype.ts +17 -0
- package/src/models/userresponse.ts +23 -0
- package/src/models/usertype.ts +17 -0
- package/src/models/walletconfig.ts +20 -0
- package/src/models/walletconfigpricetype.ts +19 -0
- package/src/models/walletresponse.ts +74 -0
- package/src/models/walletstatus.ts +19 -0
- package/src/models/wallettransactionresponse.ts +104 -0
- package/src/models/wallettxreferencetype.ts +21 -0
- package/src/models/wallettype.ts +17 -0
- package/src/tool-names.ts +10 -2
- package/esm/funcs/plansPostPlansIdClone.d.ts.map +0 -1
- package/esm/funcs/plansPostPlansIdClone.js.map +0 -1
- package/esm/mcp-server/tools/plansPostPlansIdClone.d.ts +0 -7
- package/esm/mcp-server/tools/plansPostPlansIdClone.d.ts.map +0 -1
- package/esm/mcp-server/tools/plansPostPlansIdClone.js.map +0 -1
- package/esm/models/executesubscriptioninheritancerequest.d.ts +0 -6
- package/esm/models/executesubscriptioninheritancerequest.d.ts.map +0 -1
- package/esm/models/executesubscriptioninheritancerequest.js.map +0 -1
- package/esm/models/postplansidcloneop.d.ts +0 -12
- package/esm/models/postplansidcloneop.d.ts.map +0 -1
- package/esm/models/postplansidcloneop.js.map +0 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
export declare const TransactionReason: {
|
|
4
|
+
readonly InvoicePayment: "INVOICE_PAYMENT";
|
|
5
|
+
readonly FreeCreditGrant: "FREE_CREDIT_GRANT";
|
|
6
|
+
readonly SubscriptionCreditGrant: "SUBSCRIPTION_CREDIT_GRANT";
|
|
7
|
+
readonly PurchasedCreditInvoiced: "PURCHASED_CREDIT_INVOICED";
|
|
8
|
+
readonly PurchasedCreditDirect: "PURCHASED_CREDIT_DIRECT";
|
|
9
|
+
readonly CreditNote: "CREDIT_NOTE";
|
|
10
|
+
readonly CreditExpired: "CREDIT_EXPIRED";
|
|
11
|
+
readonly WalletTermination: "WALLET_TERMINATION";
|
|
12
|
+
readonly ManualBalanceDebit: "MANUAL_BALANCE_DEBIT";
|
|
13
|
+
readonly CreditAdjustment: "CREDIT_ADJUSTMENT";
|
|
14
|
+
readonly InvoiceVoidRefund: "INVOICE_VOID_REFUND";
|
|
15
|
+
};
|
|
16
|
+
export type TransactionReason = ClosedEnum<typeof TransactionReason>;
|
|
17
|
+
export declare const TransactionReason$zodSchema: z.ZodEnum<{
|
|
18
|
+
INVOICE_PAYMENT: "INVOICE_PAYMENT";
|
|
19
|
+
FREE_CREDIT_GRANT: "FREE_CREDIT_GRANT";
|
|
20
|
+
SUBSCRIPTION_CREDIT_GRANT: "SUBSCRIPTION_CREDIT_GRANT";
|
|
21
|
+
PURCHASED_CREDIT_INVOICED: "PURCHASED_CREDIT_INVOICED";
|
|
22
|
+
PURCHASED_CREDIT_DIRECT: "PURCHASED_CREDIT_DIRECT";
|
|
23
|
+
CREDIT_NOTE: "CREDIT_NOTE";
|
|
24
|
+
CREDIT_EXPIRED: "CREDIT_EXPIRED";
|
|
25
|
+
WALLET_TERMINATION: "WALLET_TERMINATION";
|
|
26
|
+
MANUAL_BALANCE_DEBIT: "MANUAL_BALANCE_DEBIT";
|
|
27
|
+
CREDIT_ADJUSTMENT: "CREDIT_ADJUSTMENT";
|
|
28
|
+
INVOICE_VOID_REFUND: "INVOICE_VOID_REFUND";
|
|
29
|
+
}>;
|
|
30
|
+
//# sourceMappingURL=transactionreason.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionreason.d.ts","sourceRoot":"","sources":["../../src/models/transactionreason.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;CAYpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAErE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;EAYtC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
export const TransactionReason = {
|
|
6
|
+
InvoicePayment: "INVOICE_PAYMENT",
|
|
7
|
+
FreeCreditGrant: "FREE_CREDIT_GRANT",
|
|
8
|
+
SubscriptionCreditGrant: "SUBSCRIPTION_CREDIT_GRANT",
|
|
9
|
+
PurchasedCreditInvoiced: "PURCHASED_CREDIT_INVOICED",
|
|
10
|
+
PurchasedCreditDirect: "PURCHASED_CREDIT_DIRECT",
|
|
11
|
+
CreditNote: "CREDIT_NOTE",
|
|
12
|
+
CreditExpired: "CREDIT_EXPIRED",
|
|
13
|
+
WalletTermination: "WALLET_TERMINATION",
|
|
14
|
+
ManualBalanceDebit: "MANUAL_BALANCE_DEBIT",
|
|
15
|
+
CreditAdjustment: "CREDIT_ADJUSTMENT",
|
|
16
|
+
InvoiceVoidRefund: "INVOICE_VOID_REFUND",
|
|
17
|
+
};
|
|
18
|
+
export const TransactionReason$zodSchema = z.enum([
|
|
19
|
+
"INVOICE_PAYMENT",
|
|
20
|
+
"FREE_CREDIT_GRANT",
|
|
21
|
+
"SUBSCRIPTION_CREDIT_GRANT",
|
|
22
|
+
"PURCHASED_CREDIT_INVOICED",
|
|
23
|
+
"PURCHASED_CREDIT_DIRECT",
|
|
24
|
+
"CREDIT_NOTE",
|
|
25
|
+
"CREDIT_EXPIRED",
|
|
26
|
+
"WALLET_TERMINATION",
|
|
27
|
+
"MANUAL_BALANCE_DEBIT",
|
|
28
|
+
"CREDIT_ADJUSTMENT",
|
|
29
|
+
"INVOICE_VOID_REFUND",
|
|
30
|
+
]);
|
|
31
|
+
//# sourceMappingURL=transactionreason.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionreason.js","sourceRoot":"","sources":["../../src/models/transactionreason.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,cAAc,EAAE,iBAAiB;IACjC,eAAe,EAAE,mBAAmB;IACpC,uBAAuB,EAAE,2BAA2B;IACpD,uBAAuB,EAAE,2BAA2B;IACpD,qBAAqB,EAAE,yBAAyB;IAChD,UAAU,EAAE,aAAa;IACzB,aAAa,EAAE,gBAAgB;IAC/B,iBAAiB,EAAE,oBAAoB;IACvC,kBAAkB,EAAE,sBAAsB;IAC1C,gBAAgB,EAAE,mBAAmB;IACrC,iBAAiB,EAAE,qBAAqB;CAChC,CAAC;AAGX,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,IAAI,CAAC;IAChD,iBAAiB;IACjB,mBAAmB;IACnB,2BAA2B;IAC3B,2BAA2B;IAC3B,yBAAyB;IACzB,aAAa;IACb,gBAAgB;IAChB,oBAAoB;IACpB,sBAAsB;IACtB,mBAAmB;IACnB,qBAAqB;CACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
export declare const TransactionStatus: {
|
|
4
|
+
readonly Pending: "pending";
|
|
5
|
+
readonly Completed: "completed";
|
|
6
|
+
readonly Failed: "failed";
|
|
7
|
+
};
|
|
8
|
+
export type TransactionStatus = ClosedEnum<typeof TransactionStatus>;
|
|
9
|
+
export declare const TransactionStatus$zodSchema: z.ZodEnum<{
|
|
10
|
+
failed: "failed";
|
|
11
|
+
pending: "pending";
|
|
12
|
+
completed: "completed";
|
|
13
|
+
}>;
|
|
14
|
+
//# sourceMappingURL=transactionstatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionstatus.d.ts","sourceRoot":"","sources":["../../src/models/transactionstatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAErE,eAAO,MAAM,2BAA2B;;;;EAItC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
export const TransactionStatus = {
|
|
6
|
+
Pending: "pending",
|
|
7
|
+
Completed: "completed",
|
|
8
|
+
Failed: "failed",
|
|
9
|
+
};
|
|
10
|
+
export const TransactionStatus$zodSchema = z.enum([
|
|
11
|
+
"pending",
|
|
12
|
+
"completed",
|
|
13
|
+
"failed",
|
|
14
|
+
]);
|
|
15
|
+
//# sourceMappingURL=transactionstatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionstatus.js","sourceRoot":"","sources":["../../src/models/transactionstatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;CACR,CAAC;AAGX,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,IAAI,CAAC;IAChD,SAAS;IACT,WAAW;IACX,QAAQ;CACT,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
export declare const TransactionType: {
|
|
4
|
+
readonly Credit: "credit";
|
|
5
|
+
readonly Debit: "debit";
|
|
6
|
+
};
|
|
7
|
+
export type TransactionType = ClosedEnum<typeof TransactionType>;
|
|
8
|
+
export declare const TransactionType$zodSchema: z.ZodEnum<{
|
|
9
|
+
credit: "credit";
|
|
10
|
+
debit: "debit";
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=transactiontype.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactiontype.d.ts","sourceRoot":"","sources":["../../src/models/transactiontype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAEjE,eAAO,MAAM,yBAAyB;;;EAGpC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
export const TransactionType = {
|
|
6
|
+
Credit: "credit",
|
|
7
|
+
Debit: "debit",
|
|
8
|
+
};
|
|
9
|
+
export const TransactionType$zodSchema = z.enum([
|
|
10
|
+
"credit",
|
|
11
|
+
"debit",
|
|
12
|
+
]);
|
|
13
|
+
//# sourceMappingURL=transactiontype.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactiontype.js","sourceRoot":"","sources":["../../src/models/transactiontype.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACN,CAAC;AAGX,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9C,QAAQ;IACR,OAAO;CACR,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { TenantResponse } from "./tenantresponse.js";
|
|
3
|
+
import { UserType } from "./usertype.js";
|
|
4
|
+
export type UserResponse = {
|
|
5
|
+
email?: string | undefined;
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
roles?: Array<string> | undefined;
|
|
8
|
+
tenant?: TenantResponse | undefined;
|
|
9
|
+
type?: UserType | undefined;
|
|
10
|
+
};
|
|
11
|
+
export declare const UserResponse$zodSchema: z.ZodType<UserResponse>;
|
|
12
|
+
//# sourceMappingURL=userresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userresponse.d.ts","sourceRoot":"","sources":["../../src/models/userresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,cAAc,EAA4B,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAsB,MAAM,eAAe,CAAC;AAE7D,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACpC,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAMzD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { TenantResponse$zodSchema } from "./tenantresponse.js";
|
|
6
|
+
import { UserType$zodSchema } from "./usertype.js";
|
|
7
|
+
export const UserResponse$zodSchema = z.object({
|
|
8
|
+
email: z.string().optional().describe("Empty for service accounts"),
|
|
9
|
+
id: z.string().optional(),
|
|
10
|
+
roles: z.array(z.string()).optional(),
|
|
11
|
+
tenant: TenantResponse$zodSchema.optional(),
|
|
12
|
+
type: UserType$zodSchema.optional(),
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=userresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userresponse.js","sourceRoot":"","sources":["../../src/models/userresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAkB,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAY,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAU7D,MAAM,CAAC,MAAM,sBAAsB,GAA4B,CAAC,CAAC,MAAM,CAAC;IACtE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IACnE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,wBAAwB,CAAC,QAAQ,EAAE;IAC3C,IAAI,EAAE,kBAAkB,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
export declare const UserType: {
|
|
4
|
+
readonly User: "user";
|
|
5
|
+
readonly ServiceAccount: "service_account";
|
|
6
|
+
};
|
|
7
|
+
export type UserType = ClosedEnum<typeof UserType>;
|
|
8
|
+
export declare const UserType$zodSchema: z.ZodEnum<{
|
|
9
|
+
user: "user";
|
|
10
|
+
service_account: "service_account";
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=usertype.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usertype.d.ts","sourceRoot":"","sources":["../../src/models/usertype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,eAAO,MAAM,QAAQ;;;CAGX,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEnD,eAAO,MAAM,kBAAkB;;;EAG7B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
export const UserType = {
|
|
6
|
+
User: "user",
|
|
7
|
+
ServiceAccount: "service_account",
|
|
8
|
+
};
|
|
9
|
+
export const UserType$zodSchema = z.enum([
|
|
10
|
+
"user",
|
|
11
|
+
"service_account",
|
|
12
|
+
]);
|
|
13
|
+
//# sourceMappingURL=usertype.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usertype.js","sourceRoot":"","sources":["../../src/models/usertype.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,cAAc,EAAE,iBAAiB;CACzB,CAAC;AAGX,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC;IACvC,MAAM;IACN,iBAAiB;CAClB,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { WalletConfigPriceType } from "./walletconfigpricetype.js";
|
|
3
|
+
export type WalletConfig = {
|
|
4
|
+
allowed_price_types?: Array<WalletConfigPriceType> | undefined;
|
|
5
|
+
};
|
|
6
|
+
export declare const WalletConfig$zodSchema: z.ZodType<WalletConfig>;
|
|
7
|
+
//# sourceMappingURL=walletconfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletconfig.d.ts","sourceRoot":"","sources":["../../src/models/walletconfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,MAAM,YAAY,GAAG;IACzB,mBAAmB,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAAC;CAChE,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAKzD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { WalletConfigPriceType$zodSchema, } from "./walletconfigpricetype.js";
|
|
6
|
+
export const WalletConfig$zodSchema = z.object({
|
|
7
|
+
allowed_price_types: z.array(WalletConfigPriceType$zodSchema).optional()
|
|
8
|
+
.describe("AllowedPriceTypes is a list of price types that are allowed for the wallet\nnil means all price types are allowed"),
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=walletconfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletconfig.js","sourceRoot":"","sources":["../../src/models/walletconfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,+BAA+B,GAChC,MAAM,4BAA4B,CAAC;AAMpC,MAAM,CAAC,MAAM,sBAAsB,GAA4B,CAAC,CAAC,MAAM,CAAC;IACtE,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC,QAAQ,EAAE;SACrE,QAAQ,CACP,mHAAmH,CACpH;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
export declare const WalletConfigPriceType: {
|
|
4
|
+
readonly All: "ALL";
|
|
5
|
+
readonly Usage: "USAGE";
|
|
6
|
+
readonly Fixed: "FIXED";
|
|
7
|
+
};
|
|
8
|
+
export type WalletConfigPriceType = ClosedEnum<typeof WalletConfigPriceType>;
|
|
9
|
+
export declare const WalletConfigPriceType$zodSchema: z.ZodEnum<{
|
|
10
|
+
USAGE: "USAGE";
|
|
11
|
+
FIXED: "FIXED";
|
|
12
|
+
ALL: "ALL";
|
|
13
|
+
}>;
|
|
14
|
+
//# sourceMappingURL=walletconfigpricetype.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletconfigpricetype.d.ts","sourceRoot":"","sources":["../../src/models/walletconfigpricetype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE7E,eAAO,MAAM,+BAA+B;;;;EAI1C,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
export const WalletConfigPriceType = {
|
|
6
|
+
All: "ALL",
|
|
7
|
+
Usage: "USAGE",
|
|
8
|
+
Fixed: "FIXED",
|
|
9
|
+
};
|
|
10
|
+
export const WalletConfigPriceType$zodSchema = z.enum([
|
|
11
|
+
"ALL",
|
|
12
|
+
"USAGE",
|
|
13
|
+
"FIXED",
|
|
14
|
+
]);
|
|
15
|
+
//# sourceMappingURL=walletconfigpricetype.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletconfigpricetype.js","sourceRoot":"","sources":["../../src/models/walletconfigpricetype.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACN,CAAC;AAGX,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,IAAI,CAAC;IACpD,KAAK;IACL,OAAO;IACP,OAAO;CACR,CAAC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { AlertSettings } from "./alertsettings.js";
|
|
3
|
+
import { AlertState } from "./alertstate.js";
|
|
4
|
+
import { AutoTopup } from "./autotopup.js";
|
|
5
|
+
import { CreditBreakdown } from "./creditbreakdown.js";
|
|
6
|
+
import { Status } from "./status.js";
|
|
7
|
+
import { WalletConfig } from "./walletconfig.js";
|
|
8
|
+
import { WalletStatus } from "./walletstatus.js";
|
|
9
|
+
import { WalletType } from "./wallettype.js";
|
|
10
|
+
export type WalletResponse = {
|
|
11
|
+
alert_settings?: AlertSettings | undefined;
|
|
12
|
+
alert_state?: AlertState | undefined;
|
|
13
|
+
auto_topup?: AutoTopup | undefined;
|
|
14
|
+
balance?: string | undefined;
|
|
15
|
+
config?: WalletConfig | undefined;
|
|
16
|
+
conversion_rate?: string | undefined;
|
|
17
|
+
created_at?: string | undefined;
|
|
18
|
+
created_by?: string | undefined;
|
|
19
|
+
credit_balance?: string | undefined;
|
|
20
|
+
credits_available_breakdown?: CreditBreakdown | undefined;
|
|
21
|
+
currency?: string | undefined;
|
|
22
|
+
customer_id?: string | undefined;
|
|
23
|
+
description?: string | undefined;
|
|
24
|
+
environment_id?: string | undefined;
|
|
25
|
+
id?: string | undefined;
|
|
26
|
+
metadata?: {
|
|
27
|
+
[k: string]: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
name?: string | undefined;
|
|
30
|
+
status?: Status | undefined;
|
|
31
|
+
tenant_id?: string | undefined;
|
|
32
|
+
topup_conversion_rate?: string | undefined;
|
|
33
|
+
updated_at?: string | undefined;
|
|
34
|
+
updated_by?: string | undefined;
|
|
35
|
+
wallet_status?: WalletStatus | undefined;
|
|
36
|
+
wallet_type?: WalletType | undefined;
|
|
37
|
+
};
|
|
38
|
+
export declare const WalletResponse$zodSchema: z.ZodType<WalletResponse>;
|
|
39
|
+
//# sourceMappingURL=walletresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version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,CAAC;IACpC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAC/C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,aAAa,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACzC,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CA6B7D,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { AlertSettings$zodSchema } from "./alertsettings.js";
|
|
6
|
+
import { AlertState$zodSchema } from "./alertstate.js";
|
|
7
|
+
import { AutoTopup$zodSchema } from "./autotopup.js";
|
|
8
|
+
import { CreditBreakdown$zodSchema, } from "./creditbreakdown.js";
|
|
9
|
+
import { Status$zodSchema } from "./status.js";
|
|
10
|
+
import { WalletConfig$zodSchema } from "./walletconfig.js";
|
|
11
|
+
import { WalletStatus$zodSchema } from "./walletstatus.js";
|
|
12
|
+
import { WalletType$zodSchema } from "./wallettype.js";
|
|
13
|
+
export const WalletResponse$zodSchema = z.object({
|
|
14
|
+
alert_settings: AlertSettings$zodSchema.optional(),
|
|
15
|
+
alert_state: AlertState$zodSchema.optional(),
|
|
16
|
+
auto_topup: AutoTopup$zodSchema.optional(),
|
|
17
|
+
balance: z.string().optional(),
|
|
18
|
+
config: WalletConfig$zodSchema.optional(),
|
|
19
|
+
conversion_rate: z.string().optional().describe("amount in the currency = number of credits * conversion_rate\nex if conversion_rate is 1, then 1 USD = 1 credit\nex if conversion_rate is 2, then 1 USD = 0.5 credits\nex if conversion_rate is 0.5, then 1 USD = 2 credits"),
|
|
20
|
+
created_at: z.iso.datetime({ offset: true }).optional(),
|
|
21
|
+
created_by: z.string().optional(),
|
|
22
|
+
credit_balance: z.string().optional(),
|
|
23
|
+
credits_available_breakdown: CreditBreakdown$zodSchema.optional(),
|
|
24
|
+
currency: z.string().optional(),
|
|
25
|
+
customer_id: z.string().optional(),
|
|
26
|
+
description: z.string().optional(),
|
|
27
|
+
environment_id: z.string().optional(),
|
|
28
|
+
id: z.string().optional(),
|
|
29
|
+
metadata: z.record(z.string(), z.string()).optional(),
|
|
30
|
+
name: z.string().optional(),
|
|
31
|
+
status: Status$zodSchema.optional(),
|
|
32
|
+
tenant_id: z.string().optional(),
|
|
33
|
+
topup_conversion_rate: z.string().optional().describe("topup_conversion_rate is the conversion rate for the topup to the currency\nex if topup_conversion_rate is 1, then 1 USD = 1 credit\nex if topup_conversion_rate is 2, then 1 USD = 0.5 credits\nex if topup_conversion_rate is 0.5, then 1 USD = 2 credits"),
|
|
34
|
+
updated_at: z.iso.datetime({ offset: true }).optional(),
|
|
35
|
+
updated_by: z.string().optional(),
|
|
36
|
+
wallet_status: WalletStatus$zodSchema.optional(),
|
|
37
|
+
wallet_type: WalletType$zodSchema.optional(),
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=walletresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletresponse.js","sourceRoot":"","sources":["../../src/models/walletresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAiB,uB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AAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACnD,6PAA6P,CAC9P;IACD,UAAU,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,aAAa,EAAE,sBAAsB,CAAC,QAAQ,EAAE;IAChD,WAAW,EAAE,oBAAoB,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
export declare const WalletStatus: {
|
|
4
|
+
readonly Active: "active";
|
|
5
|
+
readonly Frozen: "frozen";
|
|
6
|
+
readonly Closed: "closed";
|
|
7
|
+
};
|
|
8
|
+
export type WalletStatus = ClosedEnum<typeof WalletStatus>;
|
|
9
|
+
export declare const WalletStatus$zodSchema: z.ZodEnum<{
|
|
10
|
+
active: "active";
|
|
11
|
+
frozen: "frozen";
|
|
12
|
+
closed: "closed";
|
|
13
|
+
}>;
|
|
14
|
+
//# sourceMappingURL=walletstatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletstatus.d.ts","sourceRoot":"","sources":["../../src/models/walletstatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,eAAO,MAAM,sBAAsB;;;;EAIjC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
export const WalletStatus = {
|
|
6
|
+
Active: "active",
|
|
7
|
+
Frozen: "frozen",
|
|
8
|
+
Closed: "closed",
|
|
9
|
+
};
|
|
10
|
+
export const WalletStatus$zodSchema = z.enum([
|
|
11
|
+
"active",
|
|
12
|
+
"frozen",
|
|
13
|
+
"closed",
|
|
14
|
+
]);
|
|
15
|
+
//# sourceMappingURL=walletstatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletstatus.js","sourceRoot":"","sources":["../../src/models/walletstatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACR,CAAC;AAGX,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,QAAQ;IACR,QAAQ;IACR,QAAQ;CACT,CAAC,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { CustomerResponse } from "./customerresponse.js";
|
|
3
|
+
import { Status } from "./status.js";
|
|
4
|
+
import { TransactionReason } from "./transactionreason.js";
|
|
5
|
+
import { TransactionStatus } from "./transactionstatus.js";
|
|
6
|
+
import { TransactionType } from "./transactiontype.js";
|
|
7
|
+
import { UserResponse } from "./userresponse.js";
|
|
8
|
+
import { WalletResponse } from "./walletresponse.js";
|
|
9
|
+
import { WalletTxReferenceType } from "./wallettxreferencetype.js";
|
|
10
|
+
export type WalletTransactionResponse = {
|
|
11
|
+
amount?: string | undefined;
|
|
12
|
+
conversion_rate?: string | undefined;
|
|
13
|
+
created_at?: string | undefined;
|
|
14
|
+
created_by?: string | undefined;
|
|
15
|
+
created_by_user?: UserResponse | undefined;
|
|
16
|
+
credit_amount?: string | undefined;
|
|
17
|
+
credit_balance_after?: string | undefined;
|
|
18
|
+
credit_balance_before?: string | undefined;
|
|
19
|
+
credits_available?: string | undefined;
|
|
20
|
+
currency?: string | undefined;
|
|
21
|
+
customer?: CustomerResponse | undefined;
|
|
22
|
+
customer_id?: string | undefined;
|
|
23
|
+
description?: string | undefined;
|
|
24
|
+
environment_id?: string | undefined;
|
|
25
|
+
expiry_date?: string | undefined;
|
|
26
|
+
id?: string | undefined;
|
|
27
|
+
idempotency_key?: string | undefined;
|
|
28
|
+
metadata?: {
|
|
29
|
+
[k: string]: string;
|
|
30
|
+
} | undefined;
|
|
31
|
+
priority?: number | undefined;
|
|
32
|
+
reference_id?: string | undefined;
|
|
33
|
+
reference_type?: WalletTxReferenceType | undefined;
|
|
34
|
+
status?: Status | undefined;
|
|
35
|
+
tenant_id?: string | undefined;
|
|
36
|
+
topup_conversion_rate?: string | undefined;
|
|
37
|
+
transaction_reason?: TransactionReason | undefined;
|
|
38
|
+
transaction_status?: TransactionStatus | undefined;
|
|
39
|
+
type?: TransactionType | undefined;
|
|
40
|
+
updated_at?: string | undefined;
|
|
41
|
+
updated_by?: string | undefined;
|
|
42
|
+
wallet?: WalletResponse | undefined;
|
|
43
|
+
wallet_id?: string | undefined;
|
|
44
|
+
};
|
|
45
|
+
export declare const WalletTransactionResponse$zodSchema: z.ZodType<WalletTransactionResponse>;
|
|
46
|
+
//# sourceMappingURL=wallettransactionresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallettransactionresponse.d.ts","sourceRoot":"","sources":["../../src/models/wallettransactionresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAoB,MAAM,aAAa,CAAC;AACvD,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,eAAe,EAEhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAA0B,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,cAAc,EAA4B,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,eAAe,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACv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@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { CustomerResponse$zodSchema, } from "./customerresponse.js";
|
|
6
|
+
import { Status$zodSchema } from "./status.js";
|
|
7
|
+
import { TransactionReason$zodSchema, } from "./transactionreason.js";
|
|
8
|
+
import { TransactionStatus$zodSchema, } from "./transactionstatus.js";
|
|
9
|
+
import { TransactionType$zodSchema, } from "./transactiontype.js";
|
|
10
|
+
import { UserResponse$zodSchema } from "./userresponse.js";
|
|
11
|
+
import { WalletResponse$zodSchema } from "./walletresponse.js";
|
|
12
|
+
import { WalletTxReferenceType$zodSchema, } from "./wallettxreferencetype.js";
|
|
13
|
+
export const WalletTransactionResponse$zodSchema = z.object({
|
|
14
|
+
amount: z.string().optional(),
|
|
15
|
+
conversion_rate: z.string().optional().describe("conversion_rate is the conversion rate for the transaction to the currency"),
|
|
16
|
+
created_at: z.iso.datetime({ offset: true }).optional(),
|
|
17
|
+
created_by: z.string().optional(),
|
|
18
|
+
created_by_user: UserResponse$zodSchema.optional(),
|
|
19
|
+
credit_amount: z.string().optional(),
|
|
20
|
+
credit_balance_after: z.string().optional(),
|
|
21
|
+
credit_balance_before: z.string().optional(),
|
|
22
|
+
credits_available: z.string().optional(),
|
|
23
|
+
currency: z.string().optional(),
|
|
24
|
+
customer: CustomerResponse$zodSchema.optional().describe("Customer response object containing all customer information"),
|
|
25
|
+
customer_id: z.string().optional(),
|
|
26
|
+
description: z.string().optional(),
|
|
27
|
+
environment_id: z.string().optional(),
|
|
28
|
+
expiry_date: z.iso.datetime({ offset: true }).optional(),
|
|
29
|
+
id: z.string().optional(),
|
|
30
|
+
idempotency_key: z.string().optional(),
|
|
31
|
+
metadata: z.record(z.string(), z.string()).optional(),
|
|
32
|
+
priority: z.int().optional(),
|
|
33
|
+
reference_id: z.string().optional(),
|
|
34
|
+
reference_type: WalletTxReferenceType$zodSchema.optional(),
|
|
35
|
+
status: Status$zodSchema.optional(),
|
|
36
|
+
tenant_id: z.string().optional(),
|
|
37
|
+
topup_conversion_rate: z.string().optional().describe("topup_conversion_rate is the conversion rate for the topup to the currency"),
|
|
38
|
+
transaction_reason: TransactionReason$zodSchema.optional(),
|
|
39
|
+
transaction_status: TransactionStatus$zodSchema.optional(),
|
|
40
|
+
type: TransactionType$zodSchema.optional(),
|
|
41
|
+
updated_at: z.iso.datetime({ offset: true }).optional(),
|
|
42
|
+
updated_by: z.string().optional(),
|
|
43
|
+
wallet: WalletResponse$zodSchema.optional(),
|
|
44
|
+
wallet_id: z.string().optional(),
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=wallettransactionresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallettransactionresponse.js","sourceRoot":"","sources":["../../src/models/wallettransactionresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAU,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAEL,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAgB,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAkB,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAEL,+BAA+B,GAChC,MAAM,4BAA4B,CAAC;AAoCpC,MAAM,CAAC,MAAM,mCAAmC,GAE5C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,eAAe,EAAE,CAAC,CA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,QAAQ,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC5B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,cAAc,EAAE,+BAA+B,CAAC,QAAQ,EAAE;IAC1D,MAAM,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACnD,4EAA4E,CAC7E;IACD,kBAAkB,EAAE,2BAA2B,CAAC,QAAQ,EAAE;IAC1D,kBAAkB,EAAE,2BAA2B,CAAC,QAAQ,EAAE;IAC1D,IAAI,EAAE,yBAAyB,CAAC,QAAQ,EAAE;IAC1C,UAAU,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,wBAAwB,CAAC,QAAQ,EAAE;IAC3C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
export declare const WalletTxReferenceType: {
|
|
4
|
+
readonly Payment: "PAYMENT";
|
|
5
|
+
readonly External: "EXTERNAL";
|
|
6
|
+
readonly Request: "REQUEST";
|
|
7
|
+
readonly Invoice: "INVOICE";
|
|
8
|
+
};
|
|
9
|
+
export type WalletTxReferenceType = ClosedEnum<typeof WalletTxReferenceType>;
|
|
10
|
+
export declare const WalletTxReferenceType$zodSchema: z.ZodEnum<{
|
|
11
|
+
EXTERNAL: "EXTERNAL";
|
|
12
|
+
PAYMENT: "PAYMENT";
|
|
13
|
+
REQUEST: "REQUEST";
|
|
14
|
+
INVOICE: "INVOICE";
|
|
15
|
+
}>;
|
|
16
|
+
//# sourceMappingURL=wallettxreferencetype.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallettxreferencetype.d.ts","sourceRoot":"","sources":["../../src/models/wallettxreferencetype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,eAAO,MAAM,qBAAqB;;;;;CAKxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE7E,eAAO,MAAM,+BAA+B;;;;;EAK1C,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
export const WalletTxReferenceType = {
|
|
6
|
+
Payment: "PAYMENT",
|
|
7
|
+
External: "EXTERNAL",
|
|
8
|
+
Request: "REQUEST",
|
|
9
|
+
Invoice: "INVOICE",
|
|
10
|
+
};
|
|
11
|
+
export const WalletTxReferenceType$zodSchema = z.enum([
|
|
12
|
+
"PAYMENT",
|
|
13
|
+
"EXTERNAL",
|
|
14
|
+
"REQUEST",
|
|
15
|
+
"INVOICE",
|
|
16
|
+
]);
|
|
17
|
+
//# sourceMappingURL=wallettxreferencetype.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallettxreferencetype.js","sourceRoot":"","sources":["../../src/models/wallettxreferencetype.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACV,CAAC;AAGX,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,IAAI,CAAC;IACpD,SAAS;IACT,UAAU;IACV,SAAS;IACT,SAAS;CACV,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
export declare const WalletType: {
|
|
4
|
+
readonly PrePaid: "PRE_PAID";
|
|
5
|
+
readonly PostPaid: "POST_PAID";
|
|
6
|
+
};
|
|
7
|
+
export type WalletType = ClosedEnum<typeof WalletType>;
|
|
8
|
+
export declare const WalletType$zodSchema: z.ZodEnum<{
|
|
9
|
+
PRE_PAID: "PRE_PAID";
|
|
10
|
+
POST_PAID: "POST_PAID";
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=wallettype.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallettype.d.ts","sourceRoot":"","sources":["../../src/models/wallettype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,eAAO,MAAM,UAAU;;;CAGb,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEvD,eAAO,MAAM,oBAAoB;;;EAG/B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
export const WalletType = {
|
|
6
|
+
PrePaid: "PRE_PAID",
|
|
7
|
+
PostPaid: "POST_PAID",
|
|
8
|
+
};
|
|
9
|
+
export const WalletType$zodSchema = z.enum([
|
|
10
|
+
"PRE_PAID",
|
|
11
|
+
"POST_PAID",
|
|
12
|
+
]);
|
|
13
|
+
//# sourceMappingURL=wallettype.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallettype.js","sourceRoot":"","sources":["../../src/models/wallettype.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,WAAW;CACb,CAAC;AAGX,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC;IACzC,UAAU;IACV,WAAW;CACZ,CAAC,CAAC"}
|
package/esm/tool-names.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-names.d.ts","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"tool-names.d.ts","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAqSlE,CAAC"}
|