frameio 2.0.3 → 3.1.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.d.ts +40 -0
- package/dist/cjs/BaseClient.js +62 -0
- package/dist/cjs/Client.d.ts +62 -68
- package/dist/cjs/Client.js +67 -41
- package/dist/cjs/api/errors/BadRequestError.d.ts +2 -2
- package/dist/cjs/api/errors/BadRequestError.js +5 -1
- package/dist/cjs/api/errors/ConflictError.d.ts +2 -2
- package/dist/cjs/api/errors/ConflictError.js +5 -1
- package/dist/cjs/api/errors/ForbiddenError.d.ts +2 -2
- package/dist/cjs/api/errors/ForbiddenError.js +5 -1
- package/dist/cjs/api/errors/NotFoundError.d.ts +2 -2
- package/dist/cjs/api/errors/NotFoundError.js +5 -1
- package/dist/cjs/api/errors/TooManyRequestsError.d.ts +2 -2
- package/dist/cjs/api/errors/TooManyRequestsError.js +5 -1
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +2 -2
- package/dist/cjs/api/errors/UnauthorizedError.js +5 -1
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +1 -1
- package/dist/cjs/api/errors/UnprocessableEntityError.js +5 -1
- package/dist/cjs/api/errors/index.d.ts +3 -3
- package/dist/cjs/api/errors/index.js +3 -3
- package/dist/cjs/api/index.d.ts +1 -1
- package/dist/cjs/api/index.js +1 -1
- package/dist/cjs/api/resources/accountPermissions/client/Client.d.ts +11 -30
- package/dist/cjs/api/resources/accountPermissions/client/Client.js +71 -86
- package/dist/cjs/api/resources/accountPermissions/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/accountPermissions/client/requests/AccountPermissionsIndexRequest.d.ts +1 -3
- package/dist/cjs/api/resources/accountPermissions/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/accountPermissions/exports.d.ts +2 -0
- package/dist/cjs/api/resources/accountPermissions/exports.js +21 -0
- package/dist/cjs/api/resources/accounts/client/Client.d.ts +13 -32
- package/dist/cjs/api/resources/accounts/client/Client.js +89 -124
- package/dist/cjs/api/resources/accounts/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/accounts/client/requests/AccountsIndexRequest.d.ts +1 -3
- package/dist/cjs/api/resources/accounts/client/requests/AuditlogIndexRequest.d.ts +1 -5
- package/dist/cjs/api/resources/accounts/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/accounts/exports.d.ts +2 -0
- package/dist/cjs/api/resources/accounts/exports.js +21 -0
- package/dist/cjs/api/resources/comments/client/Client.d.ts +120 -49
- package/dist/cjs/api/resources/comments/client/Client.js +332 -212
- package/dist/cjs/api/resources/comments/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/comments/client/requests/CommentsIndexRequest.d.ts +4 -5
- package/dist/cjs/api/resources/comments/client/requests/CommentsShowRequest.d.ts +1 -3
- 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 +42 -7
- package/dist/cjs/api/resources/comments/client/requests/UpdateCommentParams.d.ts +29 -8
- package/dist/cjs/api/resources/comments/client/requests/index.d.ts +5 -4
- package/dist/cjs/api/resources/comments/exports.d.ts +2 -0
- package/dist/cjs/api/resources/comments/exports.js +21 -0
- package/dist/cjs/api/resources/comments/index.d.ts +1 -1
- package/dist/cjs/api/resources/comments/index.js +1 -1
- 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 +2 -1
- package/dist/cjs/api/resources/comments/types/index.js +2 -1
- package/dist/cjs/api/resources/files/client/Client.d.ts +54 -70
- package/dist/cjs/api/resources/files/client/Client.js +194 -329
- package/dist/cjs/api/resources/files/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/files/client/requests/FileCopyParams.d.ts +2 -2
- package/dist/cjs/api/resources/files/client/requests/FileCreateParams.d.ts +1 -1
- package/dist/cjs/api/resources/files/client/requests/FileMoveParams.d.ts +1 -1
- package/dist/cjs/api/resources/files/client/requests/FileUpdateParams.d.ts +1 -1
- package/dist/cjs/api/resources/files/client/requests/FilesListRequest.d.ts +1 -4
- package/dist/cjs/api/resources/files/client/requests/FilesShowRequest.d.ts +1 -2
- package/dist/cjs/api/resources/files/client/requests/index.d.ts +9 -9
- package/dist/cjs/api/resources/files/exports.d.ts +2 -0
- package/dist/cjs/api/resources/files/exports.js +21 -0
- package/dist/cjs/api/resources/files/index.d.ts +1 -1
- package/dist/cjs/api/resources/files/index.js +1 -1
- package/dist/cjs/api/resources/files/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/files/types/index.js +1 -1
- package/dist/cjs/api/resources/folders/client/Client.d.ts +40 -58
- package/dist/cjs/api/resources/folders/client/Client.js +153 -262
- package/dist/cjs/api/resources/folders/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/folders/client/requests/FolderCopyParams.d.ts +1 -1
- package/dist/cjs/api/resources/folders/client/requests/FolderCreateParams.d.ts +1 -1
- package/dist/cjs/api/resources/folders/client/requests/FolderMoveParams.d.ts +1 -1
- package/dist/cjs/api/resources/folders/client/requests/FolderUpdateParams.d.ts +1 -1
- package/dist/cjs/api/resources/folders/client/requests/FoldersIndexRequest.d.ts +1 -5
- package/dist/cjs/api/resources/folders/client/requests/FoldersListRequest.d.ts +1 -4
- package/dist/cjs/api/resources/folders/client/requests/FoldersShowRequest.d.ts +1 -2
- package/dist/cjs/api/resources/folders/client/requests/index.d.ts +7 -7
- package/dist/cjs/api/resources/folders/exports.d.ts +2 -0
- package/dist/cjs/api/resources/folders/exports.js +21 -0
- package/dist/cjs/api/resources/folders/index.d.ts +1 -1
- package/dist/cjs/api/resources/folders/index.js +1 -1
- package/dist/cjs/api/resources/folders/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/folders/types/index.js +1 -1
- package/dist/cjs/api/resources/index.d.ts +24 -24
- package/dist/cjs/api/resources/index.js +28 -28
- package/dist/cjs/api/resources/metadata/client/Client.d.ts +16 -34
- package/dist/cjs/api/resources/metadata/client/Client.js +44 -70
- package/dist/cjs/api/resources/metadata/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.ts +2 -2
- package/dist/cjs/api/resources/metadata/client/requests/MetadataShowRequest.d.ts +0 -1
- package/dist/cjs/api/resources/metadata/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/metadata/exports.d.ts +2 -0
- package/dist/cjs/api/resources/metadata/exports.js +21 -0
- package/dist/cjs/api/resources/metadataFields/client/Client.d.ts +22 -40
- package/dist/cjs/api/resources/metadataFields/client/Client.js +77 -131
- package/dist/cjs/api/resources/metadataFields/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/metadataFields/client/requests/CreateFieldDefinitionParams.d.ts +1 -1
- package/dist/cjs/api/resources/metadataFields/client/requests/MetadataFieldDefinitionsIndexRequest.d.ts +1 -4
- package/dist/cjs/api/resources/metadataFields/client/requests/UpdateFieldDefinitionParams.d.ts +1 -1
- package/dist/cjs/api/resources/metadataFields/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/metadataFields/exports.d.ts +2 -0
- package/dist/cjs/api/resources/metadataFields/exports.js +21 -0
- package/dist/cjs/api/resources/metadataFields/index.d.ts +1 -1
- package/dist/cjs/api/resources/metadataFields/index.js +1 -1
- package/dist/cjs/api/resources/metadataFields/types/CreateFieldDefinitionParamsData.d.ts +3 -3
- package/dist/cjs/api/resources/metadataFields/types/UpdateFieldDefinitionParamsData.d.ts +3 -3
- package/dist/cjs/api/resources/metadataFields/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/metadataFields/types/index.js +1 -1
- package/dist/cjs/api/resources/projectPermissions/client/Client.d.ts +22 -41
- package/dist/cjs/api/resources/projectPermissions/client/Client.js +104 -141
- package/dist/cjs/api/resources/projectPermissions/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/projectPermissions/client/requests/ProjectPermissionsIndexRequest.d.ts +1 -3
- package/dist/cjs/api/resources/projectPermissions/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/projectPermissions/exports.d.ts +2 -0
- package/dist/cjs/api/resources/projectPermissions/exports.js +21 -0
- package/dist/cjs/api/resources/projects/client/Client.d.ts +28 -47
- package/dist/cjs/api/resources/projects/client/Client.js +136 -196
- package/dist/cjs/api/resources/projects/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/projects/client/requests/ProjectParams.d.ts +1 -1
- package/dist/cjs/api/resources/projects/client/requests/ProjectUpdateParams.d.ts +3 -3
- package/dist/cjs/api/resources/projects/client/requests/ProjectsIndexRequest.d.ts +1 -4
- package/dist/cjs/api/resources/projects/client/requests/ProjectsShowRequest.d.ts +0 -1
- package/dist/cjs/api/resources/projects/client/requests/index.d.ts +4 -4
- package/dist/cjs/api/resources/projects/client/requests/index.js +3 -0
- package/dist/cjs/api/resources/projects/exports.d.ts +2 -0
- package/dist/cjs/api/resources/projects/exports.js +21 -0
- package/dist/cjs/api/resources/shares/client/Client.d.ts +49 -69
- package/dist/cjs/api/resources/shares/client/Client.js +252 -364
- package/dist/cjs/api/resources/shares/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/shares/client/requests/AddReviewersToShareParams.d.ts +4 -4
- package/dist/cjs/api/resources/shares/client/requests/CreateShareParams.d.ts +1 -1
- package/dist/cjs/api/resources/shares/client/requests/RemoveReviewerParams.d.ts +4 -4
- package/dist/cjs/api/resources/shares/client/requests/SharesIndexRequest.d.ts +1 -3
- package/dist/cjs/api/resources/shares/client/requests/SharesListReviewersRequest.d.ts +1 -3
- package/dist/cjs/api/resources/shares/client/requests/UpdateShareParams.d.ts +6 -6
- package/dist/cjs/api/resources/shares/client/requests/index.d.ts +7 -7
- package/dist/cjs/api/resources/shares/client/requests/index.js +3 -0
- package/dist/cjs/api/resources/shares/exports.d.ts +2 -0
- package/dist/cjs/api/resources/shares/exports.js +21 -0
- package/dist/cjs/api/resources/shares/index.d.ts +1 -1
- package/dist/cjs/api/resources/shares/index.js +1 -1
- package/dist/cjs/api/resources/shares/types/CreateShareParamsData.d.ts +1 -1
- package/dist/cjs/api/resources/users/client/Client.d.ts +10 -28
- package/dist/cjs/api/resources/users/client/Client.js +19 -33
- package/dist/cjs/api/resources/users/exports.d.ts +2 -0
- package/dist/cjs/api/resources/users/exports.js +21 -0
- package/dist/cjs/api/resources/versionStacks/client/Client.d.ts +33 -51
- package/dist/cjs/api/resources/versionStacks/client/Client.js +123 -208
- package/dist/cjs/api/resources/versionStacks/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackCopyParams.d.ts +1 -1
- package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.ts +1 -1
- package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackMoveParams.d.ts +1 -1
- package/dist/cjs/api/resources/versionStacks/client/requests/VersionStacksIndexRequest.d.ts +1 -4
- package/dist/cjs/api/resources/versionStacks/client/requests/VersionStacksListRequest.d.ts +1 -4
- package/dist/cjs/api/resources/versionStacks/client/requests/VersionStacksShowRequest.d.ts +1 -2
- package/dist/cjs/api/resources/versionStacks/client/requests/index.d.ts +6 -6
- package/dist/cjs/api/resources/versionStacks/exports.d.ts +2 -0
- package/dist/cjs/api/resources/versionStacks/exports.js +21 -0
- package/dist/cjs/api/resources/versionStacks/index.d.ts +1 -1
- package/dist/cjs/api/resources/versionStacks/index.js +1 -1
- package/dist/cjs/api/resources/versionStacks/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/versionStacks/types/index.js +1 -1
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +28 -47
- package/dist/cjs/api/resources/webhooks/client/Client.js +136 -196
- package/dist/cjs/api/resources/webhooks/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/webhooks/client/requests/WebhookCreateParams.d.ts +1 -1
- package/dist/cjs/api/resources/webhooks/client/requests/WebhookUpdateParams.d.ts +5 -5
- package/dist/cjs/api/resources/webhooks/client/requests/WebhooksIndexRequest.d.ts +1 -4
- package/dist/cjs/api/resources/webhooks/client/requests/WebhooksShowRequest.d.ts +0 -1
- package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +4 -4
- package/dist/cjs/api/resources/webhooks/exports.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/exports.js +21 -0
- package/dist/cjs/api/resources/workspacePermissions/client/Client.d.ts +22 -41
- package/dist/cjs/api/resources/workspacePermissions/client/Client.js +104 -141
- package/dist/cjs/api/resources/workspacePermissions/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/workspacePermissions/client/requests/WorkspacePermissionsIndexRequest.d.ts +1 -3
- package/dist/cjs/api/resources/workspacePermissions/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/workspacePermissions/exports.d.ts +2 -0
- package/dist/cjs/api/resources/workspacePermissions/exports.js +21 -0
- package/dist/cjs/api/resources/workspaces/client/Client.d.ts +26 -45
- package/dist/cjs/api/resources/workspaces/client/Client.js +134 -197
- package/dist/cjs/api/resources/workspaces/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/workspaces/client/requests/WorkspacesIndexRequest.d.ts +1 -4
- package/dist/cjs/api/resources/workspaces/client/requests/WorkspacesShowRequest.d.ts +0 -1
- package/dist/cjs/api/resources/workspaces/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/workspaces/exports.d.ts +2 -0
- package/dist/cjs/api/resources/workspaces/exports.js +21 -0
- package/dist/cjs/api/types/Account.d.ts +4 -4
- package/dist/cjs/api/types/AccountUserRole.d.ts +2 -2
- package/dist/cjs/api/types/AccountUserRolesResponse.d.ts +2 -2
- package/dist/cjs/api/types/AccountsResponse.d.ts +2 -2
- package/dist/cjs/api/types/AddAssetResponse.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/AssetCommon.d.ts +1 -1
- package/dist/cjs/api/types/AssetCommonWithIncludes.d.ts +5 -5
- package/dist/cjs/api/types/AssetShareParams.d.ts +5 -5
- package/dist/cjs/api/types/AssetWithIncludes.d.ts +3 -3
- package/dist/cjs/api/types/AttachmentInput.d.ts +11 -0
- package/dist/cjs/api/types/AttachmentInput.js +3 -0
- package/dist/cjs/api/types/AuditLogsWithIncludesResponse.d.ts +2 -2
- package/dist/cjs/api/types/AuditLogwithIncludes.d.ts +4 -4
- package/dist/cjs/api/types/BadRequest.d.ts +3 -3
- package/dist/cjs/api/types/BooleanValue.d.ts +2 -2
- package/dist/cjs/api/types/Comment.d.ts +18 -6
- 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/CommentResponse.d.ts +1 -1
- package/dist/cjs/api/types/CommentSort.d.ts +10 -0
- package/dist/cjs/api/types/CommentSort.js +13 -0
- package/dist/cjs/api/types/CommentWithIncludes.d.ts +3 -3
- package/dist/cjs/api/types/CommentWithIncludesResponse.d.ts +1 -1
- package/dist/cjs/api/types/CommentsWithIncludesResponse.d.ts +2 -2
- package/dist/cjs/api/types/Conflict.d.ts +3 -3
- package/dist/cjs/api/types/DateDefinition.d.ts +3 -4
- package/dist/cjs/api/types/DateDefinitionParams.d.ts +3 -4
- package/dist/cjs/api/types/DateDefinitionWithIncludes.d.ts +2 -2
- package/dist/cjs/api/types/DateValue.d.ts +2 -2
- package/dist/cjs/api/types/FieldDefinition.d.ts +3 -3
- package/dist/cjs/api/types/FieldDefinitionResponse.d.ts +1 -1
- package/dist/cjs/api/types/FieldDefinitionWithIncludes.d.ts +3 -3
- package/dist/cjs/api/types/FieldDefinitionsWithIncludesResponse.d.ts +2 -2
- package/dist/cjs/api/types/FileAssetsWithIncludesResponse.d.ts +2 -2
- package/dist/cjs/api/types/FileCopyResponse.d.ts +1 -1
- package/dist/cjs/api/types/FileRemoteUploadResponse.d.ts +1 -1
- package/dist/cjs/api/types/FileResponse.d.ts +1 -1
- package/dist/cjs/api/types/FileUploadStatus.d.ts +2 -2
- package/dist/cjs/api/types/FileUploadStatusResponse.d.ts +1 -1
- package/dist/cjs/api/types/FileWithIncludes.d.ts +2 -2
- package/dist/cjs/api/types/FileWithIncludesResponse.d.ts +1 -1
- package/dist/cjs/api/types/FileWithUploadUrls.d.ts +2 -2
- package/dist/cjs/api/types/FileWithUploadUrlsResponse.d.ts +1 -1
- package/dist/cjs/api/types/File_.d.ts +3 -3
- package/dist/cjs/api/types/Filters.d.ts +9 -9
- package/dist/cjs/api/types/Folder.d.ts +2 -2
- package/dist/cjs/api/types/FolderAssetsWithIncludesResponse.d.ts +2 -2
- package/dist/cjs/api/types/FolderCopyResponse.d.ts +1 -1
- package/dist/cjs/api/types/FolderResponse.d.ts +1 -1
- package/dist/cjs/api/types/FolderWithIncludes.d.ts +6 -6
- package/dist/cjs/api/types/FolderWithIncludesResponse.d.ts +1 -1
- package/dist/cjs/api/types/FoldersWithIncludesResponse.d.ts +2 -2
- package/dist/cjs/api/types/Forbidden.d.ts +3 -3
- package/dist/cjs/api/types/IntegerValue.d.ts +2 -2
- 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/Links.d.ts +1 -1
- package/dist/cjs/api/types/LongTextDefinition.d.ts +1 -2
- package/dist/cjs/api/types/LongTextDefinitionWithIncludes.d.ts +2 -2
- package/dist/cjs/api/types/MediaLinkCommon.d.ts +1 -1
- package/dist/cjs/api/types/MediaLinksCollection.d.ts +8 -8
- package/dist/cjs/api/types/Mention.d.ts +10 -0
- package/dist/cjs/api/types/Mention.js +3 -0
- package/dist/cjs/api/types/MetadataField.d.ts +3 -3
- package/dist/cjs/api/types/MetadataResponse.d.ts +1 -1
- package/dist/cjs/api/types/MetadataWithDefinition.d.ts +1 -1
- package/dist/cjs/api/types/MultiSelectValue.d.ts +2 -2
- package/dist/cjs/api/types/MultiUserValue.d.ts +3 -3
- package/dist/cjs/api/types/NotFound.d.ts +3 -3
- package/dist/cjs/api/types/NumberDefinition.d.ts +1 -1
- package/dist/cjs/api/types/NumberDefinitionParams.d.ts +1 -1
- package/dist/cjs/api/types/NumberDefinitionWithIncludes.d.ts +2 -2
- package/dist/cjs/api/types/NumberValue.d.ts +2 -2
- package/dist/cjs/api/types/OriginalMediaLink.d.ts +2 -2
- package/dist/cjs/api/types/Profile.d.ts +1 -1
- package/dist/cjs/api/types/ProfileResponse.d.ts +1 -1
- package/dist/cjs/api/types/Project.d.ts +1 -1
- package/dist/cjs/api/types/ProjectResponse.d.ts +1 -1
- package/dist/cjs/api/types/ProjectUserRolesResponse.d.ts +2 -2
- package/dist/cjs/api/types/ProjectWithIncludes.d.ts +3 -3
- package/dist/cjs/api/types/ProjectWithIncludesResponse.d.ts +1 -1
- package/dist/cjs/api/types/ProjectsWithIncludesResponse.d.ts +2 -2
- package/dist/cjs/api/types/RatingDefinition.d.ts +2 -2
- package/dist/cjs/api/types/RatingDefinitionParams.d.ts +2 -2
- package/dist/cjs/api/types/RatingDefinitionWithIncludes.d.ts +2 -2
- package/dist/cjs/api/types/RemoveAssetResponse.d.ts +1 -1
- package/dist/cjs/api/types/RenditionMediaLink.d.ts +2 -2
- package/dist/cjs/api/types/SelectDefinition.d.ts +3 -3
- package/dist/cjs/api/types/SelectDefinitionParams.d.ts +2 -2
- package/dist/cjs/api/types/SelectDefinitionWithIncludes.d.ts +2 -2
- package/dist/cjs/api/types/SelectMultiDefinition.d.ts +3 -3
- package/dist/cjs/api/types/SelectMultiDefinitionParams.d.ts +2 -2
- package/dist/cjs/api/types/SelectMultiDefinitionWithIncludes.d.ts +2 -2
- package/dist/cjs/api/types/SelectValue.d.ts +2 -2
- package/dist/cjs/api/types/Share.d.ts +6 -6
- package/dist/cjs/api/types/ShareResponse.d.ts +1 -1
- package/dist/cjs/api/types/ShareReviewersResponse.d.ts +2 -2
- package/dist/cjs/api/types/SharesResponse.d.ts +2 -2
- package/dist/cjs/api/types/SingleUserValue.d.ts +3 -3
- package/dist/cjs/api/types/TextDefinition.d.ts +1 -2
- package/dist/cjs/api/types/TextDefinitionWithIncludes.d.ts +2 -2
- 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/TextValue.d.ts +2 -2
- package/dist/cjs/api/types/ToggleDefinition.d.ts +1 -1
- package/dist/cjs/api/types/ToggleDefinitionParams.d.ts +2 -2
- package/dist/cjs/api/types/ToggleDefinitionWithIncludes.d.ts +2 -2
- package/dist/cjs/api/types/TooManyRequests.d.ts +3 -3
- package/dist/cjs/api/types/Unauthorized.d.ts +3 -3
- package/dist/cjs/api/types/UnprocessableContent.d.ts +3 -3
- package/dist/cjs/api/types/UpdateDateDefinitionParams.d.ts +6 -7
- package/dist/cjs/api/types/UpdateLongTextDefinitionParams.d.ts +1 -1
- package/dist/cjs/api/types/UpdateNumberDefinitionParams.d.ts +4 -4
- package/dist/cjs/api/types/UpdateRatingDefinitionParams.d.ts +5 -5
- package/dist/cjs/api/types/UpdateSelectDefinitionParams.d.ts +5 -5
- package/dist/cjs/api/types/UpdateSelectMultiDefinitionParams.d.ts +5 -5
- package/dist/cjs/api/types/UpdateTextDefinitionParams.d.ts +1 -1
- package/dist/cjs/api/types/UpdateToggleDefinitionParams.d.ts +3 -3
- package/dist/cjs/api/types/UpdateUserMultiDefinitionParams.d.ts +3 -4
- package/dist/cjs/api/types/UpdateUserRolesResponse.d.ts +1 -1
- package/dist/cjs/api/types/UpdateUserSingleDefinitionParams.d.ts +3 -4
- package/dist/cjs/api/types/User.d.ts +5 -5
- package/dist/cjs/api/types/UserMultiDefinition.d.ts +0 -1
- package/dist/cjs/api/types/UserMultiDefinitionParams.d.ts +1 -2
- package/dist/cjs/api/types/UserMultiDefinitionWithIncludes.d.ts +2 -2
- package/dist/cjs/api/types/UserRole.d.ts +1 -1
- package/dist/cjs/api/types/UserSingleDefinition.d.ts +0 -1
- package/dist/cjs/api/types/UserSingleDefinitionParams.d.ts +1 -2
- package/dist/cjs/api/types/UserSingleDefinitionWithIncludes.d.ts +2 -2
- package/dist/cjs/api/types/VersionStack.d.ts +2 -2
- package/dist/cjs/api/types/VersionStackAssetsWithIncludesResponse.d.ts +2 -2
- package/dist/cjs/api/types/VersionStackCopyResponse.d.ts +1 -1
- package/dist/cjs/api/types/VersionStackResponse.d.ts +1 -1
- package/dist/cjs/api/types/VersionStackWithIncludes.d.ts +6 -6
- package/dist/cjs/api/types/VersionStackWithIncludesResponse.d.ts +1 -1
- package/dist/cjs/api/types/VersionStacksWithIncludesResponse.d.ts +2 -2
- package/dist/cjs/api/types/Webhook.d.ts +3 -3
- package/dist/cjs/api/types/WebhookCreateResponse.d.ts +1 -1
- package/dist/cjs/api/types/WebhookResponse.d.ts +1 -1
- package/dist/cjs/api/types/WebhookWithIncludes.d.ts +2 -2
- package/dist/cjs/api/types/WebhookWithIncludesResponse.d.ts +1 -1
- package/dist/cjs/api/types/WebhooksWithIncludesResponse.d.ts +2 -2
- package/dist/cjs/api/types/WorkspaceParams.d.ts +1 -1
- package/dist/cjs/api/types/WorkspaceResponse.d.ts +1 -1
- package/dist/cjs/api/types/WorkspaceUserRolesResponse.d.ts +2 -2
- package/dist/cjs/api/types/WorkspaceWithIncludes.d.ts +2 -2
- package/dist/cjs/api/types/WorkspaceWithIncludesResponse.d.ts +1 -1
- package/dist/cjs/api/types/WorkspacesWithIncludesResponse.d.ts +2 -2
- package/dist/cjs/api/types/index.d.ts +154 -143
- package/dist/cjs/api/types/index.js +154 -143
- package/dist/cjs/auth/BearerAuthProvider.d.ts +20 -0
- package/dist/cjs/auth/BearerAuthProvider.js +79 -0
- package/dist/cjs/auth/index.d.ts +1 -0
- package/dist/cjs/auth/index.js +5 -0
- package/dist/cjs/core/auth/AuthProvider.d.ts +5 -2
- package/dist/cjs/core/auth/BearerToken.d.ts +3 -1
- package/dist/cjs/core/auth/BearerToken.js +7 -6
- package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
- package/dist/cjs/core/auth/index.d.ts +1 -0
- package/dist/cjs/core/auth/index.js +3 -1
- package/dist/cjs/core/exports.d.ts +2 -0
- package/dist/cjs/core/exports.js +18 -0
- package/dist/cjs/core/fetcher/APIResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +5 -6
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +4 -4
- package/dist/cjs/core/fetcher/Fetcher.d.ts +12 -6
- package/dist/cjs/core/fetcher/Fetcher.js +210 -9
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +1 -1
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +2 -1
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +1 -1
- package/dist/cjs/core/fetcher/getRequestBody.js +4 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +21 -7
- package/dist/cjs/core/fetcher/index.d.ts +2 -0
- package/dist/cjs/core/fetcher/index.js +3 -1
- package/dist/cjs/core/fetcher/makePassthroughRequest.d.ts +49 -0
- package/dist/cjs/core/fetcher/makePassthroughRequest.js +135 -0
- package/dist/cjs/core/fetcher/makeRequest.d.ts +6 -1
- package/dist/cjs/core/fetcher/makeRequest.js +32 -13
- package/dist/cjs/core/fetcher/requestWithRetries.js +3 -12
- package/dist/cjs/core/fetcher/signals.d.ts +1 -7
- package/dist/cjs/core/fetcher/signals.js +0 -12
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/core/headers.js +6 -4
- package/dist/cjs/core/index.d.ts +4 -2
- package/dist/cjs/core/index.js +5 -3
- package/dist/cjs/core/logging/exports.d.ts +18 -0
- package/dist/cjs/core/logging/exports.js +45 -0
- package/dist/cjs/core/logging/index.d.ts +1 -0
- package/dist/cjs/core/logging/index.js +17 -0
- package/dist/cjs/core/logging/logger.d.ts +126 -0
- package/dist/cjs/core/logging/logger.js +144 -0
- package/dist/cjs/core/pagination/Page.d.ts +33 -0
- package/dist/cjs/core/pagination/Page.js +101 -0
- package/dist/cjs/core/pagination/exports.d.ts +1 -0
- package/dist/cjs/core/pagination/exports.js +2 -0
- package/dist/cjs/core/pagination/index.d.ts +1 -0
- package/dist/cjs/core/pagination/index.js +5 -0
- package/dist/cjs/core/runtime/runtime.js +17 -15
- package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
- package/dist/cjs/core/url/encodePathParam.js +21 -0
- package/dist/cjs/core/url/index.d.ts +1 -0
- package/dist/cjs/core/url/index.js +3 -1
- package/dist/cjs/core/url/join.js +3 -4
- package/dist/cjs/errors/FrameioError.d.ts +1 -1
- package/dist/cjs/errors/FrameioError.js +6 -2
- package/dist/cjs/errors/FrameioTimeoutError.js +5 -1
- package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/cjs/errors/handleNonStatusCodeError.js +65 -0
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/index.d.ts +3 -1
- package/dist/cjs/index.js +8 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +40 -0
- package/dist/esm/BaseClient.mjs +25 -0
- package/dist/esm/Client.d.mts +62 -68
- package/dist/esm/Client.mjs +68 -42
- package/dist/esm/api/errors/BadRequestError.d.mts +2 -2
- package/dist/esm/api/errors/BadRequestError.mjs +5 -1
- package/dist/esm/api/errors/ConflictError.d.mts +2 -2
- package/dist/esm/api/errors/ConflictError.mjs +5 -1
- package/dist/esm/api/errors/ForbiddenError.d.mts +2 -2
- package/dist/esm/api/errors/ForbiddenError.mjs +5 -1
- package/dist/esm/api/errors/NotFoundError.d.mts +2 -2
- package/dist/esm/api/errors/NotFoundError.mjs +5 -1
- package/dist/esm/api/errors/TooManyRequestsError.d.mts +2 -2
- package/dist/esm/api/errors/TooManyRequestsError.mjs +5 -1
- package/dist/esm/api/errors/UnauthorizedError.d.mts +2 -2
- package/dist/esm/api/errors/UnauthorizedError.mjs +5 -1
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +1 -1
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +5 -1
- package/dist/esm/api/errors/index.d.mts +3 -3
- package/dist/esm/api/errors/index.mjs +3 -3
- package/dist/esm/api/index.d.mts +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/resources/accountPermissions/client/Client.d.mts +11 -30
- package/dist/esm/api/resources/accountPermissions/client/Client.mjs +69 -84
- package/dist/esm/api/resources/accountPermissions/client/index.d.mts +0 -1
- package/dist/esm/api/resources/accountPermissions/client/requests/AccountPermissionsIndexRequest.d.mts +1 -3
- package/dist/esm/api/resources/accountPermissions/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/accountPermissions/exports.d.mts +2 -0
- package/dist/esm/api/resources/accountPermissions/exports.mjs +3 -0
- package/dist/esm/api/resources/accounts/client/Client.d.mts +13 -32
- package/dist/esm/api/resources/accounts/client/Client.mjs +87 -122
- package/dist/esm/api/resources/accounts/client/index.d.mts +0 -1
- package/dist/esm/api/resources/accounts/client/requests/AccountsIndexRequest.d.mts +1 -3
- package/dist/esm/api/resources/accounts/client/requests/AuditlogIndexRequest.d.mts +1 -5
- package/dist/esm/api/resources/accounts/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/accounts/exports.d.mts +2 -0
- package/dist/esm/api/resources/accounts/exports.mjs +3 -0
- package/dist/esm/api/resources/comments/client/Client.d.mts +120 -49
- package/dist/esm/api/resources/comments/client/Client.mjs +330 -210
- package/dist/esm/api/resources/comments/client/index.d.mts +0 -1
- package/dist/esm/api/resources/comments/client/requests/CommentsIndexRequest.d.mts +4 -5
- package/dist/esm/api/resources/comments/client/requests/CommentsShowRequest.d.mts +1 -3
- 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 +42 -7
- package/dist/esm/api/resources/comments/client/requests/UpdateCommentParams.d.mts +29 -8
- package/dist/esm/api/resources/comments/client/requests/index.d.mts +5 -4
- package/dist/esm/api/resources/comments/exports.d.mts +2 -0
- package/dist/esm/api/resources/comments/exports.mjs +3 -0
- package/dist/esm/api/resources/comments/index.d.mts +1 -1
- package/dist/esm/api/resources/comments/index.mjs +1 -1
- 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 +2 -1
- package/dist/esm/api/resources/comments/types/index.mjs +2 -1
- package/dist/esm/api/resources/files/client/Client.d.mts +54 -70
- package/dist/esm/api/resources/files/client/Client.mjs +192 -327
- package/dist/esm/api/resources/files/client/index.d.mts +0 -1
- package/dist/esm/api/resources/files/client/requests/FileCopyParams.d.mts +2 -2
- package/dist/esm/api/resources/files/client/requests/FileCreateParams.d.mts +1 -1
- package/dist/esm/api/resources/files/client/requests/FileMoveParams.d.mts +1 -1
- package/dist/esm/api/resources/files/client/requests/FileUpdateParams.d.mts +1 -1
- package/dist/esm/api/resources/files/client/requests/FilesListRequest.d.mts +1 -4
- package/dist/esm/api/resources/files/client/requests/FilesShowRequest.d.mts +1 -2
- package/dist/esm/api/resources/files/client/requests/index.d.mts +9 -9
- package/dist/esm/api/resources/files/exports.d.mts +2 -0
- package/dist/esm/api/resources/files/exports.mjs +3 -0
- package/dist/esm/api/resources/files/index.d.mts +1 -1
- package/dist/esm/api/resources/files/index.mjs +1 -1
- package/dist/esm/api/resources/files/types/index.d.mts +1 -1
- package/dist/esm/api/resources/files/types/index.mjs +1 -1
- package/dist/esm/api/resources/folders/client/Client.d.mts +40 -58
- package/dist/esm/api/resources/folders/client/Client.mjs +151 -260
- package/dist/esm/api/resources/folders/client/index.d.mts +0 -1
- package/dist/esm/api/resources/folders/client/requests/FolderCopyParams.d.mts +1 -1
- package/dist/esm/api/resources/folders/client/requests/FolderCreateParams.d.mts +1 -1
- package/dist/esm/api/resources/folders/client/requests/FolderMoveParams.d.mts +1 -1
- package/dist/esm/api/resources/folders/client/requests/FolderUpdateParams.d.mts +1 -1
- package/dist/esm/api/resources/folders/client/requests/FoldersIndexRequest.d.mts +1 -5
- package/dist/esm/api/resources/folders/client/requests/FoldersListRequest.d.mts +1 -4
- package/dist/esm/api/resources/folders/client/requests/FoldersShowRequest.d.mts +1 -2
- package/dist/esm/api/resources/folders/client/requests/index.d.mts +7 -7
- package/dist/esm/api/resources/folders/exports.d.mts +2 -0
- package/dist/esm/api/resources/folders/exports.mjs +3 -0
- package/dist/esm/api/resources/folders/index.d.mts +1 -1
- package/dist/esm/api/resources/folders/index.mjs +1 -1
- package/dist/esm/api/resources/folders/types/index.d.mts +1 -1
- package/dist/esm/api/resources/folders/types/index.mjs +1 -1
- package/dist/esm/api/resources/index.d.mts +24 -24
- package/dist/esm/api/resources/index.mjs +24 -24
- package/dist/esm/api/resources/metadata/client/Client.d.mts +16 -34
- package/dist/esm/api/resources/metadata/client/Client.mjs +42 -68
- package/dist/esm/api/resources/metadata/client/index.d.mts +0 -1
- package/dist/esm/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.mts +2 -2
- package/dist/esm/api/resources/metadata/client/requests/MetadataShowRequest.d.mts +0 -1
- package/dist/esm/api/resources/metadata/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/metadata/exports.d.mts +2 -0
- package/dist/esm/api/resources/metadata/exports.mjs +3 -0
- package/dist/esm/api/resources/metadataFields/client/Client.d.mts +22 -40
- package/dist/esm/api/resources/metadataFields/client/Client.mjs +75 -129
- package/dist/esm/api/resources/metadataFields/client/index.d.mts +0 -1
- package/dist/esm/api/resources/metadataFields/client/requests/CreateFieldDefinitionParams.d.mts +1 -1
- package/dist/esm/api/resources/metadataFields/client/requests/MetadataFieldDefinitionsIndexRequest.d.mts +1 -4
- package/dist/esm/api/resources/metadataFields/client/requests/UpdateFieldDefinitionParams.d.mts +1 -1
- package/dist/esm/api/resources/metadataFields/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/metadataFields/exports.d.mts +2 -0
- package/dist/esm/api/resources/metadataFields/exports.mjs +3 -0
- package/dist/esm/api/resources/metadataFields/index.d.mts +1 -1
- package/dist/esm/api/resources/metadataFields/index.mjs +1 -1
- package/dist/esm/api/resources/metadataFields/types/CreateFieldDefinitionParamsData.d.mts +3 -3
- package/dist/esm/api/resources/metadataFields/types/UpdateFieldDefinitionParamsData.d.mts +3 -3
- package/dist/esm/api/resources/metadataFields/types/index.d.mts +1 -1
- package/dist/esm/api/resources/metadataFields/types/index.mjs +1 -1
- package/dist/esm/api/resources/projectPermissions/client/Client.d.mts +22 -41
- package/dist/esm/api/resources/projectPermissions/client/Client.mjs +102 -139
- package/dist/esm/api/resources/projectPermissions/client/index.d.mts +0 -1
- package/dist/esm/api/resources/projectPermissions/client/requests/ProjectPermissionsIndexRequest.d.mts +1 -3
- package/dist/esm/api/resources/projectPermissions/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/projectPermissions/exports.d.mts +2 -0
- package/dist/esm/api/resources/projectPermissions/exports.mjs +3 -0
- package/dist/esm/api/resources/projects/client/Client.d.mts +28 -47
- package/dist/esm/api/resources/projects/client/Client.mjs +134 -194
- package/dist/esm/api/resources/projects/client/index.d.mts +0 -1
- package/dist/esm/api/resources/projects/client/requests/ProjectParams.d.mts +1 -1
- package/dist/esm/api/resources/projects/client/requests/ProjectUpdateParams.d.mts +3 -3
- package/dist/esm/api/resources/projects/client/requests/ProjectsIndexRequest.d.mts +1 -4
- package/dist/esm/api/resources/projects/client/requests/ProjectsShowRequest.d.mts +0 -1
- package/dist/esm/api/resources/projects/client/requests/index.d.mts +4 -4
- package/dist/esm/api/resources/projects/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/projects/exports.d.mts +2 -0
- package/dist/esm/api/resources/projects/exports.mjs +3 -0
- package/dist/esm/api/resources/shares/client/Client.d.mts +49 -69
- package/dist/esm/api/resources/shares/client/Client.mjs +250 -362
- package/dist/esm/api/resources/shares/client/index.d.mts +0 -1
- package/dist/esm/api/resources/shares/client/requests/AddReviewersToShareParams.d.mts +4 -4
- package/dist/esm/api/resources/shares/client/requests/CreateShareParams.d.mts +1 -1
- package/dist/esm/api/resources/shares/client/requests/RemoveReviewerParams.d.mts +4 -4
- package/dist/esm/api/resources/shares/client/requests/SharesIndexRequest.d.mts +1 -3
- package/dist/esm/api/resources/shares/client/requests/SharesListReviewersRequest.d.mts +1 -3
- package/dist/esm/api/resources/shares/client/requests/UpdateShareParams.d.mts +6 -6
- package/dist/esm/api/resources/shares/client/requests/index.d.mts +7 -7
- package/dist/esm/api/resources/shares/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/shares/exports.d.mts +2 -0
- package/dist/esm/api/resources/shares/exports.mjs +3 -0
- package/dist/esm/api/resources/shares/index.d.mts +1 -1
- package/dist/esm/api/resources/shares/index.mjs +1 -1
- package/dist/esm/api/resources/shares/types/CreateShareParamsData.d.mts +1 -1
- package/dist/esm/api/resources/users/client/Client.d.mts +10 -28
- package/dist/esm/api/resources/users/client/Client.mjs +17 -31
- package/dist/esm/api/resources/users/exports.d.mts +2 -0
- package/dist/esm/api/resources/users/exports.mjs +3 -0
- package/dist/esm/api/resources/versionStacks/client/Client.d.mts +33 -51
- package/dist/esm/api/resources/versionStacks/client/Client.mjs +121 -206
- package/dist/esm/api/resources/versionStacks/client/index.d.mts +0 -1
- package/dist/esm/api/resources/versionStacks/client/requests/VersionStackCopyParams.d.mts +1 -1
- package/dist/esm/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.mts +1 -1
- package/dist/esm/api/resources/versionStacks/client/requests/VersionStackMoveParams.d.mts +1 -1
- package/dist/esm/api/resources/versionStacks/client/requests/VersionStacksIndexRequest.d.mts +1 -4
- package/dist/esm/api/resources/versionStacks/client/requests/VersionStacksListRequest.d.mts +1 -4
- package/dist/esm/api/resources/versionStacks/client/requests/VersionStacksShowRequest.d.mts +1 -2
- package/dist/esm/api/resources/versionStacks/client/requests/index.d.mts +6 -6
- package/dist/esm/api/resources/versionStacks/exports.d.mts +2 -0
- package/dist/esm/api/resources/versionStacks/exports.mjs +3 -0
- package/dist/esm/api/resources/versionStacks/index.d.mts +1 -1
- package/dist/esm/api/resources/versionStacks/index.mjs +1 -1
- package/dist/esm/api/resources/versionStacks/types/index.d.mts +1 -1
- package/dist/esm/api/resources/versionStacks/types/index.mjs +1 -1
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +28 -47
- package/dist/esm/api/resources/webhooks/client/Client.mjs +134 -194
- package/dist/esm/api/resources/webhooks/client/index.d.mts +0 -1
- package/dist/esm/api/resources/webhooks/client/requests/WebhookCreateParams.d.mts +1 -1
- package/dist/esm/api/resources/webhooks/client/requests/WebhookUpdateParams.d.mts +5 -5
- package/dist/esm/api/resources/webhooks/client/requests/WebhooksIndexRequest.d.mts +1 -4
- package/dist/esm/api/resources/webhooks/client/requests/WebhooksShowRequest.d.mts +0 -1
- package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +4 -4
- package/dist/esm/api/resources/webhooks/exports.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/exports.mjs +3 -0
- package/dist/esm/api/resources/workspacePermissions/client/Client.d.mts +22 -41
- package/dist/esm/api/resources/workspacePermissions/client/Client.mjs +102 -139
- package/dist/esm/api/resources/workspacePermissions/client/index.d.mts +0 -1
- package/dist/esm/api/resources/workspacePermissions/client/requests/WorkspacePermissionsIndexRequest.d.mts +1 -3
- package/dist/esm/api/resources/workspacePermissions/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/workspacePermissions/exports.d.mts +2 -0
- package/dist/esm/api/resources/workspacePermissions/exports.mjs +3 -0
- package/dist/esm/api/resources/workspaces/client/Client.d.mts +26 -45
- package/dist/esm/api/resources/workspaces/client/Client.mjs +132 -195
- package/dist/esm/api/resources/workspaces/client/index.d.mts +0 -1
- package/dist/esm/api/resources/workspaces/client/requests/WorkspacesIndexRequest.d.mts +1 -4
- package/dist/esm/api/resources/workspaces/client/requests/WorkspacesShowRequest.d.mts +0 -1
- package/dist/esm/api/resources/workspaces/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/workspaces/exports.d.mts +2 -0
- package/dist/esm/api/resources/workspaces/exports.mjs +3 -0
- package/dist/esm/api/types/Account.d.mts +4 -4
- package/dist/esm/api/types/AccountUserRole.d.mts +2 -2
- package/dist/esm/api/types/AccountUserRolesResponse.d.mts +2 -2
- package/dist/esm/api/types/AccountsResponse.d.mts +2 -2
- package/dist/esm/api/types/AddAssetResponse.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/AssetCommon.d.mts +1 -1
- package/dist/esm/api/types/AssetCommonWithIncludes.d.mts +5 -5
- package/dist/esm/api/types/AssetShareParams.d.mts +5 -5
- package/dist/esm/api/types/AssetWithIncludes.d.mts +3 -3
- package/dist/esm/api/types/AttachmentInput.d.mts +11 -0
- package/dist/esm/api/types/AttachmentInput.mjs +2 -0
- package/dist/esm/api/types/AuditLogsWithIncludesResponse.d.mts +2 -2
- package/dist/esm/api/types/AuditLogwithIncludes.d.mts +4 -4
- package/dist/esm/api/types/BadRequest.d.mts +3 -3
- package/dist/esm/api/types/BooleanValue.d.mts +2 -2
- package/dist/esm/api/types/Comment.d.mts +18 -6
- 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/CommentResponse.d.mts +1 -1
- package/dist/esm/api/types/CommentSort.d.mts +10 -0
- package/dist/esm/api/types/CommentSort.mjs +10 -0
- package/dist/esm/api/types/CommentWithIncludes.d.mts +3 -3
- package/dist/esm/api/types/CommentWithIncludesResponse.d.mts +1 -1
- package/dist/esm/api/types/CommentsWithIncludesResponse.d.mts +2 -2
- package/dist/esm/api/types/Conflict.d.mts +3 -3
- package/dist/esm/api/types/DateDefinition.d.mts +3 -4
- package/dist/esm/api/types/DateDefinitionParams.d.mts +3 -4
- package/dist/esm/api/types/DateDefinitionWithIncludes.d.mts +2 -2
- package/dist/esm/api/types/DateValue.d.mts +2 -2
- package/dist/esm/api/types/FieldDefinition.d.mts +3 -3
- package/dist/esm/api/types/FieldDefinitionResponse.d.mts +1 -1
- package/dist/esm/api/types/FieldDefinitionWithIncludes.d.mts +3 -3
- package/dist/esm/api/types/FieldDefinitionsWithIncludesResponse.d.mts +2 -2
- package/dist/esm/api/types/FileAssetsWithIncludesResponse.d.mts +2 -2
- package/dist/esm/api/types/FileCopyResponse.d.mts +1 -1
- package/dist/esm/api/types/FileRemoteUploadResponse.d.mts +1 -1
- package/dist/esm/api/types/FileResponse.d.mts +1 -1
- package/dist/esm/api/types/FileUploadStatus.d.mts +2 -2
- package/dist/esm/api/types/FileUploadStatusResponse.d.mts +1 -1
- package/dist/esm/api/types/FileWithIncludes.d.mts +2 -2
- package/dist/esm/api/types/FileWithIncludesResponse.d.mts +1 -1
- package/dist/esm/api/types/FileWithUploadUrls.d.mts +2 -2
- package/dist/esm/api/types/FileWithUploadUrlsResponse.d.mts +1 -1
- package/dist/esm/api/types/File_.d.mts +3 -3
- package/dist/esm/api/types/Filters.d.mts +9 -9
- package/dist/esm/api/types/Folder.d.mts +2 -2
- package/dist/esm/api/types/FolderAssetsWithIncludesResponse.d.mts +2 -2
- package/dist/esm/api/types/FolderCopyResponse.d.mts +1 -1
- package/dist/esm/api/types/FolderResponse.d.mts +1 -1
- package/dist/esm/api/types/FolderWithIncludes.d.mts +6 -6
- package/dist/esm/api/types/FolderWithIncludesResponse.d.mts +1 -1
- package/dist/esm/api/types/FoldersWithIncludesResponse.d.mts +2 -2
- package/dist/esm/api/types/Forbidden.d.mts +3 -3
- package/dist/esm/api/types/IntegerValue.d.mts +2 -2
- 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/Links.d.mts +1 -1
- package/dist/esm/api/types/LongTextDefinition.d.mts +1 -2
- package/dist/esm/api/types/LongTextDefinitionWithIncludes.d.mts +2 -2
- package/dist/esm/api/types/MediaLinkCommon.d.mts +1 -1
- package/dist/esm/api/types/MediaLinksCollection.d.mts +8 -8
- package/dist/esm/api/types/Mention.d.mts +10 -0
- package/dist/esm/api/types/Mention.mjs +2 -0
- package/dist/esm/api/types/MetadataField.d.mts +3 -3
- package/dist/esm/api/types/MetadataResponse.d.mts +1 -1
- package/dist/esm/api/types/MetadataWithDefinition.d.mts +1 -1
- package/dist/esm/api/types/MultiSelectValue.d.mts +2 -2
- package/dist/esm/api/types/MultiUserValue.d.mts +3 -3
- package/dist/esm/api/types/NotFound.d.mts +3 -3
- package/dist/esm/api/types/NumberDefinition.d.mts +1 -1
- package/dist/esm/api/types/NumberDefinitionParams.d.mts +1 -1
- package/dist/esm/api/types/NumberDefinitionWithIncludes.d.mts +2 -2
- package/dist/esm/api/types/NumberValue.d.mts +2 -2
- package/dist/esm/api/types/OriginalMediaLink.d.mts +2 -2
- package/dist/esm/api/types/Profile.d.mts +1 -1
- package/dist/esm/api/types/ProfileResponse.d.mts +1 -1
- package/dist/esm/api/types/Project.d.mts +1 -1
- package/dist/esm/api/types/ProjectResponse.d.mts +1 -1
- package/dist/esm/api/types/ProjectUserRolesResponse.d.mts +2 -2
- package/dist/esm/api/types/ProjectWithIncludes.d.mts +3 -3
- package/dist/esm/api/types/ProjectWithIncludesResponse.d.mts +1 -1
- package/dist/esm/api/types/ProjectsWithIncludesResponse.d.mts +2 -2
- package/dist/esm/api/types/RatingDefinition.d.mts +2 -2
- package/dist/esm/api/types/RatingDefinitionParams.d.mts +2 -2
- package/dist/esm/api/types/RatingDefinitionWithIncludes.d.mts +2 -2
- package/dist/esm/api/types/RemoveAssetResponse.d.mts +1 -1
- package/dist/esm/api/types/RenditionMediaLink.d.mts +2 -2
- package/dist/esm/api/types/SelectDefinition.d.mts +3 -3
- package/dist/esm/api/types/SelectDefinitionParams.d.mts +2 -2
- package/dist/esm/api/types/SelectDefinitionWithIncludes.d.mts +2 -2
- package/dist/esm/api/types/SelectMultiDefinition.d.mts +3 -3
- package/dist/esm/api/types/SelectMultiDefinitionParams.d.mts +2 -2
- package/dist/esm/api/types/SelectMultiDefinitionWithIncludes.d.mts +2 -2
- package/dist/esm/api/types/SelectValue.d.mts +2 -2
- package/dist/esm/api/types/Share.d.mts +6 -6
- package/dist/esm/api/types/ShareResponse.d.mts +1 -1
- package/dist/esm/api/types/ShareReviewersResponse.d.mts +2 -2
- package/dist/esm/api/types/SharesResponse.d.mts +2 -2
- package/dist/esm/api/types/SingleUserValue.d.mts +3 -3
- package/dist/esm/api/types/TextDefinition.d.mts +1 -2
- package/dist/esm/api/types/TextDefinitionWithIncludes.d.mts +2 -2
- 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/TextValue.d.mts +2 -2
- package/dist/esm/api/types/ToggleDefinition.d.mts +1 -1
- package/dist/esm/api/types/ToggleDefinitionParams.d.mts +2 -2
- package/dist/esm/api/types/ToggleDefinitionWithIncludes.d.mts +2 -2
- package/dist/esm/api/types/TooManyRequests.d.mts +3 -3
- package/dist/esm/api/types/Unauthorized.d.mts +3 -3
- package/dist/esm/api/types/UnprocessableContent.d.mts +3 -3
- package/dist/esm/api/types/UpdateDateDefinitionParams.d.mts +6 -7
- package/dist/esm/api/types/UpdateLongTextDefinitionParams.d.mts +1 -1
- package/dist/esm/api/types/UpdateNumberDefinitionParams.d.mts +4 -4
- package/dist/esm/api/types/UpdateRatingDefinitionParams.d.mts +5 -5
- package/dist/esm/api/types/UpdateSelectDefinitionParams.d.mts +5 -5
- package/dist/esm/api/types/UpdateSelectMultiDefinitionParams.d.mts +5 -5
- package/dist/esm/api/types/UpdateTextDefinitionParams.d.mts +1 -1
- package/dist/esm/api/types/UpdateToggleDefinitionParams.d.mts +3 -3
- package/dist/esm/api/types/UpdateUserMultiDefinitionParams.d.mts +3 -4
- package/dist/esm/api/types/UpdateUserRolesResponse.d.mts +1 -1
- package/dist/esm/api/types/UpdateUserSingleDefinitionParams.d.mts +3 -4
- package/dist/esm/api/types/User.d.mts +5 -5
- package/dist/esm/api/types/UserMultiDefinition.d.mts +0 -1
- package/dist/esm/api/types/UserMultiDefinitionParams.d.mts +1 -2
- package/dist/esm/api/types/UserMultiDefinitionWithIncludes.d.mts +2 -2
- package/dist/esm/api/types/UserRole.d.mts +1 -1
- package/dist/esm/api/types/UserSingleDefinition.d.mts +0 -1
- package/dist/esm/api/types/UserSingleDefinitionParams.d.mts +1 -2
- package/dist/esm/api/types/UserSingleDefinitionWithIncludes.d.mts +2 -2
- package/dist/esm/api/types/VersionStack.d.mts +2 -2
- package/dist/esm/api/types/VersionStackAssetsWithIncludesResponse.d.mts +2 -2
- package/dist/esm/api/types/VersionStackCopyResponse.d.mts +1 -1
- package/dist/esm/api/types/VersionStackResponse.d.mts +1 -1
- package/dist/esm/api/types/VersionStackWithIncludes.d.mts +6 -6
- package/dist/esm/api/types/VersionStackWithIncludesResponse.d.mts +1 -1
- package/dist/esm/api/types/VersionStacksWithIncludesResponse.d.mts +2 -2
- package/dist/esm/api/types/Webhook.d.mts +3 -3
- package/dist/esm/api/types/WebhookCreateResponse.d.mts +1 -1
- package/dist/esm/api/types/WebhookResponse.d.mts +1 -1
- package/dist/esm/api/types/WebhookWithIncludes.d.mts +2 -2
- package/dist/esm/api/types/WebhookWithIncludesResponse.d.mts +1 -1
- package/dist/esm/api/types/WebhooksWithIncludesResponse.d.mts +2 -2
- package/dist/esm/api/types/WorkspaceParams.d.mts +1 -1
- package/dist/esm/api/types/WorkspaceResponse.d.mts +1 -1
- package/dist/esm/api/types/WorkspaceUserRolesResponse.d.mts +2 -2
- package/dist/esm/api/types/WorkspaceWithIncludes.d.mts +2 -2
- package/dist/esm/api/types/WorkspaceWithIncludesResponse.d.mts +1 -1
- package/dist/esm/api/types/WorkspacesWithIncludesResponse.d.mts +2 -2
- package/dist/esm/api/types/index.d.mts +154 -143
- package/dist/esm/api/types/index.mjs +154 -143
- package/dist/esm/auth/BearerAuthProvider.d.mts +20 -0
- package/dist/esm/auth/BearerAuthProvider.mjs +42 -0
- package/dist/esm/auth/index.d.mts +1 -0
- package/dist/esm/auth/index.mjs +1 -0
- package/dist/esm/core/auth/AuthProvider.d.mts +5 -2
- package/dist/esm/core/auth/BearerToken.d.mts +3 -1
- package/dist/esm/core/auth/BearerToken.mjs +7 -6
- package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
- package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
- package/dist/esm/core/auth/index.d.mts +1 -0
- package/dist/esm/core/auth/index.mjs +1 -0
- package/dist/esm/core/exports.d.mts +2 -0
- package/dist/esm/core/exports.mjs +2 -0
- package/dist/esm/core/fetcher/APIResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +5 -6
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +4 -4
- package/dist/esm/core/fetcher/Fetcher.d.mts +12 -6
- package/dist/esm/core/fetcher/Fetcher.mjs +210 -9
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +1 -1
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +2 -1
- package/dist/esm/core/fetcher/getRequestBody.d.mts +1 -1
- package/dist/esm/core/fetcher/getRequestBody.mjs +4 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +21 -7
- package/dist/esm/core/fetcher/index.d.mts +2 -0
- package/dist/esm/core/fetcher/index.mjs +1 -0
- package/dist/esm/core/fetcher/makePassthroughRequest.d.mts +49 -0
- package/dist/esm/core/fetcher/makePassthroughRequest.mjs +132 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +6 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +30 -13
- package/dist/esm/core/fetcher/requestWithRetries.mjs +3 -12
- package/dist/esm/core/fetcher/signals.d.mts +1 -7
- package/dist/esm/core/fetcher/signals.mjs +0 -12
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/core/headers.mjs +6 -4
- package/dist/esm/core/index.d.mts +4 -2
- package/dist/esm/core/index.mjs +4 -2
- package/dist/esm/core/logging/exports.d.mts +18 -0
- package/dist/esm/core/logging/exports.mjs +9 -0
- package/dist/esm/core/logging/index.d.mts +1 -0
- package/dist/esm/core/logging/index.mjs +1 -0
- package/dist/esm/core/logging/logger.d.mts +126 -0
- package/dist/esm/core/logging/logger.mjs +138 -0
- package/dist/esm/core/pagination/Page.d.mts +33 -0
- package/dist/esm/core/pagination/Page.mjs +97 -0
- package/dist/esm/core/pagination/exports.d.mts +1 -0
- package/dist/esm/core/pagination/exports.mjs +1 -0
- package/dist/esm/core/pagination/index.d.mts +1 -0
- package/dist/esm/core/pagination/index.mjs +1 -0
- package/dist/esm/core/runtime/runtime.mjs +17 -15
- package/dist/esm/core/url/encodePathParam.d.mts +1 -0
- package/dist/esm/core/url/encodePathParam.mjs +18 -0
- package/dist/esm/core/url/index.d.mts +1 -0
- package/dist/esm/core/url/index.mjs +1 -0
- package/dist/esm/core/url/join.mjs +3 -4
- package/dist/esm/errors/FrameioError.d.mts +1 -1
- package/dist/esm/errors/FrameioError.mjs +6 -2
- package/dist/esm/errors/FrameioTimeoutError.mjs +5 -1
- package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
- package/dist/esm/errors/handleNonStatusCodeError.mjs +29 -0
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/index.d.mts +3 -1
- package/dist/esm/index.mjs +2 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +182 -8
- package/reference.md +1266 -1011
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
- package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
|
@@ -19,25 +19,27 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
19
19
|
}
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
|
-
import
|
|
22
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
23
|
+
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
23
24
|
import * as core from "../../../../core/index.mjs";
|
|
24
|
-
import * as
|
|
25
|
-
import {
|
|
25
|
+
import * as environments from "../../../../environments.mjs";
|
|
26
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
26
27
|
import * as errors from "../../../../errors/index.mjs";
|
|
28
|
+
import * as Frameio from "../../../index.mjs";
|
|
27
29
|
/**
|
|
28
30
|
* Manage Comments and related operations.
|
|
29
31
|
*/
|
|
30
|
-
export class
|
|
31
|
-
constructor(
|
|
32
|
-
this._options =
|
|
32
|
+
export class CommentsClient {
|
|
33
|
+
constructor(options) {
|
|
34
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
33
35
|
}
|
|
34
36
|
/**
|
|
35
|
-
*
|
|
37
|
+
* Delete an attachment from a comment. <br/>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
36
38
|
*
|
|
37
|
-
* @param {Frameio.Uuid}
|
|
38
|
-
* @param {Frameio.Uuid}
|
|
39
|
-
* @param {Frameio.
|
|
40
|
-
* @param {
|
|
39
|
+
* @param {Frameio.Uuid} account_id
|
|
40
|
+
* @param {Frameio.Uuid} comment_id
|
|
41
|
+
* @param {Frameio.Uuid} attachment_id
|
|
42
|
+
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
43
|
*
|
|
42
44
|
* @throws {@link Frameio.BadRequestError}
|
|
43
45
|
* @throws {@link Frameio.UnauthorizedError}
|
|
@@ -48,37 +50,29 @@ export class Comments {
|
|
|
48
50
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
49
51
|
*
|
|
50
52
|
* @example
|
|
51
|
-
* await client.comments.
|
|
52
|
-
* timestamp_as_timecode: true,
|
|
53
|
-
* include: "owner"
|
|
54
|
-
* })
|
|
53
|
+
* await client.comments.deleteAttachment("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b")
|
|
55
54
|
*/
|
|
56
|
-
|
|
57
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
55
|
+
deleteAttachment(account_id, comment_id, attachment_id, requestOptions) {
|
|
56
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteAttachment(account_id, comment_id, attachment_id, requestOptions));
|
|
58
57
|
}
|
|
59
|
-
|
|
60
|
-
return __awaiter(this,
|
|
61
|
-
var _a, _b, _c, _d;
|
|
62
|
-
const
|
|
63
|
-
const
|
|
64
|
-
if (timestampAsTimecode != null) {
|
|
65
|
-
_queryParams["timestamp_as_timecode"] = timestampAsTimecode.toString();
|
|
66
|
-
}
|
|
67
|
-
if (include != null) {
|
|
68
|
-
_queryParams["include"] = include;
|
|
69
|
-
}
|
|
70
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
58
|
+
__deleteAttachment(account_id, comment_id, attachment_id, requestOptions) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
61
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
62
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
71
63
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
72
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${
|
|
73
|
-
method: "
|
|
64
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/comments/${core.url.encodePathParam(comment_id)}/attachments/${core.url.encodePathParam(attachment_id)}`),
|
|
65
|
+
method: "DELETE",
|
|
74
66
|
headers: _headers,
|
|
75
|
-
queryParameters:
|
|
76
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
77
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
67
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
68
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
69
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
78
70
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
71
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
72
|
+
logging: this._options.logging,
|
|
79
73
|
});
|
|
80
74
|
if (_response.ok) {
|
|
81
|
-
return { data:
|
|
75
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
82
76
|
}
|
|
83
77
|
if (_response.error.reason === "status-code") {
|
|
84
78
|
switch (_response.error.statusCode) {
|
|
@@ -104,29 +98,16 @@ export class Comments {
|
|
|
104
98
|
});
|
|
105
99
|
}
|
|
106
100
|
}
|
|
107
|
-
|
|
108
|
-
case "non-json":
|
|
109
|
-
throw new errors.FrameioError({
|
|
110
|
-
statusCode: _response.error.statusCode,
|
|
111
|
-
body: _response.error.rawBody,
|
|
112
|
-
rawResponse: _response.rawResponse,
|
|
113
|
-
});
|
|
114
|
-
case "timeout":
|
|
115
|
-
throw new errors.FrameioTimeoutError("Timeout exceeded when calling GET /v4/accounts/{account_id}/comments/{comment_id}.");
|
|
116
|
-
case "unknown":
|
|
117
|
-
throw new errors.FrameioError({
|
|
118
|
-
message: _response.error.errorMessage,
|
|
119
|
-
rawResponse: _response.rawResponse,
|
|
120
|
-
});
|
|
121
|
-
}
|
|
101
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/v4/accounts/{account_id}/comments/{comment_id}/attachments/{attachment_id}");
|
|
122
102
|
});
|
|
123
103
|
}
|
|
124
104
|
/**
|
|
125
|
-
*
|
|
105
|
+
* Create an attachment for an existing comment. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
126
106
|
*
|
|
127
|
-
* @param {Frameio.Uuid}
|
|
128
|
-
* @param {Frameio.Uuid}
|
|
129
|
-
* @param {
|
|
107
|
+
* @param {Frameio.Uuid} account_id
|
|
108
|
+
* @param {Frameio.Uuid} comment_id
|
|
109
|
+
* @param {Frameio.CreateAttachmentParams} request
|
|
110
|
+
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
130
111
|
*
|
|
131
112
|
* @throws {@link Frameio.BadRequestError}
|
|
132
113
|
* @throws {@link Frameio.UnauthorizedError}
|
|
@@ -137,26 +118,38 @@ export class Comments {
|
|
|
137
118
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
138
119
|
*
|
|
139
120
|
* @example
|
|
140
|
-
* await client.comments.
|
|
121
|
+
* await client.comments.createAttachment("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
122
|
+
* data: {
|
|
123
|
+
* file_size: 1024000,
|
|
124
|
+
* media_type: "image/png",
|
|
125
|
+
* name: "screenshot.png"
|
|
126
|
+
* }
|
|
127
|
+
* })
|
|
141
128
|
*/
|
|
142
|
-
|
|
143
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
129
|
+
createAttachment(account_id, comment_id, request, requestOptions) {
|
|
130
|
+
return core.HttpResponsePromise.fromPromise(this.__createAttachment(account_id, comment_id, request, requestOptions));
|
|
144
131
|
}
|
|
145
|
-
|
|
132
|
+
__createAttachment(account_id, comment_id, request, requestOptions) {
|
|
146
133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
-
var _a, _b, _c, _d;
|
|
148
|
-
|
|
134
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
135
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
136
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
149
137
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
150
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${
|
|
151
|
-
method: "
|
|
138
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/comments/${core.url.encodePathParam(comment_id)}/attachments`),
|
|
139
|
+
method: "POST",
|
|
152
140
|
headers: _headers,
|
|
141
|
+
contentType: "application/json",
|
|
153
142
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
154
|
-
|
|
155
|
-
|
|
143
|
+
requestType: "json",
|
|
144
|
+
body: request,
|
|
145
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
146
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
156
147
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
148
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
149
|
+
logging: this._options.logging,
|
|
157
150
|
});
|
|
158
151
|
if (_response.ok) {
|
|
159
|
-
return { data:
|
|
152
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
160
153
|
}
|
|
161
154
|
if (_response.error.reason === "status-code") {
|
|
162
155
|
switch (_response.error.statusCode) {
|
|
@@ -182,30 +175,16 @@ export class Comments {
|
|
|
182
175
|
});
|
|
183
176
|
}
|
|
184
177
|
}
|
|
185
|
-
|
|
186
|
-
case "non-json":
|
|
187
|
-
throw new errors.FrameioError({
|
|
188
|
-
statusCode: _response.error.statusCode,
|
|
189
|
-
body: _response.error.rawBody,
|
|
190
|
-
rawResponse: _response.rawResponse,
|
|
191
|
-
});
|
|
192
|
-
case "timeout":
|
|
193
|
-
throw new errors.FrameioTimeoutError("Timeout exceeded when calling DELETE /v4/accounts/{account_id}/comments/{comment_id}.");
|
|
194
|
-
case "unknown":
|
|
195
|
-
throw new errors.FrameioError({
|
|
196
|
-
message: _response.error.errorMessage,
|
|
197
|
-
rawResponse: _response.rawResponse,
|
|
198
|
-
});
|
|
199
|
-
}
|
|
178
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v4/accounts/{account_id}/comments/{comment_id}/attachments");
|
|
200
179
|
});
|
|
201
180
|
}
|
|
202
181
|
/**
|
|
203
|
-
*
|
|
182
|
+
* Show a single comment on a file. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
204
183
|
*
|
|
205
|
-
* @param {Frameio.Uuid}
|
|
206
|
-
* @param {Frameio.Uuid}
|
|
207
|
-
* @param {Frameio.
|
|
208
|
-
* @param {
|
|
184
|
+
* @param {Frameio.Uuid} account_id
|
|
185
|
+
* @param {Frameio.Uuid} comment_id
|
|
186
|
+
* @param {Frameio.CommentsShowRequest} request
|
|
187
|
+
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
209
188
|
*
|
|
210
189
|
* @throws {@link Frameio.BadRequestError}
|
|
211
190
|
* @throws {@link Frameio.UnauthorizedError}
|
|
@@ -216,39 +195,34 @@ export class Comments {
|
|
|
216
195
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
217
196
|
*
|
|
218
197
|
* @example
|
|
219
|
-
* await client.comments.
|
|
198
|
+
* await client.comments.show("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
220
199
|
* timestamp_as_timecode: true,
|
|
221
|
-
*
|
|
222
|
-
* 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}]",
|
|
223
|
-
* completed: false,
|
|
224
|
-
* page: 4,
|
|
225
|
-
* text: "This is great!"
|
|
226
|
-
* }
|
|
200
|
+
* include: "owner"
|
|
227
201
|
* })
|
|
228
202
|
*/
|
|
229
|
-
|
|
230
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
203
|
+
show(account_id, comment_id, request = {}, requestOptions) {
|
|
204
|
+
return core.HttpResponsePromise.fromPromise(this.__show(account_id, comment_id, request, requestOptions));
|
|
231
205
|
}
|
|
232
|
-
|
|
233
|
-
return __awaiter(this,
|
|
234
|
-
var _a, _b, _c, _d;
|
|
235
|
-
const { timestamp_as_timecode: timestampAsTimecode } = request
|
|
236
|
-
const _queryParams = {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
|
|
206
|
+
__show(account_id_1, comment_id_1) {
|
|
207
|
+
return __awaiter(this, arguments, void 0, function* (account_id, comment_id, request = {}, requestOptions) {
|
|
208
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
209
|
+
const { timestamp_as_timecode: timestampAsTimecode, include } = request;
|
|
210
|
+
const _queryParams = {
|
|
211
|
+
timestamp_as_timecode: timestampAsTimecode,
|
|
212
|
+
include: include != null ? include : undefined,
|
|
213
|
+
};
|
|
214
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
215
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
241
216
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
242
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${
|
|
243
|
-
method: "
|
|
217
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/comments/${core.url.encodePathParam(comment_id)}`),
|
|
218
|
+
method: "GET",
|
|
244
219
|
headers: _headers,
|
|
245
|
-
contentType: "application/json",
|
|
246
220
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
250
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
221
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
222
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
251
223
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
224
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
225
|
+
logging: this._options.logging,
|
|
252
226
|
});
|
|
253
227
|
if (_response.ok) {
|
|
254
228
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -277,30 +251,83 @@ export class Comments {
|
|
|
277
251
|
});
|
|
278
252
|
}
|
|
279
253
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
254
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/comments/{comment_id}");
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Delete comment from an asset. <br/>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
259
|
+
*
|
|
260
|
+
* @param {Frameio.Uuid} account_id
|
|
261
|
+
* @param {Frameio.Uuid} comment_id
|
|
262
|
+
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
263
|
+
*
|
|
264
|
+
* @throws {@link Frameio.BadRequestError}
|
|
265
|
+
* @throws {@link Frameio.UnauthorizedError}
|
|
266
|
+
* @throws {@link Frameio.ForbiddenError}
|
|
267
|
+
* @throws {@link Frameio.NotFoundError}
|
|
268
|
+
* @throws {@link Frameio.ConflictError}
|
|
269
|
+
* @throws {@link Frameio.UnprocessableEntityError}
|
|
270
|
+
* @throws {@link Frameio.TooManyRequestsError}
|
|
271
|
+
*
|
|
272
|
+
* @example
|
|
273
|
+
* await client.comments.delete("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b")
|
|
274
|
+
*/
|
|
275
|
+
delete(account_id, comment_id, requestOptions) {
|
|
276
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(account_id, comment_id, requestOptions));
|
|
277
|
+
}
|
|
278
|
+
__delete(account_id, comment_id, requestOptions) {
|
|
279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
281
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
282
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
283
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
284
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/comments/${core.url.encodePathParam(comment_id)}`),
|
|
285
|
+
method: "DELETE",
|
|
286
|
+
headers: _headers,
|
|
287
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
288
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
289
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
290
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
291
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
292
|
+
logging: this._options.logging,
|
|
293
|
+
});
|
|
294
|
+
if (_response.ok) {
|
|
295
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
294
296
|
}
|
|
297
|
+
if (_response.error.reason === "status-code") {
|
|
298
|
+
switch (_response.error.statusCode) {
|
|
299
|
+
case 400:
|
|
300
|
+
throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
|
|
301
|
+
case 401:
|
|
302
|
+
throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
303
|
+
case 403:
|
|
304
|
+
throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
305
|
+
case 404:
|
|
306
|
+
throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
|
|
307
|
+
case 409:
|
|
308
|
+
throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
|
|
309
|
+
case 422:
|
|
310
|
+
throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
311
|
+
case 429:
|
|
312
|
+
throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
313
|
+
default:
|
|
314
|
+
throw new errors.FrameioError({
|
|
315
|
+
statusCode: _response.error.statusCode,
|
|
316
|
+
body: _response.error.body,
|
|
317
|
+
rawResponse: _response.rawResponse,
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/v4/accounts/{account_id}/comments/{comment_id}");
|
|
295
322
|
});
|
|
296
323
|
}
|
|
297
324
|
/**
|
|
298
|
-
*
|
|
325
|
+
* Update comment on given asset.<br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
299
326
|
*
|
|
300
|
-
* @param {Frameio.Uuid}
|
|
301
|
-
* @param {Frameio.Uuid}
|
|
302
|
-
* @param {Frameio.
|
|
303
|
-
* @param {
|
|
327
|
+
* @param {Frameio.Uuid} account_id
|
|
328
|
+
* @param {Frameio.Uuid} comment_id
|
|
329
|
+
* @param {Frameio.UpdateCommentParams} request
|
|
330
|
+
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
304
331
|
*
|
|
305
332
|
* @throws {@link Frameio.BadRequestError}
|
|
306
333
|
* @throws {@link Frameio.UnauthorizedError}
|
|
@@ -311,46 +338,56 @@ export class Comments {
|
|
|
311
338
|
* @throws {@link Frameio.TooManyRequestsError}
|
|
312
339
|
*
|
|
313
340
|
* @example
|
|
314
|
-
* await client.comments.
|
|
341
|
+
* await client.comments.update("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
315
342
|
* timestamp_as_timecode: true,
|
|
316
|
-
*
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
*
|
|
343
|
+
* data: {
|
|
344
|
+
* anchor: {
|
|
345
|
+
* x: 0.5,
|
|
346
|
+
* y: 0.5
|
|
347
|
+
* },
|
|
348
|
+
* 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}]",
|
|
349
|
+
* completed: false,
|
|
350
|
+
* duration: 10,
|
|
351
|
+
* links: [{
|
|
352
|
+
* end_index: 13,
|
|
353
|
+
* start_index: 5,
|
|
354
|
+
* url: "https://www.example.com"
|
|
355
|
+
* }],
|
|
356
|
+
* page: 4,
|
|
357
|
+
* text: "This is great!",
|
|
358
|
+
* text_review_annotation: {
|
|
359
|
+
* selection_text: "existing copy",
|
|
360
|
+
* suggested_text: "updated copy"
|
|
361
|
+
* },
|
|
362
|
+
* timestamp: 100
|
|
363
|
+
* }
|
|
320
364
|
* })
|
|
321
365
|
*/
|
|
322
|
-
|
|
323
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
366
|
+
update(account_id, comment_id, request, requestOptions) {
|
|
367
|
+
return core.HttpResponsePromise.fromPromise(this.__update(account_id, comment_id, request, requestOptions));
|
|
324
368
|
}
|
|
325
|
-
|
|
326
|
-
return __awaiter(this,
|
|
327
|
-
var _a, _b, _c, _d;
|
|
328
|
-
const { timestamp_as_timecode: timestampAsTimecode
|
|
329
|
-
const _queryParams = {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
_queryParams["include"] = include;
|
|
335
|
-
}
|
|
336
|
-
if (after != null) {
|
|
337
|
-
_queryParams["after"] = after;
|
|
338
|
-
}
|
|
339
|
-
if (pageSize != null) {
|
|
340
|
-
_queryParams["page_size"] = pageSize.toString();
|
|
341
|
-
}
|
|
342
|
-
if (includeTotalCount != null) {
|
|
343
|
-
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
344
|
-
}
|
|
345
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
369
|
+
__update(account_id, comment_id, request, requestOptions) {
|
|
370
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
371
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
372
|
+
const { timestamp_as_timecode: timestampAsTimecode } = request, _body = __rest(request, ["timestamp_as_timecode"]);
|
|
373
|
+
const _queryParams = {
|
|
374
|
+
timestamp_as_timecode: timestampAsTimecode,
|
|
375
|
+
};
|
|
376
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
377
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
346
378
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
347
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${
|
|
348
|
-
method: "
|
|
379
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/comments/${core.url.encodePathParam(comment_id)}`),
|
|
380
|
+
method: "PATCH",
|
|
349
381
|
headers: _headers,
|
|
382
|
+
contentType: "application/json",
|
|
350
383
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
351
|
-
|
|
352
|
-
|
|
384
|
+
requestType: "json",
|
|
385
|
+
body: _body,
|
|
386
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
387
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
353
388
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
389
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
390
|
+
logging: this._options.logging,
|
|
354
391
|
});
|
|
355
392
|
if (_response.ok) {
|
|
356
393
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -379,30 +416,104 @@ export class Comments {
|
|
|
379
416
|
});
|
|
380
417
|
}
|
|
381
418
|
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
419
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/v4/accounts/{account_id}/comments/{comment_id}");
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* List comments on a given asset. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
424
|
+
*
|
|
425
|
+
* @param {Frameio.Uuid} account_id
|
|
426
|
+
* @param {Frameio.Uuid} file_id
|
|
427
|
+
* @param {Frameio.CommentsIndexRequest} request
|
|
428
|
+
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
429
|
+
*
|
|
430
|
+
* @throws {@link Frameio.BadRequestError}
|
|
431
|
+
* @throws {@link Frameio.UnauthorizedError}
|
|
432
|
+
* @throws {@link Frameio.ForbiddenError}
|
|
433
|
+
* @throws {@link Frameio.NotFoundError}
|
|
434
|
+
* @throws {@link Frameio.ConflictError}
|
|
435
|
+
* @throws {@link Frameio.UnprocessableEntityError}
|
|
436
|
+
* @throws {@link Frameio.TooManyRequestsError}
|
|
437
|
+
*
|
|
438
|
+
* @example
|
|
439
|
+
* await client.comments.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
440
|
+
* timestamp_as_timecode: true,
|
|
441
|
+
* include: "owner",
|
|
442
|
+
* sort: "owner_asc",
|
|
443
|
+
* after: "<opaque_cursor>",
|
|
444
|
+
* page_size: 10,
|
|
445
|
+
* include_total_count: false
|
|
446
|
+
* })
|
|
447
|
+
*/
|
|
448
|
+
index(account_id_1, file_id_1) {
|
|
449
|
+
return __awaiter(this, arguments, void 0, function* (account_id, file_id, _request = {}, requestOptions) {
|
|
450
|
+
var _a, _b;
|
|
451
|
+
const list = core.HttpResponsePromise.interceptFunction((_requestUrl) => __awaiter(this, void 0, void 0, function* () {
|
|
452
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
453
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
454
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
455
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
456
|
+
url: _requestUrl,
|
|
457
|
+
method: "GET",
|
|
458
|
+
headers: _headers,
|
|
459
|
+
timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
|
|
460
|
+
maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
|
|
461
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
462
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
463
|
+
logging: this._options.logging,
|
|
464
|
+
});
|
|
465
|
+
if (_response.ok) {
|
|
466
|
+
return {
|
|
467
|
+
data: _response.body,
|
|
394
468
|
rawResponse: _response.rawResponse,
|
|
395
|
-
}
|
|
396
|
-
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
if (_response.error.reason === "status-code") {
|
|
472
|
+
switch (_response.error.statusCode) {
|
|
473
|
+
case 400:
|
|
474
|
+
throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
|
|
475
|
+
case 401:
|
|
476
|
+
throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
477
|
+
case 403:
|
|
478
|
+
throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
479
|
+
case 404:
|
|
480
|
+
throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
|
|
481
|
+
case 409:
|
|
482
|
+
throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
|
|
483
|
+
case 422:
|
|
484
|
+
throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
485
|
+
case 429:
|
|
486
|
+
throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
487
|
+
default:
|
|
488
|
+
throw new errors.FrameioError({
|
|
489
|
+
statusCode: _response.error.statusCode,
|
|
490
|
+
body: _response.error.body,
|
|
491
|
+
rawResponse: _response.rawResponse,
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/files/{file_id}/comments");
|
|
496
|
+
}));
|
|
497
|
+
const _baseUrl = (_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.FrameioEnvironment.Default;
|
|
498
|
+
const dataWithRawResponse = yield list(core.url.join(_baseUrl, `v4/accounts/${core.url.encodePathParam(account_id)}/files/${core.url.encodePathParam(file_id)}/comments`)).withRawResponse();
|
|
499
|
+
return new core.Page({
|
|
500
|
+
response: dataWithRawResponse.data,
|
|
501
|
+
rawResponse: dataWithRawResponse.rawResponse,
|
|
502
|
+
hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.links.next) != null && (response === null || response === void 0 ? void 0 : response.links.next) !== "",
|
|
503
|
+
getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.data) !== null && _a !== void 0 ? _a : []; },
|
|
504
|
+
loadPage: (response) => {
|
|
505
|
+
return list(core.url.join(_baseUrl, response === null || response === void 0 ? void 0 : response.links.next));
|
|
506
|
+
},
|
|
507
|
+
});
|
|
397
508
|
});
|
|
398
509
|
}
|
|
399
510
|
/**
|
|
400
511
|
* Create a comment on a file. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
401
512
|
*
|
|
402
|
-
* @param {Frameio.Uuid}
|
|
403
|
-
* @param {Frameio.Uuid}
|
|
513
|
+
* @param {Frameio.Uuid} account_id
|
|
514
|
+
* @param {Frameio.Uuid} file_id
|
|
404
515
|
* @param {Frameio.CreateCommentParams} request
|
|
405
|
-
* @param {
|
|
516
|
+
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
406
517
|
*
|
|
407
518
|
* @throws {@link Frameio.BadRequestError}
|
|
408
519
|
* @throws {@link Frameio.UnauthorizedError}
|
|
@@ -416,37 +527,65 @@ export class Comments {
|
|
|
416
527
|
* await client.comments.create("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
417
528
|
* timestamp_as_timecode: true,
|
|
418
529
|
* data: {
|
|
530
|
+
* anchor: {
|
|
531
|
+
* x: 0.5,
|
|
532
|
+
* y: 0.5
|
|
533
|
+
* },
|
|
419
534
|
* 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}]",
|
|
535
|
+
* attachments: [{
|
|
536
|
+
* file_size: 1024000,
|
|
537
|
+
* media_type: "image/png",
|
|
538
|
+
* name: "screenshot.png"
|
|
539
|
+
* }],
|
|
420
540
|
* completed: false,
|
|
541
|
+
* duration: 10,
|
|
542
|
+
* links: [{
|
|
543
|
+
* end_index: 13,
|
|
544
|
+
* start_index: 5,
|
|
545
|
+
* url: "https://www.example.com"
|
|
546
|
+
* }],
|
|
421
547
|
* page: 4,
|
|
422
548
|
* text: "This is great!",
|
|
549
|
+
* text_review_annotation: {
|
|
550
|
+
* bounds: [{
|
|
551
|
+
* height: 42,
|
|
552
|
+
* width: 130,
|
|
553
|
+
* x: 12.5,
|
|
554
|
+
* y: 24
|
|
555
|
+
* }],
|
|
556
|
+
* selection_text: "existing copy",
|
|
557
|
+
* suggested_text: "updated copy",
|
|
558
|
+
* text_review_annotation_type: "replace"
|
|
559
|
+
* },
|
|
423
560
|
* timestamp: "00:00:02:12"
|
|
424
561
|
* }
|
|
425
562
|
* })
|
|
426
563
|
*/
|
|
427
|
-
create(
|
|
428
|
-
return core.HttpResponsePromise.fromPromise(this.__create(
|
|
564
|
+
create(account_id, file_id, request, requestOptions) {
|
|
565
|
+
return core.HttpResponsePromise.fromPromise(this.__create(account_id, file_id, request, requestOptions));
|
|
429
566
|
}
|
|
430
|
-
__create(
|
|
567
|
+
__create(account_id, file_id, request, requestOptions) {
|
|
431
568
|
return __awaiter(this, void 0, void 0, function* () {
|
|
432
|
-
var _a, _b, _c, _d;
|
|
569
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
433
570
|
const { timestamp_as_timecode: timestampAsTimecode } = request, _body = __rest(request, ["timestamp_as_timecode"]);
|
|
434
|
-
const _queryParams = {
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
571
|
+
const _queryParams = {
|
|
572
|
+
timestamp_as_timecode: timestampAsTimecode,
|
|
573
|
+
};
|
|
574
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
575
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
439
576
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
440
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${
|
|
577
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/files/${core.url.encodePathParam(file_id)}/comments`),
|
|
441
578
|
method: "POST",
|
|
442
579
|
headers: _headers,
|
|
443
580
|
contentType: "application/json",
|
|
444
581
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
445
582
|
requestType: "json",
|
|
446
583
|
body: _body,
|
|
447
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
448
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
584
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
585
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
449
586
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
587
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
588
|
+
logging: this._options.logging,
|
|
450
589
|
});
|
|
451
590
|
if (_response.ok) {
|
|
452
591
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -475,26 +614,7 @@ export class Comments {
|
|
|
475
614
|
});
|
|
476
615
|
}
|
|
477
616
|
}
|
|
478
|
-
|
|
479
|
-
case "non-json":
|
|
480
|
-
throw new errors.FrameioError({
|
|
481
|
-
statusCode: _response.error.statusCode,
|
|
482
|
-
body: _response.error.rawBody,
|
|
483
|
-
rawResponse: _response.rawResponse,
|
|
484
|
-
});
|
|
485
|
-
case "timeout":
|
|
486
|
-
throw new errors.FrameioTimeoutError("Timeout exceeded when calling POST /v4/accounts/{account_id}/files/{file_id}/comments.");
|
|
487
|
-
case "unknown":
|
|
488
|
-
throw new errors.FrameioError({
|
|
489
|
-
message: _response.error.errorMessage,
|
|
490
|
-
rawResponse: _response.rawResponse,
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
});
|
|
494
|
-
}
|
|
495
|
-
_getAuthorizationHeader() {
|
|
496
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
497
|
-
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
617
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v4/accounts/{account_id}/files/{file_id}/comments");
|
|
498
618
|
});
|
|
499
619
|
}
|
|
500
620
|
}
|