dub 0.71.3 → 0.71.5

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 (152) hide show
  1. package/README.md +2 -2
  2. package/dist/commonjs/funcs/analyticsRetrieve.js +0 -1
  3. package/dist/commonjs/funcs/analyticsRetrieve.js.map +1 -1
  4. package/dist/commonjs/funcs/commissionsUpdate.d.ts +1 -1
  5. package/dist/commonjs/funcs/commissionsUpdate.js +1 -1
  6. package/dist/commonjs/funcs/domainsList.js.map +1 -1
  7. package/dist/commonjs/funcs/eventsList.js +0 -1
  8. package/dist/commonjs/funcs/eventsList.js.map +1 -1
  9. package/dist/commonjs/funcs/linksList.js.map +1 -1
  10. package/dist/commonjs/lib/config.d.ts +3 -3
  11. package/dist/commonjs/lib/config.js +3 -3
  12. package/dist/commonjs/lib/config.js.map +1 -1
  13. package/dist/commonjs/models/components/analyticstoplinks.d.ts +10 -2
  14. package/dist/commonjs/models/components/analyticstoplinks.d.ts.map +1 -1
  15. package/dist/commonjs/models/components/analyticstoplinks.js +3 -1
  16. package/dist/commonjs/models/components/analyticstoplinks.js.map +1 -1
  17. package/dist/commonjs/models/components/linktagschema.d.ts +1 -0
  18. package/dist/commonjs/models/components/linktagschema.d.ts.map +1 -1
  19. package/dist/commonjs/models/components/linktagschema.js +1 -0
  20. package/dist/commonjs/models/components/linktagschema.js.map +1 -1
  21. package/dist/commonjs/models/components/linktagschemaoutput.d.ts +1 -0
  22. package/dist/commonjs/models/components/linktagschemaoutput.d.ts.map +1 -1
  23. package/dist/commonjs/models/components/linktagschemaoutput.js +1 -0
  24. package/dist/commonjs/models/components/linktagschemaoutput.js.map +1 -1
  25. package/dist/commonjs/models/components/partneranalyticstoplinks.d.ts +10 -2
  26. package/dist/commonjs/models/components/partneranalyticstoplinks.d.ts.map +1 -1
  27. package/dist/commonjs/models/components/partneranalyticstoplinks.js +3 -1
  28. package/dist/commonjs/models/components/partneranalyticstoplinks.js.map +1 -1
  29. package/dist/commonjs/models/operations/approvebountysubmission.d.ts +8 -0
  30. package/dist/commonjs/models/operations/approvebountysubmission.d.ts.map +1 -1
  31. package/dist/commonjs/models/operations/approvebountysubmission.js +2 -0
  32. package/dist/commonjs/models/operations/approvebountysubmission.js.map +1 -1
  33. package/dist/commonjs/models/operations/createtag.d.ts +4 -3
  34. package/dist/commonjs/models/operations/createtag.d.ts.map +1 -1
  35. package/dist/commonjs/models/operations/createtag.js +2 -1
  36. package/dist/commonjs/models/operations/createtag.js.map +1 -1
  37. package/dist/commonjs/models/operations/listbountysubmissions.d.ts +9 -0
  38. package/dist/commonjs/models/operations/listbountysubmissions.d.ts.map +1 -1
  39. package/dist/commonjs/models/operations/listbountysubmissions.js +3 -0
  40. package/dist/commonjs/models/operations/listbountysubmissions.js.map +1 -1
  41. package/dist/commonjs/models/operations/listevents.d.ts +58 -105
  42. package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
  43. package/dist/commonjs/models/operations/listevents.js +13 -45
  44. package/dist/commonjs/models/operations/listevents.js.map +1 -1
  45. package/dist/commonjs/models/operations/listpayouts.d.ts +10 -0
  46. package/dist/commonjs/models/operations/listpayouts.d.ts.map +1 -1
  47. package/dist/commonjs/models/operations/listpayouts.js +11 -1
  48. package/dist/commonjs/models/operations/listpayouts.js.map +1 -1
  49. package/dist/commonjs/models/operations/rejectbountysubmission.d.ts +8 -0
  50. package/dist/commonjs/models/operations/rejectbountysubmission.d.ts.map +1 -1
  51. package/dist/commonjs/models/operations/rejectbountysubmission.js +2 -0
  52. package/dist/commonjs/models/operations/rejectbountysubmission.js.map +1 -1
  53. package/dist/commonjs/models/operations/retrieveanalytics.d.ts +58 -105
  54. package/dist/commonjs/models/operations/retrieveanalytics.d.ts.map +1 -1
  55. package/dist/commonjs/models/operations/retrieveanalytics.js +13 -47
  56. package/dist/commonjs/models/operations/retrieveanalytics.js.map +1 -1
  57. package/dist/commonjs/models/operations/retrievepartneranalytics.d.ts +1 -1
  58. package/dist/commonjs/models/operations/updatetag.d.ts +4 -3
  59. package/dist/commonjs/models/operations/updatetag.d.ts.map +1 -1
  60. package/dist/commonjs/models/operations/updatetag.js +2 -1
  61. package/dist/commonjs/models/operations/updatetag.js.map +1 -1
  62. package/dist/commonjs/sdk/commissions.d.ts +1 -1
  63. package/dist/commonjs/sdk/commissions.js +1 -1
  64. package/dist/esm/funcs/analyticsRetrieve.js +0 -1
  65. package/dist/esm/funcs/analyticsRetrieve.js.map +1 -1
  66. package/dist/esm/funcs/commissionsUpdate.d.ts +1 -1
  67. package/dist/esm/funcs/commissionsUpdate.js +1 -1
  68. package/dist/esm/funcs/domainsList.js.map +1 -1
  69. package/dist/esm/funcs/eventsList.js +0 -1
  70. package/dist/esm/funcs/eventsList.js.map +1 -1
  71. package/dist/esm/funcs/linksList.js.map +1 -1
  72. package/dist/esm/lib/config.d.ts +3 -3
  73. package/dist/esm/lib/config.js +3 -3
  74. package/dist/esm/lib/config.js.map +1 -1
  75. package/dist/esm/models/components/analyticstoplinks.d.ts +10 -2
  76. package/dist/esm/models/components/analyticstoplinks.d.ts.map +1 -1
  77. package/dist/esm/models/components/analyticstoplinks.js +3 -1
  78. package/dist/esm/models/components/analyticstoplinks.js.map +1 -1
  79. package/dist/esm/models/components/linktagschema.d.ts +1 -0
  80. package/dist/esm/models/components/linktagschema.d.ts.map +1 -1
  81. package/dist/esm/models/components/linktagschema.js +1 -0
  82. package/dist/esm/models/components/linktagschema.js.map +1 -1
  83. package/dist/esm/models/components/linktagschemaoutput.d.ts +1 -0
  84. package/dist/esm/models/components/linktagschemaoutput.d.ts.map +1 -1
  85. package/dist/esm/models/components/linktagschemaoutput.js +1 -0
  86. package/dist/esm/models/components/linktagschemaoutput.js.map +1 -1
  87. package/dist/esm/models/components/partneranalyticstoplinks.d.ts +10 -2
  88. package/dist/esm/models/components/partneranalyticstoplinks.d.ts.map +1 -1
  89. package/dist/esm/models/components/partneranalyticstoplinks.js +3 -1
  90. package/dist/esm/models/components/partneranalyticstoplinks.js.map +1 -1
  91. package/dist/esm/models/operations/approvebountysubmission.d.ts +8 -0
  92. package/dist/esm/models/operations/approvebountysubmission.d.ts.map +1 -1
  93. package/dist/esm/models/operations/approvebountysubmission.js +2 -0
  94. package/dist/esm/models/operations/approvebountysubmission.js.map +1 -1
  95. package/dist/esm/models/operations/createtag.d.ts +4 -3
  96. package/dist/esm/models/operations/createtag.d.ts.map +1 -1
  97. package/dist/esm/models/operations/createtag.js +2 -1
  98. package/dist/esm/models/operations/createtag.js.map +1 -1
  99. package/dist/esm/models/operations/listbountysubmissions.d.ts +9 -0
  100. package/dist/esm/models/operations/listbountysubmissions.d.ts.map +1 -1
  101. package/dist/esm/models/operations/listbountysubmissions.js +3 -0
  102. package/dist/esm/models/operations/listbountysubmissions.js.map +1 -1
  103. package/dist/esm/models/operations/listevents.d.ts +58 -105
  104. package/dist/esm/models/operations/listevents.d.ts.map +1 -1
  105. package/dist/esm/models/operations/listevents.js +12 -43
  106. package/dist/esm/models/operations/listevents.js.map +1 -1
  107. package/dist/esm/models/operations/listpayouts.d.ts +10 -0
  108. package/dist/esm/models/operations/listpayouts.d.ts.map +1 -1
  109. package/dist/esm/models/operations/listpayouts.js +10 -0
  110. package/dist/esm/models/operations/listpayouts.js.map +1 -1
  111. package/dist/esm/models/operations/rejectbountysubmission.d.ts +8 -0
  112. package/dist/esm/models/operations/rejectbountysubmission.d.ts.map +1 -1
  113. package/dist/esm/models/operations/rejectbountysubmission.js +2 -0
  114. package/dist/esm/models/operations/rejectbountysubmission.js.map +1 -1
  115. package/dist/esm/models/operations/retrieveanalytics.d.ts +58 -105
  116. package/dist/esm/models/operations/retrieveanalytics.d.ts.map +1 -1
  117. package/dist/esm/models/operations/retrieveanalytics.js +12 -45
  118. package/dist/esm/models/operations/retrieveanalytics.js.map +1 -1
  119. package/dist/esm/models/operations/retrievepartneranalytics.d.ts +1 -1
  120. package/dist/esm/models/operations/updatetag.d.ts +4 -3
  121. package/dist/esm/models/operations/updatetag.d.ts.map +1 -1
  122. package/dist/esm/models/operations/updatetag.js +2 -1
  123. package/dist/esm/models/operations/updatetag.js.map +1 -1
  124. package/dist/esm/sdk/commissions.d.ts +1 -1
  125. package/dist/esm/sdk/commissions.js +1 -1
  126. package/jsr.json +1 -1
  127. package/package.json +1 -1
  128. package/src/funcs/analyticsRetrieve.ts +0 -1
  129. package/src/funcs/commissionsUpdate.ts +1 -1
  130. package/src/funcs/domainsList.ts +1 -1
  131. package/src/funcs/eventsList.ts +0 -1
  132. package/src/funcs/linksList.ts +1 -1
  133. package/src/lib/config.ts +3 -3
  134. package/src/models/components/analyticstoplinks.ts +13 -3
  135. package/src/models/components/linktagschema.ts +1 -0
  136. package/src/models/components/linktagschemaoutput.ts +1 -0
  137. package/src/models/components/partneranalyticstoplinks.ts +13 -3
  138. package/src/models/operations/approvebountysubmission.ts +10 -0
  139. package/src/models/operations/createtag.ts +4 -3
  140. package/src/models/operations/listbountysubmissions.ts +11 -0
  141. package/src/models/operations/listevents.ts +70 -140
  142. package/src/models/operations/listpayouts.ts +15 -0
  143. package/src/models/operations/rejectbountysubmission.ts +10 -0
  144. package/src/models/operations/retrieveanalytics.ts +70 -140
  145. package/src/models/operations/retrievepartneranalytics.ts +1 -1
  146. package/src/models/operations/updatetag.ts +4 -3
  147. package/src/sdk/commissions.ts +1 -1
  148. package/_speakeasy/.github/action-inputs-config.json +0 -53
  149. package/_speakeasy/.github/action-security-config.json +0 -88
  150. package/examples/package-lock.json +0 -613
  151. package/examples/package.json +0 -18
  152. package/tsconfig.json +0 -40
@@ -42,42 +42,6 @@ export const QueryParamInterval = {
42
42
  */
43
43
  export type QueryParamInterval = ClosedEnum<typeof QueryParamInterval>;
44
44
 
45
- /**
46
- * The continent to retrieve analytics for.
47
- */
48
- export const QueryParamContinent = {
49
- Af: "AF",
50
- An: "AN",
51
- As: "AS",
52
- Eu: "EU",
53
- Na: "NA",
54
- Oc: "OC",
55
- Sa: "SA",
56
- } as const;
57
- /**
58
- * The continent to retrieve analytics for.
59
- */
60
- export type QueryParamContinent = ClosedEnum<typeof QueryParamContinent>;
61
-
62
- /**
63
- * The trigger to retrieve analytics for. If undefined, returns all trigger types.
64
- */
65
- export const QueryParamTrigger = {
66
- Qr: "qr",
67
- Link: "link",
68
- Pageview: "pageview",
69
- Deeplink: "deeplink",
70
- } as const;
71
- /**
72
- * The trigger to retrieve analytics for. If undefined, returns all trigger types.
73
- */
74
- export type QueryParamTrigger = ClosedEnum<typeof QueryParamTrigger>;
75
-
76
- /**
77
- * The tag IDs to retrieve analytics for.
78
- */
79
- export type ListEventsQueryParamTagIds = string | Array<string>;
80
-
81
45
  /**
82
46
  * Filter sales by type: 'new' for first-time purchases, 'recurring' for repeat purchases. If undefined, returns both.
83
47
  */
@@ -135,7 +99,7 @@ export type ListEventsRequest = {
135
99
  */
136
100
  event?: QueryParamEvent | undefined;
137
101
  /**
138
- * The domain to filter analytics for.
102
+ * The domain to filter analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `dub.co`, `dub.co,google.com`, `-spam.com`.
139
103
  */
140
104
  domain?: string | undefined;
141
105
  /**
@@ -143,7 +107,7 @@ export type ListEventsRequest = {
143
107
  */
144
108
  key?: string | undefined;
145
109
  /**
146
- * The unique ID of the short link on Dub to retrieve analytics for.
110
+ * The unique ID of the link to retrieve analytics for.Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `link_123`, `link_123,link_456`, `-link_789`.
147
111
  */
148
112
  linkId?: string | undefined;
149
113
  /**
@@ -151,15 +115,23 @@ export type ListEventsRequest = {
151
115
  */
152
116
  externalId?: string | undefined;
153
117
  /**
154
- * The ID of the tenant that created the link inside your system.
118
+ * The ID of the tenant that created the link inside your system. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `tenant_123`, `tenant_123,tenant_456`, `-tenant_789`.
155
119
  */
156
120
  tenantId?: string | undefined;
157
121
  /**
158
- * The ID of the program to retrieve analytics for.
122
+ * The tag ID to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `tag_123`, `tag_123,tag_456`, `-tag_789`.
159
123
  */
160
- programId?: string | undefined;
124
+ tagId?: string | undefined;
161
125
  /**
162
- * The ID of the partner to retrieve analytics for.
126
+ * The folder ID to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `folder_123`, `folder_123,folder_456`, `-folder_789`. If not provided, return analytics for all links.
127
+ */
128
+ folderId?: string | undefined;
129
+ /**
130
+ * The group ID to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `grp_123`, `grp_123,grp_456`, `-grp_789`.
131
+ */
132
+ groupId?: string | undefined;
133
+ /**
134
+ * The ID of the partner to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `pn_123`, `pn_123,pn_456`, `-pn_789`.
163
135
  */
164
136
  partnerId?: string | undefined;
165
137
  /**
@@ -183,61 +155,69 @@ export type ListEventsRequest = {
183
155
  */
184
156
  timezone?: string | undefined;
185
157
  /**
186
- * The country to retrieve analytics for. Must be passed as a 2-letter ISO 3166-1 country code. See https://d.to/geo for more information.
158
+ * The country to retrieve analytics for. Must be passed as a 2-letter ISO 3166-1 country code (see https://d.to/geo). Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `US`, `US,BR,FR`, `-US`.
187
159
  */
188
160
  country?: string | undefined;
189
161
  /**
190
- * The city to retrieve analytics for.
162
+ * The city to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `New York`, `New York,London`, `-New York`.
191
163
  */
192
164
  city?: string | undefined;
193
165
  /**
194
- * The ISO 3166-2 region code to retrieve analytics for.
166
+ * The ISO 3166-2 region code to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `NY`, `NY,CA`, `-NY`.
195
167
  */
196
168
  region?: string | undefined;
197
169
  /**
198
- * The continent to retrieve analytics for.
170
+ * The continent to retrieve analytics for. Valid values: AF, AN, AS, EU, NA, OC, SA. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `NA`, `NA,EU`, `-AS`.
199
171
  */
200
- continent?: QueryParamContinent | undefined;
172
+ continent?: string | undefined;
201
173
  /**
202
- * The device to retrieve analytics for.
174
+ * The device to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `Desktop`, `Mobile,Tablet`, `-Mobile`.
203
175
  */
204
176
  device?: string | undefined;
205
177
  /**
206
- * The browser to retrieve analytics for.
178
+ * The browser to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `Chrome`, `Chrome,Firefox,Safari`, `-IE`.
207
179
  */
208
180
  browser?: string | undefined;
209
181
  /**
210
- * The OS to retrieve analytics for.
182
+ * The OS to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `Windows`, `Mac,Windows,Linux`, `-Windows`.
211
183
  */
212
184
  os?: string | undefined;
213
185
  /**
214
- * The trigger to retrieve analytics for. If undefined, returns all trigger types.
186
+ * The trigger to retrieve analytics for. Valid values: qr, link, pageview. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `qr`, `qr,link`, `-qr`. If undefined, returns all trigger types.
215
187
  */
216
- trigger?: QueryParamTrigger | undefined;
188
+ trigger?: string | undefined;
217
189
  /**
218
- * The referer hostname to retrieve analytics for.
190
+ * The referer hostname to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `google.com`, `google.com,twitter.com`, `-facebook.com`.
219
191
  */
220
192
  referer?: string | undefined;
221
193
  /**
222
- * The full referer URL to retrieve analytics for.
194
+ * The full referer URL to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `https://google.com`, `https://google.com,https://twitter.com`, `-https://spam.com`.
223
195
  */
224
196
  refererUrl?: string | undefined;
225
197
  /**
226
- * The URL to retrieve analytics for.
198
+ * The destination URL to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `https://example.com`, `https://example.com,https://other.com`, `-https://spam.com`.
227
199
  */
228
200
  url?: string | undefined;
229
201
  /**
230
- * The tag IDs to retrieve analytics for.
202
+ * The UTM source to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `google`, `google,twitter`, `-spam`.
231
203
  */
232
- tagIds?: string | Array<string> | undefined;
204
+ utmSource?: string | undefined;
233
205
  /**
234
- * The folder ID to retrieve analytics for. If not provided, return analytics for unsorted links.
206
+ * The UTM medium to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `cpc`, `cpc,social`, `-email`.
235
207
  */
236
- folderId?: string | undefined;
208
+ utmMedium?: string | undefined;
237
209
  /**
238
- * The group ID to retrieve analytics for.
210
+ * The UTM campaign to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `summer_sale`, `summer_sale,winter_sale`, `-old_campaign`.
239
211
  */
240
- groupId?: string | undefined;
212
+ utmCampaign?: string | undefined;
213
+ /**
214
+ * The UTM term to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`).
215
+ */
216
+ utmTerm?: string | undefined;
217
+ /**
218
+ * The UTM content to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`).
219
+ */
220
+ utmContent?: string | undefined;
241
221
  /**
242
222
  * Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both.
243
223
  */
@@ -247,41 +227,21 @@ export type ListEventsRequest = {
247
227
  */
248
228
  saleType?: QueryParamSaleType | undefined;
249
229
  /**
250
- * Search the events by a custom metadata value. Only available for lead and sale events.
230
+ * Search the events by a custom metadata value. Only available for lead and sale events. Examples: `metadata['key']:'value'`
251
231
  */
252
232
  query?: string | undefined;
253
233
  /**
254
- * Deprecated: Use `tagIds` instead. The tag ID to retrieve analytics for.
255
- */
256
- tagId?: string | undefined;
257
- /**
258
- * Deprecated: Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both.
259
- */
260
- qr?: boolean | undefined;
261
- /**
262
- * The UTM source of the short link.
263
- */
264
- utmSource?: string | null | undefined;
265
- /**
266
- * The UTM medium of the short link.
267
- */
268
- utmMedium?: string | null | undefined;
269
- /**
270
- * The UTM campaign of the short link.
234
+ * Deprecated: This is automatically inferred from your workspace's defaultProgramId. The ID of the program to retrieve analytics for.
271
235
  */
272
- utmCampaign?: string | null | undefined;
273
- /**
274
- * The UTM term of the short link.
275
- */
276
- utmTerm?: string | null | undefined;
236
+ programId?: string | undefined;
277
237
  /**
278
- * The UTM content of the short link.
238
+ * Deprecated: Use `tagId` instead. The tag IDs to retrieve analytics for.
279
239
  */
280
- utmContent?: string | null | undefined;
240
+ tagIds?: string | undefined;
281
241
  /**
282
- * The ref of the short link.
242
+ * Deprecated: Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both.
283
243
  */
284
- ref?: string | null | undefined;
244
+ qr?: boolean | undefined;
285
245
  page?: number | undefined;
286
246
  limit?: number | undefined;
287
247
  /**
@@ -1288,34 +1248,6 @@ export const QueryParamInterval$outboundSchema: z.ZodNativeEnum<
1288
1248
  typeof QueryParamInterval
1289
1249
  > = z.nativeEnum(QueryParamInterval);
1290
1250
 
1291
- /** @internal */
1292
- export const QueryParamContinent$outboundSchema: z.ZodNativeEnum<
1293
- typeof QueryParamContinent
1294
- > = z.nativeEnum(QueryParamContinent);
1295
-
1296
- /** @internal */
1297
- export const QueryParamTrigger$outboundSchema: z.ZodNativeEnum<
1298
- typeof QueryParamTrigger
1299
- > = z.nativeEnum(QueryParamTrigger);
1300
-
1301
- /** @internal */
1302
- export type ListEventsQueryParamTagIds$Outbound = string | Array<string>;
1303
-
1304
- /** @internal */
1305
- export const ListEventsQueryParamTagIds$outboundSchema: z.ZodType<
1306
- ListEventsQueryParamTagIds$Outbound,
1307
- z.ZodTypeDef,
1308
- ListEventsQueryParamTagIds
1309
- > = z.union([z.string(), z.array(z.string())]);
1310
-
1311
- export function listEventsQueryParamTagIdsToJSON(
1312
- listEventsQueryParamTagIds: ListEventsQueryParamTagIds,
1313
- ): string {
1314
- return JSON.stringify(
1315
- ListEventsQueryParamTagIds$outboundSchema.parse(listEventsQueryParamTagIds),
1316
- );
1317
- }
1318
-
1319
1251
  /** @internal */
1320
1252
  export const QueryParamSaleType$outboundSchema: z.ZodNativeEnum<
1321
1253
  typeof QueryParamSaleType
@@ -1344,7 +1276,9 @@ export type ListEventsRequest$Outbound = {
1344
1276
  linkId?: string | undefined;
1345
1277
  externalId?: string | undefined;
1346
1278
  tenantId?: string | undefined;
1347
- programId?: string | undefined;
1279
+ tagId?: string | undefined;
1280
+ folderId?: string | undefined;
1281
+ groupId?: string | undefined;
1348
1282
  partnerId?: string | undefined;
1349
1283
  customerId?: string | undefined;
1350
1284
  interval?: string | undefined;
@@ -1362,20 +1296,17 @@ export type ListEventsRequest$Outbound = {
1362
1296
  referer?: string | undefined;
1363
1297
  refererUrl?: string | undefined;
1364
1298
  url?: string | undefined;
1365
- tagIds?: string | Array<string> | undefined;
1366
- folderId?: string | undefined;
1367
- groupId?: string | undefined;
1299
+ utm_source?: string | undefined;
1300
+ utm_medium?: string | undefined;
1301
+ utm_campaign?: string | undefined;
1302
+ utm_term?: string | undefined;
1303
+ utm_content?: string | undefined;
1368
1304
  root?: boolean | undefined;
1369
1305
  saleType?: string | undefined;
1370
1306
  query?: string | undefined;
1371
- tagId?: string | undefined;
1307
+ programId?: string | undefined;
1308
+ tagIds?: string | undefined;
1372
1309
  qr?: boolean | undefined;
1373
- utm_source?: string | null | undefined;
1374
- utm_medium?: string | null | undefined;
1375
- utm_campaign?: string | null | undefined;
1376
- utm_term?: string | null | undefined;
1377
- utm_content?: string | null | undefined;
1378
- ref?: string | null | undefined;
1379
1310
  page: number;
1380
1311
  limit: number;
1381
1312
  sortOrder: string;
@@ -1395,7 +1326,9 @@ export const ListEventsRequest$outboundSchema: z.ZodType<
1395
1326
  linkId: z.string().optional(),
1396
1327
  externalId: z.string().optional(),
1397
1328
  tenantId: z.string().optional(),
1398
- programId: z.string().optional(),
1329
+ tagId: z.string().optional(),
1330
+ folderId: z.string().optional(),
1331
+ groupId: z.string().optional(),
1399
1332
  partnerId: z.string().optional(),
1400
1333
  customerId: z.string().optional(),
1401
1334
  interval: QueryParamInterval$outboundSchema.optional(),
@@ -1405,28 +1338,25 @@ export const ListEventsRequest$outboundSchema: z.ZodType<
1405
1338
  country: z.string().optional(),
1406
1339
  city: z.string().optional(),
1407
1340
  region: z.string().optional(),
1408
- continent: QueryParamContinent$outboundSchema.optional(),
1341
+ continent: z.string().optional(),
1409
1342
  device: z.string().optional(),
1410
1343
  browser: z.string().optional(),
1411
1344
  os: z.string().optional(),
1412
- trigger: QueryParamTrigger$outboundSchema.optional(),
1345
+ trigger: z.string().optional(),
1413
1346
  referer: z.string().optional(),
1414
1347
  refererUrl: z.string().optional(),
1415
1348
  url: z.string().optional(),
1416
- tagIds: z.union([z.string(), z.array(z.string())]).optional(),
1417
- folderId: z.string().optional(),
1418
- groupId: z.string().optional(),
1349
+ utmSource: z.string().optional(),
1350
+ utmMedium: z.string().optional(),
1351
+ utmCampaign: z.string().optional(),
1352
+ utmTerm: z.string().optional(),
1353
+ utmContent: z.string().optional(),
1419
1354
  root: z.boolean().optional(),
1420
1355
  saleType: QueryParamSaleType$outboundSchema.optional(),
1421
1356
  query: z.string().optional(),
1422
- tagId: z.string().optional(),
1357
+ programId: z.string().optional(),
1358
+ tagIds: z.string().optional(),
1423
1359
  qr: z.boolean().optional(),
1424
- utmSource: z.nullable(z.string()).optional(),
1425
- utmMedium: z.nullable(z.string()).optional(),
1426
- utmCampaign: z.nullable(z.string()).optional(),
1427
- utmTerm: z.nullable(z.string()).optional(),
1428
- utmContent: z.nullable(z.string()).optional(),
1429
- ref: z.nullable(z.string()).optional(),
1430
1360
  page: z.number().default(1),
1431
1361
  limit: z.number().default(100),
1432
1362
  sortOrder: QueryParamSortOrder$outboundSchema.default("desc"),
@@ -108,6 +108,13 @@ export const ListPayoutsMode = {
108
108
  } as const;
109
109
  export type ListPayoutsMode = ClosedEnum<typeof ListPayoutsMode>;
110
110
 
111
+ export const Method = {
112
+ Connect: "connect",
113
+ Stablecoin: "stablecoin",
114
+ Paypal: "paypal",
115
+ } as const;
116
+ export type Method = ClosedEnum<typeof Method>;
117
+
111
118
  export type ListPayoutsPartner = {
112
119
  /**
113
120
  * The partner's unique ID on Dub.
@@ -164,6 +171,8 @@ export type ListPayoutsResponseBody = {
164
171
  paidAt: string | null;
165
172
  failureReason?: string | null | undefined;
166
173
  mode: ListPayoutsMode | null;
174
+ method: Method | null;
175
+ traceId?: string | null | undefined;
167
176
  partner: ListPayoutsPartner;
168
177
  user?: User | null | undefined;
169
178
  };
@@ -229,6 +238,10 @@ export const ListPayoutsMode$inboundSchema: z.ZodNativeEnum<
229
238
  typeof ListPayoutsMode
230
239
  > = z.nativeEnum(ListPayoutsMode);
231
240
 
241
+ /** @internal */
242
+ export const Method$inboundSchema: z.ZodNativeEnum<typeof Method> = z
243
+ .nativeEnum(Method);
244
+
232
245
  /** @internal */
233
246
  export const ListPayoutsPartner$inboundSchema: z.ZodType<
234
247
  ListPayoutsPartner,
@@ -293,6 +306,8 @@ export const ListPayoutsResponseBody$inboundSchema: z.ZodType<
293
306
  paidAt: z.nullable(z.string()),
294
307
  failureReason: z.nullable(z.string()).optional(),
295
308
  mode: z.nullable(ListPayoutsMode$inboundSchema),
309
+ method: z.nullable(Method$inboundSchema),
310
+ traceId: z.nullable(z.string()).optional(),
296
311
  partner: z.lazy(() => ListPayoutsPartner$inboundSchema),
297
312
  user: z.nullable(z.lazy(() => User$inboundSchema)).optional(),
298
313
  });
@@ -114,6 +114,14 @@ export type RejectBountySubmissionResponseBody = {
114
114
  * The performance count of the submission
115
115
  */
116
116
  performanceCount: number | null;
117
+ /**
118
+ * The social metric count (views or likes) for the social content
119
+ */
120
+ socialMetricCount: number | null;
121
+ /**
122
+ * The date and time the submission's social metrics were last synced
123
+ */
124
+ socialMetricsLastSyncedAt?: string | null | undefined;
117
125
  /**
118
126
  * The date and time the submission was created
119
127
  */
@@ -242,6 +250,8 @@ export const RejectBountySubmissionResponseBody$inboundSchema: z.ZodType<
242
250
  ),
243
251
  status: RejectBountySubmissionStatus$inboundSchema,
244
252
  performanceCount: z.nullable(z.number()),
253
+ socialMetricCount: z.nullable(z.number().int()),
254
+ socialMetricsLastSyncedAt: z.nullable(z.string()).optional(),
245
255
  createdAt: z.string(),
246
256
  completedAt: z.nullable(z.string()),
247
257
  reviewedAt: z.nullable(z.string()),