dub 0.34.2 → 0.35.0

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 (278) hide show
  1. package/README.md +50 -12
  2. package/docs/sdks/domains/README.md +6 -4
  3. package/docs/sdks/links/README.md +4 -3
  4. package/hooks/hooks.js +1 -1
  5. package/hooks/index.js +1 -1
  6. package/hooks/types.js +1 -1
  7. package/lib/base64.js +1 -1
  8. package/lib/config.d.ts +3 -3
  9. package/lib/config.js +4 -4
  10. package/lib/dlv.d.ts +14 -0
  11. package/lib/dlv.d.ts.map +1 -0
  12. package/lib/dlv.js +50 -0
  13. package/lib/dlv.js.map +1 -0
  14. package/lib/encodings.js +1 -1
  15. package/lib/http.js +1 -1
  16. package/lib/is-plain-object.js +1 -1
  17. package/lib/primitives.js +1 -1
  18. package/lib/retries.js +1 -1
  19. package/lib/schemas.js +1 -1
  20. package/lib/sdks.js +1 -1
  21. package/lib/security.d.ts +1 -0
  22. package/lib/security.d.ts.map +1 -1
  23. package/lib/security.js +9 -2
  24. package/lib/security.js.map +1 -1
  25. package/lib/url.js +1 -1
  26. package/models/components/clicksbrowsers.js +1 -1
  27. package/models/components/clickscities.js +1 -1
  28. package/models/components/clickscount.js +1 -1
  29. package/models/components/clickscountries.d.ts +3 -3
  30. package/models/components/clickscountries.js +2 -2
  31. package/models/components/clicksdevices.js +1 -1
  32. package/models/components/clicksos.js +1 -1
  33. package/models/components/clicksreferers.js +1 -1
  34. package/models/components/clickstimeseries.js +1 -1
  35. package/models/components/clickstoplinks.js +1 -1
  36. package/models/components/clickstopurls.js +1 -1
  37. package/models/components/continentcode.d.ts +49 -0
  38. package/models/components/continentcode.d.ts.map +1 -0
  39. package/models/components/continentcode.js +58 -0
  40. package/models/components/continentcode.js.map +1 -0
  41. package/models/components/countrycode.js +1 -1
  42. package/models/components/domainschema.js +1 -1
  43. package/models/components/index.d.ts +1 -0
  44. package/models/components/index.d.ts.map +1 -1
  45. package/models/components/index.js +2 -1
  46. package/models/components/index.js.map +1 -1
  47. package/models/components/leadsbrowsers.js +1 -1
  48. package/models/components/leadscities.js +1 -1
  49. package/models/components/leadscount.js +1 -1
  50. package/models/components/leadscountries.d.ts +3 -3
  51. package/models/components/leadscountries.js +2 -2
  52. package/models/components/leadsdevices.js +1 -1
  53. package/models/components/leadsos.js +1 -1
  54. package/models/components/leadsreferers.js +1 -1
  55. package/models/components/leadstimeseries.js +1 -1
  56. package/models/components/leadstoplinks.js +1 -1
  57. package/models/components/leadstopurls.js +1 -1
  58. package/models/components/linkgeotargeting.js +1 -1
  59. package/models/components/linkschema.js +1 -1
  60. package/models/components/salesbrowsers.js +1 -1
  61. package/models/components/salescities.js +1 -1
  62. package/models/components/salescount.js +1 -1
  63. package/models/components/salescountries.d.ts +3 -3
  64. package/models/components/salescountries.js +2 -2
  65. package/models/components/salesdevices.js +1 -1
  66. package/models/components/salesos.js +1 -1
  67. package/models/components/salesreferers.js +1 -1
  68. package/models/components/salestimeseries.js +1 -1
  69. package/models/components/salestoplinks.js +1 -1
  70. package/models/components/salestopurls.js +1 -1
  71. package/models/components/security.js +1 -1
  72. package/models/components/tagschema.js +1 -1
  73. package/models/components/workspaceschema.js +1 -1
  74. package/models/errors/badrequest.js +1 -1
  75. package/models/errors/conflict.js +1 -1
  76. package/models/errors/forbidden.js +1 -1
  77. package/models/errors/index.js +1 -1
  78. package/models/errors/internalservererror.js +1 -1
  79. package/models/errors/inviteexpired.js +1 -1
  80. package/models/errors/notfound.js +1 -1
  81. package/models/errors/ratelimitexceeded.js +1 -1
  82. package/models/errors/sdkerror.js +1 -1
  83. package/models/errors/sdkvalidationerror.js +1 -1
  84. package/models/errors/unauthorized.js +1 -1
  85. package/models/errors/unprocessableentity.js +1 -1
  86. package/models/operations/bulkcreatelinks.d.ts +25 -0
  87. package/models/operations/bulkcreatelinks.d.ts.map +1 -1
  88. package/models/operations/bulkcreatelinks.js +34 -3
  89. package/models/operations/bulkcreatelinks.js.map +1 -1
  90. package/models/operations/bulkupdatelinks.d.ts +25 -0
  91. package/models/operations/bulkupdatelinks.d.ts.map +1 -1
  92. package/models/operations/bulkupdatelinks.js +34 -3
  93. package/models/operations/bulkupdatelinks.js.map +1 -1
  94. package/models/operations/createdomain.js +1 -1
  95. package/models/operations/createlink.d.ts +25 -0
  96. package/models/operations/createlink.d.ts.map +1 -1
  97. package/models/operations/createlink.js +34 -3
  98. package/models/operations/createlink.js.map +1 -1
  99. package/models/operations/createtag.js +1 -1
  100. package/models/operations/deletedomain.js +1 -1
  101. package/models/operations/deletelink.js +1 -1
  102. package/models/operations/getlinkinfo.js +1 -1
  103. package/models/operations/getlinks.d.ts +31 -2
  104. package/models/operations/getlinks.d.ts.map +1 -1
  105. package/models/operations/getlinks.js +39 -4
  106. package/models/operations/getlinks.js.map +1 -1
  107. package/models/operations/getlinkscount.d.ts +26 -4
  108. package/models/operations/getlinkscount.d.ts.map +1 -1
  109. package/models/operations/getlinkscount.js +24 -4
  110. package/models/operations/getlinkscount.js.map +1 -1
  111. package/models/operations/getmetatags.js +1 -1
  112. package/models/operations/getqrcode.js +1 -1
  113. package/models/operations/getworkspace.js +1 -1
  114. package/models/operations/index.d.ts +1 -0
  115. package/models/operations/index.d.ts.map +1 -1
  116. package/models/operations/index.js +2 -1
  117. package/models/operations/index.js.map +1 -1
  118. package/models/operations/listdomains.d.ts +67 -0
  119. package/models/operations/listdomains.d.ts.map +1 -0
  120. package/models/operations/listdomains.js +89 -0
  121. package/models/operations/listdomains.js.map +1 -0
  122. package/models/operations/retrieveanalytics.d.ts +8 -0
  123. package/models/operations/retrieveanalytics.d.ts.map +1 -1
  124. package/models/operations/retrieveanalytics.js +4 -1
  125. package/models/operations/retrieveanalytics.js.map +1 -1
  126. package/models/operations/trackcustomer.js +1 -1
  127. package/models/operations/tracklead.js +1 -1
  128. package/models/operations/tracksale.js +1 -1
  129. package/models/operations/updatedomain.js +1 -1
  130. package/models/operations/updatelink.d.ts +25 -0
  131. package/models/operations/updatelink.d.ts.map +1 -1
  132. package/models/operations/updatelink.js +33 -3
  133. package/models/operations/updatelink.js.map +1 -1
  134. package/models/operations/updatetag.js +1 -1
  135. package/models/operations/updateworkspace.js +1 -1
  136. package/models/operations/upsertlink.d.ts +25 -0
  137. package/models/operations/upsertlink.d.ts.map +1 -1
  138. package/models/operations/upsertlink.js +34 -3
  139. package/models/operations/upsertlink.js.map +1 -1
  140. package/package.json +1 -1
  141. package/sdk/analytics.d.ts.map +1 -1
  142. package/sdk/analytics.js +5 -11
  143. package/sdk/analytics.js.map +1 -1
  144. package/sdk/domains.d.ts +2 -1
  145. package/sdk/domains.d.ts.map +1 -1
  146. package/sdk/domains.js +45 -47
  147. package/sdk/domains.js.map +1 -1
  148. package/sdk/index.js +1 -1
  149. package/sdk/links.d.ts +2 -1
  150. package/sdk/links.d.ts.map +1 -1
  151. package/sdk/links.js +45 -94
  152. package/sdk/links.js.map +1 -1
  153. package/sdk/metatags.d.ts.map +1 -1
  154. package/sdk/metatags.js +4 -11
  155. package/sdk/metatags.js.map +1 -1
  156. package/sdk/qrcodes.d.ts.map +1 -1
  157. package/sdk/qrcodes.js +4 -11
  158. package/sdk/qrcodes.js.map +1 -1
  159. package/sdk/sdk.js +1 -1
  160. package/sdk/tags.d.ts.map +1 -1
  161. package/sdk/tags.js +8 -31
  162. package/sdk/tags.js.map +1 -1
  163. package/sdk/track.d.ts.map +1 -1
  164. package/sdk/track.js +8 -31
  165. package/sdk/track.js.map +1 -1
  166. package/sdk/workspaces.d.ts.map +1 -1
  167. package/sdk/workspaces.js +6 -21
  168. package/sdk/workspaces.js.map +1 -1
  169. package/src/hooks/hooks.ts +1 -1
  170. package/src/hooks/index.ts +1 -1
  171. package/src/hooks/types.ts +1 -1
  172. package/src/lib/base64.ts +1 -1
  173. package/src/lib/config.ts +4 -4
  174. package/src/lib/dlv.ts +53 -0
  175. package/src/lib/encodings.ts +1 -1
  176. package/src/lib/http.ts +1 -1
  177. package/src/lib/is-plain-object.ts +1 -1
  178. package/src/lib/primitives.ts +1 -1
  179. package/src/lib/retries.ts +1 -1
  180. package/src/lib/schemas.ts +1 -1
  181. package/src/lib/sdks.ts +1 -1
  182. package/src/lib/security.ts +11 -1
  183. package/src/lib/url.ts +1 -1
  184. package/src/models/components/clicksbrowsers.ts +1 -1
  185. package/src/models/components/clickscities.ts +1 -1
  186. package/src/models/components/clickscount.ts +1 -1
  187. package/src/models/components/clickscountries.ts +4 -4
  188. package/src/models/components/clicksdevices.ts +1 -1
  189. package/src/models/components/clicksos.ts +1 -1
  190. package/src/models/components/clicksreferers.ts +1 -1
  191. package/src/models/components/clickstimeseries.ts +1 -1
  192. package/src/models/components/clickstoplinks.ts +1 -1
  193. package/src/models/components/clickstopurls.ts +1 -1
  194. package/src/models/components/continentcode.ts +42 -0
  195. package/src/models/components/countrycode.ts +1 -1
  196. package/src/models/components/domainschema.ts +1 -1
  197. package/src/models/components/index.ts +2 -1
  198. package/src/models/components/leadsbrowsers.ts +1 -1
  199. package/src/models/components/leadscities.ts +1 -1
  200. package/src/models/components/leadscount.ts +1 -1
  201. package/src/models/components/leadscountries.ts +4 -4
  202. package/src/models/components/leadsdevices.ts +1 -1
  203. package/src/models/components/leadsos.ts +1 -1
  204. package/src/models/components/leadsreferers.ts +1 -1
  205. package/src/models/components/leadstimeseries.ts +1 -1
  206. package/src/models/components/leadstoplinks.ts +1 -1
  207. package/src/models/components/leadstopurls.ts +1 -1
  208. package/src/models/components/linkgeotargeting.ts +1 -1
  209. package/src/models/components/linkschema.ts +1 -1
  210. package/src/models/components/salesbrowsers.ts +1 -1
  211. package/src/models/components/salescities.ts +1 -1
  212. package/src/models/components/salescount.ts +1 -1
  213. package/src/models/components/salescountries.ts +4 -4
  214. package/src/models/components/salesdevices.ts +1 -1
  215. package/src/models/components/salesos.ts +1 -1
  216. package/src/models/components/salesreferers.ts +1 -1
  217. package/src/models/components/salestimeseries.ts +1 -1
  218. package/src/models/components/salestoplinks.ts +1 -1
  219. package/src/models/components/salestopurls.ts +1 -1
  220. package/src/models/components/security.ts +1 -1
  221. package/src/models/components/tagschema.ts +1 -1
  222. package/src/models/components/workspaceschema.ts +1 -1
  223. package/src/models/errors/badrequest.ts +1 -1
  224. package/src/models/errors/conflict.ts +1 -1
  225. package/src/models/errors/forbidden.ts +1 -1
  226. package/src/models/errors/index.ts +1 -1
  227. package/src/models/errors/internalservererror.ts +1 -1
  228. package/src/models/errors/inviteexpired.ts +1 -1
  229. package/src/models/errors/notfound.ts +1 -1
  230. package/src/models/errors/ratelimitexceeded.ts +1 -1
  231. package/src/models/errors/sdkerror.ts +1 -1
  232. package/src/models/errors/sdkvalidationerror.ts +1 -1
  233. package/src/models/errors/unauthorized.ts +1 -1
  234. package/src/models/errors/unprocessableentity.ts +1 -1
  235. package/src/models/operations/bulkcreatelinks.ts +111 -55
  236. package/src/models/operations/bulkupdatelinks.ts +103 -47
  237. package/src/models/operations/createdomain.ts +1 -1
  238. package/src/models/operations/createlink.ts +111 -55
  239. package/src/models/operations/createtag.ts +1 -1
  240. package/src/models/operations/deletedomain.ts +1 -1
  241. package/src/models/operations/deletelink.ts +1 -1
  242. package/src/models/operations/getlinkinfo.ts +1 -1
  243. package/src/models/operations/getlinks.ts +62 -5
  244. package/src/models/operations/getlinkscount.ts +31 -7
  245. package/src/models/operations/getmetatags.ts +1 -1
  246. package/src/models/operations/getqrcode.ts +1 -1
  247. package/src/models/operations/getworkspace.ts +1 -1
  248. package/src/models/operations/index.ts +2 -1
  249. package/src/models/operations/listdomains.ts +123 -0
  250. package/src/models/operations/retrieveanalytics.ts +9 -1
  251. package/src/models/operations/trackcustomer.ts +1 -1
  252. package/src/models/operations/tracklead.ts +1 -1
  253. package/src/models/operations/tracksale.ts +1 -1
  254. package/src/models/operations/updatedomain.ts +1 -1
  255. package/src/models/operations/updatelink.ts +110 -55
  256. package/src/models/operations/updatetag.ts +1 -1
  257. package/src/models/operations/updateworkspace.ts +1 -1
  258. package/src/models/operations/upsertlink.ts +111 -55
  259. package/src/sdk/analytics.ts +5 -9
  260. package/src/sdk/domains.ts +68 -40
  261. package/src/sdk/index.ts +1 -1
  262. package/src/sdk/links.ts +55 -77
  263. package/src/sdk/metatags.ts +4 -9
  264. package/src/sdk/qrcodes.ts +4 -9
  265. package/src/sdk/sdk.ts +1 -1
  266. package/src/sdk/tags.ts +8 -25
  267. package/src/sdk/track.ts +8 -25
  268. package/src/sdk/workspaces.ts +6 -17
  269. package/src/types/blobs.ts +1 -1
  270. package/src/types/enums.ts +1 -1
  271. package/src/types/index.ts +1 -1
  272. package/src/types/operations.ts +1 -1
  273. package/src/types/rfcdate.ts +1 -1
  274. package/types/blobs.js +1 -1
  275. package/types/enums.js +1 -1
  276. package/types/index.js +1 -1
  277. package/types/operations.js +1 -1
  278. package/types/rfcdate.js +1 -1
@@ -1,8 +1,10 @@
1
1
  /*
2
- * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { remap as remap$ } from "../../lib/primitives.js";
5
6
  import { ClosedEnum } from "../../types/enums.js";
7
+ import * as components from "../components/index.js";
6
8
  import * as z from "zod";
7
9
 
8
10
  /**
@@ -66,9 +68,17 @@ export type GetLinksRequest = {
66
68
  */
67
69
  sort?: Sort | undefined;
68
70
  /**
69
- * The page number for pagination (each page contains 100 links).
71
+ * The page number for pagination.
70
72
  */
71
73
  page?: number | undefined;
74
+ /**
75
+ * The number of items per page.
76
+ */
77
+ pageSize?: number | undefined;
78
+ };
79
+
80
+ export type GetLinksResponse = {
81
+ result: Array<components.LinkSchema>;
72
82
  };
73
83
 
74
84
  /** @internal */
@@ -157,7 +167,8 @@ export const GetLinksRequest$inboundSchema: z.ZodType<GetLinksRequest, z.ZodType
157
167
  showArchived: z.boolean().default(false),
158
168
  withTags: z.boolean().default(false),
159
169
  sort: Sort$inboundSchema.default("createdAt"),
160
- page: z.number().int().optional(),
170
+ page: z.number().default(1),
171
+ pageSize: z.number().default(100),
161
172
  });
162
173
 
163
174
  /** @internal */
@@ -171,7 +182,8 @@ export type GetLinksRequest$Outbound = {
171
182
  showArchived: boolean;
172
183
  withTags: boolean;
173
184
  sort: string;
174
- page?: number | undefined;
185
+ page: number;
186
+ pageSize: number;
175
187
  };
176
188
 
177
189
  /** @internal */
@@ -189,7 +201,8 @@ export const GetLinksRequest$outboundSchema: z.ZodType<
189
201
  showArchived: z.boolean().default(false),
190
202
  withTags: z.boolean().default(false),
191
203
  sort: Sort$outboundSchema.default("createdAt"),
192
- page: z.number().int().optional(),
204
+ page: z.number().default(1),
205
+ pageSize: z.number().default(100),
193
206
  });
194
207
 
195
208
  /**
@@ -204,3 +217,47 @@ export namespace GetLinksRequest$ {
204
217
  /** @deprecated use `GetLinksRequest$Outbound` instead. */
205
218
  export type Outbound = GetLinksRequest$Outbound;
206
219
  }
220
+
221
+ /** @internal */
222
+ export const GetLinksResponse$inboundSchema: z.ZodType<GetLinksResponse, z.ZodTypeDef, unknown> = z
223
+ .object({
224
+ Result: z.array(components.LinkSchema$inboundSchema),
225
+ })
226
+ .transform((v) => {
227
+ return remap$(v, {
228
+ Result: "result",
229
+ });
230
+ });
231
+
232
+ /** @internal */
233
+ export type GetLinksResponse$Outbound = {
234
+ Result: Array<components.LinkSchema$Outbound>;
235
+ };
236
+
237
+ /** @internal */
238
+ export const GetLinksResponse$outboundSchema: z.ZodType<
239
+ GetLinksResponse$Outbound,
240
+ z.ZodTypeDef,
241
+ GetLinksResponse
242
+ > = z
243
+ .object({
244
+ result: z.array(components.LinkSchema$outboundSchema),
245
+ })
246
+ .transform((v) => {
247
+ return remap$(v, {
248
+ result: "Result",
249
+ });
250
+ });
251
+
252
+ /**
253
+ * @internal
254
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
255
+ */
256
+ export namespace GetLinksResponse$ {
257
+ /** @deprecated use `GetLinksResponse$inboundSchema` instead. */
258
+ export const inboundSchema = GetLinksResponse$inboundSchema;
259
+ /** @deprecated use `GetLinksResponse$outboundSchema` instead. */
260
+ export const outboundSchema = GetLinksResponse$outboundSchema;
261
+ /** @deprecated use `GetLinksResponse$Outbound` instead. */
262
+ export type Outbound = GetLinksResponse$Outbound;
263
+ }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
5
  import { ClosedEnum } from "../../types/enums.js";
@@ -15,6 +15,11 @@ export type GetLinksCountQueryParamTagIds = string | Array<string>;
15
15
  */
16
16
  export type GetLinksCountQueryParamTagNames = string | Array<string>;
17
17
 
18
+ export const Three = {
19
+ UserId: "userId",
20
+ } as const;
21
+ export type Three = ClosedEnum<typeof Three>;
22
+
18
23
  export const Two = {
19
24
  TagId: "tagId",
20
25
  } as const;
@@ -28,7 +33,7 @@ export type One = ClosedEnum<typeof One>;
28
33
  /**
29
34
  * The field to group the links by.
30
35
  */
31
- export type GroupBy = One | Two;
36
+ export type GroupBy = One | Two | Three;
32
37
 
33
38
  export type GetLinksCountRequest = {
34
39
  /**
@@ -66,7 +71,7 @@ export type GetLinksCountRequest = {
66
71
  /**
67
72
  * The field to group the links by.
68
73
  */
69
- groupBy?: One | Two | undefined;
74
+ groupBy?: One | Two | Three | undefined;
70
75
  };
71
76
 
72
77
  /** @internal */
@@ -129,6 +134,23 @@ export namespace GetLinksCountQueryParamTagNames$ {
129
134
  export type Outbound = GetLinksCountQueryParamTagNames$Outbound;
130
135
  }
131
136
 
137
+ /** @internal */
138
+ export const Three$inboundSchema: z.ZodNativeEnum<typeof Three> = z.nativeEnum(Three);
139
+
140
+ /** @internal */
141
+ export const Three$outboundSchema: z.ZodNativeEnum<typeof Three> = Three$inboundSchema;
142
+
143
+ /**
144
+ * @internal
145
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
146
+ */
147
+ export namespace Three$ {
148
+ /** @deprecated use `Three$inboundSchema` instead. */
149
+ export const inboundSchema = Three$inboundSchema;
150
+ /** @deprecated use `Three$outboundSchema` instead. */
151
+ export const outboundSchema = Three$outboundSchema;
152
+ }
153
+
132
154
  /** @internal */
133
155
  export const Two$inboundSchema: z.ZodNativeEnum<typeof Two> = z.nativeEnum(Two);
134
156
 
@@ -167,15 +189,17 @@ export namespace One$ {
167
189
  export const GroupBy$inboundSchema: z.ZodType<GroupBy, z.ZodTypeDef, unknown> = z.union([
168
190
  One$inboundSchema,
169
191
  Two$inboundSchema,
192
+ Three$inboundSchema,
170
193
  ]);
171
194
 
172
195
  /** @internal */
173
- export type GroupBy$Outbound = string | string;
196
+ export type GroupBy$Outbound = string | string | string;
174
197
 
175
198
  /** @internal */
176
199
  export const GroupBy$outboundSchema: z.ZodType<GroupBy$Outbound, z.ZodTypeDef, GroupBy> = z.union([
177
200
  One$outboundSchema,
178
201
  Two$outboundSchema,
202
+ Three$outboundSchema,
179
203
  ]);
180
204
 
181
205
  /**
@@ -205,7 +229,7 @@ export const GetLinksCountRequest$inboundSchema: z.ZodType<
205
229
  userId: z.string().optional(),
206
230
  showArchived: z.boolean().default(false),
207
231
  withTags: z.boolean().default(false),
208
- groupBy: z.union([One$inboundSchema, Two$inboundSchema]).optional(),
232
+ groupBy: z.union([One$inboundSchema, Two$inboundSchema, Three$inboundSchema]).optional(),
209
233
  });
210
234
 
211
235
  /** @internal */
@@ -218,7 +242,7 @@ export type GetLinksCountRequest$Outbound = {
218
242
  userId?: string | undefined;
219
243
  showArchived: boolean;
220
244
  withTags: boolean;
221
- groupBy?: string | string | undefined;
245
+ groupBy?: string | string | string | undefined;
222
246
  };
223
247
 
224
248
  /** @internal */
@@ -235,7 +259,7 @@ export const GetLinksCountRequest$outboundSchema: z.ZodType<
235
259
  userId: z.string().optional(),
236
260
  showArchived: z.boolean().default(false),
237
261
  withTags: z.boolean().default(false),
238
- groupBy: z.union([One$outboundSchema, Two$outboundSchema]).optional(),
262
+ groupBy: z.union([One$outboundSchema, Two$outboundSchema, Three$outboundSchema]).optional(),
239
263
  });
240
264
 
241
265
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
5
  import * as z from "zod";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
5
  import { ClosedEnum } from "../../types/enums.js";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
5
  import * as z from "zod";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
5
  export * from "./bulkcreatelinks.js";
@@ -15,6 +15,7 @@ export * from "./getlinkscount.js";
15
15
  export * from "./getmetatags.js";
16
16
  export * from "./getqrcode.js";
17
17
  export * from "./getworkspace.js";
18
+ export * from "./listdomains.js";
18
19
  export * from "./retrieveanalytics.js";
19
20
  export * from "./trackcustomer.js";
20
21
  export * from "./tracklead.js";
@@ -0,0 +1,123 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import * as components from "../components/index.js";
7
+ import * as z from "zod";
8
+
9
+ export type ListDomainsRequest = {
10
+ /**
11
+ * Whether to include archived domains in the response. Defaults to `false` if not provided.
12
+ */
13
+ archived?: boolean | undefined;
14
+ /**
15
+ * The search term to filter the domains by.
16
+ */
17
+ search?: string | undefined;
18
+ /**
19
+ * The page number for pagination.
20
+ */
21
+ page?: number | undefined;
22
+ /**
23
+ * The number of items per page.
24
+ */
25
+ pageSize?: number | undefined;
26
+ };
27
+
28
+ export type ListDomainsResponse = {
29
+ result: Array<components.DomainSchema>;
30
+ };
31
+
32
+ /** @internal */
33
+ export const ListDomainsRequest$inboundSchema: z.ZodType<
34
+ ListDomainsRequest,
35
+ z.ZodTypeDef,
36
+ unknown
37
+ > = z.object({
38
+ archived: z.boolean().default(false),
39
+ search: z.string().optional(),
40
+ page: z.number().default(1),
41
+ pageSize: z.number().default(50),
42
+ });
43
+
44
+ /** @internal */
45
+ export type ListDomainsRequest$Outbound = {
46
+ archived: boolean;
47
+ search?: string | undefined;
48
+ page: number;
49
+ pageSize: number;
50
+ };
51
+
52
+ /** @internal */
53
+ export const ListDomainsRequest$outboundSchema: z.ZodType<
54
+ ListDomainsRequest$Outbound,
55
+ z.ZodTypeDef,
56
+ ListDomainsRequest
57
+ > = z.object({
58
+ archived: z.boolean().default(false),
59
+ search: z.string().optional(),
60
+ page: z.number().default(1),
61
+ pageSize: z.number().default(50),
62
+ });
63
+
64
+ /**
65
+ * @internal
66
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
67
+ */
68
+ export namespace ListDomainsRequest$ {
69
+ /** @deprecated use `ListDomainsRequest$inboundSchema` instead. */
70
+ export const inboundSchema = ListDomainsRequest$inboundSchema;
71
+ /** @deprecated use `ListDomainsRequest$outboundSchema` instead. */
72
+ export const outboundSchema = ListDomainsRequest$outboundSchema;
73
+ /** @deprecated use `ListDomainsRequest$Outbound` instead. */
74
+ export type Outbound = ListDomainsRequest$Outbound;
75
+ }
76
+
77
+ /** @internal */
78
+ export const ListDomainsResponse$inboundSchema: z.ZodType<
79
+ ListDomainsResponse,
80
+ z.ZodTypeDef,
81
+ unknown
82
+ > = z
83
+ .object({
84
+ Result: z.array(components.DomainSchema$inboundSchema),
85
+ })
86
+ .transform((v) => {
87
+ return remap$(v, {
88
+ Result: "result",
89
+ });
90
+ });
91
+
92
+ /** @internal */
93
+ export type ListDomainsResponse$Outbound = {
94
+ Result: Array<components.DomainSchema$Outbound>;
95
+ };
96
+
97
+ /** @internal */
98
+ export const ListDomainsResponse$outboundSchema: z.ZodType<
99
+ ListDomainsResponse$Outbound,
100
+ z.ZodTypeDef,
101
+ ListDomainsResponse
102
+ > = z
103
+ .object({
104
+ result: z.array(components.DomainSchema$outboundSchema),
105
+ })
106
+ .transform((v) => {
107
+ return remap$(v, {
108
+ result: "Result",
109
+ });
110
+ });
111
+
112
+ /**
113
+ * @internal
114
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
115
+ */
116
+ export namespace ListDomainsResponse$ {
117
+ /** @deprecated use `ListDomainsResponse$inboundSchema` instead. */
118
+ export const inboundSchema = ListDomainsResponse$inboundSchema;
119
+ /** @deprecated use `ListDomainsResponse$outboundSchema` instead. */
120
+ export const outboundSchema = ListDomainsResponse$outboundSchema;
121
+ /** @deprecated use `ListDomainsResponse$Outbound` instead. */
122
+ export type Outbound = ListDomainsResponse$Outbound;
123
+ }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
5
  import { ClosedEnum } from "../../types/enums.js";
@@ -26,6 +26,7 @@ export type Event = ClosedEnum<typeof Event>;
26
26
  export const QueryParamGroupBy = {
27
27
  Count: "count",
28
28
  Timeseries: "timeseries",
29
+ Continents: "continents",
29
30
  Countries: "countries",
30
31
  Cities: "cities",
31
32
  Devices: "devices",
@@ -100,6 +101,10 @@ export type RetrieveAnalyticsRequest = {
100
101
  * The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC.
101
102
  */
102
103
  timezone?: string | undefined;
104
+ /**
105
+ * The continent to retrieve analytics for.
106
+ */
107
+ continent?: components.ContinentCode | undefined;
103
108
  /**
104
109
  * The country to retrieve analytics for.
105
110
  */
@@ -246,6 +251,7 @@ export const RetrieveAnalyticsRequest$inboundSchema: z.ZodType<
246
251
  start: z.string().optional(),
247
252
  end: z.string().optional(),
248
253
  timezone: z.string().default("UTC"),
254
+ continent: components.ContinentCode$inboundSchema.optional(),
249
255
  country: components.CountryCode$inboundSchema.optional(),
250
256
  city: z.string().optional(),
251
257
  device: z.string().optional(),
@@ -270,6 +276,7 @@ export type RetrieveAnalyticsRequest$Outbound = {
270
276
  start?: string | undefined;
271
277
  end?: string | undefined;
272
278
  timezone: string;
279
+ continent?: string | undefined;
273
280
  country?: string | undefined;
274
281
  city?: string | undefined;
275
282
  device?: string | undefined;
@@ -298,6 +305,7 @@ export const RetrieveAnalyticsRequest$outboundSchema: z.ZodType<
298
305
  start: z.string().optional(),
299
306
  end: z.string().optional(),
300
307
  timezone: z.string().default("UTC"),
308
+ continent: components.ContinentCode$outboundSchema.optional(),
301
309
  country: components.CountryCode$outboundSchema.optional(),
302
310
  city: z.string().optional(),
303
311
  device: z.string().optional(),
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
5
  import * as z from "zod";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
5
  import * as z from "zod";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
5
  import { ClosedEnum } from "../../types/enums.js";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
5
  import { remap as remap$ } from "../../lib/primitives.js";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
5
  import { remap as remap$ } from "../../lib/primitives.js";
@@ -116,6 +116,26 @@ export type UpdateLinkRequestBody = {
116
116
  * Allow search engines to index your short link. Defaults to `false` if not provided. Learn more: https://d.to/noindex
117
117
  */
118
118
  doIndex?: boolean | undefined;
119
+ /**
120
+ * The UTM source of the short link. If set, this will populate or override the UTM source in the destination URL.
121
+ */
122
+ utmSource?: string | null | undefined;
123
+ /**
124
+ * The UTM medium of the short link. If set, this will populate or override the UTM medium in the destination URL.
125
+ */
126
+ utmMedium?: string | null | undefined;
127
+ /**
128
+ * The UTM campaign of the short link. If set, this will populate or override the UTM campaign in the destination URL.
129
+ */
130
+ utmCampaign?: string | null | undefined;
131
+ /**
132
+ * The UTM term of the short link. If set, this will populate or override the UTM term in the destination URL.
133
+ */
134
+ utmTerm?: string | null | undefined;
135
+ /**
136
+ * The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL.
137
+ */
138
+ utmContent?: string | null | undefined;
119
139
  };
120
140
 
121
141
  export type UpdateLinkRequest = {
@@ -188,33 +208,48 @@ export const UpdateLinkRequestBody$inboundSchema: z.ZodType<
188
208
  UpdateLinkRequestBody,
189
209
  z.ZodTypeDef,
190
210
  unknown
191
- > = z.object({
192
- url: z.string().optional(),
193
- domain: z.string().optional(),
194
- key: z.string().optional(),
195
- externalId: z.nullable(z.string()).optional(),
196
- prefix: z.string().optional(),
197
- trackConversion: z.boolean().default(false),
198
- archived: z.boolean().default(false),
199
- publicStats: z.boolean().default(false),
200
- tagId: z.nullable(z.string()).optional(),
201
- tagIds: z.union([z.string(), z.array(z.string())]).optional(),
202
- tagNames: z.union([z.string(), z.array(z.string())]).optional(),
203
- comments: z.nullable(z.string()).optional(),
204
- expiresAt: z.nullable(z.string()).optional(),
205
- expiredUrl: z.nullable(z.string()).optional(),
206
- password: z.nullable(z.string()).optional(),
207
- proxy: z.boolean().default(false),
208
- title: z.nullable(z.string()).optional(),
209
- description: z.nullable(z.string()).optional(),
210
- image: z.nullable(z.string()).optional(),
211
- video: z.nullable(z.string()).optional(),
212
- rewrite: z.boolean().default(false),
213
- ios: z.nullable(z.string()).optional(),
214
- android: z.nullable(z.string()).optional(),
215
- geo: z.nullable(components.LinkGeoTargeting$inboundSchema).optional(),
216
- doIndex: z.boolean().default(false),
217
- });
211
+ > = z
212
+ .object({
213
+ url: z.string().optional(),
214
+ domain: z.string().optional(),
215
+ key: z.string().optional(),
216
+ externalId: z.nullable(z.string()).optional(),
217
+ prefix: z.string().optional(),
218
+ trackConversion: z.boolean().default(false),
219
+ archived: z.boolean().default(false),
220
+ publicStats: z.boolean().default(false),
221
+ tagId: z.nullable(z.string()).optional(),
222
+ tagIds: z.union([z.string(), z.array(z.string())]).optional(),
223
+ tagNames: z.union([z.string(), z.array(z.string())]).optional(),
224
+ comments: z.nullable(z.string()).optional(),
225
+ expiresAt: z.nullable(z.string()).optional(),
226
+ expiredUrl: z.nullable(z.string()).optional(),
227
+ password: z.nullable(z.string()).optional(),
228
+ proxy: z.boolean().default(false),
229
+ title: z.nullable(z.string()).optional(),
230
+ description: z.nullable(z.string()).optional(),
231
+ image: z.nullable(z.string()).optional(),
232
+ video: z.nullable(z.string()).optional(),
233
+ rewrite: z.boolean().default(false),
234
+ ios: z.nullable(z.string()).optional(),
235
+ android: z.nullable(z.string()).optional(),
236
+ geo: z.nullable(components.LinkGeoTargeting$inboundSchema).optional(),
237
+ doIndex: z.boolean().default(false),
238
+ utm_source: z.nullable(z.string()).optional(),
239
+ utm_medium: z.nullable(z.string()).optional(),
240
+ utm_campaign: z.nullable(z.string()).optional(),
241
+ utm_term: z.nullable(z.string()).optional(),
242
+ utm_content: z.nullable(z.string()).optional(),
243
+ })
244
+ .transform((v) => {
245
+ return remap$(v, {
246
+ utm_source: "utmSource",
247
+ utm_medium: "utmMedium",
248
+ utm_campaign: "utmCampaign",
249
+ utm_term: "utmTerm",
250
+ utm_content: "utmContent",
251
+ });
252
+ });
218
253
 
219
254
  /** @internal */
220
255
  export type UpdateLinkRequestBody$Outbound = {
@@ -243,6 +278,11 @@ export type UpdateLinkRequestBody$Outbound = {
243
278
  android?: string | null | undefined;
244
279
  geo?: components.LinkGeoTargeting$Outbound | null | undefined;
245
280
  doIndex: boolean;
281
+ utm_source?: string | null | undefined;
282
+ utm_medium?: string | null | undefined;
283
+ utm_campaign?: string | null | undefined;
284
+ utm_term?: string | null | undefined;
285
+ utm_content?: string | null | undefined;
246
286
  };
247
287
 
248
288
  /** @internal */
@@ -250,33 +290,48 @@ export const UpdateLinkRequestBody$outboundSchema: z.ZodType<
250
290
  UpdateLinkRequestBody$Outbound,
251
291
  z.ZodTypeDef,
252
292
  UpdateLinkRequestBody
253
- > = z.object({
254
- url: z.string().optional(),
255
- domain: z.string().optional(),
256
- key: z.string().optional(),
257
- externalId: z.nullable(z.string()).optional(),
258
- prefix: z.string().optional(),
259
- trackConversion: z.boolean().default(false),
260
- archived: z.boolean().default(false),
261
- publicStats: z.boolean().default(false),
262
- tagId: z.nullable(z.string()).optional(),
263
- tagIds: z.union([z.string(), z.array(z.string())]).optional(),
264
- tagNames: z.union([z.string(), z.array(z.string())]).optional(),
265
- comments: z.nullable(z.string()).optional(),
266
- expiresAt: z.nullable(z.string()).optional(),
267
- expiredUrl: z.nullable(z.string()).optional(),
268
- password: z.nullable(z.string()).optional(),
269
- proxy: z.boolean().default(false),
270
- title: z.nullable(z.string()).optional(),
271
- description: z.nullable(z.string()).optional(),
272
- image: z.nullable(z.string()).optional(),
273
- video: z.nullable(z.string()).optional(),
274
- rewrite: z.boolean().default(false),
275
- ios: z.nullable(z.string()).optional(),
276
- android: z.nullable(z.string()).optional(),
277
- geo: z.nullable(components.LinkGeoTargeting$outboundSchema).optional(),
278
- doIndex: z.boolean().default(false),
279
- });
293
+ > = z
294
+ .object({
295
+ url: z.string().optional(),
296
+ domain: z.string().optional(),
297
+ key: z.string().optional(),
298
+ externalId: z.nullable(z.string()).optional(),
299
+ prefix: z.string().optional(),
300
+ trackConversion: z.boolean().default(false),
301
+ archived: z.boolean().default(false),
302
+ publicStats: z.boolean().default(false),
303
+ tagId: z.nullable(z.string()).optional(),
304
+ tagIds: z.union([z.string(), z.array(z.string())]).optional(),
305
+ tagNames: z.union([z.string(), z.array(z.string())]).optional(),
306
+ comments: z.nullable(z.string()).optional(),
307
+ expiresAt: z.nullable(z.string()).optional(),
308
+ expiredUrl: z.nullable(z.string()).optional(),
309
+ password: z.nullable(z.string()).optional(),
310
+ proxy: z.boolean().default(false),
311
+ title: z.nullable(z.string()).optional(),
312
+ description: z.nullable(z.string()).optional(),
313
+ image: z.nullable(z.string()).optional(),
314
+ video: z.nullable(z.string()).optional(),
315
+ rewrite: z.boolean().default(false),
316
+ ios: z.nullable(z.string()).optional(),
317
+ android: z.nullable(z.string()).optional(),
318
+ geo: z.nullable(components.LinkGeoTargeting$outboundSchema).optional(),
319
+ doIndex: z.boolean().default(false),
320
+ utmSource: z.nullable(z.string()).optional(),
321
+ utmMedium: z.nullable(z.string()).optional(),
322
+ utmCampaign: z.nullable(z.string()).optional(),
323
+ utmTerm: z.nullable(z.string()).optional(),
324
+ utmContent: z.nullable(z.string()).optional(),
325
+ })
326
+ .transform((v) => {
327
+ return remap$(v, {
328
+ utmSource: "utm_source",
329
+ utmMedium: "utm_medium",
330
+ utmCampaign: "utm_campaign",
331
+ utmTerm: "utm_term",
332
+ utmContent: "utm_content",
333
+ });
334
+ });
280
335
 
281
336
  /**
282
337
  * @internal
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
5
  import { remap as remap$ } from "../../lib/primitives.js";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
5
  import { remap as remap$ } from "../../lib/primitives.js";