@moovio/sdk 0.0.0-dev.30 → 0.0.0-dev.31
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 +30 -8
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.js +1 -0
- package/models/components/issuedcardauthorization.d.ts +5 -0
- package/models/components/issuedcardauthorization.js +2 -0
- package/models/components/issuedcardtransaction.d.ts +5 -0
- package/models/components/issuedcardtransaction.js +2 -0
- package/models/components/webhookdata.d.ts +3 -2
- package/models/components/webhookdata.js +3 -0
- package/models/components/webhookdataeventtest.d.ts +20 -0
- package/models/components/webhookdataeventtest.js +59 -0
- package/models/components/webhookeventtype.d.ts +1 -0
- package/models/components/webhookeventtype.js +1 -0
- package/package.json +1 -1
package/bin/mcp-server.js
CHANGED
|
@@ -53621,9 +53621,9 @@ var init_config = __esm(() => {
|
|
|
53621
53621
|
SDK_METADATA = {
|
|
53622
53622
|
language: "typescript",
|
|
53623
53623
|
openapiDocVersion: "dev",
|
|
53624
|
-
sdkVersion: "0.0.0-dev.
|
|
53624
|
+
sdkVersion: "0.0.0-dev.31",
|
|
53625
53625
|
genVersion: "2.935.1",
|
|
53626
|
-
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.
|
|
53626
|
+
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.31 2.935.1 dev @moovio/sdk"
|
|
53627
53627
|
};
|
|
53628
53628
|
});
|
|
53629
53629
|
|
|
@@ -65463,7 +65463,8 @@ var init_webhookeventtype = __esm(() => {
|
|
|
65463
65463
|
WalletUpdated: "wallet.updated",
|
|
65464
65464
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
65465
65465
|
BillingStatementCreated: "billingStatement.created",
|
|
65466
|
-
AuthorizationExpiring: "authorization.expiring"
|
|
65466
|
+
AuthorizationExpiring: "authorization.expiring",
|
|
65467
|
+
EventTest: "event.test"
|
|
65467
65468
|
};
|
|
65468
65469
|
WebhookEventType$inboundSchema = inboundSchema(WebhookEventType);
|
|
65469
65470
|
WebhookEventType$outboundSchema = outboundSchema(WebhookEventType);
|
|
@@ -67450,6 +67451,7 @@ var init_issuedcardauthorization = __esm(() => {
|
|
|
67450
67451
|
IssuedCardAuthorization$inboundSchema = objectType({
|
|
67451
67452
|
authorizationID: string4(),
|
|
67452
67453
|
issuedCardID: string4(),
|
|
67454
|
+
lastFourCardNumber: optional3(string4()),
|
|
67453
67455
|
fundingWalletID: string4(),
|
|
67454
67456
|
network: CardIssuingNetwork$inboundSchema,
|
|
67455
67457
|
authorizedAmount: string4(),
|
|
@@ -67461,6 +67463,7 @@ var init_issuedcardauthorization = __esm(() => {
|
|
|
67461
67463
|
IssuedCardAuthorization$outboundSchema = objectType({
|
|
67462
67464
|
authorizationID: stringType(),
|
|
67463
67465
|
issuedCardID: stringType(),
|
|
67466
|
+
lastFourCardNumber: stringType().optional(),
|
|
67464
67467
|
fundingWalletID: stringType(),
|
|
67465
67468
|
network: CardIssuingNetwork$outboundSchema,
|
|
67466
67469
|
authorizedAmount: stringType(),
|
|
@@ -67532,6 +67535,7 @@ var init_issuedcardtransaction = __esm(() => {
|
|
|
67532
67535
|
IssuedCardTransaction$inboundSchema = objectType({
|
|
67533
67536
|
cardTransactionID: string4(),
|
|
67534
67537
|
issuedCardID: string4(),
|
|
67538
|
+
lastFourCardNumber: optional3(string4()),
|
|
67535
67539
|
fundingWalletID: string4(),
|
|
67536
67540
|
amount: string4(),
|
|
67537
67541
|
authorizationID: optional3(string4()),
|
|
@@ -67542,6 +67546,7 @@ var init_issuedcardtransaction = __esm(() => {
|
|
|
67542
67546
|
IssuedCardTransaction$outboundSchema = objectType({
|
|
67543
67547
|
cardTransactionID: stringType(),
|
|
67544
67548
|
issuedCardID: stringType(),
|
|
67549
|
+
lastFourCardNumber: stringType().optional(),
|
|
67545
67550
|
fundingWalletID: stringType(),
|
|
67546
67551
|
amount: stringType(),
|
|
67547
67552
|
authorizationID: stringType().optional(),
|
|
@@ -72414,6 +72419,19 @@ var init_webhookdatadisputeupdated = __esm(() => {
|
|
|
72414
72419
|
});
|
|
72415
72420
|
});
|
|
72416
72421
|
|
|
72422
|
+
// src/models/components/webhookdataeventtest.ts
|
|
72423
|
+
var WebhookDataEventTest$inboundSchema, WebhookDataEventTest$outboundSchema;
|
|
72424
|
+
var init_webhookdataeventtest = __esm(() => {
|
|
72425
|
+
init_v3();
|
|
72426
|
+
init_primitives2();
|
|
72427
|
+
WebhookDataEventTest$inboundSchema = objectType({
|
|
72428
|
+
ping: boolean4()
|
|
72429
|
+
});
|
|
72430
|
+
WebhookDataEventTest$outboundSchema = objectType({
|
|
72431
|
+
ping: booleanType()
|
|
72432
|
+
});
|
|
72433
|
+
});
|
|
72434
|
+
|
|
72417
72435
|
// src/models/components/webhookdatainvoicecreated.ts
|
|
72418
72436
|
var WebhookDataInvoiceCreated$inboundSchema, WebhookDataInvoiceCreated$outboundSchema;
|
|
72419
72437
|
var init_webhookdatainvoicecreated = __esm(() => {
|
|
@@ -72886,6 +72904,7 @@ var init_webhookdata = __esm(() => {
|
|
|
72886
72904
|
init_webhookdatacardautoupdated();
|
|
72887
72905
|
init_webhookdatadisputecreated();
|
|
72888
72906
|
init_webhookdatadisputeupdated();
|
|
72907
|
+
init_webhookdataeventtest();
|
|
72889
72908
|
init_webhookdatainvoicecreated();
|
|
72890
72909
|
init_webhookdatainvoiceupdated();
|
|
72891
72910
|
init_webhookdatanetworkidupdated();
|
|
@@ -72947,7 +72966,8 @@ var init_webhookdata = __esm(() => {
|
|
|
72947
72966
|
WebhookDataAccountCreated$inboundSchema,
|
|
72948
72967
|
WebhookDataAccountUpdated$inboundSchema,
|
|
72949
72968
|
WebhookDataAccountDisconnected$inboundSchema,
|
|
72950
|
-
WebhookDataNetworkIDUpdated$inboundSchema
|
|
72969
|
+
WebhookDataNetworkIDUpdated$inboundSchema,
|
|
72970
|
+
WebhookDataEventTest$inboundSchema
|
|
72951
72971
|
]);
|
|
72952
72972
|
WebhookData$outboundSchema = smartUnion([
|
|
72953
72973
|
WebhookDataDisputeCreated$outboundSchema,
|
|
@@ -72988,7 +73008,8 @@ var init_webhookdata = __esm(() => {
|
|
|
72988
73008
|
WebhookDataAccountCreated$outboundSchema,
|
|
72989
73009
|
WebhookDataAccountUpdated$outboundSchema,
|
|
72990
73010
|
WebhookDataAccountDisconnected$outboundSchema,
|
|
72991
|
-
WebhookDataNetworkIDUpdated$outboundSchema
|
|
73011
|
+
WebhookDataNetworkIDUpdated$outboundSchema,
|
|
73012
|
+
WebhookDataEventTest$outboundSchema
|
|
72992
73013
|
]);
|
|
72993
73014
|
});
|
|
72994
73015
|
|
|
@@ -73687,6 +73708,7 @@ var init_components = __esm(() => {
|
|
|
73687
73708
|
init_webhookdatacardautoupdated();
|
|
73688
73709
|
init_webhookdatadisputecreated();
|
|
73689
73710
|
init_webhookdatadisputeupdated();
|
|
73711
|
+
init_webhookdataeventtest();
|
|
73690
73712
|
init_webhookdatainvoicecreated();
|
|
73691
73713
|
init_webhookdatainvoiceupdated();
|
|
73692
73714
|
init_webhookdatanetworkidupdated();
|
|
@@ -108111,7 +108133,7 @@ var init_webhooksUpdate2 = __esm(() => {
|
|
|
108111
108133
|
function createMCPServer(deps) {
|
|
108112
108134
|
const server = new McpServer({
|
|
108113
108135
|
name: "Moov",
|
|
108114
|
-
version: "0.0.0-dev.
|
|
108136
|
+
version: "0.0.0-dev.31"
|
|
108115
108137
|
});
|
|
108116
108138
|
const client = new MoovCore({
|
|
108117
108139
|
security: deps.security,
|
|
@@ -109733,7 +109755,7 @@ var routes = rn({
|
|
|
109733
109755
|
var app = Ve(routes, {
|
|
109734
109756
|
name: "mcp",
|
|
109735
109757
|
versionInfo: {
|
|
109736
|
-
currentVersion: "0.0.0-dev.
|
|
109758
|
+
currentVersion: "0.0.0-dev.31"
|
|
109737
109759
|
}
|
|
109738
109760
|
});
|
|
109739
109761
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -109741,5 +109763,5 @@ export {
|
|
|
109741
109763
|
app
|
|
109742
109764
|
};
|
|
109743
109765
|
|
|
109744
|
-
//# debugId=
|
|
109766
|
+
//# debugId=B0D9CDBEF64396F964756E2164756E21
|
|
109745
109767
|
//# sourceMappingURL=mcp-server.js.map
|
package/lib/config.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
39
39
|
export declare const SDK_METADATA: {
|
|
40
40
|
readonly language: "typescript";
|
|
41
41
|
readonly openapiDocVersion: "dev";
|
|
42
|
-
readonly sdkVersion: "0.0.0-dev.
|
|
42
|
+
readonly sdkVersion: "0.0.0-dev.31";
|
|
43
43
|
readonly genVersion: "2.935.1";
|
|
44
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.0-dev.
|
|
44
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.0-dev.31 2.935.1 dev @moovio/sdk";
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -31,8 +31,8 @@ function serverURLFromOptions(options) {
|
|
|
31
31
|
exports.SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "dev",
|
|
34
|
-
sdkVersion: "0.0.0-dev.
|
|
34
|
+
sdkVersion: "0.0.0-dev.31",
|
|
35
35
|
genVersion: "2.935.1",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.31 2.935.1 dev @moovio/sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
package/mcp-server/mcp-server.js
CHANGED
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "0.0.0-dev.
|
|
25
|
+
currentVersion: "0.0.0-dev.31",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
package/mcp-server/server.js
CHANGED
|
@@ -211,7 +211,7 @@ const webhooksUpdate_js_1 = require("./tools/webhooksUpdate.js");
|
|
|
211
211
|
function createMCPServer(deps) {
|
|
212
212
|
const server = new mcp_js_1.McpServer({
|
|
213
213
|
name: "Moov",
|
|
214
|
-
version: "0.0.0-dev.
|
|
214
|
+
version: "0.0.0-dev.31",
|
|
215
215
|
});
|
|
216
216
|
const client = new core_js_1.MoovCore({
|
|
217
217
|
security: deps.security,
|
|
@@ -657,6 +657,7 @@ export * from "./webhookdatacaptureupdated.js";
|
|
|
657
657
|
export * from "./webhookdatacardautoupdated.js";
|
|
658
658
|
export * from "./webhookdatadisputecreated.js";
|
|
659
659
|
export * from "./webhookdatadisputeupdated.js";
|
|
660
|
+
export * from "./webhookdataeventtest.js";
|
|
660
661
|
export * from "./webhookdatainvoicecreated.js";
|
|
661
662
|
export * from "./webhookdatainvoiceupdated.js";
|
|
662
663
|
export * from "./webhookdatanetworkidupdated.js";
|
|
@@ -676,6 +676,7 @@ __exportStar(require("./webhookdatacaptureupdated.js"), exports);
|
|
|
676
676
|
__exportStar(require("./webhookdatacardautoupdated.js"), exports);
|
|
677
677
|
__exportStar(require("./webhookdatadisputecreated.js"), exports);
|
|
678
678
|
__exportStar(require("./webhookdatadisputeupdated.js"), exports);
|
|
679
|
+
__exportStar(require("./webhookdataeventtest.js"), exports);
|
|
679
680
|
__exportStar(require("./webhookdatainvoicecreated.js"), exports);
|
|
680
681
|
__exportStar(require("./webhookdatainvoiceupdated.js"), exports);
|
|
681
682
|
__exportStar(require("./webhookdatanetworkidupdated.js"), exports);
|
|
@@ -7,6 +7,10 @@ import { IssuingMerchantData, IssuingMerchantData$Outbound } from "./issuingmerc
|
|
|
7
7
|
export type IssuedCardAuthorization = {
|
|
8
8
|
authorizationID: string;
|
|
9
9
|
issuedCardID: string;
|
|
10
|
+
/**
|
|
11
|
+
* Last four digits of the card number. Omitted for authorizations recorded before this was captured.
|
|
12
|
+
*/
|
|
13
|
+
lastFourCardNumber?: string | undefined;
|
|
10
14
|
fundingWalletID: string;
|
|
11
15
|
/**
|
|
12
16
|
* The name of the network a card transaction is routed through.
|
|
@@ -33,6 +37,7 @@ export declare const IssuedCardAuthorization$inboundSchema: z.ZodType<IssuedCard
|
|
|
33
37
|
export type IssuedCardAuthorization$Outbound = {
|
|
34
38
|
authorizationID: string;
|
|
35
39
|
issuedCardID: string;
|
|
40
|
+
lastFourCardNumber?: string | undefined;
|
|
36
41
|
fundingWalletID: string;
|
|
37
42
|
network: string;
|
|
38
43
|
authorizedAmount: string;
|
|
@@ -49,6 +49,7 @@ const issuingmerchantdata_js_1 = require("./issuingmerchantdata.js");
|
|
|
49
49
|
exports.IssuedCardAuthorization$inboundSchema = z.object({
|
|
50
50
|
authorizationID: types.string(),
|
|
51
51
|
issuedCardID: types.string(),
|
|
52
|
+
lastFourCardNumber: types.optional(types.string()),
|
|
52
53
|
fundingWalletID: types.string(),
|
|
53
54
|
network: cardissuingnetwork_js_1.CardIssuingNetwork$inboundSchema,
|
|
54
55
|
authorizedAmount: types.string(),
|
|
@@ -61,6 +62,7 @@ exports.IssuedCardAuthorization$inboundSchema = z.object({
|
|
|
61
62
|
exports.IssuedCardAuthorization$outboundSchema = z.object({
|
|
62
63
|
authorizationID: z.string(),
|
|
63
64
|
issuedCardID: z.string(),
|
|
65
|
+
lastFourCardNumber: z.string().optional(),
|
|
64
66
|
fundingWalletID: z.string(),
|
|
65
67
|
network: cardissuingnetwork_js_1.CardIssuingNetwork$outboundSchema,
|
|
66
68
|
authorizedAmount: z.string(),
|
|
@@ -5,6 +5,10 @@ import { IssuingMerchantData, IssuingMerchantData$Outbound } from "./issuingmerc
|
|
|
5
5
|
export type IssuedCardTransaction = {
|
|
6
6
|
cardTransactionID: string;
|
|
7
7
|
issuedCardID: string;
|
|
8
|
+
/**
|
|
9
|
+
* Last four digits of the card number. Omitted for transactions recorded before this was captured.
|
|
10
|
+
*/
|
|
11
|
+
lastFourCardNumber?: string | undefined;
|
|
8
12
|
fundingWalletID: string;
|
|
9
13
|
/**
|
|
10
14
|
* A decimal-formatted numerical string that represents up to 2 decimal place precision. In USD for example, 12.34 is $12.34 and 0.99 is $0.99.
|
|
@@ -21,6 +25,7 @@ export declare const IssuedCardTransaction$inboundSchema: z.ZodType<IssuedCardTr
|
|
|
21
25
|
export type IssuedCardTransaction$Outbound = {
|
|
22
26
|
cardTransactionID: string;
|
|
23
27
|
issuedCardID: string;
|
|
28
|
+
lastFourCardNumber?: string | undefined;
|
|
24
29
|
fundingWalletID: string;
|
|
25
30
|
amount: string;
|
|
26
31
|
authorizationID?: string | undefined;
|
|
@@ -47,6 +47,7 @@ const issuingmerchantdata_js_1 = require("./issuingmerchantdata.js");
|
|
|
47
47
|
exports.IssuedCardTransaction$inboundSchema = z.object({
|
|
48
48
|
cardTransactionID: types.string(),
|
|
49
49
|
issuedCardID: types.string(),
|
|
50
|
+
lastFourCardNumber: types.optional(types.string()),
|
|
50
51
|
fundingWalletID: types.string(),
|
|
51
52
|
amount: types.string(),
|
|
52
53
|
authorizationID: types.optional(types.string()),
|
|
@@ -58,6 +59,7 @@ exports.IssuedCardTransaction$inboundSchema = z.object({
|
|
|
58
59
|
exports.IssuedCardTransaction$outboundSchema = z.object({
|
|
59
60
|
cardTransactionID: z.string(),
|
|
60
61
|
issuedCardID: z.string(),
|
|
62
|
+
lastFourCardNumber: z.string().optional(),
|
|
61
63
|
fundingWalletID: z.string(),
|
|
62
64
|
amount: z.string(),
|
|
63
65
|
authorizationID: z.string().optional(),
|
|
@@ -18,6 +18,7 @@ import { WebhookDataCaptureUpdated, WebhookDataCaptureUpdated$Outbound } from ".
|
|
|
18
18
|
import { WebhookDataCardAutoUpdated, WebhookDataCardAutoUpdated$Outbound } from "./webhookdatacardautoupdated.js";
|
|
19
19
|
import { WebhookDataDisputeCreated, WebhookDataDisputeCreated$Outbound } from "./webhookdatadisputecreated.js";
|
|
20
20
|
import { WebhookDataDisputeUpdated, WebhookDataDisputeUpdated$Outbound } from "./webhookdatadisputeupdated.js";
|
|
21
|
+
import { WebhookDataEventTest, WebhookDataEventTest$Outbound } from "./webhookdataeventtest.js";
|
|
21
22
|
import { WebhookDataInvoiceCreated, WebhookDataInvoiceCreated$Outbound } from "./webhookdatainvoicecreated.js";
|
|
22
23
|
import { WebhookDataInvoiceUpdated, WebhookDataInvoiceUpdated$Outbound } from "./webhookdatainvoiceupdated.js";
|
|
23
24
|
import { WebhookDataNetworkIDUpdated, WebhookDataNetworkIDUpdated$Outbound } from "./webhookdatanetworkidupdated.js";
|
|
@@ -43,11 +44,11 @@ import { WebhookDataWalletUpdated, WebhookDataWalletUpdated$Outbound } from "./w
|
|
|
43
44
|
/**
|
|
44
45
|
* The data for the webhook event. The contents are based on the event type.
|
|
45
46
|
*/
|
|
46
|
-
export type WebhookData = WebhookDataDisputeCreated | WebhookDataDisputeUpdated | WebhookDataTransferUpdated | WebhookDataBankAccountUpdated | WebhookDataCaptureUpdated | WebhookDataRefundUpdated | WebhookDataSweepUpdated | WebhookDataWalletTransactionUpdated | WebhookDataAuthorizationExpiring | WebhookDataBankAccountCreated | WebhookDataBankAccountDeleted | WebhookDataCancellationCreated | WebhookDataCancellationUpdated | WebhookDataCardAutoUpdated | WebhookDataCapabilityUpdated | WebhookDataInvoiceUpdated | WebhookDataPaymentMethodEnabled | WebhookDataPaymentMethodDisabled | WebhookDataRefundCreated | WebhookDataSweepCreated | WebhookDataTicketUpdated | WebhookDataTransferCreated | WebhookDataWalletUpdated | WebhookDataBalanceUpdated | WebhookDataCapabilityRequested | WebhookDataInvoiceCreated | WebhookDataRepresentativeCreated | WebhookDataRepresentativeUpdated | WebhookDataRepresentativeDisabled | WebhookDataTerminalApplicationCreated | WebhookDataTerminalApplicationUpdated | WebhookDataTicketCreated | WebhookDataTicketMessageAdded | WebhookDataWalletCreated | WebhookBillingStatementCreated | WebhookDataAccountCreated | WebhookDataAccountUpdated | WebhookDataAccountDisconnected | WebhookDataNetworkIDUpdated;
|
|
47
|
+
export type WebhookData = WebhookDataDisputeCreated | WebhookDataDisputeUpdated | WebhookDataTransferUpdated | WebhookDataBankAccountUpdated | WebhookDataCaptureUpdated | WebhookDataRefundUpdated | WebhookDataSweepUpdated | WebhookDataWalletTransactionUpdated | WebhookDataAuthorizationExpiring | WebhookDataBankAccountCreated | WebhookDataBankAccountDeleted | WebhookDataCancellationCreated | WebhookDataCancellationUpdated | WebhookDataCardAutoUpdated | WebhookDataCapabilityUpdated | WebhookDataInvoiceUpdated | WebhookDataPaymentMethodEnabled | WebhookDataPaymentMethodDisabled | WebhookDataRefundCreated | WebhookDataSweepCreated | WebhookDataTicketUpdated | WebhookDataTransferCreated | WebhookDataWalletUpdated | WebhookDataBalanceUpdated | WebhookDataCapabilityRequested | WebhookDataInvoiceCreated | WebhookDataRepresentativeCreated | WebhookDataRepresentativeUpdated | WebhookDataRepresentativeDisabled | WebhookDataTerminalApplicationCreated | WebhookDataTerminalApplicationUpdated | WebhookDataTicketCreated | WebhookDataTicketMessageAdded | WebhookDataWalletCreated | WebhookBillingStatementCreated | WebhookDataAccountCreated | WebhookDataAccountUpdated | WebhookDataAccountDisconnected | WebhookDataNetworkIDUpdated | WebhookDataEventTest;
|
|
47
48
|
/** @internal */
|
|
48
49
|
export declare const WebhookData$inboundSchema: z.ZodType<WebhookData, z.ZodTypeDef, unknown>;
|
|
49
50
|
/** @internal */
|
|
50
|
-
export type WebhookData$Outbound = WebhookDataDisputeCreated$Outbound | WebhookDataDisputeUpdated$Outbound | WebhookDataTransferUpdated$Outbound | WebhookDataBankAccountUpdated$Outbound | WebhookDataCaptureUpdated$Outbound | WebhookDataRefundUpdated$Outbound | WebhookDataSweepUpdated$Outbound | WebhookDataWalletTransactionUpdated$Outbound | WebhookDataAuthorizationExpiring$Outbound | WebhookDataBankAccountCreated$Outbound | WebhookDataBankAccountDeleted$Outbound | WebhookDataCancellationCreated$Outbound | WebhookDataCancellationUpdated$Outbound | WebhookDataCardAutoUpdated$Outbound | WebhookDataCapabilityUpdated$Outbound | WebhookDataInvoiceUpdated$Outbound | WebhookDataPaymentMethodEnabled$Outbound | WebhookDataPaymentMethodDisabled$Outbound | WebhookDataRefundCreated$Outbound | WebhookDataSweepCreated$Outbound | WebhookDataTicketUpdated$Outbound | WebhookDataTransferCreated$Outbound | WebhookDataWalletUpdated$Outbound | WebhookDataBalanceUpdated$Outbound | WebhookDataCapabilityRequested$Outbound | WebhookDataInvoiceCreated$Outbound | WebhookDataRepresentativeCreated$Outbound | WebhookDataRepresentativeUpdated$Outbound | WebhookDataRepresentativeDisabled$Outbound | WebhookDataTerminalApplicationCreated$Outbound | WebhookDataTerminalApplicationUpdated$Outbound | WebhookDataTicketCreated$Outbound | WebhookDataTicketMessageAdded$Outbound | WebhookDataWalletCreated$Outbound | WebhookBillingStatementCreated$Outbound | WebhookDataAccountCreated$Outbound | WebhookDataAccountUpdated$Outbound | WebhookDataAccountDisconnected$Outbound | WebhookDataNetworkIDUpdated$Outbound;
|
|
51
|
+
export type WebhookData$Outbound = WebhookDataDisputeCreated$Outbound | WebhookDataDisputeUpdated$Outbound | WebhookDataTransferUpdated$Outbound | WebhookDataBankAccountUpdated$Outbound | WebhookDataCaptureUpdated$Outbound | WebhookDataRefundUpdated$Outbound | WebhookDataSweepUpdated$Outbound | WebhookDataWalletTransactionUpdated$Outbound | WebhookDataAuthorizationExpiring$Outbound | WebhookDataBankAccountCreated$Outbound | WebhookDataBankAccountDeleted$Outbound | WebhookDataCancellationCreated$Outbound | WebhookDataCancellationUpdated$Outbound | WebhookDataCardAutoUpdated$Outbound | WebhookDataCapabilityUpdated$Outbound | WebhookDataInvoiceUpdated$Outbound | WebhookDataPaymentMethodEnabled$Outbound | WebhookDataPaymentMethodDisabled$Outbound | WebhookDataRefundCreated$Outbound | WebhookDataSweepCreated$Outbound | WebhookDataTicketUpdated$Outbound | WebhookDataTransferCreated$Outbound | WebhookDataWalletUpdated$Outbound | WebhookDataBalanceUpdated$Outbound | WebhookDataCapabilityRequested$Outbound | WebhookDataInvoiceCreated$Outbound | WebhookDataRepresentativeCreated$Outbound | WebhookDataRepresentativeUpdated$Outbound | WebhookDataRepresentativeDisabled$Outbound | WebhookDataTerminalApplicationCreated$Outbound | WebhookDataTerminalApplicationUpdated$Outbound | WebhookDataTicketCreated$Outbound | WebhookDataTicketMessageAdded$Outbound | WebhookDataWalletCreated$Outbound | WebhookBillingStatementCreated$Outbound | WebhookDataAccountCreated$Outbound | WebhookDataAccountUpdated$Outbound | WebhookDataAccountDisconnected$Outbound | WebhookDataNetworkIDUpdated$Outbound | WebhookDataEventTest$Outbound;
|
|
51
52
|
/** @internal */
|
|
52
53
|
export declare const WebhookData$outboundSchema: z.ZodType<WebhookData$Outbound, z.ZodTypeDef, WebhookData>;
|
|
53
54
|
export declare function webhookDataToJSON(webhookData: WebhookData): string;
|
|
@@ -25,6 +25,7 @@ const webhookdatacaptureupdated_js_1 = require("./webhookdatacaptureupdated.js")
|
|
|
25
25
|
const webhookdatacardautoupdated_js_1 = require("./webhookdatacardautoupdated.js");
|
|
26
26
|
const webhookdatadisputecreated_js_1 = require("./webhookdatadisputecreated.js");
|
|
27
27
|
const webhookdatadisputeupdated_js_1 = require("./webhookdatadisputeupdated.js");
|
|
28
|
+
const webhookdataeventtest_js_1 = require("./webhookdataeventtest.js");
|
|
28
29
|
const webhookdatainvoicecreated_js_1 = require("./webhookdatainvoicecreated.js");
|
|
29
30
|
const webhookdatainvoiceupdated_js_1 = require("./webhookdatainvoiceupdated.js");
|
|
30
31
|
const webhookdatanetworkidupdated_js_1 = require("./webhookdatanetworkidupdated.js");
|
|
@@ -88,6 +89,7 @@ exports.WebhookData$inboundSchema = (0, smartUnion_js_1.smartUnion)([
|
|
|
88
89
|
webhookdataaccountupdated_js_1.WebhookDataAccountUpdated$inboundSchema,
|
|
89
90
|
webhookdataaccountdisconnected_js_1.WebhookDataAccountDisconnected$inboundSchema,
|
|
90
91
|
webhookdatanetworkidupdated_js_1.WebhookDataNetworkIDUpdated$inboundSchema,
|
|
92
|
+
webhookdataeventtest_js_1.WebhookDataEventTest$inboundSchema,
|
|
91
93
|
]);
|
|
92
94
|
/** @internal */
|
|
93
95
|
exports.WebhookData$outboundSchema = (0, smartUnion_js_1.smartUnion)([
|
|
@@ -130,6 +132,7 @@ exports.WebhookData$outboundSchema = (0, smartUnion_js_1.smartUnion)([
|
|
|
130
132
|
webhookdataaccountupdated_js_1.WebhookDataAccountUpdated$outboundSchema,
|
|
131
133
|
webhookdataaccountdisconnected_js_1.WebhookDataAccountDisconnected$outboundSchema,
|
|
132
134
|
webhookdatanetworkidupdated_js_1.WebhookDataNetworkIDUpdated$outboundSchema,
|
|
135
|
+
webhookdataeventtest_js_1.WebhookDataEventTest$outboundSchema,
|
|
133
136
|
]);
|
|
134
137
|
function webhookDataToJSON(webhookData) {
|
|
135
138
|
return JSON.stringify(exports.WebhookData$outboundSchema.parse(webhookData));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* The data payload sent for an `event.test` event, such as a webhook ping.
|
|
6
|
+
*/
|
|
7
|
+
export type WebhookDataEventTest = {
|
|
8
|
+
ping: boolean;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const WebhookDataEventTest$inboundSchema: z.ZodType<WebhookDataEventTest, z.ZodTypeDef, unknown>;
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type WebhookDataEventTest$Outbound = {
|
|
14
|
+
ping: boolean;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const WebhookDataEventTest$outboundSchema: z.ZodType<WebhookDataEventTest$Outbound, z.ZodTypeDef, WebhookDataEventTest>;
|
|
18
|
+
export declare function webhookDataEventTestToJSON(webhookDataEventTest: WebhookDataEventTest): string;
|
|
19
|
+
export declare function webhookDataEventTestFromJSON(jsonString: string): SafeParseResult<WebhookDataEventTest, SDKValidationError>;
|
|
20
|
+
//# sourceMappingURL=webhookdataeventtest.d.ts.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.WebhookDataEventTest$outboundSchema = exports.WebhookDataEventTest$inboundSchema = void 0;
|
|
40
|
+
exports.webhookDataEventTestToJSON = webhookDataEventTestToJSON;
|
|
41
|
+
exports.webhookDataEventTestFromJSON = webhookDataEventTestFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const types = __importStar(require("../../types/primitives.js"));
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.WebhookDataEventTest$inboundSchema = z.object({
|
|
47
|
+
ping: types.boolean(),
|
|
48
|
+
});
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.WebhookDataEventTest$outboundSchema = z.object({
|
|
51
|
+
ping: z.boolean(),
|
|
52
|
+
});
|
|
53
|
+
function webhookDataEventTestToJSON(webhookDataEventTest) {
|
|
54
|
+
return JSON.stringify(exports.WebhookDataEventTest$outboundSchema.parse(webhookDataEventTest));
|
|
55
|
+
}
|
|
56
|
+
function webhookDataEventTestFromJSON(jsonString) {
|
|
57
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.WebhookDataEventTest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WebhookDataEventTest' from JSON`);
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=webhookdataeventtest.js.map
|
|
@@ -44,6 +44,7 @@ export declare const WebhookEventType: {
|
|
|
44
44
|
readonly WalletTransactionUpdated: "walletTransaction.updated";
|
|
45
45
|
readonly BillingStatementCreated: "billingStatement.created";
|
|
46
46
|
readonly AuthorizationExpiring: "authorization.expiring";
|
|
47
|
+
readonly EventTest: "event.test";
|
|
47
48
|
};
|
|
48
49
|
/**
|
|
49
50
|
* The type of event that occurred.
|
|
@@ -82,6 +82,7 @@ exports.WebhookEventType = {
|
|
|
82
82
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
83
83
|
BillingStatementCreated: "billingStatement.created",
|
|
84
84
|
AuthorizationExpiring: "authorization.expiring",
|
|
85
|
+
EventTest: "event.test",
|
|
85
86
|
};
|
|
86
87
|
/** @internal */
|
|
87
88
|
exports.WebhookEventType$inboundSchema = openEnums.inboundSchema(exports.WebhookEventType);
|