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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Use for desktop and mobile applications with custom URI schemes
|
|
5
5
|
* or loopback redirects.
|
|
6
6
|
*/
|
|
7
|
-
import { SPAAuth, type SPAAuthOptions } from "./SPAAuth";
|
|
7
|
+
import { SPAAuth, type SPAAuthOptions } from "./SPAAuth.js";
|
|
8
8
|
export type NativeAppAuthOptions = SPAAuthOptions;
|
|
9
9
|
/**
|
|
10
10
|
* Authenticate native (desktop / mobile) apps using PKCE.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.NativeAppAuth = void 0;
|
|
10
|
-
const
|
|
10
|
+
const SPAAuth_js_1 = require("./SPAAuth.js");
|
|
11
11
|
/**
|
|
12
12
|
* Authenticate native (desktop / mobile) apps using PKCE.
|
|
13
13
|
*
|
|
@@ -30,6 +30,6 @@ const SPAAuth_1 = require("./SPAAuth");
|
|
|
30
30
|
* const client = new FrameioClient({ token: () => auth.getToken() });
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
|
-
class NativeAppAuth extends
|
|
33
|
+
class NativeAppAuth extends SPAAuth_js_1.SPAAuth {
|
|
34
34
|
}
|
|
35
35
|
exports.NativeAppAuth = NativeAppAuth;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Use for browser-based apps that cannot store a client secret.
|
|
5
5
|
*/
|
|
6
|
-
import { BaseAuth, type BaseAuthOptions } from "./BaseAuth";
|
|
7
|
-
import type { TokenResponse } from "./TokenManager";
|
|
6
|
+
import { BaseAuth, type BaseAuthOptions } from "./BaseAuth.js";
|
|
7
|
+
import type { TokenResponse } from "./TokenManager.js";
|
|
8
8
|
/** Returned by `getAuthorizationUrl` — contains the URL and PKCE verifier. */
|
|
9
9
|
export interface AuthorizationUrlResult {
|
|
10
10
|
url: string;
|
|
@@ -15,21 +15,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.SPAAuth = void 0;
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
class SPAAuth extends
|
|
18
|
+
const BaseAuth_js_1 = require("./BaseAuth.js");
|
|
19
|
+
const errors_js_1 = require("./errors.js");
|
|
20
|
+
const http_js_1 = require("./http.js");
|
|
21
|
+
const pkce_js_1 = require("./pkce.js");
|
|
22
|
+
const validation_js_1 = require("./validation.js");
|
|
23
|
+
class SPAAuth extends BaseAuth_js_1.BaseAuth {
|
|
24
24
|
constructor(options) {
|
|
25
25
|
var _a;
|
|
26
26
|
if (!options.redirectUri) {
|
|
27
|
-
throw new
|
|
27
|
+
throw new errors_js_1.ConfigurationError("redirectUri is required");
|
|
28
28
|
}
|
|
29
|
-
(0,
|
|
29
|
+
(0, validation_js_1.validateRedirectUriScheme)(options.redirectUri);
|
|
30
30
|
super(options);
|
|
31
31
|
this._redirectUri = options.redirectUri;
|
|
32
|
-
this._scopes = (_a = options.scopes) !== null && _a !== void 0 ? _a :
|
|
32
|
+
this._scopes = (_a = options.scopes) !== null && _a !== void 0 ? _a : http_js_1.DEFAULT_SCOPES;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Build the Adobe IMS authorization URL with PKCE challenge.
|
|
@@ -38,8 +38,8 @@ class SPAAuth extends BaseAuth_1.BaseAuth {
|
|
|
38
38
|
*/
|
|
39
39
|
getAuthorizationUrl(options) {
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
const codeVerifier = (0,
|
|
42
|
-
const codeChallenge = yield (0,
|
|
41
|
+
const codeVerifier = (0, pkce_js_1.generateCodeVerifier)();
|
|
42
|
+
const codeChallenge = yield (0, pkce_js_1.generateCodeChallenge)(codeVerifier);
|
|
43
43
|
const params = new URLSearchParams({
|
|
44
44
|
client_id: this._clientId,
|
|
45
45
|
redirect_uri: this._redirectUri,
|
|
@@ -83,7 +83,7 @@ class SPAAuth extends BaseAuth_1.BaseAuth {
|
|
|
83
83
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84
84
|
const refreshTok = this._tokenManager.refreshTokenValue;
|
|
85
85
|
if (!refreshTok) {
|
|
86
|
-
throw new
|
|
86
|
+
throw new errors_js_1.ConfigurationError("No refresh token available. Call exchangeCode() first.");
|
|
87
87
|
}
|
|
88
88
|
return this._tokenRequest({
|
|
89
89
|
grant_type: "refresh_token",
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Use for backend services and scripts with no user interaction.
|
|
5
5
|
*/
|
|
6
|
-
import { BaseAuth, type BaseAuthOptions } from "./BaseAuth";
|
|
7
|
-
import type { TokenResponse } from "./TokenManager";
|
|
6
|
+
import { BaseAuth, type BaseAuthOptions } from "./BaseAuth.js";
|
|
7
|
+
import type { TokenResponse } from "./TokenManager.js";
|
|
8
8
|
export interface ServerToServerAuthOptions extends BaseAuthOptions {
|
|
9
9
|
clientSecret: string;
|
|
10
10
|
}
|
|
@@ -15,17 +15,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.ServerToServerAuth = void 0;
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
class ServerToServerAuth extends
|
|
18
|
+
const BaseAuth_js_1 = require("./BaseAuth.js");
|
|
19
|
+
const errors_js_1 = require("./errors.js");
|
|
20
|
+
const http_js_1 = require("./http.js");
|
|
21
|
+
class ServerToServerAuth extends BaseAuth_js_1.BaseAuth {
|
|
22
22
|
constructor(options) {
|
|
23
23
|
var _a;
|
|
24
24
|
if (!options.clientSecret) {
|
|
25
|
-
throw new
|
|
25
|
+
throw new errors_js_1.ConfigurationError("clientSecret is required");
|
|
26
26
|
}
|
|
27
27
|
super(options, options.clientSecret);
|
|
28
|
-
this._scopes = (_a = options.scopes) !== null && _a !== void 0 ? _a :
|
|
28
|
+
this._scopes = (_a = options.scopes) !== null && _a !== void 0 ? _a : http_js_1.S2S_SCOPES;
|
|
29
29
|
}
|
|
30
30
|
/** Explicitly fetch a new access token. */
|
|
31
31
|
authenticate() {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Stores access/refresh tokens, checks expiry with a configurable buffer,
|
|
5
5
|
* and coordinates async-safe automatic refresh.
|
|
6
6
|
*/
|
|
7
|
-
import type { Logger } from "./logger";
|
|
7
|
+
import type { Logger } from "./logger.js";
|
|
8
8
|
/** Shape returned by refresh functions and token endpoints. */
|
|
9
9
|
export interface TokenResponse {
|
|
10
10
|
access_token: string;
|
|
@@ -16,9 +16,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
16
16
|
};
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.TokenManager = void 0;
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
19
|
+
const errors_js_1 = require("./errors.js");
|
|
20
|
+
const logger_js_1 = require("./logger.js");
|
|
21
|
+
const validation_js_1 = require("./validation.js");
|
|
22
22
|
/**
|
|
23
23
|
* Manages token storage, expiry detection, and auto-refresh.
|
|
24
24
|
*
|
|
@@ -40,7 +40,7 @@ class TokenManager {
|
|
|
40
40
|
this._refreshFunc = options.refreshFunc;
|
|
41
41
|
this._refreshBuffer = (_a = options.refreshBuffer) !== null && _a !== void 0 ? _a : 60;
|
|
42
42
|
this._onTokenRefreshed = options.onTokenRefreshed;
|
|
43
|
-
this._logger = (_b = options.logger) !== null && _b !== void 0 ? _b :
|
|
43
|
+
this._logger = (_b = options.logger) !== null && _b !== void 0 ? _b : logger_js_1.noopLogger;
|
|
44
44
|
}
|
|
45
45
|
// ------------------------------------------------------------------
|
|
46
46
|
// Public API
|
|
@@ -92,7 +92,7 @@ class TokenManager {
|
|
|
92
92
|
/** Restore token state from a previously exported object. */
|
|
93
93
|
importTokens(data) {
|
|
94
94
|
var _a;
|
|
95
|
-
(0,
|
|
95
|
+
(0, validation_js_1.validateTokenImport)(data);
|
|
96
96
|
this._revoked = false;
|
|
97
97
|
this._accessToken = data.access_token;
|
|
98
98
|
this._refreshToken = data.refresh_token;
|
|
@@ -139,18 +139,18 @@ class TokenManager {
|
|
|
139
139
|
result = yield this._refreshFunc();
|
|
140
140
|
}
|
|
141
141
|
catch (err) {
|
|
142
|
-
if (err instanceof
|
|
143
|
-
err instanceof
|
|
144
|
-
err instanceof
|
|
145
|
-
err instanceof
|
|
142
|
+
if (err instanceof errors_js_1.AuthenticationError ||
|
|
143
|
+
err instanceof errors_js_1.TokenExpiredError ||
|
|
144
|
+
err instanceof errors_js_1.NetworkError ||
|
|
145
|
+
err instanceof errors_js_1.RateLimitError) {
|
|
146
146
|
throw err;
|
|
147
147
|
}
|
|
148
|
-
throw new
|
|
148
|
+
throw new errors_js_1.AuthenticationError("refresh_failed", (0, errors_js_1.sanitizeMessage)(`Token refresh failed: ${err instanceof Error ? err.message : String(err)}`));
|
|
149
149
|
}
|
|
150
150
|
// If clear() was called while the refresh was in flight (e.g. via
|
|
151
151
|
// revoke()), do not overwrite the cleared state with new tokens.
|
|
152
152
|
if (this._revoked) {
|
|
153
|
-
throw new
|
|
153
|
+
throw new errors_js_1.AuthenticationError("revoked", "Tokens were revoked during refresh.");
|
|
154
154
|
}
|
|
155
155
|
const token = result.access_token;
|
|
156
156
|
this._accessToken = token;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Use for server-side applications that can securely store a client secret.
|
|
5
5
|
*/
|
|
6
|
-
import { BaseAuth, type BaseAuthOptions } from "./BaseAuth";
|
|
7
|
-
import type { TokenResponse } from "./TokenManager";
|
|
6
|
+
import { BaseAuth, type BaseAuthOptions } from "./BaseAuth.js";
|
|
7
|
+
import type { TokenResponse } from "./TokenManager.js";
|
|
8
8
|
export interface WebAppAuthOptions extends BaseAuthOptions {
|
|
9
9
|
clientSecret: string;
|
|
10
10
|
redirectUri: string;
|
|
@@ -15,23 +15,23 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.WebAppAuth = void 0;
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
class WebAppAuth extends
|
|
18
|
+
const BaseAuth_js_1 = require("./BaseAuth.js");
|
|
19
|
+
const errors_js_1 = require("./errors.js");
|
|
20
|
+
const http_js_1 = require("./http.js");
|
|
21
|
+
const validation_js_1 = require("./validation.js");
|
|
22
|
+
class WebAppAuth extends BaseAuth_js_1.BaseAuth {
|
|
23
23
|
constructor(options) {
|
|
24
24
|
var _a;
|
|
25
25
|
if (!options.clientSecret) {
|
|
26
|
-
throw new
|
|
26
|
+
throw new errors_js_1.ConfigurationError("clientSecret is required");
|
|
27
27
|
}
|
|
28
28
|
if (!options.redirectUri) {
|
|
29
|
-
throw new
|
|
29
|
+
throw new errors_js_1.ConfigurationError("redirectUri is required");
|
|
30
30
|
}
|
|
31
|
-
(0,
|
|
31
|
+
(0, validation_js_1.validateRedirectUriScheme)(options.redirectUri);
|
|
32
32
|
super(options, options.clientSecret);
|
|
33
33
|
this._redirectUri = options.redirectUri;
|
|
34
|
-
this._scopes = (_a = options.scopes) !== null && _a !== void 0 ? _a :
|
|
34
|
+
this._scopes = (_a = options.scopes) !== null && _a !== void 0 ? _a : http_js_1.DEFAULT_SCOPES;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Build the Adobe IMS authorization URL.
|
|
@@ -74,7 +74,7 @@ class WebAppAuth extends BaseAuth_1.BaseAuth {
|
|
|
74
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
75
|
const refreshTok = this._tokenManager.refreshTokenValue;
|
|
76
76
|
if (!refreshTok) {
|
|
77
|
-
throw new
|
|
77
|
+
throw new errors_js_1.ConfigurationError("No refresh token available. Call exchangeCode() first.");
|
|
78
78
|
}
|
|
79
79
|
return this._tokenRequest({
|
|
80
80
|
grant_type: "refresh_token",
|
package/dist/cjs/oauth/http.d.ts
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* Allows configurable IMS base URL for staging/alternative environments,
|
|
8
8
|
* and optional fetch injection for proxy, TLS, and custom HTTP handling.
|
|
9
9
|
*/
|
|
10
|
-
import type { Logger } from "./logger";
|
|
11
|
-
import type { TokenResponse } from "./TokenManager";
|
|
10
|
+
import type { Logger } from "./logger.js";
|
|
11
|
+
import type { TokenResponse } from "./TokenManager.js";
|
|
12
12
|
export declare const DEFAULT_IMS_BASE_URL = "https://ims-na1.adobelogin.com";
|
|
13
13
|
/**
|
|
14
14
|
* Build authorize, token, and revoke URLs from an IMS base URL.
|
package/dist/cjs/oauth/http.js
CHANGED
|
@@ -22,8 +22,8 @@ exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_TIMEOUT = exports.S2S_SCOPES = exp
|
|
|
22
22
|
exports.buildImsUrls = buildImsUrls;
|
|
23
23
|
exports.tokenRequest = tokenRequest;
|
|
24
24
|
exports.revokeRequest = revokeRequest;
|
|
25
|
-
const
|
|
26
|
-
const
|
|
25
|
+
const errors_js_1 = require("./errors.js");
|
|
26
|
+
const logger_js_1 = require("./logger.js");
|
|
27
27
|
// Default Adobe IMS base URL (production). Override via imsBaseUrl for staging.
|
|
28
28
|
exports.DEFAULT_IMS_BASE_URL = "https://ims-na1.adobelogin.com";
|
|
29
29
|
/**
|
|
@@ -33,7 +33,7 @@ exports.DEFAULT_IMS_BASE_URL = "https://ims-na1.adobelogin.com";
|
|
|
33
33
|
*/
|
|
34
34
|
function buildImsUrls(imsBaseUrl) {
|
|
35
35
|
if (!imsBaseUrl.toLowerCase().startsWith("https://")) {
|
|
36
|
-
throw new
|
|
36
|
+
throw new errors_js_1.ConfigurationError(`imsBaseUrl must use HTTPS, got: ${imsBaseUrl}`);
|
|
37
37
|
}
|
|
38
38
|
const base = imsBaseUrl.replace(/\/$/, "");
|
|
39
39
|
return {
|
|
@@ -75,11 +75,11 @@ function parseRetryAfter(header) {
|
|
|
75
75
|
*/
|
|
76
76
|
function validateTokenResponse(data, log) {
|
|
77
77
|
if (typeof data !== "object" || data === null) {
|
|
78
|
-
throw new
|
|
78
|
+
throw new errors_js_1.AuthenticationError("invalid_response", "Token endpoint returned non-object response.");
|
|
79
79
|
}
|
|
80
80
|
const obj = data;
|
|
81
81
|
if (!("access_token" in obj) || typeof obj.access_token !== "string" || !obj.access_token) {
|
|
82
|
-
throw new
|
|
82
|
+
throw new errors_js_1.AuthenticationError("invalid_response", "Token response missing or empty 'access_token'.");
|
|
83
83
|
}
|
|
84
84
|
const tokenType = obj.token_type;
|
|
85
85
|
if (tokenType == null) {
|
|
@@ -116,11 +116,11 @@ function tokenRequest(data_1) {
|
|
|
116
116
|
var _a, _b, _c, _d, _e, _f;
|
|
117
117
|
const timeout = (_a = options.timeout) !== null && _a !== void 0 ? _a : exports.DEFAULT_TIMEOUT;
|
|
118
118
|
const maxRetries = (_b = options.maxRetries) !== null && _b !== void 0 ? _b : exports.DEFAULT_MAX_RETRIES;
|
|
119
|
-
const log = (_c = options.logger) !== null && _c !== void 0 ? _c :
|
|
119
|
+
const log = (_c = options.logger) !== null && _c !== void 0 ? _c : logger_js_1.noopLogger;
|
|
120
120
|
const tokenUrl = (_d = options.tokenUrl) !== null && _d !== void 0 ? _d : exports.TOKEN_URL;
|
|
121
121
|
const fetchFn = (_e = options.fetch) !== null && _e !== void 0 ? _e : (typeof globalThis.fetch !== "undefined" ? globalThis.fetch.bind(globalThis) : undefined);
|
|
122
122
|
if (fetchFn === undefined) {
|
|
123
|
-
throw new
|
|
123
|
+
throw new errors_js_1.NetworkError("no fetch implementation available; please provide options.fetch or polyfill global fetch");
|
|
124
124
|
}
|
|
125
125
|
const body = new URLSearchParams(data).toString();
|
|
126
126
|
const maxErrorAttempts = maxRetries + 1;
|
|
@@ -156,9 +156,9 @@ function tokenRequest(data_1) {
|
|
|
156
156
|
continue;
|
|
157
157
|
}
|
|
158
158
|
if (err instanceof Error && (err.name === "AbortError" || err.name === "TimeoutError")) {
|
|
159
|
-
throw new
|
|
159
|
+
throw new errors_js_1.NetworkError(`Token request timed out after ${timeout}ms (${maxErrorAttempts} attempts).`);
|
|
160
160
|
}
|
|
161
|
-
throw new
|
|
161
|
+
throw new errors_js_1.NetworkError(`Token request failed after ${maxErrorAttempts} attempts: ${err instanceof Error ? err.message : String(err)}`);
|
|
162
162
|
}
|
|
163
163
|
// Rate limit handling — separate budget from error retries
|
|
164
164
|
if (response.status === 429) {
|
|
@@ -171,7 +171,7 @@ function tokenRequest(data_1) {
|
|
|
171
171
|
yield sleep(waitMs);
|
|
172
172
|
continue;
|
|
173
173
|
}
|
|
174
|
-
throw new
|
|
174
|
+
throw new errors_js_1.RateLimitError(retryAfterSec);
|
|
175
175
|
}
|
|
176
176
|
// Retryable server errors
|
|
177
177
|
if (RETRYABLE_STATUS_CODES.has(response.status)) {
|
|
@@ -200,10 +200,10 @@ function tokenRequest(data_1) {
|
|
|
200
200
|
errorDesc &&
|
|
201
201
|
errorDesc.toLowerCase().includes("expired")) {
|
|
202
202
|
log.error(`Token expired: ${errorCode}`);
|
|
203
|
-
throw new
|
|
203
|
+
throw new errors_js_1.TokenExpiredError(`${errorCode} — ${errorDesc}`);
|
|
204
204
|
}
|
|
205
205
|
log.error(`Authentication error: ${errorCode}`);
|
|
206
|
-
throw new
|
|
206
|
+
throw new errors_js_1.AuthenticationError(errorCode, errorDesc);
|
|
207
207
|
}
|
|
208
208
|
// Success
|
|
209
209
|
let responseBody;
|
|
@@ -211,14 +211,14 @@ function tokenRequest(data_1) {
|
|
|
211
211
|
responseBody = yield response.json();
|
|
212
212
|
}
|
|
213
213
|
catch (_h) {
|
|
214
|
-
throw new
|
|
214
|
+
throw new errors_js_1.AuthenticationError("invalid_response", "Token endpoint returned non-JSON body");
|
|
215
215
|
}
|
|
216
216
|
const result = validateTokenResponse(responseBody, log);
|
|
217
217
|
log.info(`Token acquired (length=${result.access_token.length})`);
|
|
218
218
|
return result;
|
|
219
219
|
}
|
|
220
220
|
// Should not reach here, but just in case
|
|
221
|
-
throw new
|
|
221
|
+
throw new errors_js_1.NetworkError("Token request failed after all retries.");
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
/**
|
|
@@ -234,7 +234,7 @@ function revokeRequest(token_1, clientId_1, clientSecret_1) {
|
|
|
234
234
|
return __awaiter(this, arguments, void 0, function* (token, clientId, clientSecret, options = {}) {
|
|
235
235
|
var _a, _b, _c, _d;
|
|
236
236
|
const timeout = (_a = options.timeout) !== null && _a !== void 0 ? _a : exports.DEFAULT_TIMEOUT;
|
|
237
|
-
const log = (_b = options.logger) !== null && _b !== void 0 ? _b :
|
|
237
|
+
const log = (_b = options.logger) !== null && _b !== void 0 ? _b : logger_js_1.noopLogger;
|
|
238
238
|
const revokeUrl = (_c = options.revokeUrl) !== null && _c !== void 0 ? _c : exports.REVOKE_URL;
|
|
239
239
|
const fetchFn = (_d = options.fetch) !== null && _d !== void 0 ? _d : (typeof globalThis.fetch !== "undefined" ? globalThis.fetch.bind(globalThis) : undefined);
|
|
240
240
|
if (fetchFn === undefined) {
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
*
|
|
19
19
|
* @packageDocumentation
|
|
20
20
|
*/
|
|
21
|
-
export type { BaseAuthOptions } from "./BaseAuth";
|
|
22
|
-
export { ServerToServerAuth } from "./ServerToServerAuth";
|
|
23
|
-
export type { ServerToServerAuthOptions } from "./ServerToServerAuth";
|
|
24
|
-
export { WebAppAuth } from "./WebAppAuth";
|
|
25
|
-
export type { WebAppAuthOptions } from "./WebAppAuth";
|
|
26
|
-
export { SPAAuth } from "./SPAAuth";
|
|
27
|
-
export type { SPAAuthOptions, AuthorizationUrlResult } from "./SPAAuth";
|
|
28
|
-
export { NativeAppAuth } from "./NativeAppAuth";
|
|
29
|
-
export type { NativeAppAuthOptions } from "./NativeAppAuth";
|
|
30
|
-
export { FrameioAuthError, AuthenticationError, TokenExpiredError, NetworkError, RateLimitError, PKCEError, ConfigurationError, } from "./errors";
|
|
31
|
-
export type { Logger } from "./logger";
|
|
32
|
-
export { noopLogger } from "./logger";
|
|
33
|
-
export { DEFAULT_IMS_BASE_URL, buildImsUrls } from "./http";
|
|
34
|
-
export type { TokenResponse, ExportedTokens, OnTokenRefreshed } from "./TokenManager";
|
|
21
|
+
export type { BaseAuthOptions } from "./BaseAuth.js";
|
|
22
|
+
export { ServerToServerAuth } from "./ServerToServerAuth.js";
|
|
23
|
+
export type { ServerToServerAuthOptions } from "./ServerToServerAuth.js";
|
|
24
|
+
export { WebAppAuth } from "./WebAppAuth.js";
|
|
25
|
+
export type { WebAppAuthOptions } from "./WebAppAuth.js";
|
|
26
|
+
export { SPAAuth } from "./SPAAuth.js";
|
|
27
|
+
export type { SPAAuthOptions, AuthorizationUrlResult } from "./SPAAuth.js";
|
|
28
|
+
export { NativeAppAuth } from "./NativeAppAuth.js";
|
|
29
|
+
export type { NativeAppAuthOptions } from "./NativeAppAuth.js";
|
|
30
|
+
export { FrameioAuthError, AuthenticationError, TokenExpiredError, NetworkError, RateLimitError, PKCEError, ConfigurationError, } from "./errors.js";
|
|
31
|
+
export type { Logger } from "./logger.js";
|
|
32
|
+
export { noopLogger } from "./logger.js";
|
|
33
|
+
export { DEFAULT_IMS_BASE_URL, buildImsUrls } from "./http.js";
|
|
34
|
+
export type { TokenResponse, ExportedTokens, OnTokenRefreshed } from "./TokenManager.js";
|
package/dist/cjs/oauth/index.js
CHANGED
|
@@ -22,26 +22,26 @@
|
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
23
|
exports.buildImsUrls = exports.DEFAULT_IMS_BASE_URL = exports.noopLogger = exports.ConfigurationError = exports.PKCEError = exports.RateLimitError = exports.NetworkError = exports.TokenExpiredError = exports.AuthenticationError = exports.FrameioAuthError = exports.NativeAppAuth = exports.SPAAuth = exports.WebAppAuth = exports.ServerToServerAuth = void 0;
|
|
24
24
|
// Auth flows
|
|
25
|
-
var
|
|
26
|
-
Object.defineProperty(exports, "ServerToServerAuth", { enumerable: true, get: function () { return
|
|
27
|
-
var
|
|
28
|
-
Object.defineProperty(exports, "WebAppAuth", { enumerable: true, get: function () { return
|
|
29
|
-
var
|
|
30
|
-
Object.defineProperty(exports, "SPAAuth", { enumerable: true, get: function () { return
|
|
31
|
-
var
|
|
32
|
-
Object.defineProperty(exports, "NativeAppAuth", { enumerable: true, get: function () { return
|
|
25
|
+
var ServerToServerAuth_js_1 = require("./ServerToServerAuth.js");
|
|
26
|
+
Object.defineProperty(exports, "ServerToServerAuth", { enumerable: true, get: function () { return ServerToServerAuth_js_1.ServerToServerAuth; } });
|
|
27
|
+
var WebAppAuth_js_1 = require("./WebAppAuth.js");
|
|
28
|
+
Object.defineProperty(exports, "WebAppAuth", { enumerable: true, get: function () { return WebAppAuth_js_1.WebAppAuth; } });
|
|
29
|
+
var SPAAuth_js_1 = require("./SPAAuth.js");
|
|
30
|
+
Object.defineProperty(exports, "SPAAuth", { enumerable: true, get: function () { return SPAAuth_js_1.SPAAuth; } });
|
|
31
|
+
var NativeAppAuth_js_1 = require("./NativeAppAuth.js");
|
|
32
|
+
Object.defineProperty(exports, "NativeAppAuth", { enumerable: true, get: function () { return NativeAppAuth_js_1.NativeAppAuth; } });
|
|
33
33
|
// Errors
|
|
34
|
-
var
|
|
35
|
-
Object.defineProperty(exports, "FrameioAuthError", { enumerable: true, get: function () { return
|
|
36
|
-
Object.defineProperty(exports, "AuthenticationError", { enumerable: true, get: function () { return
|
|
37
|
-
Object.defineProperty(exports, "TokenExpiredError", { enumerable: true, get: function () { return
|
|
38
|
-
Object.defineProperty(exports, "NetworkError", { enumerable: true, get: function () { return
|
|
39
|
-
Object.defineProperty(exports, "RateLimitError", { enumerable: true, get: function () { return
|
|
40
|
-
Object.defineProperty(exports, "PKCEError", { enumerable: true, get: function () { return
|
|
41
|
-
Object.defineProperty(exports, "ConfigurationError", { enumerable: true, get: function () { return
|
|
42
|
-
var
|
|
43
|
-
Object.defineProperty(exports, "noopLogger", { enumerable: true, get: function () { return
|
|
34
|
+
var errors_js_1 = require("./errors.js");
|
|
35
|
+
Object.defineProperty(exports, "FrameioAuthError", { enumerable: true, get: function () { return errors_js_1.FrameioAuthError; } });
|
|
36
|
+
Object.defineProperty(exports, "AuthenticationError", { enumerable: true, get: function () { return errors_js_1.AuthenticationError; } });
|
|
37
|
+
Object.defineProperty(exports, "TokenExpiredError", { enumerable: true, get: function () { return errors_js_1.TokenExpiredError; } });
|
|
38
|
+
Object.defineProperty(exports, "NetworkError", { enumerable: true, get: function () { return errors_js_1.NetworkError; } });
|
|
39
|
+
Object.defineProperty(exports, "RateLimitError", { enumerable: true, get: function () { return errors_js_1.RateLimitError; } });
|
|
40
|
+
Object.defineProperty(exports, "PKCEError", { enumerable: true, get: function () { return errors_js_1.PKCEError; } });
|
|
41
|
+
Object.defineProperty(exports, "ConfigurationError", { enumerable: true, get: function () { return errors_js_1.ConfigurationError; } });
|
|
42
|
+
var logger_js_1 = require("./logger.js");
|
|
43
|
+
Object.defineProperty(exports, "noopLogger", { enumerable: true, get: function () { return logger_js_1.noopLogger; } });
|
|
44
44
|
// Config
|
|
45
|
-
var
|
|
46
|
-
Object.defineProperty(exports, "DEFAULT_IMS_BASE_URL", { enumerable: true, get: function () { return
|
|
47
|
-
Object.defineProperty(exports, "buildImsUrls", { enumerable: true, get: function () { return
|
|
45
|
+
var http_js_1 = require("./http.js");
|
|
46
|
+
Object.defineProperty(exports, "DEFAULT_IMS_BASE_URL", { enumerable: true, get: function () { return http_js_1.DEFAULT_IMS_BASE_URL; } });
|
|
47
|
+
Object.defineProperty(exports, "buildImsUrls", { enumerable: true, get: function () { return http_js_1.buildImsUrls; } });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Input validation helpers for frameio-auth-sdk.
|
|
3
3
|
*/
|
|
4
|
-
import type { ExportedTokens } from "./TokenManager";
|
|
4
|
+
import type { ExportedTokens } from "./TokenManager.js";
|
|
5
5
|
/**
|
|
6
6
|
* Validate that a redirect URI uses HTTPS, except for loopback addresses
|
|
7
7
|
* where HTTP is allowed for local development.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.validateRedirectUriScheme = validateRedirectUriScheme;
|
|
7
7
|
exports.validateTokenImport = validateTokenImport;
|
|
8
|
-
const
|
|
8
|
+
const errors_js_1 = require("./errors.js");
|
|
9
9
|
/** Hosts that are allowed to use http:// redirect URIs. */
|
|
10
10
|
const LOOPBACK_HOSTS = new Set(["localhost", "127.0.0.1", "[::1]"]);
|
|
11
11
|
/**
|
|
@@ -30,7 +30,7 @@ function validateRedirectUriScheme(uri) {
|
|
|
30
30
|
host = hostPart.split("/")[0].split(":")[0];
|
|
31
31
|
}
|
|
32
32
|
if (!LOOPBACK_HOSTS.has(host)) {
|
|
33
|
-
throw new
|
|
33
|
+
throw new errors_js_1.ConfigurationError(`Redirect URI must use HTTPS for non-loopback hosts, got: ${uri}`);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
@@ -40,16 +40,16 @@ function validateRedirectUriScheme(uri) {
|
|
|
40
40
|
*/
|
|
41
41
|
function validateTokenImport(data) {
|
|
42
42
|
if (typeof data !== "object" || data === null) {
|
|
43
|
-
throw new
|
|
43
|
+
throw new errors_js_1.ConfigurationError("Token import data must be a non-null object.");
|
|
44
44
|
}
|
|
45
45
|
const obj = data;
|
|
46
46
|
if ("access_token" in obj && obj.access_token !== null && typeof obj.access_token !== "string") {
|
|
47
|
-
throw new
|
|
47
|
+
throw new errors_js_1.ConfigurationError(`access_token must be a string or null, got ${typeof obj.access_token}`);
|
|
48
48
|
}
|
|
49
49
|
if ("refresh_token" in obj && obj.refresh_token !== null && typeof obj.refresh_token !== "string") {
|
|
50
|
-
throw new
|
|
50
|
+
throw new errors_js_1.ConfigurationError(`refresh_token must be a string or null, got ${typeof obj.refresh_token}`);
|
|
51
51
|
}
|
|
52
52
|
if ("expires_at" in obj && typeof obj.expires_at !== "number") {
|
|
53
|
-
throw new
|
|
53
|
+
throw new errors_js_1.ConfigurationError(`expires_at must be a number, got ${typeof obj.expires_at}`);
|
|
54
54
|
}
|
|
55
55
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.2.
|
|
1
|
+
export declare const SDK_VERSION = "4.2.2";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -7,8 +7,8 @@ export function normalizeClientOptions(options) {
|
|
|
7
7
|
const headers = mergeHeaders({
|
|
8
8
|
"X-Fern-Language": "JavaScript",
|
|
9
9
|
"X-Fern-SDK-Name": "frameio",
|
|
10
|
-
"X-Fern-SDK-Version": "4.2.
|
|
11
|
-
"User-Agent": "frameio/4.2.
|
|
10
|
+
"X-Fern-SDK-Version": "4.2.2",
|
|
11
|
+
"User-Agent": "frameio/4.2.2",
|
|
12
12
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
13
13
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
14
14
|
"user-agent": (_a = options === null || options === void 0 ? void 0 : options.userAgent) !== null && _a !== void 0 ? _a : "frameio-ts",
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { AccountPermissionsClient } from "./api/resources/accountPermissions/client/Client.mjs";
|
|
2
2
|
import { AccountsClient } from "./api/resources/accounts/client/Client.mjs";
|
|
3
|
+
import { CollectionsClient } from "./api/resources/collections/client/Client.mjs";
|
|
3
4
|
import { CommentsClient } from "./api/resources/comments/client/Client.mjs";
|
|
4
5
|
import { CustomActionsClient } from "./api/resources/customActions/client/Client.mjs";
|
|
5
6
|
import { FilesClient } from "./api/resources/files/client/Client.mjs";
|
|
7
|
+
import { FolderPermissionsClient } from "./api/resources/folderPermissions/client/Client.mjs";
|
|
6
8
|
import { FoldersClient } from "./api/resources/folders/client/Client.mjs";
|
|
7
9
|
import { GroupsClient } from "./api/resources/groups/client/Client.mjs";
|
|
8
10
|
import { MetadataClient } from "./api/resources/metadata/client/Client.mjs";
|
|
9
11
|
import { MetadataFieldsClient } from "./api/resources/metadataFields/client/Client.mjs";
|
|
10
12
|
import { ProjectPermissionsClient } from "./api/resources/projectPermissions/client/Client.mjs";
|
|
11
13
|
import { ProjectsClient } from "./api/resources/projects/client/Client.mjs";
|
|
14
|
+
import { SearchClient } from "./api/resources/search/client/Client.mjs";
|
|
12
15
|
import { SharesClient } from "./api/resources/shares/client/Client.mjs";
|
|
13
16
|
import { UsersClient } from "./api/resources/users/client/Client.mjs";
|
|
14
17
|
import { VersionStacksClient } from "./api/resources/versionStacks/client/Client.mjs";
|
|
@@ -41,7 +44,10 @@ export declare class FrameioClient {
|
|
|
41
44
|
protected _files: FilesClient | undefined;
|
|
42
45
|
protected _users: UsersClient | undefined;
|
|
43
46
|
protected _projects: ProjectsClient | undefined;
|
|
47
|
+
protected _folderPermissions: FolderPermissionsClient | undefined;
|
|
44
48
|
protected _workspaces: WorkspacesClient | undefined;
|
|
49
|
+
protected _collections: CollectionsClient | undefined;
|
|
50
|
+
protected _search: SearchClient | undefined;
|
|
45
51
|
constructor(options: FrameioClient.Options);
|
|
46
52
|
get customActions(): CustomActionsClient;
|
|
47
53
|
get metadataFields(): MetadataFieldsClient;
|
|
@@ -59,7 +65,10 @@ export declare class FrameioClient {
|
|
|
59
65
|
get files(): FilesClient;
|
|
60
66
|
get users(): UsersClient;
|
|
61
67
|
get projects(): ProjectsClient;
|
|
68
|
+
get folderPermissions(): FolderPermissionsClient;
|
|
62
69
|
get workspaces(): WorkspacesClient;
|
|
70
|
+
get collections(): CollectionsClient;
|
|
71
|
+
get search(): SearchClient;
|
|
63
72
|
/**
|
|
64
73
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
65
74
|
* This is useful for making requests to endpoints not yet supported in the SDK.
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -10,15 +10,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
import { AccountPermissionsClient } from "./api/resources/accountPermissions/client/Client.mjs";
|
|
12
12
|
import { AccountsClient } from "./api/resources/accounts/client/Client.mjs";
|
|
13
|
+
import { CollectionsClient } from "./api/resources/collections/client/Client.mjs";
|
|
13
14
|
import { CommentsClient } from "./api/resources/comments/client/Client.mjs";
|
|
14
15
|
import { CustomActionsClient } from "./api/resources/customActions/client/Client.mjs";
|
|
15
16
|
import { FilesClient } from "./api/resources/files/client/Client.mjs";
|
|
17
|
+
import { FolderPermissionsClient } from "./api/resources/folderPermissions/client/Client.mjs";
|
|
16
18
|
import { FoldersClient } from "./api/resources/folders/client/Client.mjs";
|
|
17
19
|
import { GroupsClient } from "./api/resources/groups/client/Client.mjs";
|
|
18
20
|
import { MetadataClient } from "./api/resources/metadata/client/Client.mjs";
|
|
19
21
|
import { MetadataFieldsClient } from "./api/resources/metadataFields/client/Client.mjs";
|
|
20
22
|
import { ProjectPermissionsClient } from "./api/resources/projectPermissions/client/Client.mjs";
|
|
21
23
|
import { ProjectsClient } from "./api/resources/projects/client/Client.mjs";
|
|
24
|
+
import { SearchClient } from "./api/resources/search/client/Client.mjs";
|
|
22
25
|
import { SharesClient } from "./api/resources/shares/client/Client.mjs";
|
|
23
26
|
import { UsersClient } from "./api/resources/users/client/Client.mjs";
|
|
24
27
|
import { VersionStacksClient } from "./api/resources/versionStacks/client/Client.mjs";
|
|
@@ -95,10 +98,22 @@ export class FrameioClient {
|
|
|
95
98
|
var _a;
|
|
96
99
|
return ((_a = this._projects) !== null && _a !== void 0 ? _a : (this._projects = new ProjectsClient(this._options)));
|
|
97
100
|
}
|
|
101
|
+
get folderPermissions() {
|
|
102
|
+
var _a;
|
|
103
|
+
return ((_a = this._folderPermissions) !== null && _a !== void 0 ? _a : (this._folderPermissions = new FolderPermissionsClient(this._options)));
|
|
104
|
+
}
|
|
98
105
|
get workspaces() {
|
|
99
106
|
var _a;
|
|
100
107
|
return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new WorkspacesClient(this._options)));
|
|
101
108
|
}
|
|
109
|
+
get collections() {
|
|
110
|
+
var _a;
|
|
111
|
+
return ((_a = this._collections) !== null && _a !== void 0 ? _a : (this._collections = new CollectionsClient(this._options)));
|
|
112
|
+
}
|
|
113
|
+
get search() {
|
|
114
|
+
var _a;
|
|
115
|
+
return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new SearchClient(this._options)));
|
|
116
|
+
}
|
|
102
117
|
/**
|
|
103
118
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
104
119
|
* This is useful for making requests to endpoints not yet supported in the SDK.
|