dub 0.63.1 → 0.63.3
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 +45 -28
- package/bin/mcp-server.js.map +12 -12
- package/dist/commonjs/funcs/analyticsRetrieve.js +1 -0
- package/dist/commonjs/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/files.d.ts +5 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -1
- package/dist/commonjs/lib/files.js +42 -1
- package/dist/commonjs/lib/files.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts +2 -2
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/operations/bulkcreatelinks.d.ts +2 -2
- package/dist/commonjs/models/operations/bulkcreatelinks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/bulkcreatelinks.js +2 -2
- package/dist/commonjs/models/operations/bulkcreatelinks.js.map +1 -1
- package/dist/commonjs/models/operations/listcommissions.d.ts +6 -0
- package/dist/commonjs/models/operations/listcommissions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcommissions.js +2 -0
- package/dist/commonjs/models/operations/listcommissions.js.map +1 -1
- package/dist/commonjs/models/operations/listevents.d.ts +16 -16
- package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listevents.js +17 -17
- package/dist/commonjs/models/operations/listevents.js.map +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts +30 -0
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.js +23 -1
- package/dist/commonjs/models/operations/retrieveanalytics.js.map +1 -1
- package/dist/commonjs/models/operations/updatecommission.d.ts +3 -0
- package/dist/commonjs/models/operations/updatecommission.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecommission.js +1 -0
- package/dist/commonjs/models/operations/updatecommission.js.map +1 -1
- package/dist/esm/funcs/analyticsRetrieve.js +1 -0
- package/dist/esm/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/files.d.ts +5 -0
- package/dist/esm/lib/files.d.ts.map +1 -1
- package/dist/esm/lib/files.js +40 -0
- package/dist/esm/lib/files.js.map +1 -1
- package/dist/esm/lib/security.d.ts +2 -2
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/operations/bulkcreatelinks.d.ts +2 -2
- package/dist/esm/models/operations/bulkcreatelinks.d.ts.map +1 -1
- package/dist/esm/models/operations/bulkcreatelinks.js +2 -2
- package/dist/esm/models/operations/bulkcreatelinks.js.map +1 -1
- package/dist/esm/models/operations/listcommissions.d.ts +6 -0
- package/dist/esm/models/operations/listcommissions.d.ts.map +1 -1
- package/dist/esm/models/operations/listcommissions.js +2 -0
- package/dist/esm/models/operations/listcommissions.js.map +1 -1
- package/dist/esm/models/operations/listevents.d.ts +16 -16
- package/dist/esm/models/operations/listevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listevents.js +16 -16
- package/dist/esm/models/operations/listevents.js.map +1 -1
- package/dist/esm/models/operations/retrieveanalytics.d.ts +30 -0
- package/dist/esm/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/esm/models/operations/retrieveanalytics.js +22 -0
- package/dist/esm/models/operations/retrieveanalytics.js.map +1 -1
- package/dist/esm/models/operations/updatecommission.d.ts +3 -0
- package/dist/esm/models/operations/updatecommission.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecommission.js +1 -0
- package/dist/esm/models/operations/updatecommission.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/analyticsRetrieve.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/files.ts +42 -0
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/bulkcreatelinks.ts +5 -5
- package/src/models/operations/listcommissions.ts +2 -0
- package/src/models/operations/listevents.ts +30 -28
- package/src/models/operations/retrieveanalytics.ts +32 -0
- package/src/models/operations/updatecommission.ts +1 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34264,9 +34264,9 @@ var init_config = __esm(() => {
|
|
|
34264
34264
|
SDK_METADATA = {
|
|
34265
34265
|
language: "typescript",
|
|
34266
34266
|
openapiDocVersion: "0.0.1",
|
|
34267
|
-
sdkVersion: "0.63.
|
|
34268
|
-
genVersion: "2.
|
|
34269
|
-
userAgent: "speakeasy-sdk/typescript 0.63.
|
|
34267
|
+
sdkVersion: "0.63.3",
|
|
34268
|
+
genVersion: "2.630.6",
|
|
34269
|
+
userAgent: "speakeasy-sdk/typescript 0.63.3 2.630.6 0.0.1 dub"
|
|
34270
34270
|
};
|
|
34271
34271
|
});
|
|
34272
34272
|
|
|
@@ -49570,12 +49570,12 @@ var init_bulkcreatelinks = __esm(() => {
|
|
|
49570
49570
|
RequestBody$.outboundSchema = RequestBody$outboundSchema;
|
|
49571
49571
|
})(RequestBody$ ||= {});
|
|
49572
49572
|
ResponseBody$inboundSchema = unionType([
|
|
49573
|
-
|
|
49574
|
-
|
|
49573
|
+
LinkSchema$inboundSchema,
|
|
49574
|
+
LinkErrorSchema$inboundSchema
|
|
49575
49575
|
]);
|
|
49576
49576
|
ResponseBody$outboundSchema = unionType([
|
|
49577
|
-
|
|
49578
|
-
|
|
49577
|
+
LinkSchema$outboundSchema,
|
|
49578
|
+
LinkErrorSchema$outboundSchema
|
|
49579
49579
|
]);
|
|
49580
49580
|
((ResponseBody$) => {
|
|
49581
49581
|
ResponseBody$.inboundSchema = ResponseBody$inboundSchema;
|
|
@@ -51969,7 +51969,8 @@ var init_listcommissions = __esm(() => {
|
|
|
51969
51969
|
Type2 = {
|
|
51970
51970
|
Click: "click",
|
|
51971
51971
|
Lead: "lead",
|
|
51972
|
-
Sale: "sale"
|
|
51972
|
+
Sale: "sale",
|
|
51973
|
+
Custom: "custom"
|
|
51973
51974
|
};
|
|
51974
51975
|
QueryParamStatus = {
|
|
51975
51976
|
Pending: "pending",
|
|
@@ -52002,7 +52003,8 @@ var init_listcommissions = __esm(() => {
|
|
|
52002
52003
|
ListCommissionsType = {
|
|
52003
52004
|
Click: "click",
|
|
52004
52005
|
Lead: "lead",
|
|
52005
|
-
Sale: "sale"
|
|
52006
|
+
Sale: "sale",
|
|
52007
|
+
Custom: "custom"
|
|
52006
52008
|
};
|
|
52007
52009
|
ListCommissionsStatus = {
|
|
52008
52010
|
Pending: "pending",
|
|
@@ -52160,7 +52162,7 @@ var init_listdomains = __esm(() => {
|
|
|
52160
52162
|
});
|
|
52161
52163
|
|
|
52162
52164
|
// src/models/operations/listevents.ts
|
|
52163
|
-
var QueryParamEvent, QueryParamInterval, QueryParamTrigger, QueryParamSortOrder,
|
|
52165
|
+
var QueryParamEvent, QueryParamInterval, QueryParamTrigger, QueryParamSortOrder, ListEventsQueryParamSortBy, Order, QueryParamEvent$inboundSchema, QueryParamEvent$outboundSchema, QueryParamEvent$, QueryParamInterval$inboundSchema, QueryParamInterval$outboundSchema, QueryParamInterval$, QueryParamTrigger$inboundSchema, QueryParamTrigger$outboundSchema, QueryParamTrigger$, ListEventsQueryParamTagIds$inboundSchema, ListEventsQueryParamTagIds$outboundSchema, ListEventsQueryParamTagIds$, QueryParamSortOrder$inboundSchema, QueryParamSortOrder$outboundSchema, QueryParamSortOrder$, ListEventsQueryParamSortBy$inboundSchema, ListEventsQueryParamSortBy$outboundSchema, ListEventsQueryParamSortBy$, Order$inboundSchema, Order$outboundSchema, Order$, ListEventsRequest$inboundSchema, ListEventsRequest$outboundSchema, ListEventsRequest$, ListEventsResponseBody$inboundSchema, ListEventsResponseBody$outboundSchema, ListEventsResponseBody$;
|
|
52164
52166
|
var init_listevents = __esm(() => {
|
|
52165
52167
|
init_esm();
|
|
52166
52168
|
init_primitives();
|
|
@@ -52189,7 +52191,7 @@ var init_listevents = __esm(() => {
|
|
|
52189
52191
|
Asc: "asc",
|
|
52190
52192
|
Desc: "desc"
|
|
52191
52193
|
};
|
|
52192
|
-
|
|
52194
|
+
ListEventsQueryParamSortBy = {
|
|
52193
52195
|
Timestamp: "timestamp"
|
|
52194
52196
|
};
|
|
52195
52197
|
Order = {
|
|
@@ -52226,12 +52228,12 @@ var init_listevents = __esm(() => {
|
|
|
52226
52228
|
QueryParamSortOrder$.inboundSchema = QueryParamSortOrder$inboundSchema;
|
|
52227
52229
|
QueryParamSortOrder$.outboundSchema = QueryParamSortOrder$outboundSchema;
|
|
52228
52230
|
})(QueryParamSortOrder$ ||= {});
|
|
52229
|
-
|
|
52230
|
-
|
|
52231
|
-
((
|
|
52232
|
-
|
|
52233
|
-
|
|
52234
|
-
})(
|
|
52231
|
+
ListEventsQueryParamSortBy$inboundSchema = nativeEnumType(ListEventsQueryParamSortBy);
|
|
52232
|
+
ListEventsQueryParamSortBy$outboundSchema = ListEventsQueryParamSortBy$inboundSchema;
|
|
52233
|
+
((ListEventsQueryParamSortBy$) => {
|
|
52234
|
+
ListEventsQueryParamSortBy$.inboundSchema = ListEventsQueryParamSortBy$inboundSchema;
|
|
52235
|
+
ListEventsQueryParamSortBy$.outboundSchema = ListEventsQueryParamSortBy$outboundSchema;
|
|
52236
|
+
})(ListEventsQueryParamSortBy$ ||= {});
|
|
52235
52237
|
Order$inboundSchema = nativeEnumType(Order);
|
|
52236
52238
|
Order$outboundSchema = Order$inboundSchema;
|
|
52237
52239
|
((Order$) => {
|
|
@@ -52276,7 +52278,7 @@ var init_listevents = __esm(() => {
|
|
|
52276
52278
|
page: numberType().default(1),
|
|
52277
52279
|
limit: numberType().default(100),
|
|
52278
52280
|
sortOrder: QueryParamSortOrder$inboundSchema.default("desc"),
|
|
52279
|
-
sortBy:
|
|
52281
|
+
sortBy: ListEventsQueryParamSortBy$inboundSchema.default("timestamp"),
|
|
52280
52282
|
order: Order$inboundSchema.default("desc")
|
|
52281
52283
|
}).transform((v2) => {
|
|
52282
52284
|
return remap(v2, {
|
|
@@ -52325,7 +52327,7 @@ var init_listevents = __esm(() => {
|
|
|
52325
52327
|
page: numberType().default(1),
|
|
52326
52328
|
limit: numberType().default(100),
|
|
52327
52329
|
sortOrder: QueryParamSortOrder$outboundSchema.default("desc"),
|
|
52328
|
-
sortBy:
|
|
52330
|
+
sortBy: ListEventsQueryParamSortBy$outboundSchema.default("timestamp"),
|
|
52329
52331
|
order: Order$outboundSchema.default("desc")
|
|
52330
52332
|
}).transform((v2) => {
|
|
52331
52333
|
return remap(v2, {
|
|
@@ -52341,24 +52343,24 @@ var init_listevents = __esm(() => {
|
|
|
52341
52343
|
ListEventsRequest$.outboundSchema = ListEventsRequest$outboundSchema;
|
|
52342
52344
|
})(ListEventsRequest$ ||= {});
|
|
52343
52345
|
ListEventsResponseBody$inboundSchema = unionType([
|
|
52344
|
-
|
|
52346
|
+
SaleEvent$inboundSchema.and(objectType({ event: literalType("sale") }).transform((v2) => ({
|
|
52345
52347
|
event: v2.event
|
|
52346
52348
|
}))),
|
|
52347
52349
|
LeadEvent$inboundSchema.and(objectType({ event: literalType("lead") }).transform((v2) => ({
|
|
52348
52350
|
event: v2.event
|
|
52349
52351
|
}))),
|
|
52350
|
-
|
|
52352
|
+
ClickEvent$inboundSchema.and(objectType({ event: literalType("click") }).transform((v2) => ({
|
|
52351
52353
|
event: v2.event
|
|
52352
52354
|
})))
|
|
52353
52355
|
]);
|
|
52354
52356
|
ListEventsResponseBody$outboundSchema = unionType([
|
|
52355
|
-
|
|
52357
|
+
SaleEvent$outboundSchema.and(objectType({ event: literalType("sale") }).transform((v2) => ({
|
|
52356
52358
|
event: v2.event
|
|
52357
52359
|
}))),
|
|
52358
52360
|
LeadEvent$outboundSchema.and(objectType({ event: literalType("lead") }).transform((v2) => ({
|
|
52359
52361
|
event: v2.event
|
|
52360
52362
|
}))),
|
|
52361
|
-
|
|
52363
|
+
ClickEvent$outboundSchema.and(objectType({ event: literalType("click") }).transform((v2) => ({
|
|
52362
52364
|
event: v2.event
|
|
52363
52365
|
})))
|
|
52364
52366
|
]);
|
|
@@ -52419,7 +52421,7 @@ var init_registerdomain = __esm(() => {
|
|
|
52419
52421
|
});
|
|
52420
52422
|
|
|
52421
52423
|
// src/models/operations/retrieveanalytics.ts
|
|
52422
|
-
var Event2, QueryParamGroupBy, Interval, Trigger2, Event$inboundSchema2, Event$outboundSchema2, Event$2, QueryParamGroupBy$inboundSchema, QueryParamGroupBy$outboundSchema, QueryParamGroupBy$, Interval$inboundSchema, Interval$outboundSchema, Interval$, Trigger$inboundSchema2, Trigger$outboundSchema2, Trigger$2, RetrieveAnalyticsQueryParamTagIds$inboundSchema, RetrieveAnalyticsQueryParamTagIds$outboundSchema, RetrieveAnalyticsQueryParamTagIds$, RetrieveAnalyticsRequest$inboundSchema, RetrieveAnalyticsRequest$outboundSchema, RetrieveAnalyticsRequest$, RetrieveAnalyticsResponseBody$inboundSchema, RetrieveAnalyticsResponseBody$outboundSchema, RetrieveAnalyticsResponseBody$;
|
|
52424
|
+
var Event2, QueryParamGroupBy, Interval, Trigger2, QueryParamSortBy, Event$inboundSchema2, Event$outboundSchema2, Event$2, QueryParamGroupBy$inboundSchema, QueryParamGroupBy$outboundSchema, QueryParamGroupBy$, Interval$inboundSchema, Interval$outboundSchema, Interval$, Trigger$inboundSchema2, Trigger$outboundSchema2, Trigger$2, RetrieveAnalyticsQueryParamTagIds$inboundSchema, RetrieveAnalyticsQueryParamTagIds$outboundSchema, RetrieveAnalyticsQueryParamTagIds$, QueryParamSortBy$inboundSchema, QueryParamSortBy$outboundSchema, QueryParamSortBy$, RetrieveAnalyticsRequest$inboundSchema, RetrieveAnalyticsRequest$outboundSchema, RetrieveAnalyticsRequest$, RetrieveAnalyticsResponseBody$inboundSchema, RetrieveAnalyticsResponseBody$outboundSchema, RetrieveAnalyticsResponseBody$;
|
|
52423
52425
|
var init_retrieveanalytics = __esm(() => {
|
|
52424
52426
|
init_esm();
|
|
52425
52427
|
init_primitives();
|
|
@@ -52468,6 +52470,11 @@ var init_retrieveanalytics = __esm(() => {
|
|
|
52468
52470
|
Qr: "qr",
|
|
52469
52471
|
Link: "link"
|
|
52470
52472
|
};
|
|
52473
|
+
QueryParamSortBy = {
|
|
52474
|
+
Clicks: "clicks",
|
|
52475
|
+
Leads: "leads",
|
|
52476
|
+
Sales: "sales"
|
|
52477
|
+
};
|
|
52471
52478
|
Event$inboundSchema2 = nativeEnumType(Event2);
|
|
52472
52479
|
Event$outboundSchema2 = Event$inboundSchema2;
|
|
52473
52480
|
((Event$) => {
|
|
@@ -52498,6 +52505,12 @@ var init_retrieveanalytics = __esm(() => {
|
|
|
52498
52505
|
RetrieveAnalyticsQueryParamTagIds$.inboundSchema = RetrieveAnalyticsQueryParamTagIds$inboundSchema;
|
|
52499
52506
|
RetrieveAnalyticsQueryParamTagIds$.outboundSchema = RetrieveAnalyticsQueryParamTagIds$outboundSchema;
|
|
52500
52507
|
})(RetrieveAnalyticsQueryParamTagIds$ ||= {});
|
|
52508
|
+
QueryParamSortBy$inboundSchema = nativeEnumType(QueryParamSortBy);
|
|
52509
|
+
QueryParamSortBy$outboundSchema = QueryParamSortBy$inboundSchema;
|
|
52510
|
+
((QueryParamSortBy$) => {
|
|
52511
|
+
QueryParamSortBy$.inboundSchema = QueryParamSortBy$inboundSchema;
|
|
52512
|
+
QueryParamSortBy$.outboundSchema = QueryParamSortBy$outboundSchema;
|
|
52513
|
+
})(QueryParamSortBy$ ||= {});
|
|
52501
52514
|
RetrieveAnalyticsRequest$inboundSchema = objectType({
|
|
52502
52515
|
event: Event$inboundSchema2.default("clicks"),
|
|
52503
52516
|
groupBy: QueryParamGroupBy$inboundSchema.default("count"),
|
|
@@ -52529,6 +52542,7 @@ var init_retrieveanalytics = __esm(() => {
|
|
|
52529
52542
|
folderId: stringType().optional(),
|
|
52530
52543
|
qr: booleanType().optional(),
|
|
52531
52544
|
root: booleanType().optional(),
|
|
52545
|
+
sortBy: QueryParamSortBy$inboundSchema.optional(),
|
|
52532
52546
|
utm_source: nullableType(stringType()).optional(),
|
|
52533
52547
|
utm_medium: nullableType(stringType()).optional(),
|
|
52534
52548
|
utm_campaign: nullableType(stringType()).optional(),
|
|
@@ -52574,6 +52588,7 @@ var init_retrieveanalytics = __esm(() => {
|
|
|
52574
52588
|
folderId: stringType().optional(),
|
|
52575
52589
|
qr: booleanType().optional(),
|
|
52576
52590
|
root: booleanType().optional(),
|
|
52591
|
+
sortBy: QueryParamSortBy$outboundSchema.optional(),
|
|
52577
52592
|
utmSource: nullableType(stringType()).optional(),
|
|
52578
52593
|
utmMedium: nullableType(stringType()).optional(),
|
|
52579
52594
|
utmCampaign: nullableType(stringType()).optional(),
|
|
@@ -52936,7 +52951,8 @@ var init_updatecommission = __esm(() => {
|
|
|
52936
52951
|
UpdateCommissionType = {
|
|
52937
52952
|
Click: "click",
|
|
52938
52953
|
Lead: "lead",
|
|
52939
|
-
Sale: "sale"
|
|
52954
|
+
Sale: "sale",
|
|
52955
|
+
Custom: "custom"
|
|
52940
52956
|
};
|
|
52941
52957
|
UpdateCommissionStatus = {
|
|
52942
52958
|
Pending: "pending",
|
|
@@ -53912,6 +53928,7 @@ async function $do(client, request, options) {
|
|
|
53912
53928
|
refererUrl: payload?.refererUrl,
|
|
53913
53929
|
region: payload?.region,
|
|
53914
53930
|
root: payload?.root,
|
|
53931
|
+
sortBy: payload?.sortBy,
|
|
53915
53932
|
start: payload?.start,
|
|
53916
53933
|
tagId: payload?.tagId,
|
|
53917
53934
|
tagIds: payload?.tagIds,
|
|
@@ -59387,7 +59404,7 @@ Update a workspace by ID or slug.`,
|
|
|
59387
59404
|
function createMCPServer(deps) {
|
|
59388
59405
|
const server = new McpServer({
|
|
59389
59406
|
name: "Dub",
|
|
59390
|
-
version: "0.63.
|
|
59407
|
+
version: "0.63.3"
|
|
59391
59408
|
});
|
|
59392
59409
|
const client = new DubCore({
|
|
59393
59410
|
token: deps.token,
|
|
@@ -60689,7 +60706,7 @@ var routes = rn({
|
|
|
60689
60706
|
var app = Ve(routes, {
|
|
60690
60707
|
name: "mcp",
|
|
60691
60708
|
versionInfo: {
|
|
60692
|
-
currentVersion: "0.63.
|
|
60709
|
+
currentVersion: "0.63.3"
|
|
60693
60710
|
}
|
|
60694
60711
|
});
|
|
60695
60712
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -60697,5 +60714,5 @@ export {
|
|
|
60697
60714
|
app
|
|
60698
60715
|
};
|
|
60699
60716
|
|
|
60700
|
-
//# debugId=
|
|
60717
|
+
//# debugId=15A1A20093152D0864756E2164756E21
|
|
60701
60718
|
//# sourceMappingURL=mcp-server.js.map
|