frameio 2.0.3 → 3.0.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 +65 -39
- 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 +28 -47
- package/dist/cjs/api/resources/comments/client/Client.js +143 -210
- package/dist/cjs/api/resources/comments/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/comments/client/requests/CommentsIndexRequest.d.ts +1 -5
- package/dist/cjs/api/resources/comments/client/requests/CommentsShowRequest.d.ts +1 -3
- package/dist/cjs/api/resources/comments/client/requests/CreateCommentParams.d.ts +5 -6
- package/dist/cjs/api/resources/comments/client/requests/UpdateCommentParams.d.ts +6 -7
- package/dist/cjs/api/resources/comments/client/requests/index.d.ts +4 -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/index.d.ts +1 -1
- package/dist/cjs/api/resources/comments/types/index.js +1 -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 +32 -50
- package/dist/cjs/api/resources/versionStacks/client/Client.js +122 -207
- 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/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/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/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 +6 -6
- package/dist/cjs/api/types/CommentResponse.d.ts +1 -1
- 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/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/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/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 +143 -143
- package/dist/cjs/api/types/index.js +143 -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 +66 -40
- 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 +28 -47
- package/dist/esm/api/resources/comments/client/Client.mjs +141 -208
- package/dist/esm/api/resources/comments/client/index.d.mts +0 -1
- package/dist/esm/api/resources/comments/client/requests/CommentsIndexRequest.d.mts +1 -5
- package/dist/esm/api/resources/comments/client/requests/CommentsShowRequest.d.mts +1 -3
- package/dist/esm/api/resources/comments/client/requests/CreateCommentParams.d.mts +5 -6
- package/dist/esm/api/resources/comments/client/requests/UpdateCommentParams.d.mts +6 -7
- package/dist/esm/api/resources/comments/client/requests/index.d.mts +4 -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/index.d.mts +1 -1
- package/dist/esm/api/resources/comments/types/index.mjs +1 -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 +32 -50
- package/dist/esm/api/resources/versionStacks/client/Client.mjs +120 -205
- 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/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/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/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 +6 -6
- package/dist/esm/api/types/CommentResponse.d.mts +1 -1
- 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/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/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/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 +143 -143
- package/dist/esm/api/types/index.mjs +143 -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 +1056 -1008
- 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,17 +19,19 @@ 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 Version Stacks and related operations.
|
|
29
31
|
*/
|
|
30
|
-
export class
|
|
31
|
-
constructor(
|
|
32
|
-
this._options =
|
|
32
|
+
export class VersionStacksClient {
|
|
33
|
+
constructor(options) {
|
|
34
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
33
35
|
}
|
|
34
36
|
/**
|
|
35
37
|
* List the children (files) in a given version stack.
|
|
@@ -46,10 +48,10 @@ export class VersionStacks {
|
|
|
46
48
|
* null in the response payload. In short, the client must handle null media links gracefully.
|
|
47
49
|
* <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
48
50
|
*
|
|
49
|
-
* @param {Frameio.Uuid}
|
|
50
|
-
* @param {Frameio.Uuid}
|
|
51
|
+
* @param {Frameio.Uuid} account_id
|
|
52
|
+
* @param {Frameio.Uuid} version_stack_id
|
|
51
53
|
* @param {Frameio.VersionStacksIndexRequest} request
|
|
52
|
-
* @param {
|
|
54
|
+
* @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
55
|
*
|
|
54
56
|
* @throws {@link Frameio.BadRequestError}
|
|
55
57
|
* @throws {@link Frameio.UnauthorizedError}
|
|
@@ -67,35 +69,31 @@ export class VersionStacks {
|
|
|
67
69
|
* include_total_count: false
|
|
68
70
|
* })
|
|
69
71
|
*/
|
|
70
|
-
index(
|
|
71
|
-
return core.HttpResponsePromise.fromPromise(this.__index(
|
|
72
|
+
index(account_id, version_stack_id, request = {}, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__index(account_id, version_stack_id, request, requestOptions));
|
|
72
74
|
}
|
|
73
|
-
__index(
|
|
74
|
-
return __awaiter(this, arguments, void 0, function* (
|
|
75
|
-
var _a, _b, _c, _d;
|
|
75
|
+
__index(account_id_1, version_stack_id_1) {
|
|
76
|
+
return __awaiter(this, arguments, void 0, function* (account_id, version_stack_id, request = {}, requestOptions) {
|
|
77
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
76
78
|
const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
77
|
-
const _queryParams = {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
_queryParams["page_size"] = pageSize.toString();
|
|
86
|
-
}
|
|
87
|
-
if (includeTotalCount != null) {
|
|
88
|
-
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
89
|
-
}
|
|
90
|
-
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);
|
|
79
|
+
const _queryParams = {
|
|
80
|
+
include: include != null ? include : undefined,
|
|
81
|
+
after,
|
|
82
|
+
page_size: pageSize,
|
|
83
|
+
include_total_count: includeTotalCount,
|
|
84
|
+
};
|
|
85
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
86
|
+
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);
|
|
91
87
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
92
|
-
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/${
|
|
88
|
+
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)}/version_stacks/${core.url.encodePathParam(version_stack_id)}/children`),
|
|
93
89
|
method: "GET",
|
|
94
90
|
headers: _headers,
|
|
95
91
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
96
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
97
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
92
|
+
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,
|
|
93
|
+
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,
|
|
98
94
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
95
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
96
|
+
logging: this._options.logging,
|
|
99
97
|
});
|
|
100
98
|
if (_response.ok) {
|
|
101
99
|
return {
|
|
@@ -127,30 +125,16 @@ export class VersionStacks {
|
|
|
127
125
|
});
|
|
128
126
|
}
|
|
129
127
|
}
|
|
130
|
-
|
|
131
|
-
case "non-json":
|
|
132
|
-
throw new errors.FrameioError({
|
|
133
|
-
statusCode: _response.error.statusCode,
|
|
134
|
-
body: _response.error.rawBody,
|
|
135
|
-
rawResponse: _response.rawResponse,
|
|
136
|
-
});
|
|
137
|
-
case "timeout":
|
|
138
|
-
throw new errors.FrameioTimeoutError("Timeout exceeded when calling GET /v4/accounts/{account_id}/version_stacks/{version_stack_id}/children.");
|
|
139
|
-
case "unknown":
|
|
140
|
-
throw new errors.FrameioError({
|
|
141
|
-
message: _response.error.errorMessage,
|
|
142
|
-
rawResponse: _response.rawResponse,
|
|
143
|
-
});
|
|
144
|
-
}
|
|
128
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/version_stacks/{version_stack_id}/children");
|
|
145
129
|
});
|
|
146
130
|
}
|
|
147
131
|
/**
|
|
148
132
|
* Show version stack details. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
149
133
|
*
|
|
150
|
-
* @param {Frameio.Uuid}
|
|
151
|
-
* @param {Frameio.Uuid}
|
|
134
|
+
* @param {Frameio.Uuid} account_id
|
|
135
|
+
* @param {Frameio.Uuid} version_stack_id
|
|
152
136
|
* @param {Frameio.VersionStacksShowRequest} request
|
|
153
|
-
* @param {
|
|
137
|
+
* @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
154
138
|
*
|
|
155
139
|
* @throws {@link Frameio.BadRequestError}
|
|
156
140
|
* @throws {@link Frameio.UnauthorizedError}
|
|
@@ -165,26 +149,28 @@ export class VersionStacks {
|
|
|
165
149
|
* include: "media_links.original"
|
|
166
150
|
* })
|
|
167
151
|
*/
|
|
168
|
-
show(
|
|
169
|
-
return core.HttpResponsePromise.fromPromise(this.__show(
|
|
152
|
+
show(account_id, version_stack_id, request = {}, requestOptions) {
|
|
153
|
+
return core.HttpResponsePromise.fromPromise(this.__show(account_id, version_stack_id, request, requestOptions));
|
|
170
154
|
}
|
|
171
|
-
__show(
|
|
172
|
-
return __awaiter(this, arguments, void 0, function* (
|
|
173
|
-
var _a, _b, _c, _d;
|
|
155
|
+
__show(account_id_1, version_stack_id_1) {
|
|
156
|
+
return __awaiter(this, arguments, void 0, function* (account_id, version_stack_id, request = {}, requestOptions) {
|
|
157
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
174
158
|
const { include } = request;
|
|
175
|
-
const _queryParams = {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
159
|
+
const _queryParams = {
|
|
160
|
+
include: include != null ? include : undefined,
|
|
161
|
+
};
|
|
162
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
163
|
+
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);
|
|
180
164
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
181
|
-
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/${
|
|
165
|
+
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)}/version_stacks/${core.url.encodePathParam(version_stack_id)}`),
|
|
182
166
|
method: "GET",
|
|
183
167
|
headers: _headers,
|
|
184
168
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
185
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
186
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
169
|
+
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,
|
|
170
|
+
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,
|
|
187
171
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
172
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
173
|
+
logging: this._options.logging,
|
|
188
174
|
});
|
|
189
175
|
if (_response.ok) {
|
|
190
176
|
return {
|
|
@@ -216,30 +202,16 @@ export class VersionStacks {
|
|
|
216
202
|
});
|
|
217
203
|
}
|
|
218
204
|
}
|
|
219
|
-
|
|
220
|
-
case "non-json":
|
|
221
|
-
throw new errors.FrameioError({
|
|
222
|
-
statusCode: _response.error.statusCode,
|
|
223
|
-
body: _response.error.rawBody,
|
|
224
|
-
rawResponse: _response.rawResponse,
|
|
225
|
-
});
|
|
226
|
-
case "timeout":
|
|
227
|
-
throw new errors.FrameioTimeoutError("Timeout exceeded when calling GET /v4/accounts/{account_id}/version_stacks/{version_stack_id}.");
|
|
228
|
-
case "unknown":
|
|
229
|
-
throw new errors.FrameioError({
|
|
230
|
-
message: _response.error.errorMessage,
|
|
231
|
-
rawResponse: _response.rawResponse,
|
|
232
|
-
});
|
|
233
|
-
}
|
|
205
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/version_stacks/{version_stack_id}");
|
|
234
206
|
});
|
|
235
207
|
}
|
|
236
208
|
/**
|
|
237
209
|
* Copy version stack. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
238
210
|
*
|
|
239
|
-
* @param {Frameio.Uuid}
|
|
240
|
-
* @param {Frameio.Uuid}
|
|
211
|
+
* @param {Frameio.Uuid} account_id
|
|
212
|
+
* @param {Frameio.Uuid} version_stack_id
|
|
241
213
|
* @param {Frameio.VersionStackCopyParams} request
|
|
242
|
-
* @param {
|
|
214
|
+
* @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
243
215
|
*
|
|
244
216
|
* @throws {@link Frameio.BadRequestError}
|
|
245
217
|
* @throws {@link Frameio.UnauthorizedError}
|
|
@@ -257,29 +229,31 @@ export class VersionStacks {
|
|
|
257
229
|
* }
|
|
258
230
|
* })
|
|
259
231
|
*/
|
|
260
|
-
copy(
|
|
261
|
-
return core.HttpResponsePromise.fromPromise(this.__copy(
|
|
232
|
+
copy(account_id, version_stack_id, request = {}, requestOptions) {
|
|
233
|
+
return core.HttpResponsePromise.fromPromise(this.__copy(account_id, version_stack_id, request, requestOptions));
|
|
262
234
|
}
|
|
263
|
-
__copy(
|
|
264
|
-
return __awaiter(this, arguments, void 0, function* (
|
|
265
|
-
var _a, _b, _c, _d;
|
|
235
|
+
__copy(account_id_1, version_stack_id_1) {
|
|
236
|
+
return __awaiter(this, arguments, void 0, function* (account_id, version_stack_id, request = {}, requestOptions) {
|
|
237
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
266
238
|
const { copy_metadata: copyMetadata } = request, _body = __rest(request, ["copy_metadata"]);
|
|
267
|
-
const _queryParams = {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
239
|
+
const _queryParams = {
|
|
240
|
+
copy_metadata: copyMetadata,
|
|
241
|
+
};
|
|
242
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
243
|
+
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);
|
|
272
244
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
273
|
-
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/${
|
|
245
|
+
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)}/version_stacks/${core.url.encodePathParam(version_stack_id)}/copy`),
|
|
274
246
|
method: "POST",
|
|
275
247
|
headers: _headers,
|
|
276
248
|
contentType: "application/json",
|
|
277
249
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
278
250
|
requestType: "json",
|
|
279
251
|
body: _body,
|
|
280
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
281
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
252
|
+
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,
|
|
253
|
+
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,
|
|
282
254
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
255
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
256
|
+
logging: this._options.logging,
|
|
283
257
|
});
|
|
284
258
|
if (_response.ok) {
|
|
285
259
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -308,30 +282,16 @@ export class VersionStacks {
|
|
|
308
282
|
});
|
|
309
283
|
}
|
|
310
284
|
}
|
|
311
|
-
|
|
312
|
-
case "non-json":
|
|
313
|
-
throw new errors.FrameioError({
|
|
314
|
-
statusCode: _response.error.statusCode,
|
|
315
|
-
body: _response.error.rawBody,
|
|
316
|
-
rawResponse: _response.rawResponse,
|
|
317
|
-
});
|
|
318
|
-
case "timeout":
|
|
319
|
-
throw new errors.FrameioTimeoutError("Timeout exceeded when calling POST /v4/accounts/{account_id}/version_stacks/{version_stack_id}/copy.");
|
|
320
|
-
case "unknown":
|
|
321
|
-
throw new errors.FrameioError({
|
|
322
|
-
message: _response.error.errorMessage,
|
|
323
|
-
rawResponse: _response.rawResponse,
|
|
324
|
-
});
|
|
325
|
-
}
|
|
285
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v4/accounts/{account_id}/version_stacks/{version_stack_id}/copy");
|
|
326
286
|
});
|
|
327
287
|
}
|
|
328
288
|
/**
|
|
329
289
|
* List version stacks in a given folder. <br/>Rate Limits: 5 calls per 1 second(s) per account_user
|
|
330
290
|
*
|
|
331
|
-
* @param {Frameio.Uuid}
|
|
332
|
-
* @param {Frameio.Uuid}
|
|
291
|
+
* @param {Frameio.Uuid} account_id
|
|
292
|
+
* @param {Frameio.Uuid} folder_id
|
|
333
293
|
* @param {Frameio.VersionStacksListRequest} request
|
|
334
|
-
* @param {
|
|
294
|
+
* @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
335
295
|
*
|
|
336
296
|
* @throws {@link Frameio.BadRequestError}
|
|
337
297
|
* @throws {@link Frameio.UnauthorizedError}
|
|
@@ -349,35 +309,31 @@ export class VersionStacks {
|
|
|
349
309
|
* include_total_count: false
|
|
350
310
|
* })
|
|
351
311
|
*/
|
|
352
|
-
list(
|
|
353
|
-
return core.HttpResponsePromise.fromPromise(this.__list(
|
|
312
|
+
list(account_id, folder_id, request = {}, requestOptions) {
|
|
313
|
+
return core.HttpResponsePromise.fromPromise(this.__list(account_id, folder_id, request, requestOptions));
|
|
354
314
|
}
|
|
355
|
-
__list(
|
|
356
|
-
return __awaiter(this, arguments, void 0, function* (
|
|
357
|
-
var _a, _b, _c, _d;
|
|
315
|
+
__list(account_id_1, folder_id_1) {
|
|
316
|
+
return __awaiter(this, arguments, void 0, function* (account_id, folder_id, request = {}, requestOptions) {
|
|
317
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
358
318
|
const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
359
|
-
const _queryParams = {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
_queryParams["page_size"] = pageSize.toString();
|
|
368
|
-
}
|
|
369
|
-
if (includeTotalCount != null) {
|
|
370
|
-
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
371
|
-
}
|
|
372
|
-
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);
|
|
319
|
+
const _queryParams = {
|
|
320
|
+
include: include != null ? include : undefined,
|
|
321
|
+
after,
|
|
322
|
+
page_size: pageSize,
|
|
323
|
+
include_total_count: includeTotalCount,
|
|
324
|
+
};
|
|
325
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
326
|
+
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);
|
|
373
327
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
374
|
-
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/${
|
|
328
|
+
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)}/folders/${core.url.encodePathParam(folder_id)}/version_stacks`),
|
|
375
329
|
method: "GET",
|
|
376
330
|
headers: _headers,
|
|
377
331
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
378
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
379
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
332
|
+
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,
|
|
333
|
+
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,
|
|
380
334
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
335
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
336
|
+
logging: this._options.logging,
|
|
381
337
|
});
|
|
382
338
|
if (_response.ok) {
|
|
383
339
|
return {
|
|
@@ -409,30 +365,16 @@ export class VersionStacks {
|
|
|
409
365
|
});
|
|
410
366
|
}
|
|
411
367
|
}
|
|
412
|
-
|
|
413
|
-
case "non-json":
|
|
414
|
-
throw new errors.FrameioError({
|
|
415
|
-
statusCode: _response.error.statusCode,
|
|
416
|
-
body: _response.error.rawBody,
|
|
417
|
-
rawResponse: _response.rawResponse,
|
|
418
|
-
});
|
|
419
|
-
case "timeout":
|
|
420
|
-
throw new errors.FrameioTimeoutError("Timeout exceeded when calling GET /v4/accounts/{account_id}/folders/{folder_id}/version_stacks.");
|
|
421
|
-
case "unknown":
|
|
422
|
-
throw new errors.FrameioError({
|
|
423
|
-
message: _response.error.errorMessage,
|
|
424
|
-
rawResponse: _response.rawResponse,
|
|
425
|
-
});
|
|
426
|
-
}
|
|
368
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/folders/{folder_id}/version_stacks");
|
|
427
369
|
});
|
|
428
370
|
}
|
|
429
371
|
/**
|
|
430
372
|
* Create a new Version Stack under the parent folder. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
431
373
|
*
|
|
432
|
-
* @param {Frameio.Uuid}
|
|
433
|
-
* @param {Frameio.Uuid}
|
|
374
|
+
* @param {Frameio.Uuid} account_id
|
|
375
|
+
* @param {Frameio.Uuid} folder_id
|
|
434
376
|
* @param {Frameio.VersionStackCreateParams} request
|
|
435
|
-
* @param {
|
|
377
|
+
* @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
436
378
|
*
|
|
437
379
|
* @throws {@link Frameio.BadRequestError}
|
|
438
380
|
* @throws {@link Frameio.UnauthorizedError}
|
|
@@ -449,24 +391,27 @@ export class VersionStacks {
|
|
|
449
391
|
* }
|
|
450
392
|
* })
|
|
451
393
|
*/
|
|
452
|
-
create(
|
|
453
|
-
return core.HttpResponsePromise.fromPromise(this.__create(
|
|
394
|
+
create(account_id, folder_id, request, requestOptions) {
|
|
395
|
+
return core.HttpResponsePromise.fromPromise(this.__create(account_id, folder_id, request, requestOptions));
|
|
454
396
|
}
|
|
455
|
-
__create(
|
|
397
|
+
__create(account_id, folder_id, request, requestOptions) {
|
|
456
398
|
return __awaiter(this, void 0, void 0, function* () {
|
|
457
|
-
var _a, _b, _c, _d;
|
|
458
|
-
|
|
399
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
400
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
401
|
+
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);
|
|
459
402
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
460
|
-
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/${
|
|
403
|
+
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)}/folders/${core.url.encodePathParam(folder_id)}/version_stacks`),
|
|
461
404
|
method: "POST",
|
|
462
405
|
headers: _headers,
|
|
463
406
|
contentType: "application/json",
|
|
464
407
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
465
408
|
requestType: "json",
|
|
466
409
|
body: request,
|
|
467
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
468
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
410
|
+
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,
|
|
411
|
+
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,
|
|
469
412
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
413
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
414
|
+
logging: this._options.logging,
|
|
470
415
|
});
|
|
471
416
|
if (_response.ok) {
|
|
472
417
|
return {
|
|
@@ -498,30 +443,16 @@ export class VersionStacks {
|
|
|
498
443
|
});
|
|
499
444
|
}
|
|
500
445
|
}
|
|
501
|
-
|
|
502
|
-
case "non-json":
|
|
503
|
-
throw new errors.FrameioError({
|
|
504
|
-
statusCode: _response.error.statusCode,
|
|
505
|
-
body: _response.error.rawBody,
|
|
506
|
-
rawResponse: _response.rawResponse,
|
|
507
|
-
});
|
|
508
|
-
case "timeout":
|
|
509
|
-
throw new errors.FrameioTimeoutError("Timeout exceeded when calling POST /v4/accounts/{account_id}/folders/{folder_id}/version_stacks.");
|
|
510
|
-
case "unknown":
|
|
511
|
-
throw new errors.FrameioError({
|
|
512
|
-
message: _response.error.errorMessage,
|
|
513
|
-
rawResponse: _response.rawResponse,
|
|
514
|
-
});
|
|
515
|
-
}
|
|
446
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v4/accounts/{account_id}/folders/{folder_id}/version_stacks");
|
|
516
447
|
});
|
|
517
448
|
}
|
|
518
449
|
/**
|
|
519
450
|
* Move version stack to a folder. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
520
451
|
*
|
|
521
|
-
* @param {Frameio.Uuid}
|
|
522
|
-
* @param {Frameio.Uuid}
|
|
452
|
+
* @param {Frameio.Uuid} account_id
|
|
453
|
+
* @param {Frameio.Uuid} version_stack_id
|
|
523
454
|
* @param {Frameio.VersionStackMoveParams} request
|
|
524
|
-
* @param {
|
|
455
|
+
* @param {VersionStacksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
525
456
|
*
|
|
526
457
|
* @throws {@link Frameio.BadRequestError}
|
|
527
458
|
* @throws {@link Frameio.UnauthorizedError}
|
|
@@ -538,24 +469,27 @@ export class VersionStacks {
|
|
|
538
469
|
* }
|
|
539
470
|
* })
|
|
540
471
|
*/
|
|
541
|
-
move(
|
|
542
|
-
return core.HttpResponsePromise.fromPromise(this.__move(
|
|
472
|
+
move(account_id, version_stack_id, request, requestOptions) {
|
|
473
|
+
return core.HttpResponsePromise.fromPromise(this.__move(account_id, version_stack_id, request, requestOptions));
|
|
543
474
|
}
|
|
544
|
-
__move(
|
|
475
|
+
__move(account_id, version_stack_id, request, requestOptions) {
|
|
545
476
|
return __awaiter(this, void 0, void 0, function* () {
|
|
546
|
-
var _a, _b, _c, _d;
|
|
547
|
-
|
|
477
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
478
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
479
|
+
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);
|
|
548
480
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
549
|
-
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/${
|
|
481
|
+
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)}/version_stacks/${core.url.encodePathParam(version_stack_id)}/move`),
|
|
550
482
|
method: "PATCH",
|
|
551
483
|
headers: _headers,
|
|
552
484
|
contentType: "application/json",
|
|
553
485
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
554
486
|
requestType: "json",
|
|
555
487
|
body: request,
|
|
556
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
557
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
488
|
+
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,
|
|
489
|
+
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,
|
|
558
490
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
491
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
492
|
+
logging: this._options.logging,
|
|
559
493
|
});
|
|
560
494
|
if (_response.ok) {
|
|
561
495
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -584,26 +518,7 @@ export class VersionStacks {
|
|
|
584
518
|
});
|
|
585
519
|
}
|
|
586
520
|
}
|
|
587
|
-
|
|
588
|
-
case "non-json":
|
|
589
|
-
throw new errors.FrameioError({
|
|
590
|
-
statusCode: _response.error.statusCode,
|
|
591
|
-
body: _response.error.rawBody,
|
|
592
|
-
rawResponse: _response.rawResponse,
|
|
593
|
-
});
|
|
594
|
-
case "timeout":
|
|
595
|
-
throw new errors.FrameioTimeoutError("Timeout exceeded when calling PATCH /v4/accounts/{account_id}/version_stacks/{version_stack_id}/move.");
|
|
596
|
-
case "unknown":
|
|
597
|
-
throw new errors.FrameioError({
|
|
598
|
-
message: _response.error.errorMessage,
|
|
599
|
-
rawResponse: _response.rawResponse,
|
|
600
|
-
});
|
|
601
|
-
}
|
|
602
|
-
});
|
|
603
|
-
}
|
|
604
|
-
_getAuthorizationHeader() {
|
|
605
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
606
|
-
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
521
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/v4/accounts/{account_id}/version_stacks/{version_stack_id}/move");
|
|
607
522
|
});
|
|
608
523
|
}
|
|
609
524
|
}
|
package/dist/esm/api/resources/versionStacks/client/requests/VersionStacksIndexRequest.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as Frameio from "../../../../index.mjs";
|
|
1
|
+
import type * as Frameio from "../../../../index.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
@@ -9,7 +9,6 @@ import * as Frameio from "../../../../index.mjs";
|
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface VersionStacksIndexRequest {
|
|
12
|
-
/** */
|
|
13
12
|
include?: Frameio.VersionStacksIndexRequestInclude;
|
|
14
13
|
/**
|
|
15
14
|
* Opaque Cursor query param for requests returning paginated results.
|
|
@@ -17,8 +16,6 @@ export interface VersionStacksIndexRequest {
|
|
|
17
16
|
* NOTE: this value is auto-generated and included as part of links from a previous response. It is not intended to be human readable.
|
|
18
17
|
*/
|
|
19
18
|
after?: Frameio.RequestAfterOpaqueCursor | undefined;
|
|
20
|
-
/** */
|
|
21
19
|
page_size?: Frameio.RequestPageSize;
|
|
22
|
-
/** */
|
|
23
20
|
include_total_count?: Frameio.IncludeTotalCount;
|
|
24
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as Frameio from "../../../../index.mjs";
|
|
1
|
+
import type * as Frameio from "../../../../index.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
@@ -9,7 +9,6 @@ import * as Frameio from "../../../../index.mjs";
|
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface VersionStacksListRequest {
|
|
12
|
-
/** */
|
|
13
12
|
include?: Frameio.VersionStacksListRequestInclude;
|
|
14
13
|
/**
|
|
15
14
|
* Opaque Cursor query param for requests returning paginated results.
|
|
@@ -17,8 +16,6 @@ export interface VersionStacksListRequest {
|
|
|
17
16
|
* NOTE: this value is auto-generated and included as part of links from a previous response. It is not intended to be human readable.
|
|
18
17
|
*/
|
|
19
18
|
after?: Frameio.RequestAfterOpaqueCursor | undefined;
|
|
20
|
-
/** */
|
|
21
19
|
page_size?: Frameio.RequestPageSize;
|
|
22
|
-
/** */
|
|
23
20
|
include_total_count?: Frameio.IncludeTotalCount;
|
|
24
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as Frameio from "../../../../index.mjs";
|
|
1
|
+
import type * as Frameio from "../../../../index.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
@@ -6,6 +6,5 @@ import * as Frameio from "../../../../index.mjs";
|
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
8
|
export interface VersionStacksShowRequest {
|
|
9
|
-
/** */
|
|
10
9
|
include?: Frameio.VersionStacksShowRequestInclude;
|
|
11
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
1
|
+
export type { VersionStackCopyParams } from "./VersionStackCopyParams.mjs";
|
|
2
|
+
export type { VersionStackCreateParams } from "./VersionStackCreateParams.mjs";
|
|
3
|
+
export type { VersionStackMoveParams } from "./VersionStackMoveParams.mjs";
|
|
4
|
+
export type { VersionStacksIndexRequest } from "./VersionStacksIndexRequest.mjs";
|
|
5
|
+
export type { VersionStacksListRequest } from "./VersionStacksListRequest.mjs";
|
|
6
|
+
export type { VersionStacksShowRequest } from "./VersionStacksShowRequest.mjs";
|