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
|
@@ -14,11 +14,11 @@ export declare class FilesClient {
|
|
|
14
14
|
protected readonly _options: NormalizedClientOptionsWithAuth<FilesClient.Options>;
|
|
15
15
|
constructor(options: FilesClient.Options);
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Create new file under parent folder through remote upload. <br/>Rate Limits: 5 calls per 1 second(s) per account_user
|
|
18
18
|
*
|
|
19
19
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
20
20
|
* @param {Frameio.FrameOrAdobeId} folder_id
|
|
21
|
-
* @param {Frameio.
|
|
21
|
+
* @param {Frameio.FileCreateRemoteUploadParams} request
|
|
22
22
|
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
23
|
*
|
|
24
24
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -30,24 +30,21 @@ export declare class FilesClient {
|
|
|
30
30
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
|
-
* await client.files.
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* include_total_count: false
|
|
33
|
+
* await client.files.createRemoteUpload("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
34
|
+
* data: {
|
|
35
|
+
* name: "asset.png",
|
|
36
|
+
* source_url: "https://upload.wikimedia.org/wikipedia/commons/e/e1/White_Pixel_1x1.png"
|
|
37
|
+
* }
|
|
39
38
|
* })
|
|
40
39
|
*/
|
|
41
|
-
|
|
42
|
-
private
|
|
40
|
+
createRemoteUpload(account_id: Frameio.FrameOrAdobeId, folder_id: Frameio.FrameOrAdobeId, request: Frameio.FileCreateRemoteUploadParams, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<Frameio.FileRemoteUploadResponse>;
|
|
41
|
+
private __createRemoteUpload;
|
|
43
42
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* Create new file under parent folder. `Create file (local upload)` and `Create file (remote upload)` have replaced this endpoint. <br/>Rate Limits: 5 calls per 1 second(s) per account_user
|
|
43
|
+
* Create new file under parent folder through local upload. <br/>Rate Limits: 5 calls per 1 second(s) per account_user
|
|
47
44
|
*
|
|
48
45
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
49
46
|
* @param {Frameio.FrameOrAdobeId} folder_id
|
|
50
|
-
* @param {Frameio.
|
|
47
|
+
* @param {Frameio.FileCreateLocalUploadParams} request
|
|
51
48
|
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
52
49
|
*
|
|
53
50
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -59,34 +56,20 @@ export declare class FilesClient {
|
|
|
59
56
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
60
57
|
*
|
|
61
58
|
* @example
|
|
62
|
-
* await client.files.
|
|
59
|
+
* await client.files.createLocalUpload("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
63
60
|
* data: {
|
|
64
61
|
* file_size: 1137444,
|
|
65
|
-
* media_type: "image/png",
|
|
66
62
|
* name: "asset.png"
|
|
67
63
|
* }
|
|
68
64
|
* })
|
|
69
65
|
*/
|
|
70
|
-
|
|
71
|
-
private
|
|
66
|
+
createLocalUpload(account_id: Frameio.FrameOrAdobeId, folder_id: Frameio.FrameOrAdobeId, request: Frameio.FileCreateLocalUploadParams, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<Frameio.FileWithUploadUrlsResponse>;
|
|
67
|
+
private __createLocalUpload;
|
|
72
68
|
/**
|
|
73
|
-
* Show file details.
|
|
74
|
-
* <br/>
|
|
75
|
-
* Use the `include` query parameter to selectively include additional properties in the response.
|
|
76
|
-
* <br/>
|
|
77
|
-
* Note: if you include `media_links.original` and the user does not have permission to download the file
|
|
78
|
-
* then this endpoint will respond with a `403 Forbidden` error. If the content is inaccessible because
|
|
79
|
-
* watermarking is required for this user and isn't supported by the requested media_links, then the request will
|
|
80
|
-
* succeed but the unsupported media links will be set to null.
|
|
81
|
-
* Similarly, if a requested transcode link does not exist for a particular file (e.g. including
|
|
82
|
-
* `media_links.video_h264_180` on a static image file) or transoding process hasn't completed
|
|
83
|
-
* (i.e. the file's `status` is "uploaded" rather than "transcoded"), then the link will also be set to null in
|
|
84
|
-
* the response payload. In short, the client must handle null media links gracefully.
|
|
85
|
-
* <br/>Rate Limits: 10 calls per 1 second(s) per account_user
|
|
69
|
+
* Show file upload status details. <br/>Rate Limits: 5 calls per 1 second(s) per account_user
|
|
86
70
|
*
|
|
87
71
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
88
72
|
* @param {Frameio.FrameOrAdobeId} file_id
|
|
89
|
-
* @param {Frameio.FilesShowRequest} request
|
|
90
73
|
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
74
|
*
|
|
92
75
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -98,17 +81,16 @@ export declare class FilesClient {
|
|
|
98
81
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
99
82
|
*
|
|
100
83
|
* @example
|
|
101
|
-
* await client.files.
|
|
102
|
-
* include: "media_links.original"
|
|
103
|
-
* })
|
|
84
|
+
* await client.files.showFileUploadStatus("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b")
|
|
104
85
|
*/
|
|
105
|
-
|
|
106
|
-
private
|
|
86
|
+
showFileUploadStatus(account_id: Frameio.FrameOrAdobeId, file_id: Frameio.FrameOrAdobeId, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<Frameio.FileUploadStatusResponse>;
|
|
87
|
+
private __showFileUploadStatus;
|
|
107
88
|
/**
|
|
108
|
-
*
|
|
89
|
+
* Move file to a folder or version_stack. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
109
90
|
*
|
|
110
91
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
111
92
|
* @param {Frameio.FrameOrAdobeId} file_id
|
|
93
|
+
* @param {Frameio.FileMoveParams} request
|
|
112
94
|
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
113
95
|
*
|
|
114
96
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -120,16 +102,20 @@ export declare class FilesClient {
|
|
|
120
102
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
121
103
|
*
|
|
122
104
|
* @example
|
|
123
|
-
* await client.files.
|
|
105
|
+
* await client.files.move("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
106
|
+
* data: {
|
|
107
|
+
* parent_id: "2e426fe0-f965-4594-8b2b-b4dff1dc00ec"
|
|
108
|
+
* }
|
|
109
|
+
* })
|
|
124
110
|
*/
|
|
125
|
-
|
|
126
|
-
private
|
|
111
|
+
move(account_id: Frameio.FrameOrAdobeId, file_id: Frameio.FrameOrAdobeId, request: Frameio.FileMoveParams, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<Frameio.FileResponse>;
|
|
112
|
+
private __move;
|
|
127
113
|
/**
|
|
128
|
-
*
|
|
114
|
+
* Import a file from a storage location configured on the account. <br/>Rate Limits: 5 calls per 1 second(s) per account_user
|
|
129
115
|
*
|
|
130
116
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
131
|
-
* @param {Frameio.FrameOrAdobeId}
|
|
132
|
-
* @param {Frameio.
|
|
117
|
+
* @param {Frameio.FrameOrAdobeId} folder_id
|
|
118
|
+
* @param {Frameio.FileImportParams} request
|
|
133
119
|
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
134
120
|
*
|
|
135
121
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -141,20 +127,34 @@ export declare class FilesClient {
|
|
|
141
127
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
142
128
|
*
|
|
143
129
|
* @example
|
|
144
|
-
* await client.files.
|
|
130
|
+
* await client.files.importFile("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
145
131
|
* data: {
|
|
146
|
-
*
|
|
132
|
+
* key: "uploads/08091b0f-a541-42f5-a059-5e8c4afecc12/original.png",
|
|
133
|
+
* name: "asset.png",
|
|
134
|
+
* storage_location: "123e4567-e89b-12d3-a456-426614174000"
|
|
147
135
|
* }
|
|
148
136
|
* })
|
|
149
137
|
*/
|
|
150
|
-
|
|
151
|
-
private
|
|
138
|
+
importFile(account_id: Frameio.FrameOrAdobeId, folder_id: Frameio.FrameOrAdobeId, request: Frameio.FileImportParams, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<Frameio.FileResponse>;
|
|
139
|
+
private __importFile;
|
|
152
140
|
/**
|
|
153
|
-
*
|
|
141
|
+
* Show file details.
|
|
142
|
+
* <br/>
|
|
143
|
+
* Use the `include` query parameter to selectively include additional properties in the response.
|
|
144
|
+
* <br/>
|
|
145
|
+
* Note: if you include `media_links.original` and the user does not have permission to download the file
|
|
146
|
+
* then this endpoint will respond with a `403 Forbidden` error. If the content is inaccessible because
|
|
147
|
+
* watermarking is required for this user and isn't supported by the requested media_links, then the request will
|
|
148
|
+
* succeed but the unsupported media links will be set to null.
|
|
149
|
+
* Similarly, if a requested transcode link does not exist for a particular file (e.g. including
|
|
150
|
+
* `media_links.video_h264_180` on a static image file) or transoding process hasn't completed
|
|
151
|
+
* (i.e. the file's `status` is "uploaded" rather than "transcoded"), then the link will also be set to null in
|
|
152
|
+
* the response payload. In short, the client must handle null media links gracefully.
|
|
153
|
+
* <br/>Rate Limits: 10 calls per 1 second(s) per account_user
|
|
154
154
|
*
|
|
155
155
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
156
156
|
* @param {Frameio.FrameOrAdobeId} file_id
|
|
157
|
-
* @param {Frameio.
|
|
157
|
+
* @param {Frameio.FilesShowRequest} request
|
|
158
158
|
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
159
159
|
*
|
|
160
160
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -166,22 +166,17 @@ export declare class FilesClient {
|
|
|
166
166
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
167
167
|
*
|
|
168
168
|
* @example
|
|
169
|
-
* await client.files.
|
|
170
|
-
*
|
|
171
|
-
* copy_comments: "none",
|
|
172
|
-
* data: {
|
|
173
|
-
* parent_id: "2e426fe0-f965-4594-8b2b-b4dff1dc00ec"
|
|
174
|
-
* }
|
|
169
|
+
* await client.files.show("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
170
|
+
* include: "media_links.original"
|
|
175
171
|
* })
|
|
176
172
|
*/
|
|
177
|
-
|
|
178
|
-
private
|
|
173
|
+
show(account_id: Frameio.FrameOrAdobeId, file_id: Frameio.FrameOrAdobeId, request?: Frameio.FilesShowRequest, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<Frameio.FileWithIncludesResponse>;
|
|
174
|
+
private __show;
|
|
179
175
|
/**
|
|
180
|
-
*
|
|
176
|
+
* Delete file by ID. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
181
177
|
*
|
|
182
178
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
183
|
-
* @param {Frameio.FrameOrAdobeId}
|
|
184
|
-
* @param {Frameio.FileCreateRemoteUploadParams} request
|
|
179
|
+
* @param {Frameio.FrameOrAdobeId} file_id
|
|
185
180
|
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
186
181
|
*
|
|
187
182
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -193,21 +188,16 @@ export declare class FilesClient {
|
|
|
193
188
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
194
189
|
*
|
|
195
190
|
* @example
|
|
196
|
-
* await client.files.
|
|
197
|
-
* data: {
|
|
198
|
-
* name: "asset.png",
|
|
199
|
-
* source_url: "https://upload.wikimedia.org/wikipedia/commons/e/e1/White_Pixel_1x1.png"
|
|
200
|
-
* }
|
|
201
|
-
* })
|
|
191
|
+
* await client.files.delete("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b")
|
|
202
192
|
*/
|
|
203
|
-
|
|
204
|
-
private
|
|
193
|
+
delete(account_id: Frameio.FrameOrAdobeId, file_id: Frameio.FrameOrAdobeId, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
194
|
+
private __delete;
|
|
205
195
|
/**
|
|
206
|
-
*
|
|
196
|
+
* Update file details. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
207
197
|
*
|
|
208
198
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
209
199
|
* @param {Frameio.FrameOrAdobeId} file_id
|
|
210
|
-
* @param {Frameio.
|
|
200
|
+
* @param {Frameio.FileUpdateParams} request
|
|
211
201
|
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
212
202
|
*
|
|
213
203
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -219,20 +209,20 @@ export declare class FilesClient {
|
|
|
219
209
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
220
210
|
*
|
|
221
211
|
* @example
|
|
222
|
-
* await client.files.
|
|
212
|
+
* await client.files.update("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
223
213
|
* data: {
|
|
224
|
-
*
|
|
214
|
+
* name: "asset.png"
|
|
225
215
|
* }
|
|
226
216
|
* })
|
|
227
217
|
*/
|
|
228
|
-
|
|
229
|
-
private
|
|
218
|
+
update(account_id: Frameio.FrameOrAdobeId, file_id: Frameio.FrameOrAdobeId, request: Frameio.FileUpdateParams, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<Frameio.FileResponse>;
|
|
219
|
+
private __update;
|
|
230
220
|
/**
|
|
231
|
-
*
|
|
221
|
+
* List files in a given folder. <br/>Rate Limits: 5 calls per 1 second(s) per account_user
|
|
232
222
|
*
|
|
233
223
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
234
224
|
* @param {Frameio.FrameOrAdobeId} folder_id
|
|
235
|
-
* @param {Frameio.
|
|
225
|
+
* @param {Frameio.FilesListRequest} request
|
|
236
226
|
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
237
227
|
*
|
|
238
228
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -244,21 +234,24 @@ export declare class FilesClient {
|
|
|
244
234
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
245
235
|
*
|
|
246
236
|
* @example
|
|
247
|
-
* await client.files.
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
237
|
+
* await client.files.list("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
238
|
+
* include: "media_links.original",
|
|
239
|
+
* sort: "name_asc",
|
|
240
|
+
* after: "<opaque_cursor>",
|
|
241
|
+
* page_size: 10,
|
|
242
|
+
* include_total_count: false
|
|
252
243
|
* })
|
|
253
244
|
*/
|
|
254
|
-
|
|
255
|
-
private
|
|
245
|
+
list(account_id: Frameio.FrameOrAdobeId, folder_id: Frameio.FrameOrAdobeId, request?: Frameio.FilesListRequest, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<Frameio.FileAssetsWithIncludesResponse>;
|
|
246
|
+
private __list;
|
|
256
247
|
/**
|
|
257
|
-
*
|
|
248
|
+
* @deprecated
|
|
249
|
+
*
|
|
250
|
+
* Create new file under parent folder. `Create file (local upload)` and `Create file (remote upload)` have replaced this endpoint. <br/>Rate Limits: 5 calls per 1 second(s) per account_user
|
|
258
251
|
*
|
|
259
252
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
260
253
|
* @param {Frameio.FrameOrAdobeId} folder_id
|
|
261
|
-
* @param {Frameio.
|
|
254
|
+
* @param {Frameio.FileCreateParams} request
|
|
262
255
|
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
263
256
|
*
|
|
264
257
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -270,21 +263,22 @@ export declare class FilesClient {
|
|
|
270
263
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
271
264
|
*
|
|
272
265
|
* @example
|
|
273
|
-
* await client.files.
|
|
266
|
+
* await client.files.create("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
274
267
|
* data: {
|
|
275
|
-
*
|
|
276
|
-
*
|
|
277
|
-
*
|
|
268
|
+
* file_size: 1137444,
|
|
269
|
+
* media_type: "image/png",
|
|
270
|
+
* name: "asset.png"
|
|
278
271
|
* }
|
|
279
272
|
* })
|
|
280
273
|
*/
|
|
281
|
-
|
|
282
|
-
private
|
|
274
|
+
create(account_id: Frameio.FrameOrAdobeId, folder_id: Frameio.FrameOrAdobeId, request: Frameio.FileCreateParams, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<Frameio.FileWithUploadUrlsResponse>;
|
|
275
|
+
private __create;
|
|
283
276
|
/**
|
|
284
|
-
*
|
|
277
|
+
* Copy file. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
285
278
|
*
|
|
286
279
|
* @param {Frameio.FrameOrAdobeId} account_id
|
|
287
280
|
* @param {Frameio.FrameOrAdobeId} file_id
|
|
281
|
+
* @param {Frameio.FileCopyParams} request
|
|
288
282
|
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
289
283
|
*
|
|
290
284
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -296,8 +290,14 @@ export declare class FilesClient {
|
|
|
296
290
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
297
291
|
*
|
|
298
292
|
* @example
|
|
299
|
-
* await client.files.
|
|
293
|
+
* await client.files.copy("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
294
|
+
* copy_metadata: true,
|
|
295
|
+
* copy_comments: "none",
|
|
296
|
+
* data: {
|
|
297
|
+
* parent_id: "2e426fe0-f965-4594-8b2b-b4dff1dc00ec"
|
|
298
|
+
* }
|
|
299
|
+
* })
|
|
300
300
|
*/
|
|
301
|
-
|
|
302
|
-
private
|
|
301
|
+
copy(account_id: Frameio.FrameOrAdobeId, file_id: Frameio.FrameOrAdobeId, request?: Frameio.FileCopyParams, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<Frameio.FileCopyResponse>;
|
|
302
|
+
private __copy;
|
|
303
303
|
}
|