dub 0.63.2 → 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.
Files changed (52) hide show
  1. package/bin/mcp-server.js +39 -25
  2. package/bin/mcp-server.js.map +10 -10
  3. package/dist/commonjs/funcs/analyticsRetrieve.js +1 -0
  4. package/dist/commonjs/funcs/analyticsRetrieve.js.map +1 -1
  5. package/dist/commonjs/lib/config.d.ts +3 -3
  6. package/dist/commonjs/lib/config.js +3 -3
  7. package/dist/commonjs/lib/security.d.ts +2 -2
  8. package/dist/commonjs/lib/security.d.ts.map +1 -1
  9. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  10. package/dist/commonjs/mcp-server/server.js +1 -1
  11. package/dist/commonjs/models/operations/bulkcreatelinks.d.ts +2 -2
  12. package/dist/commonjs/models/operations/bulkcreatelinks.d.ts.map +1 -1
  13. package/dist/commonjs/models/operations/bulkcreatelinks.js +2 -2
  14. package/dist/commonjs/models/operations/bulkcreatelinks.js.map +1 -1
  15. package/dist/commonjs/models/operations/listevents.d.ts +16 -16
  16. package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
  17. package/dist/commonjs/models/operations/listevents.js +17 -17
  18. package/dist/commonjs/models/operations/listevents.js.map +1 -1
  19. package/dist/commonjs/models/operations/retrieveanalytics.d.ts +30 -0
  20. package/dist/commonjs/models/operations/retrieveanalytics.d.ts.map +1 -1
  21. package/dist/commonjs/models/operations/retrieveanalytics.js +23 -1
  22. package/dist/commonjs/models/operations/retrieveanalytics.js.map +1 -1
  23. package/dist/esm/funcs/analyticsRetrieve.js +1 -0
  24. package/dist/esm/funcs/analyticsRetrieve.js.map +1 -1
  25. package/dist/esm/lib/config.d.ts +3 -3
  26. package/dist/esm/lib/config.js +3 -3
  27. package/dist/esm/lib/security.d.ts +2 -2
  28. package/dist/esm/lib/security.d.ts.map +1 -1
  29. package/dist/esm/mcp-server/mcp-server.js +1 -1
  30. package/dist/esm/mcp-server/server.js +1 -1
  31. package/dist/esm/models/operations/bulkcreatelinks.d.ts +2 -2
  32. package/dist/esm/models/operations/bulkcreatelinks.d.ts.map +1 -1
  33. package/dist/esm/models/operations/bulkcreatelinks.js +2 -2
  34. package/dist/esm/models/operations/bulkcreatelinks.js.map +1 -1
  35. package/dist/esm/models/operations/listevents.d.ts +16 -16
  36. package/dist/esm/models/operations/listevents.d.ts.map +1 -1
  37. package/dist/esm/models/operations/listevents.js +16 -16
  38. package/dist/esm/models/operations/listevents.js.map +1 -1
  39. package/dist/esm/models/operations/retrieveanalytics.d.ts +30 -0
  40. package/dist/esm/models/operations/retrieveanalytics.d.ts.map +1 -1
  41. package/dist/esm/models/operations/retrieveanalytics.js +22 -0
  42. package/dist/esm/models/operations/retrieveanalytics.js.map +1 -1
  43. package/jsr.json +1 -1
  44. package/package.json +1 -1
  45. package/src/funcs/analyticsRetrieve.ts +1 -0
  46. package/src/lib/config.ts +3 -3
  47. package/src/lib/security.ts +2 -2
  48. package/src/mcp-server/mcp-server.ts +1 -1
  49. package/src/mcp-server/server.ts +1 -1
  50. package/src/models/operations/bulkcreatelinks.ts +5 -5
  51. package/src/models/operations/listevents.ts +30 -28
  52. package/src/models/operations/retrieveanalytics.ts +32 -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.2",
34268
- genVersion: "2.628.0",
34269
- userAgent: "speakeasy-sdk/typescript 0.63.2 2.628.0 0.0.1 dub"
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
- LinkErrorSchema$inboundSchema,
49574
- LinkSchema$inboundSchema
49573
+ LinkSchema$inboundSchema,
49574
+ LinkErrorSchema$inboundSchema
49575
49575
  ]);
49576
49576
  ResponseBody$outboundSchema = unionType([
49577
- LinkErrorSchema$outboundSchema,
49578
- LinkSchema$outboundSchema
49577
+ LinkSchema$outboundSchema,
49578
+ LinkErrorSchema$outboundSchema
49579
49579
  ]);
49580
49580
  ((ResponseBody$) => {
49581
49581
  ResponseBody$.inboundSchema = ResponseBody$inboundSchema;
@@ -52162,7 +52162,7 @@ var init_listdomains = __esm(() => {
52162
52162
  });
52163
52163
 
52164
52164
  // src/models/operations/listevents.ts
52165
- var QueryParamEvent, QueryParamInterval, QueryParamTrigger, QueryParamSortOrder, QueryParamSortBy, 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$, QueryParamSortBy$inboundSchema, QueryParamSortBy$outboundSchema, QueryParamSortBy$, Order$inboundSchema, Order$outboundSchema, Order$, ListEventsRequest$inboundSchema, ListEventsRequest$outboundSchema, ListEventsRequest$, ListEventsResponseBody$inboundSchema, ListEventsResponseBody$outboundSchema, ListEventsResponseBody$;
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$;
52166
52166
  var init_listevents = __esm(() => {
52167
52167
  init_esm();
52168
52168
  init_primitives();
@@ -52191,7 +52191,7 @@ var init_listevents = __esm(() => {
52191
52191
  Asc: "asc",
52192
52192
  Desc: "desc"
52193
52193
  };
52194
- QueryParamSortBy = {
52194
+ ListEventsQueryParamSortBy = {
52195
52195
  Timestamp: "timestamp"
52196
52196
  };
52197
52197
  Order = {
@@ -52228,12 +52228,12 @@ var init_listevents = __esm(() => {
52228
52228
  QueryParamSortOrder$.inboundSchema = QueryParamSortOrder$inboundSchema;
52229
52229
  QueryParamSortOrder$.outboundSchema = QueryParamSortOrder$outboundSchema;
52230
52230
  })(QueryParamSortOrder$ ||= {});
52231
- QueryParamSortBy$inboundSchema = nativeEnumType(QueryParamSortBy);
52232
- QueryParamSortBy$outboundSchema = QueryParamSortBy$inboundSchema;
52233
- ((QueryParamSortBy$) => {
52234
- QueryParamSortBy$.inboundSchema = QueryParamSortBy$inboundSchema;
52235
- QueryParamSortBy$.outboundSchema = QueryParamSortBy$outboundSchema;
52236
- })(QueryParamSortBy$ ||= {});
52231
+ ListEventsQueryParamSortBy$inboundSchema = nativeEnumType(ListEventsQueryParamSortBy);
52232
+ ListEventsQueryParamSortBy$outboundSchema = ListEventsQueryParamSortBy$inboundSchema;
52233
+ ((ListEventsQueryParamSortBy$) => {
52234
+ ListEventsQueryParamSortBy$.inboundSchema = ListEventsQueryParamSortBy$inboundSchema;
52235
+ ListEventsQueryParamSortBy$.outboundSchema = ListEventsQueryParamSortBy$outboundSchema;
52236
+ })(ListEventsQueryParamSortBy$ ||= {});
52237
52237
  Order$inboundSchema = nativeEnumType(Order);
52238
52238
  Order$outboundSchema = Order$inboundSchema;
52239
52239
  ((Order$) => {
@@ -52278,7 +52278,7 @@ var init_listevents = __esm(() => {
52278
52278
  page: numberType().default(1),
52279
52279
  limit: numberType().default(100),
52280
52280
  sortOrder: QueryParamSortOrder$inboundSchema.default("desc"),
52281
- sortBy: QueryParamSortBy$inboundSchema.default("timestamp"),
52281
+ sortBy: ListEventsQueryParamSortBy$inboundSchema.default("timestamp"),
52282
52282
  order: Order$inboundSchema.default("desc")
52283
52283
  }).transform((v2) => {
52284
52284
  return remap(v2, {
@@ -52327,7 +52327,7 @@ var init_listevents = __esm(() => {
52327
52327
  page: numberType().default(1),
52328
52328
  limit: numberType().default(100),
52329
52329
  sortOrder: QueryParamSortOrder$outboundSchema.default("desc"),
52330
- sortBy: QueryParamSortBy$outboundSchema.default("timestamp"),
52330
+ sortBy: ListEventsQueryParamSortBy$outboundSchema.default("timestamp"),
52331
52331
  order: Order$outboundSchema.default("desc")
52332
52332
  }).transform((v2) => {
52333
52333
  return remap(v2, {
@@ -52343,24 +52343,24 @@ var init_listevents = __esm(() => {
52343
52343
  ListEventsRequest$.outboundSchema = ListEventsRequest$outboundSchema;
52344
52344
  })(ListEventsRequest$ ||= {});
52345
52345
  ListEventsResponseBody$inboundSchema = unionType([
52346
- ClickEvent$inboundSchema.and(objectType({ event: literalType("click") }).transform((v2) => ({
52346
+ SaleEvent$inboundSchema.and(objectType({ event: literalType("sale") }).transform((v2) => ({
52347
52347
  event: v2.event
52348
52348
  }))),
52349
52349
  LeadEvent$inboundSchema.and(objectType({ event: literalType("lead") }).transform((v2) => ({
52350
52350
  event: v2.event
52351
52351
  }))),
52352
- SaleEvent$inboundSchema.and(objectType({ event: literalType("sale") }).transform((v2) => ({
52352
+ ClickEvent$inboundSchema.and(objectType({ event: literalType("click") }).transform((v2) => ({
52353
52353
  event: v2.event
52354
52354
  })))
52355
52355
  ]);
52356
52356
  ListEventsResponseBody$outboundSchema = unionType([
52357
- ClickEvent$outboundSchema.and(objectType({ event: literalType("click") }).transform((v2) => ({
52357
+ SaleEvent$outboundSchema.and(objectType({ event: literalType("sale") }).transform((v2) => ({
52358
52358
  event: v2.event
52359
52359
  }))),
52360
52360
  LeadEvent$outboundSchema.and(objectType({ event: literalType("lead") }).transform((v2) => ({
52361
52361
  event: v2.event
52362
52362
  }))),
52363
- SaleEvent$outboundSchema.and(objectType({ event: literalType("sale") }).transform((v2) => ({
52363
+ ClickEvent$outboundSchema.and(objectType({ event: literalType("click") }).transform((v2) => ({
52364
52364
  event: v2.event
52365
52365
  })))
52366
52366
  ]);
@@ -52421,7 +52421,7 @@ var init_registerdomain = __esm(() => {
52421
52421
  });
52422
52422
 
52423
52423
  // src/models/operations/retrieveanalytics.ts
52424
- 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$;
52425
52425
  var init_retrieveanalytics = __esm(() => {
52426
52426
  init_esm();
52427
52427
  init_primitives();
@@ -52470,6 +52470,11 @@ var init_retrieveanalytics = __esm(() => {
52470
52470
  Qr: "qr",
52471
52471
  Link: "link"
52472
52472
  };
52473
+ QueryParamSortBy = {
52474
+ Clicks: "clicks",
52475
+ Leads: "leads",
52476
+ Sales: "sales"
52477
+ };
52473
52478
  Event$inboundSchema2 = nativeEnumType(Event2);
52474
52479
  Event$outboundSchema2 = Event$inboundSchema2;
52475
52480
  ((Event$) => {
@@ -52500,6 +52505,12 @@ var init_retrieveanalytics = __esm(() => {
52500
52505
  RetrieveAnalyticsQueryParamTagIds$.inboundSchema = RetrieveAnalyticsQueryParamTagIds$inboundSchema;
52501
52506
  RetrieveAnalyticsQueryParamTagIds$.outboundSchema = RetrieveAnalyticsQueryParamTagIds$outboundSchema;
52502
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$ ||= {});
52503
52514
  RetrieveAnalyticsRequest$inboundSchema = objectType({
52504
52515
  event: Event$inboundSchema2.default("clicks"),
52505
52516
  groupBy: QueryParamGroupBy$inboundSchema.default("count"),
@@ -52531,6 +52542,7 @@ var init_retrieveanalytics = __esm(() => {
52531
52542
  folderId: stringType().optional(),
52532
52543
  qr: booleanType().optional(),
52533
52544
  root: booleanType().optional(),
52545
+ sortBy: QueryParamSortBy$inboundSchema.optional(),
52534
52546
  utm_source: nullableType(stringType()).optional(),
52535
52547
  utm_medium: nullableType(stringType()).optional(),
52536
52548
  utm_campaign: nullableType(stringType()).optional(),
@@ -52576,6 +52588,7 @@ var init_retrieveanalytics = __esm(() => {
52576
52588
  folderId: stringType().optional(),
52577
52589
  qr: booleanType().optional(),
52578
52590
  root: booleanType().optional(),
52591
+ sortBy: QueryParamSortBy$outboundSchema.optional(),
52579
52592
  utmSource: nullableType(stringType()).optional(),
52580
52593
  utmMedium: nullableType(stringType()).optional(),
52581
52594
  utmCampaign: nullableType(stringType()).optional(),
@@ -53915,6 +53928,7 @@ async function $do(client, request, options) {
53915
53928
  refererUrl: payload?.refererUrl,
53916
53929
  region: payload?.region,
53917
53930
  root: payload?.root,
53931
+ sortBy: payload?.sortBy,
53918
53932
  start: payload?.start,
53919
53933
  tagId: payload?.tagId,
53920
53934
  tagIds: payload?.tagIds,
@@ -59390,7 +59404,7 @@ Update a workspace by ID or slug.`,
59390
59404
  function createMCPServer(deps) {
59391
59405
  const server = new McpServer({
59392
59406
  name: "Dub",
59393
- version: "0.63.2"
59407
+ version: "0.63.3"
59394
59408
  });
59395
59409
  const client = new DubCore({
59396
59410
  token: deps.token,
@@ -60692,7 +60706,7 @@ var routes = rn({
60692
60706
  var app = Ve(routes, {
60693
60707
  name: "mcp",
60694
60708
  versionInfo: {
60695
- currentVersion: "0.63.2"
60709
+ currentVersion: "0.63.3"
60696
60710
  }
60697
60711
  });
60698
60712
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -60700,5 +60714,5 @@ export {
60700
60714
  app
60701
60715
  };
60702
60716
 
60703
- //# debugId=351B2DB2A5335D8A64756E2164756E21
60717
+ //# debugId=15A1A20093152D0864756E2164756E21
60704
60718
  //# sourceMappingURL=mcp-server.js.map