@moovio/sdk 0.0.0-dev.30 → 0.0.0-dev.32
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 +33 -10
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/cardpaymenttransactionstatus.d.ts +1 -0
- package/models/components/cardpaymenttransactionstatus.js +1 -0
- 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.
|
|
53625
|
-
genVersion: "2.
|
|
53626
|
-
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.
|
|
53624
|
+
sdkVersion: "0.0.0-dev.32",
|
|
53625
|
+
genVersion: "2.937.18",
|
|
53626
|
+
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.32 2.937.18 dev @moovio/sdk"
|
|
53627
53627
|
};
|
|
53628
53628
|
});
|
|
53629
53629
|
|
|
@@ -61990,7 +61990,8 @@ var init_cardpaymenttransactionstatus = __esm(() => {
|
|
|
61990
61990
|
Canceled: "canceled",
|
|
61991
61991
|
Settled: "settled",
|
|
61992
61992
|
Failed: "failed",
|
|
61993
|
-
Completed: "completed"
|
|
61993
|
+
Completed: "completed",
|
|
61994
|
+
ClearedExternal: "cleared-external"
|
|
61994
61995
|
};
|
|
61995
61996
|
CardPaymentTransactionStatus$inboundSchema = inboundSchema(CardPaymentTransactionStatus);
|
|
61996
61997
|
CardPaymentTransactionStatus$outboundSchema = outboundSchema(CardPaymentTransactionStatus);
|
|
@@ -65463,7 +65464,8 @@ var init_webhookeventtype = __esm(() => {
|
|
|
65463
65464
|
WalletUpdated: "wallet.updated",
|
|
65464
65465
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
65465
65466
|
BillingStatementCreated: "billingStatement.created",
|
|
65466
|
-
AuthorizationExpiring: "authorization.expiring"
|
|
65467
|
+
AuthorizationExpiring: "authorization.expiring",
|
|
65468
|
+
EventTest: "event.test"
|
|
65467
65469
|
};
|
|
65468
65470
|
WebhookEventType$inboundSchema = inboundSchema(WebhookEventType);
|
|
65469
65471
|
WebhookEventType$outboundSchema = outboundSchema(WebhookEventType);
|
|
@@ -67450,6 +67452,7 @@ var init_issuedcardauthorization = __esm(() => {
|
|
|
67450
67452
|
IssuedCardAuthorization$inboundSchema = objectType({
|
|
67451
67453
|
authorizationID: string4(),
|
|
67452
67454
|
issuedCardID: string4(),
|
|
67455
|
+
lastFourCardNumber: optional3(string4()),
|
|
67453
67456
|
fundingWalletID: string4(),
|
|
67454
67457
|
network: CardIssuingNetwork$inboundSchema,
|
|
67455
67458
|
authorizedAmount: string4(),
|
|
@@ -67461,6 +67464,7 @@ var init_issuedcardauthorization = __esm(() => {
|
|
|
67461
67464
|
IssuedCardAuthorization$outboundSchema = objectType({
|
|
67462
67465
|
authorizationID: stringType(),
|
|
67463
67466
|
issuedCardID: stringType(),
|
|
67467
|
+
lastFourCardNumber: stringType().optional(),
|
|
67464
67468
|
fundingWalletID: stringType(),
|
|
67465
67469
|
network: CardIssuingNetwork$outboundSchema,
|
|
67466
67470
|
authorizedAmount: stringType(),
|
|
@@ -67532,6 +67536,7 @@ var init_issuedcardtransaction = __esm(() => {
|
|
|
67532
67536
|
IssuedCardTransaction$inboundSchema = objectType({
|
|
67533
67537
|
cardTransactionID: string4(),
|
|
67534
67538
|
issuedCardID: string4(),
|
|
67539
|
+
lastFourCardNumber: optional3(string4()),
|
|
67535
67540
|
fundingWalletID: string4(),
|
|
67536
67541
|
amount: string4(),
|
|
67537
67542
|
authorizationID: optional3(string4()),
|
|
@@ -67542,6 +67547,7 @@ var init_issuedcardtransaction = __esm(() => {
|
|
|
67542
67547
|
IssuedCardTransaction$outboundSchema = objectType({
|
|
67543
67548
|
cardTransactionID: stringType(),
|
|
67544
67549
|
issuedCardID: stringType(),
|
|
67550
|
+
lastFourCardNumber: stringType().optional(),
|
|
67545
67551
|
fundingWalletID: stringType(),
|
|
67546
67552
|
amount: stringType(),
|
|
67547
67553
|
authorizationID: stringType().optional(),
|
|
@@ -72414,6 +72420,19 @@ var init_webhookdatadisputeupdated = __esm(() => {
|
|
|
72414
72420
|
});
|
|
72415
72421
|
});
|
|
72416
72422
|
|
|
72423
|
+
// src/models/components/webhookdataeventtest.ts
|
|
72424
|
+
var WebhookDataEventTest$inboundSchema, WebhookDataEventTest$outboundSchema;
|
|
72425
|
+
var init_webhookdataeventtest = __esm(() => {
|
|
72426
|
+
init_v3();
|
|
72427
|
+
init_primitives2();
|
|
72428
|
+
WebhookDataEventTest$inboundSchema = objectType({
|
|
72429
|
+
ping: boolean4()
|
|
72430
|
+
});
|
|
72431
|
+
WebhookDataEventTest$outboundSchema = objectType({
|
|
72432
|
+
ping: booleanType()
|
|
72433
|
+
});
|
|
72434
|
+
});
|
|
72435
|
+
|
|
72417
72436
|
// src/models/components/webhookdatainvoicecreated.ts
|
|
72418
72437
|
var WebhookDataInvoiceCreated$inboundSchema, WebhookDataInvoiceCreated$outboundSchema;
|
|
72419
72438
|
var init_webhookdatainvoicecreated = __esm(() => {
|
|
@@ -72886,6 +72905,7 @@ var init_webhookdata = __esm(() => {
|
|
|
72886
72905
|
init_webhookdatacardautoupdated();
|
|
72887
72906
|
init_webhookdatadisputecreated();
|
|
72888
72907
|
init_webhookdatadisputeupdated();
|
|
72908
|
+
init_webhookdataeventtest();
|
|
72889
72909
|
init_webhookdatainvoicecreated();
|
|
72890
72910
|
init_webhookdatainvoiceupdated();
|
|
72891
72911
|
init_webhookdatanetworkidupdated();
|
|
@@ -72947,7 +72967,8 @@ var init_webhookdata = __esm(() => {
|
|
|
72947
72967
|
WebhookDataAccountCreated$inboundSchema,
|
|
72948
72968
|
WebhookDataAccountUpdated$inboundSchema,
|
|
72949
72969
|
WebhookDataAccountDisconnected$inboundSchema,
|
|
72950
|
-
WebhookDataNetworkIDUpdated$inboundSchema
|
|
72970
|
+
WebhookDataNetworkIDUpdated$inboundSchema,
|
|
72971
|
+
WebhookDataEventTest$inboundSchema
|
|
72951
72972
|
]);
|
|
72952
72973
|
WebhookData$outboundSchema = smartUnion([
|
|
72953
72974
|
WebhookDataDisputeCreated$outboundSchema,
|
|
@@ -72988,7 +73009,8 @@ var init_webhookdata = __esm(() => {
|
|
|
72988
73009
|
WebhookDataAccountCreated$outboundSchema,
|
|
72989
73010
|
WebhookDataAccountUpdated$outboundSchema,
|
|
72990
73011
|
WebhookDataAccountDisconnected$outboundSchema,
|
|
72991
|
-
WebhookDataNetworkIDUpdated$outboundSchema
|
|
73012
|
+
WebhookDataNetworkIDUpdated$outboundSchema,
|
|
73013
|
+
WebhookDataEventTest$outboundSchema
|
|
72992
73014
|
]);
|
|
72993
73015
|
});
|
|
72994
73016
|
|
|
@@ -73687,6 +73709,7 @@ var init_components = __esm(() => {
|
|
|
73687
73709
|
init_webhookdatacardautoupdated();
|
|
73688
73710
|
init_webhookdatadisputecreated();
|
|
73689
73711
|
init_webhookdatadisputeupdated();
|
|
73712
|
+
init_webhookdataeventtest();
|
|
73690
73713
|
init_webhookdatainvoicecreated();
|
|
73691
73714
|
init_webhookdatainvoiceupdated();
|
|
73692
73715
|
init_webhookdatanetworkidupdated();
|
|
@@ -108111,7 +108134,7 @@ var init_webhooksUpdate2 = __esm(() => {
|
|
|
108111
108134
|
function createMCPServer(deps) {
|
|
108112
108135
|
const server = new McpServer({
|
|
108113
108136
|
name: "Moov",
|
|
108114
|
-
version: "0.0.0-dev.
|
|
108137
|
+
version: "0.0.0-dev.32"
|
|
108115
108138
|
});
|
|
108116
108139
|
const client = new MoovCore({
|
|
108117
108140
|
security: deps.security,
|
|
@@ -109733,7 +109756,7 @@ var routes = rn({
|
|
|
109733
109756
|
var app = Ve(routes, {
|
|
109734
109757
|
name: "mcp",
|
|
109735
109758
|
versionInfo: {
|
|
109736
|
-
currentVersion: "0.0.0-dev.
|
|
109759
|
+
currentVersion: "0.0.0-dev.32"
|
|
109737
109760
|
}
|
|
109738
109761
|
});
|
|
109739
109762
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -109741,5 +109764,5 @@ export {
|
|
|
109741
109764
|
app
|
|
109742
109765
|
};
|
|
109743
109766
|
|
|
109744
|
-
//# debugId=
|
|
109767
|
+
//# debugId=274C50DA564CFD4164756E2164756E21
|
|
109745
109768
|
//# 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.
|
|
43
|
-
readonly genVersion: "2.
|
|
44
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.0-dev.
|
|
42
|
+
readonly sdkVersion: "0.0.0-dev.32";
|
|
43
|
+
readonly genVersion: "2.937.18";
|
|
44
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.0-dev.32 2.937.18 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.
|
|
35
|
-
genVersion: "2.
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.
|
|
34
|
+
sdkVersion: "0.0.0-dev.32",
|
|
35
|
+
genVersion: "2.937.18",
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.32 2.937.18 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.32",
|
|
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.32",
|
|
215
215
|
});
|
|
216
216
|
const client = new core_js_1.MoovCore({
|
|
217
217
|
security: deps.security,
|
|
@@ -48,6 +48,7 @@ exports.CardPaymentTransactionStatus = {
|
|
|
48
48
|
Settled: "settled",
|
|
49
49
|
Failed: "failed",
|
|
50
50
|
Completed: "completed",
|
|
51
|
+
ClearedExternal: "cleared-external",
|
|
51
52
|
};
|
|
52
53
|
/** @internal */
|
|
53
54
|
exports.CardPaymentTransactionStatus$inboundSchema = openEnums.inboundSchema(exports.CardPaymentTransactionStatus);
|
|
@@ -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);
|