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
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
12
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
13
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
14
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
15
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
16
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
17
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
18
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
19
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
20
|
+
function fulfill(value) { resume("next", value); }
|
|
21
|
+
function reject(value) { resume("throw", value); }
|
|
22
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
23
|
+
};
|
|
24
|
+
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
25
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
26
|
+
var m = o[Symbol.asyncIterator], i;
|
|
27
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
28
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
29
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.Page = void 0;
|
|
33
|
+
/**
|
|
34
|
+
* A page of results from a paginated API.
|
|
35
|
+
*
|
|
36
|
+
* @template T The type of the items in the page.
|
|
37
|
+
* @template R The type of the API response.
|
|
38
|
+
*/
|
|
39
|
+
class Page {
|
|
40
|
+
constructor({ response, rawResponse, hasNextPage, getItems, loadPage, }) {
|
|
41
|
+
this.response = response;
|
|
42
|
+
this.rawResponse = rawResponse;
|
|
43
|
+
this.data = getItems(response);
|
|
44
|
+
this._hasNextPage = hasNextPage;
|
|
45
|
+
this.getItems = getItems;
|
|
46
|
+
this.loadNextPage = loadPage;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Retrieves the next page
|
|
50
|
+
* @returns this
|
|
51
|
+
*/
|
|
52
|
+
getNextPage() {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const { data, rawResponse } = yield this.loadNextPage(this.response).withRawResponse();
|
|
55
|
+
this.response = data;
|
|
56
|
+
this.rawResponse = rawResponse;
|
|
57
|
+
this.data = this.getItems(this.response);
|
|
58
|
+
return this;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @returns whether there is a next page to load
|
|
63
|
+
*/
|
|
64
|
+
hasNextPage() {
|
|
65
|
+
return this._hasNextPage(this.response);
|
|
66
|
+
}
|
|
67
|
+
iterMessages() {
|
|
68
|
+
return __asyncGenerator(this, arguments, function* iterMessages_1() {
|
|
69
|
+
for (const item of this.data) {
|
|
70
|
+
yield yield __await(item);
|
|
71
|
+
}
|
|
72
|
+
while (this.hasNextPage()) {
|
|
73
|
+
yield __await(this.getNextPage());
|
|
74
|
+
for (const item of this.data) {
|
|
75
|
+
yield yield __await(item);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
[Symbol.asyncIterator]() {
|
|
81
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
82
|
+
var _b, e_1, _c, _d;
|
|
83
|
+
try {
|
|
84
|
+
for (var _e = true, _f = __asyncValues(this.iterMessages()), _g; _g = yield __await(_f.next()), _b = _g.done, !_b; _e = true) {
|
|
85
|
+
_d = _g.value;
|
|
86
|
+
_e = false;
|
|
87
|
+
const message = _d;
|
|
88
|
+
yield yield __await(message);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
92
|
+
finally {
|
|
93
|
+
try {
|
|
94
|
+
if (!_e && !_b && (_c = _f.return)) yield __await(_c.call(_f));
|
|
95
|
+
}
|
|
96
|
+
finally { if (e_1) throw e_1.error; }
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.Page = Page;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { Page } from "./Page.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Page } from "./Page.js";
|
|
@@ -71,23 +71,9 @@ function evaluateRuntime() {
|
|
|
71
71
|
version: Bun.version,
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
/**
|
|
75
|
-
* A constant that indicates whether the environment the code is running is Node.JS.
|
|
76
|
-
*/
|
|
77
|
-
const isNode = typeof process !== "undefined" &&
|
|
78
|
-
"version" in process &&
|
|
79
|
-
!!process.version &&
|
|
80
|
-
"versions" in process &&
|
|
81
|
-
!!((_e = process.versions) === null || _e === void 0 ? void 0 : _e.node);
|
|
82
|
-
if (isNode) {
|
|
83
|
-
return {
|
|
84
|
-
type: "node",
|
|
85
|
-
version: process.versions.node,
|
|
86
|
-
parsedVersion: Number(process.versions.node.split(".")[0]),
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
74
|
/**
|
|
90
75
|
* A constant that indicates whether the environment the code is running is in React-Native.
|
|
76
|
+
* This check should come before Node.js detection since React Native may have a process polyfill.
|
|
91
77
|
* https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js
|
|
92
78
|
*/
|
|
93
79
|
const isReactNative = typeof navigator !== "undefined" && (navigator === null || navigator === void 0 ? void 0 : navigator.product) === "ReactNative";
|
|
@@ -96,6 +82,22 @@ function evaluateRuntime() {
|
|
|
96
82
|
type: "react-native",
|
|
97
83
|
};
|
|
98
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* A constant that indicates whether the environment the code is running is Node.JS.
|
|
87
|
+
*
|
|
88
|
+
* We assign `process` to a local variable first to avoid being flagged by
|
|
89
|
+
* bundlers that perform static analysis on `process.versions` (e.g. Next.js
|
|
90
|
+
* Edge Runtime warns about Node.js APIs even when they are guarded).
|
|
91
|
+
*/
|
|
92
|
+
const _process = typeof process !== "undefined" ? process : undefined;
|
|
93
|
+
const isNode = typeof _process !== "undefined" && typeof ((_e = _process.versions) === null || _e === void 0 ? void 0 : _e.node) === "string";
|
|
94
|
+
if (isNode) {
|
|
95
|
+
return {
|
|
96
|
+
type: "node",
|
|
97
|
+
version: _process.versions.node,
|
|
98
|
+
parsedVersion: Number(_process.versions.node.split(".")[0]),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
99
101
|
return {
|
|
100
102
|
type: "unknown",
|
|
101
103
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function encodePathParam(param: unknown): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.encodePathParam = encodePathParam;
|
|
4
|
+
function encodePathParam(param) {
|
|
5
|
+
if (param === null) {
|
|
6
|
+
return "null";
|
|
7
|
+
}
|
|
8
|
+
const typeofParam = typeof param;
|
|
9
|
+
switch (typeofParam) {
|
|
10
|
+
case "undefined":
|
|
11
|
+
return "undefined";
|
|
12
|
+
case "string":
|
|
13
|
+
case "number":
|
|
14
|
+
case "boolean":
|
|
15
|
+
break;
|
|
16
|
+
default:
|
|
17
|
+
param = String(param);
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
return encodeURIComponent(param);
|
|
21
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toQueryString = exports.join = void 0;
|
|
3
|
+
exports.toQueryString = exports.join = exports.encodePathParam = void 0;
|
|
4
|
+
var encodePathParam_js_1 = require("./encodePathParam.js");
|
|
5
|
+
Object.defineProperty(exports, "encodePathParam", { enumerable: true, get: function () { return encodePathParam_js_1.encodePathParam; } });
|
|
4
6
|
var join_js_1 = require("./join.js");
|
|
5
7
|
Object.defineProperty(exports, "join", { enumerable: true, get: function () { return join_js_1.join; } });
|
|
6
8
|
var qs_js_1 = require("./qs.js");
|
|
@@ -14,11 +14,10 @@ function join(base, ...segments) {
|
|
|
14
14
|
url = new URL(base);
|
|
15
15
|
}
|
|
16
16
|
catch (_a) {
|
|
17
|
-
// Fallback to path joining if URL is malformed
|
|
18
17
|
return joinPath(base, ...segments);
|
|
19
18
|
}
|
|
20
19
|
const lastSegment = segments[segments.length - 1];
|
|
21
|
-
const shouldPreserveTrailingSlash = lastSegment
|
|
20
|
+
const shouldPreserveTrailingSlash = lastSegment === null || lastSegment === void 0 ? void 0 : lastSegment.endsWith("/");
|
|
22
21
|
for (const segment of segments) {
|
|
23
22
|
const cleanSegment = trimSlashes(segment);
|
|
24
23
|
if (cleanSegment) {
|
|
@@ -38,7 +37,7 @@ function joinPath(base, ...segments) {
|
|
|
38
37
|
}
|
|
39
38
|
let result = base;
|
|
40
39
|
const lastSegment = segments[segments.length - 1];
|
|
41
|
-
const shouldPreserveTrailingSlash = lastSegment
|
|
40
|
+
const shouldPreserveTrailingSlash = lastSegment === null || lastSegment === void 0 ? void 0 : lastSegment.endsWith("/");
|
|
42
41
|
for (const segment of segments) {
|
|
43
42
|
const cleanSegment = trimSlashes(segment);
|
|
44
43
|
if (cleanSegment) {
|
|
@@ -54,7 +53,7 @@ function joinPathSegments(left, right) {
|
|
|
54
53
|
if (left.endsWith("/")) {
|
|
55
54
|
return left + right;
|
|
56
55
|
}
|
|
57
|
-
return left
|
|
56
|
+
return `${left}/${right}`;
|
|
58
57
|
}
|
|
59
58
|
function trimSlashes(str) {
|
|
60
59
|
if (!str)
|
|
@@ -6,7 +6,11 @@ const json_js_1 = require("../core/json.js");
|
|
|
6
6
|
class FrameioError extends Error {
|
|
7
7
|
constructor({ message, statusCode, body, rawResponse, }) {
|
|
8
8
|
super(buildMessage({ message, statusCode, body }));
|
|
9
|
-
Object.setPrototypeOf(this,
|
|
9
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
10
|
+
if (Error.captureStackTrace) {
|
|
11
|
+
Error.captureStackTrace(this, this.constructor);
|
|
12
|
+
}
|
|
13
|
+
this.name = this.constructor.name;
|
|
10
14
|
this.statusCode = statusCode;
|
|
11
15
|
this.body = body;
|
|
12
16
|
this.rawResponse = rawResponse;
|
|
@@ -14,7 +18,7 @@ class FrameioError extends Error {
|
|
|
14
18
|
}
|
|
15
19
|
exports.FrameioError = FrameioError;
|
|
16
20
|
function buildMessage({ message, statusCode, body, }) {
|
|
17
|
-
|
|
21
|
+
const lines = [];
|
|
18
22
|
if (message != null) {
|
|
19
23
|
lines.push(message);
|
|
20
24
|
}
|
|
@@ -5,7 +5,11 @@ exports.FrameioTimeoutError = void 0;
|
|
|
5
5
|
class FrameioTimeoutError extends Error {
|
|
6
6
|
constructor(message) {
|
|
7
7
|
super(message);
|
|
8
|
-
Object.setPrototypeOf(this,
|
|
8
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
9
|
+
if (Error.captureStackTrace) {
|
|
10
|
+
Error.captureStackTrace(this, this.constructor);
|
|
11
|
+
}
|
|
12
|
+
this.name = this.constructor.name;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
exports.FrameioTimeoutError = FrameioTimeoutError;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.handleNonStatusCodeError = handleNonStatusCodeError;
|
|
38
|
+
const errors = __importStar(require("./index.js"));
|
|
39
|
+
function handleNonStatusCodeError(error, rawResponse, method, path) {
|
|
40
|
+
switch (error.reason) {
|
|
41
|
+
case "non-json":
|
|
42
|
+
throw new errors.FrameioError({
|
|
43
|
+
statusCode: error.statusCode,
|
|
44
|
+
body: error.rawBody,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
case "body-is-null":
|
|
48
|
+
throw new errors.FrameioError({
|
|
49
|
+
statusCode: error.statusCode,
|
|
50
|
+
rawResponse: rawResponse,
|
|
51
|
+
});
|
|
52
|
+
case "timeout":
|
|
53
|
+
throw new errors.FrameioTimeoutError(`Timeout exceeded when calling ${method} ${path}.`);
|
|
54
|
+
case "unknown":
|
|
55
|
+
throw new errors.FrameioError({
|
|
56
|
+
message: error.errorMessage,
|
|
57
|
+
rawResponse: rawResponse,
|
|
58
|
+
});
|
|
59
|
+
default:
|
|
60
|
+
throw new errors.FrameioError({
|
|
61
|
+
message: "Unknown error",
|
|
62
|
+
rawResponse: rawResponse,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./core/exports.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./core/exports.js"), exports);
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * as Frameio from "./api/index.js";
|
|
2
|
-
export {
|
|
2
|
+
export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
3
3
|
export { FrameioClient } from "./Client.js";
|
|
4
4
|
export { FrameioEnvironment } from "./environments.js";
|
|
5
|
+
export { FrameioError, FrameioTimeoutError } from "./errors/index.js";
|
|
6
|
+
export * from "./exports.js";
|
package/dist/cjs/index.js
CHANGED
|
@@ -32,13 +32,17 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
35
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
39
|
+
exports.FrameioTimeoutError = exports.FrameioError = exports.FrameioEnvironment = exports.FrameioClient = exports.Frameio = void 0;
|
|
37
40
|
exports.Frameio = __importStar(require("./api/index.js"));
|
|
38
|
-
var index_js_1 = require("./errors/index.js");
|
|
39
|
-
Object.defineProperty(exports, "FrameioError", { enumerable: true, get: function () { return index_js_1.FrameioError; } });
|
|
40
|
-
Object.defineProperty(exports, "FrameioTimeoutError", { enumerable: true, get: function () { return index_js_1.FrameioTimeoutError; } });
|
|
41
41
|
var Client_js_1 = require("./Client.js");
|
|
42
42
|
Object.defineProperty(exports, "FrameioClient", { enumerable: true, get: function () { return Client_js_1.FrameioClient; } });
|
|
43
43
|
var environments_js_1 = require("./environments.js");
|
|
44
44
|
Object.defineProperty(exports, "FrameioEnvironment", { enumerable: true, get: function () { return environments_js_1.FrameioEnvironment; } });
|
|
45
|
+
var index_js_1 = require("./errors/index.js");
|
|
46
|
+
Object.defineProperty(exports, "FrameioError", { enumerable: true, get: function () { return index_js_1.FrameioError; } });
|
|
47
|
+
Object.defineProperty(exports, "FrameioTimeoutError", { enumerable: true, get: function () { return index_js_1.FrameioTimeoutError; } });
|
|
48
|
+
__exportStar(require("./exports.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "3.1.0";
|
package/dist/cjs/version.js
CHANGED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BearerAuthProvider } from "./auth/BearerAuthProvider.mjs";
|
|
2
|
+
import * as core from "./core/index.mjs";
|
|
3
|
+
import type * as environments from "./environments.mjs";
|
|
4
|
+
export type BaseClientOptions = {
|
|
5
|
+
environment?: core.Supplier<environments.FrameioEnvironment | string>;
|
|
6
|
+
/** Specify a custom URL to connect the client to. */
|
|
7
|
+
baseUrl?: core.Supplier<string>;
|
|
8
|
+
/** Additional headers to include in requests. */
|
|
9
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
10
|
+
/** The default maximum time to wait for a response in seconds. */
|
|
11
|
+
timeoutInSeconds?: number;
|
|
12
|
+
/** The default number of times to retry the request. Defaults to 2. */
|
|
13
|
+
maxRetries?: number;
|
|
14
|
+
/** Provide a custom fetch implementation. Useful for platforms that don't have a built-in fetch or need a custom implementation. */
|
|
15
|
+
fetch?: typeof fetch;
|
|
16
|
+
fetcher?: core.FetchFunction;
|
|
17
|
+
/** Configure logging for the client. */
|
|
18
|
+
logging?: core.logging.LogConfig | core.logging.Logger;
|
|
19
|
+
} & BearerAuthProvider.AuthOptions;
|
|
20
|
+
export interface BaseRequestOptions {
|
|
21
|
+
/** The maximum time to wait for a response in seconds. */
|
|
22
|
+
timeoutInSeconds?: number;
|
|
23
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
24
|
+
maxRetries?: number;
|
|
25
|
+
/** A hook to abort the request. */
|
|
26
|
+
abortSignal?: AbortSignal;
|
|
27
|
+
/** Additional query string parameters to include in the request. */
|
|
28
|
+
queryParams?: Record<string, unknown>;
|
|
29
|
+
/** Additional headers to include in the request. */
|
|
30
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
31
|
+
}
|
|
32
|
+
export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
|
|
33
|
+
logging: core.logging.Logger;
|
|
34
|
+
authProvider?: core.AuthProvider;
|
|
35
|
+
};
|
|
36
|
+
export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions> = NormalizedClientOptions<T> & {
|
|
37
|
+
authProvider: core.AuthProvider;
|
|
38
|
+
};
|
|
39
|
+
export declare function normalizeClientOptions<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptions<T>;
|
|
40
|
+
export declare function normalizeClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptionsWithAuth<T>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import { BearerAuthProvider } from "./auth/BearerAuthProvider.mjs";
|
|
3
|
+
import { mergeHeaders } from "./core/headers.mjs";
|
|
4
|
+
import * as core from "./core/index.mjs";
|
|
5
|
+
export function normalizeClientOptions(options) {
|
|
6
|
+
const headers = mergeHeaders({
|
|
7
|
+
"X-Fern-Language": "JavaScript",
|
|
8
|
+
"X-Fern-SDK-Name": "frameio",
|
|
9
|
+
"X-Fern-SDK-Version": "3.1.0",
|
|
10
|
+
"User-Agent": "frameio/3.1.0",
|
|
11
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
|
+
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
14
|
+
return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
|
|
15
|
+
}
|
|
16
|
+
export function normalizeClientOptionsWithAuth(options) {
|
|
17
|
+
var _a;
|
|
18
|
+
const normalized = normalizeClientOptions(options);
|
|
19
|
+
const normalizedWithNoOpAuthProvider = withNoOpAuthProvider(normalized);
|
|
20
|
+
(_a = normalized.authProvider) !== null && _a !== void 0 ? _a : (normalized.authProvider = new BearerAuthProvider(normalizedWithNoOpAuthProvider));
|
|
21
|
+
return normalized;
|
|
22
|
+
}
|
|
23
|
+
function withNoOpAuthProvider(options) {
|
|
24
|
+
return Object.assign(Object.assign({}, options), { authProvider: new core.NoOpAuthProvider() });
|
|
25
|
+
}
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -1,74 +1,68 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AccountPermissionsClient } from "./api/resources/accountPermissions/client/Client.mjs";
|
|
2
|
+
import { AccountsClient } from "./api/resources/accounts/client/Client.mjs";
|
|
3
|
+
import { CommentsClient } from "./api/resources/comments/client/Client.mjs";
|
|
4
|
+
import { FilesClient } from "./api/resources/files/client/Client.mjs";
|
|
5
|
+
import { FoldersClient } from "./api/resources/folders/client/Client.mjs";
|
|
6
|
+
import { MetadataClient } from "./api/resources/metadata/client/Client.mjs";
|
|
7
|
+
import { MetadataFieldsClient } from "./api/resources/metadataFields/client/Client.mjs";
|
|
8
|
+
import { ProjectPermissionsClient } from "./api/resources/projectPermissions/client/Client.mjs";
|
|
9
|
+
import { ProjectsClient } from "./api/resources/projects/client/Client.mjs";
|
|
10
|
+
import { SharesClient } from "./api/resources/shares/client/Client.mjs";
|
|
11
|
+
import { UsersClient } from "./api/resources/users/client/Client.mjs";
|
|
12
|
+
import { VersionStacksClient } from "./api/resources/versionStacks/client/Client.mjs";
|
|
13
|
+
import { WebhooksClient } from "./api/resources/webhooks/client/Client.mjs";
|
|
14
|
+
import { WorkspacePermissionsClient } from "./api/resources/workspacePermissions/client/Client.mjs";
|
|
15
|
+
import { WorkspacesClient } from "./api/resources/workspaces/client/Client.mjs";
|
|
16
|
+
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
17
|
+
import { type NormalizedClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
2
18
|
import * as core from "./core/index.mjs";
|
|
3
|
-
import { MetadataFields } from "./api/resources/metadataFields/client/Client.mjs";
|
|
4
|
-
import { ProjectPermissions } from "./api/resources/projectPermissions/client/Client.mjs";
|
|
5
|
-
import { Folders } from "./api/resources/folders/client/Client.mjs";
|
|
6
|
-
import { VersionStacks } from "./api/resources/versionStacks/client/Client.mjs";
|
|
7
|
-
import { AccountPermissions } from "./api/resources/accountPermissions/client/Client.mjs";
|
|
8
|
-
import { Accounts } from "./api/resources/accounts/client/Client.mjs";
|
|
9
|
-
import { Comments } from "./api/resources/comments/client/Client.mjs";
|
|
10
|
-
import { Webhooks } from "./api/resources/webhooks/client/Client.mjs";
|
|
11
|
-
import { WorkspacePermissions } from "./api/resources/workspacePermissions/client/Client.mjs";
|
|
12
|
-
import { Shares } from "./api/resources/shares/client/Client.mjs";
|
|
13
|
-
import { Metadata } from "./api/resources/metadata/client/Client.mjs";
|
|
14
|
-
import { Files } from "./api/resources/files/client/Client.mjs";
|
|
15
|
-
import { Users } from "./api/resources/users/client/Client.mjs";
|
|
16
|
-
import { Projects } from "./api/resources/projects/client/Client.mjs";
|
|
17
|
-
import { Workspaces } from "./api/resources/workspaces/client/Client.mjs";
|
|
18
19
|
export declare namespace FrameioClient {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/** Specify a custom URL to connect the client to. */
|
|
22
|
-
baseUrl?: core.Supplier<string>;
|
|
23
|
-
token: core.Supplier<core.BearerToken>;
|
|
24
|
-
/** Additional headers to include in requests. */
|
|
25
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
26
|
-
fetcher?: core.FetchFunction;
|
|
27
|
-
}
|
|
28
|
-
interface RequestOptions {
|
|
29
|
-
/** The maximum time to wait for a response in seconds. */
|
|
30
|
-
timeoutInSeconds?: number;
|
|
31
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
32
|
-
maxRetries?: number;
|
|
33
|
-
/** A hook to abort the request. */
|
|
34
|
-
abortSignal?: AbortSignal;
|
|
35
|
-
/** Additional query string parameters to include in the request. */
|
|
36
|
-
queryParams?: Record<string, unknown>;
|
|
37
|
-
/** Additional headers to include in the request. */
|
|
38
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
20
|
+
type Options = BaseClientOptions;
|
|
21
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
39
22
|
}
|
|
40
23
|
}
|
|
41
24
|
export declare class FrameioClient {
|
|
42
|
-
protected readonly _options: FrameioClient.Options
|
|
43
|
-
protected _metadataFields:
|
|
44
|
-
protected _projectPermissions:
|
|
45
|
-
protected _folders:
|
|
46
|
-
protected _versionStacks:
|
|
47
|
-
protected _accountPermissions:
|
|
48
|
-
protected
|
|
49
|
-
protected
|
|
50
|
-
protected _webhooks:
|
|
51
|
-
protected _workspacePermissions:
|
|
52
|
-
protected _shares:
|
|
53
|
-
protected _metadata:
|
|
54
|
-
protected _files:
|
|
55
|
-
protected _users:
|
|
56
|
-
protected _projects:
|
|
57
|
-
protected _workspaces:
|
|
58
|
-
constructor(
|
|
59
|
-
get metadataFields():
|
|
60
|
-
get projectPermissions():
|
|
61
|
-
get folders():
|
|
62
|
-
get versionStacks():
|
|
63
|
-
get accountPermissions():
|
|
64
|
-
get
|
|
65
|
-
get
|
|
66
|
-
get webhooks():
|
|
67
|
-
get workspacePermissions():
|
|
68
|
-
get shares():
|
|
69
|
-
get metadata():
|
|
70
|
-
get files():
|
|
71
|
-
get users():
|
|
72
|
-
get projects():
|
|
73
|
-
get workspaces():
|
|
25
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<FrameioClient.Options>;
|
|
26
|
+
protected _metadataFields: MetadataFieldsClient | undefined;
|
|
27
|
+
protected _projectPermissions: ProjectPermissionsClient | undefined;
|
|
28
|
+
protected _folders: FoldersClient | undefined;
|
|
29
|
+
protected _versionStacks: VersionStacksClient | undefined;
|
|
30
|
+
protected _accountPermissions: AccountPermissionsClient | undefined;
|
|
31
|
+
protected _comments: CommentsClient | undefined;
|
|
32
|
+
protected _accounts: AccountsClient | undefined;
|
|
33
|
+
protected _webhooks: WebhooksClient | undefined;
|
|
34
|
+
protected _workspacePermissions: WorkspacePermissionsClient | undefined;
|
|
35
|
+
protected _shares: SharesClient | undefined;
|
|
36
|
+
protected _metadata: MetadataClient | undefined;
|
|
37
|
+
protected _files: FilesClient | undefined;
|
|
38
|
+
protected _users: UsersClient | undefined;
|
|
39
|
+
protected _projects: ProjectsClient | undefined;
|
|
40
|
+
protected _workspaces: WorkspacesClient | undefined;
|
|
41
|
+
constructor(options: FrameioClient.Options);
|
|
42
|
+
get metadataFields(): MetadataFieldsClient;
|
|
43
|
+
get projectPermissions(): ProjectPermissionsClient;
|
|
44
|
+
get folders(): FoldersClient;
|
|
45
|
+
get versionStacks(): VersionStacksClient;
|
|
46
|
+
get accountPermissions(): AccountPermissionsClient;
|
|
47
|
+
get comments(): CommentsClient;
|
|
48
|
+
get accounts(): AccountsClient;
|
|
49
|
+
get webhooks(): WebhooksClient;
|
|
50
|
+
get workspacePermissions(): WorkspacePermissionsClient;
|
|
51
|
+
get shares(): SharesClient;
|
|
52
|
+
get metadata(): MetadataClient;
|
|
53
|
+
get files(): FilesClient;
|
|
54
|
+
get users(): UsersClient;
|
|
55
|
+
get projects(): ProjectsClient;
|
|
56
|
+
get workspaces(): WorkspacesClient;
|
|
57
|
+
/**
|
|
58
|
+
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
59
|
+
* This is useful for making requests to endpoints not yet supported in the SDK.
|
|
60
|
+
* The input can be a URL string, URL object, or Request object. Relative paths are resolved against the configured base URL.
|
|
61
|
+
*
|
|
62
|
+
* @param {Request | string | URL} input - The URL, path, or Request object.
|
|
63
|
+
* @param {RequestInit} init - Standard fetch RequestInit options.
|
|
64
|
+
* @param {core.PassthroughRequest.RequestOptions} requestOptions - Per-request overrides (timeout, retries, headers, abort signal).
|
|
65
|
+
* @returns {Promise<Response>} A standard Response object.
|
|
66
|
+
*/
|
|
67
|
+
fetch(input: Request | string | URL, init?: RequestInit, requestOptions?: core.PassthroughRequest.RequestOptions): Promise<Response>;
|
|
74
68
|
}
|