@moovio/sdk 0.10.17 → 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 +860 -6
- package/bin/mcp-server.js.map +41 -7
- 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/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/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,73 @@
|
|
|
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 WebhookDataRepresentativeDisabled = {
|
|
11
|
+
accountID: string;
|
|
12
|
+
representativeID: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const WebhookDataRepresentativeDisabled$inboundSchema: z.ZodType<
|
|
17
|
+
WebhookDataRepresentativeDisabled,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
accountID: z.string(),
|
|
22
|
+
representativeID: z.string(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type WebhookDataRepresentativeDisabled$Outbound = {
|
|
27
|
+
accountID: string;
|
|
28
|
+
representativeID: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const WebhookDataRepresentativeDisabled$outboundSchema: z.ZodType<
|
|
33
|
+
WebhookDataRepresentativeDisabled$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
WebhookDataRepresentativeDisabled
|
|
36
|
+
> = z.object({
|
|
37
|
+
accountID: z.string(),
|
|
38
|
+
representativeID: 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 WebhookDataRepresentativeDisabled$ {
|
|
46
|
+
/** @deprecated use `WebhookDataRepresentativeDisabled$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = WebhookDataRepresentativeDisabled$inboundSchema;
|
|
48
|
+
/** @deprecated use `WebhookDataRepresentativeDisabled$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema =
|
|
50
|
+
WebhookDataRepresentativeDisabled$outboundSchema;
|
|
51
|
+
/** @deprecated use `WebhookDataRepresentativeDisabled$Outbound` instead. */
|
|
52
|
+
export type Outbound = WebhookDataRepresentativeDisabled$Outbound;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function webhookDataRepresentativeDisabledToJSON(
|
|
56
|
+
webhookDataRepresentativeDisabled: WebhookDataRepresentativeDisabled,
|
|
57
|
+
): string {
|
|
58
|
+
return JSON.stringify(
|
|
59
|
+
WebhookDataRepresentativeDisabled$outboundSchema.parse(
|
|
60
|
+
webhookDataRepresentativeDisabled,
|
|
61
|
+
),
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function webhookDataRepresentativeDisabledFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<WebhookDataRepresentativeDisabled, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => WebhookDataRepresentativeDisabled$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'WebhookDataRepresentativeDisabled' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -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 WebhookDataRepresentativeUpdated = {
|
|
11
|
+
accountID: string;
|
|
12
|
+
representativeID: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const WebhookDataRepresentativeUpdated$inboundSchema: z.ZodType<
|
|
17
|
+
WebhookDataRepresentativeUpdated,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
accountID: z.string(),
|
|
22
|
+
representativeID: z.string(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type WebhookDataRepresentativeUpdated$Outbound = {
|
|
27
|
+
accountID: string;
|
|
28
|
+
representativeID: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const WebhookDataRepresentativeUpdated$outboundSchema: z.ZodType<
|
|
33
|
+
WebhookDataRepresentativeUpdated$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
WebhookDataRepresentativeUpdated
|
|
36
|
+
> = z.object({
|
|
37
|
+
accountID: z.string(),
|
|
38
|
+
representativeID: 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 WebhookDataRepresentativeUpdated$ {
|
|
46
|
+
/** @deprecated use `WebhookDataRepresentativeUpdated$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = WebhookDataRepresentativeUpdated$inboundSchema;
|
|
48
|
+
/** @deprecated use `WebhookDataRepresentativeUpdated$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = WebhookDataRepresentativeUpdated$outboundSchema;
|
|
50
|
+
/** @deprecated use `WebhookDataRepresentativeUpdated$Outbound` instead. */
|
|
51
|
+
export type Outbound = WebhookDataRepresentativeUpdated$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function webhookDataRepresentativeUpdatedToJSON(
|
|
55
|
+
webhookDataRepresentativeUpdated: WebhookDataRepresentativeUpdated,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
WebhookDataRepresentativeUpdated$outboundSchema.parse(
|
|
59
|
+
webhookDataRepresentativeUpdated,
|
|
60
|
+
),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function webhookDataRepresentativeUpdatedFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<WebhookDataRepresentativeUpdated, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => WebhookDataRepresentativeUpdated$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'WebhookDataRepresentativeUpdated' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 WebhookDataSweepCreated = {
|
|
11
|
+
walletID: string;
|
|
12
|
+
sweepID: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const WebhookDataSweepCreated$inboundSchema: z.ZodType<
|
|
17
|
+
WebhookDataSweepCreated,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
walletID: z.string(),
|
|
22
|
+
sweepID: z.string(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type WebhookDataSweepCreated$Outbound = {
|
|
27
|
+
walletID: string;
|
|
28
|
+
sweepID: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const WebhookDataSweepCreated$outboundSchema: z.ZodType<
|
|
33
|
+
WebhookDataSweepCreated$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
WebhookDataSweepCreated
|
|
36
|
+
> = z.object({
|
|
37
|
+
walletID: z.string(),
|
|
38
|
+
sweepID: 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 WebhookDataSweepCreated$ {
|
|
46
|
+
/** @deprecated use `WebhookDataSweepCreated$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = WebhookDataSweepCreated$inboundSchema;
|
|
48
|
+
/** @deprecated use `WebhookDataSweepCreated$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = WebhookDataSweepCreated$outboundSchema;
|
|
50
|
+
/** @deprecated use `WebhookDataSweepCreated$Outbound` instead. */
|
|
51
|
+
export type Outbound = WebhookDataSweepCreated$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function webhookDataSweepCreatedToJSON(
|
|
55
|
+
webhookDataSweepCreated: WebhookDataSweepCreated,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
WebhookDataSweepCreated$outboundSchema.parse(webhookDataSweepCreated),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function webhookDataSweepCreatedFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<WebhookDataSweepCreated, SDKValidationError> {
|
|
65
|
+
return safeParse(
|
|
66
|
+
jsonString,
|
|
67
|
+
(x) => WebhookDataSweepCreated$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'WebhookDataSweepCreated' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
SweepStatus,
|
|
11
|
+
SweepStatus$inboundSchema,
|
|
12
|
+
SweepStatus$outboundSchema,
|
|
13
|
+
} from "./sweepstatus.js";
|
|
14
|
+
|
|
15
|
+
export type WebhookDataSweepUpdated = {
|
|
16
|
+
walletID: string;
|
|
17
|
+
sweepID: string;
|
|
18
|
+
transferID?: string | undefined;
|
|
19
|
+
status: SweepStatus;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const WebhookDataSweepUpdated$inboundSchema: z.ZodType<
|
|
24
|
+
WebhookDataSweepUpdated,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
walletID: z.string(),
|
|
29
|
+
sweepID: z.string(),
|
|
30
|
+
transferID: z.string().optional(),
|
|
31
|
+
status: SweepStatus$inboundSchema,
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type WebhookDataSweepUpdated$Outbound = {
|
|
36
|
+
walletID: string;
|
|
37
|
+
sweepID: string;
|
|
38
|
+
transferID?: string | undefined;
|
|
39
|
+
status: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const WebhookDataSweepUpdated$outboundSchema: z.ZodType<
|
|
44
|
+
WebhookDataSweepUpdated$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
WebhookDataSweepUpdated
|
|
47
|
+
> = z.object({
|
|
48
|
+
walletID: z.string(),
|
|
49
|
+
sweepID: z.string(),
|
|
50
|
+
transferID: z.string().optional(),
|
|
51
|
+
status: SweepStatus$outboundSchema,
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export namespace WebhookDataSweepUpdated$ {
|
|
59
|
+
/** @deprecated use `WebhookDataSweepUpdated$inboundSchema` instead. */
|
|
60
|
+
export const inboundSchema = WebhookDataSweepUpdated$inboundSchema;
|
|
61
|
+
/** @deprecated use `WebhookDataSweepUpdated$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema = WebhookDataSweepUpdated$outboundSchema;
|
|
63
|
+
/** @deprecated use `WebhookDataSweepUpdated$Outbound` instead. */
|
|
64
|
+
export type Outbound = WebhookDataSweepUpdated$Outbound;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function webhookDataSweepUpdatedToJSON(
|
|
68
|
+
webhookDataSweepUpdated: WebhookDataSweepUpdated,
|
|
69
|
+
): string {
|
|
70
|
+
return JSON.stringify(
|
|
71
|
+
WebhookDataSweepUpdated$outboundSchema.parse(webhookDataSweepUpdated),
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function webhookDataSweepUpdatedFromJSON(
|
|
76
|
+
jsonString: string,
|
|
77
|
+
): SafeParseResult<WebhookDataSweepUpdated, SDKValidationError> {
|
|
78
|
+
return safeParse(
|
|
79
|
+
jsonString,
|
|
80
|
+
(x) => WebhookDataSweepUpdated$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'WebhookDataSweepUpdated' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
TerminalApplicationStatus,
|
|
11
|
+
TerminalApplicationStatus$inboundSchema,
|
|
12
|
+
TerminalApplicationStatus$outboundSchema,
|
|
13
|
+
} from "./terminalapplicationstatus.js";
|
|
14
|
+
|
|
15
|
+
export type WebhookDataTerminalApplicationCreated = {
|
|
16
|
+
terminalApplicationID: string;
|
|
17
|
+
/**
|
|
18
|
+
* Status of the terminal application.
|
|
19
|
+
*/
|
|
20
|
+
status: TerminalApplicationStatus;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const WebhookDataTerminalApplicationCreated$inboundSchema: z.ZodType<
|
|
25
|
+
WebhookDataTerminalApplicationCreated,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
terminalApplicationID: z.string(),
|
|
30
|
+
status: TerminalApplicationStatus$inboundSchema,
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type WebhookDataTerminalApplicationCreated$Outbound = {
|
|
35
|
+
terminalApplicationID: string;
|
|
36
|
+
status: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const WebhookDataTerminalApplicationCreated$outboundSchema: z.ZodType<
|
|
41
|
+
WebhookDataTerminalApplicationCreated$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
WebhookDataTerminalApplicationCreated
|
|
44
|
+
> = z.object({
|
|
45
|
+
terminalApplicationID: z.string(),
|
|
46
|
+
status: TerminalApplicationStatus$outboundSchema,
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
export namespace WebhookDataTerminalApplicationCreated$ {
|
|
54
|
+
/** @deprecated use `WebhookDataTerminalApplicationCreated$inboundSchema` instead. */
|
|
55
|
+
export const inboundSchema =
|
|
56
|
+
WebhookDataTerminalApplicationCreated$inboundSchema;
|
|
57
|
+
/** @deprecated use `WebhookDataTerminalApplicationCreated$outboundSchema` instead. */
|
|
58
|
+
export const outboundSchema =
|
|
59
|
+
WebhookDataTerminalApplicationCreated$outboundSchema;
|
|
60
|
+
/** @deprecated use `WebhookDataTerminalApplicationCreated$Outbound` instead. */
|
|
61
|
+
export type Outbound = WebhookDataTerminalApplicationCreated$Outbound;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function webhookDataTerminalApplicationCreatedToJSON(
|
|
65
|
+
webhookDataTerminalApplicationCreated: WebhookDataTerminalApplicationCreated,
|
|
66
|
+
): string {
|
|
67
|
+
return JSON.stringify(
|
|
68
|
+
WebhookDataTerminalApplicationCreated$outboundSchema.parse(
|
|
69
|
+
webhookDataTerminalApplicationCreated,
|
|
70
|
+
),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function webhookDataTerminalApplicationCreatedFromJSON(
|
|
75
|
+
jsonString: string,
|
|
76
|
+
): SafeParseResult<WebhookDataTerminalApplicationCreated, SDKValidationError> {
|
|
77
|
+
return safeParse(
|
|
78
|
+
jsonString,
|
|
79
|
+
(x) =>
|
|
80
|
+
WebhookDataTerminalApplicationCreated$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'WebhookDataTerminalApplicationCreated' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
TerminalApplicationStatus,
|
|
11
|
+
TerminalApplicationStatus$inboundSchema,
|
|
12
|
+
TerminalApplicationStatus$outboundSchema,
|
|
13
|
+
} from "./terminalapplicationstatus.js";
|
|
14
|
+
|
|
15
|
+
export type WebhookDataTerminalApplicationUpdated = {
|
|
16
|
+
terminalApplicationID: string;
|
|
17
|
+
/**
|
|
18
|
+
* Status of the terminal application.
|
|
19
|
+
*/
|
|
20
|
+
status: TerminalApplicationStatus;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const WebhookDataTerminalApplicationUpdated$inboundSchema: z.ZodType<
|
|
25
|
+
WebhookDataTerminalApplicationUpdated,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
terminalApplicationID: z.string(),
|
|
30
|
+
status: TerminalApplicationStatus$inboundSchema,
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type WebhookDataTerminalApplicationUpdated$Outbound = {
|
|
35
|
+
terminalApplicationID: string;
|
|
36
|
+
status: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const WebhookDataTerminalApplicationUpdated$outboundSchema: z.ZodType<
|
|
41
|
+
WebhookDataTerminalApplicationUpdated$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
WebhookDataTerminalApplicationUpdated
|
|
44
|
+
> = z.object({
|
|
45
|
+
terminalApplicationID: z.string(),
|
|
46
|
+
status: TerminalApplicationStatus$outboundSchema,
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
export namespace WebhookDataTerminalApplicationUpdated$ {
|
|
54
|
+
/** @deprecated use `WebhookDataTerminalApplicationUpdated$inboundSchema` instead. */
|
|
55
|
+
export const inboundSchema =
|
|
56
|
+
WebhookDataTerminalApplicationUpdated$inboundSchema;
|
|
57
|
+
/** @deprecated use `WebhookDataTerminalApplicationUpdated$outboundSchema` instead. */
|
|
58
|
+
export const outboundSchema =
|
|
59
|
+
WebhookDataTerminalApplicationUpdated$outboundSchema;
|
|
60
|
+
/** @deprecated use `WebhookDataTerminalApplicationUpdated$Outbound` instead. */
|
|
61
|
+
export type Outbound = WebhookDataTerminalApplicationUpdated$Outbound;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function webhookDataTerminalApplicationUpdatedToJSON(
|
|
65
|
+
webhookDataTerminalApplicationUpdated: WebhookDataTerminalApplicationUpdated,
|
|
66
|
+
): string {
|
|
67
|
+
return JSON.stringify(
|
|
68
|
+
WebhookDataTerminalApplicationUpdated$outboundSchema.parse(
|
|
69
|
+
webhookDataTerminalApplicationUpdated,
|
|
70
|
+
),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function webhookDataTerminalApplicationUpdatedFromJSON(
|
|
75
|
+
jsonString: string,
|
|
76
|
+
): SafeParseResult<WebhookDataTerminalApplicationUpdated, SDKValidationError> {
|
|
77
|
+
return safeParse(
|
|
78
|
+
jsonString,
|
|
79
|
+
(x) =>
|
|
80
|
+
WebhookDataTerminalApplicationUpdated$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'WebhookDataTerminalApplicationUpdated' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
TransferStatus,
|
|
11
|
+
TransferStatus$inboundSchema,
|
|
12
|
+
TransferStatus$outboundSchema,
|
|
13
|
+
} from "./transferstatus.js";
|
|
14
|
+
|
|
15
|
+
export type WebhookDataTransferCreated = {
|
|
16
|
+
/**
|
|
17
|
+
* The accountID which facilitated the transfer.
|
|
18
|
+
*/
|
|
19
|
+
accountID: string;
|
|
20
|
+
transferID: string;
|
|
21
|
+
/**
|
|
22
|
+
* Status of a transfer.
|
|
23
|
+
*/
|
|
24
|
+
status: TransferStatus;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const WebhookDataTransferCreated$inboundSchema: z.ZodType<
|
|
29
|
+
WebhookDataTransferCreated,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
accountID: z.string(),
|
|
34
|
+
transferID: z.string(),
|
|
35
|
+
status: TransferStatus$inboundSchema,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type WebhookDataTransferCreated$Outbound = {
|
|
40
|
+
accountID: string;
|
|
41
|
+
transferID: string;
|
|
42
|
+
status: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const WebhookDataTransferCreated$outboundSchema: z.ZodType<
|
|
47
|
+
WebhookDataTransferCreated$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
WebhookDataTransferCreated
|
|
50
|
+
> = z.object({
|
|
51
|
+
accountID: z.string(),
|
|
52
|
+
transferID: z.string(),
|
|
53
|
+
status: TransferStatus$outboundSchema,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
export namespace WebhookDataTransferCreated$ {
|
|
61
|
+
/** @deprecated use `WebhookDataTransferCreated$inboundSchema` instead. */
|
|
62
|
+
export const inboundSchema = WebhookDataTransferCreated$inboundSchema;
|
|
63
|
+
/** @deprecated use `WebhookDataTransferCreated$outboundSchema` instead. */
|
|
64
|
+
export const outboundSchema = WebhookDataTransferCreated$outboundSchema;
|
|
65
|
+
/** @deprecated use `WebhookDataTransferCreated$Outbound` instead. */
|
|
66
|
+
export type Outbound = WebhookDataTransferCreated$Outbound;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function webhookDataTransferCreatedToJSON(
|
|
70
|
+
webhookDataTransferCreated: WebhookDataTransferCreated,
|
|
71
|
+
): string {
|
|
72
|
+
return JSON.stringify(
|
|
73
|
+
WebhookDataTransferCreated$outboundSchema.parse(webhookDataTransferCreated),
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function webhookDataTransferCreatedFromJSON(
|
|
78
|
+
jsonString: string,
|
|
79
|
+
): SafeParseResult<WebhookDataTransferCreated, SDKValidationError> {
|
|
80
|
+
return safeParse(
|
|
81
|
+
jsonString,
|
|
82
|
+
(x) => WebhookDataTransferCreated$inboundSchema.parse(JSON.parse(x)),
|
|
83
|
+
`Failed to parse 'WebhookDataTransferCreated' from JSON`,
|
|
84
|
+
);
|
|
85
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
TransferStatus,
|
|
11
|
+
TransferStatus$inboundSchema,
|
|
12
|
+
TransferStatus$outboundSchema,
|
|
13
|
+
} from "./transferstatus.js";
|
|
14
|
+
import {
|
|
15
|
+
WebhookTransferPaymentMethodDetails,
|
|
16
|
+
WebhookTransferPaymentMethodDetails$inboundSchema,
|
|
17
|
+
WebhookTransferPaymentMethodDetails$Outbound,
|
|
18
|
+
WebhookTransferPaymentMethodDetails$outboundSchema,
|
|
19
|
+
} from "./webhooktransferpaymentmethoddetails.js";
|
|
20
|
+
|
|
21
|
+
export type WebhookDataTransferUpdated = {
|
|
22
|
+
/**
|
|
23
|
+
* The accountID which facilitated the transfer.
|
|
24
|
+
*/
|
|
25
|
+
accountID: string;
|
|
26
|
+
transferID: string;
|
|
27
|
+
/**
|
|
28
|
+
* Status of a transfer.
|
|
29
|
+
*/
|
|
30
|
+
status: TransferStatus;
|
|
31
|
+
/**
|
|
32
|
+
* Payment method details for the source or destination of a transfer.
|
|
33
|
+
*/
|
|
34
|
+
source: WebhookTransferPaymentMethodDetails;
|
|
35
|
+
/**
|
|
36
|
+
* Payment method details for the source or destination of a transfer.
|
|
37
|
+
*/
|
|
38
|
+
destination: WebhookTransferPaymentMethodDetails;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const WebhookDataTransferUpdated$inboundSchema: z.ZodType<
|
|
43
|
+
WebhookDataTransferUpdated,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
unknown
|
|
46
|
+
> = z.object({
|
|
47
|
+
accountID: z.string(),
|
|
48
|
+
transferID: z.string(),
|
|
49
|
+
status: TransferStatus$inboundSchema,
|
|
50
|
+
source: WebhookTransferPaymentMethodDetails$inboundSchema,
|
|
51
|
+
destination: WebhookTransferPaymentMethodDetails$inboundSchema,
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type WebhookDataTransferUpdated$Outbound = {
|
|
56
|
+
accountID: string;
|
|
57
|
+
transferID: string;
|
|
58
|
+
status: string;
|
|
59
|
+
source: WebhookTransferPaymentMethodDetails$Outbound;
|
|
60
|
+
destination: WebhookTransferPaymentMethodDetails$Outbound;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const WebhookDataTransferUpdated$outboundSchema: z.ZodType<
|
|
65
|
+
WebhookDataTransferUpdated$Outbound,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
WebhookDataTransferUpdated
|
|
68
|
+
> = z.object({
|
|
69
|
+
accountID: z.string(),
|
|
70
|
+
transferID: z.string(),
|
|
71
|
+
status: TransferStatus$outboundSchema,
|
|
72
|
+
source: WebhookTransferPaymentMethodDetails$outboundSchema,
|
|
73
|
+
destination: WebhookTransferPaymentMethodDetails$outboundSchema,
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
79
|
+
*/
|
|
80
|
+
export namespace WebhookDataTransferUpdated$ {
|
|
81
|
+
/** @deprecated use `WebhookDataTransferUpdated$inboundSchema` instead. */
|
|
82
|
+
export const inboundSchema = WebhookDataTransferUpdated$inboundSchema;
|
|
83
|
+
/** @deprecated use `WebhookDataTransferUpdated$outboundSchema` instead. */
|
|
84
|
+
export const outboundSchema = WebhookDataTransferUpdated$outboundSchema;
|
|
85
|
+
/** @deprecated use `WebhookDataTransferUpdated$Outbound` instead. */
|
|
86
|
+
export type Outbound = WebhookDataTransferUpdated$Outbound;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function webhookDataTransferUpdatedToJSON(
|
|
90
|
+
webhookDataTransferUpdated: WebhookDataTransferUpdated,
|
|
91
|
+
): string {
|
|
92
|
+
return JSON.stringify(
|
|
93
|
+
WebhookDataTransferUpdated$outboundSchema.parse(webhookDataTransferUpdated),
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function webhookDataTransferUpdatedFromJSON(
|
|
98
|
+
jsonString: string,
|
|
99
|
+
): SafeParseResult<WebhookDataTransferUpdated, SDKValidationError> {
|
|
100
|
+
return safeParse(
|
|
101
|
+
jsonString,
|
|
102
|
+
(x) => WebhookDataTransferUpdated$inboundSchema.parse(JSON.parse(x)),
|
|
103
|
+
`Failed to parse 'WebhookDataTransferUpdated' from JSON`,
|
|
104
|
+
);
|
|
105
|
+
}
|