mollie-api-typescript 0.1.7 → 0.1.8
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/FUNCTIONS.md +7 -139
- package/README.md +77 -877
- package/bin/mcp-server.js +375 -182
- package/bin/mcp-server.js.map +10 -10
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +40 -40
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/models/operations/createwebhook.d.ts +96 -38
- package/dist/commonjs/models/operations/createwebhook.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createwebhook.js +79 -41
- package/dist/commonjs/models/operations/createwebhook.js.map +1 -1
- package/dist/commonjs/models/operations/getwebhook.d.ts +139 -21
- package/dist/commonjs/models/operations/getwebhook.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getwebhook.js +114 -20
- package/dist/commonjs/models/operations/getwebhook.js.map +1 -1
- package/dist/commonjs/models/operations/getwebhookevent.d.ts +63 -17
- package/dist/commonjs/models/operations/getwebhookevent.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getwebhookevent.js +48 -21
- package/dist/commonjs/models/operations/getwebhookevent.js.map +1 -1
- package/dist/commonjs/models/operations/listwebhooks.d.ts +160 -39
- package/dist/commonjs/models/operations/listwebhooks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listwebhooks.js +136 -41
- package/dist/commonjs/models/operations/listwebhooks.js.map +1 -1
- package/dist/commonjs/models/operations/updatewebhook.d.ts +162 -32
- package/dist/commonjs/models/operations/updatewebhook.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatewebhook.js +140 -33
- package/dist/commonjs/models/operations/updatewebhook.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +24 -24
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +36 -36
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +40 -40
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/models/operations/createwebhook.d.ts +96 -38
- package/dist/esm/models/operations/createwebhook.d.ts.map +1 -1
- package/dist/esm/models/operations/createwebhook.js +78 -40
- package/dist/esm/models/operations/createwebhook.js.map +1 -1
- package/dist/esm/models/operations/getwebhook.d.ts +139 -21
- package/dist/esm/models/operations/getwebhook.d.ts.map +1 -1
- package/dist/esm/models/operations/getwebhook.js +109 -19
- package/dist/esm/models/operations/getwebhook.js.map +1 -1
- package/dist/esm/models/operations/getwebhookevent.d.ts +63 -17
- package/dist/esm/models/operations/getwebhookevent.d.ts.map +1 -1
- package/dist/esm/models/operations/getwebhookevent.js +45 -18
- package/dist/esm/models/operations/getwebhookevent.js.map +1 -1
- package/dist/esm/models/operations/listwebhooks.d.ts +160 -39
- package/dist/esm/models/operations/listwebhooks.d.ts.map +1 -1
- package/dist/esm/models/operations/listwebhooks.js +130 -40
- package/dist/esm/models/operations/listwebhooks.js.map +1 -1
- package/dist/esm/models/operations/updatewebhook.d.ts +162 -32
- package/dist/esm/models/operations/updatewebhook.d.ts.map +1 -1
- package/dist/esm/models/operations/updatewebhook.js +135 -32
- package/dist/esm/models/operations/updatewebhook.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +24 -24
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +36 -36
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/docs/sdks/webhooks/README.md +4 -4
- package/examples/balancesList.example.ts +33 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- 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 +40 -40
- package/src/models/operations/createwebhook.ts +134 -73
- package/src/models/operations/getwebhook.ts +228 -39
- package/src/models/operations/getwebhookevent.ts +75 -35
- package/src/models/operations/listwebhooks.ts +262 -73
- package/src/models/operations/updatewebhook.ts +273 -59
- package/src/sdk/sdk.ts +60 -60
- package/examples/paymentsCreate.example.ts +0 -166
package/bin/mcp-server.js
CHANGED
|
@@ -34269,9 +34269,9 @@ var init_config = __esm(() => {
|
|
|
34269
34269
|
SDK_METADATA = {
|
|
34270
34270
|
language: "typescript",
|
|
34271
34271
|
openapiDocVersion: "1.0.0",
|
|
34272
|
-
sdkVersion: "0.1.
|
|
34273
|
-
genVersion: "2.
|
|
34274
|
-
userAgent: "speakeasy-sdk/typescript 0.1.
|
|
34272
|
+
sdkVersion: "0.1.8",
|
|
34273
|
+
genVersion: "2.692.0",
|
|
34274
|
+
userAgent: "speakeasy-sdk/typescript 0.1.8 2.692.0 1.0.0 mollie-api-typescript"
|
|
34275
34275
|
};
|
|
34276
34276
|
});
|
|
34277
34277
|
|
|
@@ -44818,17 +44818,27 @@ var init_createsubscription = __esm(() => {
|
|
|
44818
44818
|
});
|
|
44819
44819
|
|
|
44820
44820
|
// src/models/operations/createwebhook.ts
|
|
44821
|
-
var
|
|
44821
|
+
var CreateWebhookWebhookEventTypesRequest, CreateWebhookEventTypeWebhookEventTypes, CreateWebhookStatus, CreateWebhookMode, CreateWebhookWebhookEventTypesRequest$inboundSchema, CreateWebhookWebhookEventTypesRequest$outboundSchema, CreateWebhookWebhookEventTypesRequest$, CreateWebhookRequest$inboundSchema, CreateWebhookRequest$outboundSchema, CreateWebhookRequest$, CreateWebhookUnprocessableEntityDocumentation$inboundSchema, CreateWebhookUnprocessableEntityDocumentation$outboundSchema, CreateWebhookUnprocessableEntityDocumentation$, CreateWebhookUnprocessableEntityLinks$inboundSchema, CreateWebhookUnprocessableEntityLinks$outboundSchema, CreateWebhookUnprocessableEntityLinks$, CreateWebhookEventTypeWebhookEventTypes$inboundSchema, CreateWebhookEventTypeWebhookEventTypes$outboundSchema, CreateWebhookEventTypeWebhookEventTypes$, CreateWebhookStatus$inboundSchema, CreateWebhookStatus$outboundSchema, CreateWebhookStatus$, CreateWebhookMode$inboundSchema, CreateWebhookMode$outboundSchema, CreateWebhookMode$, CreateWebhookDocumentation$inboundSchema, CreateWebhookDocumentation$outboundSchema, CreateWebhookDocumentation$, CreateWebhookLinks$inboundSchema, CreateWebhookLinks$outboundSchema, CreateWebhookLinks$, CreateWebhookResponse$inboundSchema, CreateWebhookResponse$outboundSchema, CreateWebhookResponse$;
|
|
44822
44822
|
var init_createwebhook = __esm(() => {
|
|
44823
44823
|
init_esm();
|
|
44824
44824
|
init_primitives();
|
|
44825
|
-
|
|
44825
|
+
CreateWebhookWebhookEventTypesRequest = {
|
|
44826
44826
|
PaymentLinkPaid: "payment-link.paid",
|
|
44827
44827
|
BalanceTransactionCreated: "balance-transaction.created",
|
|
44828
44828
|
SalesInvoiceCreated: "sales-invoice.created",
|
|
44829
44829
|
SalesInvoiceIssued: "sales-invoice.issued",
|
|
44830
44830
|
SalesInvoiceCanceled: "sales-invoice.canceled",
|
|
44831
|
-
SalesInvoicePaid: "sales-invoice.paid"
|
|
44831
|
+
SalesInvoicePaid: "sales-invoice.paid",
|
|
44832
|
+
Wildcard: "*"
|
|
44833
|
+
};
|
|
44834
|
+
CreateWebhookEventTypeWebhookEventTypes = {
|
|
44835
|
+
PaymentLinkPaid: "payment-link.paid",
|
|
44836
|
+
BalanceTransactionCreated: "balance-transaction.created",
|
|
44837
|
+
SalesInvoiceCreated: "sales-invoice.created",
|
|
44838
|
+
SalesInvoiceIssued: "sales-invoice.issued",
|
|
44839
|
+
SalesInvoiceCanceled: "sales-invoice.canceled",
|
|
44840
|
+
SalesInvoicePaid: "sales-invoice.paid",
|
|
44841
|
+
Wildcard: "*"
|
|
44832
44842
|
};
|
|
44833
44843
|
CreateWebhookStatus = {
|
|
44834
44844
|
Enabled: "enabled",
|
|
@@ -44839,23 +44849,31 @@ var init_createwebhook = __esm(() => {
|
|
|
44839
44849
|
Live: "live",
|
|
44840
44850
|
Test: "test"
|
|
44841
44851
|
};
|
|
44842
|
-
|
|
44843
|
-
|
|
44844
|
-
((
|
|
44845
|
-
|
|
44846
|
-
|
|
44847
|
-
})(
|
|
44852
|
+
CreateWebhookWebhookEventTypesRequest$inboundSchema = nativeEnumType(CreateWebhookWebhookEventTypesRequest);
|
|
44853
|
+
CreateWebhookWebhookEventTypesRequest$outboundSchema = CreateWebhookWebhookEventTypesRequest$inboundSchema;
|
|
44854
|
+
((CreateWebhookWebhookEventTypesRequest$) => {
|
|
44855
|
+
CreateWebhookWebhookEventTypesRequest$.inboundSchema = CreateWebhookWebhookEventTypesRequest$inboundSchema;
|
|
44856
|
+
CreateWebhookWebhookEventTypesRequest$.outboundSchema = CreateWebhookWebhookEventTypesRequest$outboundSchema;
|
|
44857
|
+
})(CreateWebhookWebhookEventTypesRequest$ ||= {});
|
|
44848
44858
|
CreateWebhookRequest$inboundSchema = objectType({
|
|
44849
44859
|
name: stringType(),
|
|
44850
44860
|
url: stringType(),
|
|
44851
|
-
eventTypes:
|
|
44861
|
+
eventTypes: CreateWebhookWebhookEventTypesRequest$inboundSchema,
|
|
44852
44862
|
testmode: nullableType(booleanType()).optional()
|
|
44863
|
+
}).transform((v2) => {
|
|
44864
|
+
return remap(v2, {
|
|
44865
|
+
eventTypes: "webhookEventTypes"
|
|
44866
|
+
});
|
|
44853
44867
|
});
|
|
44854
44868
|
CreateWebhookRequest$outboundSchema = objectType({
|
|
44855
44869
|
name: stringType(),
|
|
44856
44870
|
url: stringType(),
|
|
44857
|
-
|
|
44871
|
+
webhookEventTypes: CreateWebhookWebhookEventTypesRequest$outboundSchema,
|
|
44858
44872
|
testmode: nullableType(booleanType()).optional()
|
|
44873
|
+
}).transform((v2) => {
|
|
44874
|
+
return remap(v2, {
|
|
44875
|
+
webhookEventTypes: "eventTypes"
|
|
44876
|
+
});
|
|
44859
44877
|
});
|
|
44860
44878
|
((CreateWebhookRequest$) => {
|
|
44861
44879
|
CreateWebhookRequest$.inboundSchema = CreateWebhookRequest$inboundSchema;
|
|
@@ -44883,6 +44901,12 @@ var init_createwebhook = __esm(() => {
|
|
|
44883
44901
|
CreateWebhookUnprocessableEntityLinks$.inboundSchema = CreateWebhookUnprocessableEntityLinks$inboundSchema;
|
|
44884
44902
|
CreateWebhookUnprocessableEntityLinks$.outboundSchema = CreateWebhookUnprocessableEntityLinks$outboundSchema;
|
|
44885
44903
|
})(CreateWebhookUnprocessableEntityLinks$ ||= {});
|
|
44904
|
+
CreateWebhookEventTypeWebhookEventTypes$inboundSchema = nativeEnumType(CreateWebhookEventTypeWebhookEventTypes);
|
|
44905
|
+
CreateWebhookEventTypeWebhookEventTypes$outboundSchema = CreateWebhookEventTypeWebhookEventTypes$inboundSchema;
|
|
44906
|
+
((CreateWebhookEventTypeWebhookEventTypes$) => {
|
|
44907
|
+
CreateWebhookEventTypeWebhookEventTypes$.inboundSchema = CreateWebhookEventTypeWebhookEventTypes$inboundSchema;
|
|
44908
|
+
CreateWebhookEventTypeWebhookEventTypes$.outboundSchema = CreateWebhookEventTypeWebhookEventTypes$outboundSchema;
|
|
44909
|
+
})(CreateWebhookEventTypeWebhookEventTypes$ ||= {});
|
|
44886
44910
|
CreateWebhookStatus$inboundSchema = nativeEnumType(CreateWebhookStatus);
|
|
44887
44911
|
CreateWebhookStatus$outboundSchema = CreateWebhookStatus$inboundSchema;
|
|
44888
44912
|
((CreateWebhookStatus$) => {
|
|
@@ -44908,44 +44932,44 @@ var init_createwebhook = __esm(() => {
|
|
|
44908
44932
|
CreateWebhookDocumentation$.outboundSchema = CreateWebhookDocumentation$outboundSchema;
|
|
44909
44933
|
})(CreateWebhookDocumentation$ ||= {});
|
|
44910
44934
|
CreateWebhookLinks$inboundSchema = objectType({
|
|
44911
|
-
documentation: lazyType(() => CreateWebhookDocumentation$inboundSchema)
|
|
44935
|
+
documentation: lazyType(() => CreateWebhookDocumentation$inboundSchema)
|
|
44912
44936
|
});
|
|
44913
44937
|
CreateWebhookLinks$outboundSchema = objectType({
|
|
44914
|
-
documentation: lazyType(() => CreateWebhookDocumentation$outboundSchema)
|
|
44938
|
+
documentation: lazyType(() => CreateWebhookDocumentation$outboundSchema)
|
|
44915
44939
|
});
|
|
44916
44940
|
((CreateWebhookLinks$) => {
|
|
44917
44941
|
CreateWebhookLinks$.inboundSchema = CreateWebhookLinks$inboundSchema;
|
|
44918
44942
|
CreateWebhookLinks$.outboundSchema = CreateWebhookLinks$outboundSchema;
|
|
44919
44943
|
})(CreateWebhookLinks$ ||= {});
|
|
44920
44944
|
CreateWebhookResponse$inboundSchema = objectType({
|
|
44921
|
-
resource: stringType()
|
|
44922
|
-
id: stringType()
|
|
44923
|
-
url: stringType()
|
|
44924
|
-
profileId: stringType()
|
|
44925
|
-
createdAt: stringType()
|
|
44926
|
-
name: stringType()
|
|
44927
|
-
eventTypes: arrayType(
|
|
44928
|
-
status: CreateWebhookStatus$inboundSchema
|
|
44929
|
-
mode: CreateWebhookMode$inboundSchema
|
|
44930
|
-
webhookSecret: stringType()
|
|
44931
|
-
_links: lazyType(() => CreateWebhookLinks$inboundSchema)
|
|
44945
|
+
resource: stringType(),
|
|
44946
|
+
id: stringType(),
|
|
44947
|
+
url: stringType(),
|
|
44948
|
+
profileId: stringType(),
|
|
44949
|
+
createdAt: stringType(),
|
|
44950
|
+
name: stringType(),
|
|
44951
|
+
eventTypes: arrayType(CreateWebhookEventTypeWebhookEventTypes$inboundSchema),
|
|
44952
|
+
status: CreateWebhookStatus$inboundSchema,
|
|
44953
|
+
mode: CreateWebhookMode$inboundSchema,
|
|
44954
|
+
webhookSecret: stringType(),
|
|
44955
|
+
_links: lazyType(() => CreateWebhookLinks$inboundSchema)
|
|
44932
44956
|
}).transform((v2) => {
|
|
44933
44957
|
return remap(v2, {
|
|
44934
44958
|
_links: "links"
|
|
44935
44959
|
});
|
|
44936
44960
|
});
|
|
44937
44961
|
CreateWebhookResponse$outboundSchema = objectType({
|
|
44938
|
-
resource: stringType()
|
|
44939
|
-
id: stringType()
|
|
44940
|
-
url: stringType()
|
|
44941
|
-
profileId: stringType()
|
|
44942
|
-
createdAt: stringType()
|
|
44943
|
-
name: stringType()
|
|
44944
|
-
eventTypes: arrayType(
|
|
44945
|
-
status: CreateWebhookStatus$outboundSchema
|
|
44946
|
-
mode: CreateWebhookMode$outboundSchema
|
|
44947
|
-
webhookSecret: stringType()
|
|
44948
|
-
links: lazyType(() => CreateWebhookLinks$outboundSchema)
|
|
44962
|
+
resource: stringType(),
|
|
44963
|
+
id: stringType(),
|
|
44964
|
+
url: stringType(),
|
|
44965
|
+
profileId: stringType(),
|
|
44966
|
+
createdAt: stringType(),
|
|
44967
|
+
name: stringType(),
|
|
44968
|
+
eventTypes: arrayType(CreateWebhookEventTypeWebhookEventTypes$outboundSchema),
|
|
44969
|
+
status: CreateWebhookStatus$outboundSchema,
|
|
44970
|
+
mode: CreateWebhookMode$outboundSchema,
|
|
44971
|
+
webhookSecret: stringType(),
|
|
44972
|
+
links: lazyType(() => CreateWebhookLinks$outboundSchema)
|
|
44949
44973
|
}).transform((v2) => {
|
|
44950
44974
|
return remap(v2, {
|
|
44951
44975
|
links: "_links"
|
|
@@ -70032,9 +70056,19 @@ var init_getterminal = __esm(() => {
|
|
|
70032
70056
|
});
|
|
70033
70057
|
|
|
70034
70058
|
// src/models/operations/getwebhook.ts
|
|
70035
|
-
var GetWebhookStatus, GetWebhookMode, GetWebhookRequest$inboundSchema, GetWebhookRequest$outboundSchema, GetWebhookRequest$, GetWebhookUnprocessableEntityDocumentation$inboundSchema, GetWebhookUnprocessableEntityDocumentation$outboundSchema, GetWebhookUnprocessableEntityDocumentation$, GetWebhookUnprocessableEntityLinks$inboundSchema, GetWebhookUnprocessableEntityLinks$outboundSchema, GetWebhookUnprocessableEntityLinks$, GetWebhookNotFoundDocumentation$inboundSchema, GetWebhookNotFoundDocumentation$outboundSchema, GetWebhookNotFoundDocumentation$, GetWebhookNotFoundLinks$inboundSchema, GetWebhookNotFoundLinks$outboundSchema, GetWebhookNotFoundLinks$, GetWebhookStatus$inboundSchema, GetWebhookStatus$outboundSchema, GetWebhookStatus$, GetWebhookMode$inboundSchema, GetWebhookMode$outboundSchema, GetWebhookMode$, GetWebhookResponse$inboundSchema, GetWebhookResponse$outboundSchema, GetWebhookResponse$;
|
|
70059
|
+
var GetWebhookWebhookEventTypes, GetWebhookStatus, GetWebhookMode, GetWebhookRequest$inboundSchema, GetWebhookRequest$outboundSchema, GetWebhookRequest$, GetWebhookUnprocessableEntityDocumentation$inboundSchema, GetWebhookUnprocessableEntityDocumentation$outboundSchema, GetWebhookUnprocessableEntityDocumentation$, GetWebhookUnprocessableEntityLinks$inboundSchema, GetWebhookUnprocessableEntityLinks$outboundSchema, GetWebhookUnprocessableEntityLinks$, GetWebhookNotFoundDocumentation$inboundSchema, GetWebhookNotFoundDocumentation$outboundSchema, GetWebhookNotFoundDocumentation$, GetWebhookNotFoundLinks$inboundSchema, GetWebhookNotFoundLinks$outboundSchema, GetWebhookNotFoundLinks$, GetWebhookWebhookEventTypes$inboundSchema, GetWebhookWebhookEventTypes$outboundSchema, GetWebhookWebhookEventTypes$, GetWebhookStatus$inboundSchema, GetWebhookStatus$outboundSchema, GetWebhookStatus$, GetWebhookMode$inboundSchema, GetWebhookMode$outboundSchema, GetWebhookMode$, GetWebhookDocumentation$inboundSchema, GetWebhookDocumentation$outboundSchema, GetWebhookDocumentation$, GetWebhookLinks$inboundSchema, GetWebhookLinks$outboundSchema, GetWebhookLinks$, GetWebhookResponse$inboundSchema, GetWebhookResponse$outboundSchema, GetWebhookResponse$;
|
|
70036
70060
|
var init_getwebhook = __esm(() => {
|
|
70037
70061
|
init_esm();
|
|
70062
|
+
init_primitives();
|
|
70063
|
+
GetWebhookWebhookEventTypes = {
|
|
70064
|
+
PaymentLinkPaid: "payment-link.paid",
|
|
70065
|
+
BalanceTransactionCreated: "balance-transaction.created",
|
|
70066
|
+
SalesInvoiceCreated: "sales-invoice.created",
|
|
70067
|
+
SalesInvoiceIssued: "sales-invoice.issued",
|
|
70068
|
+
SalesInvoiceCanceled: "sales-invoice.canceled",
|
|
70069
|
+
SalesInvoicePaid: "sales-invoice.paid",
|
|
70070
|
+
Wildcard: "*"
|
|
70071
|
+
};
|
|
70038
70072
|
GetWebhookStatus = {
|
|
70039
70073
|
Enabled: "enabled",
|
|
70040
70074
|
Blocked: "blocked",
|
|
@@ -70101,6 +70135,12 @@ var init_getwebhook = __esm(() => {
|
|
|
70101
70135
|
GetWebhookNotFoundLinks$.inboundSchema = GetWebhookNotFoundLinks$inboundSchema;
|
|
70102
70136
|
GetWebhookNotFoundLinks$.outboundSchema = GetWebhookNotFoundLinks$outboundSchema;
|
|
70103
70137
|
})(GetWebhookNotFoundLinks$ ||= {});
|
|
70138
|
+
GetWebhookWebhookEventTypes$inboundSchema = nativeEnumType(GetWebhookWebhookEventTypes);
|
|
70139
|
+
GetWebhookWebhookEventTypes$outboundSchema = GetWebhookWebhookEventTypes$inboundSchema;
|
|
70140
|
+
((GetWebhookWebhookEventTypes$) => {
|
|
70141
|
+
GetWebhookWebhookEventTypes$.inboundSchema = GetWebhookWebhookEventTypes$inboundSchema;
|
|
70142
|
+
GetWebhookWebhookEventTypes$.outboundSchema = GetWebhookWebhookEventTypes$outboundSchema;
|
|
70143
|
+
})(GetWebhookWebhookEventTypes$ ||= {});
|
|
70104
70144
|
GetWebhookStatus$inboundSchema = nativeEnumType(GetWebhookStatus);
|
|
70105
70145
|
GetWebhookStatus$outboundSchema = GetWebhookStatus$inboundSchema;
|
|
70106
70146
|
((GetWebhookStatus$) => {
|
|
@@ -70113,27 +70153,59 @@ var init_getwebhook = __esm(() => {
|
|
|
70113
70153
|
GetWebhookMode$.inboundSchema = GetWebhookMode$inboundSchema;
|
|
70114
70154
|
GetWebhookMode$.outboundSchema = GetWebhookMode$outboundSchema;
|
|
70115
70155
|
})(GetWebhookMode$ ||= {});
|
|
70156
|
+
GetWebhookDocumentation$inboundSchema = objectType({
|
|
70157
|
+
href: stringType(),
|
|
70158
|
+
type: stringType()
|
|
70159
|
+
});
|
|
70160
|
+
GetWebhookDocumentation$outboundSchema = objectType({
|
|
70161
|
+
href: stringType(),
|
|
70162
|
+
type: stringType()
|
|
70163
|
+
});
|
|
70164
|
+
((GetWebhookDocumentation$) => {
|
|
70165
|
+
GetWebhookDocumentation$.inboundSchema = GetWebhookDocumentation$inboundSchema;
|
|
70166
|
+
GetWebhookDocumentation$.outboundSchema = GetWebhookDocumentation$outboundSchema;
|
|
70167
|
+
})(GetWebhookDocumentation$ ||= {});
|
|
70168
|
+
GetWebhookLinks$inboundSchema = objectType({
|
|
70169
|
+
documentation: lazyType(() => GetWebhookDocumentation$inboundSchema)
|
|
70170
|
+
});
|
|
70171
|
+
GetWebhookLinks$outboundSchema = objectType({
|
|
70172
|
+
documentation: lazyType(() => GetWebhookDocumentation$outboundSchema)
|
|
70173
|
+
});
|
|
70174
|
+
((GetWebhookLinks$) => {
|
|
70175
|
+
GetWebhookLinks$.inboundSchema = GetWebhookLinks$inboundSchema;
|
|
70176
|
+
GetWebhookLinks$.outboundSchema = GetWebhookLinks$outboundSchema;
|
|
70177
|
+
})(GetWebhookLinks$ ||= {});
|
|
70116
70178
|
GetWebhookResponse$inboundSchema = objectType({
|
|
70117
|
-
resource: stringType()
|
|
70118
|
-
id: stringType()
|
|
70119
|
-
url: stringType()
|
|
70120
|
-
profileId: stringType()
|
|
70121
|
-
createdAt: stringType()
|
|
70122
|
-
name: stringType()
|
|
70123
|
-
eventTypes: arrayType(
|
|
70124
|
-
status: GetWebhookStatus$inboundSchema
|
|
70125
|
-
mode: GetWebhookMode$inboundSchema
|
|
70179
|
+
resource: stringType(),
|
|
70180
|
+
id: stringType(),
|
|
70181
|
+
url: stringType(),
|
|
70182
|
+
profileId: nullableType(stringType()),
|
|
70183
|
+
createdAt: stringType(),
|
|
70184
|
+
name: stringType(),
|
|
70185
|
+
eventTypes: arrayType(GetWebhookWebhookEventTypes$inboundSchema),
|
|
70186
|
+
status: GetWebhookStatus$inboundSchema,
|
|
70187
|
+
mode: GetWebhookMode$inboundSchema,
|
|
70188
|
+
_links: lazyType(() => GetWebhookLinks$inboundSchema)
|
|
70189
|
+
}).transform((v2) => {
|
|
70190
|
+
return remap(v2, {
|
|
70191
|
+
_links: "links"
|
|
70192
|
+
});
|
|
70126
70193
|
});
|
|
70127
70194
|
GetWebhookResponse$outboundSchema = objectType({
|
|
70128
|
-
resource: stringType()
|
|
70129
|
-
id: stringType()
|
|
70130
|
-
url: stringType()
|
|
70131
|
-
profileId: stringType()
|
|
70132
|
-
createdAt: stringType()
|
|
70133
|
-
name: stringType()
|
|
70134
|
-
eventTypes: arrayType(
|
|
70135
|
-
status: GetWebhookStatus$outboundSchema
|
|
70136
|
-
mode: GetWebhookMode$outboundSchema
|
|
70195
|
+
resource: stringType(),
|
|
70196
|
+
id: stringType(),
|
|
70197
|
+
url: stringType(),
|
|
70198
|
+
profileId: nullableType(stringType()),
|
|
70199
|
+
createdAt: stringType(),
|
|
70200
|
+
name: stringType(),
|
|
70201
|
+
eventTypes: arrayType(GetWebhookWebhookEventTypes$outboundSchema),
|
|
70202
|
+
status: GetWebhookStatus$outboundSchema,
|
|
70203
|
+
mode: GetWebhookMode$outboundSchema,
|
|
70204
|
+
links: lazyType(() => GetWebhookLinks$outboundSchema)
|
|
70205
|
+
}).transform((v2) => {
|
|
70206
|
+
return remap(v2, {
|
|
70207
|
+
links: "_links"
|
|
70208
|
+
});
|
|
70137
70209
|
});
|
|
70138
70210
|
((GetWebhookResponse$) => {
|
|
70139
70211
|
GetWebhookResponse$.inboundSchema = GetWebhookResponse$inboundSchema;
|
|
@@ -70142,10 +70214,19 @@ var init_getwebhook = __esm(() => {
|
|
|
70142
70214
|
});
|
|
70143
70215
|
|
|
70144
70216
|
// src/models/operations/getwebhookevent.ts
|
|
70145
|
-
var GetWebhookEventMode2, GetWebhookEventStatus, GetWebhookEventReviewStatus, GetWebhookEventMode1, GetWebhookEventType, GetWebhookEventCategory, GetWebhookEventSequenceType, GetWebhookEventRequest$inboundSchema, GetWebhookEventRequest$outboundSchema, GetWebhookEventRequest$, GetWebhookEventNotFoundDocumentation$inboundSchema, GetWebhookEventNotFoundDocumentation$outboundSchema, GetWebhookEventNotFoundDocumentation$, GetWebhookEventNotFoundLinks$inboundSchema, GetWebhookEventNotFoundLinks$outboundSchema, GetWebhookEventNotFoundLinks$, GetWebhookEventMode2$inboundSchema, GetWebhookEventMode2$outboundSchema, GetWebhookEventMode2$, GetWebhookEventStatus$inboundSchema, GetWebhookEventStatus$outboundSchema, GetWebhookEventStatus$, GetWebhookEventReviewStatus$inboundSchema, GetWebhookEventReviewStatus$outboundSchema, GetWebhookEventReviewStatus$, GetWebhookEventReview$inboundSchema, GetWebhookEventReview$outboundSchema, GetWebhookEventReview$, EntitySelf2$inboundSchema, EntitySelf2$outboundSchema, EntitySelf2$, GetWebhookEventDashboard$inboundSchema, GetWebhookEventDashboard$outboundSchema, GetWebhookEventDashboard$, GetWebhookEventChargebacks$inboundSchema, GetWebhookEventChargebacks$outboundSchema, GetWebhookEventChargebacks$, GetWebhookEventMethods$inboundSchema, GetWebhookEventMethods$outboundSchema, GetWebhookEventMethods$, GetWebhookEventPayments$inboundSchema, GetWebhookEventPayments$outboundSchema, GetWebhookEventPayments$, GetWebhookEventRefunds$inboundSchema, GetWebhookEventRefunds$outboundSchema, GetWebhookEventRefunds$, GetWebhookEventCheckoutPreviewUrl$inboundSchema, GetWebhookEventCheckoutPreviewUrl$outboundSchema, GetWebhookEventCheckoutPreviewUrl$, EntityDocumentation$inboundSchema, EntityDocumentation$outboundSchema, EntityDocumentation$, EntityLinks2$inboundSchema, EntityLinks2$outboundSchema, EntityLinks2$, GetWebhookEventProfile$inboundSchema, GetWebhookEventProfile$outboundSchema, GetWebhookEventProfile$, GetWebhookEventMode1$inboundSchema, GetWebhookEventMode1$outboundSchema, GetWebhookEventMode1$, GetWebhookEventAmount$inboundSchema, GetWebhookEventAmount$outboundSchema, GetWebhookEventAmount$, GetWebhookEventMinimumAmount$inboundSchema, GetWebhookEventMinimumAmount$outboundSchema, GetWebhookEventMinimumAmount$, GetWebhookEventType$inboundSchema, GetWebhookEventType$outboundSchema, GetWebhookEventType$, GetWebhookEventUnitPrice$inboundSchema, GetWebhookEventUnitPrice$outboundSchema, GetWebhookEventUnitPrice$, GetWebhookEventDiscountAmount$inboundSchema, GetWebhookEventDiscountAmount$outboundSchema, GetWebhookEventDiscountAmount$, GetWebhookEventTotalAmount$inboundSchema, GetWebhookEventTotalAmount$outboundSchema, GetWebhookEventTotalAmount$, GetWebhookEventVatAmount$inboundSchema, GetWebhookEventVatAmount$outboundSchema, GetWebhookEventVatAmount$, GetWebhookEventCategory$inboundSchema, GetWebhookEventCategory$outboundSchema, GetWebhookEventCategory$, GetWebhookEventLine$inboundSchema, GetWebhookEventLine$outboundSchema, GetWebhookEventLine$, GetWebhookEventBillingAddress$inboundSchema, GetWebhookEventBillingAddress$outboundSchema, GetWebhookEventBillingAddress$, GetWebhookEventShippingAddress$inboundSchema, GetWebhookEventShippingAddress$outboundSchema, GetWebhookEventShippingAddress$, GetWebhookEventApplicationFeeAmount$inboundSchema, GetWebhookEventApplicationFeeAmount$outboundSchema, GetWebhookEventApplicationFeeAmount$, GetWebhookEventApplicationFee$inboundSchema, GetWebhookEventApplicationFee$outboundSchema, GetWebhookEventApplicationFee$, GetWebhookEventSequenceType$inboundSchema, GetWebhookEventSequenceType$outboundSchema, GetWebhookEventSequenceType$, EntitySelf1$inboundSchema, EntitySelf1$outboundSchema, EntitySelf1$, GetWebhookEventLinksPaymentLink$inboundSchema, GetWebhookEventLinksPaymentLink$outboundSchema, GetWebhookEventLinksPaymentLink$, EntityLinks1$inboundSchema, EntityLinks1$outboundSchema, EntityLinks1$, GetWebhookEventPaymentLinkOutput$inboundSchema, GetWebhookEventPaymentLinkOutput$outboundSchema, GetWebhookEventPaymentLinkOutput$, Entity$inboundSchema, Entity$outboundSchema, Entity$, GetWebhookEventEmbedded$inboundSchema, GetWebhookEventEmbedded$outboundSchema, GetWebhookEventEmbedded$, GetWebhookEventSelf$inboundSchema, GetWebhookEventSelf$outboundSchema, GetWebhookEventSelf$, GetWebhookEventDocumentation$inboundSchema, GetWebhookEventDocumentation$outboundSchema, GetWebhookEventDocumentation$, LinksEntity$inboundSchema, LinksEntity$outboundSchema, LinksEntity$, GetWebhookEventLinks$inboundSchema, GetWebhookEventLinks$outboundSchema, GetWebhookEventLinks$, GetWebhookEventResponse$inboundSchema, GetWebhookEventResponse$outboundSchema, GetWebhookEventResponse$;
|
|
70217
|
+
var GetWebhookEventWebhookEventTypes, GetWebhookEventMode2, GetWebhookEventStatus, GetWebhookEventReviewStatus, GetWebhookEventMode1, GetWebhookEventType, GetWebhookEventCategory, GetWebhookEventSequenceType, GetWebhookEventRequest$inboundSchema, GetWebhookEventRequest$outboundSchema, GetWebhookEventRequest$, GetWebhookEventNotFoundDocumentation$inboundSchema, GetWebhookEventNotFoundDocumentation$outboundSchema, GetWebhookEventNotFoundDocumentation$, GetWebhookEventNotFoundLinks$inboundSchema, GetWebhookEventNotFoundLinks$outboundSchema, GetWebhookEventNotFoundLinks$, GetWebhookEventWebhookEventTypes$inboundSchema, GetWebhookEventWebhookEventTypes$outboundSchema, GetWebhookEventWebhookEventTypes$, GetWebhookEventMode2$inboundSchema, GetWebhookEventMode2$outboundSchema, GetWebhookEventMode2$, GetWebhookEventStatus$inboundSchema, GetWebhookEventStatus$outboundSchema, GetWebhookEventStatus$, GetWebhookEventReviewStatus$inboundSchema, GetWebhookEventReviewStatus$outboundSchema, GetWebhookEventReviewStatus$, GetWebhookEventReview$inboundSchema, GetWebhookEventReview$outboundSchema, GetWebhookEventReview$, EntitySelf2$inboundSchema, EntitySelf2$outboundSchema, EntitySelf2$, GetWebhookEventDashboard$inboundSchema, GetWebhookEventDashboard$outboundSchema, GetWebhookEventDashboard$, GetWebhookEventChargebacks$inboundSchema, GetWebhookEventChargebacks$outboundSchema, GetWebhookEventChargebacks$, GetWebhookEventMethods$inboundSchema, GetWebhookEventMethods$outboundSchema, GetWebhookEventMethods$, GetWebhookEventPayments$inboundSchema, GetWebhookEventPayments$outboundSchema, GetWebhookEventPayments$, GetWebhookEventRefunds$inboundSchema, GetWebhookEventRefunds$outboundSchema, GetWebhookEventRefunds$, GetWebhookEventCheckoutPreviewUrl$inboundSchema, GetWebhookEventCheckoutPreviewUrl$outboundSchema, GetWebhookEventCheckoutPreviewUrl$, EntityDocumentation$inboundSchema, EntityDocumentation$outboundSchema, EntityDocumentation$, EntityLinks2$inboundSchema, EntityLinks2$outboundSchema, EntityLinks2$, GetWebhookEventProfile$inboundSchema, GetWebhookEventProfile$outboundSchema, GetWebhookEventProfile$, GetWebhookEventMode1$inboundSchema, GetWebhookEventMode1$outboundSchema, GetWebhookEventMode1$, GetWebhookEventAmount$inboundSchema, GetWebhookEventAmount$outboundSchema, GetWebhookEventAmount$, GetWebhookEventMinimumAmount$inboundSchema, GetWebhookEventMinimumAmount$outboundSchema, GetWebhookEventMinimumAmount$, GetWebhookEventType$inboundSchema, GetWebhookEventType$outboundSchema, GetWebhookEventType$, GetWebhookEventUnitPrice$inboundSchema, GetWebhookEventUnitPrice$outboundSchema, GetWebhookEventUnitPrice$, GetWebhookEventDiscountAmount$inboundSchema, GetWebhookEventDiscountAmount$outboundSchema, GetWebhookEventDiscountAmount$, GetWebhookEventTotalAmount$inboundSchema, GetWebhookEventTotalAmount$outboundSchema, GetWebhookEventTotalAmount$, GetWebhookEventVatAmount$inboundSchema, GetWebhookEventVatAmount$outboundSchema, GetWebhookEventVatAmount$, GetWebhookEventCategory$inboundSchema, GetWebhookEventCategory$outboundSchema, GetWebhookEventCategory$, GetWebhookEventLine$inboundSchema, GetWebhookEventLine$outboundSchema, GetWebhookEventLine$, GetWebhookEventBillingAddress$inboundSchema, GetWebhookEventBillingAddress$outboundSchema, GetWebhookEventBillingAddress$, GetWebhookEventShippingAddress$inboundSchema, GetWebhookEventShippingAddress$outboundSchema, GetWebhookEventShippingAddress$, GetWebhookEventApplicationFeeAmount$inboundSchema, GetWebhookEventApplicationFeeAmount$outboundSchema, GetWebhookEventApplicationFeeAmount$, GetWebhookEventApplicationFee$inboundSchema, GetWebhookEventApplicationFee$outboundSchema, GetWebhookEventApplicationFee$, GetWebhookEventSequenceType$inboundSchema, GetWebhookEventSequenceType$outboundSchema, GetWebhookEventSequenceType$, EntitySelf1$inboundSchema, EntitySelf1$outboundSchema, EntitySelf1$, GetWebhookEventLinksPaymentLink$inboundSchema, GetWebhookEventLinksPaymentLink$outboundSchema, GetWebhookEventLinksPaymentLink$, EntityLinks1$inboundSchema, EntityLinks1$outboundSchema, EntityLinks1$, GetWebhookEventPaymentLinkOutput$inboundSchema, GetWebhookEventPaymentLinkOutput$outboundSchema, GetWebhookEventPaymentLinkOutput$, Entity$inboundSchema, Entity$outboundSchema, Entity$, GetWebhookEventEmbedded$inboundSchema, GetWebhookEventEmbedded$outboundSchema, GetWebhookEventEmbedded$, GetWebhookEventSelf$inboundSchema, GetWebhookEventSelf$outboundSchema, GetWebhookEventSelf$, GetWebhookEventDocumentation$inboundSchema, GetWebhookEventDocumentation$outboundSchema, GetWebhookEventDocumentation$, LinksEntity$inboundSchema, LinksEntity$outboundSchema, LinksEntity$, GetWebhookEventLinks$inboundSchema, GetWebhookEventLinks$outboundSchema, GetWebhookEventLinks$, GetWebhookEventResponse$inboundSchema, GetWebhookEventResponse$outboundSchema, GetWebhookEventResponse$;
|
|
70146
70218
|
var init_getwebhookevent = __esm(() => {
|
|
70147
70219
|
init_esm();
|
|
70148
70220
|
init_primitives();
|
|
70221
|
+
GetWebhookEventWebhookEventTypes = {
|
|
70222
|
+
PaymentLinkPaid: "payment-link.paid",
|
|
70223
|
+
BalanceTransactionCreated: "balance-transaction.created",
|
|
70224
|
+
SalesInvoiceCreated: "sales-invoice.created",
|
|
70225
|
+
SalesInvoiceIssued: "sales-invoice.issued",
|
|
70226
|
+
SalesInvoiceCanceled: "sales-invoice.canceled",
|
|
70227
|
+
SalesInvoicePaid: "sales-invoice.paid",
|
|
70228
|
+
Wildcard: "*"
|
|
70229
|
+
};
|
|
70149
70230
|
GetWebhookEventMode2 = {
|
|
70150
70231
|
Live: "live",
|
|
70151
70232
|
Test: "test"
|
|
@@ -70217,6 +70298,12 @@ var init_getwebhookevent = __esm(() => {
|
|
|
70217
70298
|
GetWebhookEventNotFoundLinks$.inboundSchema = GetWebhookEventNotFoundLinks$inboundSchema;
|
|
70218
70299
|
GetWebhookEventNotFoundLinks$.outboundSchema = GetWebhookEventNotFoundLinks$outboundSchema;
|
|
70219
70300
|
})(GetWebhookEventNotFoundLinks$ ||= {});
|
|
70301
|
+
GetWebhookEventWebhookEventTypes$inboundSchema = nativeEnumType(GetWebhookEventWebhookEventTypes);
|
|
70302
|
+
GetWebhookEventWebhookEventTypes$outboundSchema = GetWebhookEventWebhookEventTypes$inboundSchema;
|
|
70303
|
+
((GetWebhookEventWebhookEventTypes$) => {
|
|
70304
|
+
GetWebhookEventWebhookEventTypes$.inboundSchema = GetWebhookEventWebhookEventTypes$inboundSchema;
|
|
70305
|
+
GetWebhookEventWebhookEventTypes$.outboundSchema = GetWebhookEventWebhookEventTypes$outboundSchema;
|
|
70306
|
+
})(GetWebhookEventWebhookEventTypes$ ||= {});
|
|
70220
70307
|
GetWebhookEventMode2$inboundSchema = nativeEnumType(GetWebhookEventMode2);
|
|
70221
70308
|
GetWebhookEventMode2$outboundSchema = GetWebhookEventMode2$inboundSchema;
|
|
70222
70309
|
((GetWebhookEventMode2$) => {
|
|
@@ -70788,13 +70875,13 @@ var init_getwebhookevent = __esm(() => {
|
|
|
70788
70875
|
LinksEntity$.outboundSchema = LinksEntity$outboundSchema;
|
|
70789
70876
|
})(LinksEntity$ ||= {});
|
|
70790
70877
|
GetWebhookEventLinks$inboundSchema = objectType({
|
|
70791
|
-
self: lazyType(() => GetWebhookEventSelf$inboundSchema)
|
|
70792
|
-
documentation: lazyType(() => GetWebhookEventDocumentation$inboundSchema)
|
|
70878
|
+
self: lazyType(() => GetWebhookEventSelf$inboundSchema),
|
|
70879
|
+
documentation: lazyType(() => GetWebhookEventDocumentation$inboundSchema),
|
|
70793
70880
|
entity: lazyType(() => LinksEntity$inboundSchema).optional()
|
|
70794
70881
|
});
|
|
70795
70882
|
GetWebhookEventLinks$outboundSchema = objectType({
|
|
70796
|
-
self: lazyType(() => GetWebhookEventSelf$outboundSchema)
|
|
70797
|
-
documentation: lazyType(() => GetWebhookEventDocumentation$outboundSchema)
|
|
70883
|
+
self: lazyType(() => GetWebhookEventSelf$outboundSchema),
|
|
70884
|
+
documentation: lazyType(() => GetWebhookEventDocumentation$outboundSchema),
|
|
70798
70885
|
entity: lazyType(() => LinksEntity$outboundSchema).optional()
|
|
70799
70886
|
});
|
|
70800
70887
|
((GetWebhookEventLinks$) => {
|
|
@@ -70802,29 +70889,31 @@ var init_getwebhookevent = __esm(() => {
|
|
|
70802
70889
|
GetWebhookEventLinks$.outboundSchema = GetWebhookEventLinks$outboundSchema;
|
|
70803
70890
|
})(GetWebhookEventLinks$ ||= {});
|
|
70804
70891
|
GetWebhookEventResponse$inboundSchema = objectType({
|
|
70805
|
-
resource: stringType()
|
|
70806
|
-
id: stringType()
|
|
70807
|
-
type:
|
|
70808
|
-
entityId: stringType()
|
|
70809
|
-
createdAt: stringType()
|
|
70892
|
+
resource: stringType(),
|
|
70893
|
+
id: stringType(),
|
|
70894
|
+
type: GetWebhookEventWebhookEventTypes$inboundSchema,
|
|
70895
|
+
entityId: stringType(),
|
|
70896
|
+
createdAt: stringType(),
|
|
70810
70897
|
_embedded: nullableType(lazyType(() => GetWebhookEventEmbedded$inboundSchema)).optional(),
|
|
70811
|
-
_links: lazyType(() => GetWebhookEventLinks$inboundSchema)
|
|
70898
|
+
_links: lazyType(() => GetWebhookEventLinks$inboundSchema)
|
|
70812
70899
|
}).transform((v2) => {
|
|
70813
70900
|
return remap(v2, {
|
|
70901
|
+
type: "webhookEventTypes",
|
|
70814
70902
|
_embedded: "embedded",
|
|
70815
70903
|
_links: "links"
|
|
70816
70904
|
});
|
|
70817
70905
|
});
|
|
70818
70906
|
GetWebhookEventResponse$outboundSchema = objectType({
|
|
70819
|
-
resource: stringType()
|
|
70820
|
-
id: stringType()
|
|
70821
|
-
|
|
70822
|
-
entityId: stringType()
|
|
70823
|
-
createdAt: stringType()
|
|
70907
|
+
resource: stringType(),
|
|
70908
|
+
id: stringType(),
|
|
70909
|
+
webhookEventTypes: GetWebhookEventWebhookEventTypes$outboundSchema,
|
|
70910
|
+
entityId: stringType(),
|
|
70911
|
+
createdAt: stringType(),
|
|
70824
70912
|
embedded: nullableType(lazyType(() => GetWebhookEventEmbedded$outboundSchema)).optional(),
|
|
70825
|
-
links: lazyType(() => GetWebhookEventLinks$outboundSchema)
|
|
70913
|
+
links: lazyType(() => GetWebhookEventLinks$outboundSchema)
|
|
70826
70914
|
}).transform((v2) => {
|
|
70827
70915
|
return remap(v2, {
|
|
70916
|
+
webhookEventTypes: "type",
|
|
70828
70917
|
embedded: "_embedded",
|
|
70829
70918
|
links: "_links"
|
|
70830
70919
|
});
|
|
@@ -86333,7 +86422,7 @@ var init_listterminals = __esm(() => {
|
|
|
86333
86422
|
});
|
|
86334
86423
|
|
|
86335
86424
|
// src/models/operations/listwebhooks.ts
|
|
86336
|
-
var ListWebhooksSort,
|
|
86425
|
+
var ListWebhooksSort, EventTypesWebhookEventTypes, WebhookWebhookEventTypes, ListWebhooksStatus, ListWebhooksMode, ListWebhooksSort$inboundSchema, ListWebhooksSort$outboundSchema, ListWebhooksSort$, EventTypesWebhookEventTypes$inboundSchema, EventTypesWebhookEventTypes$outboundSchema, EventTypesWebhookEventTypes$, ListWebhooksRequest$inboundSchema, ListWebhooksRequest$outboundSchema, ListWebhooksRequest$, ListWebhooksBadRequestDocumentation$inboundSchema, ListWebhooksBadRequestDocumentation$outboundSchema, ListWebhooksBadRequestDocumentation$, ListWebhooksBadRequestLinks$inboundSchema, ListWebhooksBadRequestLinks$outboundSchema, ListWebhooksBadRequestLinks$, WebhookWebhookEventTypes$inboundSchema, WebhookWebhookEventTypes$outboundSchema, WebhookWebhookEventTypes$, ListWebhooksStatus$inboundSchema, ListWebhooksStatus$outboundSchema, ListWebhooksStatus$, ListWebhooksMode$inboundSchema, ListWebhooksMode$outboundSchema, ListWebhooksMode$, WebhookDocumentation$inboundSchema, WebhookDocumentation$outboundSchema, WebhookDocumentation$, WebhookLinks$inboundSchema, WebhookLinks$outboundSchema, WebhookLinks$, Webhook$inboundSchema, Webhook$outboundSchema, Webhook$, ListWebhooksEmbedded$inboundSchema, ListWebhooksEmbedded$outboundSchema, ListWebhooksEmbedded$, ListWebhooksSelf$inboundSchema, ListWebhooksSelf$outboundSchema, ListWebhooksSelf$, ListWebhooksPrevious$inboundSchema, ListWebhooksPrevious$outboundSchema, ListWebhooksPrevious$, ListWebhooksNext$inboundSchema, ListWebhooksNext$outboundSchema, ListWebhooksNext$, ListWebhooksDocumentation$inboundSchema, ListWebhooksDocumentation$outboundSchema, ListWebhooksDocumentation$, ListWebhooksLinks$inboundSchema, ListWebhooksLinks$outboundSchema, ListWebhooksLinks$, ListWebhooksResponse$inboundSchema, ListWebhooksResponse$outboundSchema, ListWebhooksResponse$;
|
|
86337
86426
|
var init_listwebhooks = __esm(() => {
|
|
86338
86427
|
init_esm();
|
|
86339
86428
|
init_primitives();
|
|
@@ -86341,13 +86430,23 @@ var init_listwebhooks = __esm(() => {
|
|
|
86341
86430
|
Asc: "asc",
|
|
86342
86431
|
Desc: "desc"
|
|
86343
86432
|
};
|
|
86344
|
-
|
|
86433
|
+
EventTypesWebhookEventTypes = {
|
|
86434
|
+
PaymentLinkPaid: "payment-link.paid",
|
|
86435
|
+
BalanceTransactionCreated: "balance-transaction.created",
|
|
86436
|
+
SalesInvoiceCreated: "sales-invoice.created",
|
|
86437
|
+
SalesInvoiceIssued: "sales-invoice.issued",
|
|
86438
|
+
SalesInvoiceCanceled: "sales-invoice.canceled",
|
|
86439
|
+
SalesInvoicePaid: "sales-invoice.paid",
|
|
86440
|
+
Wildcard: "*"
|
|
86441
|
+
};
|
|
86442
|
+
WebhookWebhookEventTypes = {
|
|
86345
86443
|
PaymentLinkPaid: "payment-link.paid",
|
|
86346
86444
|
BalanceTransactionCreated: "balance-transaction.created",
|
|
86347
86445
|
SalesInvoiceCreated: "sales-invoice.created",
|
|
86348
86446
|
SalesInvoiceIssued: "sales-invoice.issued",
|
|
86349
86447
|
SalesInvoiceCanceled: "sales-invoice.canceled",
|
|
86350
|
-
SalesInvoicePaid: "sales-invoice.paid"
|
|
86448
|
+
SalesInvoicePaid: "sales-invoice.paid",
|
|
86449
|
+
Wildcard: "*"
|
|
86351
86450
|
};
|
|
86352
86451
|
ListWebhooksStatus = {
|
|
86353
86452
|
Enabled: "enabled",
|
|
@@ -86365,24 +86464,24 @@ var init_listwebhooks = __esm(() => {
|
|
|
86365
86464
|
ListWebhooksSort$.inboundSchema = ListWebhooksSort$inboundSchema;
|
|
86366
86465
|
ListWebhooksSort$.outboundSchema = ListWebhooksSort$outboundSchema;
|
|
86367
86466
|
})(ListWebhooksSort$ ||= {});
|
|
86368
|
-
|
|
86369
|
-
|
|
86370
|
-
((
|
|
86371
|
-
|
|
86372
|
-
|
|
86373
|
-
})(
|
|
86467
|
+
EventTypesWebhookEventTypes$inboundSchema = nativeEnumType(EventTypesWebhookEventTypes);
|
|
86468
|
+
EventTypesWebhookEventTypes$outboundSchema = EventTypesWebhookEventTypes$inboundSchema;
|
|
86469
|
+
((EventTypesWebhookEventTypes$) => {
|
|
86470
|
+
EventTypesWebhookEventTypes$.inboundSchema = EventTypesWebhookEventTypes$inboundSchema;
|
|
86471
|
+
EventTypesWebhookEventTypes$.outboundSchema = EventTypesWebhookEventTypes$outboundSchema;
|
|
86472
|
+
})(EventTypesWebhookEventTypes$ ||= {});
|
|
86374
86473
|
ListWebhooksRequest$inboundSchema = objectType({
|
|
86375
86474
|
from: stringType().optional(),
|
|
86376
86475
|
limit: nullableType(numberType().int()).optional(),
|
|
86377
86476
|
sort: nullableType(ListWebhooksSort$inboundSchema).optional(),
|
|
86378
|
-
eventTypes:
|
|
86477
|
+
eventTypes: EventTypesWebhookEventTypes$inboundSchema.optional(),
|
|
86379
86478
|
testmode: nullableType(booleanType()).optional()
|
|
86380
86479
|
});
|
|
86381
86480
|
ListWebhooksRequest$outboundSchema = objectType({
|
|
86382
86481
|
from: stringType().optional(),
|
|
86383
86482
|
limit: nullableType(numberType().int()).optional(),
|
|
86384
86483
|
sort: nullableType(ListWebhooksSort$outboundSchema).optional(),
|
|
86385
|
-
eventTypes:
|
|
86484
|
+
eventTypes: EventTypesWebhookEventTypes$outboundSchema.optional(),
|
|
86386
86485
|
testmode: nullableType(booleanType()).optional()
|
|
86387
86486
|
});
|
|
86388
86487
|
((ListWebhooksRequest$) => {
|
|
@@ -86411,6 +86510,12 @@ var init_listwebhooks = __esm(() => {
|
|
|
86411
86510
|
ListWebhooksBadRequestLinks$.inboundSchema = ListWebhooksBadRequestLinks$inboundSchema;
|
|
86412
86511
|
ListWebhooksBadRequestLinks$.outboundSchema = ListWebhooksBadRequestLinks$outboundSchema;
|
|
86413
86512
|
})(ListWebhooksBadRequestLinks$ ||= {});
|
|
86513
|
+
WebhookWebhookEventTypes$inboundSchema = nativeEnumType(WebhookWebhookEventTypes);
|
|
86514
|
+
WebhookWebhookEventTypes$outboundSchema = WebhookWebhookEventTypes$inboundSchema;
|
|
86515
|
+
((WebhookWebhookEventTypes$) => {
|
|
86516
|
+
WebhookWebhookEventTypes$.inboundSchema = WebhookWebhookEventTypes$inboundSchema;
|
|
86517
|
+
WebhookWebhookEventTypes$.outboundSchema = WebhookWebhookEventTypes$outboundSchema;
|
|
86518
|
+
})(WebhookWebhookEventTypes$ ||= {});
|
|
86414
86519
|
ListWebhooksStatus$inboundSchema = nativeEnumType(ListWebhooksStatus);
|
|
86415
86520
|
ListWebhooksStatus$outboundSchema = ListWebhooksStatus$inboundSchema;
|
|
86416
86521
|
((ListWebhooksStatus$) => {
|
|
@@ -86423,37 +86528,69 @@ var init_listwebhooks = __esm(() => {
|
|
|
86423
86528
|
ListWebhooksMode$.inboundSchema = ListWebhooksMode$inboundSchema;
|
|
86424
86529
|
ListWebhooksMode$.outboundSchema = ListWebhooksMode$outboundSchema;
|
|
86425
86530
|
})(ListWebhooksMode$ ||= {});
|
|
86531
|
+
WebhookDocumentation$inboundSchema = objectType({
|
|
86532
|
+
href: stringType(),
|
|
86533
|
+
type: stringType()
|
|
86534
|
+
});
|
|
86535
|
+
WebhookDocumentation$outboundSchema = objectType({
|
|
86536
|
+
href: stringType(),
|
|
86537
|
+
type: stringType()
|
|
86538
|
+
});
|
|
86539
|
+
((WebhookDocumentation$) => {
|
|
86540
|
+
WebhookDocumentation$.inboundSchema = WebhookDocumentation$inboundSchema;
|
|
86541
|
+
WebhookDocumentation$.outboundSchema = WebhookDocumentation$outboundSchema;
|
|
86542
|
+
})(WebhookDocumentation$ ||= {});
|
|
86543
|
+
WebhookLinks$inboundSchema = objectType({
|
|
86544
|
+
documentation: lazyType(() => WebhookDocumentation$inboundSchema)
|
|
86545
|
+
});
|
|
86546
|
+
WebhookLinks$outboundSchema = objectType({
|
|
86547
|
+
documentation: lazyType(() => WebhookDocumentation$outboundSchema)
|
|
86548
|
+
});
|
|
86549
|
+
((WebhookLinks$) => {
|
|
86550
|
+
WebhookLinks$.inboundSchema = WebhookLinks$inboundSchema;
|
|
86551
|
+
WebhookLinks$.outboundSchema = WebhookLinks$outboundSchema;
|
|
86552
|
+
})(WebhookLinks$ ||= {});
|
|
86426
86553
|
Webhook$inboundSchema = objectType({
|
|
86427
|
-
resource: stringType()
|
|
86428
|
-
id: stringType()
|
|
86429
|
-
url: stringType()
|
|
86430
|
-
profileId: stringType()
|
|
86431
|
-
createdAt: stringType()
|
|
86432
|
-
name: stringType()
|
|
86433
|
-
eventTypes: arrayType(
|
|
86434
|
-
status: ListWebhooksStatus$inboundSchema
|
|
86435
|
-
mode: ListWebhooksMode$inboundSchema
|
|
86554
|
+
resource: stringType(),
|
|
86555
|
+
id: stringType(),
|
|
86556
|
+
url: stringType(),
|
|
86557
|
+
profileId: nullableType(stringType()),
|
|
86558
|
+
createdAt: stringType(),
|
|
86559
|
+
name: stringType(),
|
|
86560
|
+
eventTypes: arrayType(WebhookWebhookEventTypes$inboundSchema),
|
|
86561
|
+
status: ListWebhooksStatus$inboundSchema,
|
|
86562
|
+
mode: ListWebhooksMode$inboundSchema,
|
|
86563
|
+
_links: lazyType(() => WebhookLinks$inboundSchema)
|
|
86564
|
+
}).transform((v2) => {
|
|
86565
|
+
return remap(v2, {
|
|
86566
|
+
_links: "links"
|
|
86567
|
+
});
|
|
86436
86568
|
});
|
|
86437
86569
|
Webhook$outboundSchema = objectType({
|
|
86438
|
-
resource: stringType()
|
|
86439
|
-
id: stringType()
|
|
86440
|
-
url: stringType()
|
|
86441
|
-
profileId: stringType()
|
|
86442
|
-
createdAt: stringType()
|
|
86443
|
-
name: stringType()
|
|
86444
|
-
eventTypes: arrayType(
|
|
86445
|
-
status: ListWebhooksStatus$outboundSchema
|
|
86446
|
-
mode: ListWebhooksMode$outboundSchema
|
|
86570
|
+
resource: stringType(),
|
|
86571
|
+
id: stringType(),
|
|
86572
|
+
url: stringType(),
|
|
86573
|
+
profileId: nullableType(stringType()),
|
|
86574
|
+
createdAt: stringType(),
|
|
86575
|
+
name: stringType(),
|
|
86576
|
+
eventTypes: arrayType(WebhookWebhookEventTypes$outboundSchema),
|
|
86577
|
+
status: ListWebhooksStatus$outboundSchema,
|
|
86578
|
+
mode: ListWebhooksMode$outboundSchema,
|
|
86579
|
+
links: lazyType(() => WebhookLinks$outboundSchema)
|
|
86580
|
+
}).transform((v2) => {
|
|
86581
|
+
return remap(v2, {
|
|
86582
|
+
links: "_links"
|
|
86583
|
+
});
|
|
86447
86584
|
});
|
|
86448
86585
|
((Webhook$) => {
|
|
86449
86586
|
Webhook$.inboundSchema = Webhook$inboundSchema;
|
|
86450
86587
|
Webhook$.outboundSchema = Webhook$outboundSchema;
|
|
86451
86588
|
})(Webhook$ ||= {});
|
|
86452
86589
|
ListWebhooksEmbedded$inboundSchema = objectType({
|
|
86453
|
-
webhooks: arrayType(lazyType(() => Webhook$inboundSchema))
|
|
86590
|
+
webhooks: arrayType(lazyType(() => Webhook$inboundSchema))
|
|
86454
86591
|
});
|
|
86455
86592
|
ListWebhooksEmbedded$outboundSchema = objectType({
|
|
86456
|
-
webhooks: arrayType(lazyType(() => Webhook$outboundSchema))
|
|
86593
|
+
webhooks: arrayType(lazyType(() => Webhook$outboundSchema))
|
|
86457
86594
|
});
|
|
86458
86595
|
((ListWebhooksEmbedded$) => {
|
|
86459
86596
|
ListWebhooksEmbedded$.inboundSchema = ListWebhooksEmbedded$inboundSchema;
|
|
@@ -86524,9 +86661,9 @@ var init_listwebhooks = __esm(() => {
|
|
|
86524
86661
|
ListWebhooksLinks$.outboundSchema = ListWebhooksLinks$outboundSchema;
|
|
86525
86662
|
})(ListWebhooksLinks$ ||= {});
|
|
86526
86663
|
ListWebhooksResponse$inboundSchema = objectType({
|
|
86527
|
-
count: numberType().int()
|
|
86528
|
-
_embedded: lazyType(() => ListWebhooksEmbedded$inboundSchema)
|
|
86529
|
-
_links: lazyType(() => ListWebhooksLinks$inboundSchema)
|
|
86664
|
+
count: numberType().int(),
|
|
86665
|
+
_embedded: lazyType(() => ListWebhooksEmbedded$inboundSchema),
|
|
86666
|
+
_links: lazyType(() => ListWebhooksLinks$inboundSchema)
|
|
86530
86667
|
}).transform((v2) => {
|
|
86531
86668
|
return remap(v2, {
|
|
86532
86669
|
_embedded: "embedded",
|
|
@@ -86534,9 +86671,9 @@ var init_listwebhooks = __esm(() => {
|
|
|
86534
86671
|
});
|
|
86535
86672
|
});
|
|
86536
86673
|
ListWebhooksResponse$outboundSchema = objectType({
|
|
86537
|
-
count: numberType().int()
|
|
86538
|
-
embedded: lazyType(() => ListWebhooksEmbedded$outboundSchema)
|
|
86539
|
-
links: lazyType(() => ListWebhooksLinks$outboundSchema)
|
|
86674
|
+
count: numberType().int(),
|
|
86675
|
+
embedded: lazyType(() => ListWebhooksEmbedded$outboundSchema),
|
|
86676
|
+
links: lazyType(() => ListWebhooksLinks$outboundSchema)
|
|
86540
86677
|
}).transform((v2) => {
|
|
86541
86678
|
return remap(v2, {
|
|
86542
86679
|
embedded: "_embedded",
|
|
@@ -91167,17 +91304,27 @@ var init_updatesubscription = __esm(() => {
|
|
|
91167
91304
|
});
|
|
91168
91305
|
|
|
91169
91306
|
// src/models/operations/updatewebhook.ts
|
|
91170
|
-
var
|
|
91307
|
+
var UpdateWebhookWebhookEventTypesRequest, UpdateWebhookEventTypeWebhookEventTypes, UpdateWebhookStatus, UpdateWebhookMode, UpdateWebhookWebhookEventTypesRequest$inboundSchema, UpdateWebhookWebhookEventTypesRequest$outboundSchema, UpdateWebhookWebhookEventTypesRequest$, UpdateWebhookRequestBody$inboundSchema, UpdateWebhookRequestBody$outboundSchema, UpdateWebhookRequestBody$, UpdateWebhookRequest$inboundSchema, UpdateWebhookRequest$outboundSchema, UpdateWebhookRequest$, UpdateWebhookUnprocessableEntityDocumentation$inboundSchema, UpdateWebhookUnprocessableEntityDocumentation$outboundSchema, UpdateWebhookUnprocessableEntityDocumentation$, UpdateWebhookUnprocessableEntityLinks$inboundSchema, UpdateWebhookUnprocessableEntityLinks$outboundSchema, UpdateWebhookUnprocessableEntityLinks$, UpdateWebhookNotFoundDocumentation$inboundSchema, UpdateWebhookNotFoundDocumentation$outboundSchema, UpdateWebhookNotFoundDocumentation$, UpdateWebhookNotFoundLinks$inboundSchema, UpdateWebhookNotFoundLinks$outboundSchema, UpdateWebhookNotFoundLinks$, UpdateWebhookEventTypeWebhookEventTypes$inboundSchema, UpdateWebhookEventTypeWebhookEventTypes$outboundSchema, UpdateWebhookEventTypeWebhookEventTypes$, UpdateWebhookStatus$inboundSchema, UpdateWebhookStatus$outboundSchema, UpdateWebhookStatus$, UpdateWebhookMode$inboundSchema, UpdateWebhookMode$outboundSchema, UpdateWebhookMode$, UpdateWebhookDocumentation$inboundSchema, UpdateWebhookDocumentation$outboundSchema, UpdateWebhookDocumentation$, UpdateWebhookLinks$inboundSchema, UpdateWebhookLinks$outboundSchema, UpdateWebhookLinks$, UpdateWebhookResponse$inboundSchema, UpdateWebhookResponse$outboundSchema, UpdateWebhookResponse$;
|
|
91171
91308
|
var init_updatewebhook = __esm(() => {
|
|
91172
91309
|
init_esm();
|
|
91173
91310
|
init_primitives();
|
|
91174
|
-
|
|
91311
|
+
UpdateWebhookWebhookEventTypesRequest = {
|
|
91175
91312
|
PaymentLinkPaid: "payment-link.paid",
|
|
91176
91313
|
BalanceTransactionCreated: "balance-transaction.created",
|
|
91177
91314
|
SalesInvoiceCreated: "sales-invoice.created",
|
|
91178
91315
|
SalesInvoiceIssued: "sales-invoice.issued",
|
|
91179
91316
|
SalesInvoiceCanceled: "sales-invoice.canceled",
|
|
91180
|
-
SalesInvoicePaid: "sales-invoice.paid"
|
|
91317
|
+
SalesInvoicePaid: "sales-invoice.paid",
|
|
91318
|
+
Wildcard: "*"
|
|
91319
|
+
};
|
|
91320
|
+
UpdateWebhookEventTypeWebhookEventTypes = {
|
|
91321
|
+
PaymentLinkPaid: "payment-link.paid",
|
|
91322
|
+
BalanceTransactionCreated: "balance-transaction.created",
|
|
91323
|
+
SalesInvoiceCreated: "sales-invoice.created",
|
|
91324
|
+
SalesInvoiceIssued: "sales-invoice.issued",
|
|
91325
|
+
SalesInvoiceCanceled: "sales-invoice.canceled",
|
|
91326
|
+
SalesInvoicePaid: "sales-invoice.paid",
|
|
91327
|
+
Wildcard: "*"
|
|
91181
91328
|
};
|
|
91182
91329
|
UpdateWebhookStatus = {
|
|
91183
91330
|
Enabled: "enabled",
|
|
@@ -91189,23 +91336,31 @@ var init_updatewebhook = __esm(() => {
|
|
|
91189
91336
|
Live: "live",
|
|
91190
91337
|
Test: "test"
|
|
91191
91338
|
};
|
|
91192
|
-
|
|
91193
|
-
|
|
91194
|
-
((
|
|
91195
|
-
|
|
91196
|
-
|
|
91197
|
-
})(
|
|
91339
|
+
UpdateWebhookWebhookEventTypesRequest$inboundSchema = nativeEnumType(UpdateWebhookWebhookEventTypesRequest);
|
|
91340
|
+
UpdateWebhookWebhookEventTypesRequest$outboundSchema = UpdateWebhookWebhookEventTypesRequest$inboundSchema;
|
|
91341
|
+
((UpdateWebhookWebhookEventTypesRequest$) => {
|
|
91342
|
+
UpdateWebhookWebhookEventTypesRequest$.inboundSchema = UpdateWebhookWebhookEventTypesRequest$inboundSchema;
|
|
91343
|
+
UpdateWebhookWebhookEventTypesRequest$.outboundSchema = UpdateWebhookWebhookEventTypesRequest$outboundSchema;
|
|
91344
|
+
})(UpdateWebhookWebhookEventTypesRequest$ ||= {});
|
|
91198
91345
|
UpdateWebhookRequestBody$inboundSchema = objectType({
|
|
91199
91346
|
name: stringType().optional(),
|
|
91200
91347
|
url: stringType().optional(),
|
|
91201
|
-
eventTypes:
|
|
91348
|
+
eventTypes: UpdateWebhookWebhookEventTypesRequest$inboundSchema.optional(),
|
|
91202
91349
|
testmode: nullableType(booleanType()).optional()
|
|
91350
|
+
}).transform((v2) => {
|
|
91351
|
+
return remap(v2, {
|
|
91352
|
+
eventTypes: "webhookEventTypes"
|
|
91353
|
+
});
|
|
91203
91354
|
});
|
|
91204
91355
|
UpdateWebhookRequestBody$outboundSchema = objectType({
|
|
91205
91356
|
name: stringType().optional(),
|
|
91206
91357
|
url: stringType().optional(),
|
|
91207
|
-
|
|
91358
|
+
webhookEventTypes: UpdateWebhookWebhookEventTypesRequest$outboundSchema.optional(),
|
|
91208
91359
|
testmode: nullableType(booleanType()).optional()
|
|
91360
|
+
}).transform((v2) => {
|
|
91361
|
+
return remap(v2, {
|
|
91362
|
+
webhookEventTypes: "eventTypes"
|
|
91363
|
+
});
|
|
91209
91364
|
});
|
|
91210
91365
|
((UpdateWebhookRequestBody$) => {
|
|
91211
91366
|
UpdateWebhookRequestBody$.inboundSchema = UpdateWebhookRequestBody$inboundSchema;
|
|
@@ -91275,6 +91430,12 @@ var init_updatewebhook = __esm(() => {
|
|
|
91275
91430
|
UpdateWebhookNotFoundLinks$.inboundSchema = UpdateWebhookNotFoundLinks$inboundSchema;
|
|
91276
91431
|
UpdateWebhookNotFoundLinks$.outboundSchema = UpdateWebhookNotFoundLinks$outboundSchema;
|
|
91277
91432
|
})(UpdateWebhookNotFoundLinks$ ||= {});
|
|
91433
|
+
UpdateWebhookEventTypeWebhookEventTypes$inboundSchema = nativeEnumType(UpdateWebhookEventTypeWebhookEventTypes);
|
|
91434
|
+
UpdateWebhookEventTypeWebhookEventTypes$outboundSchema = UpdateWebhookEventTypeWebhookEventTypes$inboundSchema;
|
|
91435
|
+
((UpdateWebhookEventTypeWebhookEventTypes$) => {
|
|
91436
|
+
UpdateWebhookEventTypeWebhookEventTypes$.inboundSchema = UpdateWebhookEventTypeWebhookEventTypes$inboundSchema;
|
|
91437
|
+
UpdateWebhookEventTypeWebhookEventTypes$.outboundSchema = UpdateWebhookEventTypeWebhookEventTypes$outboundSchema;
|
|
91438
|
+
})(UpdateWebhookEventTypeWebhookEventTypes$ ||= {});
|
|
91278
91439
|
UpdateWebhookStatus$inboundSchema = nativeEnumType(UpdateWebhookStatus);
|
|
91279
91440
|
UpdateWebhookStatus$outboundSchema = UpdateWebhookStatus$inboundSchema;
|
|
91280
91441
|
((UpdateWebhookStatus$) => {
|
|
@@ -91287,27 +91448,59 @@ var init_updatewebhook = __esm(() => {
|
|
|
91287
91448
|
UpdateWebhookMode$.inboundSchema = UpdateWebhookMode$inboundSchema;
|
|
91288
91449
|
UpdateWebhookMode$.outboundSchema = UpdateWebhookMode$outboundSchema;
|
|
91289
91450
|
})(UpdateWebhookMode$ ||= {});
|
|
91451
|
+
UpdateWebhookDocumentation$inboundSchema = objectType({
|
|
91452
|
+
href: stringType(),
|
|
91453
|
+
type: stringType()
|
|
91454
|
+
});
|
|
91455
|
+
UpdateWebhookDocumentation$outboundSchema = objectType({
|
|
91456
|
+
href: stringType(),
|
|
91457
|
+
type: stringType()
|
|
91458
|
+
});
|
|
91459
|
+
((UpdateWebhookDocumentation$) => {
|
|
91460
|
+
UpdateWebhookDocumentation$.inboundSchema = UpdateWebhookDocumentation$inboundSchema;
|
|
91461
|
+
UpdateWebhookDocumentation$.outboundSchema = UpdateWebhookDocumentation$outboundSchema;
|
|
91462
|
+
})(UpdateWebhookDocumentation$ ||= {});
|
|
91463
|
+
UpdateWebhookLinks$inboundSchema = objectType({
|
|
91464
|
+
documentation: lazyType(() => UpdateWebhookDocumentation$inboundSchema)
|
|
91465
|
+
});
|
|
91466
|
+
UpdateWebhookLinks$outboundSchema = objectType({
|
|
91467
|
+
documentation: lazyType(() => UpdateWebhookDocumentation$outboundSchema)
|
|
91468
|
+
});
|
|
91469
|
+
((UpdateWebhookLinks$) => {
|
|
91470
|
+
UpdateWebhookLinks$.inboundSchema = UpdateWebhookLinks$inboundSchema;
|
|
91471
|
+
UpdateWebhookLinks$.outboundSchema = UpdateWebhookLinks$outboundSchema;
|
|
91472
|
+
})(UpdateWebhookLinks$ ||= {});
|
|
91290
91473
|
UpdateWebhookResponse$inboundSchema = objectType({
|
|
91291
|
-
resource: stringType()
|
|
91292
|
-
id: stringType()
|
|
91293
|
-
url: stringType()
|
|
91294
|
-
profileId: stringType()
|
|
91295
|
-
createdAt: stringType()
|
|
91296
|
-
name: stringType()
|
|
91297
|
-
eventTypes: arrayType(
|
|
91298
|
-
status: UpdateWebhookStatus$inboundSchema
|
|
91299
|
-
mode: UpdateWebhookMode$inboundSchema
|
|
91474
|
+
resource: stringType(),
|
|
91475
|
+
id: stringType(),
|
|
91476
|
+
url: stringType(),
|
|
91477
|
+
profileId: nullableType(stringType()),
|
|
91478
|
+
createdAt: stringType(),
|
|
91479
|
+
name: stringType(),
|
|
91480
|
+
eventTypes: arrayType(UpdateWebhookEventTypeWebhookEventTypes$inboundSchema),
|
|
91481
|
+
status: UpdateWebhookStatus$inboundSchema,
|
|
91482
|
+
mode: UpdateWebhookMode$inboundSchema,
|
|
91483
|
+
_links: lazyType(() => UpdateWebhookLinks$inboundSchema)
|
|
91484
|
+
}).transform((v2) => {
|
|
91485
|
+
return remap(v2, {
|
|
91486
|
+
_links: "links"
|
|
91487
|
+
});
|
|
91300
91488
|
});
|
|
91301
91489
|
UpdateWebhookResponse$outboundSchema = objectType({
|
|
91302
|
-
resource: stringType()
|
|
91303
|
-
id: stringType()
|
|
91304
|
-
url: stringType()
|
|
91305
|
-
profileId: stringType()
|
|
91306
|
-
createdAt: stringType()
|
|
91307
|
-
name: stringType()
|
|
91308
|
-
eventTypes: arrayType(
|
|
91309
|
-
status: UpdateWebhookStatus$outboundSchema
|
|
91310
|
-
mode: UpdateWebhookMode$outboundSchema
|
|
91490
|
+
resource: stringType(),
|
|
91491
|
+
id: stringType(),
|
|
91492
|
+
url: stringType(),
|
|
91493
|
+
profileId: nullableType(stringType()),
|
|
91494
|
+
createdAt: stringType(),
|
|
91495
|
+
name: stringType(),
|
|
91496
|
+
eventTypes: arrayType(UpdateWebhookEventTypeWebhookEventTypes$outboundSchema),
|
|
91497
|
+
status: UpdateWebhookStatus$outboundSchema,
|
|
91498
|
+
mode: UpdateWebhookMode$outboundSchema,
|
|
91499
|
+
links: lazyType(() => UpdateWebhookLinks$outboundSchema)
|
|
91500
|
+
}).transform((v2) => {
|
|
91501
|
+
return remap(v2, {
|
|
91502
|
+
links: "_links"
|
|
91503
|
+
});
|
|
91311
91504
|
});
|
|
91312
91505
|
((UpdateWebhookResponse$) => {
|
|
91313
91506
|
UpdateWebhookResponse$.inboundSchema = UpdateWebhookResponse$inboundSchema;
|
|
@@ -110615,7 +110808,7 @@ Updates the webhook. You may edit the name, url and the list of subscribed event
|
|
|
110615
110808
|
function createMCPServer(deps) {
|
|
110616
110809
|
const server = new McpServer({
|
|
110617
110810
|
name: "Client",
|
|
110618
|
-
version: "0.1.
|
|
110811
|
+
version: "0.1.8"
|
|
110619
110812
|
});
|
|
110620
110813
|
const client = new ClientCore({
|
|
110621
110814
|
security: deps.security,
|
|
@@ -110629,6 +110822,45 @@ function createMCPServer(deps) {
|
|
|
110629
110822
|
const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, client, scopes);
|
|
110630
110823
|
const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
|
|
110631
110824
|
const register = { tool, resource, resourceTemplate, prompt };
|
|
110825
|
+
tool(tool$balancesList);
|
|
110826
|
+
tool(tool$balancesGet);
|
|
110827
|
+
tool(tool$balancesGetPrimary);
|
|
110828
|
+
tool(tool$balancesGetReport);
|
|
110829
|
+
tool(tool$balancesListTransactions);
|
|
110830
|
+
tool(tool$settlementsList);
|
|
110831
|
+
tool(tool$settlementsGet);
|
|
110832
|
+
tool(tool$settlementsGetOpen);
|
|
110833
|
+
tool(tool$settlementsGetNext);
|
|
110834
|
+
tool(tool$settlementsListPayments);
|
|
110835
|
+
tool(tool$settlementsListCaptures);
|
|
110836
|
+
tool(tool$settlementsListRefunds);
|
|
110837
|
+
tool(tool$settlementsListChargebacks);
|
|
110838
|
+
tool(tool$invoicesList);
|
|
110839
|
+
tool(tool$invoicesGet);
|
|
110840
|
+
tool(tool$permissionsList);
|
|
110841
|
+
tool(tool$permissionsGet);
|
|
110842
|
+
tool(tool$organizationsGet);
|
|
110843
|
+
tool(tool$organizationsGetCurrent);
|
|
110844
|
+
tool(tool$organizationsGetPartner);
|
|
110845
|
+
tool(tool$profilesCreate);
|
|
110846
|
+
tool(tool$profilesList);
|
|
110847
|
+
tool(tool$profilesGet);
|
|
110848
|
+
tool(tool$profilesUpdate);
|
|
110849
|
+
tool(tool$profilesDelete);
|
|
110850
|
+
tool(tool$profilesGetCurrent);
|
|
110851
|
+
tool(tool$onboardingGet);
|
|
110852
|
+
tool(tool$onboardingSubmit);
|
|
110853
|
+
tool(tool$capabilitiesList);
|
|
110854
|
+
tool(tool$clientsList);
|
|
110855
|
+
tool(tool$clientsGet);
|
|
110856
|
+
tool(tool$clientLinksCreate);
|
|
110857
|
+
tool(tool$webhooksCreate);
|
|
110858
|
+
tool(tool$webhooksList);
|
|
110859
|
+
tool(tool$webhooksUpdate);
|
|
110860
|
+
tool(tool$webhooksGet);
|
|
110861
|
+
tool(tool$webhooksDelete);
|
|
110862
|
+
tool(tool$webhooksTest);
|
|
110863
|
+
tool(tool$webhookEventsGet);
|
|
110632
110864
|
tool(tool$paymentsCreate);
|
|
110633
110865
|
tool(tool$paymentsList);
|
|
110634
110866
|
tool(tool$paymentsGet);
|
|
@@ -110678,45 +110910,6 @@ function createMCPServer(deps) {
|
|
|
110678
110910
|
tool(tool$subscriptionsCancel);
|
|
110679
110911
|
tool(tool$subscriptionsAll);
|
|
110680
110912
|
tool(tool$subscriptionsListPayments);
|
|
110681
|
-
tool(tool$permissionsList);
|
|
110682
|
-
tool(tool$permissionsGet);
|
|
110683
|
-
tool(tool$organizationsGet);
|
|
110684
|
-
tool(tool$organizationsGetCurrent);
|
|
110685
|
-
tool(tool$organizationsGetPartner);
|
|
110686
|
-
tool(tool$profilesCreate);
|
|
110687
|
-
tool(tool$profilesList);
|
|
110688
|
-
tool(tool$profilesGet);
|
|
110689
|
-
tool(tool$profilesUpdate);
|
|
110690
|
-
tool(tool$profilesDelete);
|
|
110691
|
-
tool(tool$profilesGetCurrent);
|
|
110692
|
-
tool(tool$onboardingGet);
|
|
110693
|
-
tool(tool$onboardingSubmit);
|
|
110694
|
-
tool(tool$capabilitiesList);
|
|
110695
|
-
tool(tool$clientsList);
|
|
110696
|
-
tool(tool$clientsGet);
|
|
110697
|
-
tool(tool$clientLinksCreate);
|
|
110698
|
-
tool(tool$webhooksCreate);
|
|
110699
|
-
tool(tool$webhooksList);
|
|
110700
|
-
tool(tool$webhooksUpdate);
|
|
110701
|
-
tool(tool$webhooksGet);
|
|
110702
|
-
tool(tool$webhooksDelete);
|
|
110703
|
-
tool(tool$webhooksTest);
|
|
110704
|
-
tool(tool$webhookEventsGet);
|
|
110705
|
-
tool(tool$balancesList);
|
|
110706
|
-
tool(tool$balancesGet);
|
|
110707
|
-
tool(tool$balancesGetPrimary);
|
|
110708
|
-
tool(tool$balancesGetReport);
|
|
110709
|
-
tool(tool$balancesListTransactions);
|
|
110710
|
-
tool(tool$settlementsList);
|
|
110711
|
-
tool(tool$settlementsGet);
|
|
110712
|
-
tool(tool$settlementsGetOpen);
|
|
110713
|
-
tool(tool$settlementsGetNext);
|
|
110714
|
-
tool(tool$settlementsListPayments);
|
|
110715
|
-
tool(tool$settlementsListCaptures);
|
|
110716
|
-
tool(tool$settlementsListRefunds);
|
|
110717
|
-
tool(tool$settlementsListChargebacks);
|
|
110718
|
-
tool(tool$invoicesList);
|
|
110719
|
-
tool(tool$invoicesGet);
|
|
110720
110913
|
tool(tool$salesInvoicesCreate);
|
|
110721
110914
|
tool(tool$salesInvoicesList);
|
|
110722
110915
|
tool(tool$salesInvoicesGet);
|
|
@@ -112004,7 +112197,7 @@ var routes = an({
|
|
|
112004
112197
|
var app = He(routes, {
|
|
112005
112198
|
name: "mcp",
|
|
112006
112199
|
versionInfo: {
|
|
112007
|
-
currentVersion: "0.1.
|
|
112200
|
+
currentVersion: "0.1.8"
|
|
112008
112201
|
}
|
|
112009
112202
|
});
|
|
112010
112203
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -112012,5 +112205,5 @@ export {
|
|
|
112012
112205
|
app
|
|
112013
112206
|
};
|
|
112014
112207
|
|
|
112015
|
-
//# debugId=
|
|
112208
|
+
//# debugId=CB5DDA65D8F4B59364756E2164756E21
|
|
112016
112209
|
//# sourceMappingURL=mcp-server.js.map
|