frameio 4.2.2 → 4.2.3

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 (112) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +30 -30
  3. package/dist/cjs/Client.js +38 -38
  4. package/dist/cjs/api/resources/collections/client/Client.d.ts +17 -17
  5. package/dist/cjs/api/resources/collections/client/Client.js +30 -30
  6. package/dist/cjs/api/resources/files/client/Client.d.ts +96 -96
  7. package/dist/cjs/api/resources/files/client/Client.js +175 -175
  8. package/dist/cjs/api/resources/folders/client/Client.d.ts +11 -11
  9. package/dist/cjs/api/resources/folders/client/Client.js +29 -29
  10. package/dist/cjs/api/resources/metadata/client/Client.d.ts +27 -27
  11. package/dist/cjs/api/resources/metadata/client/Client.js +50 -50
  12. package/dist/cjs/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.ts +4 -4
  13. package/dist/cjs/api/resources/projectPermissions/client/Client.d.ts +24 -24
  14. package/dist/cjs/api/resources/projectPermissions/client/Client.js +87 -87
  15. package/dist/cjs/api/resources/projects/client/Client.d.ts +56 -0
  16. package/dist/cjs/api/resources/projects/client/Client.js +166 -0
  17. package/dist/cjs/api/resources/projects/client/requests/AccountProjectsIndexRequest.d.ts +24 -0
  18. package/dist/cjs/api/resources/projects/client/requests/AccountProjectsIndexRequest.js +3 -0
  19. package/dist/cjs/api/resources/projects/client/requests/InvitedProjectsIndexRequest.d.ts +24 -0
  20. package/dist/cjs/api/resources/projects/client/requests/InvitedProjectsIndexRequest.js +3 -0
  21. package/dist/cjs/api/resources/projects/client/requests/index.d.ts +2 -0
  22. package/dist/cjs/api/resources/projects/types/AccountProjectsIndexRequestSort.d.ts +8 -0
  23. package/dist/cjs/api/resources/projects/types/AccountProjectsIndexRequestSort.js +11 -0
  24. package/dist/cjs/api/resources/projects/types/InvitedProjectsIndexRequestSort.d.ts +8 -0
  25. package/dist/cjs/api/resources/projects/types/InvitedProjectsIndexRequestSort.js +11 -0
  26. package/dist/cjs/api/resources/projects/types/index.d.ts +2 -0
  27. package/dist/cjs/api/resources/projects/types/index.js +2 -0
  28. package/dist/cjs/api/resources/shares/client/Client.d.ts +49 -49
  29. package/dist/cjs/api/resources/shares/client/Client.js +146 -146
  30. package/dist/cjs/api/resources/shares/client/requests/AddAssetParams.d.ts +1 -1
  31. package/dist/cjs/api/resources/shares/client/requests/CreateShareParams.d.ts +2 -2
  32. package/dist/cjs/api/resources/shares/client/requests/UpdateShareParams.d.ts +1 -1
  33. package/dist/cjs/api/resources/versionStacks/client/Client.d.ts +64 -64
  34. package/dist/cjs/api/resources/versionStacks/client/Client.js +121 -121
  35. package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.ts +1 -1
  36. package/dist/cjs/api/resources/workspacePermissions/client/Client.d.ts +24 -24
  37. package/dist/cjs/api/resources/workspacePermissions/client/Client.js +87 -87
  38. package/dist/cjs/api/resources/workspaces/client/Client.d.ts +34 -34
  39. package/dist/cjs/api/resources/workspaces/client/Client.js +141 -141
  40. package/dist/cjs/api/types/AuditLogwithIncludes.d.ts +6 -0
  41. package/dist/cjs/api/types/AuditLogwithIncludes.js +6 -0
  42. package/dist/cjs/api/types/Filters.d.ts +6 -0
  43. package/dist/cjs/api/types/Filters.js +6 -0
  44. package/dist/cjs/api/types/LongTextDefinition.d.ts +0 -16
  45. package/dist/cjs/api/types/LongTextDefinition.js +0 -17
  46. package/dist/cjs/api/types/NumberDefinition.d.ts +16 -0
  47. package/dist/cjs/api/types/NumberDefinition.js +13 -0
  48. package/dist/cjs/api/types/TextDefinition.d.ts +0 -16
  49. package/dist/cjs/api/types/TextDefinition.js +0 -17
  50. package/dist/cjs/api/types/ToggleDefinition.d.ts +16 -0
  51. package/dist/cjs/api/types/ToggleDefinition.js +17 -0
  52. package/dist/cjs/api/types/UserSingleDefinition.d.ts +0 -16
  53. package/dist/cjs/api/types/UserSingleDefinition.js +0 -13
  54. package/dist/cjs/version.d.ts +1 -1
  55. package/dist/cjs/version.js +1 -1
  56. package/dist/esm/BaseClient.mjs +2 -2
  57. package/dist/esm/Client.d.mts +30 -30
  58. package/dist/esm/Client.mjs +38 -38
  59. package/dist/esm/api/resources/collections/client/Client.d.mts +17 -17
  60. package/dist/esm/api/resources/collections/client/Client.mjs +30 -30
  61. package/dist/esm/api/resources/files/client/Client.d.mts +96 -96
  62. package/dist/esm/api/resources/files/client/Client.mjs +175 -175
  63. package/dist/esm/api/resources/folders/client/Client.d.mts +11 -11
  64. package/dist/esm/api/resources/folders/client/Client.mjs +29 -29
  65. package/dist/esm/api/resources/metadata/client/Client.d.mts +27 -27
  66. package/dist/esm/api/resources/metadata/client/Client.mjs +50 -50
  67. package/dist/esm/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.mts +4 -4
  68. package/dist/esm/api/resources/projectPermissions/client/Client.d.mts +24 -24
  69. package/dist/esm/api/resources/projectPermissions/client/Client.mjs +87 -87
  70. package/dist/esm/api/resources/projects/client/Client.d.mts +56 -0
  71. package/dist/esm/api/resources/projects/client/Client.mjs +166 -0
  72. package/dist/esm/api/resources/projects/client/requests/AccountProjectsIndexRequest.d.mts +24 -0
  73. package/dist/esm/api/resources/projects/client/requests/AccountProjectsIndexRequest.mjs +2 -0
  74. package/dist/esm/api/resources/projects/client/requests/InvitedProjectsIndexRequest.d.mts +24 -0
  75. package/dist/esm/api/resources/projects/client/requests/InvitedProjectsIndexRequest.mjs +2 -0
  76. package/dist/esm/api/resources/projects/client/requests/index.d.mts +2 -0
  77. package/dist/esm/api/resources/projects/types/AccountProjectsIndexRequestSort.d.mts +8 -0
  78. package/dist/esm/api/resources/projects/types/AccountProjectsIndexRequestSort.mjs +8 -0
  79. package/dist/esm/api/resources/projects/types/InvitedProjectsIndexRequestSort.d.mts +8 -0
  80. package/dist/esm/api/resources/projects/types/InvitedProjectsIndexRequestSort.mjs +8 -0
  81. package/dist/esm/api/resources/projects/types/index.d.mts +2 -0
  82. package/dist/esm/api/resources/projects/types/index.mjs +2 -0
  83. package/dist/esm/api/resources/shares/client/Client.d.mts +49 -49
  84. package/dist/esm/api/resources/shares/client/Client.mjs +146 -146
  85. package/dist/esm/api/resources/shares/client/requests/AddAssetParams.d.mts +1 -1
  86. package/dist/esm/api/resources/shares/client/requests/CreateShareParams.d.mts +2 -2
  87. package/dist/esm/api/resources/shares/client/requests/UpdateShareParams.d.mts +1 -1
  88. package/dist/esm/api/resources/versionStacks/client/Client.d.mts +64 -64
  89. package/dist/esm/api/resources/versionStacks/client/Client.mjs +121 -121
  90. package/dist/esm/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.mts +1 -1
  91. package/dist/esm/api/resources/workspacePermissions/client/Client.d.mts +24 -24
  92. package/dist/esm/api/resources/workspacePermissions/client/Client.mjs +87 -87
  93. package/dist/esm/api/resources/workspaces/client/Client.d.mts +34 -34
  94. package/dist/esm/api/resources/workspaces/client/Client.mjs +141 -141
  95. package/dist/esm/api/types/AuditLogwithIncludes.d.mts +6 -0
  96. package/dist/esm/api/types/AuditLogwithIncludes.mjs +6 -0
  97. package/dist/esm/api/types/Filters.d.mts +6 -0
  98. package/dist/esm/api/types/Filters.mjs +6 -0
  99. package/dist/esm/api/types/LongTextDefinition.d.mts +0 -16
  100. package/dist/esm/api/types/LongTextDefinition.mjs +1 -16
  101. package/dist/esm/api/types/NumberDefinition.d.mts +16 -0
  102. package/dist/esm/api/types/NumberDefinition.mjs +13 -0
  103. package/dist/esm/api/types/TextDefinition.d.mts +0 -16
  104. package/dist/esm/api/types/TextDefinition.mjs +1 -16
  105. package/dist/esm/api/types/ToggleDefinition.d.mts +16 -0
  106. package/dist/esm/api/types/ToggleDefinition.mjs +16 -1
  107. package/dist/esm/api/types/UserSingleDefinition.d.mts +0 -16
  108. package/dist/esm/api/types/UserSingleDefinition.mjs +0 -13
  109. package/dist/esm/version.d.mts +1 -1
  110. package/dist/esm/version.mjs +1 -1
  111. package/package.json +112 -112
  112. package/reference.md +1392 -1234
@@ -59,11 +59,10 @@ class WorkspacesClient {
59
59
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
60
60
  }
61
61
  /**
62
- * Show workspace details. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
62
+ * List workspaces for a given account. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
63
63
  *
64
64
  * @param {Frameio.FrameOrAdobeId} account_id
65
- * @param {Frameio.Uuid} workspace_id
66
- * @param {Frameio.WorkspacesShowRequest} request
65
+ * @param {Frameio.WorkspacesIndexRequest} request
67
66
  * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
68
67
  *
69
68
  * @throws {@link Frameio.BadRequestError}
@@ -75,27 +74,114 @@ class WorkspacesClient {
75
74
  * @throws {@link Frameio.TooManyRequestsError}
76
75
  *
77
76
  * @example
78
- * await client.workspaces.show("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
79
- * include: "creator"
77
+ * await client.workspaces.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
78
+ * include: "creator",
79
+ * sort: "name_asc",
80
+ * after: "<opaque_cursor>",
81
+ * page_size: 10,
82
+ * include_total_count: false
80
83
  * })
81
84
  */
82
- show(account_id, workspace_id, request = {}, requestOptions) {
83
- return core.HttpResponsePromise.fromPromise(this.__show(account_id, workspace_id, request, requestOptions));
85
+ index(account_id_1) {
86
+ return __awaiter(this, arguments, void 0, function* (account_id, _request = {}, requestOptions) {
87
+ var _a, _b;
88
+ const list = core.HttpResponsePromise.interceptFunction((_requestUrl) => __awaiter(this, void 0, void 0, function* () {
89
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
90
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
91
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
92
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
93
+ url: _requestUrl,
94
+ method: "GET",
95
+ headers: _headers,
96
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
97
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
98
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
99
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
100
+ logging: this._options.logging,
101
+ });
102
+ if (_response.ok) {
103
+ return {
104
+ data: _response.body,
105
+ rawResponse: _response.rawResponse,
106
+ };
107
+ }
108
+ if (_response.error.reason === "status-code") {
109
+ switch (_response.error.statusCode) {
110
+ case 400:
111
+ throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
112
+ case 401:
113
+ throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
114
+ case 403:
115
+ throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
116
+ case 404:
117
+ throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
118
+ case 409:
119
+ throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
120
+ case 422:
121
+ throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
122
+ case 429:
123
+ throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
124
+ default:
125
+ throw new errors.FrameioError({
126
+ statusCode: _response.error.statusCode,
127
+ body: _response.error.body,
128
+ rawResponse: _response.rawResponse,
129
+ });
130
+ }
131
+ }
132
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/workspaces");
133
+ }));
134
+ const _baseUrl = (_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.FrameioEnvironment.Default;
135
+ const dataWithRawResponse = yield list(core.url.join(_baseUrl, `v4/accounts/${core.url.encodePathParam(account_id)}/workspaces`)).withRawResponse();
136
+ return new core.Page({
137
+ response: dataWithRawResponse.data,
138
+ rawResponse: dataWithRawResponse.rawResponse,
139
+ hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.links.next) != null && (response === null || response === void 0 ? void 0 : response.links.next) !== "",
140
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.data) !== null && _a !== void 0 ? _a : []; },
141
+ loadPage: (response) => {
142
+ return list(core.url.join(_baseUrl, response === null || response === void 0 ? void 0 : response.links.next));
143
+ },
144
+ });
145
+ });
84
146
  }
85
- __show(account_id_1, workspace_id_1) {
86
- return __awaiter(this, arguments, void 0, function* (account_id, workspace_id, request = {}, requestOptions) {
147
+ /**
148
+ * Create workspace from an account. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
149
+ *
150
+ * @param {Frameio.FrameOrAdobeId} account_id
151
+ * @param {Frameio.WorkspaceParams} request
152
+ * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
153
+ *
154
+ * @throws {@link Frameio.BadRequestError}
155
+ * @throws {@link Frameio.UnauthorizedError}
156
+ * @throws {@link Frameio.ForbiddenError}
157
+ * @throws {@link Frameio.NotFoundError}
158
+ * @throws {@link Frameio.ConflictError}
159
+ * @throws {@link Frameio.UnprocessableEntityError}
160
+ * @throws {@link Frameio.TooManyRequestsError}
161
+ *
162
+ * @example
163
+ * await client.workspaces.create("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
164
+ * data: {
165
+ * name: "My Workspace"
166
+ * }
167
+ * })
168
+ */
169
+ create(account_id, request, requestOptions) {
170
+ return core.HttpResponsePromise.fromPromise(this.__create(account_id, request, requestOptions));
171
+ }
172
+ __create(account_id, request, requestOptions) {
173
+ return __awaiter(this, void 0, void 0, function* () {
87
174
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
88
- const { include } = request;
89
- const _queryParams = {
90
- include: include != null ? include : undefined,
91
- };
92
175
  const _authRequest = yield this._options.authProvider.getAuthRequest();
93
176
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
94
177
  const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
95
- url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/workspaces/${core.url.encodePathParam(workspace_id)}`),
96
- method: "GET",
178
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/workspaces`),
179
+ method: "POST",
97
180
  headers: _headers,
98
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
181
+ contentType: "application/json",
182
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
183
+ requestType: "json",
184
+ body: request,
99
185
  timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
100
186
  maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
101
187
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -103,10 +189,7 @@ class WorkspacesClient {
103
189
  logging: this._options.logging,
104
190
  });
105
191
  if (_response.ok) {
106
- return {
107
- data: _response.body,
108
- rawResponse: _response.rawResponse,
109
- };
192
+ return { data: _response.body, rawResponse: _response.rawResponse };
110
193
  }
111
194
  if (_response.error.reason === "status-code") {
112
195
  switch (_response.error.statusCode) {
@@ -132,14 +215,15 @@ class WorkspacesClient {
132
215
  });
133
216
  }
134
217
  }
135
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/workspaces/{workspace_id}");
218
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v4/accounts/{account_id}/workspaces");
136
219
  });
137
220
  }
138
221
  /**
139
- * Delete workspace from account. <br/>Rate Limits: 60 calls per 1.00 minute(s) per account_user
222
+ * Show workspace details. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
140
223
  *
141
224
  * @param {Frameio.FrameOrAdobeId} account_id
142
225
  * @param {Frameio.Uuid} workspace_id
226
+ * @param {Frameio.WorkspacesShowRequest} request
143
227
  * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
144
228
  *
145
229
  * @throws {@link Frameio.BadRequestError}
@@ -151,21 +235,27 @@ class WorkspacesClient {
151
235
  * @throws {@link Frameio.TooManyRequestsError}
152
236
  *
153
237
  * @example
154
- * await client.workspaces.delete("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b")
238
+ * await client.workspaces.show("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
239
+ * include: "creator"
240
+ * })
155
241
  */
156
- delete(account_id, workspace_id, requestOptions) {
157
- return core.HttpResponsePromise.fromPromise(this.__delete(account_id, workspace_id, requestOptions));
242
+ show(account_id, workspace_id, request = {}, requestOptions) {
243
+ return core.HttpResponsePromise.fromPromise(this.__show(account_id, workspace_id, request, requestOptions));
158
244
  }
159
- __delete(account_id, workspace_id, requestOptions) {
160
- return __awaiter(this, void 0, void 0, function* () {
245
+ __show(account_id_1, workspace_id_1) {
246
+ return __awaiter(this, arguments, void 0, function* (account_id, workspace_id, request = {}, requestOptions) {
161
247
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
248
+ const { include } = request;
249
+ const _queryParams = {
250
+ include: include != null ? include : undefined,
251
+ };
162
252
  const _authRequest = yield this._options.authProvider.getAuthRequest();
163
253
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
164
254
  const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
165
255
  url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/workspaces/${core.url.encodePathParam(workspace_id)}`),
166
- method: "DELETE",
256
+ method: "GET",
167
257
  headers: _headers,
168
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
258
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
169
259
  timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
170
260
  maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
171
261
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -173,7 +263,10 @@ class WorkspacesClient {
173
263
  logging: this._options.logging,
174
264
  });
175
265
  if (_response.ok) {
176
- return { data: undefined, rawResponse: _response.rawResponse };
266
+ return {
267
+ data: _response.body,
268
+ rawResponse: _response.rawResponse,
269
+ };
177
270
  }
178
271
  if (_response.error.reason === "status-code") {
179
272
  switch (_response.error.statusCode) {
@@ -199,15 +292,14 @@ class WorkspacesClient {
199
292
  });
200
293
  }
201
294
  }
202
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v4/accounts/{account_id}/workspaces/{workspace_id}");
295
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/workspaces/{workspace_id}");
203
296
  });
204
297
  }
205
298
  /**
206
- * Update a workspace. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
299
+ * Delete workspace from account. <br/>Rate Limits: 60 calls per 1.00 minute(s) per account_user
207
300
  *
208
301
  * @param {Frameio.FrameOrAdobeId} account_id
209
302
  * @param {Frameio.Uuid} workspace_id
210
- * @param {Frameio.WorkspaceParams} request
211
303
  * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
212
304
  *
213
305
  * @throws {@link Frameio.BadRequestError}
@@ -219,28 +311,21 @@ class WorkspacesClient {
219
311
  * @throws {@link Frameio.TooManyRequestsError}
220
312
  *
221
313
  * @example
222
- * await client.workspaces.update("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
223
- * data: {
224
- * name: "My Workspace"
225
- * }
226
- * })
314
+ * await client.workspaces.delete("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b")
227
315
  */
228
- update(account_id, workspace_id, request, requestOptions) {
229
- return core.HttpResponsePromise.fromPromise(this.__update(account_id, workspace_id, request, requestOptions));
316
+ delete(account_id, workspace_id, requestOptions) {
317
+ return core.HttpResponsePromise.fromPromise(this.__delete(account_id, workspace_id, requestOptions));
230
318
  }
231
- __update(account_id, workspace_id, request, requestOptions) {
319
+ __delete(account_id, workspace_id, requestOptions) {
232
320
  return __awaiter(this, void 0, void 0, function* () {
233
321
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
234
322
  const _authRequest = yield this._options.authProvider.getAuthRequest();
235
323
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
236
324
  const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
237
325
  url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/workspaces/${core.url.encodePathParam(workspace_id)}`),
238
- method: "PATCH",
326
+ method: "DELETE",
239
327
  headers: _headers,
240
- contentType: "application/json",
241
328
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
242
- requestType: "json",
243
- body: request,
244
329
  timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
245
330
  maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
246
331
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -248,7 +333,7 @@ class WorkspacesClient {
248
333
  logging: this._options.logging,
249
334
  });
250
335
  if (_response.ok) {
251
- return { data: _response.body, rawResponse: _response.rawResponse };
336
+ return { data: undefined, rawResponse: _response.rawResponse };
252
337
  }
253
338
  if (_response.error.reason === "status-code") {
254
339
  switch (_response.error.statusCode) {
@@ -274,99 +359,14 @@ class WorkspacesClient {
274
359
  });
275
360
  }
276
361
  }
277
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v4/accounts/{account_id}/workspaces/{workspace_id}");
278
- });
279
- }
280
- /**
281
- * List workspaces for a given account. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
282
- *
283
- * @param {Frameio.FrameOrAdobeId} account_id
284
- * @param {Frameio.WorkspacesIndexRequest} request
285
- * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
286
- *
287
- * @throws {@link Frameio.BadRequestError}
288
- * @throws {@link Frameio.UnauthorizedError}
289
- * @throws {@link Frameio.ForbiddenError}
290
- * @throws {@link Frameio.NotFoundError}
291
- * @throws {@link Frameio.ConflictError}
292
- * @throws {@link Frameio.UnprocessableEntityError}
293
- * @throws {@link Frameio.TooManyRequestsError}
294
- *
295
- * @example
296
- * await client.workspaces.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
297
- * include: "creator",
298
- * sort: "name_asc",
299
- * after: "<opaque_cursor>",
300
- * page_size: 10,
301
- * include_total_count: false
302
- * })
303
- */
304
- index(account_id_1) {
305
- return __awaiter(this, arguments, void 0, function* (account_id, _request = {}, requestOptions) {
306
- var _a, _b;
307
- const list = core.HttpResponsePromise.interceptFunction((_requestUrl) => __awaiter(this, void 0, void 0, function* () {
308
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
309
- const _authRequest = yield this._options.authProvider.getAuthRequest();
310
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
311
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
312
- url: _requestUrl,
313
- method: "GET",
314
- headers: _headers,
315
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
316
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
317
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
318
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
319
- logging: this._options.logging,
320
- });
321
- if (_response.ok) {
322
- return {
323
- data: _response.body,
324
- rawResponse: _response.rawResponse,
325
- };
326
- }
327
- if (_response.error.reason === "status-code") {
328
- switch (_response.error.statusCode) {
329
- case 400:
330
- throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
331
- case 401:
332
- throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
333
- case 403:
334
- throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
335
- case 404:
336
- throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
337
- case 409:
338
- throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
339
- case 422:
340
- throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
341
- case 429:
342
- throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
343
- default:
344
- throw new errors.FrameioError({
345
- statusCode: _response.error.statusCode,
346
- body: _response.error.body,
347
- rawResponse: _response.rawResponse,
348
- });
349
- }
350
- }
351
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/workspaces");
352
- }));
353
- const _baseUrl = (_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.FrameioEnvironment.Default;
354
- const dataWithRawResponse = yield list(core.url.join(_baseUrl, `v4/accounts/${core.url.encodePathParam(account_id)}/workspaces`)).withRawResponse();
355
- return new core.Page({
356
- response: dataWithRawResponse.data,
357
- rawResponse: dataWithRawResponse.rawResponse,
358
- hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.links.next) != null && (response === null || response === void 0 ? void 0 : response.links.next) !== "",
359
- getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.data) !== null && _a !== void 0 ? _a : []; },
360
- loadPage: (response) => {
361
- return list(core.url.join(_baseUrl, response === null || response === void 0 ? void 0 : response.links.next));
362
- },
363
- });
362
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v4/accounts/{account_id}/workspaces/{workspace_id}");
364
363
  });
365
364
  }
366
365
  /**
367
- * Create workspace from an account. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
366
+ * Update a workspace. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
368
367
  *
369
368
  * @param {Frameio.FrameOrAdobeId} account_id
369
+ * @param {Frameio.Uuid} workspace_id
370
370
  * @param {Frameio.WorkspaceParams} request
371
371
  * @param {WorkspacesClient.RequestOptions} requestOptions - Request-specific configuration.
372
372
  *
@@ -379,23 +379,23 @@ class WorkspacesClient {
379
379
  * @throws {@link Frameio.TooManyRequestsError}
380
380
  *
381
381
  * @example
382
- * await client.workspaces.create("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
382
+ * await client.workspaces.update("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
383
383
  * data: {
384
384
  * name: "My Workspace"
385
385
  * }
386
386
  * })
387
387
  */
388
- create(account_id, request, requestOptions) {
389
- return core.HttpResponsePromise.fromPromise(this.__create(account_id, request, requestOptions));
388
+ update(account_id, workspace_id, request, requestOptions) {
389
+ return core.HttpResponsePromise.fromPromise(this.__update(account_id, workspace_id, request, requestOptions));
390
390
  }
391
- __create(account_id, request, requestOptions) {
391
+ __update(account_id, workspace_id, request, requestOptions) {
392
392
  return __awaiter(this, void 0, void 0, function* () {
393
393
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
394
394
  const _authRequest = yield this._options.authProvider.getAuthRequest();
395
395
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
396
396
  const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
397
- url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/workspaces`),
398
- method: "POST",
397
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/workspaces/${core.url.encodePathParam(workspace_id)}`),
398
+ method: "PATCH",
399
399
  headers: _headers,
400
400
  contentType: "application/json",
401
401
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -434,7 +434,7 @@ class WorkspacesClient {
434
434
  });
435
435
  }
436
436
  }
437
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v4/accounts/{account_id}/workspaces");
437
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v4/accounts/{account_id}/workspaces/{workspace_id}");
438
438
  });
439
439
  }
440
440
  }
@@ -112,6 +112,9 @@ export declare namespace AuditLogwithIncludes {
112
112
  readonly JoinReviewLinkRequestApproved: "join_review_link_request_approved";
113
113
  readonly JoinTeamRequestApproved: "join_team_request_approved";
114
114
  readonly LabelUpdated: "label_updated";
115
+ readonly LabsExperimentEnrolled: "labs_experiment_enrolled";
116
+ readonly LabsExperimentUnenrolled: "labs_experiment_unenrolled";
117
+ readonly LabsTermsAccepted: "labs_terms_accepted";
115
118
  readonly LoginFactorCreated: "login_factor_created";
116
119
  readonly LoginFactorValidated: "login_factor_validated";
117
120
  readonly MediaCreated: "media_created";
@@ -223,6 +226,7 @@ export declare namespace AuditLogwithIncludes {
223
226
  readonly UserTokenEnabled: "user_token_enabled";
224
227
  readonly UserTokenUpdated: "user_token_updated";
225
228
  readonly UserUpdated: "user_updated";
229
+ readonly V4MigrationRoleOverrideChanged: "v4_migration_role_override_changed";
226
230
  readonly V4PlannedMigrationCreationFailed: "v4_planned_migration_creation_failed";
227
231
  readonly V4PlannedMigrationDateUpdated: "v4_planned_migration_date_updated";
228
232
  readonly WebhookCreated: "webhook_created";
@@ -238,6 +242,7 @@ export declare namespace AuditLogwithIncludes {
238
242
  readonly AccountFieldDefinition: "account_field_definition";
239
243
  readonly AccountMember: "account_member";
240
244
  readonly AccountUserGroup: "account_user_group";
245
+ readonly AccountV4MigrationEligibility: "account_v4_migration_eligibility";
241
246
  readonly Action: "action";
242
247
  readonly AllowedDomain: "allowed_domain";
243
248
  readonly AnonymousUser: "anonymous_user";
@@ -250,6 +255,7 @@ export declare namespace AuditLogwithIncludes {
250
255
  readonly ControlledDomain: "controlled_domain";
251
256
  readonly Folder: "folder";
252
257
  readonly JoinRequest: "join_request";
258
+ readonly LabsExperiment: "labs_experiment";
253
259
  readonly LoginFactor: "login_factor";
254
260
  readonly Media: "media";
255
261
  readonly OauthApp: "oauth_app";
@@ -101,6 +101,9 @@ var AuditLogwithIncludes;
101
101
  JoinReviewLinkRequestApproved: "join_review_link_request_approved",
102
102
  JoinTeamRequestApproved: "join_team_request_approved",
103
103
  LabelUpdated: "label_updated",
104
+ LabsExperimentEnrolled: "labs_experiment_enrolled",
105
+ LabsExperimentUnenrolled: "labs_experiment_unenrolled",
106
+ LabsTermsAccepted: "labs_terms_accepted",
104
107
  LoginFactorCreated: "login_factor_created",
105
108
  LoginFactorValidated: "login_factor_validated",
106
109
  MediaCreated: "media_created",
@@ -212,6 +215,7 @@ var AuditLogwithIncludes;
212
215
  UserTokenEnabled: "user_token_enabled",
213
216
  UserTokenUpdated: "user_token_updated",
214
217
  UserUpdated: "user_updated",
218
+ V4MigrationRoleOverrideChanged: "v4_migration_role_override_changed",
215
219
  V4PlannedMigrationCreationFailed: "v4_planned_migration_creation_failed",
216
220
  V4PlannedMigrationDateUpdated: "v4_planned_migration_date_updated",
217
221
  WebhookCreated: "webhook_created",
@@ -226,6 +230,7 @@ var AuditLogwithIncludes;
226
230
  AccountFieldDefinition: "account_field_definition",
227
231
  AccountMember: "account_member",
228
232
  AccountUserGroup: "account_user_group",
233
+ AccountV4MigrationEligibility: "account_v4_migration_eligibility",
229
234
  Action: "action",
230
235
  AllowedDomain: "allowed_domain",
231
236
  AnonymousUser: "anonymous_user",
@@ -238,6 +243,7 @@ var AuditLogwithIncludes;
238
243
  ControlledDomain: "controlled_domain",
239
244
  Folder: "folder",
240
245
  JoinRequest: "join_request",
246
+ LabsExperiment: "labs_experiment",
241
247
  LoginFactor: "login_factor",
242
248
  Media: "media",
243
249
  OauthApp: "oauth_app",
@@ -120,6 +120,9 @@ export declare namespace Filters {
120
120
  readonly JoinReviewLinkRequestApproved: "join_review_link_request_approved";
121
121
  readonly JoinTeamRequestApproved: "join_team_request_approved";
122
122
  readonly LabelUpdated: "label_updated";
123
+ readonly LabsExperimentEnrolled: "labs_experiment_enrolled";
124
+ readonly LabsExperimentUnenrolled: "labs_experiment_unenrolled";
125
+ readonly LabsTermsAccepted: "labs_terms_accepted";
123
126
  readonly LoginFactorCreated: "login_factor_created";
124
127
  readonly LoginFactorValidated: "login_factor_validated";
125
128
  readonly MediaCreated: "media_created";
@@ -231,6 +234,7 @@ export declare namespace Filters {
231
234
  readonly UserTokenEnabled: "user_token_enabled";
232
235
  readonly UserTokenUpdated: "user_token_updated";
233
236
  readonly UserUpdated: "user_updated";
237
+ readonly V4MigrationRoleOverrideChanged: "v4_migration_role_override_changed";
234
238
  readonly V4PlannedMigrationCreationFailed: "v4_planned_migration_creation_failed";
235
239
  readonly V4PlannedMigrationDateUpdated: "v4_planned_migration_date_updated";
236
240
  readonly WebhookCreated: "webhook_created";
@@ -247,6 +251,7 @@ export declare namespace Filters {
247
251
  readonly AccountFieldDefinition: "account_field_definition";
248
252
  readonly AccountMember: "account_member";
249
253
  readonly AccountUserGroup: "account_user_group";
254
+ readonly AccountV4MigrationEligibility: "account_v4_migration_eligibility";
250
255
  readonly Action: "action";
251
256
  readonly AllowedDomain: "allowed_domain";
252
257
  readonly AnonymousUser: "anonymous_user";
@@ -259,6 +264,7 @@ export declare namespace Filters {
259
264
  readonly ControlledDomain: "controlled_domain";
260
265
  readonly Folder: "folder";
261
266
  readonly JoinRequest: "join_request";
267
+ readonly LabsExperiment: "labs_experiment";
262
268
  readonly LoginFactor: "login_factor";
263
269
  readonly Media: "media";
264
270
  readonly OauthApp: "oauth_app";
@@ -102,6 +102,9 @@ var Filters;
102
102
  JoinReviewLinkRequestApproved: "join_review_link_request_approved",
103
103
  JoinTeamRequestApproved: "join_team_request_approved",
104
104
  LabelUpdated: "label_updated",
105
+ LabsExperimentEnrolled: "labs_experiment_enrolled",
106
+ LabsExperimentUnenrolled: "labs_experiment_unenrolled",
107
+ LabsTermsAccepted: "labs_terms_accepted",
105
108
  LoginFactorCreated: "login_factor_created",
106
109
  LoginFactorValidated: "login_factor_validated",
107
110
  MediaCreated: "media_created",
@@ -213,6 +216,7 @@ var Filters;
213
216
  UserTokenEnabled: "user_token_enabled",
214
217
  UserTokenUpdated: "user_token_updated",
215
218
  UserUpdated: "user_updated",
219
+ V4MigrationRoleOverrideChanged: "v4_migration_role_override_changed",
216
220
  V4PlannedMigrationCreationFailed: "v4_planned_migration_creation_failed",
217
221
  V4PlannedMigrationDateUpdated: "v4_planned_migration_date_updated",
218
222
  WebhookCreated: "webhook_created",
@@ -228,6 +232,7 @@ var Filters;
228
232
  AccountFieldDefinition: "account_field_definition",
229
233
  AccountMember: "account_member",
230
234
  AccountUserGroup: "account_user_group",
235
+ AccountV4MigrationEligibility: "account_v4_migration_eligibility",
231
236
  Action: "action",
232
237
  AllowedDomain: "allowed_domain",
233
238
  AnonymousUser: "anonymous_user",
@@ -240,6 +245,7 @@ var Filters;
240
245
  ControlledDomain: "controlled_domain",
241
246
  Folder: "folder",
242
247
  JoinRequest: "join_request",
248
+ LabsExperiment: "labs_experiment",
243
249
  LoginFactor: "login_factor",
244
250
  Media: "media",
245
251
  OauthApp: "oauth_app",
@@ -4,8 +4,6 @@ export interface LongTextDefinition {
4
4
  /** Field definition creator ID */
5
5
  creator_id: string;
6
6
  field_configuration: LongTextDefinition.FieldConfiguration;
7
- /** Field type */
8
- field_type: LongTextDefinition.FieldType;
9
7
  /** Field definition ID */
10
8
  id: string;
11
9
  /** Field definition mutability. System fields cannot be updated. */
@@ -17,18 +15,4 @@ export interface LongTextDefinition {
17
15
  }
18
16
  export declare namespace LongTextDefinition {
19
17
  type FieldConfiguration = {};
20
- /** Field type */
21
- const FieldType: {
22
- readonly Text: "text";
23
- readonly LongText: "long_text";
24
- readonly Select: "select";
25
- readonly SelectMulti: "select_multi";
26
- readonly Rating: "rating";
27
- readonly Number: "number";
28
- readonly Toggle: "toggle";
29
- readonly UserSingle: "user_single";
30
- readonly UserMulti: "user_multi";
31
- readonly Date: "date";
32
- };
33
- type FieldType = (typeof FieldType)[keyof typeof FieldType];
34
18
  }
@@ -1,20 +1,3 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.LongTextDefinition = void 0;
5
- var LongTextDefinition;
6
- (function (LongTextDefinition) {
7
- /** Field type */
8
- LongTextDefinition.FieldType = {
9
- Text: "text",
10
- LongText: "long_text",
11
- Select: "select",
12
- SelectMulti: "select_multi",
13
- Rating: "rating",
14
- Number: "number",
15
- Toggle: "toggle",
16
- UserSingle: "user_single",
17
- UserMulti: "user_multi",
18
- Date: "date",
19
- };
20
- })(LongTextDefinition || (exports.LongTextDefinition = LongTextDefinition = {}));
@@ -4,6 +4,8 @@ export interface NumberDefinition {
4
4
  /** Field definition creator ID */
5
5
  creator_id: string;
6
6
  field_configuration: NumberDefinition.FieldConfiguration;
7
+ /** Field type */
8
+ field_type: NumberDefinition.FieldType;
7
9
  /** Field definition ID */
8
10
  id: string;
9
11
  /** Field definition mutability. System fields cannot be updated. */
@@ -33,4 +35,18 @@ export declare namespace NumberDefinition {
33
35
  };
34
36
  type NumberFormat = (typeof NumberFormat)[keyof typeof NumberFormat];
35
37
  }
38
+ /** Field type */
39
+ const FieldType: {
40
+ readonly Text: "text";
41
+ readonly LongText: "long_text";
42
+ readonly Select: "select";
43
+ readonly SelectMulti: "select_multi";
44
+ readonly Rating: "rating";
45
+ readonly Number: "number";
46
+ readonly Toggle: "toggle";
47
+ readonly UserSingle: "user_single";
48
+ readonly UserMulti: "user_multi";
49
+ readonly Date: "date";
50
+ };
51
+ type FieldType = (typeof FieldType)[keyof typeof FieldType];
36
52
  }