frameio 4.1.1 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +15 -0
- package/dist/cjs/Client.js +51 -26
- package/dist/cjs/api/resources/accountPermissions/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/accountPermissions/client/Client.js +2 -1
- package/dist/cjs/api/resources/accountPermissions/client/requests/AccountPermissionsIndexRequest.d.ts +3 -0
- package/dist/cjs/api/resources/accountPermissions/index.d.ts +1 -0
- package/dist/cjs/api/resources/accountPermissions/index.js +1 -0
- package/dist/cjs/api/resources/accountPermissions/types/AccountPermissionsIndexRequestSort.d.ts +10 -0
- package/dist/cjs/api/resources/accountPermissions/types/AccountPermissionsIndexRequestSort.js +13 -0
- package/dist/cjs/api/resources/accountPermissions/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/accountPermissions/types/index.js +17 -0
- package/dist/cjs/api/resources/accounts/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/accounts/client/Client.js +2 -1
- package/dist/cjs/api/resources/accounts/client/requests/AccountsIndexRequest.d.ts +3 -0
- package/dist/cjs/api/resources/accounts/index.d.ts +1 -0
- package/dist/cjs/api/resources/accounts/index.js +1 -0
- package/dist/cjs/api/resources/accounts/types/AccountsIndexRequestSort.d.ts +8 -0
- package/dist/cjs/api/resources/accounts/types/AccountsIndexRequestSort.js +11 -0
- package/dist/cjs/api/resources/accounts/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/accounts/types/index.js +17 -0
- package/dist/cjs/api/resources/collections/client/Client.d.ts +65 -0
- package/dist/cjs/api/resources/collections/client/Client.js +216 -0
- package/dist/cjs/api/resources/collections/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/collections/client/index.js +17 -0
- package/dist/cjs/api/resources/collections/client/requests/CollectionsIndexRequest.d.ts +21 -0
- package/dist/cjs/api/resources/collections/client/requests/CollectionsIndexRequest.js +3 -0
- package/dist/cjs/api/resources/collections/client/requests/CollectionsShowRequest.d.ts +10 -0
- package/dist/cjs/api/resources/collections/client/requests/CollectionsShowRequest.js +3 -0
- package/dist/cjs/api/resources/collections/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/collections/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/collections/exports.d.ts +2 -0
- package/dist/cjs/api/resources/collections/exports.js +21 -0
- package/dist/cjs/api/resources/collections/index.d.ts +1 -0
- package/dist/cjs/api/resources/collections/index.js +17 -0
- package/dist/cjs/api/resources/comments/client/Client.d.ts +17 -17
- package/dist/cjs/api/resources/comments/client/Client.js +10 -10
- package/dist/cjs/api/resources/customActions/client/Client.d.ts +145 -0
- package/dist/cjs/api/resources/customActions/client/Client.js +443 -0
- package/dist/cjs/api/resources/customActions/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customActions/client/index.js +17 -0
- package/dist/cjs/api/resources/customActions/client/requests/ActionCreateParams.d.ts +31 -0
- package/dist/cjs/api/resources/customActions/client/requests/ActionCreateParams.js +3 -0
- package/dist/cjs/api/resources/customActions/client/requests/ActionUpdateParams.d.ts +35 -0
- package/dist/cjs/api/resources/customActions/client/requests/ActionUpdateParams.js +3 -0
- package/dist/cjs/api/resources/customActions/client/requests/ActionsIndexRequest.d.ts +21 -0
- package/dist/cjs/api/resources/customActions/client/requests/ActionsIndexRequest.js +3 -0
- package/dist/cjs/api/resources/customActions/client/requests/ActionsShowRequest.d.ts +9 -0
- package/dist/cjs/api/resources/customActions/client/requests/ActionsShowRequest.js +3 -0
- package/dist/cjs/api/resources/customActions/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/customActions/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customActions/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customActions/exports.js +21 -0
- package/dist/cjs/api/resources/customActions/index.d.ts +1 -0
- package/dist/cjs/api/resources/customActions/index.js +17 -0
- package/dist/cjs/api/resources/files/client/Client.d.ts +34 -34
- package/dist/cjs/api/resources/files/client/Client.js +23 -23
- package/dist/cjs/api/resources/files/types/FilesListRequestInclude.d.ts +0 -1
- package/dist/cjs/api/resources/files/types/FilesListRequestInclude.js +0 -1
- package/dist/cjs/api/resources/files/types/FilesShowRequestInclude.d.ts +0 -1
- package/dist/cjs/api/resources/files/types/FilesShowRequestInclude.js +0 -1
- package/dist/cjs/api/resources/folderPermissions/client/Client.d.ts +90 -0
- package/dist/cjs/api/resources/folderPermissions/client/Client.js +287 -0
- package/dist/cjs/api/resources/folderPermissions/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/folderPermissions/client/index.js +17 -0
- package/dist/cjs/api/resources/folderPermissions/client/requests/FolderUserRolesIndexRequest.d.ts +22 -0
- package/dist/cjs/api/resources/folderPermissions/client/requests/FolderUserRolesIndexRequest.js +3 -0
- package/dist/cjs/api/resources/folderPermissions/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/folderPermissions/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/folderPermissions/exports.d.ts +2 -0
- package/dist/cjs/api/resources/folderPermissions/exports.js +21 -0
- package/dist/cjs/api/resources/folderPermissions/index.d.ts +1 -0
- package/dist/cjs/api/resources/folderPermissions/index.js +17 -0
- package/dist/cjs/api/resources/folders/client/Client.d.ts +24 -24
- package/dist/cjs/api/resources/folders/client/Client.js +16 -16
- package/dist/cjs/api/resources/folders/types/FoldersIndexRequestInclude.d.ts +0 -1
- package/dist/cjs/api/resources/folders/types/FoldersIndexRequestInclude.js +0 -1
- package/dist/cjs/api/resources/folders/types/FoldersListRequestInclude.d.ts +0 -1
- package/dist/cjs/api/resources/folders/types/FoldersListRequestInclude.js +0 -1
- package/dist/cjs/api/resources/folders/types/FoldersShowRequestInclude.d.ts +0 -1
- package/dist/cjs/api/resources/folders/types/FoldersShowRequestInclude.js +0 -1
- package/dist/cjs/api/resources/groups/client/Client.d.ts +116 -0
- package/dist/cjs/api/resources/groups/client/Client.js +368 -0
- package/dist/cjs/api/resources/groups/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/groups/client/index.js +17 -0
- package/dist/cjs/api/resources/groups/client/requests/CreateGroupParams.d.ts +20 -0
- package/dist/cjs/api/resources/groups/client/requests/CreateGroupParams.js +3 -0
- package/dist/cjs/api/resources/groups/client/requests/GroupsIndexRequest.d.ts +24 -0
- package/dist/cjs/api/resources/groups/client/requests/GroupsIndexRequest.js +3 -0
- package/dist/cjs/api/resources/groups/client/requests/GroupsShowRequest.d.ts +9 -0
- package/dist/cjs/api/resources/groups/client/requests/GroupsShowRequest.js +3 -0
- package/dist/cjs/api/resources/groups/client/requests/UpdateGroupParams.d.ts +20 -0
- package/dist/cjs/api/resources/groups/client/requests/UpdateGroupParams.js +3 -0
- package/dist/cjs/api/resources/groups/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/groups/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/groups/exports.d.ts +2 -0
- package/dist/cjs/api/resources/groups/exports.js +21 -0
- package/dist/cjs/api/resources/groups/index.d.ts +2 -0
- package/dist/cjs/api/resources/groups/index.js +18 -0
- package/dist/cjs/api/resources/groups/types/GroupsIndexRequestSort.d.ts +10 -0
- package/dist/cjs/api/resources/groups/types/GroupsIndexRequestSort.js +13 -0
- package/dist/cjs/api/resources/groups/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/groups/types/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +17 -0
- package/dist/cjs/api/resources/index.js +18 -1
- package/dist/cjs/api/resources/metadata/client/Client.d.ts +10 -10
- package/dist/cjs/api/resources/metadata/client/Client.js +8 -8
- package/dist/cjs/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.ts +5 -5
- package/dist/cjs/api/resources/metadataFields/client/Client.d.ts +9 -8
- package/dist/cjs/api/resources/metadataFields/client/Client.js +7 -5
- package/dist/cjs/api/resources/metadataFields/client/requests/MetadataFieldDefinitionsIndexRequest.d.ts +3 -0
- package/dist/cjs/api/resources/metadataFields/types/MetadataFieldDefinitionsIndexRequestSort.d.ts +8 -0
- package/dist/cjs/api/resources/metadataFields/types/MetadataFieldDefinitionsIndexRequestSort.js +11 -0
- package/dist/cjs/api/resources/metadataFields/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/metadataFields/types/index.js +1 -0
- package/dist/cjs/api/resources/projectPermissions/client/Client.d.ts +10 -9
- package/dist/cjs/api/resources/projectPermissions/client/Client.js +7 -6
- package/dist/cjs/api/resources/projectPermissions/client/requests/ProjectPermissionsIndexRequest.d.ts +3 -0
- package/dist/cjs/api/resources/projectPermissions/index.d.ts +1 -0
- package/dist/cjs/api/resources/projectPermissions/index.js +1 -0
- package/dist/cjs/api/resources/projectPermissions/types/ProjectPermissionsIndexRequestSort.d.ts +10 -0
- package/dist/cjs/api/resources/projectPermissions/types/ProjectPermissionsIndexRequestSort.js +13 -0
- package/dist/cjs/api/resources/projectPermissions/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/projectPermissions/types/index.js +17 -0
- package/dist/cjs/api/resources/projects/client/Client.d.ts +14 -13
- package/dist/cjs/api/resources/projects/client/Client.js +9 -8
- package/dist/cjs/api/resources/projects/client/requests/ProjectsIndexRequest.d.ts +3 -0
- package/dist/cjs/api/resources/projects/index.d.ts +1 -0
- package/dist/cjs/api/resources/projects/index.js +1 -0
- package/dist/cjs/api/resources/projects/types/ProjectsIndexRequestSort.d.ts +8 -0
- package/dist/cjs/api/resources/projects/types/ProjectsIndexRequestSort.js +11 -0
- package/dist/cjs/api/resources/projects/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/projects/types/index.js +17 -0
- package/dist/cjs/api/resources/search/client/Client.d.ts +48 -0
- package/dist/cjs/api/resources/search/client/Client.js +161 -0
- package/dist/cjs/api/resources/search/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/search/client/index.js +17 -0
- package/dist/cjs/api/resources/search/client/requests/SearchParams.d.ts +51 -0
- package/dist/cjs/api/resources/search/client/requests/SearchParams.js +12 -0
- package/dist/cjs/api/resources/search/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/search/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/search/exports.d.ts +2 -0
- package/dist/cjs/api/resources/search/exports.js +21 -0
- package/dist/cjs/api/resources/search/index.d.ts +1 -0
- package/dist/cjs/api/resources/search/index.js +17 -0
- package/dist/cjs/api/resources/shares/client/Client.d.ts +29 -27
- package/dist/cjs/api/resources/shares/client/Client.js +19 -17
- package/dist/cjs/api/resources/shares/client/requests/AddAssetParams.d.ts +2 -2
- package/dist/cjs/api/resources/shares/client/requests/CreateShareParams.d.ts +2 -2
- package/dist/cjs/api/resources/shares/client/requests/SharesIndexRequest.d.ts +3 -0
- package/dist/cjs/api/resources/shares/client/requests/SharesListReviewersRequest.d.ts +3 -0
- package/dist/cjs/api/resources/shares/client/requests/UpdateShareParams.d.ts +2 -1
- package/dist/cjs/api/resources/shares/types/SharesIndexRequestSort.d.ts +8 -0
- package/dist/cjs/api/resources/shares/types/SharesIndexRequestSort.js +11 -0
- package/dist/cjs/api/resources/shares/types/SharesListReviewersRequestSort.d.ts +8 -0
- package/dist/cjs/api/resources/shares/types/SharesListReviewersRequestSort.js +11 -0
- package/dist/cjs/api/resources/shares/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/shares/types/index.js +2 -0
- package/dist/cjs/api/resources/versionStacks/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/versionStacks/client/Client.js +13 -13
- package/dist/cjs/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.ts +3 -2
- package/dist/cjs/api/resources/versionStacks/types/VersionStacksIndexRequestInclude.d.ts +0 -1
- package/dist/cjs/api/resources/versionStacks/types/VersionStacksIndexRequestInclude.js +0 -1
- package/dist/cjs/api/resources/versionStacks/types/VersionStacksListRequestInclude.d.ts +0 -1
- package/dist/cjs/api/resources/versionStacks/types/VersionStacksListRequestInclude.js +0 -1
- package/dist/cjs/api/resources/versionStacks/types/VersionStacksShowRequestInclude.d.ts +0 -1
- package/dist/cjs/api/resources/versionStacks/types/VersionStacksShowRequestInclude.js +0 -1
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +10 -10
- package/dist/cjs/api/resources/webhooks/client/Client.js +5 -5
- package/dist/cjs/api/resources/workspacePermissions/client/Client.d.ts +8 -7
- package/dist/cjs/api/resources/workspacePermissions/client/Client.js +5 -4
- package/dist/cjs/api/resources/workspacePermissions/client/requests/UpdateWorkspaceRoleParams.d.ts +17 -0
- package/dist/cjs/api/resources/workspacePermissions/client/requests/UpdateWorkspaceRoleParams.js +3 -0
- package/dist/cjs/api/resources/workspacePermissions/client/requests/WorkspacePermissionsIndexRequest.d.ts +3 -0
- package/dist/cjs/api/resources/workspacePermissions/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/workspacePermissions/index.d.ts +1 -0
- package/dist/cjs/api/resources/workspacePermissions/index.js +1 -0
- package/dist/cjs/api/resources/workspacePermissions/types/WorkspacePermissionsIndexRequestSort.d.ts +10 -0
- package/dist/cjs/api/resources/workspacePermissions/types/WorkspacePermissionsIndexRequestSort.js +13 -0
- package/dist/cjs/api/resources/workspacePermissions/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/workspacePermissions/types/index.js +17 -0
- package/dist/cjs/api/resources/workspaces/client/Client.d.ts +11 -10
- package/dist/cjs/api/resources/workspaces/client/Client.js +6 -5
- package/dist/cjs/api/resources/workspaces/client/requests/WorkspacesIndexRequest.d.ts +3 -0
- package/dist/cjs/api/resources/workspaces/index.d.ts +1 -0
- package/dist/cjs/api/resources/workspaces/index.js +1 -0
- package/dist/cjs/api/resources/workspaces/types/WorkspacesIndexRequestSort.d.ts +8 -0
- package/dist/cjs/api/resources/workspaces/types/WorkspacesIndexRequestSort.js +11 -0
- package/dist/cjs/api/resources/workspaces/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/workspaces/types/index.js +17 -0
- package/dist/cjs/api/types/Account.d.ts +2 -0
- package/dist/cjs/api/types/AccountSort.d.ts +8 -0
- package/dist/cjs/api/types/AccountSort.js +11 -0
- package/dist/cjs/api/types/AccountUserSort.d.ts +10 -0
- package/dist/cjs/api/types/AccountUserSort.js +13 -0
- package/dist/cjs/api/types/Action.d.ts +25 -0
- package/dist/cjs/api/types/Action.js +3 -0
- package/dist/cjs/api/types/ActionCreateResponse.d.ts +13 -0
- package/dist/cjs/api/types/ActionCreateResponse.js +3 -0
- package/dist/cjs/api/types/ActionInclude.d.ts +4 -0
- package/dist/cjs/api/types/ActionInclude.js +3 -0
- package/dist/cjs/api/types/ActionResponse.d.ts +7 -0
- package/dist/cjs/api/types/ActionResponse.js +3 -0
- package/dist/cjs/api/types/ActionWithIncludes.d.ts +4 -0
- package/dist/cjs/api/types/ActionWithIncludes.js +3 -0
- package/dist/cjs/api/types/ActionWithIncludesResponse.d.ts +7 -0
- package/dist/cjs/api/types/ActionWithIncludesResponse.js +3 -0
- package/dist/cjs/api/types/ActionsWithIncludesResponse.d.ts +11 -0
- package/dist/cjs/api/types/ActionsWithIncludesResponse.js +3 -0
- package/dist/cjs/api/types/AssetCommon.d.ts +2 -0
- package/dist/cjs/api/types/AssetCommonWithIncludes.d.ts +2 -0
- package/dist/cjs/api/types/AssetInclude.d.ts +0 -1
- package/dist/cjs/api/types/AssetInclude.js +0 -1
- package/dist/cjs/api/types/AssetSearchResult.d.ts +18 -0
- package/dist/cjs/api/types/AssetSearchResult.js +12 -0
- package/dist/cjs/api/types/AssetShareParams.d.ts +4 -2
- package/dist/cjs/api/types/AssigneeMatch.d.ts +7 -0
- package/dist/cjs/api/types/AssigneeMatch.js +3 -0
- package/dist/cjs/api/types/AudioSampleRateMatch.d.ts +7 -0
- package/dist/cjs/api/types/AudioSampleRateMatch.js +3 -0
- package/dist/cjs/api/types/AuditLogwithIncludes.d.ts +5 -0
- package/dist/cjs/api/types/AuditLogwithIncludes.js +5 -0
- package/dist/cjs/api/types/BitDepthMatch.d.ts +7 -0
- package/dist/cjs/api/types/BitDepthMatch.js +3 -0
- package/dist/cjs/api/types/BitRateMatch.d.ts +7 -0
- package/dist/cjs/api/types/BitRateMatch.js +3 -0
- package/dist/cjs/api/types/ChannelsMatch.d.ts +7 -0
- package/dist/cjs/api/types/ChannelsMatch.js +3 -0
- package/dist/cjs/api/types/CodecMatch.d.ts +7 -0
- package/dist/cjs/api/types/CodecMatch.js +3 -0
- package/dist/cjs/api/types/Collection.d.ts +31 -0
- package/dist/cjs/api/types/Collection.js +11 -0
- package/dist/cjs/api/types/CollectionInclude.d.ts +4 -0
- package/dist/cjs/api/types/CollectionInclude.js +3 -0
- package/dist/cjs/api/types/CollectionResponse.d.ts +4 -0
- package/dist/cjs/api/types/CollectionResponse.js +3 -0
- package/dist/cjs/api/types/CollectionsResponse.d.ts +8 -0
- package/dist/cjs/api/types/CollectionsResponse.js +3 -0
- package/dist/cjs/api/types/ColorSpaceMatch.d.ts +7 -0
- package/dist/cjs/api/types/ColorSpaceMatch.js +3 -0
- package/dist/cjs/api/types/CommentCountMatch.d.ts +7 -0
- package/dist/cjs/api/types/CommentCountMatch.js +3 -0
- package/dist/cjs/api/types/CommentMatch.d.ts +11 -0
- package/dist/cjs/api/types/CommentMatch.js +3 -0
- package/dist/cjs/api/types/CreatorMatch.d.ts +7 -0
- package/dist/cjs/api/types/CreatorMatch.js +3 -0
- package/dist/cjs/api/types/DeletedAtMatch.d.ts +7 -0
- package/dist/cjs/api/types/DeletedAtMatch.js +3 -0
- package/dist/cjs/api/types/DurationMatch.d.ts +7 -0
- package/dist/cjs/api/types/DurationMatch.js +3 -0
- package/dist/cjs/api/types/DynamicRangeMatch.d.ts +7 -0
- package/dist/cjs/api/types/DynamicRangeMatch.js +3 -0
- package/dist/cjs/api/types/FieldDefinitionSort.d.ts +8 -0
- package/dist/cjs/api/types/FieldDefinitionSort.js +11 -0
- package/dist/cjs/api/types/FileTypeMatch.d.ts +7 -0
- package/dist/cjs/api/types/FileTypeMatch.js +3 -0
- package/dist/cjs/api/types/FileWithIncludes.d.ts +2 -0
- package/dist/cjs/api/types/FileWithMediaLinksInclude.d.ts +0 -1
- package/dist/cjs/api/types/FileWithMediaLinksInclude.js +0 -1
- package/dist/cjs/api/types/File_.d.ts +4 -0
- package/dist/cjs/api/types/FilesizeMatch.d.ts +7 -0
- package/dist/cjs/api/types/FilesizeMatch.js +3 -0
- package/dist/cjs/api/types/Filters.d.ts +5 -0
- package/dist/cjs/api/types/Filters.js +5 -0
- package/dist/cjs/api/types/FolderWithIncludes.d.ts +2 -0
- package/dist/cjs/api/types/FormatMatch.d.ts +7 -0
- package/dist/cjs/api/types/FormatMatch.js +3 -0
- package/dist/cjs/api/types/FrameOrAdobeId.d.ts +4 -0
- package/dist/cjs/api/types/FrameOrAdobeId.js +3 -0
- package/dist/cjs/api/types/FrameRateMatch.d.ts +7 -0
- package/dist/cjs/api/types/FrameRateMatch.js +3 -0
- package/dist/cjs/api/types/GroupCommon.d.ts +16 -0
- package/dist/cjs/api/types/GroupCommon.js +3 -0
- package/dist/cjs/api/types/GroupCommonWithIncludes.d.ts +4 -0
- package/dist/cjs/api/types/GroupCommonWithIncludes.js +3 -0
- package/dist/cjs/api/types/GroupResponse.d.ts +4 -0
- package/dist/cjs/api/types/GroupResponse.js +3 -0
- package/dist/cjs/api/types/GroupWithIncludes.d.ts +13 -0
- package/dist/cjs/api/types/GroupWithIncludes.js +3 -0
- package/dist/cjs/api/types/GroupWithIncludesResponse.d.ts +4 -0
- package/dist/cjs/api/types/GroupWithIncludesResponse.js +3 -0
- package/dist/cjs/api/types/GroupsInclude.d.ts +4 -0
- package/dist/cjs/api/types/GroupsInclude.js +3 -0
- package/dist/cjs/api/types/GroupsSort.d.ts +10 -0
- package/dist/cjs/api/types/GroupsSort.js +13 -0
- package/dist/cjs/api/types/GroupsWithIncludesResponse.d.ts +8 -0
- package/dist/cjs/api/types/GroupsWithIncludesResponse.js +3 -0
- package/dist/cjs/api/types/HasAlphaChannelMatch.d.ts +7 -0
- package/dist/cjs/api/types/HasAlphaChannelMatch.js +3 -0
- package/dist/cjs/api/types/InsertedAtMatch.d.ts +7 -0
- package/dist/cjs/api/types/InsertedAtMatch.js +3 -0
- package/dist/cjs/api/types/KeywordsMatch.d.ts +7 -0
- package/dist/cjs/api/types/KeywordsMatch.js +3 -0
- package/dist/cjs/api/types/NameMatch.d.ts +9 -0
- package/dist/cjs/api/types/NameMatch.js +3 -0
- package/dist/cjs/api/types/NotesMatch.d.ts +7 -0
- package/dist/cjs/api/types/NotesMatch.js +3 -0
- package/dist/cjs/api/types/PageCountMatch.d.ts +7 -0
- package/dist/cjs/api/types/PageCountMatch.js +3 -0
- package/dist/cjs/api/types/Project.d.ts +2 -0
- package/dist/cjs/api/types/ProjectMatch.d.ts +20 -0
- package/dist/cjs/api/types/ProjectMatch.js +3 -0
- package/dist/cjs/api/types/ProjectMatchInfo.d.ts +9 -0
- package/dist/cjs/api/types/ProjectMatchInfo.js +3 -0
- package/dist/cjs/api/types/ProjectSearchResult.d.ts +10 -0
- package/dist/cjs/api/types/ProjectSearchResult.js +3 -0
- package/dist/cjs/api/types/ProjectSort.d.ts +8 -0
- package/dist/cjs/api/types/ProjectSort.js +11 -0
- package/dist/cjs/api/types/RatingMatch.d.ts +13 -0
- package/dist/cjs/api/types/RatingMatch.js +3 -0
- package/dist/cjs/api/types/ResolutionHeightMatch.d.ts +7 -0
- package/dist/cjs/api/types/ResolutionHeightMatch.js +3 -0
- package/dist/cjs/api/types/ResolutionWidthMatch.d.ts +7 -0
- package/dist/cjs/api/types/ResolutionWidthMatch.js +3 -0
- package/dist/cjs/api/types/ReviewersSort.d.ts +8 -0
- package/dist/cjs/api/types/ReviewersSort.js +11 -0
- package/dist/cjs/api/types/SearchMatch.d.ts +106 -0
- package/dist/cjs/api/types/SearchMatch.js +3 -0
- package/dist/cjs/api/types/SearchResponse.d.ts +17 -0
- package/dist/cjs/api/types/SearchResponse.js +3 -0
- package/dist/cjs/api/types/Share.d.ts +3 -0
- package/dist/cjs/api/types/ShareSort.d.ts +8 -0
- package/dist/cjs/api/types/ShareSort.js +11 -0
- package/dist/cjs/api/types/SingleUserValue.d.ts +1 -1
- package/dist/cjs/api/types/SourceFilenameMatch.d.ts +9 -0
- package/dist/cjs/api/types/SourceFilenameMatch.js +3 -0
- package/dist/cjs/api/types/StatusMatch.d.ts +7 -0
- package/dist/cjs/api/types/StatusMatch.js +3 -0
- package/dist/cjs/api/types/SyncGroupWithIncludes.d.ts +15 -0
- package/dist/cjs/api/types/SyncGroupWithIncludes.js +14 -0
- package/dist/cjs/api/types/TranscriptionMatch.d.ts +23 -0
- package/dist/cjs/api/types/TranscriptionMatch.js +3 -0
- package/dist/cjs/api/types/UpdateWorkspaceRoleResponse.d.ts +9 -0
- package/dist/cjs/api/types/UpdateWorkspaceRoleResponse.js +3 -0
- package/dist/cjs/api/types/UpdatedAtMatch.d.ts +7 -0
- package/dist/cjs/api/types/UpdatedAtMatch.js +3 -0
- package/dist/cjs/api/types/UploadedAtMatch.d.ts +7 -0
- package/dist/cjs/api/types/UploadedAtMatch.js +3 -0
- package/dist/cjs/api/types/UserRole.d.ts +1 -0
- package/dist/cjs/api/types/UserRole.js +1 -0
- package/dist/cjs/api/types/UserRoleSort.d.ts +10 -0
- package/dist/cjs/api/types/UserRoleSort.js +13 -0
- package/dist/cjs/api/types/UserRolesResponse.d.ts +11 -0
- package/dist/cjs/api/types/UserRolesResponse.js +3 -0
- package/dist/cjs/api/types/Uuid.d.ts +1 -1
- package/dist/cjs/api/types/VersionStack.d.ts +2 -0
- package/dist/cjs/api/types/VersionStackWithIncludes.d.ts +2 -0
- package/dist/cjs/api/types/VisualMatch.d.ts +27 -0
- package/dist/cjs/api/types/VisualMatch.js +3 -0
- package/dist/cjs/api/types/VisualMatchClip.d.ts +15 -0
- package/dist/cjs/api/types/VisualMatchClip.js +3 -0
- package/dist/cjs/api/types/WorkspaceRole.d.ts +10 -0
- package/dist/cjs/api/types/WorkspaceRole.js +13 -0
- package/dist/cjs/api/types/WorkspaceSort.d.ts +8 -0
- package/dist/cjs/api/types/WorkspaceSort.js +11 -0
- package/dist/cjs/api/types/WorkspaceUserRole.d.ts +21 -0
- package/dist/cjs/api/types/WorkspaceUserRole.js +17 -0
- package/dist/cjs/api/types/WorkspaceUserRolesResponse.d.ts +2 -2
- package/dist/cjs/api/types/index.d.ts +72 -0
- package/dist/cjs/api/types/index.js +72 -0
- package/dist/cjs/oauth/BaseAuth.d.ts +2 -2
- package/dist/cjs/oauth/BaseAuth.js +13 -13
- package/dist/cjs/oauth/NativeAppAuth.d.ts +1 -1
- package/dist/cjs/oauth/NativeAppAuth.js +2 -2
- package/dist/cjs/oauth/SPAAuth.d.ts +2 -2
- package/dist/cjs/oauth/SPAAuth.js +12 -12
- package/dist/cjs/oauth/ServerToServerAuth.d.ts +2 -2
- package/dist/cjs/oauth/ServerToServerAuth.js +6 -6
- package/dist/cjs/oauth/TokenManager.d.ts +1 -1
- package/dist/cjs/oauth/TokenManager.js +11 -11
- package/dist/cjs/oauth/WebAppAuth.d.ts +2 -2
- package/dist/cjs/oauth/WebAppAuth.js +10 -10
- package/dist/cjs/oauth/http.d.ts +2 -2
- package/dist/cjs/oauth/http.js +15 -15
- package/dist/cjs/oauth/index.d.ts +14 -14
- package/dist/cjs/oauth/index.js +21 -21
- package/dist/cjs/oauth/validation.d.ts +1 -1
- package/dist/cjs/oauth/validation.js +6 -6
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +15 -0
- package/dist/esm/Client.mjs +25 -0
- package/dist/esm/api/resources/accountPermissions/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/accountPermissions/client/Client.mjs +2 -1
- package/dist/esm/api/resources/accountPermissions/client/requests/AccountPermissionsIndexRequest.d.mts +3 -0
- package/dist/esm/api/resources/accountPermissions/index.d.mts +1 -0
- package/dist/esm/api/resources/accountPermissions/index.mjs +1 -0
- package/dist/esm/api/resources/accountPermissions/types/AccountPermissionsIndexRequestSort.d.mts +10 -0
- package/dist/esm/api/resources/accountPermissions/types/AccountPermissionsIndexRequestSort.mjs +10 -0
- package/dist/esm/api/resources/accountPermissions/types/index.d.mts +1 -0
- package/dist/esm/api/resources/accountPermissions/types/index.mjs +1 -0
- package/dist/esm/api/resources/accounts/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/accounts/client/Client.mjs +2 -1
- package/dist/esm/api/resources/accounts/client/requests/AccountsIndexRequest.d.mts +3 -0
- package/dist/esm/api/resources/accounts/index.d.mts +1 -0
- package/dist/esm/api/resources/accounts/index.mjs +1 -0
- package/dist/esm/api/resources/accounts/types/AccountsIndexRequestSort.d.mts +8 -0
- package/dist/esm/api/resources/accounts/types/AccountsIndexRequestSort.mjs +8 -0
- package/dist/esm/api/resources/accounts/types/index.d.mts +1 -0
- package/dist/esm/api/resources/accounts/types/index.mjs +1 -0
- package/dist/esm/api/resources/collections/client/Client.d.mts +65 -0
- package/dist/esm/api/resources/collections/client/Client.mjs +179 -0
- package/dist/esm/api/resources/collections/client/index.d.mts +1 -0
- package/dist/esm/api/resources/collections/client/index.mjs +1 -0
- package/dist/esm/api/resources/collections/client/requests/CollectionsIndexRequest.d.mts +21 -0
- package/dist/esm/api/resources/collections/client/requests/CollectionsIndexRequest.mjs +2 -0
- package/dist/esm/api/resources/collections/client/requests/CollectionsShowRequest.d.mts +10 -0
- package/dist/esm/api/resources/collections/client/requests/CollectionsShowRequest.mjs +2 -0
- package/dist/esm/api/resources/collections/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/collections/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/collections/exports.d.mts +2 -0
- package/dist/esm/api/resources/collections/exports.mjs +3 -0
- package/dist/esm/api/resources/collections/index.d.mts +1 -0
- package/dist/esm/api/resources/collections/index.mjs +1 -0
- package/dist/esm/api/resources/comments/client/Client.d.mts +17 -17
- package/dist/esm/api/resources/comments/client/Client.mjs +10 -10
- package/dist/esm/api/resources/customActions/client/Client.d.mts +145 -0
- package/dist/esm/api/resources/customActions/client/Client.mjs +406 -0
- package/dist/esm/api/resources/customActions/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customActions/client/index.mjs +1 -0
- package/dist/esm/api/resources/customActions/client/requests/ActionCreateParams.d.mts +31 -0
- package/dist/esm/api/resources/customActions/client/requests/ActionCreateParams.mjs +2 -0
- package/dist/esm/api/resources/customActions/client/requests/ActionUpdateParams.d.mts +35 -0
- package/dist/esm/api/resources/customActions/client/requests/ActionUpdateParams.mjs +2 -0
- package/dist/esm/api/resources/customActions/client/requests/ActionsIndexRequest.d.mts +21 -0
- package/dist/esm/api/resources/customActions/client/requests/ActionsIndexRequest.mjs +2 -0
- package/dist/esm/api/resources/customActions/client/requests/ActionsShowRequest.d.mts +9 -0
- package/dist/esm/api/resources/customActions/client/requests/ActionsShowRequest.mjs +2 -0
- package/dist/esm/api/resources/customActions/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/customActions/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customActions/exports.d.mts +2 -0
- package/dist/esm/api/resources/customActions/exports.mjs +3 -0
- package/dist/esm/api/resources/customActions/index.d.mts +1 -0
- package/dist/esm/api/resources/customActions/index.mjs +1 -0
- package/dist/esm/api/resources/files/client/Client.d.mts +34 -34
- package/dist/esm/api/resources/files/client/Client.mjs +23 -23
- package/dist/esm/api/resources/files/types/FilesListRequestInclude.d.mts +0 -1
- package/dist/esm/api/resources/files/types/FilesListRequestInclude.mjs +0 -1
- package/dist/esm/api/resources/files/types/FilesShowRequestInclude.d.mts +0 -1
- package/dist/esm/api/resources/files/types/FilesShowRequestInclude.mjs +0 -1
- package/dist/esm/api/resources/folderPermissions/client/Client.d.mts +90 -0
- package/dist/esm/api/resources/folderPermissions/client/Client.mjs +250 -0
- package/dist/esm/api/resources/folderPermissions/client/index.d.mts +1 -0
- package/dist/esm/api/resources/folderPermissions/client/index.mjs +1 -0
- package/dist/esm/api/resources/folderPermissions/client/requests/FolderUserRolesIndexRequest.d.mts +22 -0
- package/dist/esm/api/resources/folderPermissions/client/requests/FolderUserRolesIndexRequest.mjs +2 -0
- package/dist/esm/api/resources/folderPermissions/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/folderPermissions/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/folderPermissions/exports.d.mts +2 -0
- package/dist/esm/api/resources/folderPermissions/exports.mjs +3 -0
- package/dist/esm/api/resources/folderPermissions/index.d.mts +1 -0
- package/dist/esm/api/resources/folderPermissions/index.mjs +1 -0
- package/dist/esm/api/resources/folders/client/Client.d.mts +24 -24
- package/dist/esm/api/resources/folders/client/Client.mjs +16 -16
- package/dist/esm/api/resources/folders/types/FoldersIndexRequestInclude.d.mts +0 -1
- package/dist/esm/api/resources/folders/types/FoldersIndexRequestInclude.mjs +0 -1
- package/dist/esm/api/resources/folders/types/FoldersListRequestInclude.d.mts +0 -1
- package/dist/esm/api/resources/folders/types/FoldersListRequestInclude.mjs +0 -1
- package/dist/esm/api/resources/folders/types/FoldersShowRequestInclude.d.mts +0 -1
- package/dist/esm/api/resources/folders/types/FoldersShowRequestInclude.mjs +0 -1
- package/dist/esm/api/resources/groups/client/Client.d.mts +116 -0
- package/dist/esm/api/resources/groups/client/Client.mjs +331 -0
- package/dist/esm/api/resources/groups/client/index.d.mts +1 -0
- package/dist/esm/api/resources/groups/client/index.mjs +1 -0
- package/dist/esm/api/resources/groups/client/requests/CreateGroupParams.d.mts +20 -0
- package/dist/esm/api/resources/groups/client/requests/CreateGroupParams.mjs +2 -0
- package/dist/esm/api/resources/groups/client/requests/GroupsIndexRequest.d.mts +24 -0
- package/dist/esm/api/resources/groups/client/requests/GroupsIndexRequest.mjs +2 -0
- package/dist/esm/api/resources/groups/client/requests/GroupsShowRequest.d.mts +9 -0
- package/dist/esm/api/resources/groups/client/requests/GroupsShowRequest.mjs +2 -0
- package/dist/esm/api/resources/groups/client/requests/UpdateGroupParams.d.mts +20 -0
- package/dist/esm/api/resources/groups/client/requests/UpdateGroupParams.mjs +2 -0
- package/dist/esm/api/resources/groups/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/groups/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/groups/exports.d.mts +2 -0
- package/dist/esm/api/resources/groups/exports.mjs +3 -0
- package/dist/esm/api/resources/groups/index.d.mts +2 -0
- package/dist/esm/api/resources/groups/index.mjs +2 -0
- package/dist/esm/api/resources/groups/types/GroupsIndexRequestSort.d.mts +10 -0
- package/dist/esm/api/resources/groups/types/GroupsIndexRequestSort.mjs +10 -0
- package/dist/esm/api/resources/groups/types/index.d.mts +1 -0
- package/dist/esm/api/resources/groups/types/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +17 -0
- package/dist/esm/api/resources/index.mjs +17 -0
- package/dist/esm/api/resources/metadata/client/Client.d.mts +10 -10
- package/dist/esm/api/resources/metadata/client/Client.mjs +8 -8
- package/dist/esm/api/resources/metadata/client/requests/BulkUpdateMetadataParams.d.mts +5 -5
- package/dist/esm/api/resources/metadataFields/client/Client.d.mts +9 -8
- package/dist/esm/api/resources/metadataFields/client/Client.mjs +7 -5
- package/dist/esm/api/resources/metadataFields/client/requests/MetadataFieldDefinitionsIndexRequest.d.mts +3 -0
- package/dist/esm/api/resources/metadataFields/types/MetadataFieldDefinitionsIndexRequestSort.d.mts +8 -0
- package/dist/esm/api/resources/metadataFields/types/MetadataFieldDefinitionsIndexRequestSort.mjs +8 -0
- package/dist/esm/api/resources/metadataFields/types/index.d.mts +1 -0
- package/dist/esm/api/resources/metadataFields/types/index.mjs +1 -0
- package/dist/esm/api/resources/projectPermissions/client/Client.d.mts +10 -9
- package/dist/esm/api/resources/projectPermissions/client/Client.mjs +7 -6
- package/dist/esm/api/resources/projectPermissions/client/requests/ProjectPermissionsIndexRequest.d.mts +3 -0
- package/dist/esm/api/resources/projectPermissions/index.d.mts +1 -0
- package/dist/esm/api/resources/projectPermissions/index.mjs +1 -0
- package/dist/esm/api/resources/projectPermissions/types/ProjectPermissionsIndexRequestSort.d.mts +10 -0
- package/dist/esm/api/resources/projectPermissions/types/ProjectPermissionsIndexRequestSort.mjs +10 -0
- package/dist/esm/api/resources/projectPermissions/types/index.d.mts +1 -0
- package/dist/esm/api/resources/projectPermissions/types/index.mjs +1 -0
- package/dist/esm/api/resources/projects/client/Client.d.mts +14 -13
- package/dist/esm/api/resources/projects/client/Client.mjs +9 -8
- package/dist/esm/api/resources/projects/client/requests/ProjectsIndexRequest.d.mts +3 -0
- package/dist/esm/api/resources/projects/index.d.mts +1 -0
- package/dist/esm/api/resources/projects/index.mjs +1 -0
- package/dist/esm/api/resources/projects/types/ProjectsIndexRequestSort.d.mts +8 -0
- package/dist/esm/api/resources/projects/types/ProjectsIndexRequestSort.mjs +8 -0
- package/dist/esm/api/resources/projects/types/index.d.mts +1 -0
- package/dist/esm/api/resources/projects/types/index.mjs +1 -0
- package/dist/esm/api/resources/search/client/Client.d.mts +48 -0
- package/dist/esm/api/resources/search/client/Client.mjs +124 -0
- package/dist/esm/api/resources/search/client/index.d.mts +1 -0
- package/dist/esm/api/resources/search/client/index.mjs +1 -0
- package/dist/esm/api/resources/search/client/requests/SearchParams.d.mts +51 -0
- package/dist/esm/api/resources/search/client/requests/SearchParams.mjs +9 -0
- package/dist/esm/api/resources/search/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/search/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/search/exports.d.mts +2 -0
- package/dist/esm/api/resources/search/exports.mjs +3 -0
- package/dist/esm/api/resources/search/index.d.mts +1 -0
- package/dist/esm/api/resources/search/index.mjs +1 -0
- package/dist/esm/api/resources/shares/client/Client.d.mts +29 -27
- package/dist/esm/api/resources/shares/client/Client.mjs +19 -17
- package/dist/esm/api/resources/shares/client/requests/AddAssetParams.d.mts +2 -2
- package/dist/esm/api/resources/shares/client/requests/CreateShareParams.d.mts +2 -2
- package/dist/esm/api/resources/shares/client/requests/SharesIndexRequest.d.mts +3 -0
- package/dist/esm/api/resources/shares/client/requests/SharesListReviewersRequest.d.mts +3 -0
- package/dist/esm/api/resources/shares/client/requests/UpdateShareParams.d.mts +2 -1
- package/dist/esm/api/resources/shares/types/SharesIndexRequestSort.d.mts +8 -0
- package/dist/esm/api/resources/shares/types/SharesIndexRequestSort.mjs +8 -0
- package/dist/esm/api/resources/shares/types/SharesListReviewersRequestSort.d.mts +8 -0
- package/dist/esm/api/resources/shares/types/SharesListReviewersRequestSort.mjs +8 -0
- package/dist/esm/api/resources/shares/types/index.d.mts +2 -0
- package/dist/esm/api/resources/shares/types/index.mjs +2 -0
- package/dist/esm/api/resources/versionStacks/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/versionStacks/client/Client.mjs +13 -13
- package/dist/esm/api/resources/versionStacks/client/requests/VersionStackCreateParams.d.mts +3 -2
- package/dist/esm/api/resources/versionStacks/types/VersionStacksIndexRequestInclude.d.mts +0 -1
- package/dist/esm/api/resources/versionStacks/types/VersionStacksIndexRequestInclude.mjs +0 -1
- package/dist/esm/api/resources/versionStacks/types/VersionStacksListRequestInclude.d.mts +0 -1
- package/dist/esm/api/resources/versionStacks/types/VersionStacksListRequestInclude.mjs +0 -1
- package/dist/esm/api/resources/versionStacks/types/VersionStacksShowRequestInclude.d.mts +0 -1
- package/dist/esm/api/resources/versionStacks/types/VersionStacksShowRequestInclude.mjs +0 -1
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +10 -10
- package/dist/esm/api/resources/webhooks/client/Client.mjs +5 -5
- package/dist/esm/api/resources/workspacePermissions/client/Client.d.mts +8 -7
- package/dist/esm/api/resources/workspacePermissions/client/Client.mjs +5 -4
- package/dist/esm/api/resources/workspacePermissions/client/requests/UpdateWorkspaceRoleParams.d.mts +17 -0
- package/dist/esm/api/resources/workspacePermissions/client/requests/UpdateWorkspaceRoleParams.mjs +2 -0
- package/dist/esm/api/resources/workspacePermissions/client/requests/WorkspacePermissionsIndexRequest.d.mts +3 -0
- package/dist/esm/api/resources/workspacePermissions/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/workspacePermissions/index.d.mts +1 -0
- package/dist/esm/api/resources/workspacePermissions/index.mjs +1 -0
- package/dist/esm/api/resources/workspacePermissions/types/WorkspacePermissionsIndexRequestSort.d.mts +10 -0
- package/dist/esm/api/resources/workspacePermissions/types/WorkspacePermissionsIndexRequestSort.mjs +10 -0
- package/dist/esm/api/resources/workspacePermissions/types/index.d.mts +1 -0
- package/dist/esm/api/resources/workspacePermissions/types/index.mjs +1 -0
- package/dist/esm/api/resources/workspaces/client/Client.d.mts +11 -10
- package/dist/esm/api/resources/workspaces/client/Client.mjs +6 -5
- package/dist/esm/api/resources/workspaces/client/requests/WorkspacesIndexRequest.d.mts +3 -0
- package/dist/esm/api/resources/workspaces/index.d.mts +1 -0
- package/dist/esm/api/resources/workspaces/index.mjs +1 -0
- package/dist/esm/api/resources/workspaces/types/WorkspacesIndexRequestSort.d.mts +8 -0
- package/dist/esm/api/resources/workspaces/types/WorkspacesIndexRequestSort.mjs +8 -0
- package/dist/esm/api/resources/workspaces/types/index.d.mts +1 -0
- package/dist/esm/api/resources/workspaces/types/index.mjs +1 -0
- package/dist/esm/api/types/Account.d.mts +2 -0
- package/dist/esm/api/types/AccountSort.d.mts +8 -0
- package/dist/esm/api/types/AccountSort.mjs +8 -0
- package/dist/esm/api/types/AccountUserSort.d.mts +10 -0
- package/dist/esm/api/types/AccountUserSort.mjs +10 -0
- package/dist/esm/api/types/Action.d.mts +25 -0
- package/dist/esm/api/types/Action.mjs +2 -0
- package/dist/esm/api/types/ActionCreateResponse.d.mts +13 -0
- package/dist/esm/api/types/ActionCreateResponse.mjs +2 -0
- package/dist/esm/api/types/ActionInclude.d.mts +4 -0
- package/dist/esm/api/types/ActionInclude.mjs +2 -0
- package/dist/esm/api/types/ActionResponse.d.mts +7 -0
- package/dist/esm/api/types/ActionResponse.mjs +2 -0
- package/dist/esm/api/types/ActionWithIncludes.d.mts +4 -0
- package/dist/esm/api/types/ActionWithIncludes.mjs +2 -0
- package/dist/esm/api/types/ActionWithIncludesResponse.d.mts +7 -0
- package/dist/esm/api/types/ActionWithIncludesResponse.mjs +2 -0
- package/dist/esm/api/types/ActionsWithIncludesResponse.d.mts +11 -0
- package/dist/esm/api/types/ActionsWithIncludesResponse.mjs +2 -0
- package/dist/esm/api/types/AssetCommon.d.mts +2 -0
- package/dist/esm/api/types/AssetCommonWithIncludes.d.mts +2 -0
- package/dist/esm/api/types/AssetInclude.d.mts +0 -1
- package/dist/esm/api/types/AssetInclude.mjs +0 -1
- package/dist/esm/api/types/AssetSearchResult.d.mts +18 -0
- package/dist/esm/api/types/AssetSearchResult.mjs +9 -0
- package/dist/esm/api/types/AssetShareParams.d.mts +4 -2
- package/dist/esm/api/types/AssigneeMatch.d.mts +7 -0
- package/dist/esm/api/types/AssigneeMatch.mjs +2 -0
- package/dist/esm/api/types/AudioSampleRateMatch.d.mts +7 -0
- package/dist/esm/api/types/AudioSampleRateMatch.mjs +2 -0
- package/dist/esm/api/types/AuditLogwithIncludes.d.mts +5 -0
- package/dist/esm/api/types/AuditLogwithIncludes.mjs +5 -0
- package/dist/esm/api/types/BitDepthMatch.d.mts +7 -0
- package/dist/esm/api/types/BitDepthMatch.mjs +2 -0
- package/dist/esm/api/types/BitRateMatch.d.mts +7 -0
- package/dist/esm/api/types/BitRateMatch.mjs +2 -0
- package/dist/esm/api/types/ChannelsMatch.d.mts +7 -0
- package/dist/esm/api/types/ChannelsMatch.mjs +2 -0
- package/dist/esm/api/types/CodecMatch.d.mts +7 -0
- package/dist/esm/api/types/CodecMatch.mjs +2 -0
- package/dist/esm/api/types/Collection.d.mts +31 -0
- package/dist/esm/api/types/Collection.mjs +8 -0
- package/dist/esm/api/types/CollectionInclude.d.mts +4 -0
- package/dist/esm/api/types/CollectionInclude.mjs +2 -0
- package/dist/esm/api/types/CollectionResponse.d.mts +4 -0
- package/dist/esm/api/types/CollectionResponse.mjs +2 -0
- package/dist/esm/api/types/CollectionsResponse.d.mts +8 -0
- package/dist/esm/api/types/CollectionsResponse.mjs +2 -0
- package/dist/esm/api/types/ColorSpaceMatch.d.mts +7 -0
- package/dist/esm/api/types/ColorSpaceMatch.mjs +2 -0
- package/dist/esm/api/types/CommentCountMatch.d.mts +7 -0
- package/dist/esm/api/types/CommentCountMatch.mjs +2 -0
- package/dist/esm/api/types/CommentMatch.d.mts +11 -0
- package/dist/esm/api/types/CommentMatch.mjs +2 -0
- package/dist/esm/api/types/CreatorMatch.d.mts +7 -0
- package/dist/esm/api/types/CreatorMatch.mjs +2 -0
- package/dist/esm/api/types/DeletedAtMatch.d.mts +7 -0
- package/dist/esm/api/types/DeletedAtMatch.mjs +2 -0
- package/dist/esm/api/types/DurationMatch.d.mts +7 -0
- package/dist/esm/api/types/DurationMatch.mjs +2 -0
- package/dist/esm/api/types/DynamicRangeMatch.d.mts +7 -0
- package/dist/esm/api/types/DynamicRangeMatch.mjs +2 -0
- package/dist/esm/api/types/FieldDefinitionSort.d.mts +8 -0
- package/dist/esm/api/types/FieldDefinitionSort.mjs +8 -0
- package/dist/esm/api/types/FileTypeMatch.d.mts +7 -0
- package/dist/esm/api/types/FileTypeMatch.mjs +2 -0
- package/dist/esm/api/types/FileWithIncludes.d.mts +2 -0
- package/dist/esm/api/types/FileWithMediaLinksInclude.d.mts +0 -1
- package/dist/esm/api/types/FileWithMediaLinksInclude.mjs +0 -1
- package/dist/esm/api/types/File_.d.mts +4 -0
- package/dist/esm/api/types/FilesizeMatch.d.mts +7 -0
- package/dist/esm/api/types/FilesizeMatch.mjs +2 -0
- package/dist/esm/api/types/Filters.d.mts +5 -0
- package/dist/esm/api/types/Filters.mjs +5 -0
- package/dist/esm/api/types/FolderWithIncludes.d.mts +2 -0
- package/dist/esm/api/types/FormatMatch.d.mts +7 -0
- package/dist/esm/api/types/FormatMatch.mjs +2 -0
- package/dist/esm/api/types/FrameOrAdobeId.d.mts +4 -0
- package/dist/esm/api/types/FrameOrAdobeId.mjs +2 -0
- package/dist/esm/api/types/FrameRateMatch.d.mts +7 -0
- package/dist/esm/api/types/FrameRateMatch.mjs +2 -0
- package/dist/esm/api/types/GroupCommon.d.mts +16 -0
- package/dist/esm/api/types/GroupCommon.mjs +2 -0
- package/dist/esm/api/types/GroupCommonWithIncludes.d.mts +4 -0
- package/dist/esm/api/types/GroupCommonWithIncludes.mjs +2 -0
- package/dist/esm/api/types/GroupResponse.d.mts +4 -0
- package/dist/esm/api/types/GroupResponse.mjs +2 -0
- package/dist/esm/api/types/GroupWithIncludes.d.mts +13 -0
- package/dist/esm/api/types/GroupWithIncludes.mjs +2 -0
- package/dist/esm/api/types/GroupWithIncludesResponse.d.mts +4 -0
- package/dist/esm/api/types/GroupWithIncludesResponse.mjs +2 -0
- package/dist/esm/api/types/GroupsInclude.d.mts +4 -0
- package/dist/esm/api/types/GroupsInclude.mjs +2 -0
- package/dist/esm/api/types/GroupsSort.d.mts +10 -0
- package/dist/esm/api/types/GroupsSort.mjs +10 -0
- package/dist/esm/api/types/GroupsWithIncludesResponse.d.mts +8 -0
- package/dist/esm/api/types/GroupsWithIncludesResponse.mjs +2 -0
- package/dist/esm/api/types/HasAlphaChannelMatch.d.mts +7 -0
- package/dist/esm/api/types/HasAlphaChannelMatch.mjs +2 -0
- package/dist/esm/api/types/InsertedAtMatch.d.mts +7 -0
- package/dist/esm/api/types/InsertedAtMatch.mjs +2 -0
- package/dist/esm/api/types/KeywordsMatch.d.mts +7 -0
- package/dist/esm/api/types/KeywordsMatch.mjs +2 -0
- package/dist/esm/api/types/NameMatch.d.mts +9 -0
- package/dist/esm/api/types/NameMatch.mjs +2 -0
- package/dist/esm/api/types/NotesMatch.d.mts +7 -0
- package/dist/esm/api/types/NotesMatch.mjs +2 -0
- package/dist/esm/api/types/PageCountMatch.d.mts +7 -0
- package/dist/esm/api/types/PageCountMatch.mjs +2 -0
- package/dist/esm/api/types/Project.d.mts +2 -0
- package/dist/esm/api/types/ProjectMatch.d.mts +20 -0
- package/dist/esm/api/types/ProjectMatch.mjs +2 -0
- package/dist/esm/api/types/ProjectMatchInfo.d.mts +9 -0
- package/dist/esm/api/types/ProjectMatchInfo.mjs +2 -0
- package/dist/esm/api/types/ProjectSearchResult.d.mts +10 -0
- package/dist/esm/api/types/ProjectSearchResult.mjs +2 -0
- package/dist/esm/api/types/ProjectSort.d.mts +8 -0
- package/dist/esm/api/types/ProjectSort.mjs +8 -0
- package/dist/esm/api/types/RatingMatch.d.mts +13 -0
- package/dist/esm/api/types/RatingMatch.mjs +2 -0
- package/dist/esm/api/types/ResolutionHeightMatch.d.mts +7 -0
- package/dist/esm/api/types/ResolutionHeightMatch.mjs +2 -0
- package/dist/esm/api/types/ResolutionWidthMatch.d.mts +7 -0
- package/dist/esm/api/types/ResolutionWidthMatch.mjs +2 -0
- package/dist/esm/api/types/ReviewersSort.d.mts +8 -0
- package/dist/esm/api/types/ReviewersSort.mjs +8 -0
- package/dist/esm/api/types/SearchMatch.d.mts +106 -0
- package/dist/esm/api/types/SearchMatch.mjs +2 -0
- package/dist/esm/api/types/SearchResponse.d.mts +17 -0
- package/dist/esm/api/types/SearchResponse.mjs +2 -0
- package/dist/esm/api/types/Share.d.mts +3 -0
- package/dist/esm/api/types/ShareSort.d.mts +8 -0
- package/dist/esm/api/types/ShareSort.mjs +8 -0
- package/dist/esm/api/types/SingleUserValue.d.mts +1 -1
- package/dist/esm/api/types/SourceFilenameMatch.d.mts +9 -0
- package/dist/esm/api/types/SourceFilenameMatch.mjs +2 -0
- package/dist/esm/api/types/StatusMatch.d.mts +7 -0
- package/dist/esm/api/types/StatusMatch.mjs +2 -0
- package/dist/esm/api/types/SyncGroupWithIncludes.d.mts +15 -0
- package/dist/esm/api/types/SyncGroupWithIncludes.mjs +11 -0
- package/dist/esm/api/types/TranscriptionMatch.d.mts +23 -0
- package/dist/esm/api/types/TranscriptionMatch.mjs +2 -0
- package/dist/esm/api/types/UpdateWorkspaceRoleResponse.d.mts +9 -0
- package/dist/esm/api/types/UpdateWorkspaceRoleResponse.mjs +2 -0
- package/dist/esm/api/types/UpdatedAtMatch.d.mts +7 -0
- package/dist/esm/api/types/UpdatedAtMatch.mjs +2 -0
- package/dist/esm/api/types/UploadedAtMatch.d.mts +7 -0
- package/dist/esm/api/types/UploadedAtMatch.mjs +2 -0
- package/dist/esm/api/types/UserRole.d.mts +1 -0
- package/dist/esm/api/types/UserRole.mjs +1 -0
- package/dist/esm/api/types/UserRoleSort.d.mts +10 -0
- package/dist/esm/api/types/UserRoleSort.mjs +10 -0
- package/dist/esm/api/types/UserRolesResponse.d.mts +11 -0
- package/dist/esm/api/types/UserRolesResponse.mjs +2 -0
- package/dist/esm/api/types/Uuid.d.mts +1 -1
- package/dist/esm/api/types/VersionStack.d.mts +2 -0
- package/dist/esm/api/types/VersionStackWithIncludes.d.mts +2 -0
- package/dist/esm/api/types/VisualMatch.d.mts +27 -0
- package/dist/esm/api/types/VisualMatch.mjs +2 -0
- package/dist/esm/api/types/VisualMatchClip.d.mts +15 -0
- package/dist/esm/api/types/VisualMatchClip.mjs +2 -0
- package/dist/esm/api/types/WorkspaceRole.d.mts +10 -0
- package/dist/esm/api/types/WorkspaceRole.mjs +10 -0
- package/dist/esm/api/types/WorkspaceSort.d.mts +8 -0
- package/dist/esm/api/types/WorkspaceSort.mjs +8 -0
- package/dist/esm/api/types/WorkspaceUserRole.d.mts +21 -0
- package/dist/esm/api/types/WorkspaceUserRole.mjs +14 -0
- package/dist/esm/api/types/WorkspaceUserRolesResponse.d.mts +2 -2
- package/dist/esm/api/types/index.d.mts +72 -0
- package/dist/esm/api/types/index.mjs +72 -0
- package/dist/esm/index.d.mts +4 -4
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/oauth/BaseAuth.d.mts +2 -2
- package/dist/esm/oauth/BaseAuth.mjs +4 -4
- package/dist/esm/oauth/NativeAppAuth.d.mts +1 -1
- package/dist/esm/oauth/NativeAppAuth.mjs +1 -1
- package/dist/esm/oauth/SPAAuth.d.mts +2 -2
- package/dist/esm/oauth/SPAAuth.mjs +5 -5
- package/dist/esm/oauth/ServerToServerAuth.d.mts +2 -2
- package/dist/esm/oauth/ServerToServerAuth.mjs +3 -3
- package/dist/esm/oauth/TokenManager.d.mts +1 -1
- package/dist/esm/oauth/TokenManager.mjs +3 -3
- package/dist/esm/oauth/WebAppAuth.d.mts +2 -2
- package/dist/esm/oauth/WebAppAuth.mjs +4 -4
- package/dist/esm/oauth/http.d.mts +2 -2
- package/dist/esm/oauth/http.mjs +2 -2
- package/dist/esm/oauth/index.d.mts +14 -14
- package/dist/esm/oauth/index.mjs +7 -7
- package/dist/esm/oauth/validation.d.mts +1 -1
- package/dist/esm/oauth/validation.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +56 -1
- package/reference.md +2307 -1052
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as Frameio from "../../../index.js";
|
|
5
|
+
export declare namespace CustomActionsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Manage Custom Actions and related operations.
|
|
12
|
+
*/
|
|
13
|
+
export declare class CustomActionsClient {
|
|
14
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<CustomActionsClient.Options>;
|
|
15
|
+
constructor(options: CustomActionsClient.Options);
|
|
16
|
+
/**
|
|
17
|
+
* Show custom action details. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
18
|
+
*
|
|
19
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
20
|
+
* @param {Frameio.Uuid} action_id
|
|
21
|
+
* @param {Frameio.ActionsShowRequest} request
|
|
22
|
+
* @param {CustomActionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
|
+
*
|
|
24
|
+
* @throws {@link Frameio.BadRequestError}
|
|
25
|
+
* @throws {@link Frameio.UnauthorizedError}
|
|
26
|
+
* @throws {@link Frameio.ForbiddenError}
|
|
27
|
+
* @throws {@link Frameio.NotFoundError}
|
|
28
|
+
* @throws {@link Frameio.ConflictError}
|
|
29
|
+
* @throws {@link Frameio.UnprocessableEntityError}
|
|
30
|
+
* @throws {@link Frameio.TooManyRequestsError}
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.customActions.actionsShow("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
34
|
+
* include: "creator"
|
|
35
|
+
* })
|
|
36
|
+
*/
|
|
37
|
+
actionsShow(account_id: Frameio.FrameOrAdobeId, action_id: Frameio.Uuid, request?: Frameio.ActionsShowRequest, requestOptions?: CustomActionsClient.RequestOptions): core.HttpResponsePromise<Frameio.ActionWithIncludesResponse>;
|
|
38
|
+
private __actionsShow;
|
|
39
|
+
/**
|
|
40
|
+
* Delete a custom action. <br/>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
41
|
+
*
|
|
42
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
43
|
+
* @param {Frameio.Uuid} action_id
|
|
44
|
+
* @param {CustomActionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link Frameio.BadRequestError}
|
|
47
|
+
* @throws {@link Frameio.UnauthorizedError}
|
|
48
|
+
* @throws {@link Frameio.ForbiddenError}
|
|
49
|
+
* @throws {@link Frameio.NotFoundError}
|
|
50
|
+
* @throws {@link Frameio.ConflictError}
|
|
51
|
+
* @throws {@link Frameio.UnprocessableEntityError}
|
|
52
|
+
* @throws {@link Frameio.TooManyRequestsError}
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* await client.customActions.actionsDelete("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b")
|
|
56
|
+
*/
|
|
57
|
+
actionsDelete(account_id: Frameio.FrameOrAdobeId, action_id: Frameio.Uuid, requestOptions?: CustomActionsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
58
|
+
private __actionsDelete;
|
|
59
|
+
/**
|
|
60
|
+
* Update custom action details. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
61
|
+
*
|
|
62
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
63
|
+
* @param {Frameio.Uuid} action_id
|
|
64
|
+
* @param {Frameio.ActionUpdateParams} request
|
|
65
|
+
* @param {CustomActionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link Frameio.BadRequestError}
|
|
68
|
+
* @throws {@link Frameio.UnauthorizedError}
|
|
69
|
+
* @throws {@link Frameio.ForbiddenError}
|
|
70
|
+
* @throws {@link Frameio.NotFoundError}
|
|
71
|
+
* @throws {@link Frameio.ConflictError}
|
|
72
|
+
* @throws {@link Frameio.UnprocessableEntityError}
|
|
73
|
+
* @throws {@link Frameio.TooManyRequestsError}
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* await client.customActions.actionsUpdate("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
77
|
+
* data: {
|
|
78
|
+
* active: true,
|
|
79
|
+
* description: "customizing our workflow",
|
|
80
|
+
* event: "my.event",
|
|
81
|
+
* multi_asset: true,
|
|
82
|
+
* name: "First Custom Action",
|
|
83
|
+
* timeout: 7,
|
|
84
|
+
* url: "https://example.com/custom-action"
|
|
85
|
+
* }
|
|
86
|
+
* })
|
|
87
|
+
*/
|
|
88
|
+
actionsUpdate(account_id: Frameio.FrameOrAdobeId, action_id: Frameio.Uuid, request: Frameio.ActionUpdateParams, requestOptions?: CustomActionsClient.RequestOptions): core.HttpResponsePromise<Frameio.ActionResponse>;
|
|
89
|
+
private __actionsUpdate;
|
|
90
|
+
/**
|
|
91
|
+
* List actions in a given workspace. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
92
|
+
*
|
|
93
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
94
|
+
* @param {Frameio.Uuid} workspace_id
|
|
95
|
+
* @param {Frameio.ActionsIndexRequest} request
|
|
96
|
+
* @param {CustomActionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link Frameio.BadRequestError}
|
|
99
|
+
* @throws {@link Frameio.UnauthorizedError}
|
|
100
|
+
* @throws {@link Frameio.ForbiddenError}
|
|
101
|
+
* @throws {@link Frameio.NotFoundError}
|
|
102
|
+
* @throws {@link Frameio.ConflictError}
|
|
103
|
+
* @throws {@link Frameio.UnprocessableEntityError}
|
|
104
|
+
* @throws {@link Frameio.TooManyRequestsError}
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* await client.customActions.actionsIndex("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
108
|
+
* include: "creator",
|
|
109
|
+
* after: "<opaque_cursor>",
|
|
110
|
+
* page_size: 10,
|
|
111
|
+
* include_total_count: false
|
|
112
|
+
* })
|
|
113
|
+
*/
|
|
114
|
+
actionsIndex(account_id: Frameio.FrameOrAdobeId, workspace_id: Frameio.Uuid, request?: Frameio.ActionsIndexRequest, requestOptions?: CustomActionsClient.RequestOptions): core.HttpResponsePromise<Frameio.ActionsWithIncludesResponse>;
|
|
115
|
+
private __actionsIndex;
|
|
116
|
+
/**
|
|
117
|
+
* Create a custom action in a workspace. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
118
|
+
*
|
|
119
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
120
|
+
* @param {Frameio.Uuid} workspace_id
|
|
121
|
+
* @param {Frameio.ActionCreateParams} request
|
|
122
|
+
* @param {CustomActionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link Frameio.BadRequestError}
|
|
125
|
+
* @throws {@link Frameio.UnauthorizedError}
|
|
126
|
+
* @throws {@link Frameio.ForbiddenError}
|
|
127
|
+
* @throws {@link Frameio.NotFoundError}
|
|
128
|
+
* @throws {@link Frameio.ConflictError}
|
|
129
|
+
* @throws {@link Frameio.UnprocessableEntityError}
|
|
130
|
+
* @throws {@link Frameio.TooManyRequestsError}
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* await client.customActions.actionsCreate("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
134
|
+
* data: {
|
|
135
|
+
* description: "customizing our workflow",
|
|
136
|
+
* event: "my.event",
|
|
137
|
+
* name: "First Custom Action",
|
|
138
|
+
* timeout: 7,
|
|
139
|
+
* url: "https://example.com/custom-action"
|
|
140
|
+
* }
|
|
141
|
+
* })
|
|
142
|
+
*/
|
|
143
|
+
actionsCreate(account_id: Frameio.FrameOrAdobeId, workspace_id: Frameio.Uuid, request: Frameio.ActionCreateParams, requestOptions?: CustomActionsClient.RequestOptions): core.HttpResponsePromise<Frameio.ActionCreateResponse>;
|
|
144
|
+
private __actionsCreate;
|
|
145
|
+
}
|
|
@@ -0,0 +1,443 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.CustomActionsClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
48
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
49
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
50
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
51
|
+
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
52
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
53
|
+
const Frameio = __importStar(require("../../../index.js"));
|
|
54
|
+
/**
|
|
55
|
+
* Manage Custom Actions and related operations.
|
|
56
|
+
*/
|
|
57
|
+
class CustomActionsClient {
|
|
58
|
+
constructor(options) {
|
|
59
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Show custom action details. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
63
|
+
*
|
|
64
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
65
|
+
* @param {Frameio.Uuid} action_id
|
|
66
|
+
* @param {Frameio.ActionsShowRequest} request
|
|
67
|
+
* @param {CustomActionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link Frameio.BadRequestError}
|
|
70
|
+
* @throws {@link Frameio.UnauthorizedError}
|
|
71
|
+
* @throws {@link Frameio.ForbiddenError}
|
|
72
|
+
* @throws {@link Frameio.NotFoundError}
|
|
73
|
+
* @throws {@link Frameio.ConflictError}
|
|
74
|
+
* @throws {@link Frameio.UnprocessableEntityError}
|
|
75
|
+
* @throws {@link Frameio.TooManyRequestsError}
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* await client.customActions.actionsShow("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
79
|
+
* include: "creator"
|
|
80
|
+
* })
|
|
81
|
+
*/
|
|
82
|
+
actionsShow(account_id, action_id, request = {}, requestOptions) {
|
|
83
|
+
return core.HttpResponsePromise.fromPromise(this.__actionsShow(account_id, action_id, request, requestOptions));
|
|
84
|
+
}
|
|
85
|
+
__actionsShow(account_id_1, action_id_1) {
|
|
86
|
+
return __awaiter(this, arguments, void 0, function* (account_id, action_id, request = {}, requestOptions) {
|
|
87
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
88
|
+
const { include } = request;
|
|
89
|
+
const _queryParams = {
|
|
90
|
+
include: include != null ? include : undefined,
|
|
91
|
+
};
|
|
92
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
93
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
94
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
95
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/actions/${core.url.encodePathParam(action_id)}`),
|
|
96
|
+
method: "GET",
|
|
97
|
+
headers: _headers,
|
|
98
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
99
|
+
timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
|
|
100
|
+
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
101
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
102
|
+
fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
|
|
103
|
+
logging: this._options.logging,
|
|
104
|
+
});
|
|
105
|
+
if (_response.ok) {
|
|
106
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
107
|
+
}
|
|
108
|
+
if (_response.error.reason === "status-code") {
|
|
109
|
+
switch (_response.error.statusCode) {
|
|
110
|
+
case 400:
|
|
111
|
+
throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
|
|
112
|
+
case 401:
|
|
113
|
+
throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
114
|
+
case 403:
|
|
115
|
+
throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
116
|
+
case 404:
|
|
117
|
+
throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
|
|
118
|
+
case 409:
|
|
119
|
+
throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
|
|
120
|
+
case 422:
|
|
121
|
+
throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
122
|
+
case 429:
|
|
123
|
+
throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
124
|
+
default:
|
|
125
|
+
throw new errors.FrameioError({
|
|
126
|
+
statusCode: _response.error.statusCode,
|
|
127
|
+
body: _response.error.body,
|
|
128
|
+
rawResponse: _response.rawResponse,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/actions/{action_id}");
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Delete a custom action. <br/>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
137
|
+
*
|
|
138
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
139
|
+
* @param {Frameio.Uuid} action_id
|
|
140
|
+
* @param {CustomActionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
141
|
+
*
|
|
142
|
+
* @throws {@link Frameio.BadRequestError}
|
|
143
|
+
* @throws {@link Frameio.UnauthorizedError}
|
|
144
|
+
* @throws {@link Frameio.ForbiddenError}
|
|
145
|
+
* @throws {@link Frameio.NotFoundError}
|
|
146
|
+
* @throws {@link Frameio.ConflictError}
|
|
147
|
+
* @throws {@link Frameio.UnprocessableEntityError}
|
|
148
|
+
* @throws {@link Frameio.TooManyRequestsError}
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* await client.customActions.actionsDelete("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b")
|
|
152
|
+
*/
|
|
153
|
+
actionsDelete(account_id, action_id, requestOptions) {
|
|
154
|
+
return core.HttpResponsePromise.fromPromise(this.__actionsDelete(account_id, action_id, requestOptions));
|
|
155
|
+
}
|
|
156
|
+
__actionsDelete(account_id, action_id, requestOptions) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
159
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
160
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
161
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
162
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/actions/${core.url.encodePathParam(action_id)}`),
|
|
163
|
+
method: "DELETE",
|
|
164
|
+
headers: _headers,
|
|
165
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
166
|
+
timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
|
|
167
|
+
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
168
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
169
|
+
fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
|
|
170
|
+
logging: this._options.logging,
|
|
171
|
+
});
|
|
172
|
+
if (_response.ok) {
|
|
173
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
174
|
+
}
|
|
175
|
+
if (_response.error.reason === "status-code") {
|
|
176
|
+
switch (_response.error.statusCode) {
|
|
177
|
+
case 400:
|
|
178
|
+
throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
|
|
179
|
+
case 401:
|
|
180
|
+
throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
181
|
+
case 403:
|
|
182
|
+
throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
183
|
+
case 404:
|
|
184
|
+
throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
|
|
185
|
+
case 409:
|
|
186
|
+
throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
|
|
187
|
+
case 422:
|
|
188
|
+
throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
189
|
+
case 429:
|
|
190
|
+
throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
191
|
+
default:
|
|
192
|
+
throw new errors.FrameioError({
|
|
193
|
+
statusCode: _response.error.statusCode,
|
|
194
|
+
body: _response.error.body,
|
|
195
|
+
rawResponse: _response.rawResponse,
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v4/accounts/{account_id}/actions/{action_id}");
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Update custom action details. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
204
|
+
*
|
|
205
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
206
|
+
* @param {Frameio.Uuid} action_id
|
|
207
|
+
* @param {Frameio.ActionUpdateParams} request
|
|
208
|
+
* @param {CustomActionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
209
|
+
*
|
|
210
|
+
* @throws {@link Frameio.BadRequestError}
|
|
211
|
+
* @throws {@link Frameio.UnauthorizedError}
|
|
212
|
+
* @throws {@link Frameio.ForbiddenError}
|
|
213
|
+
* @throws {@link Frameio.NotFoundError}
|
|
214
|
+
* @throws {@link Frameio.ConflictError}
|
|
215
|
+
* @throws {@link Frameio.UnprocessableEntityError}
|
|
216
|
+
* @throws {@link Frameio.TooManyRequestsError}
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* await client.customActions.actionsUpdate("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
220
|
+
* data: {
|
|
221
|
+
* active: true,
|
|
222
|
+
* description: "customizing our workflow",
|
|
223
|
+
* event: "my.event",
|
|
224
|
+
* multi_asset: true,
|
|
225
|
+
* name: "First Custom Action",
|
|
226
|
+
* timeout: 7,
|
|
227
|
+
* url: "https://example.com/custom-action"
|
|
228
|
+
* }
|
|
229
|
+
* })
|
|
230
|
+
*/
|
|
231
|
+
actionsUpdate(account_id, action_id, request, requestOptions) {
|
|
232
|
+
return core.HttpResponsePromise.fromPromise(this.__actionsUpdate(account_id, action_id, request, requestOptions));
|
|
233
|
+
}
|
|
234
|
+
__actionsUpdate(account_id, action_id, request, requestOptions) {
|
|
235
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
236
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
237
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
238
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
239
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
240
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/actions/${core.url.encodePathParam(action_id)}`),
|
|
241
|
+
method: "PATCH",
|
|
242
|
+
headers: _headers,
|
|
243
|
+
contentType: "application/json",
|
|
244
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
245
|
+
requestType: "json",
|
|
246
|
+
body: request,
|
|
247
|
+
timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
|
|
248
|
+
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
249
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
250
|
+
fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
|
|
251
|
+
logging: this._options.logging,
|
|
252
|
+
});
|
|
253
|
+
if (_response.ok) {
|
|
254
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
255
|
+
}
|
|
256
|
+
if (_response.error.reason === "status-code") {
|
|
257
|
+
switch (_response.error.statusCode) {
|
|
258
|
+
case 400:
|
|
259
|
+
throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
|
|
260
|
+
case 401:
|
|
261
|
+
throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
262
|
+
case 403:
|
|
263
|
+
throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
264
|
+
case 404:
|
|
265
|
+
throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
|
|
266
|
+
case 409:
|
|
267
|
+
throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
|
|
268
|
+
case 422:
|
|
269
|
+
throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
270
|
+
case 429:
|
|
271
|
+
throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
272
|
+
default:
|
|
273
|
+
throw new errors.FrameioError({
|
|
274
|
+
statusCode: _response.error.statusCode,
|
|
275
|
+
body: _response.error.body,
|
|
276
|
+
rawResponse: _response.rawResponse,
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v4/accounts/{account_id}/actions/{action_id}");
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* List actions in a given workspace. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
285
|
+
*
|
|
286
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
287
|
+
* @param {Frameio.Uuid} workspace_id
|
|
288
|
+
* @param {Frameio.ActionsIndexRequest} request
|
|
289
|
+
* @param {CustomActionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
290
|
+
*
|
|
291
|
+
* @throws {@link Frameio.BadRequestError}
|
|
292
|
+
* @throws {@link Frameio.UnauthorizedError}
|
|
293
|
+
* @throws {@link Frameio.ForbiddenError}
|
|
294
|
+
* @throws {@link Frameio.NotFoundError}
|
|
295
|
+
* @throws {@link Frameio.ConflictError}
|
|
296
|
+
* @throws {@link Frameio.UnprocessableEntityError}
|
|
297
|
+
* @throws {@link Frameio.TooManyRequestsError}
|
|
298
|
+
*
|
|
299
|
+
* @example
|
|
300
|
+
* await client.customActions.actionsIndex("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
301
|
+
* include: "creator",
|
|
302
|
+
* after: "<opaque_cursor>",
|
|
303
|
+
* page_size: 10,
|
|
304
|
+
* include_total_count: false
|
|
305
|
+
* })
|
|
306
|
+
*/
|
|
307
|
+
actionsIndex(account_id, workspace_id, request = {}, requestOptions) {
|
|
308
|
+
return core.HttpResponsePromise.fromPromise(this.__actionsIndex(account_id, workspace_id, request, requestOptions));
|
|
309
|
+
}
|
|
310
|
+
__actionsIndex(account_id_1, workspace_id_1) {
|
|
311
|
+
return __awaiter(this, arguments, void 0, function* (account_id, workspace_id, request = {}, requestOptions) {
|
|
312
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
313
|
+
const { include, after, page_size: pageSize, include_total_count: includeTotalCount } = request;
|
|
314
|
+
const _queryParams = {
|
|
315
|
+
include: include != null ? include : undefined,
|
|
316
|
+
after,
|
|
317
|
+
page_size: pageSize,
|
|
318
|
+
include_total_count: includeTotalCount,
|
|
319
|
+
};
|
|
320
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
321
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
322
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
323
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/workspaces/${core.url.encodePathParam(workspace_id)}/actions`),
|
|
324
|
+
method: "GET",
|
|
325
|
+
headers: _headers,
|
|
326
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
327
|
+
timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
|
|
328
|
+
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
329
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
330
|
+
fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
|
|
331
|
+
logging: this._options.logging,
|
|
332
|
+
});
|
|
333
|
+
if (_response.ok) {
|
|
334
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
335
|
+
}
|
|
336
|
+
if (_response.error.reason === "status-code") {
|
|
337
|
+
switch (_response.error.statusCode) {
|
|
338
|
+
case 400:
|
|
339
|
+
throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
|
|
340
|
+
case 401:
|
|
341
|
+
throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
342
|
+
case 403:
|
|
343
|
+
throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
344
|
+
case 404:
|
|
345
|
+
throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
|
|
346
|
+
case 409:
|
|
347
|
+
throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
|
|
348
|
+
case 422:
|
|
349
|
+
throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
350
|
+
case 429:
|
|
351
|
+
throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
352
|
+
default:
|
|
353
|
+
throw new errors.FrameioError({
|
|
354
|
+
statusCode: _response.error.statusCode,
|
|
355
|
+
body: _response.error.body,
|
|
356
|
+
rawResponse: _response.rawResponse,
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v4/accounts/{account_id}/workspaces/{workspace_id}/actions");
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Create a custom action in a workspace. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
365
|
+
*
|
|
366
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
367
|
+
* @param {Frameio.Uuid} workspace_id
|
|
368
|
+
* @param {Frameio.ActionCreateParams} request
|
|
369
|
+
* @param {CustomActionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
370
|
+
*
|
|
371
|
+
* @throws {@link Frameio.BadRequestError}
|
|
372
|
+
* @throws {@link Frameio.UnauthorizedError}
|
|
373
|
+
* @throws {@link Frameio.ForbiddenError}
|
|
374
|
+
* @throws {@link Frameio.NotFoundError}
|
|
375
|
+
* @throws {@link Frameio.ConflictError}
|
|
376
|
+
* @throws {@link Frameio.UnprocessableEntityError}
|
|
377
|
+
* @throws {@link Frameio.TooManyRequestsError}
|
|
378
|
+
*
|
|
379
|
+
* @example
|
|
380
|
+
* await client.customActions.actionsCreate("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
381
|
+
* data: {
|
|
382
|
+
* description: "customizing our workflow",
|
|
383
|
+
* event: "my.event",
|
|
384
|
+
* name: "First Custom Action",
|
|
385
|
+
* timeout: 7,
|
|
386
|
+
* url: "https://example.com/custom-action"
|
|
387
|
+
* }
|
|
388
|
+
* })
|
|
389
|
+
*/
|
|
390
|
+
actionsCreate(account_id, workspace_id, request, requestOptions) {
|
|
391
|
+
return core.HttpResponsePromise.fromPromise(this.__actionsCreate(account_id, workspace_id, request, requestOptions));
|
|
392
|
+
}
|
|
393
|
+
__actionsCreate(account_id, workspace_id, request, requestOptions) {
|
|
394
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
395
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
396
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
397
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "user-agent": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.userAgent) !== null && _b !== void 0 ? _b : "frameio-ts" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
398
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
399
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.FrameioEnvironment.Default, `v4/accounts/${core.url.encodePathParam(account_id)}/workspaces/${core.url.encodePathParam(workspace_id)}/actions`),
|
|
400
|
+
method: "POST",
|
|
401
|
+
headers: _headers,
|
|
402
|
+
contentType: "application/json",
|
|
403
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
404
|
+
requestType: "json",
|
|
405
|
+
body: request,
|
|
406
|
+
timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
|
|
407
|
+
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
408
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
409
|
+
fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
|
|
410
|
+
logging: this._options.logging,
|
|
411
|
+
});
|
|
412
|
+
if (_response.ok) {
|
|
413
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
414
|
+
}
|
|
415
|
+
if (_response.error.reason === "status-code") {
|
|
416
|
+
switch (_response.error.statusCode) {
|
|
417
|
+
case 400:
|
|
418
|
+
throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
|
|
419
|
+
case 401:
|
|
420
|
+
throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
421
|
+
case 403:
|
|
422
|
+
throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
423
|
+
case 404:
|
|
424
|
+
throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
|
|
425
|
+
case 409:
|
|
426
|
+
throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
|
|
427
|
+
case 422:
|
|
428
|
+
throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
429
|
+
case 429:
|
|
430
|
+
throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
431
|
+
default:
|
|
432
|
+
throw new errors.FrameioError({
|
|
433
|
+
statusCode: _response.error.statusCode,
|
|
434
|
+
body: _response.error.body,
|
|
435
|
+
rawResponse: _response.rawResponse,
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v4/accounts/{account_id}/workspaces/{workspace_id}/actions");
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
exports.CustomActionsClient = CustomActionsClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.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("./requests/index.js"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* data: {
|
|
5
|
+
* description: "customizing our workflow",
|
|
6
|
+
* event: "my.event",
|
|
7
|
+
* name: "First Custom Action",
|
|
8
|
+
* timeout: 7,
|
|
9
|
+
* url: "https://example.com/custom-action"
|
|
10
|
+
* }
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface ActionCreateParams {
|
|
14
|
+
data: ActionCreateParams.Data;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace ActionCreateParams {
|
|
17
|
+
interface Data {
|
|
18
|
+
/** Action description */
|
|
19
|
+
description: string;
|
|
20
|
+
/** Event name sent to `url` */
|
|
21
|
+
event: string;
|
|
22
|
+
/** Manages action trigger on multiple assets */
|
|
23
|
+
multi_asset?: boolean | undefined;
|
|
24
|
+
/** Action name */
|
|
25
|
+
name: string;
|
|
26
|
+
/** Timeout for the action requests in seconds */
|
|
27
|
+
timeout?: number | undefined;
|
|
28
|
+
/** URL where `event` is sent */
|
|
29
|
+
url: string;
|
|
30
|
+
}
|
|
31
|
+
}
|