frameio 4.2.0 → 4.2.2
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 +9 -0
- package/dist/cjs/Client.js +45 -30
- 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 +10 -10
- package/dist/cjs/api/resources/customActions/client/Client.js +5 -5
- package/dist/cjs/api/resources/files/client/Client.d.ts +33 -33
- package/dist/cjs/api/resources/files/client/Client.js +22 -22
- 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 +8 -8
- package/dist/cjs/api/resources/groups/client/Client.js +4 -4
- package/dist/cjs/api/resources/index.d.ts +12 -0
- package/dist/cjs/api/resources/index.js +13 -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/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 +2 -0
- package/dist/cjs/api/types/AuditLogwithIncludes.js +2 -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 +2 -0
- package/dist/cjs/api/types/Filters.js +2 -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/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/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/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 +56 -0
- package/dist/cjs/api/types/index.js +56 -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 +9 -0
- package/dist/esm/Client.mjs +15 -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 +10 -10
- package/dist/esm/api/resources/customActions/client/Client.mjs +5 -5
- package/dist/esm/api/resources/files/client/Client.d.mts +33 -33
- package/dist/esm/api/resources/files/client/Client.mjs +22 -22
- 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 +8 -8
- package/dist/esm/api/resources/groups/client/Client.mjs +4 -4
- package/dist/esm/api/resources/index.d.mts +12 -0
- package/dist/esm/api/resources/index.mjs +12 -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/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 +2 -0
- package/dist/esm/api/types/AuditLogwithIncludes.mjs +2 -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 +2 -0
- package/dist/esm/api/types/Filters.mjs +2 -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/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/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/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 +56 -0
- package/dist/esm/api/types/index.mjs +56 -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 +34 -1
- package/reference.md +704 -181
|
@@ -3,6 +3,7 @@ import type * as Frameio from "../../../../index.js";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* include_deactivated: true,
|
|
6
|
+
* sort: "role_asc",
|
|
6
7
|
* after: "<opaque_cursor>",
|
|
7
8
|
* page_size: 10,
|
|
8
9
|
* include_total_count: false
|
|
@@ -11,6 +12,8 @@ import type * as Frameio from "../../../../index.js";
|
|
|
11
12
|
export interface ProjectPermissionsIndexRequest {
|
|
12
13
|
/** Supports including deactivated users in the response. Default is false. */
|
|
13
14
|
include_deactivated?: boolean;
|
|
15
|
+
/** Sort users by query params */
|
|
16
|
+
sort?: Frameio.ProjectPermissionsIndexRequestSort;
|
|
14
17
|
/**
|
|
15
18
|
* Opaque Cursor query param for requests returning paginated results.
|
|
16
19
|
* <br/>
|
package/dist/cjs/api/resources/projectPermissions/types/ProjectPermissionsIndexRequestSort.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Sort query parameter for users */
|
|
2
|
+
export declare const ProjectPermissionsIndexRequestSort: {
|
|
3
|
+
readonly RoleAsc: "role_asc";
|
|
4
|
+
readonly RoleDesc: "role_desc";
|
|
5
|
+
readonly NameAsc: "name_asc";
|
|
6
|
+
readonly NameDesc: "name_desc";
|
|
7
|
+
readonly EmailAsc: "email_asc";
|
|
8
|
+
readonly EmailDesc: "email_desc";
|
|
9
|
+
};
|
|
10
|
+
export type ProjectPermissionsIndexRequestSort = (typeof ProjectPermissionsIndexRequestSort)[keyof typeof ProjectPermissionsIndexRequestSort];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ProjectPermissionsIndexRequestSort = void 0;
|
|
5
|
+
/** Sort query parameter for users */
|
|
6
|
+
exports.ProjectPermissionsIndexRequestSort = {
|
|
7
|
+
RoleAsc: "role_asc",
|
|
8
|
+
RoleDesc: "role_desc",
|
|
9
|
+
NameAsc: "name_asc",
|
|
10
|
+
NameDesc: "name_desc",
|
|
11
|
+
EmailAsc: "email_asc",
|
|
12
|
+
EmailDesc: "email_desc",
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ProjectPermissionsIndexRequestSort.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("./ProjectPermissionsIndexRequestSort.js"), exports);
|
|
@@ -16,8 +16,8 @@ export declare class ProjectsClient {
|
|
|
16
16
|
/**
|
|
17
17
|
* Show project details. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
18
18
|
*
|
|
19
|
-
* @param {Frameio.
|
|
20
|
-
* @param {Frameio.
|
|
19
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
20
|
+
* @param {Frameio.FrameOrAdobeId} project_id
|
|
21
21
|
* @param {Frameio.ProjectsShowRequest} request
|
|
22
22
|
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
23
|
*
|
|
@@ -34,13 +34,13 @@ export declare class ProjectsClient {
|
|
|
34
34
|
* include: "owner"
|
|
35
35
|
* })
|
|
36
36
|
*/
|
|
37
|
-
show(account_id: Frameio.
|
|
37
|
+
show(account_id: Frameio.FrameOrAdobeId, project_id: Frameio.FrameOrAdobeId, request?: Frameio.ProjectsShowRequest, requestOptions?: ProjectsClient.RequestOptions): core.HttpResponsePromise<Frameio.ProjectWithIncludesResponse>;
|
|
38
38
|
private __show;
|
|
39
39
|
/**
|
|
40
40
|
* Delete a project. <br/>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
41
41
|
*
|
|
42
|
-
* @param {Frameio.
|
|
43
|
-
* @param {Frameio.
|
|
42
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
43
|
+
* @param {Frameio.FrameOrAdobeId} project_id
|
|
44
44
|
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
45
|
*
|
|
46
46
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -54,13 +54,13 @@ export declare class ProjectsClient {
|
|
|
54
54
|
* @example
|
|
55
55
|
* await client.projects.delete("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b")
|
|
56
56
|
*/
|
|
57
|
-
delete(account_id: Frameio.
|
|
57
|
+
delete(account_id: Frameio.FrameOrAdobeId, project_id: Frameio.FrameOrAdobeId, requestOptions?: ProjectsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
58
58
|
private __delete;
|
|
59
59
|
/**
|
|
60
60
|
* Update project details. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
61
61
|
*
|
|
62
|
-
* @param {Frameio.
|
|
63
|
-
* @param {Frameio.
|
|
62
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
63
|
+
* @param {Frameio.FrameOrAdobeId} project_id
|
|
64
64
|
* @param {Frameio.ProjectUpdateParams} request
|
|
65
65
|
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
66
|
*
|
|
@@ -81,12 +81,12 @@ export declare class ProjectsClient {
|
|
|
81
81
|
* }
|
|
82
82
|
* })
|
|
83
83
|
*/
|
|
84
|
-
update(account_id: Frameio.
|
|
84
|
+
update(account_id: Frameio.FrameOrAdobeId, project_id: Frameio.FrameOrAdobeId, request: Frameio.ProjectUpdateParams, requestOptions?: ProjectsClient.RequestOptions): core.HttpResponsePromise<Frameio.ProjectResponse>;
|
|
85
85
|
private __update;
|
|
86
86
|
/**
|
|
87
87
|
* List projects in a given workspace. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
88
88
|
*
|
|
89
|
-
* @param {Frameio.
|
|
89
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
90
90
|
* @param {Frameio.Uuid} workspace_id
|
|
91
91
|
* @param {Frameio.ProjectsIndexRequest} request
|
|
92
92
|
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -102,16 +102,17 @@ export declare class ProjectsClient {
|
|
|
102
102
|
* @example
|
|
103
103
|
* await client.projects.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
104
104
|
* include: "owner",
|
|
105
|
+
* sort: "name_asc",
|
|
105
106
|
* after: "<opaque_cursor>",
|
|
106
107
|
* page_size: 10,
|
|
107
108
|
* include_total_count: false
|
|
108
109
|
* })
|
|
109
110
|
*/
|
|
110
|
-
index(account_id: Frameio.
|
|
111
|
+
index(account_id: Frameio.FrameOrAdobeId, workspace_id: Frameio.Uuid, _request?: Frameio.ProjectsIndexRequest, requestOptions?: ProjectsClient.RequestOptions): Promise<core.Page<Frameio.ProjectWithIncludes, Frameio.ProjectsWithIncludesResponse>>;
|
|
111
112
|
/**
|
|
112
113
|
* Create project in a given workspace. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
113
114
|
*
|
|
114
|
-
* @param {Frameio.
|
|
115
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
115
116
|
* @param {Frameio.Uuid} workspace_id
|
|
116
117
|
* @param {Frameio.ProjectParams} request
|
|
117
118
|
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -132,6 +133,6 @@ export declare class ProjectsClient {
|
|
|
132
133
|
* }
|
|
133
134
|
* })
|
|
134
135
|
*/
|
|
135
|
-
create(account_id: Frameio.
|
|
136
|
+
create(account_id: Frameio.FrameOrAdobeId, workspace_id: Frameio.Uuid, request: Frameio.ProjectParams, requestOptions?: ProjectsClient.RequestOptions): core.HttpResponsePromise<Frameio.ProjectResponse>;
|
|
136
137
|
private __create;
|
|
137
138
|
}
|
|
@@ -61,8 +61,8 @@ class ProjectsClient {
|
|
|
61
61
|
/**
|
|
62
62
|
* Show project details. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
63
63
|
*
|
|
64
|
-
* @param {Frameio.
|
|
65
|
-
* @param {Frameio.
|
|
64
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
65
|
+
* @param {Frameio.FrameOrAdobeId} project_id
|
|
66
66
|
* @param {Frameio.ProjectsShowRequest} request
|
|
67
67
|
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
68
|
*
|
|
@@ -135,8 +135,8 @@ class ProjectsClient {
|
|
|
135
135
|
/**
|
|
136
136
|
* Delete a project. <br/>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
137
137
|
*
|
|
138
|
-
* @param {Frameio.
|
|
139
|
-
* @param {Frameio.
|
|
138
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
139
|
+
* @param {Frameio.FrameOrAdobeId} project_id
|
|
140
140
|
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
141
141
|
*
|
|
142
142
|
* @throws {@link Frameio.BadRequestError}
|
|
@@ -202,8 +202,8 @@ class ProjectsClient {
|
|
|
202
202
|
/**
|
|
203
203
|
* Update project details. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
204
204
|
*
|
|
205
|
-
* @param {Frameio.
|
|
206
|
-
* @param {Frameio.
|
|
205
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
206
|
+
* @param {Frameio.FrameOrAdobeId} project_id
|
|
207
207
|
* @param {Frameio.ProjectUpdateParams} request
|
|
208
208
|
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
209
209
|
*
|
|
@@ -279,7 +279,7 @@ class ProjectsClient {
|
|
|
279
279
|
/**
|
|
280
280
|
* List projects in a given workspace. <br/>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
281
281
|
*
|
|
282
|
-
* @param {Frameio.
|
|
282
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
283
283
|
* @param {Frameio.Uuid} workspace_id
|
|
284
284
|
* @param {Frameio.ProjectsIndexRequest} request
|
|
285
285
|
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -295,6 +295,7 @@ class ProjectsClient {
|
|
|
295
295
|
* @example
|
|
296
296
|
* await client.projects.index("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", "b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
297
297
|
* include: "owner",
|
|
298
|
+
* sort: "name_asc",
|
|
298
299
|
* after: "<opaque_cursor>",
|
|
299
300
|
* page_size: 10,
|
|
300
301
|
* include_total_count: false
|
|
@@ -365,7 +366,7 @@ class ProjectsClient {
|
|
|
365
366
|
/**
|
|
366
367
|
* Create project in a given workspace. <br/>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
367
368
|
*
|
|
368
|
-
* @param {Frameio.
|
|
369
|
+
* @param {Frameio.FrameOrAdobeId} account_id
|
|
369
370
|
* @param {Frameio.Uuid} workspace_id
|
|
370
371
|
* @param {Frameio.ProjectParams} request
|
|
371
372
|
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -3,6 +3,7 @@ import type * as Frameio from "../../../../index.js";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* include: "owner",
|
|
6
|
+
* sort: "name_asc",
|
|
6
7
|
* after: "<opaque_cursor>",
|
|
7
8
|
* page_size: 10,
|
|
8
9
|
* include_total_count: false
|
|
@@ -10,6 +11,8 @@ import type * as Frameio from "../../../../index.js";
|
|
|
10
11
|
*/
|
|
11
12
|
export interface ProjectsIndexRequest {
|
|
12
13
|
include?: "owner";
|
|
14
|
+
/** Sort projects by query params */
|
|
15
|
+
sort?: Frameio.ProjectsIndexRequestSort;
|
|
13
16
|
/**
|
|
14
17
|
* Opaque Cursor query param for requests returning paginated results.
|
|
15
18
|
* <br/>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Sort query parameter for projects */
|
|
2
|
+
export declare const ProjectsIndexRequestSort: {
|
|
3
|
+
readonly NameAsc: "name_asc";
|
|
4
|
+
readonly CreatedAtAsc: "created_at_asc";
|
|
5
|
+
readonly NameDesc: "name_desc";
|
|
6
|
+
readonly CreatedAtDesc: "created_at_desc";
|
|
7
|
+
};
|
|
8
|
+
export type ProjectsIndexRequestSort = (typeof ProjectsIndexRequestSort)[keyof typeof ProjectsIndexRequestSort];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ProjectsIndexRequestSort = void 0;
|
|
5
|
+
/** Sort query parameter for projects */
|
|
6
|
+
exports.ProjectsIndexRequestSort = {
|
|
7
|
+
NameAsc: "name_asc",
|
|
8
|
+
CreatedAtAsc: "created_at_asc",
|
|
9
|
+
NameDesc: "name_desc",
|
|
10
|
+
CreatedAtDesc: "created_at_desc",
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ProjectsIndexRequestSort.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("./ProjectsIndexRequestSort.js"), exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
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 SearchClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Manage Search and related operations.
|
|
12
|
+
*/
|
|
13
|
+
export declare class SearchClient {
|
|
14
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<SearchClient.Options>;
|
|
15
|
+
constructor(options: SearchClient.Options);
|
|
16
|
+
/**
|
|
17
|
+
* Search across assets, folders, and projects within an account.
|
|
18
|
+
* Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
19
|
+
*
|
|
20
|
+
* @param {Frameio.Uuid} account_id
|
|
21
|
+
* @param {Frameio.SearchParams} request
|
|
22
|
+
* @param {SearchClient.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.search.search("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
34
|
+
* after: "<opaque_cursor>",
|
|
35
|
+
* page_size: 10,
|
|
36
|
+
* include_total_count: false,
|
|
37
|
+
* engine: "nlp",
|
|
38
|
+
* filters: {
|
|
39
|
+
* files_and_version_stacks: true,
|
|
40
|
+
* folders: false,
|
|
41
|
+
* projects: false
|
|
42
|
+
* },
|
|
43
|
+
* query: "red car driving on highway"
|
|
44
|
+
* })
|
|
45
|
+
*/
|
|
46
|
+
search(account_id: Frameio.Uuid, request: Frameio.SearchParams, requestOptions?: SearchClient.RequestOptions): core.HttpResponsePromise<Frameio.SearchResponse>;
|
|
47
|
+
private __search;
|
|
48
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
+
var t = {};
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
+
t[p] = s[p];
|
|
49
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
+
t[p[i]] = s[p[i]];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
56
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
|
+
exports.SearchClient = void 0;
|
|
58
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
59
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
60
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
61
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
62
|
+
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
63
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
64
|
+
const Frameio = __importStar(require("../../../index.js"));
|
|
65
|
+
/**
|
|
66
|
+
* Manage Search and related operations.
|
|
67
|
+
*/
|
|
68
|
+
class SearchClient {
|
|
69
|
+
constructor(options) {
|
|
70
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Search across assets, folders, and projects within an account.
|
|
74
|
+
* Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
75
|
+
*
|
|
76
|
+
* @param {Frameio.Uuid} account_id
|
|
77
|
+
* @param {Frameio.SearchParams} request
|
|
78
|
+
* @param {SearchClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link Frameio.BadRequestError}
|
|
81
|
+
* @throws {@link Frameio.UnauthorizedError}
|
|
82
|
+
* @throws {@link Frameio.ForbiddenError}
|
|
83
|
+
* @throws {@link Frameio.NotFoundError}
|
|
84
|
+
* @throws {@link Frameio.ConflictError}
|
|
85
|
+
* @throws {@link Frameio.UnprocessableEntityError}
|
|
86
|
+
* @throws {@link Frameio.TooManyRequestsError}
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* await client.search.search("b2702c44-c6da-4bb6-8bbd-be6e547ccf1b", {
|
|
90
|
+
* after: "<opaque_cursor>",
|
|
91
|
+
* page_size: 10,
|
|
92
|
+
* include_total_count: false,
|
|
93
|
+
* engine: "nlp",
|
|
94
|
+
* filters: {
|
|
95
|
+
* files_and_version_stacks: true,
|
|
96
|
+
* folders: false,
|
|
97
|
+
* projects: false
|
|
98
|
+
* },
|
|
99
|
+
* query: "red car driving on highway"
|
|
100
|
+
* })
|
|
101
|
+
*/
|
|
102
|
+
search(account_id, request, requestOptions) {
|
|
103
|
+
return core.HttpResponsePromise.fromPromise(this.__search(account_id, request, requestOptions));
|
|
104
|
+
}
|
|
105
|
+
__search(account_id, request, requestOptions) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
108
|
+
const { after, page_size: pageSize, include_total_count: includeTotalCount } = request, _body = __rest(request, ["after", "page_size", "include_total_count"]);
|
|
109
|
+
const _queryParams = {
|
|
110
|
+
after,
|
|
111
|
+
page_size: pageSize,
|
|
112
|
+
include_total_count: includeTotalCount,
|
|
113
|
+
};
|
|
114
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
115
|
+
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);
|
|
116
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
117
|
+
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)}/search`),
|
|
118
|
+
method: "POST",
|
|
119
|
+
headers: _headers,
|
|
120
|
+
contentType: "application/json",
|
|
121
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
122
|
+
requestType: "json",
|
|
123
|
+
body: _body,
|
|
124
|
+
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,
|
|
125
|
+
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,
|
|
126
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
127
|
+
fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
|
|
128
|
+
logging: this._options.logging,
|
|
129
|
+
});
|
|
130
|
+
if (_response.ok) {
|
|
131
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
132
|
+
}
|
|
133
|
+
if (_response.error.reason === "status-code") {
|
|
134
|
+
switch (_response.error.statusCode) {
|
|
135
|
+
case 400:
|
|
136
|
+
throw new Frameio.BadRequestError(_response.error.body, _response.rawResponse);
|
|
137
|
+
case 401:
|
|
138
|
+
throw new Frameio.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
139
|
+
case 403:
|
|
140
|
+
throw new Frameio.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
141
|
+
case 404:
|
|
142
|
+
throw new Frameio.NotFoundError(_response.error.body, _response.rawResponse);
|
|
143
|
+
case 409:
|
|
144
|
+
throw new Frameio.ConflictError(_response.error.body, _response.rawResponse);
|
|
145
|
+
case 422:
|
|
146
|
+
throw new Frameio.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
147
|
+
case 429:
|
|
148
|
+
throw new Frameio.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
149
|
+
default:
|
|
150
|
+
throw new errors.FrameioError({
|
|
151
|
+
statusCode: _response.error.statusCode,
|
|
152
|
+
body: _response.error.body,
|
|
153
|
+
rawResponse: _response.rawResponse,
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v4/accounts/{account_id}/search");
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
exports.SearchClient = SearchClient;
|
|
@@ -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,51 @@
|
|
|
1
|
+
import type * as Frameio from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* after: "<opaque_cursor>",
|
|
6
|
+
* page_size: 10,
|
|
7
|
+
* include_total_count: false,
|
|
8
|
+
* engine: "nlp",
|
|
9
|
+
* filters: {
|
|
10
|
+
* files_and_version_stacks: true,
|
|
11
|
+
* folders: false,
|
|
12
|
+
* projects: false
|
|
13
|
+
* },
|
|
14
|
+
* query: "red car driving on highway"
|
|
15
|
+
* }
|
|
16
|
+
*/
|
|
17
|
+
export interface SearchParams {
|
|
18
|
+
/**
|
|
19
|
+
* Opaque Cursor query param for requests returning paginated results.
|
|
20
|
+
* <br/>
|
|
21
|
+
* NOTE: this value is auto-generated and included as part of links from a previous response. It is not intended to be human readable.
|
|
22
|
+
*/
|
|
23
|
+
after?: Frameio.RequestAfterOpaqueCursor | undefined;
|
|
24
|
+
page_size?: Frameio.RequestPageSize;
|
|
25
|
+
include_total_count?: Frameio.IncludeTotalCount;
|
|
26
|
+
/** Search engine to use. Available engines: lexical, nlp. */
|
|
27
|
+
engine: SearchParams.Engine;
|
|
28
|
+
/** Filters to control which types of results are returned */
|
|
29
|
+
filters?: SearchParams.Filters;
|
|
30
|
+
/** The search query text */
|
|
31
|
+
query: string;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace SearchParams {
|
|
34
|
+
/** Search engine to use. Available engines: lexical, nlp. */
|
|
35
|
+
const Engine: {
|
|
36
|
+
readonly Lexical: "lexical";
|
|
37
|
+
readonly Nlp: "nlp";
|
|
38
|
+
};
|
|
39
|
+
type Engine = (typeof Engine)[keyof typeof Engine];
|
|
40
|
+
/**
|
|
41
|
+
* Filters to control which types of results are returned
|
|
42
|
+
*/
|
|
43
|
+
interface Filters {
|
|
44
|
+
/** Include files and version stacks in search results */
|
|
45
|
+
files_and_version_stacks?: boolean | undefined;
|
|
46
|
+
/** Include folders in search results */
|
|
47
|
+
folders?: boolean | undefined;
|
|
48
|
+
/** Include projects in search results */
|
|
49
|
+
projects?: boolean | undefined;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SearchParams = void 0;
|
|
5
|
+
var SearchParams;
|
|
6
|
+
(function (SearchParams) {
|
|
7
|
+
/** Search engine to use. Available engines: lexical, nlp. */
|
|
8
|
+
SearchParams.Engine = {
|
|
9
|
+
Lexical: "lexical",
|
|
10
|
+
Nlp: "nlp",
|
|
11
|
+
};
|
|
12
|
+
})(SearchParams || (exports.SearchParams = SearchParams = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SearchParams } from "./SearchParams.js";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchParams = void 0;
|
|
4
|
+
var SearchParams_js_1 = require("./SearchParams.js");
|
|
5
|
+
Object.defineProperty(exports, "SearchParams", { enumerable: true, get: function () { return SearchParams_js_1.SearchParams; } });
|
|
@@ -0,0 +1,21 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.SearchClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "SearchClient", { enumerable: true, get: function () { return Client_js_1.SearchClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|