@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.
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.d.ts +1 -0
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +9 -0
- package/lib/encodings.js.map +1 -1
- package/models/components/accountsreceivablesreportspec.d.ts +1 -1
- package/models/components/accountsreceivablesreportspec.d.ts.map +1 -1
- package/models/components/accountsreceivablesreportspec.js +1 -1
- package/models/components/accountsreceivablesreportspec.js.map +1 -1
- package/models/components/accountupdateroptions.d.ts +1 -1
- package/models/components/accountupdateroptions.d.ts.map +1 -1
- package/models/components/accountupdateroptions.js +1 -1
- package/models/components/accountupdateroptions.js.map +1 -1
- package/models/components/applepaypaymentmethodcreate.d.ts +1 -1
- package/models/components/applepaypaymentmethodcreate.d.ts.map +1 -1
- package/models/components/clicktopayfpanpaymentmethodcreate.d.ts +1 -1
- package/models/components/clicktopayfpanpaymentmethodcreate.d.ts.map +1 -1
- package/models/components/clicktopaypaymentmethodcreate.d.ts +1 -1
- package/models/components/clicktopaypaymentmethodcreate.d.ts.map +1 -1
- package/models/components/detailedsettlementreportspec.d.ts +1 -1
- package/models/components/detailedsettlementreportspec.d.ts.map +1 -1
- package/models/components/detailedsettlementreportspec.js +1 -1
- package/models/components/detailedsettlementreportspec.js.map +1 -1
- package/models/components/googlepayfpanpaymentmethodcreate.d.ts +1 -1
- package/models/components/googlepayfpanpaymentmethodcreate.d.ts.map +1 -1
- package/models/components/googlepaypaymentmethodcreate.d.ts +1 -1
- package/models/components/googlepaypaymentmethodcreate.d.ts.map +1 -1
- package/models/components/networktokenpaymentmethodcreate.d.ts +1 -1
- package/models/components/networktokenpaymentmethodcreate.d.ts.map +1 -1
- package/models/components/paymentlink.d.ts +8 -0
- package/models/components/paymentlink.d.ts.map +1 -1
- package/models/components/paymentlink.js +3 -0
- package/models/components/paymentlink.js.map +1 -1
- package/models/components/paymentlinkcreate.d.ts +10 -0
- package/models/components/paymentlinkcreate.d.ts.map +1 -1
- package/models/components/paymentlinkcreate.js +3 -0
- package/models/components/paymentlinkcreate.js.map +1 -1
- package/models/components/reportcreate.d.ts +4 -36
- package/models/components/reportcreate.d.ts.map +1 -1
- package/models/components/reportcreate.js +8 -8
- package/models/components/reportcreate.js.map +1 -1
- package/models/components/transactionretriesreportspec.d.ts +1 -1
- package/models/components/transactionretriesreportspec.d.ts.map +1 -1
- package/models/components/transactionretriesreportspec.js +1 -1
- package/models/components/transactionretriesreportspec.js.map +1 -1
- package/models/components/transactionsreportspec.d.ts +1 -1
- package/models/components/transactionsreportspec.d.ts.map +1 -1
- package/models/components/transactionsreportspec.js +1 -1
- package/models/components/transactionsreportspec.js.map +1 -1
- package/models/operations/listbuyerpaymentmethods.d.ts +1 -1
- package/models/operations/listbuyerpaymentmethods.d.ts.map +1 -1
- package/models/operations/listbuyerpaymentmethods.js +1 -1
- package/models/operations/listbuyerpaymentmethods.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +13 -0
- package/src/models/components/accountsreceivablesreportspec.ts +2 -4
- package/src/models/components/accountupdateroptions.ts +2 -2
- package/src/models/components/applepaypaymentmethodcreate.ts +1 -1
- package/src/models/components/clicktopayfpanpaymentmethodcreate.ts +1 -1
- package/src/models/components/clicktopaypaymentmethodcreate.ts +1 -1
- package/src/models/components/detailedsettlementreportspec.ts +2 -4
- package/src/models/components/googlepayfpanpaymentmethodcreate.ts +1 -1
- package/src/models/components/googlepaypaymentmethodcreate.ts +1 -1
- package/src/models/components/networktokenpaymentmethodcreate.ts +1 -1
- package/src/models/components/paymentlink.ts +11 -0
- package/src/models/components/paymentlinkcreate.ts +13 -0
- package/src/models/components/reportcreate.ts +24 -42
- package/src/models/components/transactionretriesreportspec.ts +2 -4
- package/src/models/components/transactionsreportspec.ts +2 -2
- package/src/models/operations/listbuyerpaymentmethods.ts +2 -2
- package/src/types/unrecognized.ts +9 -1
- package/tsconfig.json +1 -2
- package/types/unrecognized.d.ts +7 -1
- package/types/unrecognized.d.ts.map +1 -1
- package/types/unrecognized.js +9 -1
- 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,
|
|
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,6BAA6B,GA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AAM,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
|
|
52
|
-
detailedsettlementreportspec_js_1.DetailedSettlementReportSpec$outboundSchema
|
|
53
|
-
transactionretriesreportspec_js_1.TransactionRetriesReportSpec$outboundSchema
|
|
54
|
-
transactionsreportspec_js_1.TransactionsReportSpec$outboundSchema
|
|
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
|
|
68
|
-
detailedsettlementreportspec_js_1.DetailedSettlementReportSpec$outboundSchema
|
|
69
|
-
transactionretriesreportspec_js_1.TransactionRetriesReportSpec$outboundSchema
|
|
70
|
-
transactionsreportspec_js_1.TransactionsReportSpec$outboundSchema
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"reportcreate.js","sourceRoot":"","sources":["../../src/models/components/reportcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkFH,gCAEC;AAwCD,gDAEC;AA5HD,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;IAC5C,6EAA2C;IAC3C,6EAA2C;IAC3C,iEAAqC;CACtC,CAAC,CAAC;AAEL,SAAgB,UAAU,CAAC,IAAU;IACnC,OAAO,IAAI,CAAC,SAAS,CAAC,2BAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AACzD,CAAC;AAgBD,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,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,QAAQ,EAAE,iDAA6B;IACvC,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE;IAC5B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC;IAC/C,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC;QACZ,+EAA4C;QAC5C,6EAA2C;QAC3C,6EAA2C;QAC3C,iEAAqC;KACtC,CAAC;CACH,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,eAAe,EAAE,kBAAkB;QACnC,gBAAgB,EAAE,mBAAmB;KACtC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,kBAAkB,CAAC,YAA0B;IAC3D,OAAO,IAAI,CAAC,SAAS,CAAC,mCAA2B,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -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,
|
|
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")
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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"}
|
|
@@ -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,
|
|
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")
|
|
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
|
|
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
|
|
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/models/operations/listbuyerpaymentmethods.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,M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ACtD,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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AM,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,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
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.
|
|
81
|
-
genVersion: "2.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 1.
|
|
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;
|
package/src/lib/encodings.ts
CHANGED
|
@@ -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
|
|
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")
|
|
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
|
|
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
|
|
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
|
*/
|
|
@@ -8,7 +8,7 @@ export type DetailedSettlementReportSpec = {
|
|
|
8
8
|
/**
|
|
9
9
|
* The report model type.
|
|
10
10
|
*/
|
|
11
|
-
model
|
|
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")
|
|
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
|
|
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
|
|
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
|
*/
|
|
@@ -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
|
-
|
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
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
|
-
|
|
|
64
|
-
|
|
|
65
|
-
|
|
|
66
|
-
|
|
|
63
|
+
| AccountsReceivablesReportSpec
|
|
64
|
+
| DetailedSettlementReportSpec
|
|
65
|
+
| TransactionRetriesReportSpec
|
|
66
|
+
| TransactionsReportSpec;
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
/** @internal */
|
|
70
70
|
export type Spec$Outbound =
|
|
71
|
-
|
|
|
72
|
-
|
|
|
73
|
-
|
|
|
74
|
-
|
|
|
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
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
|
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
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
|
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")
|
|
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
|
|
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")
|
|
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
|
|
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
|
-
|
|
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
package/types/unrecognized.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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"}
|