dub 0.31.2 → 0.32.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 (130) hide show
  1. package/docs/sdks/domains/README.md +1 -2
  2. package/docs/sdks/tags/README.md +1 -2
  3. package/lib/config.d.ts +2 -10
  4. package/lib/config.d.ts.map +1 -1
  5. package/lib/config.js +2 -2
  6. package/lib/config.js.map +1 -1
  7. package/models/operations/bulkcreatelinks.d.ts +0 -26
  8. package/models/operations/bulkcreatelinks.d.ts.map +1 -1
  9. package/models/operations/bulkcreatelinks.js +1 -20
  10. package/models/operations/bulkcreatelinks.js.map +1 -1
  11. package/models/operations/createdomain.d.ts +0 -26
  12. package/models/operations/createdomain.d.ts.map +1 -1
  13. package/models/operations/createdomain.js +1 -20
  14. package/models/operations/createdomain.js.map +1 -1
  15. package/models/operations/createlink.d.ts +0 -26
  16. package/models/operations/createlink.d.ts.map +1 -1
  17. package/models/operations/createlink.js +1 -20
  18. package/models/operations/createlink.js.map +1 -1
  19. package/models/operations/createtag.d.ts +0 -26
  20. package/models/operations/createtag.d.ts.map +1 -1
  21. package/models/operations/createtag.js +1 -20
  22. package/models/operations/createtag.js.map +1 -1
  23. package/models/operations/deletedomain.d.ts +0 -26
  24. package/models/operations/deletedomain.d.ts.map +1 -1
  25. package/models/operations/deletedomain.js +1 -20
  26. package/models/operations/deletedomain.js.map +1 -1
  27. package/models/operations/deletelink.d.ts +0 -26
  28. package/models/operations/deletelink.d.ts.map +1 -1
  29. package/models/operations/deletelink.js +1 -20
  30. package/models/operations/deletelink.js.map +1 -1
  31. package/models/operations/getlinkinfo.d.ts +0 -26
  32. package/models/operations/getlinkinfo.d.ts.map +1 -1
  33. package/models/operations/getlinkinfo.js +1 -20
  34. package/models/operations/getlinkinfo.js.map +1 -1
  35. package/models/operations/getlinks.d.ts +0 -26
  36. package/models/operations/getlinks.d.ts.map +1 -1
  37. package/models/operations/getlinks.js +1 -20
  38. package/models/operations/getlinks.js.map +1 -1
  39. package/models/operations/getlinkscount.d.ts +0 -26
  40. package/models/operations/getlinkscount.d.ts.map +1 -1
  41. package/models/operations/getlinkscount.js +1 -20
  42. package/models/operations/getlinkscount.js.map +1 -1
  43. package/models/operations/index.d.ts +0 -2
  44. package/models/operations/index.d.ts.map +1 -1
  45. package/models/operations/index.js +0 -2
  46. package/models/operations/index.js.map +1 -1
  47. package/models/operations/retrieveanalytics.d.ts +0 -26
  48. package/models/operations/retrieveanalytics.d.ts.map +1 -1
  49. package/models/operations/retrieveanalytics.js +1 -20
  50. package/models/operations/retrieveanalytics.js.map +1 -1
  51. package/models/operations/trackcustomer.d.ts +0 -26
  52. package/models/operations/trackcustomer.d.ts.map +1 -1
  53. package/models/operations/trackcustomer.js +1 -20
  54. package/models/operations/trackcustomer.js.map +1 -1
  55. package/models/operations/tracklead.d.ts +0 -26
  56. package/models/operations/tracklead.d.ts.map +1 -1
  57. package/models/operations/tracklead.js +1 -20
  58. package/models/operations/tracklead.js.map +1 -1
  59. package/models/operations/tracksale.d.ts +0 -26
  60. package/models/operations/tracksale.d.ts.map +1 -1
  61. package/models/operations/tracksale.js +1 -20
  62. package/models/operations/tracksale.js.map +1 -1
  63. package/models/operations/updatedomain.d.ts +0 -26
  64. package/models/operations/updatedomain.d.ts.map +1 -1
  65. package/models/operations/updatedomain.js +1 -20
  66. package/models/operations/updatedomain.js.map +1 -1
  67. package/models/operations/updatelink.d.ts +0 -26
  68. package/models/operations/updatelink.d.ts.map +1 -1
  69. package/models/operations/updatelink.js +1 -20
  70. package/models/operations/updatelink.js.map +1 -1
  71. package/models/operations/updatetag.d.ts +0 -26
  72. package/models/operations/updatetag.d.ts.map +1 -1
  73. package/models/operations/updatetag.js +1 -20
  74. package/models/operations/updatetag.js.map +1 -1
  75. package/models/operations/upsertlink.d.ts +0 -26
  76. package/models/operations/upsertlink.d.ts.map +1 -1
  77. package/models/operations/upsertlink.js +1 -20
  78. package/models/operations/upsertlink.js.map +1 -1
  79. package/package.json +1 -1
  80. package/sdk/analytics.d.ts.map +1 -1
  81. package/sdk/analytics.js +0 -1
  82. package/sdk/analytics.js.map +1 -1
  83. package/sdk/domains.d.ts +1 -1
  84. package/sdk/domains.d.ts.map +1 -1
  85. package/sdk/domains.js +5 -15
  86. package/sdk/domains.js.map +1 -1
  87. package/sdk/links.d.ts.map +1 -1
  88. package/sdk/links.js +5 -18
  89. package/sdk/links.js.map +1 -1
  90. package/sdk/tags.d.ts +1 -1
  91. package/sdk/tags.d.ts.map +1 -1
  92. package/sdk/tags.js +4 -12
  93. package/sdk/tags.js.map +1 -1
  94. package/sdk/track.d.ts.map +1 -1
  95. package/sdk/track.js +3 -9
  96. package/sdk/track.js.map +1 -1
  97. package/src/lib/config.ts +2 -12
  98. package/src/models/operations/bulkcreatelinks.ts +0 -43
  99. package/src/models/operations/createdomain.ts +0 -43
  100. package/src/models/operations/createlink.ts +0 -40
  101. package/src/models/operations/createtag.ts +0 -40
  102. package/src/models/operations/deletedomain.ts +0 -43
  103. package/src/models/operations/deletelink.ts +0 -40
  104. package/src/models/operations/getlinkinfo.ts +0 -43
  105. package/src/models/operations/getlinks.ts +0 -40
  106. package/src/models/operations/getlinkscount.ts +0 -43
  107. package/src/models/operations/index.ts +0 -2
  108. package/src/models/operations/retrieveanalytics.ts +0 -43
  109. package/src/models/operations/trackcustomer.ts +0 -43
  110. package/src/models/operations/tracklead.ts +0 -40
  111. package/src/models/operations/tracksale.ts +0 -40
  112. package/src/models/operations/updatedomain.ts +0 -43
  113. package/src/models/operations/updatelink.ts +0 -40
  114. package/src/models/operations/updatetag.ts +0 -40
  115. package/src/models/operations/upsertlink.ts +0 -40
  116. package/src/sdk/analytics.ts +0 -1
  117. package/src/sdk/domains.ts +6 -24
  118. package/src/sdk/links.ts +5 -18
  119. package/src/sdk/tags.ts +5 -21
  120. package/src/sdk/track.ts +4 -13
  121. package/models/operations/gettags.d.ts +0 -47
  122. package/models/operations/gettags.d.ts.map +0 -1
  123. package/models/operations/gettags.js +0 -65
  124. package/models/operations/gettags.js.map +0 -1
  125. package/models/operations/listdomains.d.ts +0 -47
  126. package/models/operations/listdomains.d.ts.map +0 -1
  127. package/models/operations/listdomains.js +0 -65
  128. package/models/operations/listdomains.js.map +0 -1
  129. package/src/models/operations/gettags.ts +0 -74
  130. package/src/models/operations/listdomains.ts +0 -80
@@ -6,13 +6,6 @@ import { ClosedEnum } from "../../types/enums.js";
6
6
  import * as components from "../components/index.js";
7
7
  import * as z from "zod";
8
8
 
9
- export type RetrieveAnalyticsGlobals = {
10
- /**
11
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
12
- */
13
- workspaceId?: string | undefined;
14
- };
15
-
16
9
  /**
17
10
  * The type of event to retrieve analytics for. Defaults to 'clicks'.
18
11
  */
@@ -184,42 +177,6 @@ export type RetrieveAnalyticsResponseBody =
184
177
  | Array<components.SalesTopLinks>
185
178
  | Array<components.SalesTopUrls>;
186
179
 
187
- /** @internal */
188
- export const RetrieveAnalyticsGlobals$inboundSchema: z.ZodType<
189
- RetrieveAnalyticsGlobals,
190
- z.ZodTypeDef,
191
- unknown
192
- > = z.object({
193
- workspaceId: z.string().optional(),
194
- });
195
-
196
- /** @internal */
197
- export type RetrieveAnalyticsGlobals$Outbound = {
198
- workspaceId?: string | undefined;
199
- };
200
-
201
- /** @internal */
202
- export const RetrieveAnalyticsGlobals$outboundSchema: z.ZodType<
203
- RetrieveAnalyticsGlobals$Outbound,
204
- z.ZodTypeDef,
205
- RetrieveAnalyticsGlobals
206
- > = z.object({
207
- workspaceId: z.string().optional(),
208
- });
209
-
210
- /**
211
- * @internal
212
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
213
- */
214
- export namespace RetrieveAnalyticsGlobals$ {
215
- /** @deprecated use `RetrieveAnalyticsGlobals$inboundSchema` instead. */
216
- export const inboundSchema = RetrieveAnalyticsGlobals$inboundSchema;
217
- /** @deprecated use `RetrieveAnalyticsGlobals$outboundSchema` instead. */
218
- export const outboundSchema = RetrieveAnalyticsGlobals$outboundSchema;
219
- /** @deprecated use `RetrieveAnalyticsGlobals$Outbound` instead. */
220
- export type Outbound = RetrieveAnalyticsGlobals$Outbound;
221
- }
222
-
223
180
  /** @internal */
224
181
  export const Event$inboundSchema: z.ZodNativeEnum<typeof Event> = z.nativeEnum(Event);
225
182
 
@@ -4,13 +4,6 @@
4
4
 
5
5
  import * as z from "zod";
6
6
 
7
- export type TrackCustomerGlobals = {
8
- /**
9
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
10
- */
11
- workspaceId?: string | undefined;
12
- };
13
-
14
7
  export type TrackCustomerRequestBody = {
15
8
  /**
16
9
  * This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.
@@ -40,42 +33,6 @@ export type TrackCustomerResponseBody = {
40
33
  customerAvatar: string | null;
41
34
  };
42
35
 
43
- /** @internal */
44
- export const TrackCustomerGlobals$inboundSchema: z.ZodType<
45
- TrackCustomerGlobals,
46
- z.ZodTypeDef,
47
- unknown
48
- > = z.object({
49
- workspaceId: z.string().optional(),
50
- });
51
-
52
- /** @internal */
53
- export type TrackCustomerGlobals$Outbound = {
54
- workspaceId?: string | undefined;
55
- };
56
-
57
- /** @internal */
58
- export const TrackCustomerGlobals$outboundSchema: z.ZodType<
59
- TrackCustomerGlobals$Outbound,
60
- z.ZodTypeDef,
61
- TrackCustomerGlobals
62
- > = z.object({
63
- workspaceId: z.string().optional(),
64
- });
65
-
66
- /**
67
- * @internal
68
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
69
- */
70
- export namespace TrackCustomerGlobals$ {
71
- /** @deprecated use `TrackCustomerGlobals$inboundSchema` instead. */
72
- export const inboundSchema = TrackCustomerGlobals$inboundSchema;
73
- /** @deprecated use `TrackCustomerGlobals$outboundSchema` instead. */
74
- export const outboundSchema = TrackCustomerGlobals$outboundSchema;
75
- /** @deprecated use `TrackCustomerGlobals$Outbound` instead. */
76
- export type Outbound = TrackCustomerGlobals$Outbound;
77
- }
78
-
79
36
  /** @internal */
80
37
  export const TrackCustomerRequestBody$inboundSchema: z.ZodType<
81
38
  TrackCustomerRequestBody,
@@ -4,13 +4,6 @@
4
4
 
5
5
  import * as z from "zod";
6
6
 
7
- export type TrackLeadGlobals = {
8
- /**
9
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
10
- */
11
- workspaceId?: string | undefined;
12
- };
13
-
14
7
  export type TrackLeadRequestBody = {
15
8
  /**
16
9
  * The ID of the click in th Dub. You can read this value from `dclid` cookie.
@@ -55,39 +48,6 @@ export type TrackLeadResponseBody = {
55
48
  metadata?: { [k: string]: any } | undefined;
56
49
  };
57
50
 
58
- /** @internal */
59
- export const TrackLeadGlobals$inboundSchema: z.ZodType<TrackLeadGlobals, z.ZodTypeDef, unknown> =
60
- z.object({
61
- workspaceId: z.string().optional(),
62
- });
63
-
64
- /** @internal */
65
- export type TrackLeadGlobals$Outbound = {
66
- workspaceId?: string | undefined;
67
- };
68
-
69
- /** @internal */
70
- export const TrackLeadGlobals$outboundSchema: z.ZodType<
71
- TrackLeadGlobals$Outbound,
72
- z.ZodTypeDef,
73
- TrackLeadGlobals
74
- > = z.object({
75
- workspaceId: z.string().optional(),
76
- });
77
-
78
- /**
79
- * @internal
80
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
81
- */
82
- export namespace TrackLeadGlobals$ {
83
- /** @deprecated use `TrackLeadGlobals$inboundSchema` instead. */
84
- export const inboundSchema = TrackLeadGlobals$inboundSchema;
85
- /** @deprecated use `TrackLeadGlobals$outboundSchema` instead. */
86
- export const outboundSchema = TrackLeadGlobals$outboundSchema;
87
- /** @deprecated use `TrackLeadGlobals$Outbound` instead. */
88
- export type Outbound = TrackLeadGlobals$Outbound;
89
- }
90
-
91
51
  /** @internal */
92
52
  export const TrackLeadRequestBody$inboundSchema: z.ZodType<
93
53
  TrackLeadRequestBody,
@@ -5,13 +5,6 @@
5
5
  import { ClosedEnum } from "../../types/enums.js";
6
6
  import * as z from "zod";
7
7
 
8
- export type TrackSaleGlobals = {
9
- /**
10
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
11
- */
12
- workspaceId?: string | undefined;
13
- };
14
-
15
8
  /**
16
9
  * The payment processor via which the sale was made.
17
10
  */
@@ -69,39 +62,6 @@ export type TrackSaleResponseBody = {
69
62
  metadata: { [k: string]: any } | null;
70
63
  };
71
64
 
72
- /** @internal */
73
- export const TrackSaleGlobals$inboundSchema: z.ZodType<TrackSaleGlobals, z.ZodTypeDef, unknown> =
74
- z.object({
75
- workspaceId: z.string().optional(),
76
- });
77
-
78
- /** @internal */
79
- export type TrackSaleGlobals$Outbound = {
80
- workspaceId?: string | undefined;
81
- };
82
-
83
- /** @internal */
84
- export const TrackSaleGlobals$outboundSchema: z.ZodType<
85
- TrackSaleGlobals$Outbound,
86
- z.ZodTypeDef,
87
- TrackSaleGlobals
88
- > = z.object({
89
- workspaceId: z.string().optional(),
90
- });
91
-
92
- /**
93
- * @internal
94
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
95
- */
96
- export namespace TrackSaleGlobals$ {
97
- /** @deprecated use `TrackSaleGlobals$inboundSchema` instead. */
98
- export const inboundSchema = TrackSaleGlobals$inboundSchema;
99
- /** @deprecated use `TrackSaleGlobals$outboundSchema` instead. */
100
- export const outboundSchema = TrackSaleGlobals$outboundSchema;
101
- /** @deprecated use `TrackSaleGlobals$Outbound` instead. */
102
- export type Outbound = TrackSaleGlobals$Outbound;
103
- }
104
-
105
65
  /** @internal */
106
66
  export const PaymentProcessor$inboundSchema: z.ZodNativeEnum<typeof PaymentProcessor> =
107
67
  z.nativeEnum(PaymentProcessor);
@@ -5,13 +5,6 @@
5
5
  import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import * as z from "zod";
7
7
 
8
- export type UpdateDomainGlobals = {
9
- /**
10
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
11
- */
12
- workspaceId?: string | undefined;
13
- };
14
-
15
8
  export type UpdateDomainRequestBody = {
16
9
  /**
17
10
  * Name of the domain.
@@ -39,42 +32,6 @@ export type UpdateDomainRequest = {
39
32
  requestBody?: UpdateDomainRequestBody | undefined;
40
33
  };
41
34
 
42
- /** @internal */
43
- export const UpdateDomainGlobals$inboundSchema: z.ZodType<
44
- UpdateDomainGlobals,
45
- z.ZodTypeDef,
46
- unknown
47
- > = z.object({
48
- workspaceId: z.string().optional(),
49
- });
50
-
51
- /** @internal */
52
- export type UpdateDomainGlobals$Outbound = {
53
- workspaceId?: string | undefined;
54
- };
55
-
56
- /** @internal */
57
- export const UpdateDomainGlobals$outboundSchema: z.ZodType<
58
- UpdateDomainGlobals$Outbound,
59
- z.ZodTypeDef,
60
- UpdateDomainGlobals
61
- > = z.object({
62
- workspaceId: z.string().optional(),
63
- });
64
-
65
- /**
66
- * @internal
67
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
68
- */
69
- export namespace UpdateDomainGlobals$ {
70
- /** @deprecated use `UpdateDomainGlobals$inboundSchema` instead. */
71
- export const inboundSchema = UpdateDomainGlobals$inboundSchema;
72
- /** @deprecated use `UpdateDomainGlobals$outboundSchema` instead. */
73
- export const outboundSchema = UpdateDomainGlobals$outboundSchema;
74
- /** @deprecated use `UpdateDomainGlobals$Outbound` instead. */
75
- export type Outbound = UpdateDomainGlobals$Outbound;
76
- }
77
-
78
35
  /** @internal */
79
36
  export const UpdateDomainRequestBody$inboundSchema: z.ZodType<
80
37
  UpdateDomainRequestBody,
@@ -6,13 +6,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import * as components from "../components/index.js";
7
7
  import * as z from "zod";
8
8
 
9
- export type UpdateLinkGlobals = {
10
- /**
11
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
12
- */
13
- workspaceId?: string | undefined;
14
- };
15
-
16
9
  /**
17
10
  * The unique IDs of the tags assigned to the short link.
18
11
  */
@@ -129,39 +122,6 @@ export type UpdateLinkRequest = {
129
122
  requestBody?: UpdateLinkRequestBody | undefined;
130
123
  };
131
124
 
132
- /** @internal */
133
- export const UpdateLinkGlobals$inboundSchema: z.ZodType<UpdateLinkGlobals, z.ZodTypeDef, unknown> =
134
- z.object({
135
- workspaceId: z.string().optional(),
136
- });
137
-
138
- /** @internal */
139
- export type UpdateLinkGlobals$Outbound = {
140
- workspaceId?: string | undefined;
141
- };
142
-
143
- /** @internal */
144
- export const UpdateLinkGlobals$outboundSchema: z.ZodType<
145
- UpdateLinkGlobals$Outbound,
146
- z.ZodTypeDef,
147
- UpdateLinkGlobals
148
- > = z.object({
149
- workspaceId: z.string().optional(),
150
- });
151
-
152
- /**
153
- * @internal
154
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
155
- */
156
- export namespace UpdateLinkGlobals$ {
157
- /** @deprecated use `UpdateLinkGlobals$inboundSchema` instead. */
158
- export const inboundSchema = UpdateLinkGlobals$inboundSchema;
159
- /** @deprecated use `UpdateLinkGlobals$outboundSchema` instead. */
160
- export const outboundSchema = UpdateLinkGlobals$outboundSchema;
161
- /** @deprecated use `UpdateLinkGlobals$Outbound` instead. */
162
- export type Outbound = UpdateLinkGlobals$Outbound;
163
- }
164
-
165
125
  /** @internal */
166
126
  export const UpdateLinkTagIds$inboundSchema: z.ZodType<UpdateLinkTagIds, z.ZodTypeDef, unknown> =
167
127
  z.union([z.string(), z.array(z.string())]);
@@ -6,13 +6,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
  import * as z from "zod";
8
8
 
9
- export type UpdateTagGlobals = {
10
- /**
11
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
12
- */
13
- workspaceId?: string | undefined;
14
- };
15
-
16
9
  /**
17
10
  * The color of the tag. If not provided, a random color will be used from the list: red, yellow, green, blue, purple, pink, brown.
18
11
  */
@@ -55,39 +48,6 @@ export type UpdateTagRequest = {
55
48
  requestBody?: UpdateTagRequestBody | undefined;
56
49
  };
57
50
 
58
- /** @internal */
59
- export const UpdateTagGlobals$inboundSchema: z.ZodType<UpdateTagGlobals, z.ZodTypeDef, unknown> =
60
- z.object({
61
- workspaceId: z.string().optional(),
62
- });
63
-
64
- /** @internal */
65
- export type UpdateTagGlobals$Outbound = {
66
- workspaceId?: string | undefined;
67
- };
68
-
69
- /** @internal */
70
- export const UpdateTagGlobals$outboundSchema: z.ZodType<
71
- UpdateTagGlobals$Outbound,
72
- z.ZodTypeDef,
73
- UpdateTagGlobals
74
- > = z.object({
75
- workspaceId: z.string().optional(),
76
- });
77
-
78
- /**
79
- * @internal
80
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
81
- */
82
- export namespace UpdateTagGlobals$ {
83
- /** @deprecated use `UpdateTagGlobals$inboundSchema` instead. */
84
- export const inboundSchema = UpdateTagGlobals$inboundSchema;
85
- /** @deprecated use `UpdateTagGlobals$outboundSchema` instead. */
86
- export const outboundSchema = UpdateTagGlobals$outboundSchema;
87
- /** @deprecated use `UpdateTagGlobals$Outbound` instead. */
88
- export type Outbound = UpdateTagGlobals$Outbound;
89
- }
90
-
91
51
  /** @internal */
92
52
  export const UpdateTagColor$inboundSchema: z.ZodNativeEnum<typeof UpdateTagColor> =
93
53
  z.nativeEnum(UpdateTagColor);
@@ -5,13 +5,6 @@
5
5
  import * as components from "../components/index.js";
6
6
  import * as z from "zod";
7
7
 
8
- export type UpsertLinkGlobals = {
9
- /**
10
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
11
- */
12
- workspaceId?: string | undefined;
13
- };
14
-
15
8
  /**
16
9
  * The unique IDs of the tags assigned to the short link.
17
10
  */
@@ -123,39 +116,6 @@ export type UpsertLinkRequestBody = {
123
116
  doIndex?: boolean | undefined;
124
117
  };
125
118
 
126
- /** @internal */
127
- export const UpsertLinkGlobals$inboundSchema: z.ZodType<UpsertLinkGlobals, z.ZodTypeDef, unknown> =
128
- z.object({
129
- workspaceId: z.string().optional(),
130
- });
131
-
132
- /** @internal */
133
- export type UpsertLinkGlobals$Outbound = {
134
- workspaceId?: string | undefined;
135
- };
136
-
137
- /** @internal */
138
- export const UpsertLinkGlobals$outboundSchema: z.ZodType<
139
- UpsertLinkGlobals$Outbound,
140
- z.ZodTypeDef,
141
- UpsertLinkGlobals
142
- > = z.object({
143
- workspaceId: z.string().optional(),
144
- });
145
-
146
- /**
147
- * @internal
148
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
149
- */
150
- export namespace UpsertLinkGlobals$ {
151
- /** @deprecated use `UpsertLinkGlobals$inboundSchema` instead. */
152
- export const inboundSchema = UpsertLinkGlobals$inboundSchema;
153
- /** @deprecated use `UpsertLinkGlobals$outboundSchema` instead. */
154
- export const outboundSchema = UpsertLinkGlobals$outboundSchema;
155
- /** @deprecated use `UpsertLinkGlobals$Outbound` instead. */
156
- export type Outbound = UpsertLinkGlobals$Outbound;
157
- }
158
-
159
119
  /** @internal */
160
120
  export const UpsertLinkTagIds$inboundSchema: z.ZodType<UpsertLinkTagIds, z.ZodTypeDef, unknown> =
161
121
  z.union([z.string(), z.array(z.string())]);
@@ -80,7 +80,6 @@ export class Analytics extends ClientSDK {
80
80
  tagId: payload$.tagId,
81
81
  timezone: payload$.timezone,
82
82
  url: payload$.url,
83
- workspaceId: this.options$.workspaceId,
84
83
  });
85
84
 
86
85
  const headers$ = new Headers({
@@ -4,11 +4,7 @@
4
4
 
5
5
  import { SDKHooks } from "../hooks/hooks.js";
6
6
  import { SDKOptions, serverURLFromOptions } from "../lib/config.js";
7
- import {
8
- encodeFormQuery as encodeFormQuery$,
9
- encodeJSON as encodeJSON$,
10
- encodeSimple as encodeSimple$,
11
- } from "../lib/encodings.js";
7
+ import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
12
8
  import { HTTPClient } from "../lib/http.js";
13
9
  import * as schemas$ from "../lib/schemas.js";
14
10
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
@@ -50,18 +46,10 @@ export class Domains extends ClientSDK {
50
46
  * @remarks
51
47
  * Retrieve a list of domains associated with the authenticated workspace.
52
48
  */
53
- async list(
54
- request?: operations.ListDomainsRequest | undefined,
55
- options?: RequestOptions
56
- ): Promise<Array<components.DomainSchema>> {
57
- const input$ = typeof request === "undefined" ? {} : request;
58
- void input$; // request input is unused
59
-
49
+ async list(options?: RequestOptions): Promise<Array<components.DomainSchema>> {
60
50
  const path$ = this.templateURLComponent("/domains")();
61
51
 
62
- const query$ = encodeFormQuery$({
63
- workspaceId: this.options$.workspaceId,
64
- });
52
+ const query$ = "";
65
53
 
66
54
  const headers$ = new Headers({
67
55
  Accept: "application/json",
@@ -154,9 +142,7 @@ export class Domains extends ClientSDK {
154
142
 
155
143
  const path$ = this.templateURLComponent("/domains")();
156
144
 
157
- const query$ = encodeFormQuery$({
158
- workspaceId: this.options$.workspaceId,
159
- });
145
+ const query$ = "";
160
146
 
161
147
  const headers$ = new Headers({
162
148
  "Content-Type": "application/json",
@@ -255,9 +241,7 @@ export class Domains extends ClientSDK {
255
241
  };
256
242
  const path$ = this.templateURLComponent("/domains/{slug}")(pathParams$);
257
243
 
258
- const query$ = encodeFormQuery$({
259
- workspaceId: this.options$.workspaceId,
260
- });
244
+ const query$ = "";
261
245
 
262
246
  const headers$ = new Headers({
263
247
  Accept: "application/json",
@@ -357,9 +341,7 @@ export class Domains extends ClientSDK {
357
341
  };
358
342
  const path$ = this.templateURLComponent("/domains/{slug}")(pathParams$);
359
343
 
360
- const query$ = encodeFormQuery$({
361
- workspaceId: this.options$.workspaceId,
362
- });
344
+ const query$ = "";
363
345
 
364
346
  const headers$ = new Headers({
365
347
  "Content-Type": "application/json",
package/src/sdk/links.ts CHANGED
@@ -76,7 +76,6 @@ export class Links extends ClientSDK {
76
76
  tagNames: payload$.tagNames,
77
77
  userId: payload$.userId,
78
78
  withTags: payload$.withTags,
79
- workspaceId: this.options$.workspaceId,
80
79
  });
81
80
 
82
81
  const headers$ = new Headers({
@@ -171,9 +170,7 @@ export class Links extends ClientSDK {
171
170
 
172
171
  const path$ = this.templateURLComponent("/links")();
173
172
 
174
- const query$ = encodeFormQuery$({
175
- workspaceId: this.options$.workspaceId,
176
- });
173
+ const query$ = "";
177
174
 
178
175
  const headers$ = new Headers({
179
176
  "Content-Type": "application/json",
@@ -277,7 +274,6 @@ export class Links extends ClientSDK {
277
274
  tagNames: payload$.tagNames,
278
275
  userId: payload$.userId,
279
276
  withTags: payload$.withTags,
280
- workspaceId: this.options$.workspaceId,
281
277
  });
282
278
 
283
279
  const headers$ = new Headers({
@@ -376,7 +372,6 @@ export class Links extends ClientSDK {
376
372
  externalId: payload$.externalId,
377
373
  key: payload$.key,
378
374
  linkId: payload$.linkId,
379
- workspaceId: this.options$.workspaceId,
380
375
  });
381
376
 
382
377
  const headers$ = new Headers({
@@ -478,9 +473,7 @@ export class Links extends ClientSDK {
478
473
  };
479
474
  const path$ = this.templateURLComponent("/links/{linkId}")(pathParams$);
480
475
 
481
- const query$ = encodeFormQuery$({
482
- workspaceId: this.options$.workspaceId,
483
- });
476
+ const query$ = "";
484
477
 
485
478
  const headers$ = new Headers({
486
479
  Accept: "application/json",
@@ -583,9 +576,7 @@ export class Links extends ClientSDK {
583
576
  };
584
577
  const path$ = this.templateURLComponent("/links/{linkId}")(pathParams$);
585
578
 
586
- const query$ = encodeFormQuery$({
587
- workspaceId: this.options$.workspaceId,
588
- });
579
+ const query$ = "";
589
580
 
590
581
  const headers$ = new Headers({
591
582
  "Content-Type": "application/json",
@@ -680,9 +671,7 @@ export class Links extends ClientSDK {
680
671
 
681
672
  const path$ = this.templateURLComponent("/links/bulk")();
682
673
 
683
- const query$ = encodeFormQuery$({
684
- workspaceId: this.options$.workspaceId,
685
- });
674
+ const query$ = "";
686
675
 
687
676
  const headers$ = new Headers({
688
677
  "Content-Type": "application/json",
@@ -873,9 +862,7 @@ export class Links extends ClientSDK {
873
862
 
874
863
  const path$ = this.templateURLComponent("/links/upsert")();
875
864
 
876
- const query$ = encodeFormQuery$({
877
- workspaceId: this.options$.workspaceId,
878
- });
865
+ const query$ = "";
879
866
 
880
867
  const headers$ = new Headers({
881
868
  "Content-Type": "application/json",
package/src/sdk/tags.ts CHANGED
@@ -4,11 +4,7 @@
4
4
 
5
5
  import { SDKHooks } from "../hooks/hooks.js";
6
6
  import { SDKOptions, serverURLFromOptions } from "../lib/config.js";
7
- import {
8
- encodeFormQuery as encodeFormQuery$,
9
- encodeJSON as encodeJSON$,
10
- encodeSimple as encodeSimple$,
11
- } from "../lib/encodings.js";
7
+ import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
12
8
  import { HTTPClient } from "../lib/http.js";
13
9
  import * as schemas$ from "../lib/schemas.js";
14
10
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
@@ -50,18 +46,10 @@ export class Tags extends ClientSDK {
50
46
  * @remarks
51
47
  * Retrieve a list of tags for the authenticated workspace.
52
48
  */
53
- async list(
54
- request?: operations.GetTagsRequest | undefined,
55
- options?: RequestOptions
56
- ): Promise<Array<components.TagSchema>> {
57
- const input$ = typeof request === "undefined" ? {} : request;
58
- void input$; // request input is unused
59
-
49
+ async list(options?: RequestOptions): Promise<Array<components.TagSchema>> {
60
50
  const path$ = this.templateURLComponent("/tags")();
61
51
 
62
- const query$ = encodeFormQuery$({
63
- workspaceId: this.options$.workspaceId,
64
- });
52
+ const query$ = "";
65
53
 
66
54
  const headers$ = new Headers({
67
55
  Accept: "application/json",
@@ -154,9 +142,7 @@ export class Tags extends ClientSDK {
154
142
 
155
143
  const path$ = this.templateURLComponent("/tags")();
156
144
 
157
- const query$ = encodeFormQuery$({
158
- workspaceId: this.options$.workspaceId,
159
- });
145
+ const query$ = "";
160
146
 
161
147
  const headers$ = new Headers({
162
148
  "Content-Type": "application/json",
@@ -257,9 +243,7 @@ export class Tags extends ClientSDK {
257
243
  };
258
244
  const path$ = this.templateURLComponent("/tags/{id}")(pathParams$);
259
245
 
260
- const query$ = encodeFormQuery$({
261
- workspaceId: this.options$.workspaceId,
262
- });
246
+ const query$ = "";
263
247
 
264
248
  const headers$ = new Headers({
265
249
  "Content-Type": "application/json",