@moovio/sdk 0.10.16 → 0.11.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/bin/mcp-server.js +864 -8
- package/bin/mcp-server.js.map +42 -8
- 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/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/models/components/dispute.d.ts +2 -0
- package/models/components/dispute.d.ts.map +1 -1
- package/models/components/dispute.js +2 -0
- package/models/components/dispute.js.map +1 -1
- package/models/components/index.d.ts +34 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +34 -0
- package/models/components/index.js.map +1 -1
- package/models/components/webhookdata.d.ts +57 -0
- package/models/components/webhookdata.d.ts.map +1 -0
- package/models/components/webhookdata.js +154 -0
- package/models/components/webhookdata.js.map +1 -0
- package/models/components/webhookdataaccountcreated.d.ts +31 -0
- package/models/components/webhookdataaccountcreated.d.ts.map +1 -0
- package/models/components/webhookdataaccountcreated.js +71 -0
- package/models/components/webhookdataaccountcreated.js.map +1 -0
- package/models/components/webhookdataaccountdeleted.d.ts +31 -0
- package/models/components/webhookdataaccountdeleted.d.ts.map +1 -0
- package/models/components/webhookdataaccountdeleted.js +71 -0
- package/models/components/webhookdataaccountdeleted.js.map +1 -0
- package/models/components/webhookdataaccountupdated.d.ts +31 -0
- package/models/components/webhookdataaccountupdated.d.ts.map +1 -0
- package/models/components/webhookdataaccountupdated.js +71 -0
- package/models/components/webhookdataaccountupdated.js.map +1 -0
- package/models/components/webhookdatabalanceupdated.d.ts +31 -0
- package/models/components/webhookdatabalanceupdated.d.ts.map +1 -0
- package/models/components/webhookdatabalanceupdated.js +71 -0
- package/models/components/webhookdatabalanceupdated.js.map +1 -0
- package/models/components/webhookdatabankaccountcreated.d.ts +31 -0
- package/models/components/webhookdatabankaccountcreated.d.ts.map +1 -0
- package/models/components/webhookdatabankaccountcreated.js +71 -0
- package/models/components/webhookdatabankaccountcreated.js.map +1 -0
- package/models/components/webhookdatabankaccountdeleted.d.ts +31 -0
- package/models/components/webhookdatabankaccountdeleted.d.ts.map +1 -0
- package/models/components/webhookdatabankaccountdeleted.js +71 -0
- package/models/components/webhookdatabankaccountdeleted.js.map +1 -0
- package/models/components/webhookdatabankaccountupdated.d.ts +46 -0
- package/models/components/webhookdatabankaccountupdated.d.ts.map +1 -0
- package/models/components/webhookdatabankaccountupdated.js +80 -0
- package/models/components/webhookdatabankaccountupdated.js.map +1 -0
- package/models/components/webhookdatacancellationcreated.d.ts +34 -0
- package/models/components/webhookdatacancellationcreated.d.ts.map +1 -0
- package/models/components/webhookdatacancellationcreated.js +74 -0
- package/models/components/webhookdatacancellationcreated.js.map +1 -0
- package/models/components/webhookdatacancellationupdated.d.ts +34 -0
- package/models/components/webhookdatacancellationupdated.d.ts.map +1 -0
- package/models/components/webhookdatacancellationupdated.js +74 -0
- package/models/components/webhookdatacancellationupdated.js.map +1 -0
- package/models/components/webhookdatacapabilityrequested.d.ts +41 -0
- package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -0
- package/models/components/webhookdatacapabilityrequested.js +74 -0
- package/models/components/webhookdatacapabilityrequested.js.map +1 -0
- package/models/components/webhookdatacapabilityupdated.d.ts +47 -0
- package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -0
- package/models/components/webhookdatacapabilityupdated.js +77 -0
- package/models/components/webhookdatacapabilityupdated.js.map +1 -0
- package/models/components/webhookdatacardautoupdated.d.ts +37 -0
- package/models/components/webhookdatacardautoupdated.d.ts.map +1 -0
- package/models/components/webhookdatacardautoupdated.js +74 -0
- package/models/components/webhookdatacardautoupdated.js.map +1 -0
- package/models/components/webhookdatadisputecreated.d.ts +51 -0
- package/models/components/webhookdatadisputecreated.d.ts.map +1 -0
- package/models/components/webhookdatadisputecreated.js +81 -0
- package/models/components/webhookdatadisputecreated.js.map +1 -0
- package/models/components/webhookdatadisputeupdated.d.ts +51 -0
- package/models/components/webhookdatadisputeupdated.d.ts.map +1 -0
- package/models/components/webhookdatadisputeupdated.js +81 -0
- package/models/components/webhookdatadisputeupdated.js.map +1 -0
- package/models/components/webhookdatanetworkidupdated.d.ts +39 -0
- package/models/components/webhookdatanetworkidupdated.d.ts.map +1 -0
- package/models/components/webhookdatanetworkidupdated.js +80 -0
- package/models/components/webhookdatanetworkidupdated.js.map +1 -0
- package/models/components/webhookdatapaymentmethoddisabled.d.ts +33 -0
- package/models/components/webhookdatapaymentmethoddisabled.d.ts.map +1 -0
- package/models/components/webhookdatapaymentmethoddisabled.js +73 -0
- package/models/components/webhookdatapaymentmethoddisabled.js.map +1 -0
- package/models/components/webhookdatapaymentmethodenabled.d.ts +33 -0
- package/models/components/webhookdatapaymentmethodenabled.d.ts.map +1 -0
- package/models/components/webhookdatapaymentmethodenabled.js +73 -0
- package/models/components/webhookdatapaymentmethodenabled.js.map +1 -0
- package/models/components/webhookdatarefundcreated.d.ts +33 -0
- package/models/components/webhookdatarefundcreated.d.ts.map +1 -0
- package/models/components/webhookdatarefundcreated.js +73 -0
- package/models/components/webhookdatarefundcreated.js.map +1 -0
- package/models/components/webhookdatarefundupdated.d.ts +36 -0
- package/models/components/webhookdatarefundupdated.d.ts.map +1 -0
- package/models/components/webhookdatarefundupdated.js +76 -0
- package/models/components/webhookdatarefundupdated.js.map +1 -0
- package/models/components/webhookdatarepresentativecreated.d.ts +31 -0
- package/models/components/webhookdatarepresentativecreated.d.ts.map +1 -0
- package/models/components/webhookdatarepresentativecreated.js +71 -0
- package/models/components/webhookdatarepresentativecreated.js.map +1 -0
- package/models/components/webhookdatarepresentativedisabled.d.ts +31 -0
- package/models/components/webhookdatarepresentativedisabled.d.ts.map +1 -0
- package/models/components/webhookdatarepresentativedisabled.js +71 -0
- package/models/components/webhookdatarepresentativedisabled.js.map +1 -0
- package/models/components/webhookdatarepresentativeupdated.d.ts +31 -0
- package/models/components/webhookdatarepresentativeupdated.d.ts.map +1 -0
- package/models/components/webhookdatarepresentativeupdated.js +71 -0
- package/models/components/webhookdatarepresentativeupdated.js.map +1 -0
- package/models/components/webhookdatasweepcreated.d.ts +31 -0
- package/models/components/webhookdatasweepcreated.d.ts.map +1 -0
- package/models/components/webhookdatasweepcreated.js +71 -0
- package/models/components/webhookdatasweepcreated.js.map +1 -0
- package/models/components/webhookdatasweepupdated.d.ts +36 -0
- package/models/components/webhookdatasweepupdated.d.ts.map +1 -0
- package/models/components/webhookdatasweepupdated.js +76 -0
- package/models/components/webhookdatasweepupdated.js.map +1 -0
- package/models/components/webhookdataterminalapplicationcreated.d.ts +35 -0
- package/models/components/webhookdataterminalapplicationcreated.d.ts.map +1 -0
- package/models/components/webhookdataterminalapplicationcreated.js +72 -0
- package/models/components/webhookdataterminalapplicationcreated.js.map +1 -0
- package/models/components/webhookdataterminalapplicationupdated.d.ts +35 -0
- package/models/components/webhookdataterminalapplicationupdated.d.ts.map +1 -0
- package/models/components/webhookdataterminalapplicationupdated.js +72 -0
- package/models/components/webhookdataterminalapplicationupdated.js.map +1 -0
- package/models/components/webhookdatatransfercreated.d.ts +40 -0
- package/models/components/webhookdatatransfercreated.d.ts.map +1 -0
- package/models/components/webhookdatatransfercreated.js +74 -0
- package/models/components/webhookdatatransfercreated.js.map +1 -0
- package/models/components/webhookdatatransferupdated.d.ts +51 -0
- package/models/components/webhookdatatransferupdated.d.ts.map +1 -0
- package/models/components/webhookdatatransferupdated.js +79 -0
- package/models/components/webhookdatatransferupdated.js.map +1 -0
- package/models/components/webhookdatawallettransactionupdated.d.ts +42 -0
- package/models/components/webhookdatawallettransactionupdated.d.ts.map +1 -0
- package/models/components/webhookdatawallettransactionupdated.js +79 -0
- package/models/components/webhookdatawallettransactionupdated.js.map +1 -0
- package/models/components/webhookevent.d.ts +49 -0
- package/models/components/webhookevent.d.ts.map +1 -0
- package/models/components/webhookevent.js +77 -0
- package/models/components/webhookevent.js.map +1 -0
- package/models/components/webhookeventtype.d.ts +115 -0
- package/models/components/webhookeventtype.d.ts.map +1 -0
- package/models/components/webhookeventtype.js +90 -0
- package/models/components/webhookeventtype.js.map +1 -0
- package/models/components/webhooktransferpaymentmethoddetails.d.ts +34 -0
- package/models/components/webhooktransferpaymentmethoddetails.d.ts.map +1 -0
- package/models/components/webhooktransferpaymentmethoddetails.js +71 -0
- package/models/components/webhooktransferpaymentmethoddetails.js.map +1 -0
- package/models/components/webhookwalletavailablebalance.d.ts +36 -0
- package/models/components/webhookwalletavailablebalance.d.ts.map +1 -0
- package/models/components/webhookwalletavailablebalance.js +73 -0
- package/models/components/webhookwalletavailablebalance.js.map +1 -0
- package/package.json +1 -1
- 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/models/components/dispute.ts +6 -0
- package/src/models/components/index.ts +34 -0
- package/src/models/components/webhookdata.ts +349 -0
- package/src/models/components/webhookdataaccountcreated.ts +70 -0
- package/src/models/components/webhookdataaccountdeleted.ts +70 -0
- package/src/models/components/webhookdataaccountupdated.ts +70 -0
- package/src/models/components/webhookdatabalanceupdated.ts +70 -0
- package/src/models/components/webhookdatabankaccountcreated.ts +72 -0
- package/src/models/components/webhookdatabankaccountdeleted.ts +72 -0
- package/src/models/components/webhookdatabankaccountupdated.ts +106 -0
- package/src/models/components/webhookdatacancellationcreated.ts +81 -0
- package/src/models/components/webhookdatacancellationupdated.ts +81 -0
- package/src/models/components/webhookdatacapabilityrequested.ts +88 -0
- package/src/models/components/webhookdatacapabilityupdated.ts +100 -0
- package/src/models/components/webhookdatacardautoupdated.ts +82 -0
- package/src/models/components/webhookdatadisputecreated.ts +106 -0
- package/src/models/components/webhookdatadisputeupdated.ts +106 -0
- package/src/models/components/webhookdatanetworkidupdated.ts +89 -0
- package/src/models/components/webhookdatapaymentmethoddisabled.ts +76 -0
- package/src/models/components/webhookdatapaymentmethodenabled.ts +76 -0
- package/src/models/components/webhookdatarefundcreated.ts +74 -0
- package/src/models/components/webhookdatarefundupdated.ts +83 -0
- package/src/models/components/webhookdatarepresentativecreated.ts +72 -0
- package/src/models/components/webhookdatarepresentativedisabled.ts +73 -0
- package/src/models/components/webhookdatarepresentativeupdated.ts +72 -0
- package/src/models/components/webhookdatasweepcreated.ts +70 -0
- package/src/models/components/webhookdatasweepupdated.ts +83 -0
- package/src/models/components/webhookdataterminalapplicationcreated.ts +83 -0
- package/src/models/components/webhookdataterminalapplicationupdated.ts +83 -0
- package/src/models/components/webhookdatatransfercreated.ts +85 -0
- package/src/models/components/webhookdatatransferupdated.ts +105 -0
- package/src/models/components/webhookdatawallettransactionupdated.ts +101 -0
- package/src/models/components/webhookevent.ts +97 -0
- package/src/models/components/webhookeventtype.ts +66 -0
- package/src/models/components/webhooktransferpaymentmethoddetails.ts +78 -0
- package/src/models/components/webhookwalletavailablebalance.ts +79 -0
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
|
|
10
|
+
export type WebhookDataBankAccountDeleted = {
|
|
11
|
+
bankAccountID: string;
|
|
12
|
+
accountID: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const WebhookDataBankAccountDeleted$inboundSchema: z.ZodType<
|
|
17
|
+
WebhookDataBankAccountDeleted,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
bankAccountID: z.string(),
|
|
22
|
+
accountID: z.string(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type WebhookDataBankAccountDeleted$Outbound = {
|
|
27
|
+
bankAccountID: string;
|
|
28
|
+
accountID: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const WebhookDataBankAccountDeleted$outboundSchema: z.ZodType<
|
|
33
|
+
WebhookDataBankAccountDeleted$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
WebhookDataBankAccountDeleted
|
|
36
|
+
> = z.object({
|
|
37
|
+
bankAccountID: z.string(),
|
|
38
|
+
accountID: z.string(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
+
*/
|
|
45
|
+
export namespace WebhookDataBankAccountDeleted$ {
|
|
46
|
+
/** @deprecated use `WebhookDataBankAccountDeleted$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = WebhookDataBankAccountDeleted$inboundSchema;
|
|
48
|
+
/** @deprecated use `WebhookDataBankAccountDeleted$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = WebhookDataBankAccountDeleted$outboundSchema;
|
|
50
|
+
/** @deprecated use `WebhookDataBankAccountDeleted$Outbound` instead. */
|
|
51
|
+
export type Outbound = WebhookDataBankAccountDeleted$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function webhookDataBankAccountDeletedToJSON(
|
|
55
|
+
webhookDataBankAccountDeleted: WebhookDataBankAccountDeleted,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
WebhookDataBankAccountDeleted$outboundSchema.parse(
|
|
59
|
+
webhookDataBankAccountDeleted,
|
|
60
|
+
),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function webhookDataBankAccountDeletedFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<WebhookDataBankAccountDeleted, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => WebhookDataBankAccountDeleted$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'WebhookDataBankAccountDeleted' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
BankAccountException,
|
|
11
|
+
BankAccountException$inboundSchema,
|
|
12
|
+
BankAccountException$Outbound,
|
|
13
|
+
BankAccountException$outboundSchema,
|
|
14
|
+
} from "./bankaccountexception.js";
|
|
15
|
+
import {
|
|
16
|
+
BankAccountStatus,
|
|
17
|
+
BankAccountStatus$inboundSchema,
|
|
18
|
+
BankAccountStatus$outboundSchema,
|
|
19
|
+
} from "./bankaccountstatus.js";
|
|
20
|
+
import {
|
|
21
|
+
BankAccountStatusReason,
|
|
22
|
+
BankAccountStatusReason$inboundSchema,
|
|
23
|
+
BankAccountStatusReason$outboundSchema,
|
|
24
|
+
} from "./bankaccountstatusreason.js";
|
|
25
|
+
|
|
26
|
+
export type WebhookDataBankAccountUpdated = {
|
|
27
|
+
bankAccountID: string;
|
|
28
|
+
accountID: string;
|
|
29
|
+
status: BankAccountStatus;
|
|
30
|
+
/**
|
|
31
|
+
* The reason the bank account status changed to the current value.
|
|
32
|
+
*/
|
|
33
|
+
statusReason: BankAccountStatusReason;
|
|
34
|
+
/**
|
|
35
|
+
* Reason for, and details related to, an `errored` or `verificationFailed` bank account status.
|
|
36
|
+
*/
|
|
37
|
+
exceptionDetails?: BankAccountException | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const WebhookDataBankAccountUpdated$inboundSchema: z.ZodType<
|
|
42
|
+
WebhookDataBankAccountUpdated,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
unknown
|
|
45
|
+
> = z.object({
|
|
46
|
+
bankAccountID: z.string(),
|
|
47
|
+
accountID: z.string(),
|
|
48
|
+
status: BankAccountStatus$inboundSchema,
|
|
49
|
+
statusReason: BankAccountStatusReason$inboundSchema,
|
|
50
|
+
exceptionDetails: BankAccountException$inboundSchema.optional(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type WebhookDataBankAccountUpdated$Outbound = {
|
|
55
|
+
bankAccountID: string;
|
|
56
|
+
accountID: string;
|
|
57
|
+
status: string;
|
|
58
|
+
statusReason: string;
|
|
59
|
+
exceptionDetails?: BankAccountException$Outbound | undefined;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const WebhookDataBankAccountUpdated$outboundSchema: z.ZodType<
|
|
64
|
+
WebhookDataBankAccountUpdated$Outbound,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
WebhookDataBankAccountUpdated
|
|
67
|
+
> = z.object({
|
|
68
|
+
bankAccountID: z.string(),
|
|
69
|
+
accountID: z.string(),
|
|
70
|
+
status: BankAccountStatus$outboundSchema,
|
|
71
|
+
statusReason: BankAccountStatusReason$outboundSchema,
|
|
72
|
+
exceptionDetails: BankAccountException$outboundSchema.optional(),
|
|
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 WebhookDataBankAccountUpdated$ {
|
|
80
|
+
/** @deprecated use `WebhookDataBankAccountUpdated$inboundSchema` instead. */
|
|
81
|
+
export const inboundSchema = WebhookDataBankAccountUpdated$inboundSchema;
|
|
82
|
+
/** @deprecated use `WebhookDataBankAccountUpdated$outboundSchema` instead. */
|
|
83
|
+
export const outboundSchema = WebhookDataBankAccountUpdated$outboundSchema;
|
|
84
|
+
/** @deprecated use `WebhookDataBankAccountUpdated$Outbound` instead. */
|
|
85
|
+
export type Outbound = WebhookDataBankAccountUpdated$Outbound;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function webhookDataBankAccountUpdatedToJSON(
|
|
89
|
+
webhookDataBankAccountUpdated: WebhookDataBankAccountUpdated,
|
|
90
|
+
): string {
|
|
91
|
+
return JSON.stringify(
|
|
92
|
+
WebhookDataBankAccountUpdated$outboundSchema.parse(
|
|
93
|
+
webhookDataBankAccountUpdated,
|
|
94
|
+
),
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function webhookDataBankAccountUpdatedFromJSON(
|
|
99
|
+
jsonString: string,
|
|
100
|
+
): SafeParseResult<WebhookDataBankAccountUpdated, SDKValidationError> {
|
|
101
|
+
return safeParse(
|
|
102
|
+
jsonString,
|
|
103
|
+
(x) => WebhookDataBankAccountUpdated$inboundSchema.parse(JSON.parse(x)),
|
|
104
|
+
`Failed to parse 'WebhookDataBankAccountUpdated' from JSON`,
|
|
105
|
+
);
|
|
106
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
CancellationStatus,
|
|
11
|
+
CancellationStatus$inboundSchema,
|
|
12
|
+
CancellationStatus$outboundSchema,
|
|
13
|
+
} from "./cancellationstatus.js";
|
|
14
|
+
|
|
15
|
+
export type WebhookDataCancellationCreated = {
|
|
16
|
+
cancellationID: string;
|
|
17
|
+
transferID: string;
|
|
18
|
+
status: CancellationStatus;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const WebhookDataCancellationCreated$inboundSchema: z.ZodType<
|
|
23
|
+
WebhookDataCancellationCreated,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
cancellationID: z.string(),
|
|
28
|
+
transferID: z.string(),
|
|
29
|
+
status: CancellationStatus$inboundSchema,
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type WebhookDataCancellationCreated$Outbound = {
|
|
34
|
+
cancellationID: string;
|
|
35
|
+
transferID: string;
|
|
36
|
+
status: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const WebhookDataCancellationCreated$outboundSchema: z.ZodType<
|
|
41
|
+
WebhookDataCancellationCreated$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
WebhookDataCancellationCreated
|
|
44
|
+
> = z.object({
|
|
45
|
+
cancellationID: z.string(),
|
|
46
|
+
transferID: z.string(),
|
|
47
|
+
status: CancellationStatus$outboundSchema,
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
+
*/
|
|
54
|
+
export namespace WebhookDataCancellationCreated$ {
|
|
55
|
+
/** @deprecated use `WebhookDataCancellationCreated$inboundSchema` instead. */
|
|
56
|
+
export const inboundSchema = WebhookDataCancellationCreated$inboundSchema;
|
|
57
|
+
/** @deprecated use `WebhookDataCancellationCreated$outboundSchema` instead. */
|
|
58
|
+
export const outboundSchema = WebhookDataCancellationCreated$outboundSchema;
|
|
59
|
+
/** @deprecated use `WebhookDataCancellationCreated$Outbound` instead. */
|
|
60
|
+
export type Outbound = WebhookDataCancellationCreated$Outbound;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function webhookDataCancellationCreatedToJSON(
|
|
64
|
+
webhookDataCancellationCreated: WebhookDataCancellationCreated,
|
|
65
|
+
): string {
|
|
66
|
+
return JSON.stringify(
|
|
67
|
+
WebhookDataCancellationCreated$outboundSchema.parse(
|
|
68
|
+
webhookDataCancellationCreated,
|
|
69
|
+
),
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function webhookDataCancellationCreatedFromJSON(
|
|
74
|
+
jsonString: string,
|
|
75
|
+
): SafeParseResult<WebhookDataCancellationCreated, SDKValidationError> {
|
|
76
|
+
return safeParse(
|
|
77
|
+
jsonString,
|
|
78
|
+
(x) => WebhookDataCancellationCreated$inboundSchema.parse(JSON.parse(x)),
|
|
79
|
+
`Failed to parse 'WebhookDataCancellationCreated' from JSON`,
|
|
80
|
+
);
|
|
81
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
CancellationStatus,
|
|
11
|
+
CancellationStatus$inboundSchema,
|
|
12
|
+
CancellationStatus$outboundSchema,
|
|
13
|
+
} from "./cancellationstatus.js";
|
|
14
|
+
|
|
15
|
+
export type WebhookDataCancellationUpdated = {
|
|
16
|
+
cancellationID: string;
|
|
17
|
+
transferID: string;
|
|
18
|
+
status: CancellationStatus;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const WebhookDataCancellationUpdated$inboundSchema: z.ZodType<
|
|
23
|
+
WebhookDataCancellationUpdated,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
cancellationID: z.string(),
|
|
28
|
+
transferID: z.string(),
|
|
29
|
+
status: CancellationStatus$inboundSchema,
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type WebhookDataCancellationUpdated$Outbound = {
|
|
34
|
+
cancellationID: string;
|
|
35
|
+
transferID: string;
|
|
36
|
+
status: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const WebhookDataCancellationUpdated$outboundSchema: z.ZodType<
|
|
41
|
+
WebhookDataCancellationUpdated$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
WebhookDataCancellationUpdated
|
|
44
|
+
> = z.object({
|
|
45
|
+
cancellationID: z.string(),
|
|
46
|
+
transferID: z.string(),
|
|
47
|
+
status: CancellationStatus$outboundSchema,
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
+
*/
|
|
54
|
+
export namespace WebhookDataCancellationUpdated$ {
|
|
55
|
+
/** @deprecated use `WebhookDataCancellationUpdated$inboundSchema` instead. */
|
|
56
|
+
export const inboundSchema = WebhookDataCancellationUpdated$inboundSchema;
|
|
57
|
+
/** @deprecated use `WebhookDataCancellationUpdated$outboundSchema` instead. */
|
|
58
|
+
export const outboundSchema = WebhookDataCancellationUpdated$outboundSchema;
|
|
59
|
+
/** @deprecated use `WebhookDataCancellationUpdated$Outbound` instead. */
|
|
60
|
+
export type Outbound = WebhookDataCancellationUpdated$Outbound;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function webhookDataCancellationUpdatedToJSON(
|
|
64
|
+
webhookDataCancellationUpdated: WebhookDataCancellationUpdated,
|
|
65
|
+
): string {
|
|
66
|
+
return JSON.stringify(
|
|
67
|
+
WebhookDataCancellationUpdated$outboundSchema.parse(
|
|
68
|
+
webhookDataCancellationUpdated,
|
|
69
|
+
),
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function webhookDataCancellationUpdatedFromJSON(
|
|
74
|
+
jsonString: string,
|
|
75
|
+
): SafeParseResult<WebhookDataCancellationUpdated, SDKValidationError> {
|
|
76
|
+
return safeParse(
|
|
77
|
+
jsonString,
|
|
78
|
+
(x) => WebhookDataCancellationUpdated$inboundSchema.parse(JSON.parse(x)),
|
|
79
|
+
`Failed to parse 'WebhookDataCancellationUpdated' from JSON`,
|
|
80
|
+
);
|
|
81
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
CapabilityID,
|
|
11
|
+
CapabilityID$inboundSchema,
|
|
12
|
+
CapabilityID$outboundSchema,
|
|
13
|
+
} from "./capabilityid.js";
|
|
14
|
+
|
|
15
|
+
export type WebhookDataCapabilityRequested = {
|
|
16
|
+
accountID: string;
|
|
17
|
+
foreignID?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Moov account capabilities.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
*
|
|
23
|
+
* The `production-app` capability might appear in your list. This is a read-only capability that Moov requests and uses for account verification purposes. The capability remains active with your account and requires no additional action.
|
|
24
|
+
*/
|
|
25
|
+
capabilityID: CapabilityID;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const WebhookDataCapabilityRequested$inboundSchema: z.ZodType<
|
|
30
|
+
WebhookDataCapabilityRequested,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
accountID: z.string(),
|
|
35
|
+
foreignID: z.string().optional(),
|
|
36
|
+
capabilityID: CapabilityID$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type WebhookDataCapabilityRequested$Outbound = {
|
|
41
|
+
accountID: string;
|
|
42
|
+
foreignID?: string | undefined;
|
|
43
|
+
capabilityID: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const WebhookDataCapabilityRequested$outboundSchema: z.ZodType<
|
|
48
|
+
WebhookDataCapabilityRequested$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
WebhookDataCapabilityRequested
|
|
51
|
+
> = z.object({
|
|
52
|
+
accountID: z.string(),
|
|
53
|
+
foreignID: z.string().optional(),
|
|
54
|
+
capabilityID: CapabilityID$outboundSchema,
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
+
*/
|
|
61
|
+
export namespace WebhookDataCapabilityRequested$ {
|
|
62
|
+
/** @deprecated use `WebhookDataCapabilityRequested$inboundSchema` instead. */
|
|
63
|
+
export const inboundSchema = WebhookDataCapabilityRequested$inboundSchema;
|
|
64
|
+
/** @deprecated use `WebhookDataCapabilityRequested$outboundSchema` instead. */
|
|
65
|
+
export const outboundSchema = WebhookDataCapabilityRequested$outboundSchema;
|
|
66
|
+
/** @deprecated use `WebhookDataCapabilityRequested$Outbound` instead. */
|
|
67
|
+
export type Outbound = WebhookDataCapabilityRequested$Outbound;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function webhookDataCapabilityRequestedToJSON(
|
|
71
|
+
webhookDataCapabilityRequested: WebhookDataCapabilityRequested,
|
|
72
|
+
): string {
|
|
73
|
+
return JSON.stringify(
|
|
74
|
+
WebhookDataCapabilityRequested$outboundSchema.parse(
|
|
75
|
+
webhookDataCapabilityRequested,
|
|
76
|
+
),
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function webhookDataCapabilityRequestedFromJSON(
|
|
81
|
+
jsonString: string,
|
|
82
|
+
): SafeParseResult<WebhookDataCapabilityRequested, SDKValidationError> {
|
|
83
|
+
return safeParse(
|
|
84
|
+
jsonString,
|
|
85
|
+
(x) => WebhookDataCapabilityRequested$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
+
`Failed to parse 'WebhookDataCapabilityRequested' from JSON`,
|
|
87
|
+
);
|
|
88
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
CapabilityID,
|
|
11
|
+
CapabilityID$inboundSchema,
|
|
12
|
+
CapabilityID$outboundSchema,
|
|
13
|
+
} from "./capabilityid.js";
|
|
14
|
+
import {
|
|
15
|
+
CapabilityStatus,
|
|
16
|
+
CapabilityStatus$inboundSchema,
|
|
17
|
+
CapabilityStatus$outboundSchema,
|
|
18
|
+
} from "./capabilitystatus.js";
|
|
19
|
+
|
|
20
|
+
export type WebhookDataCapabilityUpdated = {
|
|
21
|
+
accountID: string;
|
|
22
|
+
foreignID?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Moov account capabilities.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
*
|
|
28
|
+
* The `production-app` capability might appear in your list. This is a read-only capability that Moov requests and uses for account verification purposes. The capability remains active with your account and requires no additional action.
|
|
29
|
+
*/
|
|
30
|
+
capabilityID: CapabilityID;
|
|
31
|
+
/**
|
|
32
|
+
* The status of the capability requested for an account.
|
|
33
|
+
*/
|
|
34
|
+
status: CapabilityStatus;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const WebhookDataCapabilityUpdated$inboundSchema: z.ZodType<
|
|
39
|
+
WebhookDataCapabilityUpdated,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
accountID: z.string(),
|
|
44
|
+
foreignID: z.string().optional(),
|
|
45
|
+
capabilityID: CapabilityID$inboundSchema,
|
|
46
|
+
status: CapabilityStatus$inboundSchema,
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type WebhookDataCapabilityUpdated$Outbound = {
|
|
51
|
+
accountID: string;
|
|
52
|
+
foreignID?: string | undefined;
|
|
53
|
+
capabilityID: string;
|
|
54
|
+
status: string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const WebhookDataCapabilityUpdated$outboundSchema: z.ZodType<
|
|
59
|
+
WebhookDataCapabilityUpdated$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
WebhookDataCapabilityUpdated
|
|
62
|
+
> = z.object({
|
|
63
|
+
accountID: z.string(),
|
|
64
|
+
foreignID: z.string().optional(),
|
|
65
|
+
capabilityID: CapabilityID$outboundSchema,
|
|
66
|
+
status: CapabilityStatus$outboundSchema,
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
export namespace WebhookDataCapabilityUpdated$ {
|
|
74
|
+
/** @deprecated use `WebhookDataCapabilityUpdated$inboundSchema` instead. */
|
|
75
|
+
export const inboundSchema = WebhookDataCapabilityUpdated$inboundSchema;
|
|
76
|
+
/** @deprecated use `WebhookDataCapabilityUpdated$outboundSchema` instead. */
|
|
77
|
+
export const outboundSchema = WebhookDataCapabilityUpdated$outboundSchema;
|
|
78
|
+
/** @deprecated use `WebhookDataCapabilityUpdated$Outbound` instead. */
|
|
79
|
+
export type Outbound = WebhookDataCapabilityUpdated$Outbound;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function webhookDataCapabilityUpdatedToJSON(
|
|
83
|
+
webhookDataCapabilityUpdated: WebhookDataCapabilityUpdated,
|
|
84
|
+
): string {
|
|
85
|
+
return JSON.stringify(
|
|
86
|
+
WebhookDataCapabilityUpdated$outboundSchema.parse(
|
|
87
|
+
webhookDataCapabilityUpdated,
|
|
88
|
+
),
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function webhookDataCapabilityUpdatedFromJSON(
|
|
93
|
+
jsonString: string,
|
|
94
|
+
): SafeParseResult<WebhookDataCapabilityUpdated, SDKValidationError> {
|
|
95
|
+
return safeParse(
|
|
96
|
+
jsonString,
|
|
97
|
+
(x) => WebhookDataCapabilityUpdated$inboundSchema.parse(JSON.parse(x)),
|
|
98
|
+
`Failed to parse 'WebhookDataCapabilityUpdated' from JSON`,
|
|
99
|
+
);
|
|
100
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
CardUpdateReason,
|
|
11
|
+
CardUpdateReason$inboundSchema,
|
|
12
|
+
CardUpdateReason$outboundSchema,
|
|
13
|
+
} from "./cardupdatereason.js";
|
|
14
|
+
|
|
15
|
+
export type WebhookDataCardAutoUpdated = {
|
|
16
|
+
cardID: string;
|
|
17
|
+
accountID: string;
|
|
18
|
+
/**
|
|
19
|
+
* The results of the card update request.
|
|
20
|
+
*/
|
|
21
|
+
updateType: CardUpdateReason;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const WebhookDataCardAutoUpdated$inboundSchema: z.ZodType<
|
|
26
|
+
WebhookDataCardAutoUpdated,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
cardID: z.string(),
|
|
31
|
+
accountID: z.string(),
|
|
32
|
+
updateType: CardUpdateReason$inboundSchema,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type WebhookDataCardAutoUpdated$Outbound = {
|
|
37
|
+
cardID: string;
|
|
38
|
+
accountID: string;
|
|
39
|
+
updateType: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const WebhookDataCardAutoUpdated$outboundSchema: z.ZodType<
|
|
44
|
+
WebhookDataCardAutoUpdated$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
WebhookDataCardAutoUpdated
|
|
47
|
+
> = z.object({
|
|
48
|
+
cardID: z.string(),
|
|
49
|
+
accountID: z.string(),
|
|
50
|
+
updateType: CardUpdateReason$outboundSchema,
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace WebhookDataCardAutoUpdated$ {
|
|
58
|
+
/** @deprecated use `WebhookDataCardAutoUpdated$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema = WebhookDataCardAutoUpdated$inboundSchema;
|
|
60
|
+
/** @deprecated use `WebhookDataCardAutoUpdated$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema = WebhookDataCardAutoUpdated$outboundSchema;
|
|
62
|
+
/** @deprecated use `WebhookDataCardAutoUpdated$Outbound` instead. */
|
|
63
|
+
export type Outbound = WebhookDataCardAutoUpdated$Outbound;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function webhookDataCardAutoUpdatedToJSON(
|
|
67
|
+
webhookDataCardAutoUpdated: WebhookDataCardAutoUpdated,
|
|
68
|
+
): string {
|
|
69
|
+
return JSON.stringify(
|
|
70
|
+
WebhookDataCardAutoUpdated$outboundSchema.parse(webhookDataCardAutoUpdated),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function webhookDataCardAutoUpdatedFromJSON(
|
|
75
|
+
jsonString: string,
|
|
76
|
+
): SafeParseResult<WebhookDataCardAutoUpdated, SDKValidationError> {
|
|
77
|
+
return safeParse(
|
|
78
|
+
jsonString,
|
|
79
|
+
(x) => WebhookDataCardAutoUpdated$inboundSchema.parse(JSON.parse(x)),
|
|
80
|
+
`Failed to parse 'WebhookDataCardAutoUpdated' from JSON`,
|
|
81
|
+
);
|
|
82
|
+
}
|