dub 0.30.0 → 0.30.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 (66) hide show
  1. package/docs/sdks/track/README.md +1 -2
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/models/components/domainschema.d.ts +6 -33
  5. package/models/components/domainschema.d.ts.map +1 -1
  6. package/models/components/domainschema.js +5 -22
  7. package/models/components/domainschema.js.map +1 -1
  8. package/models/components/linkschema.d.ts +5 -0
  9. package/models/components/linkschema.d.ts.map +1 -1
  10. package/models/components/linkschema.js +2 -0
  11. package/models/components/linkschema.js.map +1 -1
  12. package/models/operations/bulkcreatelinks.d.ts +5 -0
  13. package/models/operations/bulkcreatelinks.d.ts.map +1 -1
  14. package/models/operations/bulkcreatelinks.js +2 -0
  15. package/models/operations/bulkcreatelinks.js.map +1 -1
  16. package/models/operations/createdomain.d.ts +0 -32
  17. package/models/operations/createdomain.d.ts.map +1 -1
  18. package/models/operations/createdomain.js +1 -20
  19. package/models/operations/createdomain.js.map +1 -1
  20. package/models/operations/createlink.d.ts +5 -0
  21. package/models/operations/createlink.d.ts.map +1 -1
  22. package/models/operations/createlink.js +2 -0
  23. package/models/operations/createlink.js.map +1 -1
  24. package/models/operations/updatedomain.d.ts +0 -32
  25. package/models/operations/updatedomain.d.ts.map +1 -1
  26. package/models/operations/updatedomain.js +1 -20
  27. package/models/operations/updatedomain.js.map +1 -1
  28. package/models/operations/updatelink.d.ts +5 -0
  29. package/models/operations/updatelink.d.ts.map +1 -1
  30. package/models/operations/updatelink.js +2 -0
  31. package/models/operations/updatelink.js.map +1 -1
  32. package/models/operations/upsertlink.d.ts +5 -0
  33. package/models/operations/upsertlink.d.ts.map +1 -1
  34. package/models/operations/upsertlink.js +2 -0
  35. package/models/operations/upsertlink.js.map +1 -1
  36. package/package.json +1 -1
  37. package/sdk/analytics.js +1 -1
  38. package/sdk/analytics.js.map +1 -1
  39. package/sdk/domains.js +6 -6
  40. package/sdk/domains.js.map +1 -1
  41. package/sdk/links.js +8 -8
  42. package/sdk/links.js.map +1 -1
  43. package/sdk/qrcodes.js +1 -1
  44. package/sdk/qrcodes.js.map +1 -1
  45. package/sdk/tags.js +2 -2
  46. package/sdk/tags.js.map +1 -1
  47. package/sdk/track.js +3 -3
  48. package/sdk/track.js.map +1 -1
  49. package/sdk/workspaces.js +3 -3
  50. package/sdk/workspaces.js.map +1 -1
  51. package/src/lib/config.ts +3 -3
  52. package/src/models/components/domainschema.ts +10 -43
  53. package/src/models/components/linkschema.ts +7 -0
  54. package/src/models/operations/bulkcreatelinks.ts +7 -0
  55. package/src/models/operations/createdomain.ts +0 -40
  56. package/src/models/operations/createlink.ts +7 -0
  57. package/src/models/operations/updatedomain.ts +0 -41
  58. package/src/models/operations/updatelink.ts +7 -0
  59. package/src/models/operations/upsertlink.ts +7 -0
  60. package/src/sdk/analytics.ts +1 -1
  61. package/src/sdk/domains.ts +6 -6
  62. package/src/sdk/links.ts +8 -8
  63. package/src/sdk/qrcodes.ts +1 -1
  64. package/src/sdk/tags.ts +2 -2
  65. package/src/sdk/track.ts +3 -3
  66. package/src/sdk/workspaces.ts +3 -3
@@ -2,21 +2,8 @@
2
2
  * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { ClosedEnum } from "../../types/enums.js";
6
5
  import * as z from "zod";
7
6
 
8
- /**
9
- * The type of redirect to use for this domain.
10
- */
11
- export const Type = {
12
- Redirect: "redirect",
13
- Rewrite: "rewrite",
14
- } as const;
15
- /**
16
- * The type of redirect to use for this domain.
17
- */
18
- export type Type = ClosedEnum<typeof Type>;
19
-
20
7
  export type DomainSchema = {
21
8
  /**
22
9
  * The unique identifier of the domain.
@@ -38,10 +25,6 @@ export type DomainSchema = {
38
25
  * Whether the domain is archived.
39
26
  */
40
27
  archived?: boolean | undefined;
41
- /**
42
- * Prevent search engines from indexing the domain.
43
- */
44
- noindex?: boolean | undefined;
45
28
  /**
46
29
  * Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.
47
30
  */
@@ -51,25 +34,15 @@ export type DomainSchema = {
51
34
  */
52
35
  expiredUrl: string | null;
53
36
  /**
54
- * The page your users will get redirected to when they visit your domain.
37
+ * The date the domain was created.
55
38
  */
56
- target: string | null;
39
+ createdAt: string;
57
40
  /**
58
- * The type of redirect to use for this domain.
41
+ * The date the domain was last updated.
59
42
  */
60
- type: Type;
61
- /**
62
- * The number of clicks on the domain.
63
- */
64
- clicks?: number | undefined;
43
+ updatedAt: string;
65
44
  };
66
45
 
67
- /** @internal */
68
- export namespace Type$ {
69
- export const inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(Type);
70
- export const outboundSchema: z.ZodNativeEnum<typeof Type> = inboundSchema;
71
- }
72
-
73
46
  /** @internal */
74
47
  export namespace DomainSchema$ {
75
48
  export const inboundSchema: z.ZodType<DomainSchema, z.ZodTypeDef, unknown> = z.object({
@@ -78,12 +51,10 @@ export namespace DomainSchema$ {
78
51
  verified: z.boolean().default(false),
79
52
  primary: z.boolean().default(false),
80
53
  archived: z.boolean().default(false),
81
- noindex: z.boolean().default(false),
82
54
  placeholder: z.string().default("https://dub.co/help/article/what-is-dub"),
83
55
  expiredUrl: z.nullable(z.string()),
84
- target: z.nullable(z.string()),
85
- type: Type$.inboundSchema,
86
- clicks: z.number().default(0),
56
+ createdAt: z.string(),
57
+ updatedAt: z.string(),
87
58
  });
88
59
 
89
60
  export type Outbound = {
@@ -92,12 +63,10 @@ export namespace DomainSchema$ {
92
63
  verified: boolean;
93
64
  primary: boolean;
94
65
  archived: boolean;
95
- noindex: boolean;
96
66
  placeholder: string;
97
67
  expiredUrl: string | null;
98
- target: string | null;
99
- type: string;
100
- clicks: number;
68
+ createdAt: string;
69
+ updatedAt: string;
101
70
  };
102
71
 
103
72
  export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DomainSchema> = z.object({
@@ -106,11 +75,9 @@ export namespace DomainSchema$ {
106
75
  verified: z.boolean().default(false),
107
76
  primary: z.boolean().default(false),
108
77
  archived: z.boolean().default(false),
109
- noindex: z.boolean().default(false),
110
78
  placeholder: z.string().default("https://dub.co/help/article/what-is-dub"),
111
79
  expiredUrl: z.nullable(z.string()),
112
- target: z.nullable(z.string()),
113
- type: Type$.outboundSchema,
114
- clicks: z.number().default(0),
80
+ createdAt: z.string(),
81
+ updatedAt: z.string(),
115
82
  });
116
83
  }
@@ -323,6 +323,10 @@ export type LinkSchema = {
323
323
  * Whether the short link uses link cloaking.
324
324
  */
325
325
  rewrite?: boolean | undefined;
326
+ /**
327
+ * Whether to allow search engines to index the short link.
328
+ */
329
+ doIndex?: boolean | undefined;
326
330
  /**
327
331
  * The iOS destination URL for the short link for iOS device targeting.
328
332
  */
@@ -1712,6 +1716,7 @@ export namespace LinkSchema$ {
1712
1716
  description: z.nullable(z.string()),
1713
1717
  image: z.nullable(z.string()),
1714
1718
  rewrite: z.boolean().default(false),
1719
+ doIndex: z.boolean().default(false),
1715
1720
  ios: z.nullable(z.string()),
1716
1721
  android: z.nullable(z.string()),
1717
1722
  geo: z.nullable(z.lazy(() => Geo$.inboundSchema)),
@@ -1762,6 +1767,7 @@ export namespace LinkSchema$ {
1762
1767
  description: string | null;
1763
1768
  image: string | null;
1764
1769
  rewrite: boolean;
1770
+ doIndex: boolean;
1765
1771
  ios: string | null;
1766
1772
  android: string | null;
1767
1773
  geo: Geo$.Outbound | null;
@@ -1804,6 +1810,7 @@ export namespace LinkSchema$ {
1804
1810
  description: z.nullable(z.string()),
1805
1811
  image: z.nullable(z.string()),
1806
1812
  rewrite: z.boolean().default(false),
1813
+ doIndex: z.boolean().default(false),
1807
1814
  ios: z.nullable(z.string()),
1808
1815
  android: z.nullable(z.string()),
1809
1816
  geo: z.nullable(z.lazy(() => Geo$.outboundSchema)),
@@ -118,6 +118,10 @@ export type RequestBody = {
118
118
  * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`.
119
119
  */
120
120
  geo?: components.LinkGeoTargeting | null | undefined;
121
+ /**
122
+ * Allow search engines to index your short link. Defaults to `false` if not provided. Learn more: https://d.to/noindex
123
+ */
124
+ doIndex?: boolean | undefined;
121
125
  };
122
126
 
123
127
  /** @internal */
@@ -191,6 +195,7 @@ export namespace RequestBody$ {
191
195
  ios: z.nullable(z.string()).optional(),
192
196
  android: z.nullable(z.string()).optional(),
193
197
  geo: z.nullable(components.LinkGeoTargeting$.inboundSchema).optional(),
198
+ doIndex: z.boolean().default(false),
194
199
  });
195
200
 
196
201
  export type Outbound = {
@@ -217,6 +222,7 @@ export namespace RequestBody$ {
217
222
  ios?: string | null | undefined;
218
223
  android?: string | null | undefined;
219
224
  geo?: components.LinkGeoTargeting$.Outbound | null | undefined;
225
+ doIndex: boolean;
220
226
  };
221
227
 
222
228
  export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, RequestBody> = z.object({
@@ -243,5 +249,6 @@ export namespace RequestBody$ {
243
249
  ios: z.nullable(z.string()).optional(),
244
250
  android: z.nullable(z.string()).optional(),
245
251
  geo: z.nullable(components.LinkGeoTargeting$.outboundSchema).optional(),
252
+ doIndex: z.boolean().default(false),
246
253
  });
247
254
  }
@@ -2,7 +2,6 @@
2
2
  * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { ClosedEnum } from "../../types/enums.js";
6
5
  import * as z from "zod";
7
6
 
8
7
  export type CreateDomainGlobals = {
@@ -13,31 +12,11 @@ export type CreateDomainGlobals = {
13
12
  projectSlug?: string | undefined;
14
13
  };
15
14
 
16
- /**
17
- * The type of redirect to use for this domain.
18
- */
19
- export const Type = {
20
- Redirect: "redirect",
21
- Rewrite: "rewrite",
22
- } as const;
23
- /**
24
- * The type of redirect to use for this domain.
25
- */
26
- export type Type = ClosedEnum<typeof Type>;
27
-
28
15
  export type CreateDomainRequestBody = {
29
16
  /**
30
17
  * Name of the domain.
31
18
  */
32
19
  slug: string;
33
- /**
34
- * The type of redirect to use for this domain.
35
- */
36
- type?: Type | undefined;
37
- /**
38
- * The page your users will get redirected to when they visit your domain.
39
- */
40
- target?: string | null | undefined;
41
20
  /**
42
21
  * Redirect users to a specific URL when any link under this domain has expired.
43
22
  */
@@ -46,10 +25,6 @@ export type CreateDomainRequestBody = {
46
25
  * Whether to archive this domain. `false` will unarchive a previously archived domain.
47
26
  */
48
27
  archived?: boolean | undefined;
49
- /**
50
- * Prevent search engines from indexing the domain. Defaults to `false`.
51
- */
52
- noindex?: boolean | undefined;
53
28
  /**
54
29
  * Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.
55
30
  */
@@ -74,43 +49,28 @@ export namespace CreateDomainGlobals$ {
74
49
  });
75
50
  }
76
51
 
77
- /** @internal */
78
- export namespace Type$ {
79
- export const inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(Type);
80
- export const outboundSchema: z.ZodNativeEnum<typeof Type> = inboundSchema;
81
- }
82
-
83
52
  /** @internal */
84
53
  export namespace CreateDomainRequestBody$ {
85
54
  export const inboundSchema: z.ZodType<CreateDomainRequestBody, z.ZodTypeDef, unknown> =
86
55
  z.object({
87
56
  slug: z.string(),
88
- type: Type$.inboundSchema.default("redirect"),
89
- target: z.nullable(z.string()).optional(),
90
57
  expiredUrl: z.nullable(z.string()).optional(),
91
58
  archived: z.boolean().default(false),
92
- noindex: z.boolean().optional(),
93
59
  placeholder: z.nullable(z.string().default("https://dub.co/help/article/what-is-dub")),
94
60
  });
95
61
 
96
62
  export type Outbound = {
97
63
  slug: string;
98
- type: string;
99
- target?: string | null | undefined;
100
64
  expiredUrl?: string | null | undefined;
101
65
  archived: boolean;
102
- noindex?: boolean | undefined;
103
66
  placeholder: string | null;
104
67
  };
105
68
 
106
69
  export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateDomainRequestBody> =
107
70
  z.object({
108
71
  slug: z.string(),
109
- type: Type$.outboundSchema.default("redirect"),
110
- target: z.nullable(z.string()).optional(),
111
72
  expiredUrl: z.nullable(z.string()).optional(),
112
73
  archived: z.boolean().default(false),
113
- noindex: z.boolean().optional(),
114
74
  placeholder: z.nullable(z.string().default("https://dub.co/help/article/what-is-dub")),
115
75
  });
116
76
  }
@@ -118,6 +118,10 @@ export type CreateLinkRequestBody = {
118
118
  * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`.
119
119
  */
120
120
  geo?: components.LinkGeoTargeting | null | undefined;
121
+ /**
122
+ * Allow search engines to index your short link. Defaults to `false` if not provided. Learn more: https://d.to/noindex
123
+ */
124
+ doIndex?: boolean | undefined;
121
125
  };
122
126
 
123
127
  /** @internal */
@@ -192,6 +196,7 @@ export namespace CreateLinkRequestBody$ {
192
196
  ios: z.nullable(z.string()).optional(),
193
197
  android: z.nullable(z.string()).optional(),
194
198
  geo: z.nullable(components.LinkGeoTargeting$.inboundSchema).optional(),
199
+ doIndex: z.boolean().default(false),
195
200
  });
196
201
 
197
202
  export type Outbound = {
@@ -218,6 +223,7 @@ export namespace CreateLinkRequestBody$ {
218
223
  ios?: string | null | undefined;
219
224
  android?: string | null | undefined;
220
225
  geo?: components.LinkGeoTargeting$.Outbound | null | undefined;
226
+ doIndex: boolean;
221
227
  };
222
228
 
223
229
  export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateLinkRequestBody> =
@@ -245,5 +251,6 @@ export namespace CreateLinkRequestBody$ {
245
251
  ios: z.nullable(z.string()).optional(),
246
252
  android: z.nullable(z.string()).optional(),
247
253
  geo: z.nullable(components.LinkGeoTargeting$.outboundSchema).optional(),
254
+ doIndex: z.boolean().default(false),
248
255
  });
249
256
  }
@@ -3,7 +3,6 @@
3
3
  */
4
4
 
5
5
  import { remap as remap$ } from "../../lib/primitives.js";
6
- import { ClosedEnum } from "../../types/enums.js";
7
6
  import * as z from "zod";
8
7
 
9
8
  export type UpdateDomainGlobals = {
@@ -14,31 +13,11 @@ export type UpdateDomainGlobals = {
14
13
  projectSlug?: string | undefined;
15
14
  };
16
15
 
17
- /**
18
- * The type of redirect to use for this domain.
19
- */
20
- export const UpdateDomainType = {
21
- Redirect: "redirect",
22
- Rewrite: "rewrite",
23
- } as const;
24
- /**
25
- * The type of redirect to use for this domain.
26
- */
27
- export type UpdateDomainType = ClosedEnum<typeof UpdateDomainType>;
28
-
29
16
  export type UpdateDomainRequestBody = {
30
17
  /**
31
18
  * Name of the domain.
32
19
  */
33
20
  slug?: string | undefined;
34
- /**
35
- * The type of redirect to use for this domain.
36
- */
37
- type?: UpdateDomainType | undefined;
38
- /**
39
- * The page your users will get redirected to when they visit your domain.
40
- */
41
- target?: string | null | undefined;
42
21
  /**
43
22
  * Redirect users to a specific URL when any link under this domain has expired.
44
23
  */
@@ -47,10 +26,6 @@ export type UpdateDomainRequestBody = {
47
26
  * Whether to archive this domain. `false` will unarchive a previously archived domain.
48
27
  */
49
28
  archived?: boolean | undefined;
50
- /**
51
- * Prevent search engines from indexing the domain. Defaults to `false`.
52
- */
53
- noindex?: boolean | undefined;
54
29
  /**
55
30
  * Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.
56
31
  */
@@ -83,44 +58,28 @@ export namespace UpdateDomainGlobals$ {
83
58
  });
84
59
  }
85
60
 
86
- /** @internal */
87
- export namespace UpdateDomainType$ {
88
- export const inboundSchema: z.ZodNativeEnum<typeof UpdateDomainType> =
89
- z.nativeEnum(UpdateDomainType);
90
- export const outboundSchema: z.ZodNativeEnum<typeof UpdateDomainType> = inboundSchema;
91
- }
92
-
93
61
  /** @internal */
94
62
  export namespace UpdateDomainRequestBody$ {
95
63
  export const inboundSchema: z.ZodType<UpdateDomainRequestBody, z.ZodTypeDef, unknown> =
96
64
  z.object({
97
65
  slug: z.string().optional(),
98
- type: UpdateDomainType$.inboundSchema.default("redirect"),
99
- target: z.nullable(z.string()).optional(),
100
66
  expiredUrl: z.nullable(z.string()).optional(),
101
67
  archived: z.boolean().default(false),
102
- noindex: z.boolean().optional(),
103
68
  placeholder: z.nullable(z.string().default("https://dub.co/help/article/what-is-dub")),
104
69
  });
105
70
 
106
71
  export type Outbound = {
107
72
  slug?: string | undefined;
108
- type: string;
109
- target?: string | null | undefined;
110
73
  expiredUrl?: string | null | undefined;
111
74
  archived: boolean;
112
- noindex?: boolean | undefined;
113
75
  placeholder: string | null;
114
76
  };
115
77
 
116
78
  export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateDomainRequestBody> =
117
79
  z.object({
118
80
  slug: z.string().optional(),
119
- type: UpdateDomainType$.outboundSchema.default("redirect"),
120
- target: z.nullable(z.string()).optional(),
121
81
  expiredUrl: z.nullable(z.string()).optional(),
122
82
  archived: z.boolean().default(false),
123
- noindex: z.boolean().optional(),
124
83
  placeholder: z.nullable(z.string().default("https://dub.co/help/article/what-is-dub")),
125
84
  });
126
85
  }
@@ -119,6 +119,10 @@ export type UpdateLinkRequestBody = {
119
119
  * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`.
120
120
  */
121
121
  geo?: components.LinkGeoTargeting | null | undefined;
122
+ /**
123
+ * Allow search engines to index your short link. Defaults to `false` if not provided. Learn more: https://d.to/noindex
124
+ */
125
+ doIndex?: boolean | undefined;
122
126
  };
123
127
 
124
128
  export type UpdateLinkRequest = {
@@ -201,6 +205,7 @@ export namespace UpdateLinkRequestBody$ {
201
205
  ios: z.nullable(z.string()).optional(),
202
206
  android: z.nullable(z.string()).optional(),
203
207
  geo: z.nullable(components.LinkGeoTargeting$.inboundSchema).optional(),
208
+ doIndex: z.boolean().default(false),
204
209
  });
205
210
 
206
211
  export type Outbound = {
@@ -227,6 +232,7 @@ export namespace UpdateLinkRequestBody$ {
227
232
  ios?: string | null | undefined;
228
233
  android?: string | null | undefined;
229
234
  geo?: components.LinkGeoTargeting$.Outbound | null | undefined;
235
+ doIndex: boolean;
230
236
  };
231
237
 
232
238
  export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateLinkRequestBody> =
@@ -254,6 +260,7 @@ export namespace UpdateLinkRequestBody$ {
254
260
  ios: z.nullable(z.string()).optional(),
255
261
  android: z.nullable(z.string()).optional(),
256
262
  geo: z.nullable(components.LinkGeoTargeting$.outboundSchema).optional(),
263
+ doIndex: z.boolean().default(false),
257
264
  });
258
265
  }
259
266
 
@@ -118,6 +118,10 @@ export type UpsertLinkRequestBody = {
118
118
  * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`.
119
119
  */
120
120
  geo?: components.LinkGeoTargeting | null | undefined;
121
+ /**
122
+ * Allow search engines to index your short link. Defaults to `false` if not provided. Learn more: https://d.to/noindex
123
+ */
124
+ doIndex?: boolean | undefined;
121
125
  };
122
126
 
123
127
  /** @internal */
@@ -192,6 +196,7 @@ export namespace UpsertLinkRequestBody$ {
192
196
  ios: z.nullable(z.string()).optional(),
193
197
  android: z.nullable(z.string()).optional(),
194
198
  geo: z.nullable(components.LinkGeoTargeting$.inboundSchema).optional(),
199
+ doIndex: z.boolean().default(false),
195
200
  });
196
201
 
197
202
  export type Outbound = {
@@ -218,6 +223,7 @@ export namespace UpsertLinkRequestBody$ {
218
223
  ios?: string | null | undefined;
219
224
  android?: string | null | undefined;
220
225
  geo?: components.LinkGeoTargeting$.Outbound | null | undefined;
226
+ doIndex: boolean;
221
227
  };
222
228
 
223
229
  export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpsertLinkRequestBody> =
@@ -245,5 +251,6 @@ export namespace UpsertLinkRequestBody$ {
245
251
  ios: z.nullable(z.string()).optional(),
246
252
  android: z.nullable(z.string()).optional(),
247
253
  geo: z.nullable(components.LinkGeoTargeting$.outboundSchema).optional(),
254
+ doIndex: z.boolean().default(false),
248
255
  });
249
256
  }
@@ -147,8 +147,8 @@ export class Analytics extends ClientSDK {
147
147
  .json(410, errors.InviteExpired$, { err: true })
148
148
  .json(422, errors.UnprocessableEntity$, { err: true })
149
149
  .json(429, errors.RateLimitExceeded$, { err: true })
150
- .fail(["4XX", "5XX"])
151
150
  .json(500, errors.InternalServerError$, { err: true })
151
+ .fail(["4XX", "5XX"])
152
152
  .match(response, { extraFields: responseFields$ });
153
153
 
154
154
  return result$;
@@ -126,8 +126,8 @@ export class Domains extends ClientSDK {
126
126
  .json(410, errors.InviteExpired$, { err: true })
127
127
  .json(422, errors.UnprocessableEntity$, { err: true })
128
128
  .json(429, errors.RateLimitExceeded$, { err: true })
129
- .fail(["4XX", "5XX"])
130
129
  .json(500, errors.InternalServerError$, { err: true })
130
+ .fail(["4XX", "5XX"])
131
131
  .match(response, { extraFields: responseFields$ });
132
132
 
133
133
  return result$;
@@ -224,8 +224,8 @@ export class Domains extends ClientSDK {
224
224
  .json(410, errors.InviteExpired$, { err: true })
225
225
  .json(422, errors.UnprocessableEntity$, { err: true })
226
226
  .json(429, errors.RateLimitExceeded$, { err: true })
227
- .fail(["4XX", "5XX"])
228
227
  .json(500, errors.InternalServerError$, { err: true })
228
+ .fail(["4XX", "5XX"])
229
229
  .match(response, { extraFields: responseFields$ });
230
230
 
231
231
  return result$;
@@ -325,8 +325,8 @@ export class Domains extends ClientSDK {
325
325
  .json(410, errors.InviteExpired$, { err: true })
326
326
  .json(422, errors.UnprocessableEntity$, { err: true })
327
327
  .json(429, errors.RateLimitExceeded$, { err: true })
328
- .fail(["4XX", "5XX"])
329
328
  .json(500, errors.InternalServerError$, { err: true })
329
+ .fail(["4XX", "5XX"])
330
330
  .match(response, { extraFields: responseFields$ });
331
331
 
332
332
  return result$;
@@ -429,8 +429,8 @@ export class Domains extends ClientSDK {
429
429
  .json(410, errors.InviteExpired$, { err: true })
430
430
  .json(422, errors.UnprocessableEntity$, { err: true })
431
431
  .json(429, errors.RateLimitExceeded$, { err: true })
432
- .fail(["4XX", "5XX"])
433
432
  .json(500, errors.InternalServerError$, { err: true })
433
+ .fail(["4XX", "5XX"])
434
434
  .match(response, { extraFields: responseFields$ });
435
435
 
436
436
  return result$;
@@ -527,8 +527,8 @@ export class Domains extends ClientSDK {
527
527
  .json(410, errors.InviteExpired$, { err: true })
528
528
  .json(422, errors.UnprocessableEntity$, { err: true })
529
529
  .json(429, errors.RateLimitExceeded$, { err: true })
530
- .fail(["4XX", "5XX"])
531
530
  .json(500, errors.InternalServerError$, { err: true })
531
+ .fail(["4XX", "5XX"])
532
532
  .match(response, { extraFields: responseFields$ });
533
533
 
534
534
  return result$;
@@ -631,8 +631,8 @@ export class Domains extends ClientSDK {
631
631
  .json(410, errors.InviteExpired$, { err: true })
632
632
  .json(422, errors.UnprocessableEntity$, { err: true })
633
633
  .json(429, errors.RateLimitExceeded$, { err: true })
634
- .fail(["4XX", "5XX"])
635
634
  .json(500, errors.InternalServerError$, { err: true })
635
+ .fail(["4XX", "5XX"])
636
636
  .match(response, { extraFields: responseFields$ });
637
637
 
638
638
  return result$;
package/src/sdk/links.ts CHANGED
@@ -143,8 +143,8 @@ export class Links extends ClientSDK {
143
143
  .json(410, errors.InviteExpired$, { err: true })
144
144
  .json(422, errors.UnprocessableEntity$, { err: true })
145
145
  .json(429, errors.RateLimitExceeded$, { err: true })
146
- .fail(["4XX", "5XX"])
147
146
  .json(500, errors.InternalServerError$, { err: true })
147
+ .fail(["4XX", "5XX"])
148
148
  .match(response, { extraFields: responseFields$ });
149
149
 
150
150
  return result$;
@@ -241,8 +241,8 @@ export class Links extends ClientSDK {
241
241
  .json(410, errors.InviteExpired$, { err: true })
242
242
  .json(422, errors.UnprocessableEntity$, { err: true })
243
243
  .json(429, errors.RateLimitExceeded$, { err: true })
244
- .fail(["4XX", "5XX"])
245
244
  .json(500, errors.InternalServerError$, { err: true })
245
+ .fail(["4XX", "5XX"])
246
246
  .match(response, { extraFields: responseFields$ });
247
247
 
248
248
  return result$;
@@ -346,8 +346,8 @@ export class Links extends ClientSDK {
346
346
  .json(410, errors.InviteExpired$, { err: true })
347
347
  .json(422, errors.UnprocessableEntity$, { err: true })
348
348
  .json(429, errors.RateLimitExceeded$, { err: true })
349
- .fail(["4XX", "5XX"])
350
349
  .json(500, errors.InternalServerError$, { err: true })
350
+ .fail(["4XX", "5XX"])
351
351
  .match(response, { extraFields: responseFields$ });
352
352
 
353
353
  return result$;
@@ -446,8 +446,8 @@ export class Links extends ClientSDK {
446
446
  .json(410, errors.InviteExpired$, { err: true })
447
447
  .json(422, errors.UnprocessableEntity$, { err: true })
448
448
  .json(429, errors.RateLimitExceeded$, { err: true })
449
- .fail(["4XX", "5XX"])
450
449
  .json(500, errors.InternalServerError$, { err: true })
450
+ .fail(["4XX", "5XX"])
451
451
  .match(response, { extraFields: responseFields$ });
452
452
 
453
453
  return result$;
@@ -550,8 +550,8 @@ export class Links extends ClientSDK {
550
550
  .json(410, errors.InviteExpired$, { err: true })
551
551
  .json(422, errors.UnprocessableEntity$, { err: true })
552
552
  .json(429, errors.RateLimitExceeded$, { err: true })
553
- .fail(["4XX", "5XX"])
554
553
  .json(500, errors.InternalServerError$, { err: true })
554
+ .fail(["4XX", "5XX"])
555
555
  .match(response, { extraFields: responseFields$ });
556
556
 
557
557
  return result$;
@@ -657,8 +657,8 @@ export class Links extends ClientSDK {
657
657
  .json(410, errors.InviteExpired$, { err: true })
658
658
  .json(422, errors.UnprocessableEntity$, { err: true })
659
659
  .json(429, errors.RateLimitExceeded$, { err: true })
660
- .fail(["4XX", "5XX"])
661
660
  .json(500, errors.InternalServerError$, { err: true })
661
+ .fail(["4XX", "5XX"])
662
662
  .match(response, { extraFields: responseFields$ });
663
663
 
664
664
  return result$;
@@ -755,8 +755,8 @@ export class Links extends ClientSDK {
755
755
  .json(410, errors.InviteExpired$, { err: true })
756
756
  .json(422, errors.UnprocessableEntity$, { err: true })
757
757
  .json(429, errors.RateLimitExceeded$, { err: true })
758
- .fail(["4XX", "5XX"])
759
758
  .json(500, errors.InternalServerError$, { err: true })
759
+ .fail(["4XX", "5XX"])
760
760
  .match(response, { extraFields: responseFields$ });
761
761
 
762
762
  return result$;
@@ -853,8 +853,8 @@ export class Links extends ClientSDK {
853
853
  .json(410, errors.InviteExpired$, { err: true })
854
854
  .json(422, errors.UnprocessableEntity$, { err: true })
855
855
  .json(429, errors.RateLimitExceeded$, { err: true })
856
- .fail(["4XX", "5XX"])
857
856
  .json(500, errors.InternalServerError$, { err: true })
857
+ .fail(["4XX", "5XX"])
858
858
  .match(response, { extraFields: responseFields$ });
859
859
 
860
860
  return result$;
@@ -129,8 +129,8 @@ export class QRCodes extends ClientSDK {
129
129
  .json(410, errors.InviteExpired$, { err: true })
130
130
  .json(422, errors.UnprocessableEntity$, { err: true })
131
131
  .json(429, errors.RateLimitExceeded$, { err: true })
132
- .fail(["4XX", "5XX"])
133
132
  .json(500, errors.InternalServerError$, { err: true })
133
+ .fail(["4XX", "5XX"])
134
134
  .match(response, { extraFields: responseFields$ });
135
135
 
136
136
  return result$;
package/src/sdk/tags.ts CHANGED
@@ -125,8 +125,8 @@ export class Tags extends ClientSDK {
125
125
  .json(410, errors.InviteExpired$, { err: true })
126
126
  .json(422, errors.UnprocessableEntity$, { err: true })
127
127
  .json(429, errors.RateLimitExceeded$, { err: true })
128
- .fail(["4XX", "5XX"])
129
128
  .json(500, errors.InternalServerError$, { err: true })
129
+ .fail(["4XX", "5XX"])
130
130
  .match(response, { extraFields: responseFields$ });
131
131
 
132
132
  return result$;
@@ -223,8 +223,8 @@ export class Tags extends ClientSDK {
223
223
  .json(410, errors.InviteExpired$, { err: true })
224
224
  .json(422, errors.UnprocessableEntity$, { err: true })
225
225
  .json(429, errors.RateLimitExceeded$, { err: true })
226
- .fail(["4XX", "5XX"])
227
226
  .json(500, errors.InternalServerError$, { err: true })
227
+ .fail(["4XX", "5XX"])
228
228
  .match(response, { extraFields: responseFields$ });
229
229
 
230
230
  return result$;
package/src/sdk/track.ts CHANGED
@@ -132,8 +132,8 @@ export class Track extends ClientSDK {
132
132
  .json(410, errors.InviteExpired$, { err: true })
133
133
  .json(422, errors.UnprocessableEntity$, { err: true })
134
134
  .json(429, errors.RateLimitExceeded$, { err: true })
135
- .fail(["4XX", "5XX"])
136
135
  .json(500, errors.InternalServerError$, { err: true })
136
+ .fail(["4XX", "5XX"])
137
137
  .match(response, { extraFields: responseFields$ });
138
138
 
139
139
  return result$;
@@ -230,8 +230,8 @@ export class Track extends ClientSDK {
230
230
  .json(410, errors.InviteExpired$, { err: true })
231
231
  .json(422, errors.UnprocessableEntity$, { err: true })
232
232
  .json(429, errors.RateLimitExceeded$, { err: true })
233
- .fail(["4XX", "5XX"])
234
233
  .json(500, errors.InternalServerError$, { err: true })
234
+ .fail(["4XX", "5XX"])
235
235
  .match(response, { extraFields: responseFields$ });
236
236
 
237
237
  return result$;
@@ -329,8 +329,8 @@ export class Track extends ClientSDK {
329
329
  .json(410, errors.InviteExpired$, { err: true })
330
330
  .json(422, errors.UnprocessableEntity$, { err: true })
331
331
  .json(429, errors.RateLimitExceeded$, { err: true })
332
- .fail(["4XX", "5XX"])
333
332
  .json(500, errors.InternalServerError$, { err: true })
333
+ .fail(["4XX", "5XX"])
334
334
  .match(response, { extraFields: responseFields$ });
335
335
 
336
336
  return result$;