dub 0.58.2 → 0.59.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +82 -84
- package/bin/mcp-server.js.map +12 -11
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/extensions.d.ts +9 -0
- package/dist/commonjs/mcp-server/extensions.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/extensions.js +6 -0
- package/dist/commonjs/mcp-server/extensions.js.map +1 -0
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/resources.d.ts +9 -4
- package/dist/commonjs/mcp-server/resources.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/resources.js +37 -10
- package/dist/commonjs/mcp-server/resources.js.map +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +6 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.d.ts +8 -33
- package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.js +9 -28
- package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.d.ts +8 -33
- package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.js +9 -28
- package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.d.ts +8 -33
- package/dist/commonjs/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.js +9 -28
- package/dist/commonjs/models/operations/getcustomers.js.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.d.ts +8 -33
- package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.js +9 -28
- package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
- package/dist/commonjs/models/operations/updatepartnersale.d.ts +5 -0
- package/dist/commonjs/models/operations/updatepartnersale.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatepartnersale.js +2 -0
- package/dist/commonjs/models/operations/updatepartnersale.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/extensions.d.ts +9 -0
- package/dist/esm/mcp-server/extensions.d.ts.map +1 -0
- package/dist/esm/mcp-server/extensions.js +5 -0
- package/dist/esm/mcp-server/extensions.js.map +1 -0
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/resources.d.ts +9 -4
- package/dist/esm/mcp-server/resources.d.ts.map +1 -1
- package/dist/esm/mcp-server/resources.js +34 -9
- package/dist/esm/mcp-server/resources.js.map +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +6 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/models/operations/createcustomer.d.ts +8 -33
- package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/createcustomer.js +8 -27
- package/dist/esm/models/operations/createcustomer.js.map +1 -1
- package/dist/esm/models/operations/getcustomer.d.ts +8 -33
- package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomer.js +8 -27
- package/dist/esm/models/operations/getcustomer.js.map +1 -1
- package/dist/esm/models/operations/getcustomers.d.ts +8 -33
- package/dist/esm/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomers.js +8 -27
- package/dist/esm/models/operations/getcustomers.js.map +1 -1
- package/dist/esm/models/operations/updatecustomer.d.ts +8 -33
- package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecustomer.js +8 -27
- package/dist/esm/models/operations/updatecustomer.js.map +1 -1
- package/dist/esm/models/operations/updatepartnersale.d.ts +5 -0
- package/dist/esm/models/operations/updatepartnersale.d.ts.map +1 -1
- package/dist/esm/models/operations/updatepartnersale.js +2 -0
- package/dist/esm/models/operations/updatepartnersale.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/extensions.ts +13 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/resources.ts +75 -14
- package/src/mcp-server/server.ts +16 -1
- package/src/models/operations/createcustomer.ts +16 -43
- package/src/models/operations/getcustomer.ts +16 -43
- package/src/models/operations/getcustomers.ts +16 -43
- package/src/models/operations/updatecustomer.ts +16 -43
- package/src/models/operations/updatepartnersale.ts +7 -0
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.59.1",
|
|
34251
|
+
genVersion: "2.545.4",
|
|
34252
|
+
userAgent: "speakeasy-sdk/typescript 0.59.1 2.545.4 0.0.1 dub"
|
|
34253
34253
|
};
|
|
34254
34254
|
});
|
|
34255
34255
|
|
|
@@ -35069,6 +35069,38 @@ var init_shared = __esm(() => {
|
|
|
35069
35069
|
base64Schema = stringType().base64();
|
|
35070
35070
|
});
|
|
35071
35071
|
|
|
35072
|
+
// src/mcp-server/resources.ts
|
|
35073
|
+
function createRegisterResource(logger, server, sdk, allowedScopes) {
|
|
35074
|
+
return (resource) => {
|
|
35075
|
+
const scopes = resource.scopes ?? [];
|
|
35076
|
+
if (!scopes.every((s) => allowedScopes.has(s))) {
|
|
35077
|
+
return;
|
|
35078
|
+
}
|
|
35079
|
+
const metadata = {
|
|
35080
|
+
...resource.metadata,
|
|
35081
|
+
description: resource.description
|
|
35082
|
+
};
|
|
35083
|
+
server.resource(resource.name, resource.resource, metadata, async (uri, ctx) => resource.read(sdk, uri, ctx));
|
|
35084
|
+
logger.debug("Registered resource", { name: resource.name });
|
|
35085
|
+
};
|
|
35086
|
+
}
|
|
35087
|
+
function createRegisterResourceTemplate(logger, server, sdk, allowedScopes) {
|
|
35088
|
+
return (resource) => {
|
|
35089
|
+
const scopes = resource.scopes ?? [];
|
|
35090
|
+
if (!scopes.every((s) => allowedScopes.has(s))) {
|
|
35091
|
+
return;
|
|
35092
|
+
}
|
|
35093
|
+
const metadata = {
|
|
35094
|
+
...resource.metadata,
|
|
35095
|
+
description: resource.description
|
|
35096
|
+
};
|
|
35097
|
+
server.resource(resource.name, resource.resource, metadata, async (uri, vars, ctx) => resource.read(sdk, uri, vars, ctx));
|
|
35098
|
+
logger.debug("Registered resource template", { name: resource.name });
|
|
35099
|
+
};
|
|
35100
|
+
}
|
|
35101
|
+
var init_resources = () => {
|
|
35102
|
+
};
|
|
35103
|
+
|
|
35072
35104
|
// src/mcp-server/tools.ts
|
|
35073
35105
|
async function formatResult(value, init) {
|
|
35074
35106
|
if (typeof value === "undefined") {
|
|
@@ -49297,17 +49329,13 @@ var init_bulkupdatelinks = __esm(() => {
|
|
|
49297
49329
|
});
|
|
49298
49330
|
|
|
49299
49331
|
// src/models/operations/createcustomer.ts
|
|
49300
|
-
var CreateCustomerType,
|
|
49332
|
+
var CreateCustomerType, CreateCustomerRequestBody$inboundSchema, CreateCustomerRequestBody$outboundSchema, CreateCustomerRequestBody$, CreateCustomerLink$inboundSchema, CreateCustomerLink$outboundSchema, CreateCustomerLink$, CreateCustomerPartner$inboundSchema, CreateCustomerPartner$outboundSchema, CreateCustomerPartner$, CreateCustomerType$inboundSchema, CreateCustomerType$outboundSchema, CreateCustomerType$, CreateCustomerDiscount$inboundSchema, CreateCustomerDiscount$outboundSchema, CreateCustomerDiscount$, CreateCustomerResponseBody$inboundSchema, CreateCustomerResponseBody$outboundSchema, CreateCustomerResponseBody$;
|
|
49301
49333
|
var init_createcustomer = __esm(() => {
|
|
49302
49334
|
init_lib();
|
|
49303
49335
|
CreateCustomerType = {
|
|
49304
49336
|
Percentage: "percentage",
|
|
49305
49337
|
Flat: "flat"
|
|
49306
49338
|
};
|
|
49307
|
-
CreateCustomerInterval = {
|
|
49308
|
-
Month: "month",
|
|
49309
|
-
Year: "year"
|
|
49310
|
-
};
|
|
49311
49339
|
CreateCustomerRequestBody$inboundSchema = objectType({
|
|
49312
49340
|
email: nullableType(stringType()).optional(),
|
|
49313
49341
|
name: nullableType(stringType()).optional(),
|
|
@@ -49364,29 +49392,23 @@ var init_createcustomer = __esm(() => {
|
|
|
49364
49392
|
CreateCustomerType$.inboundSchema = CreateCustomerType$inboundSchema;
|
|
49365
49393
|
CreateCustomerType$.outboundSchema = CreateCustomerType$outboundSchema;
|
|
49366
49394
|
})(CreateCustomerType$ ||= {});
|
|
49367
|
-
CreateCustomerInterval$inboundSchema = nativeEnumType(CreateCustomerInterval);
|
|
49368
|
-
CreateCustomerInterval$outboundSchema = CreateCustomerInterval$inboundSchema;
|
|
49369
|
-
((CreateCustomerInterval$) => {
|
|
49370
|
-
CreateCustomerInterval$.inboundSchema = CreateCustomerInterval$inboundSchema;
|
|
49371
|
-
CreateCustomerInterval$.outboundSchema = CreateCustomerInterval$outboundSchema;
|
|
49372
|
-
})(CreateCustomerInterval$ ||= {});
|
|
49373
49395
|
CreateCustomerDiscount$inboundSchema = objectType({
|
|
49374
49396
|
id: stringType(),
|
|
49375
|
-
couponId: nullableType(stringType()),
|
|
49376
|
-
couponTestId: nullableType(stringType()),
|
|
49377
49397
|
amount: numberType(),
|
|
49378
49398
|
type: CreateCustomerType$inboundSchema,
|
|
49379
|
-
|
|
49380
|
-
|
|
49399
|
+
maxDuration: nullableType(numberType()),
|
|
49400
|
+
couponId: nullableType(stringType()),
|
|
49401
|
+
couponTestId: nullableType(stringType()),
|
|
49402
|
+
partnersCount: nullableType(numberType()).optional()
|
|
49381
49403
|
});
|
|
49382
49404
|
CreateCustomerDiscount$outboundSchema = objectType({
|
|
49383
49405
|
id: stringType(),
|
|
49384
|
-
couponId: nullableType(stringType()),
|
|
49385
|
-
couponTestId: nullableType(stringType()),
|
|
49386
49406
|
amount: numberType(),
|
|
49387
49407
|
type: CreateCustomerType$outboundSchema,
|
|
49388
|
-
|
|
49389
|
-
|
|
49408
|
+
maxDuration: nullableType(numberType()),
|
|
49409
|
+
couponId: nullableType(stringType()),
|
|
49410
|
+
couponTestId: nullableType(stringType()),
|
|
49411
|
+
partnersCount: nullableType(numberType()).optional()
|
|
49390
49412
|
});
|
|
49391
49413
|
((CreateCustomerDiscount$) => {
|
|
49392
49414
|
CreateCustomerDiscount$.inboundSchema = CreateCustomerDiscount$inboundSchema;
|
|
@@ -50744,17 +50766,13 @@ var init_deletetag = __esm(() => {
|
|
|
50744
50766
|
});
|
|
50745
50767
|
|
|
50746
50768
|
// src/models/operations/getcustomer.ts
|
|
50747
|
-
var GetCustomerType,
|
|
50769
|
+
var GetCustomerType, GetCustomerRequest$inboundSchema, GetCustomerRequest$outboundSchema, GetCustomerRequest$, GetCustomerLink$inboundSchema, GetCustomerLink$outboundSchema, GetCustomerLink$, GetCustomerPartner$inboundSchema, GetCustomerPartner$outboundSchema, GetCustomerPartner$, GetCustomerType$inboundSchema, GetCustomerType$outboundSchema, GetCustomerType$, GetCustomerDiscount$inboundSchema, GetCustomerDiscount$outboundSchema, GetCustomerDiscount$, GetCustomerResponseBody$inboundSchema, GetCustomerResponseBody$outboundSchema, GetCustomerResponseBody$;
|
|
50748
50770
|
var init_getcustomer = __esm(() => {
|
|
50749
50771
|
init_lib();
|
|
50750
50772
|
GetCustomerType = {
|
|
50751
50773
|
Percentage: "percentage",
|
|
50752
50774
|
Flat: "flat"
|
|
50753
50775
|
};
|
|
50754
|
-
GetCustomerInterval = {
|
|
50755
|
-
Month: "month",
|
|
50756
|
-
Year: "year"
|
|
50757
|
-
};
|
|
50758
50776
|
GetCustomerRequest$inboundSchema = objectType({
|
|
50759
50777
|
id: stringType(),
|
|
50760
50778
|
includeExpandedFields: booleanType().optional()
|
|
@@ -50807,29 +50825,23 @@ var init_getcustomer = __esm(() => {
|
|
|
50807
50825
|
GetCustomerType$.inboundSchema = GetCustomerType$inboundSchema;
|
|
50808
50826
|
GetCustomerType$.outboundSchema = GetCustomerType$outboundSchema;
|
|
50809
50827
|
})(GetCustomerType$ ||= {});
|
|
50810
|
-
GetCustomerInterval$inboundSchema = nativeEnumType(GetCustomerInterval);
|
|
50811
|
-
GetCustomerInterval$outboundSchema = GetCustomerInterval$inboundSchema;
|
|
50812
|
-
((GetCustomerInterval$) => {
|
|
50813
|
-
GetCustomerInterval$.inboundSchema = GetCustomerInterval$inboundSchema;
|
|
50814
|
-
GetCustomerInterval$.outboundSchema = GetCustomerInterval$outboundSchema;
|
|
50815
|
-
})(GetCustomerInterval$ ||= {});
|
|
50816
50828
|
GetCustomerDiscount$inboundSchema = objectType({
|
|
50817
50829
|
id: stringType(),
|
|
50818
|
-
couponId: nullableType(stringType()),
|
|
50819
|
-
couponTestId: nullableType(stringType()),
|
|
50820
50830
|
amount: numberType(),
|
|
50821
50831
|
type: GetCustomerType$inboundSchema,
|
|
50822
|
-
|
|
50823
|
-
|
|
50832
|
+
maxDuration: nullableType(numberType()),
|
|
50833
|
+
couponId: nullableType(stringType()),
|
|
50834
|
+
couponTestId: nullableType(stringType()),
|
|
50835
|
+
partnersCount: nullableType(numberType()).optional()
|
|
50824
50836
|
});
|
|
50825
50837
|
GetCustomerDiscount$outboundSchema = objectType({
|
|
50826
50838
|
id: stringType(),
|
|
50827
|
-
couponId: nullableType(stringType()),
|
|
50828
|
-
couponTestId: nullableType(stringType()),
|
|
50829
50839
|
amount: numberType(),
|
|
50830
50840
|
type: GetCustomerType$outboundSchema,
|
|
50831
|
-
|
|
50832
|
-
|
|
50841
|
+
maxDuration: nullableType(numberType()),
|
|
50842
|
+
couponId: nullableType(stringType()),
|
|
50843
|
+
couponTestId: nullableType(stringType()),
|
|
50844
|
+
partnersCount: nullableType(numberType()).optional()
|
|
50833
50845
|
});
|
|
50834
50846
|
((GetCustomerDiscount$) => {
|
|
50835
50847
|
GetCustomerDiscount$.inboundSchema = GetCustomerDiscount$inboundSchema;
|
|
@@ -50866,17 +50878,13 @@ var init_getcustomer = __esm(() => {
|
|
|
50866
50878
|
});
|
|
50867
50879
|
|
|
50868
50880
|
// src/models/operations/getcustomers.ts
|
|
50869
|
-
var Type2,
|
|
50881
|
+
var Type2, GetCustomersRequest$inboundSchema, GetCustomersRequest$outboundSchema, GetCustomersRequest$, Link$inboundSchema2, Link$outboundSchema2, Link$2, GetCustomersPartner$inboundSchema, GetCustomersPartner$outboundSchema, GetCustomersPartner$, Type$inboundSchema2, Type$outboundSchema2, Type$2, Discount$inboundSchema, Discount$outboundSchema, Discount$, GetCustomersResponseBody$inboundSchema, GetCustomersResponseBody$outboundSchema, GetCustomersResponseBody$;
|
|
50870
50882
|
var init_getcustomers = __esm(() => {
|
|
50871
50883
|
init_lib();
|
|
50872
50884
|
Type2 = {
|
|
50873
50885
|
Percentage: "percentage",
|
|
50874
50886
|
Flat: "flat"
|
|
50875
50887
|
};
|
|
50876
|
-
GetCustomersInterval = {
|
|
50877
|
-
Month: "month",
|
|
50878
|
-
Year: "year"
|
|
50879
|
-
};
|
|
50880
50888
|
GetCustomersRequest$inboundSchema = objectType({
|
|
50881
50889
|
email: stringType().optional(),
|
|
50882
50890
|
externalId: stringType().optional(),
|
|
@@ -50931,29 +50939,23 @@ var init_getcustomers = __esm(() => {
|
|
|
50931
50939
|
Type$.inboundSchema = Type$inboundSchema2;
|
|
50932
50940
|
Type$.outboundSchema = Type$outboundSchema2;
|
|
50933
50941
|
})(Type$2 ||= {});
|
|
50934
|
-
GetCustomersInterval$inboundSchema = nativeEnumType(GetCustomersInterval);
|
|
50935
|
-
GetCustomersInterval$outboundSchema = GetCustomersInterval$inboundSchema;
|
|
50936
|
-
((GetCustomersInterval$) => {
|
|
50937
|
-
GetCustomersInterval$.inboundSchema = GetCustomersInterval$inboundSchema;
|
|
50938
|
-
GetCustomersInterval$.outboundSchema = GetCustomersInterval$outboundSchema;
|
|
50939
|
-
})(GetCustomersInterval$ ||= {});
|
|
50940
50942
|
Discount$inboundSchema = objectType({
|
|
50941
50943
|
id: stringType(),
|
|
50942
|
-
couponId: nullableType(stringType()),
|
|
50943
|
-
couponTestId: nullableType(stringType()),
|
|
50944
50944
|
amount: numberType(),
|
|
50945
50945
|
type: Type$inboundSchema2,
|
|
50946
|
-
|
|
50947
|
-
|
|
50946
|
+
maxDuration: nullableType(numberType()),
|
|
50947
|
+
couponId: nullableType(stringType()),
|
|
50948
|
+
couponTestId: nullableType(stringType()),
|
|
50949
|
+
partnersCount: nullableType(numberType()).optional()
|
|
50948
50950
|
});
|
|
50949
50951
|
Discount$outboundSchema = objectType({
|
|
50950
50952
|
id: stringType(),
|
|
50951
|
-
couponId: nullableType(stringType()),
|
|
50952
|
-
couponTestId: nullableType(stringType()),
|
|
50953
50953
|
amount: numberType(),
|
|
50954
50954
|
type: Type$outboundSchema2,
|
|
50955
|
-
|
|
50956
|
-
|
|
50955
|
+
maxDuration: nullableType(numberType()),
|
|
50956
|
+
couponId: nullableType(stringType()),
|
|
50957
|
+
couponTestId: nullableType(stringType()),
|
|
50958
|
+
partnersCount: nullableType(numberType()).optional()
|
|
50957
50959
|
});
|
|
50958
50960
|
((Discount$) => {
|
|
50959
50961
|
Discount$.inboundSchema = Discount$inboundSchema;
|
|
@@ -52092,7 +52094,7 @@ var init_tracksale = __esm(() => {
|
|
|
52092
52094
|
});
|
|
52093
52095
|
|
|
52094
52096
|
// src/models/operations/updatecustomer.ts
|
|
52095
|
-
var UpdateCustomerType,
|
|
52097
|
+
var UpdateCustomerType, UpdateCustomerRequestBody$inboundSchema, UpdateCustomerRequestBody$outboundSchema, UpdateCustomerRequestBody$, UpdateCustomerRequest$inboundSchema, UpdateCustomerRequest$outboundSchema, UpdateCustomerRequest$, UpdateCustomerLink$inboundSchema, UpdateCustomerLink$outboundSchema, UpdateCustomerLink$, UpdateCustomerPartner$inboundSchema, UpdateCustomerPartner$outboundSchema, UpdateCustomerPartner$, UpdateCustomerType$inboundSchema, UpdateCustomerType$outboundSchema, UpdateCustomerType$, UpdateCustomerDiscount$inboundSchema, UpdateCustomerDiscount$outboundSchema, UpdateCustomerDiscount$, UpdateCustomerResponseBody$inboundSchema, UpdateCustomerResponseBody$outboundSchema, UpdateCustomerResponseBody$;
|
|
52096
52098
|
var init_updatecustomer = __esm(() => {
|
|
52097
52099
|
init_lib();
|
|
52098
52100
|
init_primitives();
|
|
@@ -52100,10 +52102,6 @@ var init_updatecustomer = __esm(() => {
|
|
|
52100
52102
|
Percentage: "percentage",
|
|
52101
52103
|
Flat: "flat"
|
|
52102
52104
|
};
|
|
52103
|
-
UpdateCustomerInterval = {
|
|
52104
|
-
Month: "month",
|
|
52105
|
-
Year: "year"
|
|
52106
|
-
};
|
|
52107
52105
|
UpdateCustomerRequestBody$inboundSchema = objectType({
|
|
52108
52106
|
email: nullableType(stringType()).optional(),
|
|
52109
52107
|
name: nullableType(stringType()).optional(),
|
|
@@ -52182,29 +52180,23 @@ var init_updatecustomer = __esm(() => {
|
|
|
52182
52180
|
UpdateCustomerType$.inboundSchema = UpdateCustomerType$inboundSchema;
|
|
52183
52181
|
UpdateCustomerType$.outboundSchema = UpdateCustomerType$outboundSchema;
|
|
52184
52182
|
})(UpdateCustomerType$ ||= {});
|
|
52185
|
-
UpdateCustomerInterval$inboundSchema = nativeEnumType(UpdateCustomerInterval);
|
|
52186
|
-
UpdateCustomerInterval$outboundSchema = UpdateCustomerInterval$inboundSchema;
|
|
52187
|
-
((UpdateCustomerInterval$) => {
|
|
52188
|
-
UpdateCustomerInterval$.inboundSchema = UpdateCustomerInterval$inboundSchema;
|
|
52189
|
-
UpdateCustomerInterval$.outboundSchema = UpdateCustomerInterval$outboundSchema;
|
|
52190
|
-
})(UpdateCustomerInterval$ ||= {});
|
|
52191
52183
|
UpdateCustomerDiscount$inboundSchema = objectType({
|
|
52192
52184
|
id: stringType(),
|
|
52193
|
-
couponId: nullableType(stringType()),
|
|
52194
|
-
couponTestId: nullableType(stringType()),
|
|
52195
52185
|
amount: numberType(),
|
|
52196
52186
|
type: UpdateCustomerType$inboundSchema,
|
|
52197
|
-
|
|
52198
|
-
|
|
52187
|
+
maxDuration: nullableType(numberType()),
|
|
52188
|
+
couponId: nullableType(stringType()),
|
|
52189
|
+
couponTestId: nullableType(stringType()),
|
|
52190
|
+
partnersCount: nullableType(numberType()).optional()
|
|
52199
52191
|
});
|
|
52200
52192
|
UpdateCustomerDiscount$outboundSchema = objectType({
|
|
52201
52193
|
id: stringType(),
|
|
52202
|
-
couponId: nullableType(stringType()),
|
|
52203
|
-
couponTestId: nullableType(stringType()),
|
|
52204
52194
|
amount: numberType(),
|
|
52205
52195
|
type: UpdateCustomerType$outboundSchema,
|
|
52206
|
-
|
|
52207
|
-
|
|
52196
|
+
maxDuration: nullableType(numberType()),
|
|
52197
|
+
couponId: nullableType(stringType()),
|
|
52198
|
+
couponTestId: nullableType(stringType()),
|
|
52199
|
+
partnersCount: nullableType(numberType()).optional()
|
|
52208
52200
|
});
|
|
52209
52201
|
((UpdateCustomerDiscount$) => {
|
|
52210
52202
|
UpdateCustomerDiscount$.inboundSchema = UpdateCustomerDiscount$inboundSchema;
|
|
@@ -52492,13 +52484,15 @@ var init_updatepartnersale = __esm(() => {
|
|
|
52492
52484
|
programId: stringType(),
|
|
52493
52485
|
invoiceId: stringType(),
|
|
52494
52486
|
amount: numberType().optional(),
|
|
52495
|
-
modifyAmount: numberType().optional()
|
|
52487
|
+
modifyAmount: numberType().optional(),
|
|
52488
|
+
currency: stringType().default("usd")
|
|
52496
52489
|
});
|
|
52497
52490
|
UpdatePartnerSaleRequestBody$outboundSchema = objectType({
|
|
52498
52491
|
programId: stringType(),
|
|
52499
52492
|
invoiceId: stringType(),
|
|
52500
52493
|
amount: numberType().optional(),
|
|
52501
|
-
modifyAmount: numberType().optional()
|
|
52494
|
+
modifyAmount: numberType().optional(),
|
|
52495
|
+
currency: stringType().default("usd")
|
|
52502
52496
|
});
|
|
52503
52497
|
((UpdatePartnerSaleRequestBody$) => {
|
|
52504
52498
|
UpdatePartnerSaleRequestBody$.inboundSchema = UpdatePartnerSaleRequestBody$inboundSchema;
|
|
@@ -57971,7 +57965,7 @@ Update a workspace by ID or slug.`,
|
|
|
57971
57965
|
function createMCPServer(deps) {
|
|
57972
57966
|
const server = new McpServer({
|
|
57973
57967
|
name: "Dub",
|
|
57974
|
-
version: "0.
|
|
57968
|
+
version: "0.59.1"
|
|
57975
57969
|
});
|
|
57976
57970
|
const client = new DubCore({
|
|
57977
57971
|
token: deps.token,
|
|
@@ -57981,6 +57975,9 @@ function createMCPServer(deps) {
|
|
|
57981
57975
|
const scopes = new Set(deps.scopes ?? mcpScopes);
|
|
57982
57976
|
const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
|
|
57983
57977
|
const tool = createRegisterTool(deps.logger, server, client, scopes, allowedTools);
|
|
57978
|
+
const resource = createRegisterResource(deps.logger, server, client, scopes);
|
|
57979
|
+
const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, client, scopes);
|
|
57980
|
+
const register = { tool, resource, resourceTemplate };
|
|
57984
57981
|
tool(tool$linksCreate);
|
|
57985
57982
|
tool(tool$linksList);
|
|
57986
57983
|
tool(tool$linksCount);
|
|
@@ -58027,6 +58024,7 @@ function createMCPServer(deps) {
|
|
|
58027
58024
|
var init_server2 = __esm(() => {
|
|
58028
58025
|
init_mcp();
|
|
58029
58026
|
init_core();
|
|
58027
|
+
init_resources();
|
|
58030
58028
|
init_scopes();
|
|
58031
58029
|
init_tools();
|
|
58032
58030
|
init_analyticsRetrieve2();
|
|
@@ -59259,7 +59257,7 @@ var routes = rn({
|
|
|
59259
59257
|
var app = Ve(routes, {
|
|
59260
59258
|
name: "mcp",
|
|
59261
59259
|
versionInfo: {
|
|
59262
|
-
currentVersion: "0.
|
|
59260
|
+
currentVersion: "0.59.1"
|
|
59263
59261
|
}
|
|
59264
59262
|
});
|
|
59265
59263
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -59267,5 +59265,5 @@ export {
|
|
|
59267
59265
|
app
|
|
59268
59266
|
};
|
|
59269
59267
|
|
|
59270
|
-
//# debugId=
|
|
59268
|
+
//# debugId=4D2815CA7DCB575364756E2164756E21
|
|
59271
59269
|
//# sourceMappingURL=mcp-server.js.map
|