frameio 0.1.0 → 1.1.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/README.md +5 -1
- package/dist/cjs/Client.d.ts +2 -2
- package/dist/cjs/Client.js +3 -3
- package/dist/cjs/api/resources/accountPermissions/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/accountPermissions/client/Client.js +3 -7
- package/dist/cjs/api/resources/accounts/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/accounts/client/Client.js +3 -7
- package/dist/cjs/api/resources/comments/client/Client.d.ts +16 -9
- package/dist/cjs/api/resources/comments/client/Client.js +40 -16
- package/dist/cjs/api/resources/comments/client/requests/CommentsShowRequest.d.ts +1 -1
- package/dist/cjs/api/resources/comments/client/requests/CreateCommentParams.d.ts +13 -3
- package/dist/cjs/api/resources/comments/client/requests/UpdateCommentParams.d.ts +11 -2
- package/dist/cjs/api/resources/comments/index.d.ts +1 -0
- package/dist/cjs/api/resources/comments/index.js +1 -0
- package/dist/cjs/api/resources/comments/types/CommentsShowRequestInclude.d.ts +6 -0
- package/dist/cjs/api/resources/comments/types/CommentsShowRequestInclude.js +9 -0
- package/dist/cjs/api/resources/comments/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/comments/types/index.js +17 -0
- package/dist/cjs/api/resources/files/client/Client.d.ts +16 -15
- package/dist/cjs/api/resources/files/client/Client.js +33 -20
- package/dist/cjs/api/resources/files/client/requests/FileCopyParams.d.ts +3 -0
- package/dist/cjs/api/resources/folders/client/Client.d.ts +14 -12
- package/dist/cjs/api/resources/folders/client/Client.js +31 -17
- package/dist/cjs/api/resources/folders/client/requests/FolderCopyParams.d.ts +3 -0
- package/dist/cjs/api/resources/index.d.ts +4 -2
- package/dist/cjs/api/resources/index.js +5 -3
- package/dist/cjs/api/resources/metadata/client/Client.d.ts +17 -14
- package/dist/cjs/api/resources/metadata/client/Client.js +16 -17
- package/dist/cjs/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.ts +13 -10
- package/dist/cjs/api/resources/metadataFields/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/metadataFields/client/Client.js +6 -10
- package/dist/cjs/api/resources/projectPermissions/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/projectPermissions/client/Client.js +5 -9
- package/dist/cjs/api/resources/projects/client/Client.d.ts +15 -12
- package/dist/cjs/api/resources/projects/client/Client.js +13 -14
- package/dist/cjs/api/resources/projects/client/requests/ProjectParams.d.ts +20 -0
- package/dist/cjs/api/resources/projects/client/requests/ProjectUpdateParams.d.ts +31 -0
- package/dist/cjs/api/resources/projects/client/requests/ProjectUpdateParams.js +15 -0
- package/dist/cjs/api/resources/projects/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shares/client/Client.d.ts +22 -20
- package/dist/cjs/api/resources/shares/client/Client.js +21 -23
- package/dist/cjs/api/resources/shares/client/requests/AddAssetParams.d.ts +1 -1
- package/dist/cjs/api/resources/shares/client/requests/CreateShareParams.d.ts +3 -2
- package/dist/cjs/api/resources/shares/client/requests/UpdateShareParams.d.ts +3 -1
- package/dist/cjs/api/resources/users/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/users/client/Client.js +3 -7
- package/dist/cjs/api/resources/versionStacks/client/Client.d.ts +34 -10
- package/dist/cjs/api/resources/versionStacks/client/Client.js +115 -15
- package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackCopyParams.d.ts +3 -0
- package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.ts +2 -2
- package/dist/cjs/api/resources/versionStacks/client/requests/VersionStacksShowRequest.d.ts +11 -0
- package/dist/cjs/api/resources/versionStacks/client/requests/VersionStacksShowRequest.js +3 -0
- package/dist/cjs/api/resources/versionStacks/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/versionStacks/index.d.ts +1 -0
- package/dist/cjs/api/resources/versionStacks/index.js +1 -0
- package/dist/cjs/api/resources/versionStacks/types/VersionStacksShowRequestInclude.d.ts +13 -0
- package/dist/cjs/api/resources/versionStacks/types/VersionStacksShowRequestInclude.js +16 -0
- package/dist/cjs/api/resources/versionStacks/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/versionStacks/types/index.js +17 -0
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/webhooks/client/Client.js +6 -10
- package/dist/cjs/api/resources/workspacePermissions/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/workspacePermissions/client/Client.js +5 -9
- package/dist/cjs/api/resources/workspaces/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/workspaces/client/Client.js +7 -11
- package/dist/cjs/api/types/AssetCommonWithIncludes.d.ts +9 -0
- package/dist/cjs/api/types/AssetCommonWithIncludes.js +9 -0
- package/dist/cjs/api/types/AssetShareParams.d.ts +1 -0
- package/dist/cjs/api/types/Comment.d.ts +6 -2
- package/dist/cjs/api/types/DateDefinition.d.ts +16 -0
- package/dist/cjs/api/types/DateDefinition.js +13 -0
- package/dist/cjs/api/types/EmptyJson.d.ts +4 -0
- package/dist/cjs/api/types/EmptyJson.js +3 -0
- package/dist/cjs/api/types/FileWithMediaLinksInclude.d.ts +0 -1
- package/dist/cjs/api/types/FileWithMediaLinksInclude.js +0 -1
- package/dist/cjs/api/types/FolderWithIncludes.d.ts +9 -0
- package/dist/cjs/api/types/FolderWithIncludes.js +9 -0
- package/dist/cjs/api/types/LongTextDefinition.d.ts +16 -0
- package/dist/cjs/api/types/LongTextDefinition.js +17 -0
- package/dist/cjs/api/types/MultiUserValue.d.ts +1 -1
- package/dist/cjs/api/types/Project.d.ts +12 -0
- package/dist/cjs/api/types/Project.js +9 -0
- package/dist/cjs/api/types/SelectMultiDefinition.d.ts +16 -0
- package/dist/cjs/api/types/SelectMultiDefinition.js +17 -0
- package/dist/cjs/api/types/TextDefinition.d.ts +16 -0
- package/dist/cjs/api/types/TextDefinition.js +17 -0
- package/dist/cjs/api/types/TimeStamp.d.ts +7 -0
- package/dist/cjs/api/types/TimeStamp.js +3 -0
- package/dist/cjs/api/types/UserMultiDefinition.d.ts +16 -0
- package/dist/cjs/api/types/UserMultiDefinition.js +13 -0
- package/dist/cjs/api/types/UserSingleDefinition.d.ts +16 -0
- package/dist/cjs/api/types/UserSingleDefinition.js +13 -0
- package/dist/cjs/api/types/VersionStackWithIncludes.d.ts +9 -0
- package/dist/cjs/api/types/VersionStackWithIncludes.js +9 -0
- package/dist/cjs/api/types/index.d.ts +3 -2
- package/dist/cjs/api/types/index.js +3 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +2 -2
- package/dist/esm/Client.mjs +3 -3
- package/dist/esm/api/resources/accountPermissions/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/accountPermissions/client/Client.mjs +3 -7
- package/dist/esm/api/resources/accounts/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/accounts/client/Client.mjs +3 -7
- package/dist/esm/api/resources/comments/client/Client.d.mts +16 -9
- package/dist/esm/api/resources/comments/client/Client.mjs +40 -16
- package/dist/esm/api/resources/comments/client/requests/CommentsShowRequest.d.mts +1 -1
- package/dist/esm/api/resources/comments/client/requests/CreateCommentParams.d.mts +13 -3
- package/dist/esm/api/resources/comments/client/requests/UpdateCommentParams.d.mts +11 -2
- package/dist/esm/api/resources/comments/index.d.mts +1 -0
- package/dist/esm/api/resources/comments/index.mjs +1 -0
- package/dist/esm/api/resources/comments/types/CommentsShowRequestInclude.d.mts +6 -0
- package/dist/esm/api/resources/comments/types/CommentsShowRequestInclude.mjs +6 -0
- package/dist/esm/api/resources/comments/types/index.d.mts +1 -0
- package/dist/esm/api/resources/comments/types/index.mjs +1 -0
- package/dist/esm/api/resources/files/client/Client.d.mts +16 -15
- package/dist/esm/api/resources/files/client/Client.mjs +33 -20
- package/dist/esm/api/resources/files/client/requests/FileCopyParams.d.mts +3 -0
- package/dist/esm/api/resources/folders/client/Client.d.mts +14 -12
- package/dist/esm/api/resources/folders/client/Client.mjs +31 -17
- package/dist/esm/api/resources/folders/client/requests/FolderCopyParams.d.mts +3 -0
- package/dist/esm/api/resources/index.d.mts +4 -2
- package/dist/esm/api/resources/index.mjs +4 -2
- package/dist/esm/api/resources/metadata/client/Client.d.mts +17 -14
- package/dist/esm/api/resources/metadata/client/Client.mjs +16 -17
- package/dist/esm/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.mts +13 -10
- package/dist/esm/api/resources/metadataFields/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/metadataFields/client/Client.mjs +6 -10
- package/dist/esm/api/resources/projectPermissions/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/projectPermissions/client/Client.mjs +5 -9
- package/dist/esm/api/resources/projects/client/Client.d.mts +15 -12
- package/dist/esm/api/resources/projects/client/Client.mjs +13 -14
- package/dist/esm/api/resources/projects/client/requests/ProjectParams.d.mts +20 -0
- package/dist/esm/api/resources/projects/client/requests/ProjectUpdateParams.d.mts +31 -0
- package/dist/esm/api/resources/projects/client/requests/ProjectUpdateParams.mjs +12 -0
- package/dist/esm/api/resources/projects/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shares/client/Client.d.mts +22 -20
- package/dist/esm/api/resources/shares/client/Client.mjs +21 -23
- package/dist/esm/api/resources/shares/client/requests/AddAssetParams.d.mts +1 -1
- package/dist/esm/api/resources/shares/client/requests/CreateShareParams.d.mts +3 -2
- package/dist/esm/api/resources/shares/client/requests/UpdateShareParams.d.mts +3 -1
- package/dist/esm/api/resources/users/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/users/client/Client.mjs +3 -7
- package/dist/esm/api/resources/versionStacks/client/Client.d.mts +34 -10
- package/dist/esm/api/resources/versionStacks/client/Client.mjs +115 -15
- package/dist/esm/api/resources/versionStacks/client/requests/VersionStackCopyParams.d.mts +3 -0
- package/dist/esm/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.mts +2 -2
- package/dist/esm/api/resources/versionStacks/client/requests/VersionStacksShowRequest.d.mts +11 -0
- package/dist/esm/api/resources/versionStacks/client/requests/VersionStacksShowRequest.mjs +2 -0
- package/dist/esm/api/resources/versionStacks/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/versionStacks/index.d.mts +1 -0
- package/dist/esm/api/resources/versionStacks/index.mjs +1 -0
- package/dist/esm/api/resources/versionStacks/types/VersionStacksShowRequestInclude.d.mts +13 -0
- package/dist/esm/api/resources/versionStacks/types/VersionStacksShowRequestInclude.mjs +13 -0
- package/dist/esm/api/resources/versionStacks/types/index.d.mts +1 -0
- package/dist/esm/api/resources/versionStacks/types/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/webhooks/client/Client.mjs +6 -10
- package/dist/esm/api/resources/workspacePermissions/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/workspacePermissions/client/Client.mjs +5 -9
- package/dist/esm/api/resources/workspaces/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/workspaces/client/Client.mjs +7 -11
- package/dist/esm/api/types/AssetCommonWithIncludes.d.mts +9 -0
- package/dist/esm/api/types/AssetCommonWithIncludes.mjs +8 -1
- package/dist/esm/api/types/AssetShareParams.d.mts +1 -0
- package/dist/esm/api/types/Comment.d.mts +6 -2
- package/dist/esm/api/types/DateDefinition.d.mts +16 -0
- package/dist/esm/api/types/DateDefinition.mjs +13 -0
- package/dist/esm/api/types/EmptyJson.d.mts +4 -0
- package/dist/esm/api/types/EmptyJson.mjs +2 -0
- package/dist/esm/api/types/FileWithMediaLinksInclude.d.mts +0 -1
- package/dist/esm/api/types/FileWithMediaLinksInclude.mjs +0 -1
- package/dist/esm/api/types/FolderWithIncludes.d.mts +9 -0
- package/dist/esm/api/types/FolderWithIncludes.mjs +8 -1
- package/dist/esm/api/types/LongTextDefinition.d.mts +16 -0
- package/dist/esm/api/types/LongTextDefinition.mjs +16 -1
- package/dist/esm/api/types/MultiUserValue.d.mts +1 -1
- package/dist/esm/api/types/Project.d.mts +12 -0
- package/dist/esm/api/types/Project.mjs +8 -1
- package/dist/esm/api/types/SelectMultiDefinition.d.mts +16 -0
- package/dist/esm/api/types/SelectMultiDefinition.mjs +16 -1
- package/dist/esm/api/types/TextDefinition.d.mts +16 -0
- package/dist/esm/api/types/TextDefinition.mjs +16 -1
- package/dist/esm/api/types/TimeStamp.d.mts +7 -0
- package/dist/esm/api/types/TimeStamp.mjs +2 -0
- package/dist/esm/api/types/UserMultiDefinition.d.mts +16 -0
- package/dist/esm/api/types/UserMultiDefinition.mjs +13 -0
- package/dist/esm/api/types/UserSingleDefinition.d.mts +16 -0
- package/dist/esm/api/types/UserSingleDefinition.mjs +13 -0
- package/dist/esm/api/types/VersionStackWithIncludes.d.mts +9 -0
- package/dist/esm/api/types/VersionStackWithIncludes.mjs +8 -1
- package/dist/esm/api/types/index.d.mts +3 -2
- package/dist/esm/api/types/index.mjs +3 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +384 -110
- package/dist/cjs/api/types/ProjectParams.d.ts +0 -12
- package/dist/esm/api/types/ProjectParams.d.mts +0 -12
- /package/dist/cjs/api/{types → resources/projects/client/requests}/ProjectParams.js +0 -0
- /package/dist/esm/api/{types → resources/projects/client/requests}/ProjectParams.mjs +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Supported include query parameter values for endpoints that return files with media links */
|
|
3
|
+
export const VersionStacksShowRequestInclude = {
|
|
4
|
+
MediaLinks: "media_links",
|
|
5
|
+
MediaLinksOriginal: "media_links.original",
|
|
6
|
+
MediaLinksThumbnail: "media_links.thumbnail",
|
|
7
|
+
MediaLinksVideoH264180: "media_links.video_h264_180",
|
|
8
|
+
MediaLinksHighQuality: "media_links.high_quality",
|
|
9
|
+
MediaLinksEfficient: "media_links.efficient",
|
|
10
|
+
Creator: "creator",
|
|
11
|
+
Project: "project",
|
|
12
|
+
Metadata: "metadata",
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./VersionStacksShowRequestInclude.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./VersionStacksShowRequestInclude.mjs";
|
|
@@ -6,7 +6,7 @@ export declare namespace Webhooks {
|
|
|
6
6
|
environment?: core.Supplier<environments.FrameioEnvironment | string>;
|
|
7
7
|
/** Specify a custom URL to connect the client to. */
|
|
8
8
|
baseUrl?: core.Supplier<string>;
|
|
9
|
-
token
|
|
9
|
+
token: core.Supplier<core.BearerToken>;
|
|
10
10
|
/** Additional headers to include in requests. */
|
|
11
11
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
12
12
|
}
|
|
@@ -28,9 +28,9 @@ export declare namespace Webhooks {
|
|
|
28
28
|
*/
|
|
29
29
|
export declare class Webhooks {
|
|
30
30
|
protected readonly _options: Webhooks.Options;
|
|
31
|
-
constructor(_options
|
|
31
|
+
constructor(_options: Webhooks.Options);
|
|
32
32
|
/**
|
|
33
|
-
* List webhooks for the given workspace. <br
|
|
33
|
+
* List webhooks for the given workspace. <br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
34
34
|
*
|
|
35
35
|
* @param {Frameio.Uuid} accountId -
|
|
36
36
|
* @param {Frameio.Uuid} workspaceId -
|
|
@@ -110,7 +110,7 @@ export declare class Webhooks {
|
|
|
110
110
|
create(accountId: Frameio.Uuid, workspaceId: Frameio.Uuid, request: Frameio.WebhookCreateParams, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<Frameio.WebhookCreateResponse>;
|
|
111
111
|
private __create;
|
|
112
112
|
/**
|
|
113
|
-
* Show webhook details. <br
|
|
113
|
+
* Show webhook details. <br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
114
114
|
*
|
|
115
115
|
* @param {Frameio.Uuid} accountId -
|
|
116
116
|
* @param {Frameio.Uuid} webhookId -
|
|
@@ -132,7 +132,7 @@ export declare class Webhooks {
|
|
|
132
132
|
show(accountId: Frameio.Uuid, webhookId: Frameio.Uuid, request?: Frameio.WebhooksShowRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<Frameio.WebhookWithIncludesResponse>;
|
|
133
133
|
private __show;
|
|
134
134
|
/**
|
|
135
|
-
* Delete a webhook. <br
|
|
135
|
+
* Delete a webhook. <br>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
136
136
|
*
|
|
137
137
|
* @param {Frameio.Uuid} accountId -
|
|
138
138
|
* @param {Frameio.Uuid} webhookId -
|
|
@@ -151,7 +151,7 @@ export declare class Webhooks {
|
|
|
151
151
|
delete(accountId: Frameio.Uuid, webhookId: Frameio.Uuid, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<void>;
|
|
152
152
|
private __delete;
|
|
153
153
|
/**
|
|
154
|
-
* Update webhook details. <br
|
|
154
|
+
* Update webhook details. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
155
155
|
*
|
|
156
156
|
* @param {Frameio.Uuid} accountId -
|
|
157
157
|
* @param {Frameio.Uuid} webhookId -
|
|
@@ -177,5 +177,5 @@ export declare class Webhooks {
|
|
|
177
177
|
*/
|
|
178
178
|
update(accountId: Frameio.Uuid, webhookId: Frameio.Uuid, request: Frameio.WebhookUpdateParams, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<Frameio.WebhookResponse>;
|
|
179
179
|
private __update;
|
|
180
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
180
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
181
181
|
}
|
|
@@ -17,11 +17,11 @@ import * as errors from "../../../../errors/index.mjs";
|
|
|
17
17
|
* Manage Webhooks and related operations.
|
|
18
18
|
*/
|
|
19
19
|
export class Webhooks {
|
|
20
|
-
constructor(_options
|
|
20
|
+
constructor(_options) {
|
|
21
21
|
this._options = _options;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* List webhooks for the given workspace. <br
|
|
24
|
+
* List webhooks for the given workspace. <br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
25
25
|
*
|
|
26
26
|
* @param {Frameio.Uuid} accountId -
|
|
27
27
|
* @param {Frameio.Uuid} workspaceId -
|
|
@@ -244,7 +244,7 @@ export class Webhooks {
|
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
/**
|
|
247
|
-
* Show webhook details. <br
|
|
247
|
+
* Show webhook details. <br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
248
248
|
*
|
|
249
249
|
* @param {Frameio.Uuid} accountId -
|
|
250
250
|
* @param {Frameio.Uuid} webhookId -
|
|
@@ -327,7 +327,7 @@ export class Webhooks {
|
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
329
|
/**
|
|
330
|
-
* Delete a webhook. <br
|
|
330
|
+
* Delete a webhook. <br>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
331
331
|
*
|
|
332
332
|
* @param {Frameio.Uuid} accountId -
|
|
333
333
|
* @param {Frameio.Uuid} webhookId -
|
|
@@ -402,7 +402,7 @@ export class Webhooks {
|
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
/**
|
|
405
|
-
* Update webhook details. <br
|
|
405
|
+
* Update webhook details. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
406
406
|
*
|
|
407
407
|
* @param {Frameio.Uuid} accountId -
|
|
408
408
|
* @param {Frameio.Uuid} webhookId -
|
|
@@ -489,11 +489,7 @@ export class Webhooks {
|
|
|
489
489
|
}
|
|
490
490
|
_getAuthorizationHeader() {
|
|
491
491
|
return __awaiter(this, void 0, void 0, function* () {
|
|
492
|
-
|
|
493
|
-
if (bearer != null) {
|
|
494
|
-
return `Bearer ${bearer}`;
|
|
495
|
-
}
|
|
496
|
-
return undefined;
|
|
492
|
+
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
497
493
|
});
|
|
498
494
|
}
|
|
499
495
|
}
|
|
@@ -6,7 +6,7 @@ export declare namespace WorkspacePermissions {
|
|
|
6
6
|
environment?: core.Supplier<environments.FrameioEnvironment | string>;
|
|
7
7
|
/** Specify a custom URL to connect the client to. */
|
|
8
8
|
baseUrl?: core.Supplier<string>;
|
|
9
|
-
token
|
|
9
|
+
token: core.Supplier<core.BearerToken>;
|
|
10
10
|
/** Additional headers to include in requests. */
|
|
11
11
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
12
12
|
}
|
|
@@ -28,9 +28,9 @@ export declare namespace WorkspacePermissions {
|
|
|
28
28
|
*/
|
|
29
29
|
export declare class WorkspacePermissions {
|
|
30
30
|
protected readonly _options: WorkspacePermissions.Options;
|
|
31
|
-
constructor(_options
|
|
31
|
+
constructor(_options: WorkspacePermissions.Options);
|
|
32
32
|
/**
|
|
33
|
-
* List user roles for a given workspace. <br
|
|
33
|
+
* List user roles for a given workspace. <br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
34
34
|
*
|
|
35
35
|
* @param {Frameio.Uuid} accountId -
|
|
36
36
|
* @param {Frameio.Uuid} workspaceId -
|
|
@@ -54,7 +54,7 @@ export declare class WorkspacePermissions {
|
|
|
54
54
|
*/
|
|
55
55
|
index(accountId: Frameio.Uuid, workspaceId: Frameio.Uuid, request?: Frameio.WorkspacePermissionsIndexRequest, requestOptions?: WorkspacePermissions.RequestOptions): Promise<core.Page<Frameio.UserRole>>;
|
|
56
56
|
/**
|
|
57
|
-
* Remove a user from a given workspace. <br
|
|
57
|
+
* Remove a user from a given workspace. <br>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
58
58
|
*
|
|
59
59
|
* @param {Frameio.Uuid} accountId -
|
|
60
60
|
* @param {Frameio.Uuid} workspaceId -
|
|
@@ -75,7 +75,7 @@ export declare class WorkspacePermissions {
|
|
|
75
75
|
private __workspaceUserRolesDelete;
|
|
76
76
|
/**
|
|
77
77
|
* Update user roles for the given workspace if the user is already added to the workspace. If the user is
|
|
78
|
-
* not added to the workspace, the user will be added with the given role. <br
|
|
78
|
+
* not added to the workspace, the user will be added with the given role. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
79
79
|
*
|
|
80
80
|
* @param {Frameio.Uuid} accountId -
|
|
81
81
|
* @param {Frameio.Uuid} workspaceId -
|
|
@@ -99,5 +99,5 @@ export declare class WorkspacePermissions {
|
|
|
99
99
|
*/
|
|
100
100
|
workspaceUserRolesUpdate(accountId: Frameio.Uuid, workspaceId: Frameio.Uuid, userId: Frameio.Uuid, request: Frameio.UpdateUserRolesParams, requestOptions?: WorkspacePermissions.RequestOptions): core.HttpResponsePromise<Frameio.UpdateUserRolesResponse>;
|
|
101
101
|
private __workspaceUserRolesUpdate;
|
|
102
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
102
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
103
103
|
}
|
|
@@ -17,11 +17,11 @@ import * as errors from "../../../../errors/index.mjs";
|
|
|
17
17
|
* Manage Workspace Permissions and related operations.
|
|
18
18
|
*/
|
|
19
19
|
export class WorkspacePermissions {
|
|
20
|
-
constructor(_options
|
|
20
|
+
constructor(_options) {
|
|
21
21
|
this._options = _options;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* List user roles for a given workspace. <br
|
|
24
|
+
* List user roles for a given workspace. <br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
25
25
|
*
|
|
26
26
|
* @param {Frameio.Uuid} accountId -
|
|
27
27
|
* @param {Frameio.Uuid} workspaceId -
|
|
@@ -126,7 +126,7 @@ export class WorkspacePermissions {
|
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
|
-
* Remove a user from a given workspace. <br
|
|
129
|
+
* Remove a user from a given workspace. <br>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
130
130
|
*
|
|
131
131
|
* @param {Frameio.Uuid} accountId -
|
|
132
132
|
* @param {Frameio.Uuid} workspaceId -
|
|
@@ -203,7 +203,7 @@ export class WorkspacePermissions {
|
|
|
203
203
|
}
|
|
204
204
|
/**
|
|
205
205
|
* Update user roles for the given workspace if the user is already added to the workspace. If the user is
|
|
206
|
-
* not added to the workspace, the user will be added with the given role. <br
|
|
206
|
+
* not added to the workspace, the user will be added with the given role. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
207
207
|
*
|
|
208
208
|
* @param {Frameio.Uuid} accountId -
|
|
209
209
|
* @param {Frameio.Uuid} workspaceId -
|
|
@@ -288,11 +288,7 @@ export class WorkspacePermissions {
|
|
|
288
288
|
}
|
|
289
289
|
_getAuthorizationHeader() {
|
|
290
290
|
return __awaiter(this, void 0, void 0, function* () {
|
|
291
|
-
|
|
292
|
-
if (bearer != null) {
|
|
293
|
-
return `Bearer ${bearer}`;
|
|
294
|
-
}
|
|
295
|
-
return undefined;
|
|
291
|
+
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
296
292
|
});
|
|
297
293
|
}
|
|
298
294
|
}
|
|
@@ -6,7 +6,7 @@ export declare namespace Workspaces {
|
|
|
6
6
|
environment?: core.Supplier<environments.FrameioEnvironment | string>;
|
|
7
7
|
/** Specify a custom URL to connect the client to. */
|
|
8
8
|
baseUrl?: core.Supplier<string>;
|
|
9
|
-
token
|
|
9
|
+
token: core.Supplier<core.BearerToken>;
|
|
10
10
|
/** Additional headers to include in requests. */
|
|
11
11
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
12
12
|
}
|
|
@@ -28,9 +28,9 @@ export declare namespace Workspaces {
|
|
|
28
28
|
*/
|
|
29
29
|
export declare class Workspaces {
|
|
30
30
|
protected readonly _options: Workspaces.Options;
|
|
31
|
-
constructor(_options
|
|
31
|
+
constructor(_options: Workspaces.Options);
|
|
32
32
|
/**
|
|
33
|
-
* Show workspace details. <br
|
|
33
|
+
* Show workspace details. <br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
34
34
|
*
|
|
35
35
|
* @param {Frameio.Uuid} accountId -
|
|
36
36
|
* @param {Frameio.Uuid} workspaceId -
|
|
@@ -52,7 +52,7 @@ export declare class Workspaces {
|
|
|
52
52
|
show(accountId: Frameio.Uuid, workspaceId: Frameio.Uuid, request?: Frameio.WorkspacesShowRequest, requestOptions?: Workspaces.RequestOptions): core.HttpResponsePromise<Frameio.WorkspaceWithIncludesResponse>;
|
|
53
53
|
private __show;
|
|
54
54
|
/**
|
|
55
|
-
* Delete workspace from account. <br
|
|
55
|
+
* Delete workspace from account. <br>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
56
56
|
*
|
|
57
57
|
* @param {Frameio.Uuid} accountId -
|
|
58
58
|
* @param {Frameio.Uuid} workspaceId -
|
|
@@ -71,7 +71,7 @@ export declare class Workspaces {
|
|
|
71
71
|
delete(accountId: Frameio.Uuid, workspaceId: Frameio.Uuid, requestOptions?: Workspaces.RequestOptions): core.HttpResponsePromise<void>;
|
|
72
72
|
private __delete;
|
|
73
73
|
/**
|
|
74
|
-
* Update a workspace. <br
|
|
74
|
+
* Update a workspace. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
75
75
|
*
|
|
76
76
|
* @param {Frameio.Uuid} accountId -
|
|
77
77
|
* @param {Frameio.Uuid} workspaceId -
|
|
@@ -95,7 +95,7 @@ export declare class Workspaces {
|
|
|
95
95
|
update(accountId: Frameio.Uuid, workspaceId: Frameio.Uuid, request: Frameio.WorkspaceParams, requestOptions?: Workspaces.RequestOptions): core.HttpResponsePromise<Frameio.WorkspaceResponse>;
|
|
96
96
|
private __update;
|
|
97
97
|
/**
|
|
98
|
-
* List workspaces for a given account. <br
|
|
98
|
+
* List workspaces for a given account. <br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
99
99
|
*
|
|
100
100
|
* @param {Frameio.Uuid} accountId -
|
|
101
101
|
* @param {Frameio.WorkspacesIndexRequest} request
|
|
@@ -118,7 +118,7 @@ export declare class Workspaces {
|
|
|
118
118
|
*/
|
|
119
119
|
index(accountId: Frameio.Uuid, request?: Frameio.WorkspacesIndexRequest, requestOptions?: Workspaces.RequestOptions): Promise<core.Page<Frameio.WorkspaceWithIncludes>>;
|
|
120
120
|
/**
|
|
121
|
-
* Create workspace from an account. <br
|
|
121
|
+
* Create workspace from an account. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
122
122
|
*
|
|
123
123
|
* @param {Frameio.Uuid} accountId -
|
|
124
124
|
* @param {Frameio.WorkspaceParams} request
|
|
@@ -140,5 +140,5 @@ export declare class Workspaces {
|
|
|
140
140
|
*/
|
|
141
141
|
create(accountId: Frameio.Uuid, request: Frameio.WorkspaceParams, requestOptions?: Workspaces.RequestOptions): core.HttpResponsePromise<Frameio.WorkspaceResponse>;
|
|
142
142
|
private __create;
|
|
143
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
143
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
144
144
|
}
|
|
@@ -17,11 +17,11 @@ import * as errors from "../../../../errors/index.mjs";
|
|
|
17
17
|
* Manage Workspaces and related operations.
|
|
18
18
|
*/
|
|
19
19
|
export class Workspaces {
|
|
20
|
-
constructor(_options
|
|
20
|
+
constructor(_options) {
|
|
21
21
|
this._options = _options;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Show workspace details. <br
|
|
24
|
+
* Show workspace details. <br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
25
25
|
*
|
|
26
26
|
* @param {Frameio.Uuid} accountId -
|
|
27
27
|
* @param {Frameio.Uuid} workspaceId -
|
|
@@ -107,7 +107,7 @@ export class Workspaces {
|
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
|
-
* Delete workspace from account. <br
|
|
110
|
+
* Delete workspace from account. <br>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
111
111
|
*
|
|
112
112
|
* @param {Frameio.Uuid} accountId -
|
|
113
113
|
* @param {Frameio.Uuid} workspaceId -
|
|
@@ -182,7 +182,7 @@ export class Workspaces {
|
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
|
-
* Update a workspace. <br
|
|
185
|
+
* Update a workspace. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
186
186
|
*
|
|
187
187
|
* @param {Frameio.Uuid} accountId -
|
|
188
188
|
* @param {Frameio.Uuid} workspaceId -
|
|
@@ -265,7 +265,7 @@ export class Workspaces {
|
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
267
|
/**
|
|
268
|
-
* List workspaces for a given account. <br
|
|
268
|
+
* List workspaces for a given account. <br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
269
269
|
*
|
|
270
270
|
* @param {Frameio.Uuid} accountId -
|
|
271
271
|
* @param {Frameio.WorkspacesIndexRequest} request
|
|
@@ -372,7 +372,7 @@ export class Workspaces {
|
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
374
|
/**
|
|
375
|
-
* Create workspace from an account. <br
|
|
375
|
+
* Create workspace from an account. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
376
376
|
*
|
|
377
377
|
* @param {Frameio.Uuid} accountId -
|
|
378
378
|
* @param {Frameio.WorkspaceParams} request
|
|
@@ -455,11 +455,7 @@ export class Workspaces {
|
|
|
455
455
|
}
|
|
456
456
|
_getAuthorizationHeader() {
|
|
457
457
|
return __awaiter(this, void 0, void 0, function* () {
|
|
458
|
-
|
|
459
|
-
if (bearer != null) {
|
|
460
|
-
return `Bearer ${bearer}`;
|
|
461
|
-
}
|
|
462
|
-
return undefined;
|
|
458
|
+
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
463
459
|
});
|
|
464
460
|
}
|
|
465
461
|
}
|
|
@@ -14,8 +14,17 @@ export interface AssetCommonWithIncludes {
|
|
|
14
14
|
project?: Frameio.ProjectWithIncludes;
|
|
15
15
|
/** Project ID */
|
|
16
16
|
project_id: string;
|
|
17
|
+
type: AssetCommonWithIncludes.Type;
|
|
17
18
|
/** Update timestamp */
|
|
18
19
|
updated_at: string;
|
|
19
20
|
/** URL to view the asset in the Frame.io web application */
|
|
20
21
|
view_url: string;
|
|
21
22
|
}
|
|
23
|
+
export declare namespace AssetCommonWithIncludes {
|
|
24
|
+
const Type: {
|
|
25
|
+
readonly File: "file";
|
|
26
|
+
readonly Folder: "folder";
|
|
27
|
+
readonly VersionStack: "version_stack";
|
|
28
|
+
};
|
|
29
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
30
|
+
}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
2
|
+
export var AssetCommonWithIncludes;
|
|
3
|
+
(function (AssetCommonWithIncludes) {
|
|
4
|
+
AssetCommonWithIncludes.Type = {
|
|
5
|
+
File: "file",
|
|
6
|
+
Folder: "folder",
|
|
7
|
+
VersionStack: "version_stack",
|
|
8
|
+
};
|
|
9
|
+
})(AssetCommonWithIncludes || (AssetCommonWithIncludes = {}));
|
|
@@ -4,6 +4,7 @@ export interface AssetShareParams {
|
|
|
4
4
|
asset_ids?: string[];
|
|
5
5
|
/** Share description - NOTE: Requires feature custom_branded_shares */
|
|
6
6
|
description?: string;
|
|
7
|
+
downloading_enabled?: boolean;
|
|
7
8
|
/** Expiration timestamp */
|
|
8
9
|
expiration?: string;
|
|
9
10
|
/** Share Name (must include at least one non-whitespace character and no line breaks) */
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import * as Frameio from "../index.mjs";
|
|
1
2
|
export interface Comment {
|
|
2
3
|
annotation?: string;
|
|
4
|
+
/** Completion timestamp */
|
|
5
|
+
completed_at?: string;
|
|
6
|
+
/** ID of user who marked the comment as completed */
|
|
7
|
+
completer_id?: string;
|
|
3
8
|
/** Creation timestamp */
|
|
4
9
|
created_at: string;
|
|
5
10
|
/** File ID */
|
|
@@ -12,8 +17,7 @@ export interface Comment {
|
|
|
12
17
|
text: string;
|
|
13
18
|
/** Text edited timestamp */
|
|
14
19
|
text_edited_at?: string;
|
|
15
|
-
|
|
16
|
-
timestamp?: number;
|
|
20
|
+
timestamp: Frameio.TimeStamp;
|
|
17
21
|
/** Update timestamp */
|
|
18
22
|
updated_at: string;
|
|
19
23
|
}
|
|
@@ -4,6 +4,8 @@ export interface DateDefinition {
|
|
|
4
4
|
/** Field definition creator ID */
|
|
5
5
|
creator_id: string;
|
|
6
6
|
field_configuration: DateDefinition.FieldConfiguration;
|
|
7
|
+
/** Field type */
|
|
8
|
+
field_type: DateDefinition.FieldType;
|
|
7
9
|
/** Field definition ID */
|
|
8
10
|
id: string;
|
|
9
11
|
/** Field definition mutability. System fields cannot be updated. */
|
|
@@ -36,4 +38,18 @@ export declare namespace DateDefinition {
|
|
|
36
38
|
};
|
|
37
39
|
type TimeFormat = (typeof TimeFormat)[keyof typeof TimeFormat];
|
|
38
40
|
}
|
|
41
|
+
/** Field type */
|
|
42
|
+
const FieldType: {
|
|
43
|
+
readonly Text: "text";
|
|
44
|
+
readonly LongText: "long_text";
|
|
45
|
+
readonly Select: "select";
|
|
46
|
+
readonly SelectMulti: "select_multi";
|
|
47
|
+
readonly Rating: "rating";
|
|
48
|
+
readonly Number: "number";
|
|
49
|
+
readonly Toggle: "toggle";
|
|
50
|
+
readonly UserSingle: "user_single";
|
|
51
|
+
readonly UserMulti: "user_multi";
|
|
52
|
+
readonly Date: "date";
|
|
53
|
+
};
|
|
54
|
+
type FieldType = (typeof FieldType)[keyof typeof FieldType];
|
|
39
55
|
}
|
|
@@ -15,4 +15,17 @@ export var DateDefinition;
|
|
|
15
15
|
TwentyFourHour: "twenty_four_hour",
|
|
16
16
|
};
|
|
17
17
|
})(FieldConfiguration = DateDefinition.FieldConfiguration || (DateDefinition.FieldConfiguration = {}));
|
|
18
|
+
/** Field type */
|
|
19
|
+
DateDefinition.FieldType = {
|
|
20
|
+
Text: "text",
|
|
21
|
+
LongText: "long_text",
|
|
22
|
+
Select: "select",
|
|
23
|
+
SelectMulti: "select_multi",
|
|
24
|
+
Rating: "rating",
|
|
25
|
+
Number: "number",
|
|
26
|
+
Toggle: "toggle",
|
|
27
|
+
UserSingle: "user_single",
|
|
28
|
+
UserMulti: "user_multi",
|
|
29
|
+
Date: "date",
|
|
30
|
+
};
|
|
18
31
|
})(DateDefinition || (DateDefinition = {}));
|
|
@@ -8,7 +8,6 @@ export declare const FileWithMediaLinksInclude: {
|
|
|
8
8
|
readonly MediaLinksEfficient: "media_links.efficient";
|
|
9
9
|
readonly Creator: "creator";
|
|
10
10
|
readonly Project: "project";
|
|
11
|
-
readonly ProjectOwner: "project.owner";
|
|
12
11
|
readonly Metadata: "metadata";
|
|
13
12
|
};
|
|
14
13
|
export type FileWithMediaLinksInclude = (typeof FileWithMediaLinksInclude)[keyof typeof FileWithMediaLinksInclude];
|
|
@@ -16,8 +16,17 @@ export interface FolderWithIncludes {
|
|
|
16
16
|
project?: Frameio.ProjectWithIncludes;
|
|
17
17
|
/** Project ID */
|
|
18
18
|
project_id: string;
|
|
19
|
+
type: FolderWithIncludes.Type;
|
|
19
20
|
/** Update timestamp */
|
|
20
21
|
updated_at: string;
|
|
21
22
|
/** URL to view the asset in the Frame.io web application */
|
|
22
23
|
view_url: string;
|
|
23
24
|
}
|
|
25
|
+
export declare namespace FolderWithIncludes {
|
|
26
|
+
const Type: {
|
|
27
|
+
readonly File: "file";
|
|
28
|
+
readonly Folder: "folder";
|
|
29
|
+
readonly VersionStack: "version_stack";
|
|
30
|
+
};
|
|
31
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
32
|
+
}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
2
|
+
export var FolderWithIncludes;
|
|
3
|
+
(function (FolderWithIncludes) {
|
|
4
|
+
FolderWithIncludes.Type = {
|
|
5
|
+
File: "file",
|
|
6
|
+
Folder: "folder",
|
|
7
|
+
VersionStack: "version_stack",
|
|
8
|
+
};
|
|
9
|
+
})(FolderWithIncludes || (FolderWithIncludes = {}));
|
|
@@ -4,6 +4,8 @@ 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;
|
|
7
9
|
/** Field definition ID */
|
|
8
10
|
id: string;
|
|
9
11
|
/** Field definition mutability. System fields cannot be updated. */
|
|
@@ -16,4 +18,18 @@ export interface LongTextDefinition {
|
|
|
16
18
|
export declare namespace LongTextDefinition {
|
|
17
19
|
interface FieldConfiguration {
|
|
18
20
|
}
|
|
21
|
+
/** Field type */
|
|
22
|
+
const FieldType: {
|
|
23
|
+
readonly Text: "text";
|
|
24
|
+
readonly LongText: "long_text";
|
|
25
|
+
readonly Select: "select";
|
|
26
|
+
readonly SelectMulti: "select_multi";
|
|
27
|
+
readonly Rating: "rating";
|
|
28
|
+
readonly Number: "number";
|
|
29
|
+
readonly Toggle: "toggle";
|
|
30
|
+
readonly UserSingle: "user_single";
|
|
31
|
+
readonly UserMulti: "user_multi";
|
|
32
|
+
readonly Date: "date";
|
|
33
|
+
};
|
|
34
|
+
type FieldType = (typeof FieldType)[keyof typeof FieldType];
|
|
19
35
|
}
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
2
|
+
export var LongTextDefinition;
|
|
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 = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Frameio from "../index.mjs";
|
|
2
2
|
export interface MultiUserValue extends Frameio.FieldValueCommon {
|
|
3
|
-
/** Populated with
|
|
3
|
+
/** Populated with custom member options only if `member_options_type` is set to 'custom'. */
|
|
4
4
|
custom_members?: Frameio.UserValue[];
|
|
5
5
|
member_options_type?: MultiUserValue.MemberOptionsType;
|
|
6
6
|
value?: Frameio.UserValue[];
|
|
@@ -8,8 +8,12 @@ export interface Project {
|
|
|
8
8
|
id: string;
|
|
9
9
|
/** Project Name */
|
|
10
10
|
name: string;
|
|
11
|
+
/** Whether the project is restricted or not */
|
|
12
|
+
restricted?: boolean;
|
|
11
13
|
/** Root Folder ID */
|
|
12
14
|
root_folder_id: string;
|
|
15
|
+
/** Project Status */
|
|
16
|
+
status: Project.Status;
|
|
13
17
|
/** Storage Usage */
|
|
14
18
|
storage: number;
|
|
15
19
|
/** Updated Timestamp */
|
|
@@ -19,3 +23,11 @@ export interface Project {
|
|
|
19
23
|
/** Workspace ID */
|
|
20
24
|
workspace_id: string;
|
|
21
25
|
}
|
|
26
|
+
export declare namespace Project {
|
|
27
|
+
/** Project Status */
|
|
28
|
+
const Status: {
|
|
29
|
+
readonly Active: "active";
|
|
30
|
+
readonly Inactive: "inactive";
|
|
31
|
+
};
|
|
32
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
33
|
+
}
|
|
@@ -4,6 +4,8 @@ export interface SelectMultiDefinition {
|
|
|
4
4
|
/** Field definition creator ID */
|
|
5
5
|
creator_id: string;
|
|
6
6
|
field_configuration: SelectMultiDefinition.FieldConfiguration;
|
|
7
|
+
/** Field type */
|
|
8
|
+
field_type: SelectMultiDefinition.FieldType;
|
|
7
9
|
/** Field definition ID */
|
|
8
10
|
id: string;
|
|
9
11
|
/** Field definition mutability. System fields cannot be updated. */
|
|
@@ -31,4 +33,18 @@ export declare namespace SelectMultiDefinition {
|
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
}
|
|
36
|
+
/** Field type */
|
|
37
|
+
const FieldType: {
|
|
38
|
+
readonly Text: "text";
|
|
39
|
+
readonly LongText: "long_text";
|
|
40
|
+
readonly Select: "select";
|
|
41
|
+
readonly SelectMulti: "select_multi";
|
|
42
|
+
readonly Rating: "rating";
|
|
43
|
+
readonly Number: "number";
|
|
44
|
+
readonly Toggle: "toggle";
|
|
45
|
+
readonly UserSingle: "user_single";
|
|
46
|
+
readonly UserMulti: "user_multi";
|
|
47
|
+
readonly Date: "date";
|
|
48
|
+
};
|
|
49
|
+
type FieldType = (typeof FieldType)[keyof typeof FieldType];
|
|
34
50
|
}
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
2
|
+
export var SelectMultiDefinition;
|
|
3
|
+
(function (SelectMultiDefinition) {
|
|
4
|
+
/** Field type */
|
|
5
|
+
SelectMultiDefinition.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
|
+
})(SelectMultiDefinition || (SelectMultiDefinition = {}));
|