@gr4vy/sdk 1.8.0 → 1.9.0

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.
Files changed (80) hide show
  1. package/examples/package-lock.json +1 -1
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +3 -3
  4. package/lib/config.js +3 -3
  5. package/lib/encodings.d.ts +1 -0
  6. package/lib/encodings.d.ts.map +1 -1
  7. package/lib/encodings.js +9 -0
  8. package/lib/encodings.js.map +1 -1
  9. package/models/components/accountsreceivablesreportspec.d.ts +1 -1
  10. package/models/components/accountsreceivablesreportspec.d.ts.map +1 -1
  11. package/models/components/accountsreceivablesreportspec.js +1 -1
  12. package/models/components/accountsreceivablesreportspec.js.map +1 -1
  13. package/models/components/accountupdateroptions.d.ts +1 -1
  14. package/models/components/accountupdateroptions.d.ts.map +1 -1
  15. package/models/components/accountupdateroptions.js +1 -1
  16. package/models/components/accountupdateroptions.js.map +1 -1
  17. package/models/components/applepaypaymentmethodcreate.d.ts +1 -1
  18. package/models/components/applepaypaymentmethodcreate.d.ts.map +1 -1
  19. package/models/components/clicktopayfpanpaymentmethodcreate.d.ts +1 -1
  20. package/models/components/clicktopayfpanpaymentmethodcreate.d.ts.map +1 -1
  21. package/models/components/clicktopaypaymentmethodcreate.d.ts +1 -1
  22. package/models/components/clicktopaypaymentmethodcreate.d.ts.map +1 -1
  23. package/models/components/detailedsettlementreportspec.d.ts +1 -1
  24. package/models/components/detailedsettlementreportspec.d.ts.map +1 -1
  25. package/models/components/detailedsettlementreportspec.js +1 -1
  26. package/models/components/detailedsettlementreportspec.js.map +1 -1
  27. package/models/components/googlepayfpanpaymentmethodcreate.d.ts +1 -1
  28. package/models/components/googlepayfpanpaymentmethodcreate.d.ts.map +1 -1
  29. package/models/components/googlepaypaymentmethodcreate.d.ts +1 -1
  30. package/models/components/googlepaypaymentmethodcreate.d.ts.map +1 -1
  31. package/models/components/networktokenpaymentmethodcreate.d.ts +1 -1
  32. package/models/components/networktokenpaymentmethodcreate.d.ts.map +1 -1
  33. package/models/components/paymentlink.d.ts +8 -0
  34. package/models/components/paymentlink.d.ts.map +1 -1
  35. package/models/components/paymentlink.js +3 -0
  36. package/models/components/paymentlink.js.map +1 -1
  37. package/models/components/paymentlinkcreate.d.ts +10 -0
  38. package/models/components/paymentlinkcreate.d.ts.map +1 -1
  39. package/models/components/paymentlinkcreate.js +3 -0
  40. package/models/components/paymentlinkcreate.js.map +1 -1
  41. package/models/components/reportcreate.d.ts +4 -36
  42. package/models/components/reportcreate.d.ts.map +1 -1
  43. package/models/components/reportcreate.js +8 -8
  44. package/models/components/reportcreate.js.map +1 -1
  45. package/models/components/transactionretriesreportspec.d.ts +1 -1
  46. package/models/components/transactionretriesreportspec.d.ts.map +1 -1
  47. package/models/components/transactionretriesreportspec.js +1 -1
  48. package/models/components/transactionretriesreportspec.js.map +1 -1
  49. package/models/components/transactionsreportspec.d.ts +1 -1
  50. package/models/components/transactionsreportspec.d.ts.map +1 -1
  51. package/models/components/transactionsreportspec.js +1 -1
  52. package/models/components/transactionsreportspec.js.map +1 -1
  53. package/models/operations/listbuyerpaymentmethods.d.ts +1 -1
  54. package/models/operations/listbuyerpaymentmethods.d.ts.map +1 -1
  55. package/models/operations/listbuyerpaymentmethods.js +1 -1
  56. package/models/operations/listbuyerpaymentmethods.js.map +1 -1
  57. package/package.json +1 -1
  58. package/src/lib/config.ts +3 -3
  59. package/src/lib/encodings.ts +13 -0
  60. package/src/models/components/accountsreceivablesreportspec.ts +2 -4
  61. package/src/models/components/accountupdateroptions.ts +2 -2
  62. package/src/models/components/applepaypaymentmethodcreate.ts +1 -1
  63. package/src/models/components/clicktopayfpanpaymentmethodcreate.ts +1 -1
  64. package/src/models/components/clicktopaypaymentmethodcreate.ts +1 -1
  65. package/src/models/components/detailedsettlementreportspec.ts +2 -4
  66. package/src/models/components/googlepayfpanpaymentmethodcreate.ts +1 -1
  67. package/src/models/components/googlepaypaymentmethodcreate.ts +1 -1
  68. package/src/models/components/networktokenpaymentmethodcreate.ts +1 -1
  69. package/src/models/components/paymentlink.ts +11 -0
  70. package/src/models/components/paymentlinkcreate.ts +13 -0
  71. package/src/models/components/reportcreate.ts +24 -42
  72. package/src/models/components/transactionretriesreportspec.ts +2 -4
  73. package/src/models/components/transactionsreportspec.ts +2 -2
  74. package/src/models/operations/listbuyerpaymentmethods.ts +2 -2
  75. package/src/types/unrecognized.ts +9 -1
  76. package/tsconfig.json +1 -2
  77. package/types/unrecognized.d.ts +7 -1
  78. package/types/unrecognized.d.ts.map +1 -1
  79. package/types/unrecognized.js +9 -1
  80. package/types/unrecognized.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"reportcreate.d.ts","sourceRoot":"","sources":["../../src/models/components/reportcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,6BAA6B,EAC7B,sCAAsC,EAEvC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,4BAA4B,EAC5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,4BAA4B,EAC5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,sBAAsB,EACtB,+BAA+B,EAEhC,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,IAAI,GACZ,CAAC,6BAA6B,GAAG;IAAE,KAAK,EAAE,sBAAsB,CAAA;CAAE,CAAC,GACnE,CAAC,4BAA4B,GAAG;IAAE,KAAK,EAAE,qBAAqB,CAAA;CAAE,CAAC,GACjE,CAAC,4BAA4B,GAAG;IAAE,KAAK,EAAE,qBAAqB,CAAA;CAAE,CAAC,GACjE,CAAC,sBAAsB,GAAG;IAAE,KAAK,EAAE,cAAc,CAAA;CAAE,CAAC,CAAC;AAEzD,MAAM,MAAM,YAAY,GAAG;IACzB;;O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AEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,QAAQ,EAAE,cAAc,CAAC;IACzB;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,IAAI,EACA,6BAA6B,GAC7B,4BAA4B,GAC5B,4BAA4B,GAC5B,sBAAsB,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,aAAa,GACrB,sCAAsC,GACtC,qCAAqC,GACrC,qCAAqC,GACrC,+BAA+B,CAAC;AAEpC,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC,UAAU,EAAE,IAAI,CAMzE,CAAC;AAEL,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE7C;AAED,gBAAgB;AAChB,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EACA,sCAAsC,GACtC,qCAAqC,GACrC,qCAAqC,GACrC,+BAA+B,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,YAAY,CAkBZ,CAAC;AAEH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAErE"}
@@ -48,10 +48,10 @@ const transactionretriesreportspec_js_1 = require("./transactionretriesreportspe
48
48
  const transactionsreportspec_js_1 = require("./transactionsreportspec.js");
49
49
  /** @internal */
50
50
  exports.Spec$outboundSchema = z.union([
51
- accountsreceivablesreportspec_js_1.AccountsReceivablesReportSpec$outboundSchema.and(z.object({ model: z.literal("accounts_receivables") })),
52
- detailedsettlementreportspec_js_1.DetailedSettlementReportSpec$outboundSchema.and(z.object({ model: z.literal("detailed_settlement") })),
53
- transactionretriesreportspec_js_1.TransactionRetriesReportSpec$outboundSchema.and(z.object({ model: z.literal("transaction_retries") })),
54
- transactionsreportspec_js_1.TransactionsReportSpec$outboundSchema.and(z.object({ model: z.literal("transactions") })),
51
+ accountsreceivablesreportspec_js_1.AccountsReceivablesReportSpec$outboundSchema,
52
+ detailedsettlementreportspec_js_1.DetailedSettlementReportSpec$outboundSchema,
53
+ transactionretriesreportspec_js_1.TransactionRetriesReportSpec$outboundSchema,
54
+ transactionsreportspec_js_1.TransactionsReportSpec$outboundSchema,
55
55
  ]);
56
56
  function specToJSON(spec) {
57
57
  return JSON.stringify(exports.Spec$outboundSchema.parse(spec));
@@ -64,10 +64,10 @@ exports.ReportCreate$outboundSchema = z.object({
64
64
  scheduleEnabled: z.boolean(),
65
65
  scheduleTimezone: z.string().default("Etc/UTC"),
66
66
  spec: z.union([
67
- accountsreceivablesreportspec_js_1.AccountsReceivablesReportSpec$outboundSchema.and(z.object({ model: z.literal("accounts_receivables") })),
68
- detailedsettlementreportspec_js_1.DetailedSettlementReportSpec$outboundSchema.and(z.object({ model: z.literal("detailed_settlement") })),
69
- transactionretriesreportspec_js_1.TransactionRetriesReportSpec$outboundSchema.and(z.object({ model: z.literal("transaction_retries") })),
70
- transactionsreportspec_js_1.TransactionsReportSpec$outboundSchema.and(z.object({ model: z.literal("transactions") })),
67
+ accountsreceivablesreportspec_js_1.AccountsReceivablesReportSpec$outboundSchema,
68
+ detailedsettlementreportspec_js_1.DetailedSettlementReportSpec$outboundSchema,
69
+ transactionretriesreportspec_js_1.TransactionRetriesReportSpec$outboundSchema,
70
+ transactionsreportspec_js_1.TransactionsReportSpec$outboundSchema,
71
71
  ]),
72
72
  }).transform((v) => {
73
73
  return (0, primitives_js_1.remap)(v, {
@@ -1 +1 @@
1
- {"version":3,"file":"reportcreate.js","sourceRoot":"","sources":["../../src/models/components/reportcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0FH,gCAEC;AAkDD,gDAEC;AA9ID,0CAA4B;AAC5B,2DAA0D;AAC1D,yFAI4C;AAC5C,uFAI2C;AAC3C,2DAG6B;AAC7B,uFAI2C;AAC3C,2EAIqC;AA8CrC,gBAAgB;AACH,QAAA,mBAAmB,GAC9B,CAAC,CAAC,KAAK,CAAC;IACN,+EAA4C,CAAC,GAAG,CAC9C,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC,EAAE,CAAC,CACvD;IACD,6EAA2C,CAAC,GAAG,CAC7C,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAAE,CAAC,CACtD;IACD,6EAA2C,CAAC,GAAG,CAC7C,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAAE,CAAC,CACtD;IACD,iEAAqC,CAAC,GAAG,CACvC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,CAC/C;CACF,CAAC,CAAC;AAEL,SAAgB,UAAU,CAAC,IAAU;IACnC,OAAO,IAAI,CAAC,SAAS,CAAC,2BAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AACzD,CAAC;AAkBD,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,E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3
  /**
4
4
  * The report model type.
5
5
  */
6
- model?: "transaction_retries" | undefined;
6
+ model: "transaction_retries";
7
7
  /**
8
8
  * The parameters for the transaction retries report model.
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"transactionretriesreportspec.d.ts","sourceRoot":"","sources":["../../src/models/components/transactionretriesreportspec.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,KAAK,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,KAAK,EAAE,qBAAqB,CAAC;IAC7B,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAM5B,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR"}
1
+ {"version":3,"file":"transactionretriesreportspec.d.ts","sourceRoot":"","sources":["../../src/models/components/transactionretriesreportspec.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,KAAK,EAAE,qBAAqB,CAAC;IAC7B;;OAEG;IACH,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,KAAK,EAAE,qBAAqB,CAAC;IAC7B,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAI5B,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR"}
@@ -41,7 +41,7 @@ exports.transactionRetriesReportSpecToJSON = transactionRetriesReportSpecToJSON;
41
41
  const z = __importStar(require("zod/v3"));
42
42
  /** @internal */
43
43
  exports.TransactionRetriesReportSpec$outboundSchema = z.object({
44
- model: z.literal("transaction_retries").default("transaction_retries"),
44
+ model: z.literal("transaction_retries"),
45
45
  params: z.record(z.any()),
46
46
  });
47
47
  function transactionRetriesReportSpecToJSON(transactionRetriesReportSpec) {
@@ -1 +1 @@
1
- {"version":3,"file":"transactionretriesreportspec.js","sourceRoot":"","sources":["../../src/models/components/transactionretriesreportspec.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCH,gFAQC;AAvCD,0CAA4B;AAmB5B,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,OAAO,CAC7C,qBAA8B,CAC/B;IACD,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;CAC1B,CAAC,CAAC;AAEH,SAAgB,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,mDAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"transactionretriesreportspec.js","sourceRoot":"","sources":["../../src/models/components/transactionretriesreportspec.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,gFAQC;AArCD,0CAA4B;AAmB5B,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC;IACvC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;CAC1B,CAAC,CAAC;AAEH,SAAgB,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,mDAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC"}
@@ -3,7 +3,7 @@ export type TransactionsReportSpec = {
3
3
  /**
4
4
  * The report model type.
5
5
  */
6
- model?: "transactions" | undefined;
6
+ model: "transactions";
7
7
  /**
8
8
  * The parameters for the transactions report model.
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"transactionsreportspec.d.ts","sourceRoot":"","sources":["../../src/models/components/transactionsreportspec.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAItB,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR"}
1
+ {"version":3,"file":"transactionsreportspec.d.ts","sourceRoot":"","sources":["../../src/models/components/transactionsreportspec.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,KAAK,EAAE,cAAc,CAAC;IACtB;;OAEG;IACH,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAItB,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR"}
@@ -41,7 +41,7 @@ exports.transactionsReportSpecToJSON = transactionsReportSpecToJSON;
41
41
  const z = __importStar(require("zod/v3"));
42
42
  /** @internal */
43
43
  exports.TransactionsReportSpec$outboundSchema = z.object({
44
- model: z.literal("transactions").default("transactions"),
44
+ model: z.literal("transactions"),
45
45
  params: z.record(z.any()),
46
46
  });
47
47
  function transactionsReportSpecToJSON(transactionsReportSpec) {
@@ -1 +1 @@
1
- {"version":3,"file":"transactionsreportspec.js","sourceRoot":"","sources":["../../src/models/components/transactionsreportspec.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,oEAMC;AAnCD,0CAA4B;AAmB5B,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,cAAuB,CAAC;IACjE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;CAC1B,CAAC,CAAC;AAEH,SAAgB,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,6CAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"transactionsreportspec.js","sourceRoot":"","sources":["../../src/models/components/transactionsreportspec.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,oEAMC;AAnCD,0CAA4B;AAmB5B,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IAChC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;CAC1B,CAAC,CAAC;AAEH,SAAgB,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,6CAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC"}
@@ -50,7 +50,7 @@ export declare const OrderBy$outboundSchema: z.ZodType<string, z.ZodTypeDef, Ord
50
50
  export type ListBuyerPaymentMethodsRequest$Outbound = {
51
51
  buyer_id?: string | null | undefined;
52
52
  buyer_external_identifier?: string | null | undefined;
53
- sort_by: "last_used_at" | null;
53
+ sort_by?: "last_used_at" | null | undefined;
54
54
  order_by: string;
55
55
  country?: string | null | undefined;
56
56
  currency?: string | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"listbuyerpaymentmethods.d.ts","sourceRoot":"","sources":["../../src/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M,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CACzC,CAAC;AAEpC,gBAAgB;AAChB,MAAM,MAAM,uCAAuC,GAAG;IACpD,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtD,OAAO,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,uCAAuC,EACvC,CAAC,CAAC,UAAU,EACZ,8BAA8B,CAgB9B,CAAC;AAEH,wBAAgB,oCAAoC,CAClD,8BAA8B,EAAE,8BAA8B,GAC7D,MAAM,CAMR"}
@@ -54,7 +54,7 @@ exports.OrderBy$outboundSchema = openEnums.outboundSchema(exports.OrderBy);
54
54
  exports.ListBuyerPaymentMethodsRequest$outboundSchema = z.object({
55
55
  buyerId: z.nullable(z.string()).optional(),
56
56
  buyerExternalIdentifier: z.nullable(z.string()).optional(),
57
- sortBy: z.nullable(z.literal("last_used_at")),
57
+ sortBy: z.nullable(z.literal("last_used_at")).optional(),
58
58
  orderBy: exports.OrderBy$outboundSchema.default("desc"),
59
59
  country: z.nullable(z.string()).optional(),
60
60
  currency: z.nullable(z.string()).optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"listbuyerpaymentmethods.js","sourceRoot":"","sources":["../../src/models/operations/listbuyerpaymentmethods.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2FH,oFAQC;AAjGD,0CAA4B;AAC5B,2DAA0D;AAC1D,gEAAkD;AAOlD;;GAEG;AACU,QAAA,OAAO,GAAG;IACrB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACJ,CAAC;AAqCX,gBAAgB;AACH,QAAA,sBAAsB,GACjC,SAAS,CAAC,cAAc,CAAC,eAAO,CAAC,CAAC;AAapC,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,uBAAuB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1D,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAC7C,OAAO,EAAE,8BAAsB,CAAC,OAAO,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,E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E;IAC1C,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,OAAO,EAAE,UAAU;QACnB,uBAAuB,EAAE,2BAA2B;QACpD,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,UAAU;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,oCAAoC,CAClD,8BAA8D;IAE9D,OAAO,IAAI,CAAC,SAAS,CACnB,qDAA6C,CAAC,KAAK,CACjD,8BAA8B,CAC/B,CACF,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gr4vy/sdk",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "author": "Gr4vy",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
package/src/lib/config.ts CHANGED
@@ -77,7 +77,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
77
77
  export const SDK_METADATA = {
78
78
  language: "typescript",
79
79
  openapiDocVersion: "1.0.0",
80
- sdkVersion: "1.8.0",
81
- genVersion: "2.763.3",
82
- userAgent: "speakeasy-sdk/typescript 1.8.0 2.763.3 1.0.0 @gr4vy/sdk",
80
+ sdkVersion: "1.9.0",
81
+ genVersion: "2.770.0",
82
+ userAgent: "speakeasy-sdk/typescript 1.9.0 2.770.0 1.0.0 @gr4vy/sdk",
83
83
  } as const;
@@ -427,6 +427,7 @@ export function queryJoin(...args: (string | undefined)[]): string {
427
427
  type QueryEncoderOptions = {
428
428
  explode?: boolean;
429
429
  charEncoding?: "percent" | "none";
430
+ allowEmptyValue?: string[];
430
431
  };
431
432
 
432
433
  type QueryEncoder = (
@@ -451,7 +452,19 @@ export function queryEncoder(f: QueryEncoder): BulkQueryEncoder {
451
452
  charEncoding: options?.charEncoding ?? "percent",
452
453
  };
453
454
 
455
+ const allowEmptySet = new Set(options?.allowEmptyValue ?? []);
456
+
454
457
  const encoded = Object.entries(values).map(([key, value]) => {
458
+ if (allowEmptySet.has(key)) {
459
+ if (
460
+ value === undefined
461
+ || value === null
462
+ || value === ""
463
+ || (Array.isArray(value) && value.length === 0)
464
+ ) {
465
+ return `${encodeURIComponent(key)}=`;
466
+ }
467
+ }
455
468
  return f(key, value, opts);
456
469
  });
457
470
  return queryJoin(...encoded);
@@ -8,7 +8,7 @@ export type AccountsReceivablesReportSpec = {
8
8
  /**
9
9
  * The report model type.
10
10
  */
11
- model?: "accounts_receivables" | undefined;
11
+ model: "accounts_receivables";
12
12
  /**
13
13
  * The parameters for the accounts receivables report model.
14
14
  */
@@ -27,9 +27,7 @@ export const AccountsReceivablesReportSpec$outboundSchema: z.ZodType<
27
27
  z.ZodTypeDef,
28
28
  AccountsReceivablesReportSpec
29
29
  > = z.object({
30
- model: z.literal("accounts_receivables").default(
31
- "accounts_receivables" as const,
32
- ),
30
+ model: z.literal("accounts_receivables"),
33
31
  params: z.record(z.any()),
34
32
  });
35
33
 
@@ -30,7 +30,7 @@ export type AccountUpdaterOptions = {
30
30
 
31
31
  /** @internal */
32
32
  export type AccountUpdaterOptions$Outbound = {
33
- response_code: "updated" | null;
33
+ response_code?: "updated" | null | undefined;
34
34
  account_number?: string | null | undefined;
35
35
  expiration_month?: string | null | undefined;
36
36
  expiration_year?: string | null | undefined;
@@ -43,7 +43,7 @@ export const AccountUpdaterOptions$outboundSchema: z.ZodType<
43
43
  z.ZodTypeDef,
44
44
  AccountUpdaterOptions
45
45
  > = z.object({
46
- responseCode: z.nullable(z.literal("updated")),
46
+ responseCode: z.nullable(z.literal("updated")).optional(),
47
47
  accountNumber: z.nullable(z.string()).optional(),
48
48
  expirationMonth: z.nullable(z.string()).optional(),
49
49
  expirationYear: z.nullable(z.string()).optional(),
@@ -40,7 +40,7 @@ export type ApplePayPaymentMethodCreate = {
40
40
  /**
41
41
  * Always `applepay`
42
42
  */
43
- method?: "applepay" | undefined;
43
+ method: "applepay";
44
44
  /**
45
45
  * The opaque token as received from the Apple Pay JS library. This format may change between JS library versions.
46
46
  */
@@ -36,7 +36,7 @@ export type ClickToPayFPANPaymentMethodCreate = {
36
36
  /**
37
37
  * Aways `click-to-pay`.
38
38
  */
39
- method?: "click-to-pay" | undefined;
39
+ method: "click-to-pay";
40
40
  /**
41
41
  * The URL to redirect a user back to after the complete 3DS in browser.
42
42
  */
@@ -16,7 +16,7 @@ export type ClickToPayPaymentMethodCreate = {
16
16
  /**
17
17
  * Aways `click-to-pay`.
18
18
  */
19
- method?: "click-to-pay" | undefined;
19
+ method: "click-to-pay";
20
20
  /**
21
21
  * The device token.
22
22
  */
@@ -8,7 +8,7 @@ export type DetailedSettlementReportSpec = {
8
8
  /**
9
9
  * The report model type.
10
10
  */
11
- model?: "detailed_settlement" | undefined;
11
+ model: "detailed_settlement";
12
12
  /**
13
13
  * The parameters for the detailed settlement report model.
14
14
  */
@@ -27,9 +27,7 @@ export const DetailedSettlementReportSpec$outboundSchema: z.ZodType<
27
27
  z.ZodTypeDef,
28
28
  DetailedSettlementReportSpec
29
29
  > = z.object({
30
- model: z.literal("detailed_settlement").default(
31
- "detailed_settlement" as const,
32
- ),
30
+ model: z.literal("detailed_settlement"),
33
31
  params: z.record(z.any()),
34
32
  });
35
33
 
@@ -36,7 +36,7 @@ export type GooglePayFPANPaymentMethodCreate = {
36
36
  /**
37
37
  * Aways `googlepay_pan_only`.
38
38
  */
39
- method?: "googlepay_pan_only" | undefined;
39
+ method: "googlepay_pan_only";
40
40
  /**
41
41
  * The URL to redirect a user back to after the complete 3DS in browser.
42
42
  */
@@ -50,7 +50,7 @@ export type GooglePayPaymentMethodCreate = {
50
50
  /**
51
51
  * Always `googlepay`
52
52
  */
53
- method?: "googlepay" | undefined;
53
+ method: "googlepay";
54
54
  /**
55
55
  * The opaque token as received from the Google Pay JS library. This format may change between JS library versions.
56
56
  */
@@ -18,7 +18,7 @@ export type NetworkTokenPaymentMethodCreate = {
18
18
  /**
19
19
  * Always `network-token`.
20
20
  */
21
- method?: "network-token" | undefined;
21
+ method: "network-token";
22
22
  /**
23
23
  * The scheme token.
24
24
  */
@@ -140,6 +140,14 @@ export type PaymentLink = {
140
140
  * The connection options for the payment link.
141
141
  */
142
142
  connectionOptions?: { [k: string]: { [k: string]: any } } | null | undefined;
143
+ /**
144
+ * Whether the payment method was stored.
145
+ */
146
+ store?: boolean | undefined;
147
+ /**
148
+ * The ID of the buyer to associate with the stored payment method.
149
+ */
150
+ buyerId?: string | null | undefined;
143
151
  };
144
152
 
145
153
  /** @internal */
@@ -179,6 +187,8 @@ export const PaymentLink$inboundSchema: z.ZodType<
179
187
  buyer: z.nullable(TransactionBuyer$inboundSchema).optional(),
180
188
  shipping_details: z.nullable(ShippingDetails$inboundSchema).optional(),
181
189
  connection_options: z.nullable(z.record(z.record(z.any()))).optional(),
190
+ store: z.boolean().default(false),
191
+ buyer_id: z.nullable(z.string()).optional(),
182
192
  }).transform((v) => {
183
193
  return remap$(v, {
184
194
  "expires_at": "expiresAt",
@@ -198,6 +208,7 @@ export const PaymentLink$inboundSchema: z.ZodType<
198
208
  "updated_at": "updatedAt",
199
209
  "shipping_details": "shippingDetails",
200
210
  "connection_options": "connectionOptions",
211
+ "buyer_id": "buyerId",
201
212
  });
202
213
  });
203
214
 
@@ -115,6 +115,14 @@ export type PaymentLinkCreate = {
115
115
  * The way payment method information made it to this transaction.
116
116
  */
117
117
  paymentSource?: TransactionPaymentSource | undefined;
118
+ /**
119
+ * Whether to store the payment method for future use.
120
+ */
121
+ store?: boolean | undefined;
122
+ /**
123
+ * The ID of the buyer to associate the payment method with. Note: When `buyer_id` is provided, the payment link should be treated as a secret as it will allow the user to manage payment methods for the associated buyer.
124
+ */
125
+ buyerId?: string | null | undefined;
118
126
  };
119
127
 
120
128
  /** @internal */
@@ -140,6 +148,8 @@ export type PaymentLinkCreate$Outbound = {
140
148
  cart_items?: Array<CartItem$Outbound> | null | undefined;
141
149
  metadata?: { [k: string]: any } | null | undefined;
142
150
  payment_source?: string | undefined;
151
+ store: boolean;
152
+ buyer_id?: string | null | undefined;
143
153
  };
144
154
 
145
155
  /** @internal */
@@ -171,6 +181,8 @@ export const PaymentLinkCreate$outboundSchema: z.ZodType<
171
181
  cartItems: z.nullable(z.array(CartItem$outboundSchema)).optional(),
172
182
  metadata: z.nullable(z.record(z.any())).optional(),
173
183
  paymentSource: TransactionPaymentSource$outboundSchema.optional(),
184
+ store: z.boolean().default(false),
185
+ buyerId: z.nullable(z.string()).optional(),
174
186
  }).transform((v) => {
175
187
  return remap$(v, {
176
188
  expiresAt: "expires_at",
@@ -187,6 +199,7 @@ export const PaymentLinkCreate$outboundSchema: z.ZodType<
187
199
  returnUrl: "return_url",
188
200
  cartItems: "cart_items",
189
201
  paymentSource: "payment_source",
202
+ buyerId: "buyer_id",
190
203
  });
191
204
  });
192
205
 
@@ -33,10 +33,10 @@ import {
33
33
  * The report specification.
34
34
  */
35
35
  export type Spec =
36
- | (AccountsReceivablesReportSpec & { model: "accounts_receivables" })
37
- | (DetailedSettlementReportSpec & { model: "detailed_settlement" })
38
- | (TransactionRetriesReportSpec & { model: "transaction_retries" })
39
- | (TransactionsReportSpec & { model: "transactions" });
36
+ | AccountsReceivablesReportSpec
37
+ | DetailedSettlementReportSpec
38
+ | TransactionRetriesReportSpec
39
+ | TransactionsReportSpec;
40
40
 
41
41
  export type ReportCreate = {
42
42
  /**
@@ -60,34 +60,26 @@ export type ReportCreate = {
60
60
  * The report specification.
61
61
  */
62
62
  spec:
63
- | (AccountsReceivablesReportSpec & { model: "accounts_receivables" })
64
- | (DetailedSettlementReportSpec & { model: "detailed_settlement" })
65
- | (TransactionRetriesReportSpec & { model: "transaction_retries" })
66
- | (TransactionsReportSpec & { model: "transactions" });
63
+ | AccountsReceivablesReportSpec
64
+ | DetailedSettlementReportSpec
65
+ | TransactionRetriesReportSpec
66
+ | TransactionsReportSpec;
67
67
  };
68
68
 
69
69
  /** @internal */
70
70
  export type Spec$Outbound =
71
- | (AccountsReceivablesReportSpec$Outbound & { model: "accounts_receivables" })
72
- | (DetailedSettlementReportSpec$Outbound & { model: "detailed_settlement" })
73
- | (TransactionRetriesReportSpec$Outbound & { model: "transaction_retries" })
74
- | (TransactionsReportSpec$Outbound & { model: "transactions" });
71
+ | AccountsReceivablesReportSpec$Outbound
72
+ | DetailedSettlementReportSpec$Outbound
73
+ | TransactionRetriesReportSpec$Outbound
74
+ | TransactionsReportSpec$Outbound;
75
75
 
76
76
  /** @internal */
77
77
  export const Spec$outboundSchema: z.ZodType<Spec$Outbound, z.ZodTypeDef, Spec> =
78
78
  z.union([
79
- AccountsReceivablesReportSpec$outboundSchema.and(
80
- z.object({ model: z.literal("accounts_receivables") }),
81
- ),
82
- DetailedSettlementReportSpec$outboundSchema.and(
83
- z.object({ model: z.literal("detailed_settlement") }),
84
- ),
85
- TransactionRetriesReportSpec$outboundSchema.and(
86
- z.object({ model: z.literal("transaction_retries") }),
87
- ),
88
- TransactionsReportSpec$outboundSchema.and(
89
- z.object({ model: z.literal("transactions") }),
90
- ),
79
+ AccountsReceivablesReportSpec$outboundSchema,
80
+ DetailedSettlementReportSpec$outboundSchema,
81
+ TransactionRetriesReportSpec$outboundSchema,
82
+ TransactionsReportSpec$outboundSchema,
91
83
  ]);
92
84
 
93
85
  export function specToJSON(spec: Spec): string {
@@ -102,12 +94,10 @@ export type ReportCreate$Outbound = {
102
94
  schedule_enabled: boolean;
103
95
  schedule_timezone: string;
104
96
  spec:
105
- | (AccountsReceivablesReportSpec$Outbound & {
106
- model: "accounts_receivables";
107
- })
108
- | (DetailedSettlementReportSpec$Outbound & { model: "detailed_settlement" })
109
- | (TransactionRetriesReportSpec$Outbound & { model: "transaction_retries" })
110
- | (TransactionsReportSpec$Outbound & { model: "transactions" });
97
+ | AccountsReceivablesReportSpec$Outbound
98
+ | DetailedSettlementReportSpec$Outbound
99
+ | TransactionRetriesReportSpec$Outbound
100
+ | TransactionsReportSpec$Outbound;
111
101
  };
112
102
 
113
103
  /** @internal */
@@ -122,18 +112,10 @@ export const ReportCreate$outboundSchema: z.ZodType<
122
112
  scheduleEnabled: z.boolean(),
123
113
  scheduleTimezone: z.string().default("Etc/UTC"),
124
114
  spec: z.union([
125
- AccountsReceivablesReportSpec$outboundSchema.and(
126
- z.object({ model: z.literal("accounts_receivables") }),
127
- ),
128
- DetailedSettlementReportSpec$outboundSchema.and(
129
- z.object({ model: z.literal("detailed_settlement") }),
130
- ),
131
- TransactionRetriesReportSpec$outboundSchema.and(
132
- z.object({ model: z.literal("transaction_retries") }),
133
- ),
134
- TransactionsReportSpec$outboundSchema.and(
135
- z.object({ model: z.literal("transactions") }),
136
- ),
115
+ AccountsReceivablesReportSpec$outboundSchema,
116
+ DetailedSettlementReportSpec$outboundSchema,
117
+ TransactionRetriesReportSpec$outboundSchema,
118
+ TransactionsReportSpec$outboundSchema,
137
119
  ]),
138
120
  }).transform((v) => {
139
121
  return remap$(v, {
@@ -8,7 +8,7 @@ export type TransactionRetriesReportSpec = {
8
8
  /**
9
9
  * The report model type.
10
10
  */
11
- model?: "transaction_retries" | undefined;
11
+ model: "transaction_retries";
12
12
  /**
13
13
  * The parameters for the transaction retries report model.
14
14
  */
@@ -27,9 +27,7 @@ export const TransactionRetriesReportSpec$outboundSchema: z.ZodType<
27
27
  z.ZodTypeDef,
28
28
  TransactionRetriesReportSpec
29
29
  > = z.object({
30
- model: z.literal("transaction_retries").default(
31
- "transaction_retries" as const,
32
- ),
30
+ model: z.literal("transaction_retries"),
33
31
  params: z.record(z.any()),
34
32
  });
35
33
 
@@ -8,7 +8,7 @@ export type TransactionsReportSpec = {
8
8
  /**
9
9
  * The report model type.
10
10
  */
11
- model?: "transactions" | undefined;
11
+ model: "transactions";
12
12
  /**
13
13
  * The parameters for the transactions report model.
14
14
  */
@@ -27,7 +27,7 @@ export const TransactionsReportSpec$outboundSchema: z.ZodType<
27
27
  z.ZodTypeDef,
28
28
  TransactionsReportSpec
29
29
  > = z.object({
30
- model: z.literal("transactions").default("transactions" as const),
30
+ model: z.literal("transactions"),
31
31
  params: z.record(z.any()),
32
32
  });
33
33
 
@@ -62,7 +62,7 @@ export const OrderBy$outboundSchema: z.ZodType<string, z.ZodTypeDef, OrderBy> =
62
62
  export type ListBuyerPaymentMethodsRequest$Outbound = {
63
63
  buyer_id?: string | null | undefined;
64
64
  buyer_external_identifier?: string | null | undefined;
65
- sort_by: "last_used_at" | null;
65
+ sort_by?: "last_used_at" | null | undefined;
66
66
  order_by: string;
67
67
  country?: string | null | undefined;
68
68
  currency?: string | null | undefined;
@@ -77,7 +77,7 @@ export const ListBuyerPaymentMethodsRequest$outboundSchema: z.ZodType<
77
77
  > = z.object({
78
78
  buyerId: z.nullable(z.string()).optional(),
79
79
  buyerExternalIdentifier: z.nullable(z.string()).optional(),
80
- sortBy: z.nullable(z.literal("last_used_at")),
80
+ sortBy: z.nullable(z.literal("last_used_at")).optional(),
81
81
  orderBy: OrderBy$outboundSchema.default("desc"),
82
82
  country: z.nullable(z.string()).optional(),
83
83
  currency: z.nullable(z.string()).optional(),
@@ -16,8 +16,16 @@ export function startCountingUnrecognized() {
16
16
  refCount++;
17
17
  const start = globalCount;
18
18
  return {
19
- end: () => {
19
+ /**
20
+ * Ends counting and returns the delta.
21
+ * @param delta - If provided, only this amount is added to the parent counter
22
+ * (used for nested unions where we only want to record the winning option's count).
23
+ * If not provided, records all counts since start().
24
+ */
25
+ end: (delta?: number) => {
20
26
  const count = globalCount - start;
27
+ // Reset globalCount back to start, then add only the specified delta
28
+ globalCount = start + (delta ?? count);
21
29
  if (--refCount === 0) globalCount = 0;
22
30
  return count;
23
31
  },
package/tsconfig.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "incremental": true,
4
- "tsBuildInfoFile": ".tsbuildinfo",
3
+ "incremental": false,
5
4
  "target": "ES2020",
6
5
  "lib": ["ES2022", "DOM", "DOM.Iterable"],
7
6
  "jsx": "react-jsx",
@@ -4,7 +4,13 @@ export type Unrecognized<T> = T & {
4
4
  };
5
5
  declare function unrecognized<T>(value: T): Unrecognized<T>;
6
6
  export declare function startCountingUnrecognized(): {
7
- end: () => number;
7
+ /**
8
+ * Ends counting and returns the delta.
9
+ * @param delta - If provided, only this amount is added to the parent counter
10
+ * (used for nested unions where we only want to record the winning option's count).
11
+ * If not provided, records all counts since start().
12
+ */
13
+ end: (delta?: number) => number;
8
14
  };
9
15
  export { unrecognized };
10
16
  //# sourceMappingURL=unrecognized.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"unrecognized.d.ts","sourceRoot":"","sources":["../src/types/unrecognized.ts"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,MAAM,CAAC;AACrC,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,CAAC,OAAO,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC;AAEhE,iBAAS,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAGlD;AAID,wBAAgB,yBAAyB;;EAUxC;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"unrecognized.d.ts","sourceRoot":"","sources":["../src/types/unrecognized.ts"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,MAAM,CAAC;AACrC,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,CAAC,OAAO,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC;AAEhE,iBAAS,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAGlD;AAID,wBAAgB,yBAAyB;IAIrC;;;;;OAKG;kBACW,MAAM;EAQvB;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}