@moovio/sdk 0.21.16 → 0.22.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/README.md +44 -46
- package/bin/mcp-server.js +316 -313
- package/bin/mcp-server.js.map +64 -58
- package/examples/package-lock.json +1 -1
- package/funcs/imagesUpdate.d.ts +1 -2
- package/funcs/imagesUpdate.d.ts.map +1 -1
- package/funcs/imagesUpdate.js +12 -13
- package/funcs/imagesUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/encodings.d.ts +1 -0
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +12 -1
- package/lib/encodings.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/accountsUpdate.js +1 -1
- package/mcp-server/tools/applePayUpdateMerchantDomains.js +3 -3
- package/mcp-server/tools/brandingUpdate.js +1 -1
- package/mcp-server/tools/cardIssuingUpdate.js +1 -1
- package/mcp-server/tools/cardsUpdate.js +6 -6
- package/mcp-server/tools/imagesUpdate.d.ts.map +1 -1
- package/mcp-server/tools/imagesUpdate.js +1 -2
- package/mcp-server/tools/imagesUpdate.js.map +1 -1
- package/mcp-server/tools/paymentLinksUpdate.js +1 -1
- package/mcp-server/tools/representativesUpdate.js +2 -2
- package/mcp-server/tools/supportUpdateTicket.js +1 -1
- package/mcp-server/tools/sweepsUpdateConfig.js +1 -1
- package/mcp-server/tools/transfersUpdate.js +3 -3
- package/mcp-server/tools/walletsUpdate.js +1 -1
- package/models/components/achcreditsamedaypaymentmethod.d.ts +2 -11
- package/models/components/achcreditsamedaypaymentmethod.d.ts.map +1 -1
- package/models/components/achcreditsamedaypaymentmethod.js +3 -11
- package/models/components/achcreditsamedaypaymentmethod.js.map +1 -1
- package/models/components/achcreditstandardpaymentmethod.d.ts +2 -11
- package/models/components/achcreditstandardpaymentmethod.d.ts.map +1 -1
- package/models/components/achcreditstandardpaymentmethod.js +3 -11
- package/models/components/achcreditstandardpaymentmethod.js.map +1 -1
- package/models/components/achdebitcollectpaymentmethod.d.ts +2 -11
- package/models/components/achdebitcollectpaymentmethod.d.ts.map +1 -1
- package/models/components/achdebitcollectpaymentmethod.js +3 -11
- package/models/components/achdebitcollectpaymentmethod.js.map +1 -1
- package/models/components/achdebitfundpaymentmethod.d.ts +2 -11
- package/models/components/achdebitfundpaymentmethod.d.ts.map +1 -1
- package/models/components/achdebitfundpaymentmethod.js +3 -11
- package/models/components/achdebitfundpaymentmethod.js.map +1 -1
- package/models/components/applepaypaymentmethod.d.ts +2 -11
- package/models/components/applepaypaymentmethod.d.ts.map +1 -1
- package/models/components/applepaypaymentmethod.js +3 -10
- package/models/components/applepaypaymentmethod.js.map +1 -1
- package/models/components/cardpaymentpaymentmethod.d.ts +2 -11
- package/models/components/cardpaymentpaymentmethod.d.ts.map +1 -1
- package/models/components/cardpaymentpaymentmethod.js +3 -11
- package/models/components/cardpaymentpaymentmethod.js.map +1 -1
- package/models/components/cardpresentpaymentpaymentmethod.d.ts +2 -11
- package/models/components/cardpresentpaymentpaymentmethod.d.ts.map +1 -1
- package/models/components/cardpresentpaymentpaymentmethod.js +3 -11
- package/models/components/cardpresentpaymentpaymentmethod.js.map +1 -1
- package/models/components/createevidencefilemultipart.d.ts +1 -1
- package/models/components/createinvoice.d.ts +3 -3
- package/models/components/createinvoice.d.ts.map +1 -1
- package/models/components/createinvoice.js +3 -3
- package/models/components/createinvoice.js.map +1 -1
- package/models/components/createinvoicelineitem.d.ts +50 -0
- package/models/components/createinvoicelineitem.d.ts.map +1 -0
- package/models/components/createinvoicelineitem.js +70 -0
- package/models/components/createinvoicelineitem.js.map +1 -0
- package/models/components/createinvoicelineitemoption.d.ts +44 -0
- package/models/components/createinvoicelineitemoption.d.ts.map +1 -0
- package/models/components/createinvoicelineitemoption.js +67 -0
- package/models/components/createinvoicelineitemoption.js.map +1 -0
- package/models/components/createinvoicelineitemoptionvalidationerror.d.ts +24 -0
- package/models/components/createinvoicelineitemoptionvalidationerror.d.ts.map +1 -0
- package/models/components/createinvoicelineitemoptionvalidationerror.js +65 -0
- package/models/components/createinvoicelineitemoptionvalidationerror.js.map +1 -0
- package/models/components/createinvoicelineitems.d.ts +24 -0
- package/models/components/createinvoicelineitems.d.ts.map +1 -0
- package/models/components/{invoicelineitemsupdate.js → createinvoicelineitems.js} +13 -13
- package/models/components/createinvoicelineitems.js.map +1 -0
- package/models/components/createinvoicelineitemsupdate.d.ts +24 -0
- package/models/components/createinvoicelineitemsupdate.d.ts.map +1 -0
- package/models/components/createinvoicelineitemsupdate.js +59 -0
- package/models/components/createinvoicelineitemsupdate.js.map +1 -0
- package/models/components/createinvoicelineitemsvalidationerror.d.ts +22 -0
- package/models/components/createinvoicelineitemsvalidationerror.d.ts.map +1 -0
- package/models/components/createinvoicelineitemsvalidationerror.js +61 -0
- package/models/components/createinvoicelineitemsvalidationerror.js.map +1 -0
- package/models/components/createinvoicelineitemvalidationerror.d.ts +31 -0
- package/models/components/createinvoicelineitemvalidationerror.d.ts.map +1 -0
- package/models/components/createinvoicelineitemvalidationerror.js +70 -0
- package/models/components/createinvoicelineitemvalidationerror.js.map +1 -0
- package/models/components/createpaymentlink.d.ts +0 -2
- package/models/components/createpaymentlink.d.ts.map +1 -1
- package/models/components/createpaymentlink.js.map +1 -1
- package/models/components/fileuploadrequestmultipart.d.ts +1 -4
- package/models/components/fileuploadrequestmultipart.d.ts.map +1 -1
- package/models/components/fileuploadrequestmultipart.js.map +1 -1
- package/models/components/imageuploadrequestmultipart.d.ts +3 -3
- package/models/components/imageuploadrequestmultipart.d.ts.map +1 -1
- package/models/components/index.d.ts +8 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -2
- package/models/components/index.js.map +1 -1
- package/models/components/instantbankcreditpaymentmethod.d.ts +2 -11
- package/models/components/instantbankcreditpaymentmethod.d.ts.map +1 -1
- package/models/components/instantbankcreditpaymentmethod.js +3 -11
- package/models/components/instantbankcreditpaymentmethod.js.map +1 -1
- package/models/components/invoiceexternalpayment.d.ts +2 -11
- package/models/components/invoiceexternalpayment.d.ts.map +1 -1
- package/models/components/invoiceexternalpayment.js +3 -10
- package/models/components/invoiceexternalpayment.js.map +1 -1
- package/models/components/invoicelineitem.d.ts +9 -3
- package/models/components/invoicelineitem.d.ts.map +1 -1
- package/models/components/invoicelineitem.js +5 -2
- package/models/components/invoicelineitem.js.map +1 -1
- package/models/components/invoicelineitemimagemetadata.d.ts +35 -0
- package/models/components/invoicelineitemimagemetadata.d.ts.map +1 -0
- package/models/components/invoicelineitemimagemetadata.js +64 -0
- package/models/components/invoicelineitemimagemetadata.js.map +1 -0
- package/models/components/invoicepayment.d.ts +2 -10
- package/models/components/invoicepayment.d.ts.map +1 -1
- package/models/components/invoicepayment.js +4 -12
- package/models/components/invoicepayment.js.map +1 -1
- package/models/components/invoicetransferpayment.d.ts +2 -11
- package/models/components/invoicetransferpayment.d.ts.map +1 -1
- package/models/components/invoicetransferpayment.js +3 -11
- package/models/components/invoicetransferpayment.js.map +1 -1
- package/models/components/moovwalletpaymentmethod.d.ts +2 -11
- package/models/components/moovwalletpaymentmethod.d.ts.map +1 -1
- package/models/components/moovwalletpaymentmethod.js +3 -11
- package/models/components/moovwalletpaymentmethod.js.map +1 -1
- package/models/components/patchsweepconfig.d.ts +6 -60
- package/models/components/patchsweepconfig.d.ts.map +1 -1
- package/models/components/patchsweepconfig.js +7 -79
- package/models/components/patchsweepconfig.js.map +1 -1
- package/models/components/paymentmethod.d.ts +2 -50
- package/models/components/paymentmethod.d.ts.map +1 -1
- package/models/components/paymentmethod.js +24 -34
- package/models/components/paymentmethod.js.map +1 -1
- package/models/components/pullfromcardpaymentmethod.d.ts +2 -11
- package/models/components/pullfromcardpaymentmethod.d.ts.map +1 -1
- package/models/components/pullfromcardpaymentmethod.js +3 -11
- package/models/components/pullfromcardpaymentmethod.js.map +1 -1
- package/models/components/pushtocardpaymentmethod.d.ts +2 -11
- package/models/components/pushtocardpaymentmethod.d.ts.map +1 -1
- package/models/components/pushtocardpaymentmethod.js +3 -11
- package/models/components/pushtocardpaymentmethod.js.map +1 -1
- package/models/components/rtpcreditpaymentmethod.d.ts +2 -11
- package/models/components/rtpcreditpaymentmethod.d.ts.map +1 -1
- package/models/components/rtpcreditpaymentmethod.js +3 -11
- package/models/components/rtpcreditpaymentmethod.js.map +1 -1
- package/models/components/updateinvoice.d.ts +3 -3
- package/models/components/updateinvoice.d.ts.map +1 -1
- package/models/components/updateinvoice.js +3 -3
- package/models/components/updateinvoice.js.map +1 -1
- package/models/components/updaterepresentative.d.ts +2 -20
- package/models/components/updaterepresentative.d.ts.map +1 -1
- package/models/components/updaterepresentative.js +3 -32
- package/models/components/updaterepresentative.js.map +1 -1
- package/models/errors/createinvoiceerror.d.ts +3 -3
- package/models/errors/createinvoiceerror.d.ts.map +1 -1
- package/models/errors/createinvoiceerror.js +2 -2
- package/models/errors/createinvoiceerror.js.map +1 -1
- package/models/operations/createpaymentlink.d.ts +3 -0
- package/models/operations/createpaymentlink.d.ts.map +1 -1
- package/models/operations/createpaymentlink.js.map +1 -1
- package/models/operations/disablepaymentlink.d.ts +3 -0
- package/models/operations/disablepaymentlink.d.ts.map +1 -1
- package/models/operations/disablepaymentlink.js.map +1 -1
- package/models/operations/getpaymentlink.d.ts +3 -0
- package/models/operations/getpaymentlink.d.ts.map +1 -1
- package/models/operations/getpaymentlink.js.map +1 -1
- package/models/operations/getpaymentlinkqrcode.d.ts +3 -0
- package/models/operations/getpaymentlinkqrcode.d.ts.map +1 -1
- package/models/operations/getpaymentlinkqrcode.js.map +1 -1
- package/models/operations/listpaymentlinks.d.ts +3 -0
- package/models/operations/listpaymentlinks.d.ts.map +1 -1
- package/models/operations/listpaymentlinks.js.map +1 -1
- package/models/operations/updateimage.d.ts +2 -2
- package/models/operations/updateimage.js +4 -4
- package/models/operations/updatepaymentlink.d.ts +3 -0
- package/models/operations/updatepaymentlink.d.ts.map +1 -1
- package/models/operations/updatepaymentlink.js.map +1 -1
- package/package.json +1 -1
- package/sdk/images.d.ts +1 -2
- package/sdk/images.d.ts.map +1 -1
- package/sdk/images.js +1 -2
- package/sdk/images.js.map +1 -1
- package/src/funcs/imagesUpdate.ts +12 -13
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +17 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/accountsUpdate.ts +1 -1
- package/src/mcp-server/tools/applePayUpdateMerchantDomains.ts +3 -3
- package/src/mcp-server/tools/brandingUpdate.ts +1 -1
- package/src/mcp-server/tools/cardIssuingUpdate.ts +1 -1
- package/src/mcp-server/tools/cardsUpdate.ts +6 -6
- package/src/mcp-server/tools/imagesUpdate.ts +1 -2
- package/src/mcp-server/tools/paymentLinksUpdate.ts +1 -1
- package/src/mcp-server/tools/representativesUpdate.ts +2 -2
- package/src/mcp-server/tools/supportUpdateTicket.ts +1 -1
- package/src/mcp-server/tools/sweepsUpdateConfig.ts +1 -1
- package/src/mcp-server/tools/transfersUpdate.ts +3 -3
- package/src/mcp-server/tools/walletsUpdate.ts +1 -1
- package/src/models/components/achcreditsamedaypaymentmethod.ts +4 -23
- package/src/models/components/achcreditstandardpaymentmethod.ts +4 -23
- package/src/models/components/achdebitcollectpaymentmethod.ts +4 -23
- package/src/models/components/achdebitfundpaymentmethod.ts +4 -21
- package/src/models/components/applepaypaymentmethod.ts +4 -22
- package/src/models/components/cardpaymentpaymentmethod.ts +4 -21
- package/src/models/components/cardpresentpaymentpaymentmethod.ts +4 -23
- package/src/models/components/createevidencefilemultipart.ts +1 -1
- package/src/models/components/createinvoice.ts +9 -9
- package/src/models/components/createinvoicelineitem.ts +104 -0
- package/src/models/components/createinvoicelineitemoption.ts +93 -0
- package/src/models/components/createinvoicelineitemoptionvalidationerror.ts +77 -0
- package/src/models/components/createinvoicelineitems.ts +63 -0
- package/src/models/components/createinvoicelineitemsupdate.ts +65 -0
- package/src/models/components/createinvoicelineitemsvalidationerror.ts +64 -0
- package/src/models/components/createinvoicelineitemvalidationerror.ts +88 -0
- package/src/models/components/createpaymentlink.ts +0 -2
- package/src/models/components/fileuploadrequestmultipart.ts +1 -4
- package/src/models/components/imageuploadrequestmultipart.ts +3 -3
- package/src/models/components/index.ts +8 -2
- package/src/models/components/instantbankcreditpaymentmethod.ts +4 -23
- package/src/models/components/invoiceexternalpayment.ts +4 -21
- package/src/models/components/invoicelineitem.ts +18 -5
- package/src/models/components/invoicelineitemimagemetadata.ts +77 -0
- package/src/models/components/invoicepayment.ts +7 -25
- package/src/models/components/invoicetransferpayment.ts +4 -17
- package/src/models/components/moovwalletpaymentmethod.ts +4 -21
- package/src/models/components/patchsweepconfig.ts +12 -252
- package/src/models/components/paymentmethod.ts +48 -164
- package/src/models/components/pullfromcardpaymentmethod.ts +4 -21
- package/src/models/components/pushtocardpaymentmethod.ts +4 -21
- package/src/models/components/rtpcreditpaymentmethod.ts +4 -21
- package/src/models/components/updateinvoice.ts +9 -9
- package/src/models/components/updaterepresentative.ts +4 -59
- package/src/models/errors/createinvoiceerror.ts +7 -5
- package/src/models/operations/createpaymentlink.ts +3 -0
- package/src/models/operations/disablepaymentlink.ts +3 -0
- package/src/models/operations/getpaymentlink.ts +3 -0
- package/src/models/operations/getpaymentlinkqrcode.ts +3 -0
- package/src/models/operations/listpaymentlinks.ts +3 -0
- package/src/models/operations/updateimage.ts +8 -8
- package/src/models/operations/updatepaymentlink.ts +3 -0
- package/src/sdk/images.ts +1 -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
- package/models/components/imageupdaterequestmultipart.d.ts +0 -67
- package/models/components/imageupdaterequestmultipart.d.ts.map +0 -1
- package/models/components/imageupdaterequestmultipart.js +0 -105
- package/models/components/imageupdaterequestmultipart.js.map +0 -1
- package/models/components/invoicelineitemsupdate.d.ts +0 -24
- package/models/components/invoicelineitemsupdate.d.ts.map +0 -1
- package/models/components/invoicelineitemsupdate.js.map +0 -1
- package/src/models/components/imageupdaterequestmultipart.ts +0 -178
- package/src/models/components/invoicelineitemsupdate.ts +0 -63
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
9
|
import {
|
|
@@ -14,34 +13,18 @@ import {
|
|
|
14
13
|
PaymentMethodsCard$outboundSchema,
|
|
15
14
|
} from "./paymentmethodscard.js";
|
|
16
15
|
|
|
17
|
-
export const PushToCardPaymentMethodPaymentMethodType = {
|
|
18
|
-
PushToCard: "push-to-card",
|
|
19
|
-
} as const;
|
|
20
|
-
export type PushToCardPaymentMethodPaymentMethodType = ClosedEnum<
|
|
21
|
-
typeof PushToCardPaymentMethodPaymentMethodType
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
16
|
export type PushToCardPaymentMethod = {
|
|
25
17
|
/**
|
|
26
18
|
* ID of the payment method.
|
|
27
19
|
*/
|
|
28
20
|
paymentMethodID: string;
|
|
29
|
-
paymentMethodType:
|
|
21
|
+
paymentMethodType: "push-to-card";
|
|
30
22
|
/**
|
|
31
23
|
* A card as contained within a payment method.
|
|
32
24
|
*/
|
|
33
25
|
card: PaymentMethodsCard;
|
|
34
26
|
};
|
|
35
27
|
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const PushToCardPaymentMethodPaymentMethodType$inboundSchema:
|
|
38
|
-
z.ZodNativeEnum<typeof PushToCardPaymentMethodPaymentMethodType> = z
|
|
39
|
-
.nativeEnum(PushToCardPaymentMethodPaymentMethodType);
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const PushToCardPaymentMethodPaymentMethodType$outboundSchema:
|
|
42
|
-
z.ZodNativeEnum<typeof PushToCardPaymentMethodPaymentMethodType> =
|
|
43
|
-
PushToCardPaymentMethodPaymentMethodType$inboundSchema;
|
|
44
|
-
|
|
45
28
|
/** @internal */
|
|
46
29
|
export const PushToCardPaymentMethod$inboundSchema: z.ZodType<
|
|
47
30
|
PushToCardPaymentMethod,
|
|
@@ -49,13 +32,13 @@ export const PushToCardPaymentMethod$inboundSchema: z.ZodType<
|
|
|
49
32
|
unknown
|
|
50
33
|
> = z.object({
|
|
51
34
|
paymentMethodID: z.string(),
|
|
52
|
-
paymentMethodType:
|
|
35
|
+
paymentMethodType: z.literal("push-to-card"),
|
|
53
36
|
card: PaymentMethodsCard$inboundSchema,
|
|
54
37
|
});
|
|
55
38
|
/** @internal */
|
|
56
39
|
export type PushToCardPaymentMethod$Outbound = {
|
|
57
40
|
paymentMethodID: string;
|
|
58
|
-
paymentMethodType:
|
|
41
|
+
paymentMethodType: "push-to-card";
|
|
59
42
|
card: PaymentMethodsCard$Outbound;
|
|
60
43
|
};
|
|
61
44
|
|
|
@@ -66,7 +49,7 @@ export const PushToCardPaymentMethod$outboundSchema: z.ZodType<
|
|
|
66
49
|
PushToCardPaymentMethod
|
|
67
50
|
> = z.object({
|
|
68
51
|
paymentMethodID: z.string(),
|
|
69
|
-
paymentMethodType:
|
|
52
|
+
paymentMethodType: z.literal("push-to-card"),
|
|
70
53
|
card: PaymentMethodsCard$outboundSchema,
|
|
71
54
|
});
|
|
72
55
|
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
9
|
import {
|
|
@@ -14,34 +13,18 @@ import {
|
|
|
14
13
|
PaymentMethodsBankAccount$outboundSchema,
|
|
15
14
|
} from "./paymentmethodsbankaccount.js";
|
|
16
15
|
|
|
17
|
-
export const RtpCreditPaymentMethodPaymentMethodType = {
|
|
18
|
-
RtpCredit: "rtp-credit",
|
|
19
|
-
} as const;
|
|
20
|
-
export type RtpCreditPaymentMethodPaymentMethodType = ClosedEnum<
|
|
21
|
-
typeof RtpCreditPaymentMethodPaymentMethodType
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
16
|
export type RtpCreditPaymentMethod = {
|
|
25
17
|
/**
|
|
26
18
|
* ID of the payment method.
|
|
27
19
|
*/
|
|
28
20
|
paymentMethodID: string;
|
|
29
|
-
paymentMethodType:
|
|
21
|
+
paymentMethodType: "rtp-credit";
|
|
30
22
|
/**
|
|
31
23
|
* A bank account as contained within a payment method.
|
|
32
24
|
*/
|
|
33
25
|
bankAccount: PaymentMethodsBankAccount;
|
|
34
26
|
};
|
|
35
27
|
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const RtpCreditPaymentMethodPaymentMethodType$inboundSchema:
|
|
38
|
-
z.ZodNativeEnum<typeof RtpCreditPaymentMethodPaymentMethodType> = z
|
|
39
|
-
.nativeEnum(RtpCreditPaymentMethodPaymentMethodType);
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const RtpCreditPaymentMethodPaymentMethodType$outboundSchema:
|
|
42
|
-
z.ZodNativeEnum<typeof RtpCreditPaymentMethodPaymentMethodType> =
|
|
43
|
-
RtpCreditPaymentMethodPaymentMethodType$inboundSchema;
|
|
44
|
-
|
|
45
28
|
/** @internal */
|
|
46
29
|
export const RtpCreditPaymentMethod$inboundSchema: z.ZodType<
|
|
47
30
|
RtpCreditPaymentMethod,
|
|
@@ -49,13 +32,13 @@ export const RtpCreditPaymentMethod$inboundSchema: z.ZodType<
|
|
|
49
32
|
unknown
|
|
50
33
|
> = z.object({
|
|
51
34
|
paymentMethodID: z.string(),
|
|
52
|
-
paymentMethodType:
|
|
35
|
+
paymentMethodType: z.literal("rtp-credit"),
|
|
53
36
|
bankAccount: PaymentMethodsBankAccount$inboundSchema,
|
|
54
37
|
});
|
|
55
38
|
/** @internal */
|
|
56
39
|
export type RtpCreditPaymentMethod$Outbound = {
|
|
57
40
|
paymentMethodID: string;
|
|
58
|
-
paymentMethodType:
|
|
41
|
+
paymentMethodType: "rtp-credit";
|
|
59
42
|
bankAccount: PaymentMethodsBankAccount$Outbound;
|
|
60
43
|
};
|
|
61
44
|
|
|
@@ -66,7 +49,7 @@ export const RtpCreditPaymentMethod$outboundSchema: z.ZodType<
|
|
|
66
49
|
RtpCreditPaymentMethod
|
|
67
50
|
> = z.object({
|
|
68
51
|
paymentMethodID: z.string(),
|
|
69
|
-
paymentMethodType:
|
|
52
|
+
paymentMethodType: z.literal("rtp-credit"),
|
|
70
53
|
bankAccount: PaymentMethodsBankAccount$outboundSchema,
|
|
71
54
|
});
|
|
72
55
|
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
AmountDecimalUpdate$outboundSchema,
|
|
14
14
|
} from "./amountdecimalupdate.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
16
|
+
CreateInvoiceLineItemsUpdate,
|
|
17
|
+
CreateInvoiceLineItemsUpdate$inboundSchema,
|
|
18
|
+
CreateInvoiceLineItemsUpdate$Outbound,
|
|
19
|
+
CreateInvoiceLineItemsUpdate$outboundSchema,
|
|
20
|
+
} from "./createinvoicelineitemsupdate.js";
|
|
21
21
|
import {
|
|
22
22
|
InvoiceStatus,
|
|
23
23
|
InvoiceStatus$inboundSchema,
|
|
@@ -29,7 +29,7 @@ export type UpdateInvoice = {
|
|
|
29
29
|
/**
|
|
30
30
|
* A collection of line items for an invoice.
|
|
31
31
|
*/
|
|
32
|
-
lineItems?:
|
|
32
|
+
lineItems?: CreateInvoiceLineItemsUpdate | undefined;
|
|
33
33
|
invoiceDate?: Date | null | undefined;
|
|
34
34
|
dueDate?: Date | null | undefined;
|
|
35
35
|
/**
|
|
@@ -46,7 +46,7 @@ export const UpdateInvoice$inboundSchema: z.ZodType<
|
|
|
46
46
|
unknown
|
|
47
47
|
> = z.object({
|
|
48
48
|
description: z.string().optional(),
|
|
49
|
-
lineItems:
|
|
49
|
+
lineItems: CreateInvoiceLineItemsUpdate$inboundSchema.optional(),
|
|
50
50
|
invoiceDate: z.nullable(
|
|
51
51
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
52
52
|
).optional(),
|
|
@@ -59,7 +59,7 @@ export const UpdateInvoice$inboundSchema: z.ZodType<
|
|
|
59
59
|
/** @internal */
|
|
60
60
|
export type UpdateInvoice$Outbound = {
|
|
61
61
|
description?: string | undefined;
|
|
62
|
-
lineItems?:
|
|
62
|
+
lineItems?: CreateInvoiceLineItemsUpdate$Outbound | undefined;
|
|
63
63
|
invoiceDate?: string | null | undefined;
|
|
64
64
|
dueDate?: string | null | undefined;
|
|
65
65
|
status?: string | undefined;
|
|
@@ -73,7 +73,7 @@ export const UpdateInvoice$outboundSchema: z.ZodType<
|
|
|
73
73
|
UpdateInvoice
|
|
74
74
|
> = z.object({
|
|
75
75
|
description: z.string().optional(),
|
|
76
|
-
lineItems:
|
|
76
|
+
lineItems: CreateInvoiceLineItemsUpdate$outboundSchema.optional(),
|
|
77
77
|
invoiceDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
78
78
|
dueDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
79
79
|
status: InvoiceStatus$outboundSchema.optional(),
|
|
@@ -18,10 +18,6 @@ export type Phone = {
|
|
|
18
18
|
countryCode?: string | undefined;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
export type Two = {};
|
|
22
|
-
|
|
23
|
-
export type Email = string | Two;
|
|
24
|
-
|
|
25
21
|
export type UpdateRepresentativeAddress = {
|
|
26
22
|
addressLine1?: string | undefined;
|
|
27
23
|
addressLine2?: string | undefined;
|
|
@@ -77,7 +73,7 @@ export type Responsibilities = {
|
|
|
77
73
|
export type UpdateRepresentative = {
|
|
78
74
|
name?: IndividualNameUpdate | undefined;
|
|
79
75
|
phone?: Phone | null | undefined;
|
|
80
|
-
email?: string |
|
|
76
|
+
email?: string | null | undefined;
|
|
81
77
|
address?: UpdateRepresentativeAddress | null | undefined;
|
|
82
78
|
birthDate?: UpdateRepresentativeBirthDate | null | undefined;
|
|
83
79
|
governmentID?: UpdateRepresentativeGovernmentID | null | undefined;
|
|
@@ -119,55 +115,6 @@ export function phoneFromJSON(
|
|
|
119
115
|
);
|
|
120
116
|
}
|
|
121
117
|
|
|
122
|
-
/** @internal */
|
|
123
|
-
export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z
|
|
124
|
-
.object({});
|
|
125
|
-
/** @internal */
|
|
126
|
-
export type Two$Outbound = {};
|
|
127
|
-
|
|
128
|
-
/** @internal */
|
|
129
|
-
export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
|
|
130
|
-
.object({});
|
|
131
|
-
|
|
132
|
-
export function twoToJSON(two: Two): string {
|
|
133
|
-
return JSON.stringify(Two$outboundSchema.parse(two));
|
|
134
|
-
}
|
|
135
|
-
export function twoFromJSON(
|
|
136
|
-
jsonString: string,
|
|
137
|
-
): SafeParseResult<Two, SDKValidationError> {
|
|
138
|
-
return safeParse(
|
|
139
|
-
jsonString,
|
|
140
|
-
(x) => Two$inboundSchema.parse(JSON.parse(x)),
|
|
141
|
-
`Failed to parse 'Two' from JSON`,
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/** @internal */
|
|
146
|
-
export const Email$inboundSchema: z.ZodType<Email, z.ZodTypeDef, unknown> = z
|
|
147
|
-
.union([z.string(), z.lazy(() => Two$inboundSchema)]);
|
|
148
|
-
/** @internal */
|
|
149
|
-
export type Email$Outbound = string | Two$Outbound;
|
|
150
|
-
|
|
151
|
-
/** @internal */
|
|
152
|
-
export const Email$outboundSchema: z.ZodType<
|
|
153
|
-
Email$Outbound,
|
|
154
|
-
z.ZodTypeDef,
|
|
155
|
-
Email
|
|
156
|
-
> = z.union([z.string(), z.lazy(() => Two$outboundSchema)]);
|
|
157
|
-
|
|
158
|
-
export function emailToJSON(email: Email): string {
|
|
159
|
-
return JSON.stringify(Email$outboundSchema.parse(email));
|
|
160
|
-
}
|
|
161
|
-
export function emailFromJSON(
|
|
162
|
-
jsonString: string,
|
|
163
|
-
): SafeParseResult<Email, SDKValidationError> {
|
|
164
|
-
return safeParse(
|
|
165
|
-
jsonString,
|
|
166
|
-
(x) => Email$inboundSchema.parse(JSON.parse(x)),
|
|
167
|
-
`Failed to parse 'Email' from JSON`,
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
118
|
/** @internal */
|
|
172
119
|
export const UpdateRepresentativeAddress$inboundSchema: z.ZodType<
|
|
173
120
|
UpdateRepresentativeAddress,
|
|
@@ -455,8 +402,7 @@ export const UpdateRepresentative$inboundSchema: z.ZodType<
|
|
|
455
402
|
> = z.object({
|
|
456
403
|
name: IndividualNameUpdate$inboundSchema.optional(),
|
|
457
404
|
phone: z.nullable(z.lazy(() => Phone$inboundSchema)).optional(),
|
|
458
|
-
email: z.nullable(z.
|
|
459
|
-
.optional(),
|
|
405
|
+
email: z.nullable(z.string()).optional(),
|
|
460
406
|
address: z.nullable(z.lazy(() => UpdateRepresentativeAddress$inboundSchema))
|
|
461
407
|
.optional(),
|
|
462
408
|
birthDate: z.nullable(
|
|
@@ -472,7 +418,7 @@ export const UpdateRepresentative$inboundSchema: z.ZodType<
|
|
|
472
418
|
export type UpdateRepresentative$Outbound = {
|
|
473
419
|
name?: IndividualNameUpdate$Outbound | undefined;
|
|
474
420
|
phone?: Phone$Outbound | null | undefined;
|
|
475
|
-
email?: string |
|
|
421
|
+
email?: string | null | undefined;
|
|
476
422
|
address?: UpdateRepresentativeAddress$Outbound | null | undefined;
|
|
477
423
|
birthDate?: UpdateRepresentativeBirthDate$Outbound | null | undefined;
|
|
478
424
|
governmentID?: UpdateRepresentativeGovernmentID$Outbound | null | undefined;
|
|
@@ -487,8 +433,7 @@ export const UpdateRepresentative$outboundSchema: z.ZodType<
|
|
|
487
433
|
> = z.object({
|
|
488
434
|
name: IndividualNameUpdate$outboundSchema.optional(),
|
|
489
435
|
phone: z.nullable(z.lazy(() => Phone$outboundSchema)).optional(),
|
|
490
|
-
email: z.nullable(z.
|
|
491
|
-
.optional(),
|
|
436
|
+
email: z.nullable(z.string()).optional(),
|
|
492
437
|
address: z.nullable(z.lazy(() => UpdateRepresentativeAddress$outboundSchema))
|
|
493
438
|
.optional(),
|
|
494
439
|
birthDate: z.nullable(
|
|
@@ -9,7 +9,7 @@ import { MoovError } from "./mooverror.js";
|
|
|
9
9
|
export type CreateInvoiceErrorData = {
|
|
10
10
|
customerAccountID?: string | undefined;
|
|
11
11
|
description?: string | undefined;
|
|
12
|
-
lineItems?: components.
|
|
12
|
+
lineItems?: components.CreateInvoiceLineItemsValidationError | undefined;
|
|
13
13
|
invoiceDate?: string | undefined;
|
|
14
14
|
dueDate?: string | undefined;
|
|
15
15
|
taxAmount?: components.AmountDecimalValidationError | undefined;
|
|
@@ -18,7 +18,7 @@ export type CreateInvoiceErrorData = {
|
|
|
18
18
|
export class CreateInvoiceError extends MoovError {
|
|
19
19
|
customerAccountID?: string | undefined;
|
|
20
20
|
description?: string | undefined;
|
|
21
|
-
lineItems?: components.
|
|
21
|
+
lineItems?: components.CreateInvoiceLineItemsValidationError | undefined;
|
|
22
22
|
invoiceDate?: string | undefined;
|
|
23
23
|
dueDate?: string | undefined;
|
|
24
24
|
taxAmount?: components.AmountDecimalValidationError | undefined;
|
|
@@ -56,7 +56,7 @@ export const CreateInvoiceError$inboundSchema: z.ZodType<
|
|
|
56
56
|
> = z.object({
|
|
57
57
|
customerAccountID: z.string().optional(),
|
|
58
58
|
description: z.string().optional(),
|
|
59
|
-
lineItems: components.
|
|
59
|
+
lineItems: components.CreateInvoiceLineItemsValidationError$inboundSchema
|
|
60
60
|
.optional(),
|
|
61
61
|
invoiceDate: z.string().optional(),
|
|
62
62
|
dueDate: z.string().optional(),
|
|
@@ -77,7 +77,9 @@ export const CreateInvoiceError$inboundSchema: z.ZodType<
|
|
|
77
77
|
export type CreateInvoiceError$Outbound = {
|
|
78
78
|
customerAccountID?: string | undefined;
|
|
79
79
|
description?: string | undefined;
|
|
80
|
-
lineItems?:
|
|
80
|
+
lineItems?:
|
|
81
|
+
| components.CreateInvoiceLineItemsValidationError$Outbound
|
|
82
|
+
| undefined;
|
|
81
83
|
invoiceDate?: string | undefined;
|
|
82
84
|
dueDate?: string | undefined;
|
|
83
85
|
taxAmount?: components.AmountDecimalValidationError$Outbound | undefined;
|
|
@@ -93,7 +95,7 @@ export const CreateInvoiceError$outboundSchema: z.ZodType<
|
|
|
93
95
|
.pipe(z.object({
|
|
94
96
|
customerAccountID: z.string().optional(),
|
|
95
97
|
description: z.string().optional(),
|
|
96
|
-
lineItems: components.
|
|
98
|
+
lineItems: components.CreateInvoiceLineItemsValidationError$outboundSchema
|
|
97
99
|
.optional(),
|
|
98
100
|
invoiceDate: z.string().optional(),
|
|
99
101
|
dueDate: z.string().optional(),
|
|
@@ -30,7 +30,7 @@ export type UpdateImageGlobals = {
|
|
|
30
30
|
export type UpdateImageRequest = {
|
|
31
31
|
accountID: string;
|
|
32
32
|
imageID: string;
|
|
33
|
-
|
|
33
|
+
imageUploadRequestMultiPart: components.ImageUploadRequestMultiPart;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
export type UpdateImageResponse = {
|
|
@@ -93,18 +93,18 @@ export const UpdateImageRequest$inboundSchema: z.ZodType<
|
|
|
93
93
|
> = z.object({
|
|
94
94
|
accountID: z.string(),
|
|
95
95
|
imageID: z.string(),
|
|
96
|
-
|
|
97
|
-
components.
|
|
96
|
+
ImageUploadRequestMultiPart:
|
|
97
|
+
components.ImageUploadRequestMultiPart$inboundSchema,
|
|
98
98
|
}).transform((v) => {
|
|
99
99
|
return remap$(v, {
|
|
100
|
-
"
|
|
100
|
+
"ImageUploadRequestMultiPart": "imageUploadRequestMultiPart",
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
103
|
/** @internal */
|
|
104
104
|
export type UpdateImageRequest$Outbound = {
|
|
105
105
|
accountID: string;
|
|
106
106
|
imageID: string;
|
|
107
|
-
|
|
107
|
+
ImageUploadRequestMultiPart: components.ImageUploadRequestMultiPart$Outbound;
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
/** @internal */
|
|
@@ -115,11 +115,11 @@ export const UpdateImageRequest$outboundSchema: z.ZodType<
|
|
|
115
115
|
> = z.object({
|
|
116
116
|
accountID: z.string(),
|
|
117
117
|
imageID: z.string(),
|
|
118
|
-
|
|
119
|
-
components.
|
|
118
|
+
imageUploadRequestMultiPart:
|
|
119
|
+
components.ImageUploadRequestMultiPart$outboundSchema,
|
|
120
120
|
}).transform((v) => {
|
|
121
121
|
return remap$(v, {
|
|
122
|
-
|
|
122
|
+
imageUploadRequestMultiPart: "ImageUploadRequestMultiPart",
|
|
123
123
|
});
|
|
124
124
|
});
|
|
125
125
|
|
package/src/sdk/images.ts
CHANGED
|
@@ -66,8 +66,7 @@ export class Images extends ClientSDK {
|
|
|
66
66
|
* Replace an existing image and, optionally, its metadata.
|
|
67
67
|
*
|
|
68
68
|
* This endpoint replaces the existing image with the new PNG, JPEG, or WebP. Omit
|
|
69
|
-
* the metadata form section to keep existing metadata,
|
|
70
|
-
* Duplicate images, and requests larger than 16MB will be rejected.
|
|
69
|
+
* the metadata form section to keep existing metadata. Duplicate images, and requests larger than 16MB will be rejected.
|
|
71
70
|
*/
|
|
72
71
|
async update(
|
|
73
72
|
request: operations.UpdateImageRequest,
|
|
@@ -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"}
|
package/types/unrecognized.js
CHANGED
|
@@ -15,8 +15,16 @@ function startCountingUnrecognized() {
|
|
|
15
15
|
refCount++;
|
|
16
16
|
const start = globalCount;
|
|
17
17
|
return {
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Ends counting and returns the delta.
|
|
20
|
+
* @param delta - If provided, only this amount is added to the parent counter
|
|
21
|
+
* (used for nested unions where we only want to record the winning option's count).
|
|
22
|
+
* If not provided, records all counts since start().
|
|
23
|
+
*/
|
|
24
|
+
end: (delta) => {
|
|
19
25
|
const count = globalCount - start;
|
|
26
|
+
// Reset globalCount back to start, then add only the specified delta
|
|
27
|
+
globalCount = start + (delta ?? count);
|
|
20
28
|
if (--refCount === 0)
|
|
21
29
|
globalCount = 0;
|
|
22
30
|
return count;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unrecognized.js","sourceRoot":"","sources":["../src/types/unrecognized.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAYH,
|
|
1
|
+
{"version":3,"file":"unrecognized.js","sourceRoot":"","sources":["../src/types/unrecognized.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAYH,8DAkBC;AAEQ,oCAAY;AA3BrB,SAAS,YAAY,CAAI,KAAQ;IAC/B,WAAW,EAAE,CAAC;IACd,OAAO,KAAwB,CAAC;AAClC,CAAC;AAED,IAAI,WAAW,GAAG,CAAC,CAAC;AACpB,IAAI,QAAQ,GAAG,CAAC,CAAC;AACjB,SAAgB,yBAAyB;IACvC,QAAQ,EAAE,CAAC;IACX,MAAM,KAAK,GAAG,WAAW,CAAC;IAC1B,OAAO;QACL;;;;;WAKG;QACH,GAAG,EAAE,CAAC,KAAc,EAAE,EAAE;YACtB,MAAM,KAAK,GAAG,WAAW,GAAG,KAAK,CAAC;YAClC,qEAAqE;YACrE,WAAW,GAAG,KAAK,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC;YACvC,IAAI,EAAE,QAAQ,KAAK,CAAC;gBAAE,WAAW,GAAG,CAAC,CAAC;YACtC,OAAO,KAAK,CAAC;QACf,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type ImageUpdateRequestMultiPartImage = {
|
|
5
|
-
fileName: string;
|
|
6
|
-
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* JSON-encoded metadata to update for the image.
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
*
|
|
13
|
-
* Omit this field if not updating metadata, or send `null` to clear existing metadata.
|
|
14
|
-
*/
|
|
15
|
-
export type Metadata = {
|
|
16
|
-
/**
|
|
17
|
-
* Alternative text for the image.
|
|
18
|
-
*/
|
|
19
|
-
altText?: string | undefined;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Multipart request body for updating an image and/or its metadata.
|
|
23
|
-
*/
|
|
24
|
-
export type ImageUpdateRequestMultiPart = {
|
|
25
|
-
image: ImageUpdateRequestMultiPartImage | Blob;
|
|
26
|
-
/**
|
|
27
|
-
* JSON-encoded metadata to update for the image.
|
|
28
|
-
*
|
|
29
|
-
* @remarks
|
|
30
|
-
*
|
|
31
|
-
* Omit this field if not updating metadata, or send `null` to clear existing metadata.
|
|
32
|
-
*/
|
|
33
|
-
metadata?: Metadata | null | undefined;
|
|
34
|
-
};
|
|
35
|
-
/** @internal */
|
|
36
|
-
export declare const ImageUpdateRequestMultiPartImage$inboundSchema: z.ZodType<ImageUpdateRequestMultiPartImage, z.ZodTypeDef, unknown>;
|
|
37
|
-
/** @internal */
|
|
38
|
-
export type ImageUpdateRequestMultiPartImage$Outbound = {
|
|
39
|
-
fileName: string;
|
|
40
|
-
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
41
|
-
};
|
|
42
|
-
/** @internal */
|
|
43
|
-
export declare const ImageUpdateRequestMultiPartImage$outboundSchema: z.ZodType<ImageUpdateRequestMultiPartImage$Outbound, z.ZodTypeDef, ImageUpdateRequestMultiPartImage>;
|
|
44
|
-
export declare function imageUpdateRequestMultiPartImageToJSON(imageUpdateRequestMultiPartImage: ImageUpdateRequestMultiPartImage): string;
|
|
45
|
-
export declare function imageUpdateRequestMultiPartImageFromJSON(jsonString: string): SafeParseResult<ImageUpdateRequestMultiPartImage, SDKValidationError>;
|
|
46
|
-
/** @internal */
|
|
47
|
-
export declare const Metadata$inboundSchema: z.ZodType<Metadata, z.ZodTypeDef, unknown>;
|
|
48
|
-
/** @internal */
|
|
49
|
-
export type Metadata$Outbound = {
|
|
50
|
-
altText?: string | undefined;
|
|
51
|
-
};
|
|
52
|
-
/** @internal */
|
|
53
|
-
export declare const Metadata$outboundSchema: z.ZodType<Metadata$Outbound, z.ZodTypeDef, Metadata>;
|
|
54
|
-
export declare function metadataToJSON(metadata: Metadata): string;
|
|
55
|
-
export declare function metadataFromJSON(jsonString: string): SafeParseResult<Metadata, SDKValidationError>;
|
|
56
|
-
/** @internal */
|
|
57
|
-
export declare const ImageUpdateRequestMultiPart$inboundSchema: z.ZodType<ImageUpdateRequestMultiPart, z.ZodTypeDef, unknown>;
|
|
58
|
-
/** @internal */
|
|
59
|
-
export type ImageUpdateRequestMultiPart$Outbound = {
|
|
60
|
-
image: ImageUpdateRequestMultiPartImage$Outbound | Blob;
|
|
61
|
-
metadata?: Metadata$Outbound | null | undefined;
|
|
62
|
-
};
|
|
63
|
-
/** @internal */
|
|
64
|
-
export declare const ImageUpdateRequestMultiPart$outboundSchema: z.ZodType<ImageUpdateRequestMultiPart$Outbound, z.ZodTypeDef, ImageUpdateRequestMultiPart>;
|
|
65
|
-
export declare function imageUpdateRequestMultiPartToJSON(imageUpdateRequestMultiPart: ImageUpdateRequestMultiPart): string;
|
|
66
|
-
export declare function imageUpdateRequestMultiPartFromJSON(jsonString: string): SafeParseResult<ImageUpdateRequestMultiPart, SDKValidationError>;
|
|
67
|
-
//# sourceMappingURL=imageupdaterequestmultipart.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"imageupdaterequestmultipart.d.ts","sourceRoot":"","sources":["../../src/models/components/imageupdaterequestmultipart.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,gCAAgC,GAAG;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,GAAG,WAAW,GAAG,UAAU,CAAC;CACvE,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,gCAAgC,GAAG,IAAI,CAAC;IAC/C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,yCAAyC,GAAG;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,GAAG,WAAW,GAAG,UAAU,CAAC;CACvE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,yCAAyC,EACzC,CAAC,CAAC,UAAU,EACZ,gCAAgC,CAShC,CAAC;AAEH,wBAAgB,sCAAsC,CACpD,gCAAgC,EAAE,gCAAgC,GACjE,MAAM,CAMR;AACD,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gCAAgC,EAAE,kBAAkB,CAAC,CAMvE;AAED,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAC5C,QAAQ,EACR,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,QAAQ,CAGR,CAAC;AAEH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEzD;AACD,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAM/C;AAED,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,KAAK,EAAE,yCAAyC,GAAG,IAAI,CAAC;IACxD,QAAQ,CAAC,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAC;CACjD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAM3B,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AACD,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
|