dub 0.57.2 → 0.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/bin/mcp-server.js +936 -382
- package/bin/mcp-server.js.map +20 -17
- package/dist/commonjs/funcs/embedTokensReferrals.d.ts +17 -0
- package/dist/commonjs/funcs/embedTokensReferrals.d.ts.map +1 -0
- package/dist/commonjs/funcs/{embedTokensCreate.js → embedTokensReferrals.js} +11 -10
- package/dist/commonjs/funcs/embedTokensReferrals.js.map +1 -0
- package/dist/commonjs/funcs/partnersUpdateSale.d.ts +17 -0
- package/dist/commonjs/funcs/partnersUpdateSale.d.ts.map +1 -0
- package/dist/commonjs/funcs/partnersUpdateSale.js +121 -0
- package/dist/commonjs/funcs/partnersUpdateSale.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.js +9 -0
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +1 -0
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +2 -0
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts +1 -0
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +7 -4
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/embedTokensReferrals.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/embedTokensReferrals.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{embedTokensCreate.js → embedTokensReferrals.js} +10 -9
- package/dist/commonjs/mcp-server/tools/embedTokensReferrals.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/{embedTokensCreate.d.ts → partnersUpdateSale.d.ts} +3 -3
- package/dist/commonjs/mcp-server/tools/partnersUpdateSale.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/partnersUpdateSale.js +54 -0
- package/dist/commonjs/mcp-server/tools/partnersUpdateSale.js.map +1 -0
- package/dist/commonjs/mcp-server/tools.d.ts +1 -1
- package/dist/commonjs/mcp-server/tools.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools.js +4 -1
- package/dist/commonjs/mcp-server/tools.js.map +1 -1
- package/dist/commonjs/models/operations/createpartner.d.ts +3 -8
- package/dist/commonjs/models/operations/createpartner.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpartner.js +2 -4
- package/dist/commonjs/models/operations/createpartner.js.map +1 -1
- package/dist/commonjs/models/operations/createpartnerlink.d.ts +0 -5
- package/dist/commonjs/models/operations/createpartnerlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpartnerlink.js +0 -2
- package/dist/commonjs/models/operations/createpartnerlink.js.map +1 -1
- package/dist/commonjs/models/operations/createreferralsembedtoken.d.ts +1108 -0
- package/dist/commonjs/models/operations/createreferralsembedtoken.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createreferralsembedtoken.js +549 -0
- package/dist/commonjs/models/operations/createreferralsembedtoken.js.map +1 -0
- package/dist/commonjs/models/operations/getcustomers.d.ts +15 -15
- package/dist/commonjs/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.js +20 -18
- package/dist/commonjs/models/operations/getcustomers.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +2 -1
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -1
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/updatepartnersale.d.ts +114 -0
- package/dist/commonjs/models/operations/updatepartnersale.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updatepartnersale.js +125 -0
- package/dist/commonjs/models/operations/updatepartnersale.js.map +1 -0
- package/dist/commonjs/models/operations/upsertpartnerlink.d.ts +0 -5
- package/dist/commonjs/models/operations/upsertpartnerlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/upsertpartnerlink.js +0 -2
- package/dist/commonjs/models/operations/upsertpartnerlink.js.map +1 -1
- package/dist/commonjs/sdk/embedtokens.d.ts +3 -3
- package/dist/commonjs/sdk/embedtokens.d.ts.map +1 -1
- package/dist/commonjs/sdk/embedtokens.js +5 -5
- package/dist/commonjs/sdk/embedtokens.js.map +1 -1
- package/dist/commonjs/sdk/partners.d.ts +7 -0
- package/dist/commonjs/sdk/partners.d.ts.map +1 -1
- package/dist/commonjs/sdk/partners.js +10 -0
- package/dist/commonjs/sdk/partners.js.map +1 -1
- package/dist/esm/funcs/embedTokensReferrals.d.ts +17 -0
- package/dist/esm/funcs/embedTokensReferrals.d.ts.map +1 -0
- package/dist/esm/funcs/{embedTokensCreate.js → embedTokensReferrals.js} +9 -8
- package/dist/esm/funcs/embedTokensReferrals.js.map +1 -0
- package/dist/esm/funcs/partnersUpdateSale.d.ts +17 -0
- package/dist/esm/funcs/partnersUpdateSale.d.ts.map +1 -0
- package/dist/esm/funcs/partnersUpdateSale.js +94 -0
- package/dist/esm/funcs/partnersUpdateSale.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.js +9 -0
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +1 -0
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +2 -0
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts +1 -0
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +7 -4
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/embedTokensReferrals.d.ts +8 -0
- package/dist/esm/mcp-server/tools/embedTokensReferrals.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/embedTokensReferrals.js +29 -0
- package/dist/esm/mcp-server/tools/embedTokensReferrals.js.map +1 -0
- package/dist/esm/mcp-server/tools/{embedTokensCreate.d.ts → partnersUpdateSale.d.ts} +3 -3
- package/dist/esm/mcp-server/tools/partnersUpdateSale.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/partnersUpdateSale.js +28 -0
- package/dist/esm/mcp-server/tools/partnersUpdateSale.js.map +1 -0
- package/dist/esm/mcp-server/tools.d.ts +1 -1
- package/dist/esm/mcp-server/tools.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools.js +4 -1
- package/dist/esm/mcp-server/tools.js.map +1 -1
- package/dist/esm/models/operations/createpartner.d.ts +3 -8
- package/dist/esm/models/operations/createpartner.d.ts.map +1 -1
- package/dist/esm/models/operations/createpartner.js +2 -4
- package/dist/esm/models/operations/createpartner.js.map +1 -1
- package/dist/esm/models/operations/createpartnerlink.d.ts +0 -5
- package/dist/esm/models/operations/createpartnerlink.d.ts.map +1 -1
- package/dist/esm/models/operations/createpartnerlink.js +0 -2
- package/dist/esm/models/operations/createpartnerlink.js.map +1 -1
- package/dist/esm/models/operations/createreferralsembedtoken.d.ts +1108 -0
- package/dist/esm/models/operations/createreferralsembedtoken.d.ts.map +1 -0
- package/dist/esm/models/operations/createreferralsembedtoken.js +511 -0
- package/dist/esm/models/operations/createreferralsembedtoken.js.map +1 -0
- package/dist/esm/models/operations/getcustomers.d.ts +15 -15
- package/dist/esm/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomers.js +17 -15
- package/dist/esm/models/operations/getcustomers.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +2 -1
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -1
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/updatepartnersale.d.ts +114 -0
- package/dist/esm/models/operations/updatepartnersale.d.ts.map +1 -0
- package/dist/esm/models/operations/updatepartnersale.js +95 -0
- package/dist/esm/models/operations/updatepartnersale.js.map +1 -0
- package/dist/esm/models/operations/upsertpartnerlink.d.ts +0 -5
- package/dist/esm/models/operations/upsertpartnerlink.d.ts.map +1 -1
- package/dist/esm/models/operations/upsertpartnerlink.js +0 -2
- package/dist/esm/models/operations/upsertpartnerlink.js.map +1 -1
- package/dist/esm/sdk/embedtokens.d.ts +3 -3
- package/dist/esm/sdk/embedtokens.d.ts.map +1 -1
- package/dist/esm/sdk/embedtokens.js +5 -5
- package/dist/esm/sdk/embedtokens.js.map +1 -1
- package/dist/esm/sdk/partners.d.ts +7 -0
- package/dist/esm/sdk/partners.d.ts.map +1 -1
- package/dist/esm/sdk/partners.js +10 -0
- package/dist/esm/sdk/partners.js.map +1 -1
- package/docs/sdks/embedtokens/README.md +8 -8
- package/docs/sdks/partners/README.md +82 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/embedTokensReferrals.ts +211 -0
- package/src/funcs/{embedTokensCreate.ts → partnersUpdateSale.ts} +13 -13
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/cli/start/command.ts +9 -0
- package/src/mcp-server/cli/start/impl.ts +3 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +14 -4
- package/src/mcp-server/tools/{embedTokensCreate.ts → embedTokensReferrals.ts} +8 -7
- package/src/mcp-server/tools/partnersUpdateSale.ts +37 -0
- package/src/mcp-server/tools.ts +5 -0
- package/src/models/operations/createpartner.ts +5 -12
- package/src/models/operations/createpartnerlink.ts +0 -7
- package/src/models/operations/createreferralsembedtoken.ts +915 -0
- package/src/models/operations/getcustomers.ts +38 -29
- package/src/models/operations/index.ts +2 -1
- package/src/models/operations/updatepartnersale.ts +200 -0
- package/src/models/operations/upsertpartnerlink.ts +0 -7
- package/src/sdk/embedtokens.ts +7 -7
- package/src/sdk/partners.ts +18 -0
- package/dist/commonjs/funcs/embedTokensCreate.d.ts +0 -17
- package/dist/commonjs/funcs/embedTokensCreate.d.ts.map +0 -1
- package/dist/commonjs/funcs/embedTokensCreate.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/embedTokensCreate.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/embedTokensCreate.js.map +0 -1
- package/dist/commonjs/models/operations/createembedtoken.d.ts +0 -63
- package/dist/commonjs/models/operations/createembedtoken.d.ts.map +0 -1
- package/dist/commonjs/models/operations/createembedtoken.js +0 -92
- package/dist/commonjs/models/operations/createembedtoken.js.map +0 -1
- package/dist/esm/funcs/embedTokensCreate.d.ts +0 -17
- package/dist/esm/funcs/embedTokensCreate.d.ts.map +0 -1
- package/dist/esm/funcs/embedTokensCreate.js.map +0 -1
- package/dist/esm/mcp-server/tools/embedTokensCreate.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/embedTokensCreate.js +0 -28
- package/dist/esm/mcp-server/tools/embedTokensCreate.js.map +0 -1
- package/dist/esm/models/operations/createembedtoken.d.ts +0 -63
- package/dist/esm/models/operations/createembedtoken.d.ts.map +0 -1
- package/dist/esm/models/operations/createembedtoken.js +0 -62
- package/dist/esm/models/operations/createembedtoken.js.map +0 -1
- package/src/models/operations/createembedtoken.ts +0 -143
package/bin/mcp-server.js
CHANGED
|
@@ -34247,9 +34247,9 @@ var init_config = __esm(() => {
|
|
|
34247
34247
|
SDK_METADATA = {
|
|
34248
34248
|
language: "typescript",
|
|
34249
34249
|
openapiDocVersion: "0.0.1",
|
|
34250
|
-
sdkVersion: "0.
|
|
34251
|
-
genVersion: "2.
|
|
34252
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
34250
|
+
sdkVersion: "0.58.0",
|
|
34251
|
+
genVersion: "2.539.0",
|
|
34252
|
+
userAgent: "speakeasy-sdk/typescript 0.58.0 2.539.0 0.0.1 dub"
|
|
34253
34253
|
};
|
|
34254
34254
|
});
|
|
34255
34255
|
|
|
@@ -35108,8 +35108,11 @@ async function consumeSSE(value) {
|
|
|
35108
35108
|
}
|
|
35109
35109
|
return content;
|
|
35110
35110
|
}
|
|
35111
|
-
function createRegisterTool(logger, server, sdk, allowedScopes) {
|
|
35111
|
+
function createRegisterTool(logger, server, sdk, allowedScopes, allowedTools) {
|
|
35112
35112
|
return (tool) => {
|
|
35113
|
+
if (allowedTools && !allowedTools.has(tool.name)) {
|
|
35114
|
+
return;
|
|
35115
|
+
}
|
|
35113
35116
|
const toolScopes = tool.scopes ?? [];
|
|
35114
35117
|
if (!toolScopes.every((s) => allowedScopes.has(s))) {
|
|
35115
35118
|
return;
|
|
@@ -49777,38 +49780,6 @@ var init_createdomain = __esm(() => {
|
|
|
49777
49780
|
})(CreateDomainRequestBody$ ||= {});
|
|
49778
49781
|
});
|
|
49779
49782
|
|
|
49780
|
-
// src/models/operations/createembedtoken.ts
|
|
49781
|
-
var CreateEmbedTokenRequestBody$inboundSchema, CreateEmbedTokenRequestBody$outboundSchema, CreateEmbedTokenRequestBody$, CreateEmbedTokenResponseBody$inboundSchema, CreateEmbedTokenResponseBody$outboundSchema, CreateEmbedTokenResponseBody$;
|
|
49782
|
-
var init_createembedtoken = __esm(() => {
|
|
49783
|
-
init_lib();
|
|
49784
|
-
CreateEmbedTokenRequestBody$inboundSchema = objectType({
|
|
49785
|
-
programId: stringType(),
|
|
49786
|
-
partnerId: nullableType(stringType()).optional(),
|
|
49787
|
-
tenantId: nullableType(stringType()).optional()
|
|
49788
|
-
});
|
|
49789
|
-
CreateEmbedTokenRequestBody$outboundSchema = objectType({
|
|
49790
|
-
programId: stringType(),
|
|
49791
|
-
partnerId: nullableType(stringType()).optional(),
|
|
49792
|
-
tenantId: nullableType(stringType()).optional()
|
|
49793
|
-
});
|
|
49794
|
-
((CreateEmbedTokenRequestBody$) => {
|
|
49795
|
-
CreateEmbedTokenRequestBody$.inboundSchema = CreateEmbedTokenRequestBody$inboundSchema;
|
|
49796
|
-
CreateEmbedTokenRequestBody$.outboundSchema = CreateEmbedTokenRequestBody$outboundSchema;
|
|
49797
|
-
})(CreateEmbedTokenRequestBody$ ||= {});
|
|
49798
|
-
CreateEmbedTokenResponseBody$inboundSchema = objectType({
|
|
49799
|
-
publicToken: stringType(),
|
|
49800
|
-
expires: stringType()
|
|
49801
|
-
});
|
|
49802
|
-
CreateEmbedTokenResponseBody$outboundSchema = objectType({
|
|
49803
|
-
publicToken: stringType(),
|
|
49804
|
-
expires: stringType()
|
|
49805
|
-
});
|
|
49806
|
-
((CreateEmbedTokenResponseBody$) => {
|
|
49807
|
-
CreateEmbedTokenResponseBody$.inboundSchema = CreateEmbedTokenResponseBody$inboundSchema;
|
|
49808
|
-
CreateEmbedTokenResponseBody$.outboundSchema = CreateEmbedTokenResponseBody$outboundSchema;
|
|
49809
|
-
})(CreateEmbedTokenResponseBody$ ||= {});
|
|
49810
|
-
});
|
|
49811
|
-
|
|
49812
49783
|
// src/models/operations/createfolder.ts
|
|
49813
49784
|
var AccessLevel2, AccessLevel$inboundSchema2, AccessLevel$outboundSchema2, AccessLevel$2, CreateFolderRequestBody$inboundSchema, CreateFolderRequestBody$outboundSchema, CreateFolderRequestBody$;
|
|
49814
49785
|
var init_createfolder = __esm(() => {
|
|
@@ -50236,7 +50207,6 @@ var init_createpartner = __esm(() => {
|
|
|
50236
50207
|
LinkProps$inboundSchema = objectType({
|
|
50237
50208
|
externalId: nullableType(stringType()).optional(),
|
|
50238
50209
|
tenantId: nullableType(stringType()).optional(),
|
|
50239
|
-
partnerId: nullableType(stringType()).optional(),
|
|
50240
50210
|
prefix: stringType().optional(),
|
|
50241
50211
|
archived: booleanType().optional(),
|
|
50242
50212
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
@@ -50273,7 +50243,6 @@ var init_createpartner = __esm(() => {
|
|
|
50273
50243
|
LinkProps$outboundSchema = objectType({
|
|
50274
50244
|
externalId: nullableType(stringType()).optional(),
|
|
50275
50245
|
tenantId: nullableType(stringType()).optional(),
|
|
50276
|
-
partnerId: nullableType(stringType()).optional(),
|
|
50277
50246
|
prefix: stringType().optional(),
|
|
50278
50247
|
archived: booleanType().optional(),
|
|
50279
50248
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
@@ -50315,7 +50284,7 @@ var init_createpartner = __esm(() => {
|
|
|
50315
50284
|
programId: stringType(),
|
|
50316
50285
|
name: stringType(),
|
|
50317
50286
|
email: stringType(),
|
|
50318
|
-
username: stringType(),
|
|
50287
|
+
username: nullableType(stringType()).optional(),
|
|
50319
50288
|
image: nullableType(stringType()).optional(),
|
|
50320
50289
|
country: nullableType(Country$inboundSchema2).optional(),
|
|
50321
50290
|
description: nullableType(stringType()).optional(),
|
|
@@ -50326,7 +50295,7 @@ var init_createpartner = __esm(() => {
|
|
|
50326
50295
|
programId: stringType(),
|
|
50327
50296
|
name: stringType(),
|
|
50328
50297
|
email: stringType(),
|
|
50329
|
-
username: stringType(),
|
|
50298
|
+
username: nullableType(stringType()).optional(),
|
|
50330
50299
|
image: nullableType(stringType()).optional(),
|
|
50331
50300
|
country: nullableType(Country$outboundSchema2).optional(),
|
|
50332
50301
|
description: nullableType(stringType()).optional(),
|
|
@@ -50435,7 +50404,6 @@ var init_createpartnerlink = __esm(() => {
|
|
|
50435
50404
|
CreatePartnerLinkLinkProps$inboundSchema = objectType({
|
|
50436
50405
|
externalId: nullableType(stringType()).optional(),
|
|
50437
50406
|
tenantId: nullableType(stringType()).optional(),
|
|
50438
|
-
partnerId: nullableType(stringType()).optional(),
|
|
50439
50407
|
prefix: stringType().optional(),
|
|
50440
50408
|
archived: booleanType().optional(),
|
|
50441
50409
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
@@ -50472,7 +50440,6 @@ var init_createpartnerlink = __esm(() => {
|
|
|
50472
50440
|
CreatePartnerLinkLinkProps$outboundSchema = objectType({
|
|
50473
50441
|
externalId: nullableType(stringType()).optional(),
|
|
50474
50442
|
tenantId: nullableType(stringType()).optional(),
|
|
50475
|
-
partnerId: nullableType(stringType()).optional(),
|
|
50476
50443
|
prefix: stringType().optional(),
|
|
50477
50444
|
archived: booleanType().optional(),
|
|
50478
50445
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
@@ -50534,242 +50501,647 @@ var init_createpartnerlink = __esm(() => {
|
|
|
50534
50501
|
})(CreatePartnerLinkRequestBody$ ||= {});
|
|
50535
50502
|
});
|
|
50536
50503
|
|
|
50537
|
-
// src/models/operations/
|
|
50538
|
-
var
|
|
50539
|
-
var
|
|
50540
|
-
init_lib();
|
|
50541
|
-
Color2 = {
|
|
50542
|
-
Red: "red",
|
|
50543
|
-
Yellow: "yellow",
|
|
50544
|
-
Green: "green",
|
|
50545
|
-
Blue: "blue",
|
|
50546
|
-
Purple: "purple",
|
|
50547
|
-
Pink: "pink",
|
|
50548
|
-
Brown: "brown"
|
|
50549
|
-
};
|
|
50550
|
-
Color$inboundSchema2 = nativeEnumType(Color2);
|
|
50551
|
-
Color$outboundSchema2 = Color$inboundSchema2;
|
|
50552
|
-
((Color$) => {
|
|
50553
|
-
Color$.inboundSchema = Color$inboundSchema2;
|
|
50554
|
-
Color$.outboundSchema = Color$outboundSchema2;
|
|
50555
|
-
})(Color$2 ||= {});
|
|
50556
|
-
CreateTagRequestBody$inboundSchema = objectType({
|
|
50557
|
-
name: stringType().optional(),
|
|
50558
|
-
color: Color$inboundSchema2.optional(),
|
|
50559
|
-
tag: stringType().optional()
|
|
50560
|
-
});
|
|
50561
|
-
CreateTagRequestBody$outboundSchema = objectType({
|
|
50562
|
-
name: stringType().optional(),
|
|
50563
|
-
color: Color$outboundSchema2.optional(),
|
|
50564
|
-
tag: stringType().optional()
|
|
50565
|
-
});
|
|
50566
|
-
((CreateTagRequestBody$) => {
|
|
50567
|
-
CreateTagRequestBody$.inboundSchema = CreateTagRequestBody$inboundSchema;
|
|
50568
|
-
CreateTagRequestBody$.outboundSchema = CreateTagRequestBody$outboundSchema;
|
|
50569
|
-
})(CreateTagRequestBody$ ||= {});
|
|
50570
|
-
});
|
|
50571
|
-
|
|
50572
|
-
// src/models/operations/deletecustomer.ts
|
|
50573
|
-
var DeleteCustomerRequest$inboundSchema, DeleteCustomerRequest$outboundSchema, DeleteCustomerRequest$, DeleteCustomerResponseBody$inboundSchema, DeleteCustomerResponseBody$outboundSchema, DeleteCustomerResponseBody$;
|
|
50574
|
-
var init_deletecustomer = __esm(() => {
|
|
50575
|
-
init_lib();
|
|
50576
|
-
DeleteCustomerRequest$inboundSchema = objectType({
|
|
50577
|
-
id: stringType()
|
|
50578
|
-
});
|
|
50579
|
-
DeleteCustomerRequest$outboundSchema = objectType({
|
|
50580
|
-
id: stringType()
|
|
50581
|
-
});
|
|
50582
|
-
((DeleteCustomerRequest$) => {
|
|
50583
|
-
DeleteCustomerRequest$.inboundSchema = DeleteCustomerRequest$inboundSchema;
|
|
50584
|
-
DeleteCustomerRequest$.outboundSchema = DeleteCustomerRequest$outboundSchema;
|
|
50585
|
-
})(DeleteCustomerRequest$ ||= {});
|
|
50586
|
-
DeleteCustomerResponseBody$inboundSchema = objectType({
|
|
50587
|
-
id: stringType()
|
|
50588
|
-
});
|
|
50589
|
-
DeleteCustomerResponseBody$outboundSchema = objectType({
|
|
50590
|
-
id: stringType()
|
|
50591
|
-
});
|
|
50592
|
-
((DeleteCustomerResponseBody$) => {
|
|
50593
|
-
DeleteCustomerResponseBody$.inboundSchema = DeleteCustomerResponseBody$inboundSchema;
|
|
50594
|
-
DeleteCustomerResponseBody$.outboundSchema = DeleteCustomerResponseBody$outboundSchema;
|
|
50595
|
-
})(DeleteCustomerResponseBody$ ||= {});
|
|
50596
|
-
});
|
|
50597
|
-
|
|
50598
|
-
// src/models/operations/deletedomain.ts
|
|
50599
|
-
var DeleteDomainRequest$inboundSchema, DeleteDomainRequest$outboundSchema, DeleteDomainRequest$, DeleteDomainResponseBody$inboundSchema, DeleteDomainResponseBody$outboundSchema, DeleteDomainResponseBody$;
|
|
50600
|
-
var init_deletedomain = __esm(() => {
|
|
50601
|
-
init_lib();
|
|
50602
|
-
DeleteDomainRequest$inboundSchema = objectType({
|
|
50603
|
-
slug: stringType()
|
|
50604
|
-
});
|
|
50605
|
-
DeleteDomainRequest$outboundSchema = objectType({
|
|
50606
|
-
slug: stringType()
|
|
50607
|
-
});
|
|
50608
|
-
((DeleteDomainRequest$) => {
|
|
50609
|
-
DeleteDomainRequest$.inboundSchema = DeleteDomainRequest$inboundSchema;
|
|
50610
|
-
DeleteDomainRequest$.outboundSchema = DeleteDomainRequest$outboundSchema;
|
|
50611
|
-
})(DeleteDomainRequest$ ||= {});
|
|
50612
|
-
DeleteDomainResponseBody$inboundSchema = objectType({
|
|
50613
|
-
slug: stringType()
|
|
50614
|
-
});
|
|
50615
|
-
DeleteDomainResponseBody$outboundSchema = objectType({
|
|
50616
|
-
slug: stringType()
|
|
50617
|
-
});
|
|
50618
|
-
((DeleteDomainResponseBody$) => {
|
|
50619
|
-
DeleteDomainResponseBody$.inboundSchema = DeleteDomainResponseBody$inboundSchema;
|
|
50620
|
-
DeleteDomainResponseBody$.outboundSchema = DeleteDomainResponseBody$outboundSchema;
|
|
50621
|
-
})(DeleteDomainResponseBody$ ||= {});
|
|
50622
|
-
});
|
|
50623
|
-
|
|
50624
|
-
// src/models/operations/deletefolder.ts
|
|
50625
|
-
var DeleteFolderRequest$inboundSchema, DeleteFolderRequest$outboundSchema, DeleteFolderRequest$, DeleteFolderResponseBody$inboundSchema, DeleteFolderResponseBody$outboundSchema, DeleteFolderResponseBody$;
|
|
50626
|
-
var init_deletefolder = __esm(() => {
|
|
50627
|
-
init_lib();
|
|
50628
|
-
DeleteFolderRequest$inboundSchema = objectType({
|
|
50629
|
-
id: stringType()
|
|
50630
|
-
});
|
|
50631
|
-
DeleteFolderRequest$outboundSchema = objectType({
|
|
50632
|
-
id: stringType()
|
|
50633
|
-
});
|
|
50634
|
-
((DeleteFolderRequest$) => {
|
|
50635
|
-
DeleteFolderRequest$.inboundSchema = DeleteFolderRequest$inboundSchema;
|
|
50636
|
-
DeleteFolderRequest$.outboundSchema = DeleteFolderRequest$outboundSchema;
|
|
50637
|
-
})(DeleteFolderRequest$ ||= {});
|
|
50638
|
-
DeleteFolderResponseBody$inboundSchema = objectType({
|
|
50639
|
-
id: stringType()
|
|
50640
|
-
});
|
|
50641
|
-
DeleteFolderResponseBody$outboundSchema = objectType({
|
|
50642
|
-
id: stringType()
|
|
50643
|
-
});
|
|
50644
|
-
((DeleteFolderResponseBody$) => {
|
|
50645
|
-
DeleteFolderResponseBody$.inboundSchema = DeleteFolderResponseBody$inboundSchema;
|
|
50646
|
-
DeleteFolderResponseBody$.outboundSchema = DeleteFolderResponseBody$outboundSchema;
|
|
50647
|
-
})(DeleteFolderResponseBody$ ||= {});
|
|
50648
|
-
});
|
|
50649
|
-
|
|
50650
|
-
// src/models/operations/deletelink.ts
|
|
50651
|
-
var DeleteLinkRequest$inboundSchema, DeleteLinkRequest$outboundSchema, DeleteLinkRequest$, DeleteLinkResponseBody$inboundSchema, DeleteLinkResponseBody$outboundSchema, DeleteLinkResponseBody$;
|
|
50652
|
-
var init_deletelink = __esm(() => {
|
|
50653
|
-
init_lib();
|
|
50654
|
-
DeleteLinkRequest$inboundSchema = objectType({
|
|
50655
|
-
linkId: stringType()
|
|
50656
|
-
});
|
|
50657
|
-
DeleteLinkRequest$outboundSchema = objectType({
|
|
50658
|
-
linkId: stringType()
|
|
50659
|
-
});
|
|
50660
|
-
((DeleteLinkRequest$) => {
|
|
50661
|
-
DeleteLinkRequest$.inboundSchema = DeleteLinkRequest$inboundSchema;
|
|
50662
|
-
DeleteLinkRequest$.outboundSchema = DeleteLinkRequest$outboundSchema;
|
|
50663
|
-
})(DeleteLinkRequest$ ||= {});
|
|
50664
|
-
DeleteLinkResponseBody$inboundSchema = objectType({
|
|
50665
|
-
id: stringType()
|
|
50666
|
-
});
|
|
50667
|
-
DeleteLinkResponseBody$outboundSchema = objectType({
|
|
50668
|
-
id: stringType()
|
|
50669
|
-
});
|
|
50670
|
-
((DeleteLinkResponseBody$) => {
|
|
50671
|
-
DeleteLinkResponseBody$.inboundSchema = DeleteLinkResponseBody$inboundSchema;
|
|
50672
|
-
DeleteLinkResponseBody$.outboundSchema = DeleteLinkResponseBody$outboundSchema;
|
|
50673
|
-
})(DeleteLinkResponseBody$ ||= {});
|
|
50674
|
-
});
|
|
50675
|
-
|
|
50676
|
-
// src/models/operations/deletetag.ts
|
|
50677
|
-
var DeleteTagRequest$inboundSchema, DeleteTagRequest$outboundSchema, DeleteTagRequest$, DeleteTagResponseBody$inboundSchema, DeleteTagResponseBody$outboundSchema, DeleteTagResponseBody$;
|
|
50678
|
-
var init_deletetag = __esm(() => {
|
|
50679
|
-
init_lib();
|
|
50680
|
-
DeleteTagRequest$inboundSchema = objectType({
|
|
50681
|
-
id: stringType()
|
|
50682
|
-
});
|
|
50683
|
-
DeleteTagRequest$outboundSchema = objectType({
|
|
50684
|
-
id: stringType()
|
|
50685
|
-
});
|
|
50686
|
-
((DeleteTagRequest$) => {
|
|
50687
|
-
DeleteTagRequest$.inboundSchema = DeleteTagRequest$inboundSchema;
|
|
50688
|
-
DeleteTagRequest$.outboundSchema = DeleteTagRequest$outboundSchema;
|
|
50689
|
-
})(DeleteTagRequest$ ||= {});
|
|
50690
|
-
DeleteTagResponseBody$inboundSchema = objectType({
|
|
50691
|
-
id: stringType()
|
|
50692
|
-
});
|
|
50693
|
-
DeleteTagResponseBody$outboundSchema = objectType({
|
|
50694
|
-
id: stringType()
|
|
50695
|
-
});
|
|
50696
|
-
((DeleteTagResponseBody$) => {
|
|
50697
|
-
DeleteTagResponseBody$.inboundSchema = DeleteTagResponseBody$inboundSchema;
|
|
50698
|
-
DeleteTagResponseBody$.outboundSchema = DeleteTagResponseBody$outboundSchema;
|
|
50699
|
-
})(DeleteTagResponseBody$ ||= {});
|
|
50700
|
-
});
|
|
50701
|
-
|
|
50702
|
-
// src/models/operations/getcustomer.ts
|
|
50703
|
-
var GetCustomerType, GetCustomerInterval, GetCustomerRequest$inboundSchema, GetCustomerRequest$outboundSchema, GetCustomerRequest$, GetCustomerLink$inboundSchema, GetCustomerLink$outboundSchema, GetCustomerLink$, GetCustomerPartner$inboundSchema, GetCustomerPartner$outboundSchema, GetCustomerPartner$, GetCustomerType$inboundSchema, GetCustomerType$outboundSchema, GetCustomerType$, GetCustomerInterval$inboundSchema, GetCustomerInterval$outboundSchema, GetCustomerInterval$, GetCustomerDiscount$inboundSchema, GetCustomerDiscount$outboundSchema, GetCustomerDiscount$, GetCustomerResponseBody$inboundSchema, GetCustomerResponseBody$outboundSchema, GetCustomerResponseBody$;
|
|
50704
|
-
var init_getcustomer = __esm(() => {
|
|
50504
|
+
// src/models/operations/createreferralsembedtoken.ts
|
|
50505
|
+
var CreateReferralsEmbedTokenCountry, CreateReferralsEmbedTokenCountry$inboundSchema, CreateReferralsEmbedTokenCountry$outboundSchema, CreateReferralsEmbedTokenCountry$, CreateReferralsEmbedTokenTagIds$inboundSchema, CreateReferralsEmbedTokenTagIds$outboundSchema, CreateReferralsEmbedTokenTagIds$, CreateReferralsEmbedTokenTagNames$inboundSchema, CreateReferralsEmbedTokenTagNames$outboundSchema, CreateReferralsEmbedTokenTagNames$, CreateReferralsEmbedTokenLinkProps$inboundSchema, CreateReferralsEmbedTokenLinkProps$outboundSchema, CreateReferralsEmbedTokenLinkProps$, Partner$inboundSchema2, Partner$outboundSchema2, Partner$2, CreateReferralsEmbedTokenRequestBody$inboundSchema, CreateReferralsEmbedTokenRequestBody$outboundSchema, CreateReferralsEmbedTokenRequestBody$, CreateReferralsEmbedTokenResponseBody$inboundSchema, CreateReferralsEmbedTokenResponseBody$outboundSchema, CreateReferralsEmbedTokenResponseBody$;
|
|
50506
|
+
var init_createreferralsembedtoken = __esm(() => {
|
|
50705
50507
|
init_lib();
|
|
50706
|
-
|
|
50707
|
-
|
|
50708
|
-
|
|
50709
|
-
|
|
50710
|
-
|
|
50711
|
-
|
|
50712
|
-
|
|
50713
|
-
|
|
50714
|
-
|
|
50715
|
-
|
|
50716
|
-
|
|
50717
|
-
|
|
50718
|
-
|
|
50719
|
-
|
|
50720
|
-
|
|
50721
|
-
|
|
50722
|
-
|
|
50723
|
-
|
|
50724
|
-
|
|
50725
|
-
|
|
50726
|
-
|
|
50727
|
-
|
|
50728
|
-
|
|
50729
|
-
|
|
50730
|
-
|
|
50731
|
-
|
|
50732
|
-
|
|
50733
|
-
|
|
50734
|
-
|
|
50735
|
-
|
|
50736
|
-
|
|
50737
|
-
|
|
50738
|
-
|
|
50739
|
-
|
|
50740
|
-
|
|
50741
|
-
|
|
50742
|
-
|
|
50743
|
-
|
|
50744
|
-
|
|
50745
|
-
|
|
50746
|
-
|
|
50747
|
-
|
|
50748
|
-
|
|
50749
|
-
|
|
50750
|
-
|
|
50751
|
-
|
|
50752
|
-
|
|
50753
|
-
|
|
50754
|
-
|
|
50755
|
-
|
|
50756
|
-
|
|
50757
|
-
|
|
50758
|
-
|
|
50759
|
-
|
|
50760
|
-
|
|
50761
|
-
|
|
50762
|
-
|
|
50763
|
-
|
|
50764
|
-
|
|
50765
|
-
|
|
50766
|
-
|
|
50767
|
-
|
|
50768
|
-
|
|
50769
|
-
|
|
50770
|
-
|
|
50771
|
-
|
|
50772
|
-
|
|
50508
|
+
init_primitives();
|
|
50509
|
+
CreateReferralsEmbedTokenCountry = {
|
|
50510
|
+
Af: "AF",
|
|
50511
|
+
Al: "AL",
|
|
50512
|
+
Dz: "DZ",
|
|
50513
|
+
As: "AS",
|
|
50514
|
+
Ad: "AD",
|
|
50515
|
+
Ao: "AO",
|
|
50516
|
+
Ai: "AI",
|
|
50517
|
+
Aq: "AQ",
|
|
50518
|
+
Ag: "AG",
|
|
50519
|
+
Ar: "AR",
|
|
50520
|
+
Am: "AM",
|
|
50521
|
+
Aw: "AW",
|
|
50522
|
+
Au: "AU",
|
|
50523
|
+
At: "AT",
|
|
50524
|
+
Az: "AZ",
|
|
50525
|
+
Bs: "BS",
|
|
50526
|
+
Bh: "BH",
|
|
50527
|
+
Bd: "BD",
|
|
50528
|
+
Bb: "BB",
|
|
50529
|
+
By: "BY",
|
|
50530
|
+
Be: "BE",
|
|
50531
|
+
Bz: "BZ",
|
|
50532
|
+
Bj: "BJ",
|
|
50533
|
+
Bm: "BM",
|
|
50534
|
+
Bt: "BT",
|
|
50535
|
+
Bo: "BO",
|
|
50536
|
+
Ba: "BA",
|
|
50537
|
+
Bw: "BW",
|
|
50538
|
+
Bv: "BV",
|
|
50539
|
+
Br: "BR",
|
|
50540
|
+
Io: "IO",
|
|
50541
|
+
Bn: "BN",
|
|
50542
|
+
Bg: "BG",
|
|
50543
|
+
Bf: "BF",
|
|
50544
|
+
Bi: "BI",
|
|
50545
|
+
Kh: "KH",
|
|
50546
|
+
Cm: "CM",
|
|
50547
|
+
Ca: "CA",
|
|
50548
|
+
Cv: "CV",
|
|
50549
|
+
Ky: "KY",
|
|
50550
|
+
Cf: "CF",
|
|
50551
|
+
Td: "TD",
|
|
50552
|
+
Cl: "CL",
|
|
50553
|
+
Cn: "CN",
|
|
50554
|
+
Cx: "CX",
|
|
50555
|
+
Cc: "CC",
|
|
50556
|
+
Co: "CO",
|
|
50557
|
+
Km: "KM",
|
|
50558
|
+
Cg: "CG",
|
|
50559
|
+
Cd: "CD",
|
|
50560
|
+
Ck: "CK",
|
|
50561
|
+
Cr: "CR",
|
|
50562
|
+
Ci: "CI",
|
|
50563
|
+
Hr: "HR",
|
|
50564
|
+
Cu: "CU",
|
|
50565
|
+
Cy: "CY",
|
|
50566
|
+
Cz: "CZ",
|
|
50567
|
+
Dk: "DK",
|
|
50568
|
+
Dj: "DJ",
|
|
50569
|
+
Dm: "DM",
|
|
50570
|
+
Do: "DO",
|
|
50571
|
+
Ec: "EC",
|
|
50572
|
+
Eg: "EG",
|
|
50573
|
+
Sv: "SV",
|
|
50574
|
+
Gq: "GQ",
|
|
50575
|
+
Er: "ER",
|
|
50576
|
+
Ee: "EE",
|
|
50577
|
+
Et: "ET",
|
|
50578
|
+
Fk: "FK",
|
|
50579
|
+
Fo: "FO",
|
|
50580
|
+
Fj: "FJ",
|
|
50581
|
+
Fi: "FI",
|
|
50582
|
+
Fr: "FR",
|
|
50583
|
+
Gf: "GF",
|
|
50584
|
+
Pf: "PF",
|
|
50585
|
+
Tf: "TF",
|
|
50586
|
+
Ga: "GA",
|
|
50587
|
+
Gm: "GM",
|
|
50588
|
+
Ge: "GE",
|
|
50589
|
+
De: "DE",
|
|
50590
|
+
Gh: "GH",
|
|
50591
|
+
Gi: "GI",
|
|
50592
|
+
Gr: "GR",
|
|
50593
|
+
Gl: "GL",
|
|
50594
|
+
Gd: "GD",
|
|
50595
|
+
Gp: "GP",
|
|
50596
|
+
Gu: "GU",
|
|
50597
|
+
Gt: "GT",
|
|
50598
|
+
Gn: "GN",
|
|
50599
|
+
Gw: "GW",
|
|
50600
|
+
Gy: "GY",
|
|
50601
|
+
Ht: "HT",
|
|
50602
|
+
Hm: "HM",
|
|
50603
|
+
Va: "VA",
|
|
50604
|
+
Hn: "HN",
|
|
50605
|
+
Hk: "HK",
|
|
50606
|
+
Hu: "HU",
|
|
50607
|
+
Is: "IS",
|
|
50608
|
+
In: "IN",
|
|
50609
|
+
Id: "ID",
|
|
50610
|
+
Ir: "IR",
|
|
50611
|
+
Iq: "IQ",
|
|
50612
|
+
Ie: "IE",
|
|
50613
|
+
Il: "IL",
|
|
50614
|
+
It: "IT",
|
|
50615
|
+
Jm: "JM",
|
|
50616
|
+
Jp: "JP",
|
|
50617
|
+
Jo: "JO",
|
|
50618
|
+
Kz: "KZ",
|
|
50619
|
+
Ke: "KE",
|
|
50620
|
+
Ki: "KI",
|
|
50621
|
+
Kp: "KP",
|
|
50622
|
+
Kr: "KR",
|
|
50623
|
+
Kw: "KW",
|
|
50624
|
+
Kg: "KG",
|
|
50625
|
+
La: "LA",
|
|
50626
|
+
Lv: "LV",
|
|
50627
|
+
Lb: "LB",
|
|
50628
|
+
Ls: "LS",
|
|
50629
|
+
Lr: "LR",
|
|
50630
|
+
Ly: "LY",
|
|
50631
|
+
Li: "LI",
|
|
50632
|
+
Lt: "LT",
|
|
50633
|
+
Lu: "LU",
|
|
50634
|
+
Mo: "MO",
|
|
50635
|
+
Mg: "MG",
|
|
50636
|
+
Mw: "MW",
|
|
50637
|
+
My: "MY",
|
|
50638
|
+
Mv: "MV",
|
|
50639
|
+
Ml: "ML",
|
|
50640
|
+
Mt: "MT",
|
|
50641
|
+
Mh: "MH",
|
|
50642
|
+
Mq: "MQ",
|
|
50643
|
+
Mr: "MR",
|
|
50644
|
+
Mu: "MU",
|
|
50645
|
+
Yt: "YT",
|
|
50646
|
+
Mx: "MX",
|
|
50647
|
+
Fm: "FM",
|
|
50648
|
+
Md: "MD",
|
|
50649
|
+
Mc: "MC",
|
|
50650
|
+
Mn: "MN",
|
|
50651
|
+
Ms: "MS",
|
|
50652
|
+
Ma: "MA",
|
|
50653
|
+
Mz: "MZ",
|
|
50654
|
+
Mm: "MM",
|
|
50655
|
+
Na: "NA",
|
|
50656
|
+
Nr: "NR",
|
|
50657
|
+
Np: "NP",
|
|
50658
|
+
Nl: "NL",
|
|
50659
|
+
Nc: "NC",
|
|
50660
|
+
Nz: "NZ",
|
|
50661
|
+
Ni: "NI",
|
|
50662
|
+
Ne: "NE",
|
|
50663
|
+
Ng: "NG",
|
|
50664
|
+
Nu: "NU",
|
|
50665
|
+
Nf: "NF",
|
|
50666
|
+
Mk: "MK",
|
|
50667
|
+
Mp: "MP",
|
|
50668
|
+
No: "NO",
|
|
50669
|
+
Om: "OM",
|
|
50670
|
+
Pk: "PK",
|
|
50671
|
+
Pw: "PW",
|
|
50672
|
+
Ps: "PS",
|
|
50673
|
+
Pa: "PA",
|
|
50674
|
+
Pg: "PG",
|
|
50675
|
+
Py: "PY",
|
|
50676
|
+
Pe: "PE",
|
|
50677
|
+
Ph: "PH",
|
|
50678
|
+
Pn: "PN",
|
|
50679
|
+
Pl: "PL",
|
|
50680
|
+
Pt: "PT",
|
|
50681
|
+
Pr: "PR",
|
|
50682
|
+
Qa: "QA",
|
|
50683
|
+
Re: "RE",
|
|
50684
|
+
Ro: "RO",
|
|
50685
|
+
Ru: "RU",
|
|
50686
|
+
Rw: "RW",
|
|
50687
|
+
Sh: "SH",
|
|
50688
|
+
Kn: "KN",
|
|
50689
|
+
Lc: "LC",
|
|
50690
|
+
Pm: "PM",
|
|
50691
|
+
Vc: "VC",
|
|
50692
|
+
Ws: "WS",
|
|
50693
|
+
Sm: "SM",
|
|
50694
|
+
St: "ST",
|
|
50695
|
+
Sa: "SA",
|
|
50696
|
+
Sn: "SN",
|
|
50697
|
+
Sc: "SC",
|
|
50698
|
+
Sl: "SL",
|
|
50699
|
+
Sg: "SG",
|
|
50700
|
+
Sk: "SK",
|
|
50701
|
+
Si: "SI",
|
|
50702
|
+
Sb: "SB",
|
|
50703
|
+
So: "SO",
|
|
50704
|
+
Za: "ZA",
|
|
50705
|
+
Gs: "GS",
|
|
50706
|
+
Es: "ES",
|
|
50707
|
+
Lk: "LK",
|
|
50708
|
+
Sd: "SD",
|
|
50709
|
+
Sr: "SR",
|
|
50710
|
+
Sj: "SJ",
|
|
50711
|
+
Sz: "SZ",
|
|
50712
|
+
Se: "SE",
|
|
50713
|
+
Ch: "CH",
|
|
50714
|
+
Sy: "SY",
|
|
50715
|
+
Tw: "TW",
|
|
50716
|
+
Tj: "TJ",
|
|
50717
|
+
Tz: "TZ",
|
|
50718
|
+
Th: "TH",
|
|
50719
|
+
Tl: "TL",
|
|
50720
|
+
Tg: "TG",
|
|
50721
|
+
Tk: "TK",
|
|
50722
|
+
To: "TO",
|
|
50723
|
+
Tt: "TT",
|
|
50724
|
+
Tn: "TN",
|
|
50725
|
+
Tr: "TR",
|
|
50726
|
+
Tm: "TM",
|
|
50727
|
+
Tc: "TC",
|
|
50728
|
+
Tv: "TV",
|
|
50729
|
+
Ug: "UG",
|
|
50730
|
+
Ua: "UA",
|
|
50731
|
+
Ae: "AE",
|
|
50732
|
+
Gb: "GB",
|
|
50733
|
+
Us: "US",
|
|
50734
|
+
Um: "UM",
|
|
50735
|
+
Uy: "UY",
|
|
50736
|
+
Uz: "UZ",
|
|
50737
|
+
Vu: "VU",
|
|
50738
|
+
Ve: "VE",
|
|
50739
|
+
Vn: "VN",
|
|
50740
|
+
Vg: "VG",
|
|
50741
|
+
Vi: "VI",
|
|
50742
|
+
Wf: "WF",
|
|
50743
|
+
Eh: "EH",
|
|
50744
|
+
Ye: "YE",
|
|
50745
|
+
Zm: "ZM",
|
|
50746
|
+
Zw: "ZW",
|
|
50747
|
+
Ax: "AX",
|
|
50748
|
+
Bq: "BQ",
|
|
50749
|
+
Cw: "CW",
|
|
50750
|
+
Gg: "GG",
|
|
50751
|
+
Im: "IM",
|
|
50752
|
+
Je: "JE",
|
|
50753
|
+
Me: "ME",
|
|
50754
|
+
Bl: "BL",
|
|
50755
|
+
Mf: "MF",
|
|
50756
|
+
Rs: "RS",
|
|
50757
|
+
Sx: "SX",
|
|
50758
|
+
Ss: "SS",
|
|
50759
|
+
Xk: "XK"
|
|
50760
|
+
};
|
|
50761
|
+
CreateReferralsEmbedTokenCountry$inboundSchema = nativeEnumType(CreateReferralsEmbedTokenCountry);
|
|
50762
|
+
CreateReferralsEmbedTokenCountry$outboundSchema = CreateReferralsEmbedTokenCountry$inboundSchema;
|
|
50763
|
+
((CreateReferralsEmbedTokenCountry$) => {
|
|
50764
|
+
CreateReferralsEmbedTokenCountry$.inboundSchema = CreateReferralsEmbedTokenCountry$inboundSchema;
|
|
50765
|
+
CreateReferralsEmbedTokenCountry$.outboundSchema = CreateReferralsEmbedTokenCountry$outboundSchema;
|
|
50766
|
+
})(CreateReferralsEmbedTokenCountry$ ||= {});
|
|
50767
|
+
CreateReferralsEmbedTokenTagIds$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
50768
|
+
CreateReferralsEmbedTokenTagIds$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
50769
|
+
((CreateReferralsEmbedTokenTagIds$) => {
|
|
50770
|
+
CreateReferralsEmbedTokenTagIds$.inboundSchema = CreateReferralsEmbedTokenTagIds$inboundSchema;
|
|
50771
|
+
CreateReferralsEmbedTokenTagIds$.outboundSchema = CreateReferralsEmbedTokenTagIds$outboundSchema;
|
|
50772
|
+
})(CreateReferralsEmbedTokenTagIds$ ||= {});
|
|
50773
|
+
CreateReferralsEmbedTokenTagNames$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
50774
|
+
CreateReferralsEmbedTokenTagNames$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
50775
|
+
((CreateReferralsEmbedTokenTagNames$) => {
|
|
50776
|
+
CreateReferralsEmbedTokenTagNames$.inboundSchema = CreateReferralsEmbedTokenTagNames$inboundSchema;
|
|
50777
|
+
CreateReferralsEmbedTokenTagNames$.outboundSchema = CreateReferralsEmbedTokenTagNames$outboundSchema;
|
|
50778
|
+
})(CreateReferralsEmbedTokenTagNames$ ||= {});
|
|
50779
|
+
CreateReferralsEmbedTokenLinkProps$inboundSchema = objectType({
|
|
50780
|
+
externalId: nullableType(stringType()).optional(),
|
|
50781
|
+
tenantId: nullableType(stringType()).optional(),
|
|
50782
|
+
prefix: stringType().optional(),
|
|
50783
|
+
archived: booleanType().optional(),
|
|
50784
|
+
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
50785
|
+
tagNames: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
50786
|
+
folderId: nullableType(stringType()).optional(),
|
|
50787
|
+
comments: nullableType(stringType()).optional(),
|
|
50788
|
+
expiresAt: nullableType(stringType()).optional(),
|
|
50789
|
+
expiredUrl: nullableType(stringType()).optional(),
|
|
50790
|
+
password: nullableType(stringType()).optional(),
|
|
50791
|
+
proxy: booleanType().optional(),
|
|
50792
|
+
title: nullableType(stringType()).optional(),
|
|
50793
|
+
description: nullableType(stringType()).optional(),
|
|
50794
|
+
image: nullableType(stringType()).optional(),
|
|
50795
|
+
video: nullableType(stringType()).optional(),
|
|
50796
|
+
rewrite: booleanType().optional(),
|
|
50797
|
+
ios: nullableType(stringType()).optional(),
|
|
50798
|
+
android: nullableType(stringType()).optional(),
|
|
50799
|
+
doIndex: booleanType().optional(),
|
|
50800
|
+
utm_source: nullableType(stringType()).optional(),
|
|
50801
|
+
utm_medium: nullableType(stringType()).optional(),
|
|
50802
|
+
utm_campaign: nullableType(stringType()).optional(),
|
|
50803
|
+
utm_term: nullableType(stringType()).optional(),
|
|
50804
|
+
utm_content: nullableType(stringType()).optional(),
|
|
50805
|
+
ref: nullableType(stringType()).optional()
|
|
50806
|
+
}).transform((v2) => {
|
|
50807
|
+
return remap(v2, {
|
|
50808
|
+
utm_source: "utmSource",
|
|
50809
|
+
utm_medium: "utmMedium",
|
|
50810
|
+
utm_campaign: "utmCampaign",
|
|
50811
|
+
utm_term: "utmTerm",
|
|
50812
|
+
utm_content: "utmContent"
|
|
50813
|
+
});
|
|
50814
|
+
});
|
|
50815
|
+
CreateReferralsEmbedTokenLinkProps$outboundSchema = objectType({
|
|
50816
|
+
externalId: nullableType(stringType()).optional(),
|
|
50817
|
+
tenantId: nullableType(stringType()).optional(),
|
|
50818
|
+
prefix: stringType().optional(),
|
|
50819
|
+
archived: booleanType().optional(),
|
|
50820
|
+
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
50821
|
+
tagNames: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
50822
|
+
folderId: nullableType(stringType()).optional(),
|
|
50823
|
+
comments: nullableType(stringType()).optional(),
|
|
50824
|
+
expiresAt: nullableType(stringType()).optional(),
|
|
50825
|
+
expiredUrl: nullableType(stringType()).optional(),
|
|
50826
|
+
password: nullableType(stringType()).optional(),
|
|
50827
|
+
proxy: booleanType().optional(),
|
|
50828
|
+
title: nullableType(stringType()).optional(),
|
|
50829
|
+
description: nullableType(stringType()).optional(),
|
|
50830
|
+
image: nullableType(stringType()).optional(),
|
|
50831
|
+
video: nullableType(stringType()).optional(),
|
|
50832
|
+
rewrite: booleanType().optional(),
|
|
50833
|
+
ios: nullableType(stringType()).optional(),
|
|
50834
|
+
android: nullableType(stringType()).optional(),
|
|
50835
|
+
doIndex: booleanType().optional(),
|
|
50836
|
+
utmSource: nullableType(stringType()).optional(),
|
|
50837
|
+
utmMedium: nullableType(stringType()).optional(),
|
|
50838
|
+
utmCampaign: nullableType(stringType()).optional(),
|
|
50839
|
+
utmTerm: nullableType(stringType()).optional(),
|
|
50840
|
+
utmContent: nullableType(stringType()).optional(),
|
|
50841
|
+
ref: nullableType(stringType()).optional()
|
|
50842
|
+
}).transform((v2) => {
|
|
50843
|
+
return remap(v2, {
|
|
50844
|
+
utmSource: "utm_source",
|
|
50845
|
+
utmMedium: "utm_medium",
|
|
50846
|
+
utmCampaign: "utm_campaign",
|
|
50847
|
+
utmTerm: "utm_term",
|
|
50848
|
+
utmContent: "utm_content"
|
|
50849
|
+
});
|
|
50850
|
+
});
|
|
50851
|
+
((CreateReferralsEmbedTokenLinkProps$) => {
|
|
50852
|
+
CreateReferralsEmbedTokenLinkProps$.inboundSchema = CreateReferralsEmbedTokenLinkProps$inboundSchema;
|
|
50853
|
+
CreateReferralsEmbedTokenLinkProps$.outboundSchema = CreateReferralsEmbedTokenLinkProps$outboundSchema;
|
|
50854
|
+
})(CreateReferralsEmbedTokenLinkProps$ ||= {});
|
|
50855
|
+
Partner$inboundSchema2 = objectType({
|
|
50856
|
+
name: stringType(),
|
|
50857
|
+
email: stringType(),
|
|
50858
|
+
username: nullableType(stringType()).optional(),
|
|
50859
|
+
image: nullableType(stringType()).optional(),
|
|
50860
|
+
country: nullableType(CreateReferralsEmbedTokenCountry$inboundSchema).optional(),
|
|
50861
|
+
description: nullableType(stringType()).optional(),
|
|
50862
|
+
tenantId: stringType().optional(),
|
|
50863
|
+
linkProps: lazyType(() => CreateReferralsEmbedTokenLinkProps$inboundSchema).optional()
|
|
50864
|
+
});
|
|
50865
|
+
Partner$outboundSchema2 = objectType({
|
|
50866
|
+
name: stringType(),
|
|
50867
|
+
email: stringType(),
|
|
50868
|
+
username: nullableType(stringType()).optional(),
|
|
50869
|
+
image: nullableType(stringType()).optional(),
|
|
50870
|
+
country: nullableType(CreateReferralsEmbedTokenCountry$outboundSchema).optional(),
|
|
50871
|
+
description: nullableType(stringType()).optional(),
|
|
50872
|
+
tenantId: stringType().optional(),
|
|
50873
|
+
linkProps: lazyType(() => CreateReferralsEmbedTokenLinkProps$outboundSchema).optional()
|
|
50874
|
+
});
|
|
50875
|
+
((Partner$) => {
|
|
50876
|
+
Partner$.inboundSchema = Partner$inboundSchema2;
|
|
50877
|
+
Partner$.outboundSchema = Partner$outboundSchema2;
|
|
50878
|
+
})(Partner$2 ||= {});
|
|
50879
|
+
CreateReferralsEmbedTokenRequestBody$inboundSchema = objectType({
|
|
50880
|
+
programId: stringType(),
|
|
50881
|
+
partnerId: stringType().optional(),
|
|
50882
|
+
tenantId: stringType().optional(),
|
|
50883
|
+
partner: lazyType(() => Partner$inboundSchema2).optional()
|
|
50884
|
+
});
|
|
50885
|
+
CreateReferralsEmbedTokenRequestBody$outboundSchema = objectType({
|
|
50886
|
+
programId: stringType(),
|
|
50887
|
+
partnerId: stringType().optional(),
|
|
50888
|
+
tenantId: stringType().optional(),
|
|
50889
|
+
partner: lazyType(() => Partner$outboundSchema2).optional()
|
|
50890
|
+
});
|
|
50891
|
+
((CreateReferralsEmbedTokenRequestBody$) => {
|
|
50892
|
+
CreateReferralsEmbedTokenRequestBody$.inboundSchema = CreateReferralsEmbedTokenRequestBody$inboundSchema;
|
|
50893
|
+
CreateReferralsEmbedTokenRequestBody$.outboundSchema = CreateReferralsEmbedTokenRequestBody$outboundSchema;
|
|
50894
|
+
})(CreateReferralsEmbedTokenRequestBody$ ||= {});
|
|
50895
|
+
CreateReferralsEmbedTokenResponseBody$inboundSchema = objectType({
|
|
50896
|
+
publicToken: stringType(),
|
|
50897
|
+
expires: stringType()
|
|
50898
|
+
});
|
|
50899
|
+
CreateReferralsEmbedTokenResponseBody$outboundSchema = objectType({
|
|
50900
|
+
publicToken: stringType(),
|
|
50901
|
+
expires: stringType()
|
|
50902
|
+
});
|
|
50903
|
+
((CreateReferralsEmbedTokenResponseBody$) => {
|
|
50904
|
+
CreateReferralsEmbedTokenResponseBody$.inboundSchema = CreateReferralsEmbedTokenResponseBody$inboundSchema;
|
|
50905
|
+
CreateReferralsEmbedTokenResponseBody$.outboundSchema = CreateReferralsEmbedTokenResponseBody$outboundSchema;
|
|
50906
|
+
})(CreateReferralsEmbedTokenResponseBody$ ||= {});
|
|
50907
|
+
});
|
|
50908
|
+
|
|
50909
|
+
// src/models/operations/createtag.ts
|
|
50910
|
+
var Color2, Color$inboundSchema2, Color$outboundSchema2, Color$2, CreateTagRequestBody$inboundSchema, CreateTagRequestBody$outboundSchema, CreateTagRequestBody$;
|
|
50911
|
+
var init_createtag = __esm(() => {
|
|
50912
|
+
init_lib();
|
|
50913
|
+
Color2 = {
|
|
50914
|
+
Red: "red",
|
|
50915
|
+
Yellow: "yellow",
|
|
50916
|
+
Green: "green",
|
|
50917
|
+
Blue: "blue",
|
|
50918
|
+
Purple: "purple",
|
|
50919
|
+
Pink: "pink",
|
|
50920
|
+
Brown: "brown"
|
|
50921
|
+
};
|
|
50922
|
+
Color$inboundSchema2 = nativeEnumType(Color2);
|
|
50923
|
+
Color$outboundSchema2 = Color$inboundSchema2;
|
|
50924
|
+
((Color$) => {
|
|
50925
|
+
Color$.inboundSchema = Color$inboundSchema2;
|
|
50926
|
+
Color$.outboundSchema = Color$outboundSchema2;
|
|
50927
|
+
})(Color$2 ||= {});
|
|
50928
|
+
CreateTagRequestBody$inboundSchema = objectType({
|
|
50929
|
+
name: stringType().optional(),
|
|
50930
|
+
color: Color$inboundSchema2.optional(),
|
|
50931
|
+
tag: stringType().optional()
|
|
50932
|
+
});
|
|
50933
|
+
CreateTagRequestBody$outboundSchema = objectType({
|
|
50934
|
+
name: stringType().optional(),
|
|
50935
|
+
color: Color$outboundSchema2.optional(),
|
|
50936
|
+
tag: stringType().optional()
|
|
50937
|
+
});
|
|
50938
|
+
((CreateTagRequestBody$) => {
|
|
50939
|
+
CreateTagRequestBody$.inboundSchema = CreateTagRequestBody$inboundSchema;
|
|
50940
|
+
CreateTagRequestBody$.outboundSchema = CreateTagRequestBody$outboundSchema;
|
|
50941
|
+
})(CreateTagRequestBody$ ||= {});
|
|
50942
|
+
});
|
|
50943
|
+
|
|
50944
|
+
// src/models/operations/deletecustomer.ts
|
|
50945
|
+
var DeleteCustomerRequest$inboundSchema, DeleteCustomerRequest$outboundSchema, DeleteCustomerRequest$, DeleteCustomerResponseBody$inboundSchema, DeleteCustomerResponseBody$outboundSchema, DeleteCustomerResponseBody$;
|
|
50946
|
+
var init_deletecustomer = __esm(() => {
|
|
50947
|
+
init_lib();
|
|
50948
|
+
DeleteCustomerRequest$inboundSchema = objectType({
|
|
50949
|
+
id: stringType()
|
|
50950
|
+
});
|
|
50951
|
+
DeleteCustomerRequest$outboundSchema = objectType({
|
|
50952
|
+
id: stringType()
|
|
50953
|
+
});
|
|
50954
|
+
((DeleteCustomerRequest$) => {
|
|
50955
|
+
DeleteCustomerRequest$.inboundSchema = DeleteCustomerRequest$inboundSchema;
|
|
50956
|
+
DeleteCustomerRequest$.outboundSchema = DeleteCustomerRequest$outboundSchema;
|
|
50957
|
+
})(DeleteCustomerRequest$ ||= {});
|
|
50958
|
+
DeleteCustomerResponseBody$inboundSchema = objectType({
|
|
50959
|
+
id: stringType()
|
|
50960
|
+
});
|
|
50961
|
+
DeleteCustomerResponseBody$outboundSchema = objectType({
|
|
50962
|
+
id: stringType()
|
|
50963
|
+
});
|
|
50964
|
+
((DeleteCustomerResponseBody$) => {
|
|
50965
|
+
DeleteCustomerResponseBody$.inboundSchema = DeleteCustomerResponseBody$inboundSchema;
|
|
50966
|
+
DeleteCustomerResponseBody$.outboundSchema = DeleteCustomerResponseBody$outboundSchema;
|
|
50967
|
+
})(DeleteCustomerResponseBody$ ||= {});
|
|
50968
|
+
});
|
|
50969
|
+
|
|
50970
|
+
// src/models/operations/deletedomain.ts
|
|
50971
|
+
var DeleteDomainRequest$inboundSchema, DeleteDomainRequest$outboundSchema, DeleteDomainRequest$, DeleteDomainResponseBody$inboundSchema, DeleteDomainResponseBody$outboundSchema, DeleteDomainResponseBody$;
|
|
50972
|
+
var init_deletedomain = __esm(() => {
|
|
50973
|
+
init_lib();
|
|
50974
|
+
DeleteDomainRequest$inboundSchema = objectType({
|
|
50975
|
+
slug: stringType()
|
|
50976
|
+
});
|
|
50977
|
+
DeleteDomainRequest$outboundSchema = objectType({
|
|
50978
|
+
slug: stringType()
|
|
50979
|
+
});
|
|
50980
|
+
((DeleteDomainRequest$) => {
|
|
50981
|
+
DeleteDomainRequest$.inboundSchema = DeleteDomainRequest$inboundSchema;
|
|
50982
|
+
DeleteDomainRequest$.outboundSchema = DeleteDomainRequest$outboundSchema;
|
|
50983
|
+
})(DeleteDomainRequest$ ||= {});
|
|
50984
|
+
DeleteDomainResponseBody$inboundSchema = objectType({
|
|
50985
|
+
slug: stringType()
|
|
50986
|
+
});
|
|
50987
|
+
DeleteDomainResponseBody$outboundSchema = objectType({
|
|
50988
|
+
slug: stringType()
|
|
50989
|
+
});
|
|
50990
|
+
((DeleteDomainResponseBody$) => {
|
|
50991
|
+
DeleteDomainResponseBody$.inboundSchema = DeleteDomainResponseBody$inboundSchema;
|
|
50992
|
+
DeleteDomainResponseBody$.outboundSchema = DeleteDomainResponseBody$outboundSchema;
|
|
50993
|
+
})(DeleteDomainResponseBody$ ||= {});
|
|
50994
|
+
});
|
|
50995
|
+
|
|
50996
|
+
// src/models/operations/deletefolder.ts
|
|
50997
|
+
var DeleteFolderRequest$inboundSchema, DeleteFolderRequest$outboundSchema, DeleteFolderRequest$, DeleteFolderResponseBody$inboundSchema, DeleteFolderResponseBody$outboundSchema, DeleteFolderResponseBody$;
|
|
50998
|
+
var init_deletefolder = __esm(() => {
|
|
50999
|
+
init_lib();
|
|
51000
|
+
DeleteFolderRequest$inboundSchema = objectType({
|
|
51001
|
+
id: stringType()
|
|
51002
|
+
});
|
|
51003
|
+
DeleteFolderRequest$outboundSchema = objectType({
|
|
51004
|
+
id: stringType()
|
|
51005
|
+
});
|
|
51006
|
+
((DeleteFolderRequest$) => {
|
|
51007
|
+
DeleteFolderRequest$.inboundSchema = DeleteFolderRequest$inboundSchema;
|
|
51008
|
+
DeleteFolderRequest$.outboundSchema = DeleteFolderRequest$outboundSchema;
|
|
51009
|
+
})(DeleteFolderRequest$ ||= {});
|
|
51010
|
+
DeleteFolderResponseBody$inboundSchema = objectType({
|
|
51011
|
+
id: stringType()
|
|
51012
|
+
});
|
|
51013
|
+
DeleteFolderResponseBody$outboundSchema = objectType({
|
|
51014
|
+
id: stringType()
|
|
51015
|
+
});
|
|
51016
|
+
((DeleteFolderResponseBody$) => {
|
|
51017
|
+
DeleteFolderResponseBody$.inboundSchema = DeleteFolderResponseBody$inboundSchema;
|
|
51018
|
+
DeleteFolderResponseBody$.outboundSchema = DeleteFolderResponseBody$outboundSchema;
|
|
51019
|
+
})(DeleteFolderResponseBody$ ||= {});
|
|
51020
|
+
});
|
|
51021
|
+
|
|
51022
|
+
// src/models/operations/deletelink.ts
|
|
51023
|
+
var DeleteLinkRequest$inboundSchema, DeleteLinkRequest$outboundSchema, DeleteLinkRequest$, DeleteLinkResponseBody$inboundSchema, DeleteLinkResponseBody$outboundSchema, DeleteLinkResponseBody$;
|
|
51024
|
+
var init_deletelink = __esm(() => {
|
|
51025
|
+
init_lib();
|
|
51026
|
+
DeleteLinkRequest$inboundSchema = objectType({
|
|
51027
|
+
linkId: stringType()
|
|
51028
|
+
});
|
|
51029
|
+
DeleteLinkRequest$outboundSchema = objectType({
|
|
51030
|
+
linkId: stringType()
|
|
51031
|
+
});
|
|
51032
|
+
((DeleteLinkRequest$) => {
|
|
51033
|
+
DeleteLinkRequest$.inboundSchema = DeleteLinkRequest$inboundSchema;
|
|
51034
|
+
DeleteLinkRequest$.outboundSchema = DeleteLinkRequest$outboundSchema;
|
|
51035
|
+
})(DeleteLinkRequest$ ||= {});
|
|
51036
|
+
DeleteLinkResponseBody$inboundSchema = objectType({
|
|
51037
|
+
id: stringType()
|
|
51038
|
+
});
|
|
51039
|
+
DeleteLinkResponseBody$outboundSchema = objectType({
|
|
51040
|
+
id: stringType()
|
|
51041
|
+
});
|
|
51042
|
+
((DeleteLinkResponseBody$) => {
|
|
51043
|
+
DeleteLinkResponseBody$.inboundSchema = DeleteLinkResponseBody$inboundSchema;
|
|
51044
|
+
DeleteLinkResponseBody$.outboundSchema = DeleteLinkResponseBody$outboundSchema;
|
|
51045
|
+
})(DeleteLinkResponseBody$ ||= {});
|
|
51046
|
+
});
|
|
51047
|
+
|
|
51048
|
+
// src/models/operations/deletetag.ts
|
|
51049
|
+
var DeleteTagRequest$inboundSchema, DeleteTagRequest$outboundSchema, DeleteTagRequest$, DeleteTagResponseBody$inboundSchema, DeleteTagResponseBody$outboundSchema, DeleteTagResponseBody$;
|
|
51050
|
+
var init_deletetag = __esm(() => {
|
|
51051
|
+
init_lib();
|
|
51052
|
+
DeleteTagRequest$inboundSchema = objectType({
|
|
51053
|
+
id: stringType()
|
|
51054
|
+
});
|
|
51055
|
+
DeleteTagRequest$outboundSchema = objectType({
|
|
51056
|
+
id: stringType()
|
|
51057
|
+
});
|
|
51058
|
+
((DeleteTagRequest$) => {
|
|
51059
|
+
DeleteTagRequest$.inboundSchema = DeleteTagRequest$inboundSchema;
|
|
51060
|
+
DeleteTagRequest$.outboundSchema = DeleteTagRequest$outboundSchema;
|
|
51061
|
+
})(DeleteTagRequest$ ||= {});
|
|
51062
|
+
DeleteTagResponseBody$inboundSchema = objectType({
|
|
51063
|
+
id: stringType()
|
|
51064
|
+
});
|
|
51065
|
+
DeleteTagResponseBody$outboundSchema = objectType({
|
|
51066
|
+
id: stringType()
|
|
51067
|
+
});
|
|
51068
|
+
((DeleteTagResponseBody$) => {
|
|
51069
|
+
DeleteTagResponseBody$.inboundSchema = DeleteTagResponseBody$inboundSchema;
|
|
51070
|
+
DeleteTagResponseBody$.outboundSchema = DeleteTagResponseBody$outboundSchema;
|
|
51071
|
+
})(DeleteTagResponseBody$ ||= {});
|
|
51072
|
+
});
|
|
51073
|
+
|
|
51074
|
+
// src/models/operations/getcustomer.ts
|
|
51075
|
+
var GetCustomerType, GetCustomerInterval, GetCustomerRequest$inboundSchema, GetCustomerRequest$outboundSchema, GetCustomerRequest$, GetCustomerLink$inboundSchema, GetCustomerLink$outboundSchema, GetCustomerLink$, GetCustomerPartner$inboundSchema, GetCustomerPartner$outboundSchema, GetCustomerPartner$, GetCustomerType$inboundSchema, GetCustomerType$outboundSchema, GetCustomerType$, GetCustomerInterval$inboundSchema, GetCustomerInterval$outboundSchema, GetCustomerInterval$, GetCustomerDiscount$inboundSchema, GetCustomerDiscount$outboundSchema, GetCustomerDiscount$, GetCustomerResponseBody$inboundSchema, GetCustomerResponseBody$outboundSchema, GetCustomerResponseBody$;
|
|
51076
|
+
var init_getcustomer = __esm(() => {
|
|
51077
|
+
init_lib();
|
|
51078
|
+
GetCustomerType = {
|
|
51079
|
+
Percentage: "percentage",
|
|
51080
|
+
Flat: "flat"
|
|
51081
|
+
};
|
|
51082
|
+
GetCustomerInterval = {
|
|
51083
|
+
Month: "month",
|
|
51084
|
+
Year: "year"
|
|
51085
|
+
};
|
|
51086
|
+
GetCustomerRequest$inboundSchema = objectType({
|
|
51087
|
+
id: stringType(),
|
|
51088
|
+
includeExpandedFields: booleanType().optional()
|
|
51089
|
+
});
|
|
51090
|
+
GetCustomerRequest$outboundSchema = objectType({
|
|
51091
|
+
id: stringType(),
|
|
51092
|
+
includeExpandedFields: booleanType().optional()
|
|
51093
|
+
});
|
|
51094
|
+
((GetCustomerRequest$) => {
|
|
51095
|
+
GetCustomerRequest$.inboundSchema = GetCustomerRequest$inboundSchema;
|
|
51096
|
+
GetCustomerRequest$.outboundSchema = GetCustomerRequest$outboundSchema;
|
|
51097
|
+
})(GetCustomerRequest$ ||= {});
|
|
51098
|
+
GetCustomerLink$inboundSchema = objectType({
|
|
51099
|
+
id: stringType(),
|
|
51100
|
+
domain: stringType(),
|
|
51101
|
+
key: stringType(),
|
|
51102
|
+
shortLink: stringType(),
|
|
51103
|
+
programId: nullableType(stringType())
|
|
51104
|
+
});
|
|
51105
|
+
GetCustomerLink$outboundSchema = objectType({
|
|
51106
|
+
id: stringType(),
|
|
51107
|
+
domain: stringType(),
|
|
51108
|
+
key: stringType(),
|
|
51109
|
+
shortLink: stringType(),
|
|
51110
|
+
programId: nullableType(stringType())
|
|
51111
|
+
});
|
|
51112
|
+
((GetCustomerLink$) => {
|
|
51113
|
+
GetCustomerLink$.inboundSchema = GetCustomerLink$inboundSchema;
|
|
51114
|
+
GetCustomerLink$.outboundSchema = GetCustomerLink$outboundSchema;
|
|
51115
|
+
})(GetCustomerLink$ ||= {});
|
|
51116
|
+
GetCustomerPartner$inboundSchema = objectType({
|
|
51117
|
+
id: stringType(),
|
|
51118
|
+
name: stringType(),
|
|
51119
|
+
email: stringType(),
|
|
51120
|
+
image: nullableType(stringType()).optional()
|
|
51121
|
+
});
|
|
51122
|
+
GetCustomerPartner$outboundSchema = objectType({
|
|
51123
|
+
id: stringType(),
|
|
51124
|
+
name: stringType(),
|
|
51125
|
+
email: stringType(),
|
|
51126
|
+
image: nullableType(stringType()).optional()
|
|
51127
|
+
});
|
|
51128
|
+
((GetCustomerPartner$) => {
|
|
51129
|
+
GetCustomerPartner$.inboundSchema = GetCustomerPartner$inboundSchema;
|
|
51130
|
+
GetCustomerPartner$.outboundSchema = GetCustomerPartner$outboundSchema;
|
|
51131
|
+
})(GetCustomerPartner$ ||= {});
|
|
51132
|
+
GetCustomerType$inboundSchema = nativeEnumType(GetCustomerType);
|
|
51133
|
+
GetCustomerType$outboundSchema = GetCustomerType$inboundSchema;
|
|
51134
|
+
((GetCustomerType$) => {
|
|
51135
|
+
GetCustomerType$.inboundSchema = GetCustomerType$inboundSchema;
|
|
51136
|
+
GetCustomerType$.outboundSchema = GetCustomerType$outboundSchema;
|
|
51137
|
+
})(GetCustomerType$ ||= {});
|
|
51138
|
+
GetCustomerInterval$inboundSchema = nativeEnumType(GetCustomerInterval);
|
|
51139
|
+
GetCustomerInterval$outboundSchema = GetCustomerInterval$inboundSchema;
|
|
51140
|
+
((GetCustomerInterval$) => {
|
|
51141
|
+
GetCustomerInterval$.inboundSchema = GetCustomerInterval$inboundSchema;
|
|
51142
|
+
GetCustomerInterval$.outboundSchema = GetCustomerInterval$outboundSchema;
|
|
51143
|
+
})(GetCustomerInterval$ ||= {});
|
|
51144
|
+
GetCustomerDiscount$inboundSchema = objectType({
|
|
50773
51145
|
id: stringType(),
|
|
50774
51146
|
couponId: nullableType(stringType()),
|
|
50775
51147
|
couponTestId: nullableType(stringType()),
|
|
@@ -50822,7 +51194,7 @@ var init_getcustomer = __esm(() => {
|
|
|
50822
51194
|
});
|
|
50823
51195
|
|
|
50824
51196
|
// src/models/operations/getcustomers.ts
|
|
50825
|
-
var Type2, GetCustomersInterval, GetCustomersRequest$inboundSchema, GetCustomersRequest$outboundSchema, GetCustomersRequest$, Link$inboundSchema2, Link$outboundSchema2, Link$2,
|
|
51197
|
+
var Type2, GetCustomersInterval, GetCustomersRequest$inboundSchema, GetCustomersRequest$outboundSchema, GetCustomersRequest$, Link$inboundSchema2, Link$outboundSchema2, Link$2, GetCustomersPartner$inboundSchema, GetCustomersPartner$outboundSchema, GetCustomersPartner$, Type$inboundSchema2, Type$outboundSchema2, Type$2, GetCustomersInterval$inboundSchema, GetCustomersInterval$outboundSchema, GetCustomersInterval$, Discount$inboundSchema2, Discount$outboundSchema2, Discount$2, GetCustomersResponseBody$inboundSchema, GetCustomersResponseBody$outboundSchema, GetCustomersResponseBody$;
|
|
50826
51198
|
var init_getcustomers = __esm(() => {
|
|
50827
51199
|
init_lib();
|
|
50828
51200
|
Type2 = {
|
|
@@ -50865,22 +51237,22 @@ var init_getcustomers = __esm(() => {
|
|
|
50865
51237
|
Link$.inboundSchema = Link$inboundSchema2;
|
|
50866
51238
|
Link$.outboundSchema = Link$outboundSchema2;
|
|
50867
51239
|
})(Link$2 ||= {});
|
|
50868
|
-
|
|
51240
|
+
GetCustomersPartner$inboundSchema = objectType({
|
|
50869
51241
|
id: stringType(),
|
|
50870
51242
|
name: stringType(),
|
|
50871
51243
|
email: stringType(),
|
|
50872
51244
|
image: nullableType(stringType()).optional()
|
|
50873
51245
|
});
|
|
50874
|
-
|
|
51246
|
+
GetCustomersPartner$outboundSchema = objectType({
|
|
50875
51247
|
id: stringType(),
|
|
50876
51248
|
name: stringType(),
|
|
50877
51249
|
email: stringType(),
|
|
50878
51250
|
image: nullableType(stringType()).optional()
|
|
50879
51251
|
});
|
|
50880
|
-
((
|
|
50881
|
-
|
|
50882
|
-
|
|
50883
|
-
})(
|
|
51252
|
+
((GetCustomersPartner$) => {
|
|
51253
|
+
GetCustomersPartner$.inboundSchema = GetCustomersPartner$inboundSchema;
|
|
51254
|
+
GetCustomersPartner$.outboundSchema = GetCustomersPartner$outboundSchema;
|
|
51255
|
+
})(GetCustomersPartner$ ||= {});
|
|
50884
51256
|
Type$inboundSchema2 = nativeEnumType(Type2);
|
|
50885
51257
|
Type$outboundSchema2 = Type$inboundSchema2;
|
|
50886
51258
|
((Type$) => {
|
|
@@ -50924,7 +51296,7 @@ var init_getcustomers = __esm(() => {
|
|
|
50924
51296
|
country: nullableType(stringType()).optional(),
|
|
50925
51297
|
createdAt: stringType(),
|
|
50926
51298
|
link: nullableType(lazyType(() => Link$inboundSchema2)).optional(),
|
|
50927
|
-
partner: nullableType(lazyType(() =>
|
|
51299
|
+
partner: nullableType(lazyType(() => GetCustomersPartner$inboundSchema)).optional(),
|
|
50928
51300
|
discount: nullableType(lazyType(() => Discount$inboundSchema2)).optional()
|
|
50929
51301
|
});
|
|
50930
51302
|
GetCustomersResponseBody$outboundSchema = objectType({
|
|
@@ -50936,7 +51308,7 @@ var init_getcustomers = __esm(() => {
|
|
|
50936
51308
|
country: nullableType(stringType()).optional(),
|
|
50937
51309
|
createdAt: stringType(),
|
|
50938
51310
|
link: nullableType(lazyType(() => Link$outboundSchema2)).optional(),
|
|
50939
|
-
partner: nullableType(lazyType(() =>
|
|
51311
|
+
partner: nullableType(lazyType(() => GetCustomersPartner$outboundSchema)).optional(),
|
|
50940
51312
|
discount: nullableType(lazyType(() => Discount$outboundSchema2)).optional()
|
|
50941
51313
|
});
|
|
50942
51314
|
((GetCustomersResponseBody$) => {
|
|
@@ -52434,6 +52806,62 @@ var init_updatelink = __esm(() => {
|
|
|
52434
52806
|
})(UpdateLinkRequest$ ||= {});
|
|
52435
52807
|
});
|
|
52436
52808
|
|
|
52809
|
+
// src/models/operations/updatepartnersale.ts
|
|
52810
|
+
var UpdatePartnerSaleStatus, UpdatePartnerSaleRequestBody$inboundSchema, UpdatePartnerSaleRequestBody$outboundSchema, UpdatePartnerSaleRequestBody$, UpdatePartnerSaleStatus$inboundSchema, UpdatePartnerSaleStatus$outboundSchema, UpdatePartnerSaleStatus$, UpdatePartnerSaleResponseBody$inboundSchema, UpdatePartnerSaleResponseBody$outboundSchema, UpdatePartnerSaleResponseBody$;
|
|
52811
|
+
var init_updatepartnersale = __esm(() => {
|
|
52812
|
+
init_lib();
|
|
52813
|
+
UpdatePartnerSaleStatus = {
|
|
52814
|
+
Pending: "pending",
|
|
52815
|
+
Processed: "processed",
|
|
52816
|
+
Paid: "paid",
|
|
52817
|
+
Refunded: "refunded",
|
|
52818
|
+
Duplicate: "duplicate",
|
|
52819
|
+
Fraud: "fraud"
|
|
52820
|
+
};
|
|
52821
|
+
UpdatePartnerSaleRequestBody$inboundSchema = objectType({
|
|
52822
|
+
programId: stringType(),
|
|
52823
|
+
invoiceId: stringType(),
|
|
52824
|
+
amount: numberType()
|
|
52825
|
+
});
|
|
52826
|
+
UpdatePartnerSaleRequestBody$outboundSchema = objectType({
|
|
52827
|
+
programId: stringType(),
|
|
52828
|
+
invoiceId: stringType(),
|
|
52829
|
+
amount: numberType()
|
|
52830
|
+
});
|
|
52831
|
+
((UpdatePartnerSaleRequestBody$) => {
|
|
52832
|
+
UpdatePartnerSaleRequestBody$.inboundSchema = UpdatePartnerSaleRequestBody$inboundSchema;
|
|
52833
|
+
UpdatePartnerSaleRequestBody$.outboundSchema = UpdatePartnerSaleRequestBody$outboundSchema;
|
|
52834
|
+
})(UpdatePartnerSaleRequestBody$ ||= {});
|
|
52835
|
+
UpdatePartnerSaleStatus$inboundSchema = nativeEnumType(UpdatePartnerSaleStatus);
|
|
52836
|
+
UpdatePartnerSaleStatus$outboundSchema = UpdatePartnerSaleStatus$inboundSchema;
|
|
52837
|
+
((UpdatePartnerSaleStatus$) => {
|
|
52838
|
+
UpdatePartnerSaleStatus$.inboundSchema = UpdatePartnerSaleStatus$inboundSchema;
|
|
52839
|
+
UpdatePartnerSaleStatus$.outboundSchema = UpdatePartnerSaleStatus$outboundSchema;
|
|
52840
|
+
})(UpdatePartnerSaleStatus$ ||= {});
|
|
52841
|
+
UpdatePartnerSaleResponseBody$inboundSchema = objectType({
|
|
52842
|
+
id: stringType(),
|
|
52843
|
+
amount: numberType(),
|
|
52844
|
+
earnings: numberType(),
|
|
52845
|
+
currency: stringType(),
|
|
52846
|
+
status: UpdatePartnerSaleStatus$inboundSchema,
|
|
52847
|
+
createdAt: stringType(),
|
|
52848
|
+
updatedAt: stringType()
|
|
52849
|
+
});
|
|
52850
|
+
UpdatePartnerSaleResponseBody$outboundSchema = objectType({
|
|
52851
|
+
id: stringType(),
|
|
52852
|
+
amount: numberType(),
|
|
52853
|
+
earnings: numberType(),
|
|
52854
|
+
currency: stringType(),
|
|
52855
|
+
status: UpdatePartnerSaleStatus$outboundSchema,
|
|
52856
|
+
createdAt: stringType(),
|
|
52857
|
+
updatedAt: stringType()
|
|
52858
|
+
});
|
|
52859
|
+
((UpdatePartnerSaleResponseBody$) => {
|
|
52860
|
+
UpdatePartnerSaleResponseBody$.inboundSchema = UpdatePartnerSaleResponseBody$inboundSchema;
|
|
52861
|
+
UpdatePartnerSaleResponseBody$.outboundSchema = UpdatePartnerSaleResponseBody$outboundSchema;
|
|
52862
|
+
})(UpdatePartnerSaleResponseBody$ ||= {});
|
|
52863
|
+
});
|
|
52864
|
+
|
|
52437
52865
|
// src/models/operations/updatetag.ts
|
|
52438
52866
|
var UpdateTagColor, UpdateTagColor$inboundSchema, UpdateTagColor$outboundSchema, UpdateTagColor$, UpdateTagRequestBody$inboundSchema, UpdateTagRequestBody$outboundSchema, UpdateTagRequestBody$, UpdateTagRequest$inboundSchema, UpdateTagRequest$outboundSchema, UpdateTagRequest$;
|
|
52439
52867
|
var init_updatetag = __esm(() => {
|
|
@@ -52671,7 +53099,6 @@ var init_upsertpartnerlink = __esm(() => {
|
|
|
52671
53099
|
UpsertPartnerLinkLinkProps$inboundSchema = objectType({
|
|
52672
53100
|
externalId: nullableType(stringType()).optional(),
|
|
52673
53101
|
tenantId: nullableType(stringType()).optional(),
|
|
52674
|
-
partnerId: nullableType(stringType()).optional(),
|
|
52675
53102
|
prefix: stringType().optional(),
|
|
52676
53103
|
archived: booleanType().optional(),
|
|
52677
53104
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
@@ -52708,7 +53135,6 @@ var init_upsertpartnerlink = __esm(() => {
|
|
|
52708
53135
|
UpsertPartnerLinkLinkProps$outboundSchema = objectType({
|
|
52709
53136
|
externalId: nullableType(stringType()).optional(),
|
|
52710
53137
|
tenantId: nullableType(stringType()).optional(),
|
|
52711
|
-
partnerId: nullableType(stringType()).optional(),
|
|
52712
53138
|
prefix: stringType().optional(),
|
|
52713
53139
|
archived: booleanType().optional(),
|
|
52714
53140
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
@@ -52777,11 +53203,11 @@ var init_operations = __esm(() => {
|
|
|
52777
53203
|
init_bulkupdatelinks();
|
|
52778
53204
|
init_createcustomer();
|
|
52779
53205
|
init_createdomain();
|
|
52780
|
-
init_createembedtoken();
|
|
52781
53206
|
init_createfolder();
|
|
52782
53207
|
init_createlink();
|
|
52783
53208
|
init_createpartner();
|
|
52784
53209
|
init_createpartnerlink();
|
|
53210
|
+
init_createreferralsembedtoken();
|
|
52785
53211
|
init_createtag();
|
|
52786
53212
|
init_deletecustomer();
|
|
52787
53213
|
init_deletedomain();
|
|
@@ -52808,6 +53234,7 @@ var init_operations = __esm(() => {
|
|
|
52808
53234
|
init_updatedomain();
|
|
52809
53235
|
init_updatefolder();
|
|
52810
53236
|
init_updatelink();
|
|
53237
|
+
init_updatepartnersale();
|
|
52811
53238
|
init_updatetag();
|
|
52812
53239
|
init_updateworkspace();
|
|
52813
53240
|
init_upsertlink();
|
|
@@ -54131,18 +54558,18 @@ Update a domain for the authenticated workspace.`,
|
|
|
54131
54558
|
};
|
|
54132
54559
|
});
|
|
54133
54560
|
|
|
54134
|
-
// src/funcs/
|
|
54135
|
-
function
|
|
54561
|
+
// src/funcs/embedTokensReferrals.ts
|
|
54562
|
+
function embedTokensReferrals(client, request, options) {
|
|
54136
54563
|
return new APIPromise($do11(client, request, options));
|
|
54137
54564
|
}
|
|
54138
54565
|
async function $do11(client, request, options) {
|
|
54139
|
-
const parsed = safeParse(request, (value) =>
|
|
54566
|
+
const parsed = safeParse(request, (value) => CreateReferralsEmbedTokenRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
54140
54567
|
if (!parsed.ok) {
|
|
54141
54568
|
return [parsed, { status: "invalid" }];
|
|
54142
54569
|
}
|
|
54143
54570
|
const payload = parsed.value;
|
|
54144
54571
|
const body = payload === undefined ? null : encodeJSON("body", payload, { explode: true });
|
|
54145
|
-
const path = pathToFunc("/tokens/embed")();
|
|
54572
|
+
const path = pathToFunc("/tokens/embed/referrals")();
|
|
54146
54573
|
const headers = new Headers(compactMap({
|
|
54147
54574
|
"Content-Type": "application/json",
|
|
54148
54575
|
Accept: "application/json"
|
|
@@ -54152,7 +54579,7 @@ async function $do11(client, request, options) {
|
|
|
54152
54579
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
54153
54580
|
const context = {
|
|
54154
54581
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
54155
|
-
operationID: "
|
|
54582
|
+
operationID: "createReferralsEmbedToken",
|
|
54156
54583
|
oAuth2Scopes: [],
|
|
54157
54584
|
resolvedSecurity: requestSecurity,
|
|
54158
54585
|
securitySource: client._options.token,
|
|
@@ -54197,13 +54624,13 @@ async function $do11(client, request, options) {
|
|
|
54197
54624
|
const responseFields = {
|
|
54198
54625
|
HttpMeta: { Response: response, Request: req }
|
|
54199
54626
|
};
|
|
54200
|
-
const [result] = await match(json(201,
|
|
54627
|
+
const [result] = await match(json(201, CreateReferralsEmbedTokenResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
54201
54628
|
if (!result.ok) {
|
|
54202
54629
|
return [result, { status: "complete", request: req, response }];
|
|
54203
54630
|
}
|
|
54204
54631
|
return [result, { status: "complete", request: req, response }];
|
|
54205
54632
|
}
|
|
54206
|
-
var
|
|
54633
|
+
var init_embedTokensReferrals = __esm(() => {
|
|
54207
54634
|
init_encodings();
|
|
54208
54635
|
init_matchers();
|
|
54209
54636
|
init_primitives();
|
|
@@ -54215,23 +54642,23 @@ var init_embedTokensCreate = __esm(() => {
|
|
|
54215
54642
|
init_async();
|
|
54216
54643
|
});
|
|
54217
54644
|
|
|
54218
|
-
// src/mcp-server/tools/
|
|
54219
|
-
var args11, tool$
|
|
54220
|
-
var
|
|
54221
|
-
|
|
54645
|
+
// src/mcp-server/tools/embedTokensReferrals.ts
|
|
54646
|
+
var args11, tool$embedTokensReferrals;
|
|
54647
|
+
var init_embedTokensReferrals2 = __esm(() => {
|
|
54648
|
+
init_embedTokensReferrals();
|
|
54222
54649
|
init_operations();
|
|
54223
54650
|
init_tools();
|
|
54224
54651
|
args11 = {
|
|
54225
|
-
request:
|
|
54652
|
+
request: CreateReferralsEmbedTokenRequestBody$inboundSchema.optional()
|
|
54226
54653
|
};
|
|
54227
|
-
tool$
|
|
54228
|
-
name: "embed-
|
|
54229
|
-
description: `Create a new embed token
|
|
54654
|
+
tool$embedTokensReferrals = {
|
|
54655
|
+
name: "embed-tokens_referrals",
|
|
54656
|
+
description: `Create a new referrals embed token
|
|
54230
54657
|
|
|
54231
|
-
Create a new embed token for the
|
|
54658
|
+
Create a new referrals embed token for the given partner/tenant.`,
|
|
54232
54659
|
args: args11,
|
|
54233
54660
|
tool: async (client, args12, ctx) => {
|
|
54234
|
-
const [result, apiCall] = await
|
|
54661
|
+
const [result, apiCall] = await embedTokensReferrals(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54235
54662
|
if (!result.ok) {
|
|
54236
54663
|
return {
|
|
54237
54664
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56559,11 +56986,124 @@ Create a new link for a partner that is enrolled in your program.`,
|
|
|
56559
56986
|
};
|
|
56560
56987
|
});
|
|
56561
56988
|
|
|
56562
|
-
// src/funcs/
|
|
56563
|
-
function
|
|
56989
|
+
// src/funcs/partnersUpdateSale.ts
|
|
56990
|
+
function partnersUpdateSale(client, request, options) {
|
|
56564
56991
|
return new APIPromise($do31(client, request, options));
|
|
56565
56992
|
}
|
|
56566
56993
|
async function $do31(client, request, options) {
|
|
56994
|
+
const parsed = safeParse(request, (value) => UpdatePartnerSaleRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
56995
|
+
if (!parsed.ok) {
|
|
56996
|
+
return [parsed, { status: "invalid" }];
|
|
56997
|
+
}
|
|
56998
|
+
const payload = parsed.value;
|
|
56999
|
+
const body = payload === undefined ? null : encodeJSON("body", payload, { explode: true });
|
|
57000
|
+
const path = pathToFunc("/partners/sales")();
|
|
57001
|
+
const headers = new Headers(compactMap({
|
|
57002
|
+
"Content-Type": "application/json",
|
|
57003
|
+
Accept: "application/json"
|
|
57004
|
+
}));
|
|
57005
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
57006
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
57007
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
57008
|
+
const context = {
|
|
57009
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
57010
|
+
operationID: "updatePartnerSale",
|
|
57011
|
+
oAuth2Scopes: [],
|
|
57012
|
+
resolvedSecurity: requestSecurity,
|
|
57013
|
+
securitySource: client._options.token,
|
|
57014
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
57015
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
57016
|
+
};
|
|
57017
|
+
const requestRes = client._createRequest(context, {
|
|
57018
|
+
security: requestSecurity,
|
|
57019
|
+
method: "PATCH",
|
|
57020
|
+
baseURL: options?.serverURL,
|
|
57021
|
+
path,
|
|
57022
|
+
headers,
|
|
57023
|
+
body,
|
|
57024
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
57025
|
+
}, options);
|
|
57026
|
+
if (!requestRes.ok) {
|
|
57027
|
+
return [requestRes, { status: "invalid" }];
|
|
57028
|
+
}
|
|
57029
|
+
const req = requestRes.value;
|
|
57030
|
+
const doResult = await client._do(req, {
|
|
57031
|
+
context,
|
|
57032
|
+
errorCodes: [
|
|
57033
|
+
"400",
|
|
57034
|
+
"401",
|
|
57035
|
+
"403",
|
|
57036
|
+
"404",
|
|
57037
|
+
"409",
|
|
57038
|
+
"410",
|
|
57039
|
+
"422",
|
|
57040
|
+
"429",
|
|
57041
|
+
"4XX",
|
|
57042
|
+
"500",
|
|
57043
|
+
"5XX"
|
|
57044
|
+
],
|
|
57045
|
+
retryConfig: context.retryConfig,
|
|
57046
|
+
retryCodes: context.retryCodes
|
|
57047
|
+
});
|
|
57048
|
+
if (!doResult.ok) {
|
|
57049
|
+
return [doResult, { status: "request-error", request: req }];
|
|
57050
|
+
}
|
|
57051
|
+
const response = doResult.value;
|
|
57052
|
+
const responseFields = {
|
|
57053
|
+
HttpMeta: { Response: response, Request: req }
|
|
57054
|
+
};
|
|
57055
|
+
const [result] = await match(json(200, UpdatePartnerSaleResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
57056
|
+
if (!result.ok) {
|
|
57057
|
+
return [result, { status: "complete", request: req, response }];
|
|
57058
|
+
}
|
|
57059
|
+
return [result, { status: "complete", request: req, response }];
|
|
57060
|
+
}
|
|
57061
|
+
var init_partnersUpdateSale = __esm(() => {
|
|
57062
|
+
init_encodings();
|
|
57063
|
+
init_matchers();
|
|
57064
|
+
init_primitives();
|
|
57065
|
+
init_schemas();
|
|
57066
|
+
init_security();
|
|
57067
|
+
init_url();
|
|
57068
|
+
init_errors();
|
|
57069
|
+
init_operations();
|
|
57070
|
+
init_async();
|
|
57071
|
+
});
|
|
57072
|
+
|
|
57073
|
+
// src/mcp-server/tools/partnersUpdateSale.ts
|
|
57074
|
+
var args31, tool$partnersUpdateSale;
|
|
57075
|
+
var init_partnersUpdateSale2 = __esm(() => {
|
|
57076
|
+
init_partnersUpdateSale();
|
|
57077
|
+
init_operations();
|
|
57078
|
+
init_tools();
|
|
57079
|
+
args31 = {
|
|
57080
|
+
request: UpdatePartnerSaleRequestBody$inboundSchema.optional()
|
|
57081
|
+
};
|
|
57082
|
+
tool$partnersUpdateSale = {
|
|
57083
|
+
name: "partners_update-sale",
|
|
57084
|
+
description: `Update a sale for a partner.
|
|
57085
|
+
|
|
57086
|
+
Update an existing sale amount. This is useful for handling refunds (partial or full) or fraudulent sales.`,
|
|
57087
|
+
args: args31,
|
|
57088
|
+
tool: async (client, args32, ctx) => {
|
|
57089
|
+
const [result, apiCall] = await partnersUpdateSale(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57090
|
+
if (!result.ok) {
|
|
57091
|
+
return {
|
|
57092
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57093
|
+
isError: true
|
|
57094
|
+
};
|
|
57095
|
+
}
|
|
57096
|
+
const value = result.value;
|
|
57097
|
+
return formatResult(value, apiCall);
|
|
57098
|
+
}
|
|
57099
|
+
};
|
|
57100
|
+
});
|
|
57101
|
+
|
|
57102
|
+
// src/funcs/partnersUpsertLink.ts
|
|
57103
|
+
function partnersUpsertLink(client, request, options) {
|
|
57104
|
+
return new APIPromise($do32(client, request, options));
|
|
57105
|
+
}
|
|
57106
|
+
async function $do32(client, request, options) {
|
|
56567
57107
|
const parsed = safeParse(request, (value) => UpsertPartnerLinkRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
56568
57108
|
if (!parsed.ok) {
|
|
56569
57109
|
return [parsed, { status: "invalid" }];
|
|
@@ -56645,12 +57185,12 @@ var init_partnersUpsertLink = __esm(() => {
|
|
|
56645
57185
|
});
|
|
56646
57186
|
|
|
56647
57187
|
// src/mcp-server/tools/partnersUpsertLink.ts
|
|
56648
|
-
var
|
|
57188
|
+
var args32, tool$partnersUpsertLink;
|
|
56649
57189
|
var init_partnersUpsertLink2 = __esm(() => {
|
|
56650
57190
|
init_partnersUpsertLink();
|
|
56651
57191
|
init_operations();
|
|
56652
57192
|
init_tools();
|
|
56653
|
-
|
|
57193
|
+
args32 = {
|
|
56654
57194
|
request: UpsertPartnerLinkRequestBody$inboundSchema.optional()
|
|
56655
57195
|
};
|
|
56656
57196
|
tool$partnersUpsertLink = {
|
|
@@ -56658,9 +57198,9 @@ var init_partnersUpsertLink2 = __esm(() => {
|
|
|
56658
57198
|
description: `Upsert a link for a partner
|
|
56659
57199
|
|
|
56660
57200
|
Upsert a link for a partner that is enrolled in your program. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created.`,
|
|
56661
|
-
args:
|
|
56662
|
-
tool: async (client,
|
|
56663
|
-
const [result, apiCall] = await partnersUpsertLink(client,
|
|
57201
|
+
args: args32,
|
|
57202
|
+
tool: async (client, args33, ctx) => {
|
|
57203
|
+
const [result, apiCall] = await partnersUpsertLink(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56664
57204
|
if (!result.ok) {
|
|
56665
57205
|
return {
|
|
56666
57206
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56675,9 +57215,9 @@ Upsert a link for a partner that is enrolled in your program. If a link with the
|
|
|
56675
57215
|
|
|
56676
57216
|
// src/funcs/qrCodesGet.ts
|
|
56677
57217
|
function qrCodesGet(client, request, options) {
|
|
56678
|
-
return new APIPromise($
|
|
57218
|
+
return new APIPromise($do33(client, request, options));
|
|
56679
57219
|
}
|
|
56680
|
-
async function $
|
|
57220
|
+
async function $do33(client, request, options) {
|
|
56681
57221
|
const parsed = safeParse(request, (value) => GetQRCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
56682
57222
|
if (!parsed.ok) {
|
|
56683
57223
|
return [parsed, { status: "invalid" }];
|
|
@@ -56770,12 +57310,12 @@ var init_qrCodesGet = __esm(() => {
|
|
|
56770
57310
|
});
|
|
56771
57311
|
|
|
56772
57312
|
// src/mcp-server/tools/qrCodesGet.ts
|
|
56773
|
-
var
|
|
57313
|
+
var args33, tool$qrCodesGet;
|
|
56774
57314
|
var init_qrCodesGet2 = __esm(() => {
|
|
56775
57315
|
init_qrCodesGet();
|
|
56776
57316
|
init_operations();
|
|
56777
57317
|
init_tools();
|
|
56778
|
-
|
|
57318
|
+
args33 = {
|
|
56779
57319
|
request: GetQRCodeRequest$inboundSchema
|
|
56780
57320
|
};
|
|
56781
57321
|
tool$qrCodesGet = {
|
|
@@ -56783,9 +57323,9 @@ var init_qrCodesGet2 = __esm(() => {
|
|
|
56783
57323
|
description: `Retrieve a QR code
|
|
56784
57324
|
|
|
56785
57325
|
Retrieve a QR code for a link.`,
|
|
56786
|
-
args:
|
|
56787
|
-
tool: async (client,
|
|
56788
|
-
const [result, apiCall] = await qrCodesGet(client,
|
|
57326
|
+
args: args33,
|
|
57327
|
+
tool: async (client, args34, ctx) => {
|
|
57328
|
+
const [result, apiCall] = await qrCodesGet(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56789
57329
|
if (!result.ok) {
|
|
56790
57330
|
return {
|
|
56791
57331
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56800,9 +57340,9 @@ Retrieve a QR code for a link.`,
|
|
|
56800
57340
|
|
|
56801
57341
|
// src/funcs/tagsCreate.ts
|
|
56802
57342
|
function tagsCreate(client, request, options) {
|
|
56803
|
-
return new APIPromise($
|
|
57343
|
+
return new APIPromise($do34(client, request, options));
|
|
56804
57344
|
}
|
|
56805
|
-
async function $
|
|
57345
|
+
async function $do34(client, request, options) {
|
|
56806
57346
|
const parsed = safeParse(request, (value) => CreateTagRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
56807
57347
|
if (!parsed.ok) {
|
|
56808
57348
|
return [parsed, { status: "invalid" }];
|
|
@@ -56884,12 +57424,12 @@ var init_tagsCreate = __esm(() => {
|
|
|
56884
57424
|
});
|
|
56885
57425
|
|
|
56886
57426
|
// src/mcp-server/tools/tagsCreate.ts
|
|
56887
|
-
var
|
|
57427
|
+
var args34, tool$tagsCreate;
|
|
56888
57428
|
var init_tagsCreate2 = __esm(() => {
|
|
56889
57429
|
init_tagsCreate();
|
|
56890
57430
|
init_operations();
|
|
56891
57431
|
init_tools();
|
|
56892
|
-
|
|
57432
|
+
args34 = {
|
|
56893
57433
|
request: CreateTagRequestBody$inboundSchema.optional()
|
|
56894
57434
|
};
|
|
56895
57435
|
tool$tagsCreate = {
|
|
@@ -56897,9 +57437,9 @@ var init_tagsCreate2 = __esm(() => {
|
|
|
56897
57437
|
description: `Create a new tag
|
|
56898
57438
|
|
|
56899
57439
|
Create a new tag for the authenticated workspace.`,
|
|
56900
|
-
args:
|
|
56901
|
-
tool: async (client,
|
|
56902
|
-
const [result, apiCall] = await tagsCreate(client,
|
|
57440
|
+
args: args34,
|
|
57441
|
+
tool: async (client, args35, ctx) => {
|
|
57442
|
+
const [result, apiCall] = await tagsCreate(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56903
57443
|
if (!result.ok) {
|
|
56904
57444
|
return {
|
|
56905
57445
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56914,9 +57454,9 @@ Create a new tag for the authenticated workspace.`,
|
|
|
56914
57454
|
|
|
56915
57455
|
// src/funcs/tagsDelete.ts
|
|
56916
57456
|
function tagsDelete(client, id, options) {
|
|
56917
|
-
return new APIPromise($
|
|
57457
|
+
return new APIPromise($do35(client, id, options));
|
|
56918
57458
|
}
|
|
56919
|
-
async function $
|
|
57459
|
+
async function $do35(client, id, options) {
|
|
56920
57460
|
const input = {
|
|
56921
57461
|
id
|
|
56922
57462
|
};
|
|
@@ -57005,12 +57545,12 @@ var init_tagsDelete = __esm(() => {
|
|
|
57005
57545
|
});
|
|
57006
57546
|
|
|
57007
57547
|
// src/mcp-server/tools/tagsDelete.ts
|
|
57008
|
-
var
|
|
57548
|
+
var args35, tool$tagsDelete;
|
|
57009
57549
|
var init_tagsDelete2 = __esm(() => {
|
|
57010
57550
|
init_lib();
|
|
57011
57551
|
init_tagsDelete();
|
|
57012
57552
|
init_tools();
|
|
57013
|
-
|
|
57553
|
+
args35 = {
|
|
57014
57554
|
id: stringType()
|
|
57015
57555
|
};
|
|
57016
57556
|
tool$tagsDelete = {
|
|
@@ -57018,9 +57558,9 @@ var init_tagsDelete2 = __esm(() => {
|
|
|
57018
57558
|
description: `Delete a tag
|
|
57019
57559
|
|
|
57020
57560
|
Delete a tag from the workspace. All existing links will still work, but they will no longer be associated with this tag.`,
|
|
57021
|
-
args:
|
|
57022
|
-
tool: async (client,
|
|
57023
|
-
const [result, apiCall] = await tagsDelete(client,
|
|
57561
|
+
args: args35,
|
|
57562
|
+
tool: async (client, args36, ctx) => {
|
|
57563
|
+
const [result, apiCall] = await tagsDelete(client, args36.id, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57024
57564
|
if (!result.ok) {
|
|
57025
57565
|
return {
|
|
57026
57566
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57035,9 +57575,9 @@ Delete a tag from the workspace. All existing links will still work, but they wi
|
|
|
57035
57575
|
|
|
57036
57576
|
// src/funcs/tagsList.ts
|
|
57037
57577
|
function tagsList(client, request, options) {
|
|
57038
|
-
return new APIPromise($
|
|
57578
|
+
return new APIPromise($do36(client, request, options));
|
|
57039
57579
|
}
|
|
57040
|
-
async function $
|
|
57580
|
+
async function $do36(client, request, options) {
|
|
57041
57581
|
const parsed = safeParse(request, (value) => GetTagsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
57042
57582
|
if (!parsed.ok) {
|
|
57043
57583
|
return [parsed, { status: "invalid" }];
|
|
@@ -57128,12 +57668,12 @@ var init_tagsList = __esm(() => {
|
|
|
57128
57668
|
});
|
|
57129
57669
|
|
|
57130
57670
|
// src/mcp-server/tools/tagsList.ts
|
|
57131
|
-
var
|
|
57671
|
+
var args36, tool$tagsList;
|
|
57132
57672
|
var init_tagsList2 = __esm(() => {
|
|
57133
57673
|
init_tagsList();
|
|
57134
57674
|
init_operations();
|
|
57135
57675
|
init_tools();
|
|
57136
|
-
|
|
57676
|
+
args36 = {
|
|
57137
57677
|
request: GetTagsRequest$inboundSchema.optional()
|
|
57138
57678
|
};
|
|
57139
57679
|
tool$tagsList = {
|
|
@@ -57141,9 +57681,9 @@ var init_tagsList2 = __esm(() => {
|
|
|
57141
57681
|
description: `Retrieve a list of tags
|
|
57142
57682
|
|
|
57143
57683
|
Retrieve a list of tags for the authenticated workspace.`,
|
|
57144
|
-
args:
|
|
57145
|
-
tool: async (client,
|
|
57146
|
-
const [result, apiCall] = await tagsList(client,
|
|
57684
|
+
args: args36,
|
|
57685
|
+
tool: async (client, args37, ctx) => {
|
|
57686
|
+
const [result, apiCall] = await tagsList(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57147
57687
|
if (!result.ok) {
|
|
57148
57688
|
return {
|
|
57149
57689
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57158,9 +57698,9 @@ Retrieve a list of tags for the authenticated workspace.`,
|
|
|
57158
57698
|
|
|
57159
57699
|
// src/funcs/tagsUpdate.ts
|
|
57160
57700
|
function tagsUpdate(client, id, requestBody, options) {
|
|
57161
|
-
return new APIPromise($
|
|
57701
|
+
return new APIPromise($do37(client, id, requestBody, options));
|
|
57162
57702
|
}
|
|
57163
|
-
async function $
|
|
57703
|
+
async function $do37(client, id, requestBody, options) {
|
|
57164
57704
|
const input = {
|
|
57165
57705
|
id,
|
|
57166
57706
|
requestBody
|
|
@@ -57252,13 +57792,13 @@ var init_tagsUpdate = __esm(() => {
|
|
|
57252
57792
|
});
|
|
57253
57793
|
|
|
57254
57794
|
// src/mcp-server/tools/tagsUpdate.ts
|
|
57255
|
-
var
|
|
57795
|
+
var args37, tool$tagsUpdate;
|
|
57256
57796
|
var init_tagsUpdate2 = __esm(() => {
|
|
57257
57797
|
init_lib();
|
|
57258
57798
|
init_tagsUpdate();
|
|
57259
57799
|
init_operations();
|
|
57260
57800
|
init_tools();
|
|
57261
|
-
|
|
57801
|
+
args37 = {
|
|
57262
57802
|
id: stringType(),
|
|
57263
57803
|
requestBody: UpdateTagRequestBody$inboundSchema.optional()
|
|
57264
57804
|
};
|
|
@@ -57267,9 +57807,9 @@ var init_tagsUpdate2 = __esm(() => {
|
|
|
57267
57807
|
description: `Update a tag
|
|
57268
57808
|
|
|
57269
57809
|
Update a tag in the workspace.`,
|
|
57270
|
-
args:
|
|
57271
|
-
tool: async (client,
|
|
57272
|
-
const [result, apiCall] = await tagsUpdate(client,
|
|
57810
|
+
args: args37,
|
|
57811
|
+
tool: async (client, args38, ctx) => {
|
|
57812
|
+
const [result, apiCall] = await tagsUpdate(client, args38.id, args38.requestBody, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57273
57813
|
if (!result.ok) {
|
|
57274
57814
|
return {
|
|
57275
57815
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57284,9 +57824,9 @@ Update a tag in the workspace.`,
|
|
|
57284
57824
|
|
|
57285
57825
|
// src/funcs/trackLead.ts
|
|
57286
57826
|
function trackLead(client, request, options) {
|
|
57287
|
-
return new APIPromise($
|
|
57827
|
+
return new APIPromise($do38(client, request, options));
|
|
57288
57828
|
}
|
|
57289
|
-
async function $
|
|
57829
|
+
async function $do38(client, request, options) {
|
|
57290
57830
|
const parsed = safeParse(request, (value) => TrackLeadRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
57291
57831
|
if (!parsed.ok) {
|
|
57292
57832
|
return [parsed, { status: "invalid" }];
|
|
@@ -57367,12 +57907,12 @@ var init_trackLead = __esm(() => {
|
|
|
57367
57907
|
});
|
|
57368
57908
|
|
|
57369
57909
|
// src/mcp-server/tools/trackLead.ts
|
|
57370
|
-
var
|
|
57910
|
+
var args38, tool$trackLead;
|
|
57371
57911
|
var init_trackLead2 = __esm(() => {
|
|
57372
57912
|
init_trackLead();
|
|
57373
57913
|
init_operations();
|
|
57374
57914
|
init_tools();
|
|
57375
|
-
|
|
57915
|
+
args38 = {
|
|
57376
57916
|
request: TrackLeadRequestBody$inboundSchema.optional()
|
|
57377
57917
|
};
|
|
57378
57918
|
tool$trackLead = {
|
|
@@ -57380,9 +57920,9 @@ var init_trackLead2 = __esm(() => {
|
|
|
57380
57920
|
description: `Track a lead
|
|
57381
57921
|
|
|
57382
57922
|
Track a lead for a short link.`,
|
|
57383
|
-
args:
|
|
57384
|
-
tool: async (client,
|
|
57385
|
-
const [result, apiCall] = await trackLead(client,
|
|
57923
|
+
args: args38,
|
|
57924
|
+
tool: async (client, args39, ctx) => {
|
|
57925
|
+
const [result, apiCall] = await trackLead(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57386
57926
|
if (!result.ok) {
|
|
57387
57927
|
return {
|
|
57388
57928
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57397,9 +57937,9 @@ Track a lead for a short link.`,
|
|
|
57397
57937
|
|
|
57398
57938
|
// src/funcs/trackSale.ts
|
|
57399
57939
|
function trackSale(client, request, options) {
|
|
57400
|
-
return new APIPromise($
|
|
57940
|
+
return new APIPromise($do39(client, request, options));
|
|
57401
57941
|
}
|
|
57402
|
-
async function $
|
|
57942
|
+
async function $do39(client, request, options) {
|
|
57403
57943
|
const parsed = safeParse(request, (value) => TrackSaleRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
57404
57944
|
if (!parsed.ok) {
|
|
57405
57945
|
return [parsed, { status: "invalid" }];
|
|
@@ -57480,12 +58020,12 @@ var init_trackSale = __esm(() => {
|
|
|
57480
58020
|
});
|
|
57481
58021
|
|
|
57482
58022
|
// src/mcp-server/tools/trackSale.ts
|
|
57483
|
-
var
|
|
58023
|
+
var args39, tool$trackSale;
|
|
57484
58024
|
var init_trackSale2 = __esm(() => {
|
|
57485
58025
|
init_trackSale();
|
|
57486
58026
|
init_operations();
|
|
57487
58027
|
init_tools();
|
|
57488
|
-
|
|
58028
|
+
args39 = {
|
|
57489
58029
|
request: TrackSaleRequestBody$inboundSchema.optional()
|
|
57490
58030
|
};
|
|
57491
58031
|
tool$trackSale = {
|
|
@@ -57493,9 +58033,9 @@ var init_trackSale2 = __esm(() => {
|
|
|
57493
58033
|
description: `Track a sale
|
|
57494
58034
|
|
|
57495
58035
|
Track a sale for a short link.`,
|
|
57496
|
-
args:
|
|
57497
|
-
tool: async (client,
|
|
57498
|
-
const [result, apiCall] = await trackSale(client,
|
|
58036
|
+
args: args39,
|
|
58037
|
+
tool: async (client, args40, ctx) => {
|
|
58038
|
+
const [result, apiCall] = await trackSale(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57499
58039
|
if (!result.ok) {
|
|
57500
58040
|
return {
|
|
57501
58041
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57510,9 +58050,9 @@ Track a sale for a short link.`,
|
|
|
57510
58050
|
|
|
57511
58051
|
// src/funcs/workspacesGet.ts
|
|
57512
58052
|
function workspacesGet(client, request, options) {
|
|
57513
|
-
return new APIPromise($
|
|
58053
|
+
return new APIPromise($do40(client, request, options));
|
|
57514
58054
|
}
|
|
57515
|
-
async function $
|
|
58055
|
+
async function $do40(client, request, options) {
|
|
57516
58056
|
const parsed = safeParse(request, (value) => GetWorkspaceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
57517
58057
|
if (!parsed.ok) {
|
|
57518
58058
|
return [parsed, { status: "invalid" }];
|
|
@@ -57599,12 +58139,12 @@ var init_workspacesGet = __esm(() => {
|
|
|
57599
58139
|
});
|
|
57600
58140
|
|
|
57601
58141
|
// src/mcp-server/tools/workspacesGet.ts
|
|
57602
|
-
var
|
|
58142
|
+
var args40, tool$workspacesGet;
|
|
57603
58143
|
var init_workspacesGet2 = __esm(() => {
|
|
57604
58144
|
init_workspacesGet();
|
|
57605
58145
|
init_operations();
|
|
57606
58146
|
init_tools();
|
|
57607
|
-
|
|
58147
|
+
args40 = {
|
|
57608
58148
|
request: GetWorkspaceRequest$inboundSchema
|
|
57609
58149
|
};
|
|
57610
58150
|
tool$workspacesGet = {
|
|
@@ -57612,9 +58152,9 @@ var init_workspacesGet2 = __esm(() => {
|
|
|
57612
58152
|
description: `Retrieve a workspace
|
|
57613
58153
|
|
|
57614
58154
|
Retrieve a workspace for the authenticated user.`,
|
|
57615
|
-
args:
|
|
57616
|
-
tool: async (client,
|
|
57617
|
-
const [result, apiCall] = await workspacesGet(client,
|
|
58155
|
+
args: args40,
|
|
58156
|
+
tool: async (client, args41, ctx) => {
|
|
58157
|
+
const [result, apiCall] = await workspacesGet(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57618
58158
|
if (!result.ok) {
|
|
57619
58159
|
return {
|
|
57620
58160
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57629,9 +58169,9 @@ Retrieve a workspace for the authenticated user.`,
|
|
|
57629
58169
|
|
|
57630
58170
|
// src/funcs/workspacesUpdate.ts
|
|
57631
58171
|
function workspacesUpdate(client, idOrSlug, requestBody, options) {
|
|
57632
|
-
return new APIPromise($
|
|
58172
|
+
return new APIPromise($do41(client, idOrSlug, requestBody, options));
|
|
57633
58173
|
}
|
|
57634
|
-
async function $
|
|
58174
|
+
async function $do41(client, idOrSlug, requestBody, options) {
|
|
57635
58175
|
const input = {
|
|
57636
58176
|
idOrSlug,
|
|
57637
58177
|
requestBody
|
|
@@ -57723,13 +58263,13 @@ var init_workspacesUpdate = __esm(() => {
|
|
|
57723
58263
|
});
|
|
57724
58264
|
|
|
57725
58265
|
// src/mcp-server/tools/workspacesUpdate.ts
|
|
57726
|
-
var
|
|
58266
|
+
var args41, tool$workspacesUpdate;
|
|
57727
58267
|
var init_workspacesUpdate2 = __esm(() => {
|
|
57728
58268
|
init_lib();
|
|
57729
58269
|
init_workspacesUpdate();
|
|
57730
58270
|
init_operations();
|
|
57731
58271
|
init_tools();
|
|
57732
|
-
|
|
58272
|
+
args41 = {
|
|
57733
58273
|
idOrSlug: stringType(),
|
|
57734
58274
|
requestBody: UpdateWorkspaceRequestBody$inboundSchema.optional()
|
|
57735
58275
|
};
|
|
@@ -57738,9 +58278,9 @@ var init_workspacesUpdate2 = __esm(() => {
|
|
|
57738
58278
|
description: `Update a workspace
|
|
57739
58279
|
|
|
57740
58280
|
Update a workspace by ID or slug.`,
|
|
57741
|
-
args:
|
|
57742
|
-
tool: async (client,
|
|
57743
|
-
const [result, apiCall] = await workspacesUpdate(client,
|
|
58281
|
+
args: args41,
|
|
58282
|
+
tool: async (client, args42, ctx) => {
|
|
58283
|
+
const [result, apiCall] = await workspacesUpdate(client, args42.idOrSlug, args42.requestBody, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57744
58284
|
if (!result.ok) {
|
|
57745
58285
|
return {
|
|
57746
58286
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57757,7 +58297,7 @@ Update a workspace by ID or slug.`,
|
|
|
57757
58297
|
function createMCPServer(deps) {
|
|
57758
58298
|
const server = new McpServer({
|
|
57759
58299
|
name: "Dub",
|
|
57760
|
-
version: "0.
|
|
58300
|
+
version: "0.58.0"
|
|
57761
58301
|
});
|
|
57762
58302
|
const client = new DubCore({
|
|
57763
58303
|
token: deps.token,
|
|
@@ -57765,7 +58305,8 @@ function createMCPServer(deps) {
|
|
|
57765
58305
|
serverIdx: deps.serverIdx
|
|
57766
58306
|
});
|
|
57767
58307
|
const scopes = new Set(deps.scopes ?? mcpScopes);
|
|
57768
|
-
const
|
|
58308
|
+
const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
|
|
58309
|
+
const tool = createRegisterTool(deps.logger, server, client, scopes, allowedTools);
|
|
57769
58310
|
tool(tool$linksCreate);
|
|
57770
58311
|
tool(tool$linksList);
|
|
57771
58312
|
tool(tool$linksCount);
|
|
@@ -57801,9 +58342,10 @@ function createMCPServer(deps) {
|
|
|
57801
58342
|
tool(tool$partnersCreateLink);
|
|
57802
58343
|
tool(tool$partnersUpsertLink);
|
|
57803
58344
|
tool(tool$partnersAnalytics);
|
|
58345
|
+
tool(tool$partnersUpdateSale);
|
|
57804
58346
|
tool(tool$workspacesGet);
|
|
57805
58347
|
tool(tool$workspacesUpdate);
|
|
57806
|
-
tool(tool$
|
|
58348
|
+
tool(tool$embedTokensReferrals);
|
|
57807
58349
|
tool(tool$qrCodesGet);
|
|
57808
58350
|
tool(tool$metatagsGet);
|
|
57809
58351
|
return server;
|
|
@@ -57823,7 +58365,7 @@ var init_server2 = __esm(() => {
|
|
|
57823
58365
|
init_domainsDelete2();
|
|
57824
58366
|
init_domainsList2();
|
|
57825
58367
|
init_domainsUpdate2();
|
|
57826
|
-
|
|
58368
|
+
init_embedTokensReferrals2();
|
|
57827
58369
|
init_eventsList2();
|
|
57828
58370
|
init_foldersCreate2();
|
|
57829
58371
|
init_foldersDelete2();
|
|
@@ -57843,6 +58385,7 @@ var init_server2 = __esm(() => {
|
|
|
57843
58385
|
init_partnersAnalytics2();
|
|
57844
58386
|
init_partnersCreate2();
|
|
57845
58387
|
init_partnersCreateLink2();
|
|
58388
|
+
init_partnersUpdateSale2();
|
|
57846
58389
|
init_partnersUpsertLink2();
|
|
57847
58390
|
init_qrCodesGet2();
|
|
57848
58391
|
init_tagsCreate2();
|
|
@@ -57880,6 +58423,7 @@ async function startStdio(flags) {
|
|
|
57880
58423
|
const transport = new StdioServerTransport;
|
|
57881
58424
|
const server = createMCPServer({
|
|
57882
58425
|
logger,
|
|
58426
|
+
allowedTools: flags.tool,
|
|
57883
58427
|
scopes: flags.scope,
|
|
57884
58428
|
...{ token: flags["api-token"] },
|
|
57885
58429
|
serverURL: flags["server-url"],
|
|
@@ -57898,6 +58442,7 @@ async function startSSE(flags) {
|
|
|
57898
58442
|
const app = import_express.default();
|
|
57899
58443
|
const mcpServer = createMCPServer({
|
|
57900
58444
|
logger,
|
|
58445
|
+
allowedTools: flags.tool,
|
|
57901
58446
|
scopes: flags.scope,
|
|
57902
58447
|
...{ token: flags["api-token"] },
|
|
57903
58448
|
serverURL: flags["server-url"],
|
|
@@ -58955,6 +59500,15 @@ var startCommand = tn({
|
|
|
58955
59500
|
default: "2718",
|
|
58956
59501
|
parse: (val) => coerce.number().int().gte(0).lt(65536).parse(val)
|
|
58957
59502
|
},
|
|
59503
|
+
tool: {
|
|
59504
|
+
kind: "parsed",
|
|
59505
|
+
brief: "Specify tools to mount on the server",
|
|
59506
|
+
optional: true,
|
|
59507
|
+
variadic: true,
|
|
59508
|
+
parse: (value) => {
|
|
59509
|
+
return stringType().parse(value);
|
|
59510
|
+
}
|
|
59511
|
+
},
|
|
58958
59512
|
...mcpScopes.length ? {
|
|
58959
59513
|
scope: {
|
|
58960
59514
|
kind: "enum",
|
|
@@ -59031,7 +59585,7 @@ var routes = rn({
|
|
|
59031
59585
|
var app = Ve(routes, {
|
|
59032
59586
|
name: "mcp",
|
|
59033
59587
|
versionInfo: {
|
|
59034
|
-
currentVersion: "0.
|
|
59588
|
+
currentVersion: "0.58.0"
|
|
59035
59589
|
}
|
|
59036
59590
|
});
|
|
59037
59591
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -59039,5 +59593,5 @@ export {
|
|
|
59039
59593
|
app
|
|
59040
59594
|
};
|
|
59041
59595
|
|
|
59042
|
-
//# debugId=
|
|
59596
|
+
//# debugId=7645456AE8CD627564756E2164756E21
|
|
59043
59597
|
//# sourceMappingURL=mcp-server.js.map
|