dub 0.59.0 → 0.59.2

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 (69) hide show
  1. package/bin/mcp-server.js +46 -86
  2. package/bin/mcp-server.js.map +11 -11
  3. package/dist/commonjs/lib/config.d.ts +3 -3
  4. package/dist/commonjs/lib/config.js +3 -3
  5. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  6. package/dist/commonjs/mcp-server/server.js +1 -1
  7. package/dist/commonjs/models/components/partnercreatedevent.d.ts +2 -2
  8. package/dist/commonjs/models/components/partnercreatedevent.d.ts.map +1 -1
  9. package/dist/commonjs/models/components/partnercreatedevent.js +2 -2
  10. package/dist/commonjs/models/components/partnercreatedevent.js.map +1 -1
  11. package/dist/commonjs/models/operations/createcustomer.d.ts +8 -33
  12. package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
  13. package/dist/commonjs/models/operations/createcustomer.js +9 -28
  14. package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
  15. package/dist/commonjs/models/operations/createpartner.d.ts +2 -2
  16. package/dist/commonjs/models/operations/createpartner.d.ts.map +1 -1
  17. package/dist/commonjs/models/operations/createpartner.js +2 -2
  18. package/dist/commonjs/models/operations/createpartner.js.map +1 -1
  19. package/dist/commonjs/models/operations/getcustomer.d.ts +8 -33
  20. package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
  21. package/dist/commonjs/models/operations/getcustomer.js +9 -28
  22. package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
  23. package/dist/commonjs/models/operations/getcustomers.d.ts +8 -33
  24. package/dist/commonjs/models/operations/getcustomers.d.ts.map +1 -1
  25. package/dist/commonjs/models/operations/getcustomers.js +9 -28
  26. package/dist/commonjs/models/operations/getcustomers.js.map +1 -1
  27. package/dist/commonjs/models/operations/updatecustomer.d.ts +8 -33
  28. package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
  29. package/dist/commonjs/models/operations/updatecustomer.js +9 -28
  30. package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
  31. package/dist/esm/lib/config.d.ts +3 -3
  32. package/dist/esm/lib/config.js +3 -3
  33. package/dist/esm/mcp-server/mcp-server.js +1 -1
  34. package/dist/esm/mcp-server/server.js +1 -1
  35. package/dist/esm/models/components/partnercreatedevent.d.ts +2 -2
  36. package/dist/esm/models/components/partnercreatedevent.d.ts.map +1 -1
  37. package/dist/esm/models/components/partnercreatedevent.js +2 -2
  38. package/dist/esm/models/components/partnercreatedevent.js.map +1 -1
  39. package/dist/esm/models/operations/createcustomer.d.ts +8 -33
  40. package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
  41. package/dist/esm/models/operations/createcustomer.js +8 -27
  42. package/dist/esm/models/operations/createcustomer.js.map +1 -1
  43. package/dist/esm/models/operations/createpartner.d.ts +2 -2
  44. package/dist/esm/models/operations/createpartner.d.ts.map +1 -1
  45. package/dist/esm/models/operations/createpartner.js +2 -2
  46. package/dist/esm/models/operations/createpartner.js.map +1 -1
  47. package/dist/esm/models/operations/getcustomer.d.ts +8 -33
  48. package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
  49. package/dist/esm/models/operations/getcustomer.js +8 -27
  50. package/dist/esm/models/operations/getcustomer.js.map +1 -1
  51. package/dist/esm/models/operations/getcustomers.d.ts +8 -33
  52. package/dist/esm/models/operations/getcustomers.d.ts.map +1 -1
  53. package/dist/esm/models/operations/getcustomers.js +8 -27
  54. package/dist/esm/models/operations/getcustomers.js.map +1 -1
  55. package/dist/esm/models/operations/updatecustomer.d.ts +8 -33
  56. package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
  57. package/dist/esm/models/operations/updatecustomer.js +8 -27
  58. package/dist/esm/models/operations/updatecustomer.js.map +1 -1
  59. package/jsr.json +1 -1
  60. package/package.json +1 -1
  61. package/src/lib/config.ts +3 -3
  62. package/src/mcp-server/mcp-server.ts +1 -1
  63. package/src/mcp-server/server.ts +1 -1
  64. package/src/models/components/partnercreatedevent.ts +4 -4
  65. package/src/models/operations/createcustomer.ts +16 -43
  66. package/src/models/operations/createpartner.ts +4 -4
  67. package/src/models/operations/getcustomer.ts +16 -43
  68. package/src/models/operations/getcustomers.ts +16 -43
  69. package/src/models/operations/updatecustomer.ts +16 -43
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.59.0",
34251
- genVersion: "2.545.2",
34252
- userAgent: "speakeasy-sdk/typescript 0.59.0 2.545.2 0.0.1 dub"
34250
+ sdkVersion: "0.59.2",
34251
+ genVersion: "2.546.3",
34252
+ userAgent: "speakeasy-sdk/typescript 0.59.2 2.546.3 0.0.1 dub"
34253
34253
  };
34254
34254
  });
34255
34255
 
@@ -46226,7 +46226,7 @@ var init_partnercreatedevent = __esm(() => {
46226
46226
  image: nullableType(stringType()),
46227
46227
  description: nullableType(stringType()).optional(),
46228
46228
  country: nullableType(stringType()),
46229
- payoutsEnabled: booleanType(),
46229
+ payoutsEnabledAt: nullableType(stringType()),
46230
46230
  createdAt: stringType(),
46231
46231
  status: Status$inboundSchema,
46232
46232
  programId: stringType(),
@@ -46246,7 +46246,7 @@ var init_partnercreatedevent = __esm(() => {
46246
46246
  image: nullableType(stringType()),
46247
46247
  description: nullableType(stringType()).optional(),
46248
46248
  country: nullableType(stringType()),
46249
- payoutsEnabled: booleanType(),
46249
+ payoutsEnabledAt: nullableType(stringType()),
46250
46250
  createdAt: stringType(),
46251
46251
  status: Status$outboundSchema,
46252
46252
  programId: stringType(),
@@ -49329,17 +49329,13 @@ var init_bulkupdatelinks = __esm(() => {
49329
49329
  });
49330
49330
 
49331
49331
  // src/models/operations/createcustomer.ts
49332
- var CreateCustomerType, CreateCustomerInterval, CreateCustomerRequestBody$inboundSchema, CreateCustomerRequestBody$outboundSchema, CreateCustomerRequestBody$, CreateCustomerLink$inboundSchema, CreateCustomerLink$outboundSchema, CreateCustomerLink$, CreateCustomerPartner$inboundSchema, CreateCustomerPartner$outboundSchema, CreateCustomerPartner$, CreateCustomerType$inboundSchema, CreateCustomerType$outboundSchema, CreateCustomerType$, CreateCustomerInterval$inboundSchema, CreateCustomerInterval$outboundSchema, CreateCustomerInterval$, CreateCustomerDiscount$inboundSchema, CreateCustomerDiscount$outboundSchema, CreateCustomerDiscount$, CreateCustomerResponseBody$inboundSchema, CreateCustomerResponseBody$outboundSchema, CreateCustomerResponseBody$;
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$;
49333
49333
  var init_createcustomer = __esm(() => {
49334
49334
  init_lib();
49335
49335
  CreateCustomerType = {
49336
49336
  Percentage: "percentage",
49337
49337
  Flat: "flat"
49338
49338
  };
49339
- CreateCustomerInterval = {
49340
- Month: "month",
49341
- Year: "year"
49342
- };
49343
49339
  CreateCustomerRequestBody$inboundSchema = objectType({
49344
49340
  email: nullableType(stringType()).optional(),
49345
49341
  name: nullableType(stringType()).optional(),
@@ -49396,29 +49392,23 @@ var init_createcustomer = __esm(() => {
49396
49392
  CreateCustomerType$.inboundSchema = CreateCustomerType$inboundSchema;
49397
49393
  CreateCustomerType$.outboundSchema = CreateCustomerType$outboundSchema;
49398
49394
  })(CreateCustomerType$ ||= {});
49399
- CreateCustomerInterval$inboundSchema = nativeEnumType(CreateCustomerInterval);
49400
- CreateCustomerInterval$outboundSchema = CreateCustomerInterval$inboundSchema;
49401
- ((CreateCustomerInterval$) => {
49402
- CreateCustomerInterval$.inboundSchema = CreateCustomerInterval$inboundSchema;
49403
- CreateCustomerInterval$.outboundSchema = CreateCustomerInterval$outboundSchema;
49404
- })(CreateCustomerInterval$ ||= {});
49405
49395
  CreateCustomerDiscount$inboundSchema = objectType({
49406
49396
  id: stringType(),
49407
- couponId: nullableType(stringType()),
49408
- couponTestId: nullableType(stringType()),
49409
49397
  amount: numberType(),
49410
49398
  type: CreateCustomerType$inboundSchema,
49411
- duration: nullableType(numberType()),
49412
- interval: nullableType(CreateCustomerInterval$inboundSchema)
49399
+ maxDuration: nullableType(numberType()),
49400
+ couponId: nullableType(stringType()),
49401
+ couponTestId: nullableType(stringType()),
49402
+ partnersCount: nullableType(numberType()).optional()
49413
49403
  });
49414
49404
  CreateCustomerDiscount$outboundSchema = objectType({
49415
49405
  id: stringType(),
49416
- couponId: nullableType(stringType()),
49417
- couponTestId: nullableType(stringType()),
49418
49406
  amount: numberType(),
49419
49407
  type: CreateCustomerType$outboundSchema,
49420
- duration: nullableType(numberType()),
49421
- interval: nullableType(CreateCustomerInterval$outboundSchema)
49408
+ maxDuration: nullableType(numberType()),
49409
+ couponId: nullableType(stringType()),
49410
+ couponTestId: nullableType(stringType()),
49411
+ partnersCount: nullableType(numberType()).optional()
49422
49412
  });
49423
49413
  ((CreateCustomerDiscount$) => {
49424
49414
  CreateCustomerDiscount$.inboundSchema = CreateCustomerDiscount$inboundSchema;
@@ -50049,7 +50039,7 @@ var init_createpartner = __esm(() => {
50049
50039
  image: nullableType(stringType()),
50050
50040
  description: nullableType(stringType()).optional(),
50051
50041
  country: nullableType(stringType()),
50052
- payoutsEnabled: booleanType(),
50042
+ payoutsEnabledAt: nullableType(stringType()),
50053
50043
  createdAt: stringType(),
50054
50044
  status: Status$inboundSchema2,
50055
50045
  programId: stringType(),
@@ -50069,7 +50059,7 @@ var init_createpartner = __esm(() => {
50069
50059
  image: nullableType(stringType()),
50070
50060
  description: nullableType(stringType()).optional(),
50071
50061
  country: nullableType(stringType()),
50072
- payoutsEnabled: booleanType(),
50062
+ payoutsEnabledAt: nullableType(stringType()),
50073
50063
  createdAt: stringType(),
50074
50064
  status: Status$outboundSchema2,
50075
50065
  programId: stringType(),
@@ -50776,17 +50766,13 @@ var init_deletetag = __esm(() => {
50776
50766
  });
50777
50767
 
50778
50768
  // src/models/operations/getcustomer.ts
50779
- 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$;
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$;
50780
50770
  var init_getcustomer = __esm(() => {
50781
50771
  init_lib();
50782
50772
  GetCustomerType = {
50783
50773
  Percentage: "percentage",
50784
50774
  Flat: "flat"
50785
50775
  };
50786
- GetCustomerInterval = {
50787
- Month: "month",
50788
- Year: "year"
50789
- };
50790
50776
  GetCustomerRequest$inboundSchema = objectType({
50791
50777
  id: stringType(),
50792
50778
  includeExpandedFields: booleanType().optional()
@@ -50839,29 +50825,23 @@ var init_getcustomer = __esm(() => {
50839
50825
  GetCustomerType$.inboundSchema = GetCustomerType$inboundSchema;
50840
50826
  GetCustomerType$.outboundSchema = GetCustomerType$outboundSchema;
50841
50827
  })(GetCustomerType$ ||= {});
50842
- GetCustomerInterval$inboundSchema = nativeEnumType(GetCustomerInterval);
50843
- GetCustomerInterval$outboundSchema = GetCustomerInterval$inboundSchema;
50844
- ((GetCustomerInterval$) => {
50845
- GetCustomerInterval$.inboundSchema = GetCustomerInterval$inboundSchema;
50846
- GetCustomerInterval$.outboundSchema = GetCustomerInterval$outboundSchema;
50847
- })(GetCustomerInterval$ ||= {});
50848
50828
  GetCustomerDiscount$inboundSchema = objectType({
50849
50829
  id: stringType(),
50850
- couponId: nullableType(stringType()),
50851
- couponTestId: nullableType(stringType()),
50852
50830
  amount: numberType(),
50853
50831
  type: GetCustomerType$inboundSchema,
50854
- duration: nullableType(numberType()),
50855
- interval: nullableType(GetCustomerInterval$inboundSchema)
50832
+ maxDuration: nullableType(numberType()),
50833
+ couponId: nullableType(stringType()),
50834
+ couponTestId: nullableType(stringType()),
50835
+ partnersCount: nullableType(numberType()).optional()
50856
50836
  });
50857
50837
  GetCustomerDiscount$outboundSchema = objectType({
50858
50838
  id: stringType(),
50859
- couponId: nullableType(stringType()),
50860
- couponTestId: nullableType(stringType()),
50861
50839
  amount: numberType(),
50862
50840
  type: GetCustomerType$outboundSchema,
50863
- duration: nullableType(numberType()),
50864
- interval: nullableType(GetCustomerInterval$outboundSchema)
50841
+ maxDuration: nullableType(numberType()),
50842
+ couponId: nullableType(stringType()),
50843
+ couponTestId: nullableType(stringType()),
50844
+ partnersCount: nullableType(numberType()).optional()
50865
50845
  });
50866
50846
  ((GetCustomerDiscount$) => {
50867
50847
  GetCustomerDiscount$.inboundSchema = GetCustomerDiscount$inboundSchema;
@@ -50898,17 +50878,13 @@ var init_getcustomer = __esm(() => {
50898
50878
  });
50899
50879
 
50900
50880
  // src/models/operations/getcustomers.ts
50901
- 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$inboundSchema, Discount$outboundSchema, Discount$, GetCustomersResponseBody$inboundSchema, GetCustomersResponseBody$outboundSchema, GetCustomersResponseBody$;
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$;
50902
50882
  var init_getcustomers = __esm(() => {
50903
50883
  init_lib();
50904
50884
  Type2 = {
50905
50885
  Percentage: "percentage",
50906
50886
  Flat: "flat"
50907
50887
  };
50908
- GetCustomersInterval = {
50909
- Month: "month",
50910
- Year: "year"
50911
- };
50912
50888
  GetCustomersRequest$inboundSchema = objectType({
50913
50889
  email: stringType().optional(),
50914
50890
  externalId: stringType().optional(),
@@ -50963,29 +50939,23 @@ var init_getcustomers = __esm(() => {
50963
50939
  Type$.inboundSchema = Type$inboundSchema2;
50964
50940
  Type$.outboundSchema = Type$outboundSchema2;
50965
50941
  })(Type$2 ||= {});
50966
- GetCustomersInterval$inboundSchema = nativeEnumType(GetCustomersInterval);
50967
- GetCustomersInterval$outboundSchema = GetCustomersInterval$inboundSchema;
50968
- ((GetCustomersInterval$) => {
50969
- GetCustomersInterval$.inboundSchema = GetCustomersInterval$inboundSchema;
50970
- GetCustomersInterval$.outboundSchema = GetCustomersInterval$outboundSchema;
50971
- })(GetCustomersInterval$ ||= {});
50972
50942
  Discount$inboundSchema = objectType({
50973
50943
  id: stringType(),
50974
- couponId: nullableType(stringType()),
50975
- couponTestId: nullableType(stringType()),
50976
50944
  amount: numberType(),
50977
50945
  type: Type$inboundSchema2,
50978
- duration: nullableType(numberType()),
50979
- interval: nullableType(GetCustomersInterval$inboundSchema)
50946
+ maxDuration: nullableType(numberType()),
50947
+ couponId: nullableType(stringType()),
50948
+ couponTestId: nullableType(stringType()),
50949
+ partnersCount: nullableType(numberType()).optional()
50980
50950
  });
50981
50951
  Discount$outboundSchema = objectType({
50982
50952
  id: stringType(),
50983
- couponId: nullableType(stringType()),
50984
- couponTestId: nullableType(stringType()),
50985
50953
  amount: numberType(),
50986
50954
  type: Type$outboundSchema2,
50987
- duration: nullableType(numberType()),
50988
- interval: nullableType(GetCustomersInterval$outboundSchema)
50955
+ maxDuration: nullableType(numberType()),
50956
+ couponId: nullableType(stringType()),
50957
+ couponTestId: nullableType(stringType()),
50958
+ partnersCount: nullableType(numberType()).optional()
50989
50959
  });
50990
50960
  ((Discount$) => {
50991
50961
  Discount$.inboundSchema = Discount$inboundSchema;
@@ -52124,7 +52094,7 @@ var init_tracksale = __esm(() => {
52124
52094
  });
52125
52095
 
52126
52096
  // src/models/operations/updatecustomer.ts
52127
- var UpdateCustomerType, UpdateCustomerInterval, 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$, UpdateCustomerInterval$inboundSchema, UpdateCustomerInterval$outboundSchema, UpdateCustomerInterval$, UpdateCustomerDiscount$inboundSchema, UpdateCustomerDiscount$outboundSchema, UpdateCustomerDiscount$, UpdateCustomerResponseBody$inboundSchema, UpdateCustomerResponseBody$outboundSchema, UpdateCustomerResponseBody$;
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$;
52128
52098
  var init_updatecustomer = __esm(() => {
52129
52099
  init_lib();
52130
52100
  init_primitives();
@@ -52132,10 +52102,6 @@ var init_updatecustomer = __esm(() => {
52132
52102
  Percentage: "percentage",
52133
52103
  Flat: "flat"
52134
52104
  };
52135
- UpdateCustomerInterval = {
52136
- Month: "month",
52137
- Year: "year"
52138
- };
52139
52105
  UpdateCustomerRequestBody$inboundSchema = objectType({
52140
52106
  email: nullableType(stringType()).optional(),
52141
52107
  name: nullableType(stringType()).optional(),
@@ -52214,29 +52180,23 @@ var init_updatecustomer = __esm(() => {
52214
52180
  UpdateCustomerType$.inboundSchema = UpdateCustomerType$inboundSchema;
52215
52181
  UpdateCustomerType$.outboundSchema = UpdateCustomerType$outboundSchema;
52216
52182
  })(UpdateCustomerType$ ||= {});
52217
- UpdateCustomerInterval$inboundSchema = nativeEnumType(UpdateCustomerInterval);
52218
- UpdateCustomerInterval$outboundSchema = UpdateCustomerInterval$inboundSchema;
52219
- ((UpdateCustomerInterval$) => {
52220
- UpdateCustomerInterval$.inboundSchema = UpdateCustomerInterval$inboundSchema;
52221
- UpdateCustomerInterval$.outboundSchema = UpdateCustomerInterval$outboundSchema;
52222
- })(UpdateCustomerInterval$ ||= {});
52223
52183
  UpdateCustomerDiscount$inboundSchema = objectType({
52224
52184
  id: stringType(),
52225
- couponId: nullableType(stringType()),
52226
- couponTestId: nullableType(stringType()),
52227
52185
  amount: numberType(),
52228
52186
  type: UpdateCustomerType$inboundSchema,
52229
- duration: nullableType(numberType()),
52230
- interval: nullableType(UpdateCustomerInterval$inboundSchema)
52187
+ maxDuration: nullableType(numberType()),
52188
+ couponId: nullableType(stringType()),
52189
+ couponTestId: nullableType(stringType()),
52190
+ partnersCount: nullableType(numberType()).optional()
52231
52191
  });
52232
52192
  UpdateCustomerDiscount$outboundSchema = objectType({
52233
52193
  id: stringType(),
52234
- couponId: nullableType(stringType()),
52235
- couponTestId: nullableType(stringType()),
52236
52194
  amount: numberType(),
52237
52195
  type: UpdateCustomerType$outboundSchema,
52238
- duration: nullableType(numberType()),
52239
- interval: nullableType(UpdateCustomerInterval$outboundSchema)
52196
+ maxDuration: nullableType(numberType()),
52197
+ couponId: nullableType(stringType()),
52198
+ couponTestId: nullableType(stringType()),
52199
+ partnersCount: nullableType(numberType()).optional()
52240
52200
  });
52241
52201
  ((UpdateCustomerDiscount$) => {
52242
52202
  UpdateCustomerDiscount$.inboundSchema = UpdateCustomerDiscount$inboundSchema;
@@ -58005,7 +57965,7 @@ Update a workspace by ID or slug.`,
58005
57965
  function createMCPServer(deps) {
58006
57966
  const server = new McpServer({
58007
57967
  name: "Dub",
58008
- version: "0.59.0"
57968
+ version: "0.59.2"
58009
57969
  });
58010
57970
  const client = new DubCore({
58011
57971
  token: deps.token,
@@ -59297,7 +59257,7 @@ var routes = rn({
59297
59257
  var app = Ve(routes, {
59298
59258
  name: "mcp",
59299
59259
  versionInfo: {
59300
- currentVersion: "0.59.0"
59260
+ currentVersion: "0.59.2"
59301
59261
  }
59302
59262
  });
59303
59263
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -59305,5 +59265,5 @@ export {
59305
59265
  app
59306
59266
  };
59307
59267
 
59308
- //# debugId=092866800639C29B64756E2164756E21
59268
+ //# debugId=B1E6A31480E5A1C564756E2164756E21
59309
59269
  //# sourceMappingURL=mcp-server.js.map