frameio 3.0.0 → 3.2.0
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 +2 -2
- package/dist/cjs/Client.js +4 -4
- package/dist/cjs/api/resources/comments/client/Client.d.ts +92 -2
- package/dist/cjs/api/resources/comments/client/Client.js +189 -2
- package/dist/cjs/api/resources/comments/client/requests/CommentsIndexRequest.d.ts +3 -0
- package/dist/cjs/api/resources/comments/client/requests/CreateAttachmentParams.d.ts +14 -0
- package/dist/cjs/api/resources/comments/client/requests/CreateAttachmentParams.js +3 -0
- package/dist/cjs/api/resources/comments/client/requests/CreateCommentParams.d.ts +37 -1
- package/dist/cjs/api/resources/comments/client/requests/UpdateCommentParams.d.ts +23 -1
- package/dist/cjs/api/resources/comments/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/comments/types/CommentsIndexRequestSort.d.ts +10 -0
- package/dist/cjs/api/resources/comments/types/CommentsIndexRequestSort.js +13 -0
- package/dist/cjs/api/resources/comments/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/comments/types/index.js +1 -0
- package/dist/cjs/api/resources/versionStacks/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/versionStacks/client/Client.js +1 -1
- package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.ts +1 -1
- package/dist/cjs/api/types/Anchor.d.ts +6 -0
- package/dist/cjs/api/types/Anchor.js +3 -0
- package/dist/cjs/api/types/AttachmentInput.d.ts +11 -0
- package/dist/cjs/api/types/AttachmentInput.js +3 -0
- package/dist/cjs/api/types/AuditLogwithIncludes.d.ts +1 -1
- package/dist/cjs/api/types/Comment.d.ts +12 -0
- package/dist/cjs/api/types/CommentAttachment.d.ts +14 -0
- package/dist/cjs/api/types/CommentAttachment.js +3 -0
- package/dist/cjs/api/types/CommentAttachmentResponse.d.ts +4 -0
- package/dist/cjs/api/types/CommentAttachmentResponse.js +3 -0
- package/dist/cjs/api/types/CommentSort.d.ts +10 -0
- package/dist/cjs/api/types/CommentSort.js +13 -0
- package/dist/cjs/api/types/Link.d.ts +10 -0
- package/dist/cjs/api/types/Link.js +3 -0
- package/dist/cjs/api/types/LinkParams.d.ts +8 -0
- package/dist/cjs/api/types/LinkParams.js +3 -0
- package/dist/cjs/api/types/Mention.d.ts +10 -0
- package/dist/cjs/api/types/Mention.js +3 -0
- package/dist/cjs/api/types/TextReviewAnnotation.d.ts +21 -0
- package/dist/cjs/api/types/TextReviewAnnotation.js +14 -0
- package/dist/cjs/api/types/TextReviewAnnotationBounds.d.ts +10 -0
- package/dist/cjs/api/types/TextReviewAnnotationBounds.js +3 -0
- package/dist/cjs/api/types/TextReviewAnnotationUpdate.d.ts +24 -0
- package/dist/cjs/api/types/TextReviewAnnotationUpdate.js +14 -0
- package/dist/cjs/api/types/index.d.ts +11 -0
- package/dist/cjs/api/types/index.js +11 -0
- 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 +2 -2
- package/dist/esm/Client.mjs +4 -4
- package/dist/esm/api/resources/comments/client/Client.d.mts +92 -2
- package/dist/esm/api/resources/comments/client/Client.mjs +189 -2
- package/dist/esm/api/resources/comments/client/requests/CommentsIndexRequest.d.mts +3 -0
- package/dist/esm/api/resources/comments/client/requests/CreateAttachmentParams.d.mts +14 -0
- package/dist/esm/api/resources/comments/client/requests/CreateAttachmentParams.mjs +2 -0
- package/dist/esm/api/resources/comments/client/requests/CreateCommentParams.d.mts +37 -1
- package/dist/esm/api/resources/comments/client/requests/UpdateCommentParams.d.mts +23 -1
- package/dist/esm/api/resources/comments/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/comments/types/CommentsIndexRequestSort.d.mts +10 -0
- package/dist/esm/api/resources/comments/types/CommentsIndexRequestSort.mjs +10 -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/versionStacks/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/versionStacks/client/Client.mjs +1 -1
- package/dist/esm/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.mts +1 -1
- package/dist/esm/api/types/Anchor.d.mts +6 -0
- package/dist/esm/api/types/Anchor.mjs +2 -0
- package/dist/esm/api/types/AttachmentInput.d.mts +11 -0
- package/dist/esm/api/types/AttachmentInput.mjs +2 -0
- package/dist/esm/api/types/AuditLogwithIncludes.d.mts +1 -1
- package/dist/esm/api/types/Comment.d.mts +12 -0
- package/dist/esm/api/types/CommentAttachment.d.mts +14 -0
- package/dist/esm/api/types/CommentAttachment.mjs +2 -0
- package/dist/esm/api/types/CommentAttachmentResponse.d.mts +4 -0
- package/dist/esm/api/types/CommentAttachmentResponse.mjs +2 -0
- package/dist/esm/api/types/CommentSort.d.mts +10 -0
- package/dist/esm/api/types/CommentSort.mjs +10 -0
- package/dist/esm/api/types/Link.d.mts +10 -0
- package/dist/esm/api/types/Link.mjs +2 -0
- package/dist/esm/api/types/LinkParams.d.mts +8 -0
- package/dist/esm/api/types/LinkParams.mjs +2 -0
- package/dist/esm/api/types/Mention.d.mts +10 -0
- package/dist/esm/api/types/Mention.mjs +2 -0
- package/dist/esm/api/types/TextReviewAnnotation.d.mts +21 -0
- package/dist/esm/api/types/TextReviewAnnotation.mjs +11 -0
- package/dist/esm/api/types/TextReviewAnnotationBounds.d.mts +10 -0
- package/dist/esm/api/types/TextReviewAnnotationBounds.mjs +2 -0
- package/dist/esm/api/types/TextReviewAnnotationUpdate.d.mts +24 -0
- package/dist/esm/api/types/TextReviewAnnotationUpdate.mjs +11 -0
- package/dist/esm/api/types/index.d.mts +11 -0
- package/dist/esm/api/types/index.mjs +11 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +12 -12
- package/reference.md +246 -39
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as Frameio from "../index.mjs";
|
|
2
|
+
export interface TextReviewAnnotation {
|
|
3
|
+
/** An array of bounds representing a multiline selection origin at the lower-left corner. */
|
|
4
|
+
bounds: Frameio.TextReviewAnnotationBounds[];
|
|
5
|
+
/** Selected text from the document. */
|
|
6
|
+
selection_text?: string | undefined;
|
|
7
|
+
/** Suggested replacement or insertion text. */
|
|
8
|
+
suggested_text?: string | undefined;
|
|
9
|
+
/** The type of text review annotation. */
|
|
10
|
+
text_review_annotation_type: TextReviewAnnotation.TextReviewAnnotationType;
|
|
11
|
+
}
|
|
12
|
+
export declare namespace TextReviewAnnotation {
|
|
13
|
+
/** The type of text review annotation. */
|
|
14
|
+
const TextReviewAnnotationType: {
|
|
15
|
+
readonly Highlight: "highlight";
|
|
16
|
+
readonly Insert: "insert";
|
|
17
|
+
readonly Remove: "remove";
|
|
18
|
+
readonly Replace: "replace";
|
|
19
|
+
};
|
|
20
|
+
type TextReviewAnnotationType = (typeof TextReviewAnnotationType)[keyof typeof TextReviewAnnotationType];
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var TextReviewAnnotation;
|
|
3
|
+
(function (TextReviewAnnotation) {
|
|
4
|
+
/** The type of text review annotation. */
|
|
5
|
+
TextReviewAnnotation.TextReviewAnnotationType = {
|
|
6
|
+
Highlight: "highlight",
|
|
7
|
+
Insert: "insert",
|
|
8
|
+
Remove: "remove",
|
|
9
|
+
Replace: "replace",
|
|
10
|
+
};
|
|
11
|
+
})(TextReviewAnnotation || (TextReviewAnnotation = {}));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as Frameio from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Payload for updating an existing text review annotation.
|
|
4
|
+
*/
|
|
5
|
+
export interface TextReviewAnnotationUpdate {
|
|
6
|
+
/** Optional bounds array. When omitted, previously stored bounds are preserved. */
|
|
7
|
+
bounds?: Frameio.TextReviewAnnotationBounds[] | undefined;
|
|
8
|
+
/** Optional selection text override. */
|
|
9
|
+
selection_text?: string | undefined;
|
|
10
|
+
/** Optional suggestion override. */
|
|
11
|
+
suggested_text?: string | undefined;
|
|
12
|
+
/** Optional annotation type override. */
|
|
13
|
+
text_review_annotation_type?: TextReviewAnnotationUpdate.TextReviewAnnotationType | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace TextReviewAnnotationUpdate {
|
|
16
|
+
/** Optional annotation type override. */
|
|
17
|
+
const TextReviewAnnotationType: {
|
|
18
|
+
readonly Highlight: "highlight";
|
|
19
|
+
readonly Insert: "insert";
|
|
20
|
+
readonly Remove: "remove";
|
|
21
|
+
readonly Replace: "replace";
|
|
22
|
+
};
|
|
23
|
+
type TextReviewAnnotationType = (typeof TextReviewAnnotationType)[keyof typeof TextReviewAnnotationType];
|
|
24
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var TextReviewAnnotationUpdate;
|
|
3
|
+
(function (TextReviewAnnotationUpdate) {
|
|
4
|
+
/** Optional annotation type override. */
|
|
5
|
+
TextReviewAnnotationUpdate.TextReviewAnnotationType = {
|
|
6
|
+
Highlight: "highlight",
|
|
7
|
+
Insert: "insert",
|
|
8
|
+
Remove: "remove",
|
|
9
|
+
Replace: "replace",
|
|
10
|
+
};
|
|
11
|
+
})(TextReviewAnnotationUpdate || (TextReviewAnnotationUpdate = {}));
|
|
@@ -3,11 +3,13 @@ export * from "./AccountsResponse.mjs";
|
|
|
3
3
|
export * from "./AccountUserRole.mjs";
|
|
4
4
|
export * from "./AccountUserRolesResponse.mjs";
|
|
5
5
|
export * from "./AddAssetResponse.mjs";
|
|
6
|
+
export * from "./Anchor.mjs";
|
|
6
7
|
export * from "./AssetCommon.mjs";
|
|
7
8
|
export * from "./AssetCommonWithIncludes.mjs";
|
|
8
9
|
export * from "./AssetInclude.mjs";
|
|
9
10
|
export * from "./AssetShareParams.mjs";
|
|
10
11
|
export * from "./AssetWithIncludes.mjs";
|
|
12
|
+
export * from "./AttachmentInput.mjs";
|
|
11
13
|
export * from "./AuditLogsInclude.mjs";
|
|
12
14
|
export * from "./AuditLogsWithIncludesResponse.mjs";
|
|
13
15
|
export * from "./AuditLogwithIncludes.mjs";
|
|
@@ -15,8 +17,11 @@ export * from "./BadRequest.mjs";
|
|
|
15
17
|
export * from "./BooleanValue.mjs";
|
|
16
18
|
export * from "./ChildrenType.mjs";
|
|
17
19
|
export * from "./Comment.mjs";
|
|
20
|
+
export * from "./CommentAttachment.mjs";
|
|
21
|
+
export * from "./CommentAttachmentResponse.mjs";
|
|
18
22
|
export * from "./CommentInclude.mjs";
|
|
19
23
|
export * from "./CommentResponse.mjs";
|
|
24
|
+
export * from "./CommentSort.mjs";
|
|
20
25
|
export * from "./CommentsWithIncludesResponse.mjs";
|
|
21
26
|
export * from "./CommentWithIncludes.mjs";
|
|
22
27
|
export * from "./CommentWithIncludesResponse.mjs";
|
|
@@ -59,12 +64,15 @@ export * from "./Include.mjs";
|
|
|
59
64
|
export * from "./IncludeTotalCount.mjs";
|
|
60
65
|
export * from "./IntegerValue.mjs";
|
|
61
66
|
export * from "./JsonErrorResponse.mjs";
|
|
67
|
+
export * from "./Link.mjs";
|
|
68
|
+
export * from "./LinkParams.mjs";
|
|
62
69
|
export * from "./Links.mjs";
|
|
63
70
|
export * from "./LongTextDefinition.mjs";
|
|
64
71
|
export * from "./LongTextDefinitionParams.mjs";
|
|
65
72
|
export * from "./LongTextDefinitionWithIncludes.mjs";
|
|
66
73
|
export * from "./MediaLinkCommon.mjs";
|
|
67
74
|
export * from "./MediaLinksCollection.mjs";
|
|
75
|
+
export * from "./Mention.mjs";
|
|
68
76
|
export * from "./MetadataField.mjs";
|
|
69
77
|
export * from "./MetadataResponse.mjs";
|
|
70
78
|
export * from "./MetadataWithDefinition.mjs";
|
|
@@ -109,6 +117,9 @@ export * from "./SingleUserValue.mjs";
|
|
|
109
117
|
export * from "./TextDefinition.mjs";
|
|
110
118
|
export * from "./TextDefinitionParams.mjs";
|
|
111
119
|
export * from "./TextDefinitionWithIncludes.mjs";
|
|
120
|
+
export * from "./TextReviewAnnotation.mjs";
|
|
121
|
+
export * from "./TextReviewAnnotationBounds.mjs";
|
|
122
|
+
export * from "./TextReviewAnnotationUpdate.mjs";
|
|
112
123
|
export * from "./TextValue.mjs";
|
|
113
124
|
export * from "./TimeStamp.mjs";
|
|
114
125
|
export * from "./ToggleDefinition.mjs";
|
|
@@ -3,11 +3,13 @@ export * from "./AccountsResponse.mjs";
|
|
|
3
3
|
export * from "./AccountUserRole.mjs";
|
|
4
4
|
export * from "./AccountUserRolesResponse.mjs";
|
|
5
5
|
export * from "./AddAssetResponse.mjs";
|
|
6
|
+
export * from "./Anchor.mjs";
|
|
6
7
|
export * from "./AssetCommon.mjs";
|
|
7
8
|
export * from "./AssetCommonWithIncludes.mjs";
|
|
8
9
|
export * from "./AssetInclude.mjs";
|
|
9
10
|
export * from "./AssetShareParams.mjs";
|
|
10
11
|
export * from "./AssetWithIncludes.mjs";
|
|
12
|
+
export * from "./AttachmentInput.mjs";
|
|
11
13
|
export * from "./AuditLogsInclude.mjs";
|
|
12
14
|
export * from "./AuditLogsWithIncludesResponse.mjs";
|
|
13
15
|
export * from "./AuditLogwithIncludes.mjs";
|
|
@@ -15,8 +17,11 @@ export * from "./BadRequest.mjs";
|
|
|
15
17
|
export * from "./BooleanValue.mjs";
|
|
16
18
|
export * from "./ChildrenType.mjs";
|
|
17
19
|
export * from "./Comment.mjs";
|
|
20
|
+
export * from "./CommentAttachment.mjs";
|
|
21
|
+
export * from "./CommentAttachmentResponse.mjs";
|
|
18
22
|
export * from "./CommentInclude.mjs";
|
|
19
23
|
export * from "./CommentResponse.mjs";
|
|
24
|
+
export * from "./CommentSort.mjs";
|
|
20
25
|
export * from "./CommentsWithIncludesResponse.mjs";
|
|
21
26
|
export * from "./CommentWithIncludes.mjs";
|
|
22
27
|
export * from "./CommentWithIncludesResponse.mjs";
|
|
@@ -59,12 +64,15 @@ export * from "./Include.mjs";
|
|
|
59
64
|
export * from "./IncludeTotalCount.mjs";
|
|
60
65
|
export * from "./IntegerValue.mjs";
|
|
61
66
|
export * from "./JsonErrorResponse.mjs";
|
|
67
|
+
export * from "./Link.mjs";
|
|
68
|
+
export * from "./LinkParams.mjs";
|
|
62
69
|
export * from "./Links.mjs";
|
|
63
70
|
export * from "./LongTextDefinition.mjs";
|
|
64
71
|
export * from "./LongTextDefinitionParams.mjs";
|
|
65
72
|
export * from "./LongTextDefinitionWithIncludes.mjs";
|
|
66
73
|
export * from "./MediaLinkCommon.mjs";
|
|
67
74
|
export * from "./MediaLinksCollection.mjs";
|
|
75
|
+
export * from "./Mention.mjs";
|
|
68
76
|
export * from "./MetadataField.mjs";
|
|
69
77
|
export * from "./MetadataResponse.mjs";
|
|
70
78
|
export * from "./MetadataWithDefinition.mjs";
|
|
@@ -109,6 +117,9 @@ export * from "./SingleUserValue.mjs";
|
|
|
109
117
|
export * from "./TextDefinition.mjs";
|
|
110
118
|
export * from "./TextDefinitionParams.mjs";
|
|
111
119
|
export * from "./TextDefinitionWithIncludes.mjs";
|
|
120
|
+
export * from "./TextReviewAnnotation.mjs";
|
|
121
|
+
export * from "./TextReviewAnnotationBounds.mjs";
|
|
122
|
+
export * from "./TextReviewAnnotationUpdate.mjs";
|
|
112
123
|
export * from "./TextValue.mjs";
|
|
113
124
|
export * from "./TimeStamp.mjs";
|
|
114
125
|
export * from "./ToggleDefinition.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.
|
|
1
|
+
export declare const SDK_VERSION = "3.2.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "3.
|
|
1
|
+
export const SDK_VERSION = "3.2.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "frameio",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -77,17 +77,6 @@
|
|
|
77
77
|
},
|
|
78
78
|
"default": "./dist/cjs/api/resources/accountPermissions/exports.js"
|
|
79
79
|
},
|
|
80
|
-
"./accounts": {
|
|
81
|
-
"import": {
|
|
82
|
-
"types": "./dist/esm/api/resources/accounts/exports.d.mts",
|
|
83
|
-
"default": "./dist/esm/api/resources/accounts/exports.mjs"
|
|
84
|
-
},
|
|
85
|
-
"require": {
|
|
86
|
-
"types": "./dist/cjs/api/resources/accounts/exports.d.ts",
|
|
87
|
-
"default": "./dist/cjs/api/resources/accounts/exports.js"
|
|
88
|
-
},
|
|
89
|
-
"default": "./dist/cjs/api/resources/accounts/exports.js"
|
|
90
|
-
},
|
|
91
80
|
"./comments": {
|
|
92
81
|
"import": {
|
|
93
82
|
"types": "./dist/esm/api/resources/comments/exports.d.mts",
|
|
@@ -99,6 +88,17 @@
|
|
|
99
88
|
},
|
|
100
89
|
"default": "./dist/cjs/api/resources/comments/exports.js"
|
|
101
90
|
},
|
|
91
|
+
"./accounts": {
|
|
92
|
+
"import": {
|
|
93
|
+
"types": "./dist/esm/api/resources/accounts/exports.d.mts",
|
|
94
|
+
"default": "./dist/esm/api/resources/accounts/exports.mjs"
|
|
95
|
+
},
|
|
96
|
+
"require": {
|
|
97
|
+
"types": "./dist/cjs/api/resources/accounts/exports.d.ts",
|
|
98
|
+
"default": "./dist/cjs/api/resources/accounts/exports.js"
|
|
99
|
+
},
|
|
100
|
+
"default": "./dist/cjs/api/resources/accounts/exports.js"
|
|
101
|
+
},
|
|
102
102
|
"./webhooks": {
|
|
103
103
|
"import": {
|
|
104
104
|
"types": "./dist/esm/api/resources/webhooks/exports.d.mts",
|
package/reference.md
CHANGED
|
@@ -1638,7 +1638,7 @@ Create a new Version Stack under the parent folder. <br/>Rate Limits: 10 calls p
|
|
|
1638
1638
|
```typescript
|
|
1639
1639
|
await client.versionStacks.create("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
1640
1640
|
data: {
|
|
1641
|
-
file_ids: ["
|
|
1641
|
+
file_ids: ["5cbe22e2-fa8e-4279-9ce7-64ec188e059a", "cf7dec74-6d90-4c8b-829c-3e5bb7baa37a"]
|
|
1642
1642
|
}
|
|
1643
1643
|
});
|
|
1644
1644
|
|
|
@@ -1869,8 +1869,8 @@ const response = page.response;
|
|
|
1869
1869
|
</dl>
|
|
1870
1870
|
</details>
|
|
1871
1871
|
|
|
1872
|
-
##
|
|
1873
|
-
<details><summary><code>client.
|
|
1872
|
+
## Comments
|
|
1873
|
+
<details><summary><code>client.comments.<a href="/src/api/resources/comments/client/Client.ts">deleteAttachment</a>(account_id, comment_id, attachment_id) -> void</code></summary>
|
|
1874
1874
|
<dl>
|
|
1875
1875
|
<dd>
|
|
1876
1876
|
|
|
@@ -1882,7 +1882,7 @@ const response = page.response;
|
|
|
1882
1882
|
<dl>
|
|
1883
1883
|
<dd>
|
|
1884
1884
|
|
|
1885
|
-
|
|
1885
|
+
Delete an attachment from a comment. <br/>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
1886
1886
|
</dd>
|
|
1887
1887
|
</dl>
|
|
1888
1888
|
</dd>
|
|
@@ -1897,27 +1897,7 @@ List accounts for the current user. <br/>Rate Limits: 100 calls per 1.00 minute(
|
|
|
1897
1897
|
<dd>
|
|
1898
1898
|
|
|
1899
1899
|
```typescript
|
|
1900
|
-
|
|
1901
|
-
after: "<opaque_cursor>",
|
|
1902
|
-
page_size: 10,
|
|
1903
|
-
include_total_count: false
|
|
1904
|
-
});
|
|
1905
|
-
for await (const item of pageableResponse) {
|
|
1906
|
-
console.log(item);
|
|
1907
|
-
}
|
|
1908
|
-
|
|
1909
|
-
// Or you can manually iterate page-by-page
|
|
1910
|
-
let page = await client.accounts.index({
|
|
1911
|
-
after: "<opaque_cursor>",
|
|
1912
|
-
page_size: 10,
|
|
1913
|
-
include_total_count: false
|
|
1914
|
-
});
|
|
1915
|
-
while (page.hasNextPage()) {
|
|
1916
|
-
page = page.getNextPage();
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
|
-
// You can also access the underlying response
|
|
1920
|
-
const response = page.response;
|
|
1900
|
+
await client.comments.deleteAttachment("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b");
|
|
1921
1901
|
|
|
1922
1902
|
```
|
|
1923
1903
|
</dd>
|
|
@@ -1933,7 +1913,7 @@ const response = page.response;
|
|
|
1933
1913
|
<dl>
|
|
1934
1914
|
<dd>
|
|
1935
1915
|
|
|
1936
|
-
**
|
|
1916
|
+
**account_id:** `Frameio.Uuid` —
|
|
1937
1917
|
|
|
1938
1918
|
</dd>
|
|
1939
1919
|
</dl>
|
|
@@ -1941,7 +1921,23 @@ const response = page.response;
|
|
|
1941
1921
|
<dl>
|
|
1942
1922
|
<dd>
|
|
1943
1923
|
|
|
1944
|
-
**
|
|
1924
|
+
**comment_id:** `Frameio.Uuid` —
|
|
1925
|
+
|
|
1926
|
+
</dd>
|
|
1927
|
+
</dl>
|
|
1928
|
+
|
|
1929
|
+
<dl>
|
|
1930
|
+
<dd>
|
|
1931
|
+
|
|
1932
|
+
**attachment_id:** `Frameio.Uuid` —
|
|
1933
|
+
|
|
1934
|
+
</dd>
|
|
1935
|
+
</dl>
|
|
1936
|
+
|
|
1937
|
+
<dl>
|
|
1938
|
+
<dd>
|
|
1939
|
+
|
|
1940
|
+
**requestOptions:** `CommentsClient.RequestOptions`
|
|
1945
1941
|
|
|
1946
1942
|
</dd>
|
|
1947
1943
|
</dl>
|
|
@@ -1953,7 +1949,7 @@ const response = page.response;
|
|
|
1953
1949
|
</dl>
|
|
1954
1950
|
</details>
|
|
1955
1951
|
|
|
1956
|
-
<details><summary><code>client.
|
|
1952
|
+
<details><summary><code>client.comments.<a href="/src/api/resources/comments/client/Client.ts">createAttachment</a>(account_id, comment_id, { ...params }) -> Frameio.CommentAttachmentResponse</code></summary>
|
|
1957
1953
|
<dl>
|
|
1958
1954
|
<dd>
|
|
1959
1955
|
|
|
@@ -1965,7 +1961,7 @@ const response = page.response;
|
|
|
1965
1961
|
<dl>
|
|
1966
1962
|
<dd>
|
|
1967
1963
|
|
|
1968
|
-
|
|
1964
|
+
Create an attachment for an existing comment. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
1969
1965
|
</dd>
|
|
1970
1966
|
</dl>
|
|
1971
1967
|
</dd>
|
|
@@ -1980,11 +1976,12 @@ List audit logs with filtering capabilities via query params. <br/>Rate Limits:
|
|
|
1980
1976
|
<dd>
|
|
1981
1977
|
|
|
1982
1978
|
```typescript
|
|
1983
|
-
await client.
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1979
|
+
await client.comments.createAttachment("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
1980
|
+
data: {
|
|
1981
|
+
file_size: 1024000,
|
|
1982
|
+
media_type: "image/png",
|
|
1983
|
+
name: "screenshot.png"
|
|
1984
|
+
}
|
|
1988
1985
|
});
|
|
1989
1986
|
|
|
1990
1987
|
```
|
|
@@ -2009,7 +2006,7 @@ await client.accounts.auditlogIndex("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
|
2009
2006
|
<dl>
|
|
2010
2007
|
<dd>
|
|
2011
2008
|
|
|
2012
|
-
**
|
|
2009
|
+
**comment_id:** `Frameio.Uuid` —
|
|
2013
2010
|
|
|
2014
2011
|
</dd>
|
|
2015
2012
|
</dl>
|
|
@@ -2017,7 +2014,15 @@ await client.accounts.auditlogIndex("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
|
2017
2014
|
<dl>
|
|
2018
2015
|
<dd>
|
|
2019
2016
|
|
|
2020
|
-
**
|
|
2017
|
+
**request:** `Frameio.CreateAttachmentParams`
|
|
2018
|
+
|
|
2019
|
+
</dd>
|
|
2020
|
+
</dl>
|
|
2021
|
+
|
|
2022
|
+
<dl>
|
|
2023
|
+
<dd>
|
|
2024
|
+
|
|
2025
|
+
**requestOptions:** `CommentsClient.RequestOptions`
|
|
2021
2026
|
|
|
2022
2027
|
</dd>
|
|
2023
2028
|
</dl>
|
|
@@ -2029,7 +2034,6 @@ await client.accounts.auditlogIndex("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
|
2029
2034
|
</dl>
|
|
2030
2035
|
</details>
|
|
2031
2036
|
|
|
2032
|
-
## Comments
|
|
2033
2037
|
<details><summary><code>client.comments.<a href="/src/api/resources/comments/client/Client.ts">show</a>(account_id, comment_id, { ...params }) -> Frameio.CommentWithIncludesResponse</code></summary>
|
|
2034
2038
|
<dl>
|
|
2035
2039
|
<dd>
|
|
@@ -2195,7 +2199,7 @@ await client.comments.delete("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c
|
|
|
2195
2199
|
<dl>
|
|
2196
2200
|
<dd>
|
|
2197
2201
|
|
|
2198
|
-
Update comment on given asset
|
|
2202
|
+
Update comment on given asset.<br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
2199
2203
|
</dd>
|
|
2200
2204
|
</dl>
|
|
2201
2205
|
</dd>
|
|
@@ -2213,10 +2217,25 @@ Update comment on given asset. <br/>Rate Limits: 10 calls per 1.00 minute(s) per
|
|
|
2213
2217
|
await client.comments.update("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
2214
2218
|
timestamp_as_timecode: true,
|
|
2215
2219
|
data: {
|
|
2220
|
+
anchor: {
|
|
2221
|
+
x: 0.5,
|
|
2222
|
+
y: 0.5
|
|
2223
|
+
},
|
|
2216
2224
|
annotation: "[{\"tool\":\"rect\",\"color\":\"#F22237\",\"size\":8,\"x\":0.277726001863933,\"y\":0.12909555568499534,\"w\":0.3153168321877913,\"h\":0.5308131407269339,\"ix\":0.277726001863933,\"iy\":0.12909555568499534,\"radius\":8}]",
|
|
2217
2225
|
completed: false,
|
|
2226
|
+
duration: 10,
|
|
2227
|
+
links: [{
|
|
2228
|
+
end_index: 13,
|
|
2229
|
+
start_index: 5,
|
|
2230
|
+
url: "https://www.example.com"
|
|
2231
|
+
}],
|
|
2218
2232
|
page: 4,
|
|
2219
|
-
text: "This is great!"
|
|
2233
|
+
text: "This is great!",
|
|
2234
|
+
text_review_annotation: {
|
|
2235
|
+
selection_text: "existing copy",
|
|
2236
|
+
suggested_text: "updated copy"
|
|
2237
|
+
},
|
|
2238
|
+
timestamp: 100
|
|
2220
2239
|
}
|
|
2221
2240
|
});
|
|
2222
2241
|
|
|
@@ -2300,6 +2319,7 @@ List comments on a given asset. <br/>Rate Limits: 100 calls per 1.00 minute(s) p
|
|
|
2300
2319
|
const pageableResponse = await client.comments.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
2301
2320
|
timestamp_as_timecode: true,
|
|
2302
2321
|
include: "owner",
|
|
2322
|
+
sort: "owner_asc",
|
|
2303
2323
|
after: "<opaque_cursor>",
|
|
2304
2324
|
page_size: 10,
|
|
2305
2325
|
include_total_count: false
|
|
@@ -2312,6 +2332,7 @@ for await (const item of pageableResponse) {
|
|
|
2312
2332
|
let page = await client.comments.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
2313
2333
|
timestamp_as_timecode: true,
|
|
2314
2334
|
include: "owner",
|
|
2335
|
+
sort: "owner_asc",
|
|
2315
2336
|
after: "<opaque_cursor>",
|
|
2316
2337
|
page_size: 10,
|
|
2317
2338
|
include_total_count: false
|
|
@@ -2403,10 +2424,36 @@ Create a comment on a file. <br/>Rate Limits: 100 calls per 1.00 minute(s) per a
|
|
|
2403
2424
|
await client.comments.create("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
2404
2425
|
timestamp_as_timecode: true,
|
|
2405
2426
|
data: {
|
|
2427
|
+
anchor: {
|
|
2428
|
+
x: 0.5,
|
|
2429
|
+
y: 0.5
|
|
2430
|
+
},
|
|
2406
2431
|
annotation: "[{\"tool\":\"rect\",\"color\":\"#F22237\",\"size\":8,\"x\":0.277726001863933,\"y\":0.12909555568499534,\"w\":0.3153168321877913,\"h\":0.5308131407269339,\"ix\":0.277726001863933,\"iy\":0.12909555568499534,\"radius\":8}]",
|
|
2432
|
+
attachments: [{
|
|
2433
|
+
file_size: 1024000,
|
|
2434
|
+
media_type: "image/png",
|
|
2435
|
+
name: "screenshot.png"
|
|
2436
|
+
}],
|
|
2407
2437
|
completed: false,
|
|
2438
|
+
duration: 10,
|
|
2439
|
+
links: [{
|
|
2440
|
+
end_index: 13,
|
|
2441
|
+
start_index: 5,
|
|
2442
|
+
url: "https://www.example.com"
|
|
2443
|
+
}],
|
|
2408
2444
|
page: 4,
|
|
2409
2445
|
text: "This is great!",
|
|
2446
|
+
text_review_annotation: {
|
|
2447
|
+
bounds: [{
|
|
2448
|
+
height: 42,
|
|
2449
|
+
width: 130,
|
|
2450
|
+
x: 12.5,
|
|
2451
|
+
y: 24
|
|
2452
|
+
}],
|
|
2453
|
+
selection_text: "existing copy",
|
|
2454
|
+
suggested_text: "updated copy",
|
|
2455
|
+
text_review_annotation_type: "replace"
|
|
2456
|
+
},
|
|
2410
2457
|
timestamp: "00:00:02:12"
|
|
2411
2458
|
}
|
|
2412
2459
|
});
|
|
@@ -2457,6 +2504,166 @@ await client.comments.create("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c
|
|
|
2457
2504
|
</dl>
|
|
2458
2505
|
|
|
2459
2506
|
|
|
2507
|
+
</dd>
|
|
2508
|
+
</dl>
|
|
2509
|
+
</details>
|
|
2510
|
+
|
|
2511
|
+
## Accounts
|
|
2512
|
+
<details><summary><code>client.accounts.<a href="/src/api/resources/accounts/client/Client.ts">index</a>({ ...params }) -> core.Page<Frameio.Account, Frameio.AccountsResponse></code></summary>
|
|
2513
|
+
<dl>
|
|
2514
|
+
<dd>
|
|
2515
|
+
|
|
2516
|
+
#### 📝 Description
|
|
2517
|
+
|
|
2518
|
+
<dl>
|
|
2519
|
+
<dd>
|
|
2520
|
+
|
|
2521
|
+
<dl>
|
|
2522
|
+
<dd>
|
|
2523
|
+
|
|
2524
|
+
List accounts for the current user. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
2525
|
+
</dd>
|
|
2526
|
+
</dl>
|
|
2527
|
+
</dd>
|
|
2528
|
+
</dl>
|
|
2529
|
+
|
|
2530
|
+
#### 🔌 Usage
|
|
2531
|
+
|
|
2532
|
+
<dl>
|
|
2533
|
+
<dd>
|
|
2534
|
+
|
|
2535
|
+
<dl>
|
|
2536
|
+
<dd>
|
|
2537
|
+
|
|
2538
|
+
```typescript
|
|
2539
|
+
const pageableResponse = await client.accounts.index({
|
|
2540
|
+
after: "<opaque_cursor>",
|
|
2541
|
+
page_size: 10,
|
|
2542
|
+
include_total_count: false
|
|
2543
|
+
});
|
|
2544
|
+
for await (const item of pageableResponse) {
|
|
2545
|
+
console.log(item);
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2548
|
+
// Or you can manually iterate page-by-page
|
|
2549
|
+
let page = await client.accounts.index({
|
|
2550
|
+
after: "<opaque_cursor>",
|
|
2551
|
+
page_size: 10,
|
|
2552
|
+
include_total_count: false
|
|
2553
|
+
});
|
|
2554
|
+
while (page.hasNextPage()) {
|
|
2555
|
+
page = page.getNextPage();
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
// You can also access the underlying response
|
|
2559
|
+
const response = page.response;
|
|
2560
|
+
|
|
2561
|
+
```
|
|
2562
|
+
</dd>
|
|
2563
|
+
</dl>
|
|
2564
|
+
</dd>
|
|
2565
|
+
</dl>
|
|
2566
|
+
|
|
2567
|
+
#### ⚙️ Parameters
|
|
2568
|
+
|
|
2569
|
+
<dl>
|
|
2570
|
+
<dd>
|
|
2571
|
+
|
|
2572
|
+
<dl>
|
|
2573
|
+
<dd>
|
|
2574
|
+
|
|
2575
|
+
**request:** `Frameio.AccountsIndexRequest`
|
|
2576
|
+
|
|
2577
|
+
</dd>
|
|
2578
|
+
</dl>
|
|
2579
|
+
|
|
2580
|
+
<dl>
|
|
2581
|
+
<dd>
|
|
2582
|
+
|
|
2583
|
+
**requestOptions:** `AccountsClient.RequestOptions`
|
|
2584
|
+
|
|
2585
|
+
</dd>
|
|
2586
|
+
</dl>
|
|
2587
|
+
</dd>
|
|
2588
|
+
</dl>
|
|
2589
|
+
|
|
2590
|
+
|
|
2591
|
+
</dd>
|
|
2592
|
+
</dl>
|
|
2593
|
+
</details>
|
|
2594
|
+
|
|
2595
|
+
<details><summary><code>client.accounts.<a href="/src/api/resources/accounts/client/Client.ts">auditlogIndex</a>(account_id, { ...params }) -> Frameio.AuditLogsWithIncludesResponse</code></summary>
|
|
2596
|
+
<dl>
|
|
2597
|
+
<dd>
|
|
2598
|
+
|
|
2599
|
+
#### 📝 Description
|
|
2600
|
+
|
|
2601
|
+
<dl>
|
|
2602
|
+
<dd>
|
|
2603
|
+
|
|
2604
|
+
<dl>
|
|
2605
|
+
<dd>
|
|
2606
|
+
|
|
2607
|
+
List audit logs with filtering capabilities via query params. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
2608
|
+
</dd>
|
|
2609
|
+
</dl>
|
|
2610
|
+
</dd>
|
|
2611
|
+
</dl>
|
|
2612
|
+
|
|
2613
|
+
#### 🔌 Usage
|
|
2614
|
+
|
|
2615
|
+
<dl>
|
|
2616
|
+
<dd>
|
|
2617
|
+
|
|
2618
|
+
<dl>
|
|
2619
|
+
<dd>
|
|
2620
|
+
|
|
2621
|
+
```typescript
|
|
2622
|
+
await client.accounts.auditlogIndex("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
2623
|
+
include: "user",
|
|
2624
|
+
after: "<opaque_cursor>",
|
|
2625
|
+
page_size: 10,
|
|
2626
|
+
include_total_count: false
|
|
2627
|
+
});
|
|
2628
|
+
|
|
2629
|
+
```
|
|
2630
|
+
</dd>
|
|
2631
|
+
</dl>
|
|
2632
|
+
</dd>
|
|
2633
|
+
</dl>
|
|
2634
|
+
|
|
2635
|
+
#### ⚙️ Parameters
|
|
2636
|
+
|
|
2637
|
+
<dl>
|
|
2638
|
+
<dd>
|
|
2639
|
+
|
|
2640
|
+
<dl>
|
|
2641
|
+
<dd>
|
|
2642
|
+
|
|
2643
|
+
**account_id:** `Frameio.Uuid` —
|
|
2644
|
+
|
|
2645
|
+
</dd>
|
|
2646
|
+
</dl>
|
|
2647
|
+
|
|
2648
|
+
<dl>
|
|
2649
|
+
<dd>
|
|
2650
|
+
|
|
2651
|
+
**request:** `Frameio.AuditlogIndexRequest`
|
|
2652
|
+
|
|
2653
|
+
</dd>
|
|
2654
|
+
</dl>
|
|
2655
|
+
|
|
2656
|
+
<dl>
|
|
2657
|
+
<dd>
|
|
2658
|
+
|
|
2659
|
+
**requestOptions:** `AccountsClient.RequestOptions`
|
|
2660
|
+
|
|
2661
|
+
</dd>
|
|
2662
|
+
</dl>
|
|
2663
|
+
</dd>
|
|
2664
|
+
</dl>
|
|
2665
|
+
|
|
2666
|
+
|
|
2460
2667
|
</dd>
|
|
2461
2668
|
</dl>
|
|
2462
2669
|
</details>
|