dub 0.30.3 → 0.30.4

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 (52) hide show
  1. package/README.md +2 -2
  2. package/docs/sdks/domains/README.md +0 -105
  3. package/docs/sdks/tags/README.md +54 -3
  4. package/docs/sdks/workspaces/README.md +53 -0
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/models/operations/createtag.d.ts +9 -2
  8. package/models/operations/createtag.d.ts.map +1 -1
  9. package/models/operations/createtag.js +4 -2
  10. package/models/operations/createtag.js.map +1 -1
  11. package/models/operations/index.d.ts +2 -2
  12. package/models/operations/index.d.ts.map +1 -1
  13. package/models/operations/index.js +2 -2
  14. package/models/operations/index.js.map +1 -1
  15. package/models/operations/updatetag.d.ts +85 -0
  16. package/models/operations/updatetag.d.ts.map +1 -0
  17. package/models/operations/updatetag.js +100 -0
  18. package/models/operations/updatetag.js.map +1 -0
  19. package/models/operations/updateworkspace.d.ts +16 -0
  20. package/models/operations/updateworkspace.d.ts.map +1 -0
  21. package/models/operations/{setprimarydomain.js → updateworkspace.js} +9 -21
  22. package/models/operations/updateworkspace.js.map +1 -0
  23. package/package.json +1 -1
  24. package/sdk/domains.d.ts +0 -14
  25. package/sdk/domains.d.ts.map +1 -1
  26. package/sdk/domains.js +0 -166
  27. package/sdk/domains.js.map +1 -1
  28. package/sdk/tags.d.ts +7 -0
  29. package/sdk/tags.d.ts.map +1 -1
  30. package/sdk/tags.js +81 -0
  31. package/sdk/tags.js.map +1 -1
  32. package/sdk/workspaces.d.ts +7 -0
  33. package/sdk/workspaces.d.ts.map +1 -1
  34. package/sdk/workspaces.js +80 -0
  35. package/sdk/workspaces.js.map +1 -1
  36. package/src/lib/config.ts +3 -3
  37. package/src/models/operations/createtag.ts +13 -4
  38. package/src/models/operations/index.ts +2 -2
  39. package/src/models/operations/updatetag.ts +138 -0
  40. package/src/models/operations/updateworkspace.ts +30 -0
  41. package/src/sdk/domains.ts +0 -202
  42. package/src/sdk/tags.ts +101 -0
  43. package/src/sdk/workspaces.ts +99 -0
  44. package/models/operations/setprimarydomain.d.ts +0 -35
  45. package/models/operations/setprimarydomain.d.ts.map +0 -1
  46. package/models/operations/setprimarydomain.js.map +0 -1
  47. package/models/operations/transferdomain.d.ts +0 -51
  48. package/models/operations/transferdomain.d.ts.map +0 -1
  49. package/models/operations/transferdomain.js +0 -78
  50. package/models/operations/transferdomain.js.map +0 -1
  51. package/src/models/operations/setprimarydomain.ts +0 -60
  52. package/src/models/operations/transferdomain.ts +0 -98
package/README.md CHANGED
@@ -121,11 +121,13 @@ run();
121
121
  ### [workspaces](docs/sdks/workspaces/README.md)
122
122
 
123
123
  * [get](docs/sdks/workspaces/README.md#get) - Retrieve a workspace
124
+ * [update](docs/sdks/workspaces/README.md#update) - Update a workspace
124
125
 
125
126
  ### [tags](docs/sdks/tags/README.md)
126
127
 
127
128
  * [list](docs/sdks/tags/README.md#list) - Retrieve a list of tags
128
129
  * [create](docs/sdks/tags/README.md#create) - Create a new tag
130
+ * [update](docs/sdks/tags/README.md#update) - Update a tag
129
131
 
130
132
  ### [domains](docs/sdks/domains/README.md)
131
133
 
@@ -133,8 +135,6 @@ run();
133
135
  * [create](docs/sdks/domains/README.md#create) - Create a domain
134
136
  * [delete](docs/sdks/domains/README.md#delete) - Delete a domain
135
137
  * [update](docs/sdks/domains/README.md#update) - Update a domain
136
- * [setPrimary](docs/sdks/domains/README.md#setprimary) - Set a domain as primary
137
- * [transfer](docs/sdks/domains/README.md#transfer) - Transfer a domain
138
138
 
139
139
  ### [track](docs/sdks/track/README.md)
140
140
 
@@ -7,8 +7,6 @@
7
7
  * [create](#create) - Create a domain
8
8
  * [delete](#delete) - Delete a domain
9
9
  * [update](#update) - Update a domain
10
- * [setPrimary](#setprimary) - Set a domain as primary
11
- * [transfer](#transfer) - Transfer a domain
12
10
 
13
11
  ## list
14
12
 
@@ -195,109 +193,6 @@ run();
195
193
  | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | |
196
194
 
197
195
 
198
- ### Response
199
-
200
- **Promise\<[components.DomainSchema](../../models/components/domainschema.md)\>**
201
- ### Errors
202
-
203
- | Error Object | Status Code | Content Type |
204
- | -------------------------- | -------------------------- | -------------------------- |
205
- | errors.BadRequest | 400 | application/json |
206
- | errors.Unauthorized | 401 | application/json |
207
- | errors.Forbidden | 403 | application/json |
208
- | errors.NotFound | 404 | application/json |
209
- | errors.Conflict | 409 | application/json |
210
- | errors.InviteExpired | 410 | application/json |
211
- | errors.UnprocessableEntity | 422 | application/json |
212
- | errors.RateLimitExceeded | 429 | application/json |
213
- | errors.InternalServerError | 500 | application/json |
214
- | errors.SDKError | 4xx-5xx | */* |
215
-
216
- ## setPrimary
217
-
218
- Set a domain as primary for the authenticated workspace.
219
-
220
- ### Example Usage
221
-
222
- ```typescript
223
- import { Dub } from "dub";
224
-
225
- const dub = new Dub({
226
- token: "DUB_API_KEY",
227
- });
228
-
229
- async function run() {
230
- const result = await dub.domains.setPrimary("acme.com");
231
-
232
- // Handle the result
233
- console.log(result)
234
- }
235
-
236
- run();
237
- ```
238
-
239
- ### Parameters
240
-
241
- | Parameter | Type | Required | Description | Example |
242
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
243
- | `slug` | *string* | :heavy_check_mark: | The domain name. | [object Object] |
244
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | |
245
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | |
246
-
247
-
248
- ### Response
249
-
250
- **Promise\<[components.DomainSchema](../../models/components/domainschema.md)\>**
251
- ### Errors
252
-
253
- | Error Object | Status Code | Content Type |
254
- | -------------------------- | -------------------------- | -------------------------- |
255
- | errors.BadRequest | 400 | application/json |
256
- | errors.Unauthorized | 401 | application/json |
257
- | errors.Forbidden | 403 | application/json |
258
- | errors.NotFound | 404 | application/json |
259
- | errors.Conflict | 409 | application/json |
260
- | errors.InviteExpired | 410 | application/json |
261
- | errors.UnprocessableEntity | 422 | application/json |
262
- | errors.RateLimitExceeded | 429 | application/json |
263
- | errors.InternalServerError | 500 | application/json |
264
- | errors.SDKError | 4xx-5xx | */* |
265
-
266
- ## transfer
267
-
268
- Transfer a domain to another workspace within the authenticated account.
269
-
270
- ### Example Usage
271
-
272
- ```typescript
273
- import { Dub } from "dub";
274
-
275
- const dub = new Dub({
276
- token: "DUB_API_KEY",
277
- });
278
-
279
- async function run() {
280
- const result = await dub.domains.transfer("acme.com", {
281
- newWorkspaceId: "<value>",
282
- });
283
-
284
- // Handle the result
285
- console.log(result)
286
- }
287
-
288
- run();
289
- ```
290
-
291
- ### Parameters
292
-
293
- | Parameter | Type | Required | Description | Example |
294
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
295
- | `slug` | *string* | :heavy_check_mark: | The domain name. | [object Object] |
296
- | `requestBody` | [operations.TransferDomainRequestBody](../../models/operations/transferdomainrequestbody.md) | :heavy_minus_sign: | N/A | |
297
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | |
298
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | |
299
-
300
-
301
196
  ### Response
302
197
 
303
198
  **Promise\<[components.DomainSchema](../../models/components/domainschema.md)\>**
@@ -5,6 +5,7 @@
5
5
 
6
6
  * [list](#list) - Retrieve a list of tags
7
7
  * [create](#create) - Create a new tag
8
+ * [update](#update) - Update a tag
8
9
 
9
10
  ## list
10
11
 
@@ -70,9 +71,7 @@ const dub = new Dub({
70
71
  });
71
72
 
72
73
  async function run() {
73
- const result = await dub.tags.create({
74
- tag: "<value>",
75
- });
74
+ const result = await dub.tags.create({});
76
75
 
77
76
  // Handle the result
78
77
  console.log(result)
@@ -90,6 +89,58 @@ run();
90
89
  | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
91
90
 
92
91
 
92
+ ### Response
93
+
94
+ **Promise\<[components.TagSchema](../../models/components/tagschema.md)\>**
95
+ ### Errors
96
+
97
+ | Error Object | Status Code | Content Type |
98
+ | -------------------------- | -------------------------- | -------------------------- |
99
+ | errors.BadRequest | 400 | application/json |
100
+ | errors.Unauthorized | 401 | application/json |
101
+ | errors.Forbidden | 403 | application/json |
102
+ | errors.NotFound | 404 | application/json |
103
+ | errors.Conflict | 409 | application/json |
104
+ | errors.InviteExpired | 410 | application/json |
105
+ | errors.UnprocessableEntity | 422 | application/json |
106
+ | errors.RateLimitExceeded | 429 | application/json |
107
+ | errors.InternalServerError | 500 | application/json |
108
+ | errors.SDKError | 4xx-5xx | */* |
109
+
110
+ ## update
111
+
112
+ Update a tag in the workspace.
113
+
114
+ ### Example Usage
115
+
116
+ ```typescript
117
+ import { Dub } from "dub";
118
+
119
+ const dub = new Dub({
120
+ token: "DUB_API_KEY",
121
+ });
122
+
123
+ async function run() {
124
+ const result = await dub.tags.update({
125
+ id: "<id>",
126
+ });
127
+
128
+ // Handle the result
129
+ console.log(result)
130
+ }
131
+
132
+ run();
133
+ ```
134
+
135
+ ### Parameters
136
+
137
+ | Parameter | Type | Required | Description |
138
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
139
+ | `request` | [operations.UpdateTagRequest](../../models/operations/updatetagrequest.md) | :heavy_check_mark: | The request object to use for the request. |
140
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
141
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
142
+
143
+
93
144
  ### Response
94
145
 
95
146
  **Promise\<[components.TagSchema](../../models/components/tagschema.md)\>**
@@ -4,6 +4,7 @@
4
4
  ### Available Operations
5
5
 
6
6
  * [get](#get) - Retrieve a workspace
7
+ * [update](#update) - Update a workspace
7
8
 
8
9
  ## get
9
10
 
@@ -39,6 +40,58 @@ run();
39
40
  | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
40
41
 
41
42
 
43
+ ### Response
44
+
45
+ **Promise\<[components.WorkspaceSchema](../../models/components/workspaceschema.md)\>**
46
+ ### Errors
47
+
48
+ | Error Object | Status Code | Content Type |
49
+ | -------------------------- | -------------------------- | -------------------------- |
50
+ | errors.BadRequest | 400 | application/json |
51
+ | errors.Unauthorized | 401 | application/json |
52
+ | errors.Forbidden | 403 | application/json |
53
+ | errors.NotFound | 404 | application/json |
54
+ | errors.Conflict | 409 | application/json |
55
+ | errors.InviteExpired | 410 | application/json |
56
+ | errors.UnprocessableEntity | 422 | application/json |
57
+ | errors.RateLimitExceeded | 429 | application/json |
58
+ | errors.InternalServerError | 500 | application/json |
59
+ | errors.SDKError | 4xx-5xx | */* |
60
+
61
+ ## update
62
+
63
+ Update a workspace by ID or slug.
64
+
65
+ ### Example Usage
66
+
67
+ ```typescript
68
+ import { Dub } from "dub";
69
+
70
+ const dub = new Dub({
71
+ token: "DUB_API_KEY",
72
+ });
73
+
74
+ async function run() {
75
+ const result = await dub.workspaces.update({
76
+ idOrSlug: "<value>",
77
+ });
78
+
79
+ // Handle the result
80
+ console.log(result)
81
+ }
82
+
83
+ run();
84
+ ```
85
+
86
+ ### Parameters
87
+
88
+ | Parameter | Type | Required | Description |
89
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
90
+ | `request` | [operations.UpdateWorkspaceRequest](../../models/operations/updateworkspacerequest.md) | :heavy_check_mark: | The request object to use for the request. |
91
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
92
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
93
+
94
+
42
95
  ### Response
43
96
 
44
97
  **Promise\<[components.WorkspaceSchema](../../models/components/workspaceschema.md)\>**
package/lib/config.d.ts CHANGED
@@ -32,8 +32,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
32
32
  export declare const SDK_METADATA: {
33
33
  readonly language: "typescript";
34
34
  readonly openapiDocVersion: "0.0.1";
35
- readonly sdkVersion: "0.30.3";
36
- readonly genVersion: "2.354.2";
37
- readonly userAgent: "speakeasy-sdk/typescript 0.30.3 2.354.2 0.0.1 dub";
35
+ readonly sdkVersion: "0.30.4";
36
+ readonly genVersion: "2.356.0";
37
+ readonly userAgent: "speakeasy-sdk/typescript 0.30.4 2.356.0 0.0.1 dub";
38
38
  };
39
39
  //# sourceMappingURL=config.d.ts.map
package/lib/config.js CHANGED
@@ -32,8 +32,8 @@ exports.serverURLFromOptions = serverURLFromOptions;
32
32
  exports.SDK_METADATA = {
33
33
  language: "typescript",
34
34
  openapiDocVersion: "0.0.1",
35
- sdkVersion: "0.30.3",
36
- genVersion: "2.354.2",
37
- userAgent: "speakeasy-sdk/typescript 0.30.3 2.354.2 0.0.1 dub",
35
+ sdkVersion: "0.30.4",
36
+ genVersion: "2.356.0",
37
+ userAgent: "speakeasy-sdk/typescript 0.30.4 2.356.0 0.0.1 dub",
38
38
  };
39
39
  //# sourceMappingURL=config.js.map
@@ -30,11 +30,17 @@ export type CreateTagRequestBody = {
30
30
  /**
31
31
  * The name of the tag to create.
32
32
  */
33
- tag: string;
33
+ name?: string | undefined;
34
34
  /**
35
35
  * The color of the tag. If not provided, a random color will be used from the list: red, yellow, green, blue, purple, pink, brown.
36
36
  */
37
37
  color?: Color | undefined;
38
+ /**
39
+ * The name of the tag to create.
40
+ *
41
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
42
+ */
43
+ tag?: string | undefined;
38
44
  };
39
45
  /** @internal */
40
46
  export declare namespace CreateTagGlobals$ {
@@ -54,8 +60,9 @@ export declare namespace Color$ {
54
60
  export declare namespace CreateTagRequestBody$ {
55
61
  const inboundSchema: z.ZodType<CreateTagRequestBody, z.ZodTypeDef, unknown>;
56
62
  type Outbound = {
57
- tag: string;
63
+ name?: string | undefined;
58
64
  color?: string | undefined;
65
+ tag?: string | undefined;
59
66
  };
60
67
  const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateTagRequestBody>;
61
68
  }
@@ -1 +1 @@
1
- {"version":3,"file":"createtag.d.ts","sourceRoot":"","sources":["../../src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AC;QACjC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KACpC,CAAC;IAEK,MAAM,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,UAAU,EAAE,gBAAgB,CAG7E,CAAC;CACN;AAED,gBAAgB;AAChB,yBAAiB,MAAM,CAAC;IACb,MAAM,aAAa,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,KAAK,CAAuB,CAAC;IACzE,MAAM,cAAc,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,KAAK,CAAiB,CAAC;CAC9E;AAED,gBAAgB;AAChB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAI/E,CAAC;IAEH,KAAY,QAAQ,GAAG;QACnB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KAC5B,CAAC;IAEK,MAAM,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,UAAU,EAAE,oBAAoB,CAMlF,CAAC;CACL"}
@@ -62,12 +62,14 @@ var Color$;
62
62
  var CreateTagRequestBody$;
63
63
  (function (CreateTagRequestBody$) {
64
64
  CreateTagRequestBody$.inboundSchema = z.object({
65
- tag: z.string(),
65
+ name: z.string().optional(),
66
66
  color: Color$.inboundSchema.optional(),
67
+ tag: z.string().optional(),
67
68
  });
68
69
  CreateTagRequestBody$.outboundSchema = z.object({
69
- tag: z.string(),
70
+ name: z.string().optional(),
70
71
  color: Color$.outboundSchema.optional(),
72
+ tag: z.string().optional(),
71
73
  });
72
74
  })(CreateTagRequestBody$ || (exports.CreateTagRequestBody$ = CreateTagRequestBody$ = {}));
73
75
  //# sourceMappingURL=createtag.js.map
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AAA,aAAa,CAAC;AAC/E,CAAC,EAHgB,MAAM,sBAAN,MAAM,QAGtB;AAED,gBAAgB;AAChB,IAAiB,qBAAqB,CAoBrC;AApBD,WAAiB,qBAAqB;IACrB,mCAAa,GAA2D,CAAC,CAAC,MAAM,CAAC;QAC1F,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,KAAK,EAAE,MAAM,CAAC,aAAa,CAAC,QAAQ,EAAE;QACtC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC7B,CAAC,CAAC;IAQU,oCAAc,GAA4D,CAAC,CAAC,MAAM,CAC3F;QACI,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,KAAK,EAAE,MAAM,CAAC,cAAc,CAAC,QAAQ,EAAE;QACvC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC7B,CACJ,CAAC;AACN,CAAC,EApBgB,qBAAqB,qCAArB,qBAAqB,QAoBrC"}
@@ -13,12 +13,12 @@ export * from "./gettags.js";
13
13
  export * from "./getworkspace.js";
14
14
  export * from "./listdomains.js";
15
15
  export * from "./retrieveanalytics.js";
16
- export * from "./setprimarydomain.js";
17
16
  export * from "./trackcustomer.js";
18
17
  export * from "./tracklead.js";
19
18
  export * from "./tracksale.js";
20
- export * from "./transferdomain.js";
21
19
  export * from "./updatedomain.js";
22
20
  export * from "./updatelink.js";
21
+ export * from "./updatetag.js";
22
+ export * from "./updateworkspace.js";
23
23
  export * from "./upsertlink.js";
24
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":"AAIA,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":"AAIA,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC"}
@@ -32,12 +32,12 @@ __exportStar(require("./gettags.js"), exports);
32
32
  __exportStar(require("./getworkspace.js"), exports);
33
33
  __exportStar(require("./listdomains.js"), exports);
34
34
  __exportStar(require("./retrieveanalytics.js"), exports);
35
- __exportStar(require("./setprimarydomain.js"), exports);
36
35
  __exportStar(require("./trackcustomer.js"), exports);
37
36
  __exportStar(require("./tracklead.js"), exports);
38
37
  __exportStar(require("./tracksale.js"), exports);
39
- __exportStar(require("./transferdomain.js"), exports);
40
38
  __exportStar(require("./updatedomain.js"), exports);
41
39
  __exportStar(require("./updatelink.js"), exports);
40
+ __exportStar(require("./updatetag.js"), exports);
41
+ __exportStar(require("./updateworkspace.js"), exports);
42
42
  __exportStar(require("./upsertlink.js"), exports);
43
43
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,uDAAqC;AACrC,oDAAkC;AAClC,kDAAgC;AAChC,iDAA+B;AAC/B,oDAAkC;AAClC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,qDAAmC;AACnC,mDAAiC;AACjC,iDAA+B;AAC/B,+CAA6B;AAC7B,oDAAkC;AAClC,mDAAiC;AACjC,yDAAuC;AACvC,wDAAsC;AACtC,qDAAmC;AACnC,iDAA+B;AAC/B,iDAA+B;AAC/B,sDAAoC;AACpC,oDAAkC;AAClC,kDAAgC;AAChC,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,uDAAqC;AACrC,oDAAkC;AAClC,kDAAgC;AAChC,iDAA+B;AAC/B,oDAAkC;AAClC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,qDAAmC;AACnC,mDAAiC;AACjC,iDAA+B;AAC/B,+CAA6B;AAC7B,oDAAkC;AAClC,mDAAiC;AACjC,yDAAuC;AACvC,qDAAmC;AACnC,iDAA+B;AAC/B,iDAA+B;AAC/B,oDAAkC;AAClC,kDAAgC;AAChC,iDAA+B;AAC/B,uDAAqC;AACrC,kDAAgC"}
@@ -0,0 +1,85 @@
1
+ import { ClosedEnum } from "../../types/enums.js";
2
+ import * as z from "zod";
3
+ export type UpdateTagGlobals = {
4
+ /**
5
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
6
+ */
7
+ workspaceId?: string | undefined;
8
+ /**
9
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
10
+ */
11
+ projectSlug?: string | undefined;
12
+ };
13
+ /**
14
+ * The color of the tag. If not provided, a random color will be used from the list: red, yellow, green, blue, purple, pink, brown.
15
+ */
16
+ export declare const UpdateTagColor: {
17
+ readonly Red: "red";
18
+ readonly Yellow: "yellow";
19
+ readonly Green: "green";
20
+ readonly Blue: "blue";
21
+ readonly Purple: "purple";
22
+ readonly Pink: "pink";
23
+ readonly Brown: "brown";
24
+ };
25
+ /**
26
+ * The color of the tag. If not provided, a random color will be used from the list: red, yellow, green, blue, purple, pink, brown.
27
+ */
28
+ export type UpdateTagColor = ClosedEnum<typeof UpdateTagColor>;
29
+ export type UpdateTagRequestBody = {
30
+ /**
31
+ * The name of the tag to create.
32
+ */
33
+ name?: string | undefined;
34
+ /**
35
+ * The color of the tag. If not provided, a random color will be used from the list: red, yellow, green, blue, purple, pink, brown.
36
+ */
37
+ color?: UpdateTagColor | undefined;
38
+ /**
39
+ * The name of the tag to create.
40
+ *
41
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
42
+ */
43
+ tag?: string | undefined;
44
+ };
45
+ export type UpdateTagRequest = {
46
+ /**
47
+ * The ID of the tag
48
+ */
49
+ id: string;
50
+ requestBody?: UpdateTagRequestBody | undefined;
51
+ };
52
+ /** @internal */
53
+ export declare namespace UpdateTagGlobals$ {
54
+ const inboundSchema: z.ZodType<UpdateTagGlobals, z.ZodTypeDef, unknown>;
55
+ type Outbound = {
56
+ workspaceId?: string | undefined;
57
+ projectSlug?: string | undefined;
58
+ };
59
+ const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateTagGlobals>;
60
+ }
61
+ /** @internal */
62
+ export declare namespace UpdateTagColor$ {
63
+ const inboundSchema: z.ZodNativeEnum<typeof UpdateTagColor>;
64
+ const outboundSchema: z.ZodNativeEnum<typeof UpdateTagColor>;
65
+ }
66
+ /** @internal */
67
+ export declare namespace UpdateTagRequestBody$ {
68
+ const inboundSchema: z.ZodType<UpdateTagRequestBody, z.ZodTypeDef, unknown>;
69
+ type Outbound = {
70
+ name?: string | undefined;
71
+ color?: string | undefined;
72
+ tag?: string | undefined;
73
+ };
74
+ const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateTagRequestBody>;
75
+ }
76
+ /** @internal */
77
+ export declare namespace UpdateTagRequest$ {
78
+ const inboundSchema: z.ZodType<UpdateTagRequest, z.ZodTypeDef, unknown>;
79
+ type Outbound = {
80
+ id: string;
81
+ RequestBody?: UpdateTagRequestBody$.Outbound | undefined;
82
+ };
83
+ const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateTagRequest>;
84
+ }
85
+ //# sourceMappingURL=updatetag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updatetag.d.ts","sourceRoot":"","sources":["../../src/models/operations/updatetag.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,gBAAgB,GAAG;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;CAQjB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAA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AC3B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KAC5B,CAAC;IAEK,MAAM,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,UAAU,EAAE,oBAAoB,CAMlF,CAAC;CACL;AAED,gBAAgB;AAChB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CASvE,CAAC;IAEP,KAAY,QAAQ,GAAG;QACnB,EAAE,EAAE,MAAM,CAAC;QACX,WAAW,CAAC,EAAE,qBAAqB,CAAC,QAAQ,GAAG,SAAS,CAAC;KAC5D,CAAC;IAEK,MAAM,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,UAAU,EAAE,gBAAgB,CASzE,CAAC;CACV"}
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.UpdateTagRequest$ = exports.UpdateTagRequestBody$ = exports.UpdateTagColor$ = exports.UpdateTagGlobals$ = exports.UpdateTagColor = void 0;
30
+ const primitives_js_1 = require("../../lib/primitives.js");
31
+ const z = __importStar(require("zod"));
32
+ /**
33
+ * The color of the tag. If not provided, a random color will be used from the list: red, yellow, green, blue, purple, pink, brown.
34
+ */
35
+ exports.UpdateTagColor = {
36
+ Red: "red",
37
+ Yellow: "yellow",
38
+ Green: "green",
39
+ Blue: "blue",
40
+ Purple: "purple",
41
+ Pink: "pink",
42
+ Brown: "brown",
43
+ };
44
+ /** @internal */
45
+ var UpdateTagGlobals$;
46
+ (function (UpdateTagGlobals$) {
47
+ UpdateTagGlobals$.inboundSchema = z.object({
48
+ workspaceId: z.string().optional(),
49
+ projectSlug: z.string().optional(),
50
+ });
51
+ UpdateTagGlobals$.outboundSchema = z.object({
52
+ workspaceId: z.string().optional(),
53
+ projectSlug: z.string().optional(),
54
+ });
55
+ })(UpdateTagGlobals$ || (exports.UpdateTagGlobals$ = UpdateTagGlobals$ = {}));
56
+ /** @internal */
57
+ var UpdateTagColor$;
58
+ (function (UpdateTagColor$) {
59
+ UpdateTagColor$.inboundSchema = z.nativeEnum(exports.UpdateTagColor);
60
+ UpdateTagColor$.outboundSchema = UpdateTagColor$.inboundSchema;
61
+ })(UpdateTagColor$ || (exports.UpdateTagColor$ = UpdateTagColor$ = {}));
62
+ /** @internal */
63
+ var UpdateTagRequestBody$;
64
+ (function (UpdateTagRequestBody$) {
65
+ UpdateTagRequestBody$.inboundSchema = z.object({
66
+ name: z.string().optional(),
67
+ color: UpdateTagColor$.inboundSchema.optional(),
68
+ tag: z.string().optional(),
69
+ });
70
+ UpdateTagRequestBody$.outboundSchema = z.object({
71
+ name: z.string().optional(),
72
+ color: UpdateTagColor$.outboundSchema.optional(),
73
+ tag: z.string().optional(),
74
+ });
75
+ })(UpdateTagRequestBody$ || (exports.UpdateTagRequestBody$ = UpdateTagRequestBody$ = {}));
76
+ /** @internal */
77
+ var UpdateTagRequest$;
78
+ (function (UpdateTagRequest$) {
79
+ UpdateTagRequest$.inboundSchema = z
80
+ .object({
81
+ id: z.string(),
82
+ RequestBody: z.lazy(() => UpdateTagRequestBody$.inboundSchema).optional(),
83
+ })
84
+ .transform((v) => {
85
+ return (0, primitives_js_1.remap)(v, {
86
+ RequestBody: "requestBody",
87
+ });
88
+ });
89
+ UpdateTagRequest$.outboundSchema = z
90
+ .object({
91
+ id: z.string(),
92
+ requestBody: z.lazy(() => UpdateTagRequestBody$.outboundSchema).optional(),
93
+ })
94
+ .transform((v) => {
95
+ return (0, primitives_js_1.remap)(v, {
96
+ requestBody: "RequestBody",
97
+ });
98
+ });
99
+ })(UpdateTagRequest$ || (exports.UpdateTagRequest$ = UpdateTagRequest$ = {}));
100
+ //# sourceMappingURL=updatetag.js.map