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