@moovio/sdk 0.14.14 → 0.14.16
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 +32 -2
- package/bin/mcp-server.js +419 -392
- package/bin/mcp-server.js.map +31 -32
- package/docs/sdks/accounts/README.md +19 -10
- package/docs/sdks/accountterminalapplications/README.md +4 -0
- package/docs/sdks/adjustments/README.md +2 -0
- package/docs/sdks/applepay/README.md +5 -0
- package/docs/sdks/authentication/README.md +2 -0
- package/docs/sdks/avatars/README.md +1 -0
- package/docs/sdks/bankaccounts/README.md +9 -0
- package/docs/sdks/branding/README.md +4 -0
- package/docs/sdks/capabilities/README.md +4 -0
- package/docs/sdks/cardissuing/README.md +5 -0
- package/docs/sdks/cards/README.md +5 -0
- package/docs/sdks/disputes/README.md +11 -0
- package/docs/sdks/endtoendencryption/README.md +2 -0
- package/docs/sdks/enrichedaddress/README.md +1 -0
- package/docs/sdks/enrichedprofile/README.md +1 -0
- package/docs/sdks/feeplans/README.md +7 -0
- package/docs/sdks/files/README.md +3 -0
- package/docs/sdks/industries/README.md +1 -0
- package/docs/sdks/institutions/README.md +2 -0
- package/docs/sdks/issuingtransactions/README.md +5 -0
- package/docs/sdks/onboarding/README.md +4 -0
- package/docs/sdks/paymentlinks/README.md +6 -0
- package/docs/sdks/paymentmethods/README.md +2 -0
- package/docs/sdks/ping/README.md +1 -0
- package/docs/sdks/receipts/README.md +2 -0
- package/docs/sdks/representatives/README.md +5 -0
- package/docs/sdks/scheduling/README.md +6 -0
- package/docs/sdks/support/README.md +35 -0
- package/docs/sdks/sweeps/README.md +6 -0
- package/docs/sdks/terminalapplications/README.md +5 -0
- package/docs/sdks/transfers/README.md +11 -0
- package/docs/sdks/underwriting/README.md +3 -0
- package/docs/sdks/wallets/README.md +2 -0
- package/docs/sdks/wallettransactions/README.md +2 -0
- package/examples/package-lock.json +1 -1
- package/funcs/accountsCreate.d.ts +1 -1
- package/funcs/accountsCreate.d.ts.map +1 -1
- package/funcs/accountsCreate.js +1 -3
- package/funcs/accountsCreate.js.map +1 -1
- package/funcs/accountsUpdate.d.ts +1 -1
- package/funcs/accountsUpdate.d.ts.map +1 -1
- package/funcs/accountsUpdate.js +1 -3
- package/funcs/accountsUpdate.js.map +1 -1
- package/funcs/supportCreateTicket.d.ts +3 -0
- package/funcs/supportCreateTicket.d.ts.map +1 -1
- package/funcs/supportCreateTicket.js +3 -0
- package/funcs/supportCreateTicket.js.map +1 -1
- package/funcs/supportGetTicket.d.ts +3 -0
- package/funcs/supportGetTicket.d.ts.map +1 -1
- package/funcs/supportGetTicket.js +3 -0
- package/funcs/supportGetTicket.js.map +1 -1
- package/funcs/supportListTicketMessages.d.ts +3 -0
- package/funcs/supportListTicketMessages.d.ts.map +1 -1
- package/funcs/supportListTicketMessages.js +3 -0
- package/funcs/supportListTicketMessages.js.map +1 -1
- package/funcs/supportListTickets.d.ts +3 -0
- package/funcs/supportListTickets.d.ts.map +1 -1
- package/funcs/supportListTickets.js +3 -0
- package/funcs/supportListTickets.js.map +1 -1
- package/funcs/supportUpdateTicket.d.ts +3 -0
- package/funcs/supportUpdateTicket.d.ts.map +1 -1
- package/funcs/supportUpdateTicket.js +3 -0
- package/funcs/supportUpdateTicket.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/tools/supportCreateTicket.d.ts.map +1 -1
- package/mcp-server/tools/supportCreateTicket.js +4 -1
- package/mcp-server/tools/supportCreateTicket.js.map +1 -1
- package/mcp-server/tools/supportGetTicket.d.ts.map +1 -1
- package/mcp-server/tools/supportGetTicket.js +4 -1
- package/mcp-server/tools/supportGetTicket.js.map +1 -1
- package/mcp-server/tools/supportListTicketMessages.d.ts.map +1 -1
- package/mcp-server/tools/supportListTicketMessages.js +4 -1
- package/mcp-server/tools/supportListTicketMessages.js.map +1 -1
- package/mcp-server/tools/supportListTickets.d.ts.map +1 -1
- package/mcp-server/tools/supportListTickets.js +4 -1
- package/mcp-server/tools/supportListTickets.js.map +1 -1
- package/mcp-server/tools/supportUpdateTicket.d.ts.map +1 -1
- package/mcp-server/tools/supportUpdateTicket.js +4 -1
- package/mcp-server/tools/supportUpdateTicket.js.map +1 -1
- package/models/components/index.d.ts +1 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -2
- package/models/components/index.js.map +1 -1
- package/models/components/submissionintent.d.ts +28 -0
- package/models/components/submissionintent.d.ts.map +1 -0
- package/models/components/submissionintent.js +60 -0
- package/models/components/submissionintent.js.map +1 -0
- package/models/components/upsertunderwriting.d.ts +3 -0
- package/models/components/upsertunderwriting.d.ts.map +1 -1
- package/models/components/upsertunderwriting.js +3 -0
- package/models/components/upsertunderwriting.js.map +1 -1
- package/models/errors/createaccounterror.d.ts +64 -0
- package/models/errors/createaccounterror.d.ts.map +1 -0
- package/models/{components → errors}/createaccounterror.js +52 -24
- package/models/errors/createaccounterror.js.map +1 -0
- package/models/errors/index.d.ts +2 -2
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +2 -2
- package/models/errors/index.js.map +1 -1
- package/models/errors/patchaccounterror.d.ts +52 -0
- package/models/errors/patchaccounterror.d.ts.map +1 -0
- package/models/{components → errors}/patchaccounterror.js +48 -24
- package/models/errors/patchaccounterror.js.map +1 -0
- package/package.json +1 -1
- package/sdk/support.d.ts +15 -0
- package/sdk/support.d.ts.map +1 -1
- package/sdk/support.js +15 -0
- package/sdk/support.js.map +1 -1
- package/src/funcs/accountsCreate.ts +4 -6
- package/src/funcs/accountsUpdate.ts +4 -6
- package/src/funcs/supportCreateTicket.ts +3 -0
- package/src/funcs/supportGetTicket.ts +3 -0
- package/src/funcs/supportListTicketMessages.ts +3 -0
- package/src/funcs/supportListTickets.ts +3 -0
- package/src/funcs/supportUpdateTicket.ts +3 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/supportCreateTicket.ts +4 -1
- package/src/mcp-server/tools/supportGetTicket.ts +4 -1
- package/src/mcp-server/tools/supportListTicketMessages.ts +4 -1
- package/src/mcp-server/tools/supportListTickets.ts +4 -1
- package/src/mcp-server/tools/supportUpdateTicket.ts +4 -1
- package/src/models/components/index.ts +1 -2
- package/src/models/components/submissionintent.ts +33 -0
- package/src/models/components/upsertunderwriting.ts +9 -0
- package/src/models/errors/createaccounterror.ts +122 -0
- package/src/models/errors/index.ts +2 -2
- package/src/models/errors/patchaccounterror.ts +110 -0
- package/src/sdk/support.ts +15 -0
- package/models/components/createaccounterror.d.ts +0 -51
- package/models/components/createaccounterror.d.ts.map +0 -1
- package/models/components/createaccounterror.js.map +0 -1
- package/models/components/patchaccounterror.d.ts +0 -43
- package/models/components/patchaccounterror.d.ts.map +0 -1
- package/models/components/patchaccounterror.js.map +0 -1
- package/models/errors/createaccount.d.ts +0 -43
- package/models/errors/createaccount.d.ts.map +0 -1
- package/models/errors/createaccount.js +0 -89
- package/models/errors/createaccount.js.map +0 -1
- package/models/errors/updateaccount.d.ts +0 -43
- package/models/errors/updateaccount.d.ts.map +0 -1
- package/models/errors/updateaccount.js +0 -89
- package/models/errors/updateaccount.js.map +0 -1
- package/src/models/components/createaccounterror.ts +0 -118
- package/src/models/components/patchaccounterror.ts +0 -110
- package/src/models/errors/createaccount.ts +0 -86
- package/src/models/errors/updateaccount.ts +0 -86
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
CreateAccountSettings,
|
|
11
|
-
CreateAccountSettings$inboundSchema,
|
|
12
|
-
CreateAccountSettings$Outbound,
|
|
13
|
-
CreateAccountSettings$outboundSchema,
|
|
14
|
-
} from "./createaccountsettings.js";
|
|
15
|
-
import {
|
|
16
|
-
CreateProfileError,
|
|
17
|
-
CreateProfileError$inboundSchema,
|
|
18
|
-
CreateProfileError$Outbound,
|
|
19
|
-
CreateProfileError$outboundSchema,
|
|
20
|
-
} from "./createprofileerror.js";
|
|
21
|
-
import {
|
|
22
|
-
CustomerSupportError,
|
|
23
|
-
CustomerSupportError$inboundSchema,
|
|
24
|
-
CustomerSupportError$Outbound,
|
|
25
|
-
CustomerSupportError$outboundSchema,
|
|
26
|
-
} from "./customersupporterror.js";
|
|
27
|
-
import {
|
|
28
|
-
TermsOfServiceError,
|
|
29
|
-
TermsOfServiceError$inboundSchema,
|
|
30
|
-
TermsOfServiceError$Outbound,
|
|
31
|
-
TermsOfServiceError$outboundSchema,
|
|
32
|
-
} from "./termsofserviceerror.js";
|
|
33
|
-
|
|
34
|
-
export type CreateAccountError = {
|
|
35
|
-
accountType?: string | undefined;
|
|
36
|
-
profile?: CreateProfileError | undefined;
|
|
37
|
-
metadata?: string | undefined;
|
|
38
|
-
termsOfService?: TermsOfServiceError | undefined;
|
|
39
|
-
foreignID?: string | undefined;
|
|
40
|
-
customerSupport?: CustomerSupportError | undefined;
|
|
41
|
-
settings?: CreateAccountSettings | undefined;
|
|
42
|
-
capabilities?: { [k: string]: string } | undefined;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const CreateAccountError$inboundSchema: z.ZodType<
|
|
47
|
-
CreateAccountError,
|
|
48
|
-
z.ZodTypeDef,
|
|
49
|
-
unknown
|
|
50
|
-
> = z.object({
|
|
51
|
-
accountType: z.string().optional(),
|
|
52
|
-
profile: CreateProfileError$inboundSchema.optional(),
|
|
53
|
-
metadata: z.string().optional(),
|
|
54
|
-
termsOfService: TermsOfServiceError$inboundSchema.optional(),
|
|
55
|
-
foreignID: z.string().optional(),
|
|
56
|
-
customerSupport: CustomerSupportError$inboundSchema.optional(),
|
|
57
|
-
settings: CreateAccountSettings$inboundSchema.optional(),
|
|
58
|
-
capabilities: z.record(z.string()).optional(),
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
/** @internal */
|
|
62
|
-
export type CreateAccountError$Outbound = {
|
|
63
|
-
accountType?: string | undefined;
|
|
64
|
-
profile?: CreateProfileError$Outbound | undefined;
|
|
65
|
-
metadata?: string | undefined;
|
|
66
|
-
termsOfService?: TermsOfServiceError$Outbound | undefined;
|
|
67
|
-
foreignID?: string | undefined;
|
|
68
|
-
customerSupport?: CustomerSupportError$Outbound | undefined;
|
|
69
|
-
settings?: CreateAccountSettings$Outbound | undefined;
|
|
70
|
-
capabilities?: { [k: string]: string } | undefined;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
/** @internal */
|
|
74
|
-
export const CreateAccountError$outboundSchema: z.ZodType<
|
|
75
|
-
CreateAccountError$Outbound,
|
|
76
|
-
z.ZodTypeDef,
|
|
77
|
-
CreateAccountError
|
|
78
|
-
> = z.object({
|
|
79
|
-
accountType: z.string().optional(),
|
|
80
|
-
profile: CreateProfileError$outboundSchema.optional(),
|
|
81
|
-
metadata: z.string().optional(),
|
|
82
|
-
termsOfService: TermsOfServiceError$outboundSchema.optional(),
|
|
83
|
-
foreignID: z.string().optional(),
|
|
84
|
-
customerSupport: CustomerSupportError$outboundSchema.optional(),
|
|
85
|
-
settings: CreateAccountSettings$outboundSchema.optional(),
|
|
86
|
-
capabilities: z.record(z.string()).optional(),
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
92
|
-
*/
|
|
93
|
-
export namespace CreateAccountError$ {
|
|
94
|
-
/** @deprecated use `CreateAccountError$inboundSchema` instead. */
|
|
95
|
-
export const inboundSchema = CreateAccountError$inboundSchema;
|
|
96
|
-
/** @deprecated use `CreateAccountError$outboundSchema` instead. */
|
|
97
|
-
export const outboundSchema = CreateAccountError$outboundSchema;
|
|
98
|
-
/** @deprecated use `CreateAccountError$Outbound` instead. */
|
|
99
|
-
export type Outbound = CreateAccountError$Outbound;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export function createAccountErrorToJSON(
|
|
103
|
-
createAccountError: CreateAccountError,
|
|
104
|
-
): string {
|
|
105
|
-
return JSON.stringify(
|
|
106
|
-
CreateAccountError$outboundSchema.parse(createAccountError),
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export function createAccountErrorFromJSON(
|
|
111
|
-
jsonString: string,
|
|
112
|
-
): SafeParseResult<CreateAccountError, SDKValidationError> {
|
|
113
|
-
return safeParse(
|
|
114
|
-
jsonString,
|
|
115
|
-
(x) => CreateAccountError$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
-
`Failed to parse 'CreateAccountError' from JSON`,
|
|
117
|
-
);
|
|
118
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
CreateAccountSettings,
|
|
11
|
-
CreateAccountSettings$inboundSchema,
|
|
12
|
-
CreateAccountSettings$Outbound,
|
|
13
|
-
CreateAccountSettings$outboundSchema,
|
|
14
|
-
} from "./createaccountsettings.js";
|
|
15
|
-
import {
|
|
16
|
-
CreateProfileError,
|
|
17
|
-
CreateProfileError$inboundSchema,
|
|
18
|
-
CreateProfileError$Outbound,
|
|
19
|
-
CreateProfileError$outboundSchema,
|
|
20
|
-
} from "./createprofileerror.js";
|
|
21
|
-
import {
|
|
22
|
-
CustomerSupportError,
|
|
23
|
-
CustomerSupportError$inboundSchema,
|
|
24
|
-
CustomerSupportError$Outbound,
|
|
25
|
-
CustomerSupportError$outboundSchema,
|
|
26
|
-
} from "./customersupporterror.js";
|
|
27
|
-
import {
|
|
28
|
-
TermsOfServiceError,
|
|
29
|
-
TermsOfServiceError$inboundSchema,
|
|
30
|
-
TermsOfServiceError$Outbound,
|
|
31
|
-
TermsOfServiceError$outboundSchema,
|
|
32
|
-
} from "./termsofserviceerror.js";
|
|
33
|
-
|
|
34
|
-
export type PatchAccountError = {
|
|
35
|
-
profile?: CreateProfileError | undefined;
|
|
36
|
-
metadata?: string | undefined;
|
|
37
|
-
termsOfService?: TermsOfServiceError | undefined;
|
|
38
|
-
foreignID?: string | undefined;
|
|
39
|
-
customerSupport?: CustomerSupportError | undefined;
|
|
40
|
-
settings?: CreateAccountSettings | undefined;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
/** @internal */
|
|
44
|
-
export const PatchAccountError$inboundSchema: z.ZodType<
|
|
45
|
-
PatchAccountError,
|
|
46
|
-
z.ZodTypeDef,
|
|
47
|
-
unknown
|
|
48
|
-
> = z.object({
|
|
49
|
-
profile: CreateProfileError$inboundSchema.optional(),
|
|
50
|
-
metadata: z.string().optional(),
|
|
51
|
-
termsOfService: TermsOfServiceError$inboundSchema.optional(),
|
|
52
|
-
foreignID: z.string().optional(),
|
|
53
|
-
customerSupport: CustomerSupportError$inboundSchema.optional(),
|
|
54
|
-
settings: CreateAccountSettings$inboundSchema.optional(),
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
/** @internal */
|
|
58
|
-
export type PatchAccountError$Outbound = {
|
|
59
|
-
profile?: CreateProfileError$Outbound | undefined;
|
|
60
|
-
metadata?: string | undefined;
|
|
61
|
-
termsOfService?: TermsOfServiceError$Outbound | undefined;
|
|
62
|
-
foreignID?: string | undefined;
|
|
63
|
-
customerSupport?: CustomerSupportError$Outbound | undefined;
|
|
64
|
-
settings?: CreateAccountSettings$Outbound | undefined;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
/** @internal */
|
|
68
|
-
export const PatchAccountError$outboundSchema: z.ZodType<
|
|
69
|
-
PatchAccountError$Outbound,
|
|
70
|
-
z.ZodTypeDef,
|
|
71
|
-
PatchAccountError
|
|
72
|
-
> = z.object({
|
|
73
|
-
profile: CreateProfileError$outboundSchema.optional(),
|
|
74
|
-
metadata: z.string().optional(),
|
|
75
|
-
termsOfService: TermsOfServiceError$outboundSchema.optional(),
|
|
76
|
-
foreignID: z.string().optional(),
|
|
77
|
-
customerSupport: CustomerSupportError$outboundSchema.optional(),
|
|
78
|
-
settings: CreateAccountSettings$outboundSchema.optional(),
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
-
*/
|
|
85
|
-
export namespace PatchAccountError$ {
|
|
86
|
-
/** @deprecated use `PatchAccountError$inboundSchema` instead. */
|
|
87
|
-
export const inboundSchema = PatchAccountError$inboundSchema;
|
|
88
|
-
/** @deprecated use `PatchAccountError$outboundSchema` instead. */
|
|
89
|
-
export const outboundSchema = PatchAccountError$outboundSchema;
|
|
90
|
-
/** @deprecated use `PatchAccountError$Outbound` instead. */
|
|
91
|
-
export type Outbound = PatchAccountError$Outbound;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export function patchAccountErrorToJSON(
|
|
95
|
-
patchAccountError: PatchAccountError,
|
|
96
|
-
): string {
|
|
97
|
-
return JSON.stringify(
|
|
98
|
-
PatchAccountError$outboundSchema.parse(patchAccountError),
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export function patchAccountErrorFromJSON(
|
|
103
|
-
jsonString: string,
|
|
104
|
-
): SafeParseResult<PatchAccountError, SDKValidationError> {
|
|
105
|
-
return safeParse(
|
|
106
|
-
jsonString,
|
|
107
|
-
(x) => PatchAccountError$inboundSchema.parse(JSON.parse(x)),
|
|
108
|
-
`Failed to parse 'PatchAccountError' from JSON`,
|
|
109
|
-
);
|
|
110
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import * as components from "../components/index.js";
|
|
7
|
-
import { MoovError } from "./mooverror.js";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields.
|
|
11
|
-
*/
|
|
12
|
-
export type CreateAccountResponseBodyData = {
|
|
13
|
-
error: components.CreateAccountError;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields.
|
|
18
|
-
*/
|
|
19
|
-
export class CreateAccountResponseBody extends MoovError {
|
|
20
|
-
error: components.CreateAccountError;
|
|
21
|
-
|
|
22
|
-
/** The original data that was passed to this error instance. */
|
|
23
|
-
data$: CreateAccountResponseBodyData;
|
|
24
|
-
|
|
25
|
-
constructor(
|
|
26
|
-
err: CreateAccountResponseBodyData,
|
|
27
|
-
httpMeta: { response: Response; request: Request; body: string },
|
|
28
|
-
) {
|
|
29
|
-
const message = "message" in err && typeof err.message === "string"
|
|
30
|
-
? err.message
|
|
31
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
32
|
-
super(message, httpMeta);
|
|
33
|
-
this.data$ = err;
|
|
34
|
-
this.error = err.error;
|
|
35
|
-
|
|
36
|
-
this.name = "CreateAccountResponseBody";
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const CreateAccountResponseBody$inboundSchema: z.ZodType<
|
|
42
|
-
CreateAccountResponseBody,
|
|
43
|
-
z.ZodTypeDef,
|
|
44
|
-
unknown
|
|
45
|
-
> = z.object({
|
|
46
|
-
error: components.CreateAccountError$inboundSchema,
|
|
47
|
-
request$: z.instanceof(Request),
|
|
48
|
-
response$: z.instanceof(Response),
|
|
49
|
-
body$: z.string(),
|
|
50
|
-
})
|
|
51
|
-
.transform((v) => {
|
|
52
|
-
return new CreateAccountResponseBody(v, {
|
|
53
|
-
request: v.request$,
|
|
54
|
-
response: v.response$,
|
|
55
|
-
body: v.body$,
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
/** @internal */
|
|
60
|
-
export type CreateAccountResponseBody$Outbound = {
|
|
61
|
-
error: components.CreateAccountError$Outbound;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
/** @internal */
|
|
65
|
-
export const CreateAccountResponseBody$outboundSchema: z.ZodType<
|
|
66
|
-
CreateAccountResponseBody$Outbound,
|
|
67
|
-
z.ZodTypeDef,
|
|
68
|
-
CreateAccountResponseBody
|
|
69
|
-
> = z.instanceof(CreateAccountResponseBody)
|
|
70
|
-
.transform(v => v.data$)
|
|
71
|
-
.pipe(z.object({
|
|
72
|
-
error: components.CreateAccountError$outboundSchema,
|
|
73
|
-
}));
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
-
*/
|
|
79
|
-
export namespace CreateAccountResponseBody$ {
|
|
80
|
-
/** @deprecated use `CreateAccountResponseBody$inboundSchema` instead. */
|
|
81
|
-
export const inboundSchema = CreateAccountResponseBody$inboundSchema;
|
|
82
|
-
/** @deprecated use `CreateAccountResponseBody$outboundSchema` instead. */
|
|
83
|
-
export const outboundSchema = CreateAccountResponseBody$outboundSchema;
|
|
84
|
-
/** @deprecated use `CreateAccountResponseBody$Outbound` instead. */
|
|
85
|
-
export type Outbound = CreateAccountResponseBody$Outbound;
|
|
86
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import * as components from "../components/index.js";
|
|
7
|
-
import { MoovError } from "./mooverror.js";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields.
|
|
11
|
-
*/
|
|
12
|
-
export type UpdateAccountResponseBodyData = {
|
|
13
|
-
error: components.PatchAccountError;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields.
|
|
18
|
-
*/
|
|
19
|
-
export class UpdateAccountResponseBody extends MoovError {
|
|
20
|
-
error: components.PatchAccountError;
|
|
21
|
-
|
|
22
|
-
/** The original data that was passed to this error instance. */
|
|
23
|
-
data$: UpdateAccountResponseBodyData;
|
|
24
|
-
|
|
25
|
-
constructor(
|
|
26
|
-
err: UpdateAccountResponseBodyData,
|
|
27
|
-
httpMeta: { response: Response; request: Request; body: string },
|
|
28
|
-
) {
|
|
29
|
-
const message = "message" in err && typeof err.message === "string"
|
|
30
|
-
? err.message
|
|
31
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
32
|
-
super(message, httpMeta);
|
|
33
|
-
this.data$ = err;
|
|
34
|
-
this.error = err.error;
|
|
35
|
-
|
|
36
|
-
this.name = "UpdateAccountResponseBody";
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const UpdateAccountResponseBody$inboundSchema: z.ZodType<
|
|
42
|
-
UpdateAccountResponseBody,
|
|
43
|
-
z.ZodTypeDef,
|
|
44
|
-
unknown
|
|
45
|
-
> = z.object({
|
|
46
|
-
error: components.PatchAccountError$inboundSchema,
|
|
47
|
-
request$: z.instanceof(Request),
|
|
48
|
-
response$: z.instanceof(Response),
|
|
49
|
-
body$: z.string(),
|
|
50
|
-
})
|
|
51
|
-
.transform((v) => {
|
|
52
|
-
return new UpdateAccountResponseBody(v, {
|
|
53
|
-
request: v.request$,
|
|
54
|
-
response: v.response$,
|
|
55
|
-
body: v.body$,
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
/** @internal */
|
|
60
|
-
export type UpdateAccountResponseBody$Outbound = {
|
|
61
|
-
error: components.PatchAccountError$Outbound;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
/** @internal */
|
|
65
|
-
export const UpdateAccountResponseBody$outboundSchema: z.ZodType<
|
|
66
|
-
UpdateAccountResponseBody$Outbound,
|
|
67
|
-
z.ZodTypeDef,
|
|
68
|
-
UpdateAccountResponseBody
|
|
69
|
-
> = z.instanceof(UpdateAccountResponseBody)
|
|
70
|
-
.transform(v => v.data$)
|
|
71
|
-
.pipe(z.object({
|
|
72
|
-
error: components.PatchAccountError$outboundSchema,
|
|
73
|
-
}));
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
-
*/
|
|
79
|
-
export namespace UpdateAccountResponseBody$ {
|
|
80
|
-
/** @deprecated use `UpdateAccountResponseBody$inboundSchema` instead. */
|
|
81
|
-
export const inboundSchema = UpdateAccountResponseBody$inboundSchema;
|
|
82
|
-
/** @deprecated use `UpdateAccountResponseBody$outboundSchema` instead. */
|
|
83
|
-
export const outboundSchema = UpdateAccountResponseBody$outboundSchema;
|
|
84
|
-
/** @deprecated use `UpdateAccountResponseBody$Outbound` instead. */
|
|
85
|
-
export type Outbound = UpdateAccountResponseBody$Outbound;
|
|
86
|
-
}
|