@deepgram/sdk 2.4.0 → 3.0.0-alpha.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/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/main/DeepgramClient.d.ts +21 -0
- package/dist/main/DeepgramClient.d.ts.map +1 -0
- package/dist/main/DeepgramClient.js +48 -0
- package/dist/main/DeepgramClient.js.map +1 -0
- package/dist/main/index.d.ts +9 -0
- package/dist/main/index.d.ts.map +1 -0
- package/dist/main/index.js +31 -0
- package/dist/main/index.js.map +1 -0
- package/dist/main/lib/constants.d.ts +25 -0
- package/dist/main/lib/constants.d.ts.map +1 -0
- package/dist/main/lib/constants.js +19 -0
- package/dist/main/lib/constants.js.map +1 -0
- package/dist/main/lib/enums/LiveConnectionState.d.ts +7 -0
- package/dist/main/lib/enums/LiveConnectionState.d.ts.map +1 -0
- package/dist/main/lib/enums/LiveConnectionState.js +11 -0
- package/dist/main/lib/enums/LiveConnectionState.js.map +1 -0
- package/dist/main/lib/enums/LiveTranscriptionEvents.d.ts +9 -0
- package/dist/main/lib/enums/LiveTranscriptionEvents.d.ts.map +1 -0
- package/dist/main/lib/enums/LiveTranscriptionEvents.js +13 -0
- package/dist/main/lib/enums/LiveTranscriptionEvents.js.map +1 -0
- package/dist/main/lib/enums/index.d.ts +3 -0
- package/dist/main/lib/enums/index.d.ts.map +1 -0
- package/dist/main/lib/enums/index.js +8 -0
- package/dist/main/lib/enums/index.js.map +1 -0
- package/dist/main/lib/errors.d.ts +19 -0
- package/dist/main/lib/errors.d.ts.map +1 -0
- package/dist/main/lib/errors.js +39 -0
- package/dist/main/lib/errors.js.map +1 -0
- package/dist/main/lib/fetch.d.ts +10 -0
- package/dist/main/lib/fetch.d.ts.map +1 -0
- package/dist/main/lib/fetch.js +71 -0
- package/dist/main/lib/fetch.js.map +1 -0
- package/dist/main/lib/helpers.d.ts +16 -0
- package/dist/main/lib/helpers.d.ts.map +1 -0
- package/dist/main/lib/helpers.js +65 -0
- package/dist/main/lib/helpers.js.map +1 -0
- package/dist/main/lib/types/AsyncPrerecordedResponse.d.ts +4 -0
- package/dist/main/lib/types/AsyncPrerecordedResponse.d.ts.map +1 -0
- package/dist/main/lib/types/AsyncPrerecordedResponse.js +3 -0
- package/dist/main/lib/types/AsyncPrerecordedResponse.js.map +1 -0
- package/dist/main/lib/types/CreateOnPremCredentialsOptions.d.ts +6 -0
- package/dist/main/lib/types/CreateOnPremCredentialsOptions.d.ts.map +1 -0
- package/dist/main/lib/types/CreateOnPremCredentialsOptions.js +3 -0
- package/dist/main/lib/types/CreateOnPremCredentialsOptions.js.map +1 -0
- package/dist/main/lib/types/CreateProjectKeyOptions.d.ts +15 -0
- package/dist/main/lib/types/CreateProjectKeyOptions.d.ts.map +1 -0
- package/dist/main/lib/types/CreateProjectKeyOptions.js +3 -0
- package/dist/main/lib/types/CreateProjectKeyOptions.js.map +1 -0
- package/dist/main/lib/types/CreateProjectKeyResponse.d.ts +9 -0
- package/dist/main/lib/types/CreateProjectKeyResponse.d.ts.map +1 -0
- package/dist/main/lib/types/CreateProjectKeyResponse.js +3 -0
- package/dist/main/lib/types/CreateProjectKeyResponse.js.map +1 -0
- package/dist/main/lib/types/DeepgramClientOptions.d.ts +13 -0
- package/dist/main/lib/types/DeepgramClientOptions.d.ts.map +1 -0
- package/dist/main/lib/types/DeepgramClientOptions.js +3 -0
- package/dist/main/lib/types/DeepgramClientOptions.js.map +1 -0
- package/dist/main/lib/types/DeepgramResponse.d.ts +12 -0
- package/dist/main/lib/types/DeepgramResponse.d.ts.map +1 -0
- package/dist/main/lib/types/DeepgramResponse.js +3 -0
- package/dist/main/lib/types/DeepgramResponse.js.map +1 -0
- package/dist/main/lib/types/Fetch.d.ts +15 -0
- package/dist/main/lib/types/Fetch.d.ts.map +1 -0
- package/dist/main/lib/types/Fetch.js +3 -0
- package/dist/main/lib/types/Fetch.js.map +1 -0
- package/dist/main/lib/types/GetProjectBalancesResponse.d.ts +10 -0
- package/dist/main/lib/types/GetProjectBalancesResponse.d.ts.map +1 -0
- package/dist/main/lib/types/GetProjectBalancesResponse.js +3 -0
- package/dist/main/lib/types/GetProjectBalancesResponse.js.map +1 -0
- package/dist/main/lib/types/GetProjectInvitesResponse.d.ts +9 -0
- package/dist/main/lib/types/GetProjectInvitesResponse.d.ts.map +1 -0
- package/dist/main/lib/types/GetProjectInvitesResponse.js +3 -0
- package/dist/main/lib/types/GetProjectInvitesResponse.js.map +1 -0
- package/dist/main/lib/types/GetProjectKeysResponse.d.ts +22 -0
- package/dist/main/lib/types/GetProjectKeysResponse.d.ts.map +1 -0
- package/dist/main/lib/types/GetProjectKeysResponse.js +3 -0
- package/dist/main/lib/types/GetProjectKeysResponse.js.map +1 -0
- package/dist/main/lib/types/GetProjectMemberScopesResponse.d.ts +4 -0
- package/dist/main/lib/types/GetProjectMemberScopesResponse.d.ts.map +1 -0
- package/dist/main/lib/types/GetProjectMemberScopesResponse.js +3 -0
- package/dist/main/lib/types/GetProjectMemberScopesResponse.js.map +1 -0
- package/dist/main/lib/types/GetProjectMembersResponse.d.ts +12 -0
- package/dist/main/lib/types/GetProjectMembersResponse.d.ts.map +1 -0
- package/dist/main/lib/types/GetProjectMembersResponse.js +3 -0
- package/dist/main/lib/types/GetProjectMembersResponse.js.map +1 -0
- package/dist/main/lib/types/GetProjectResponse.d.ts +6 -0
- package/dist/main/lib/types/GetProjectResponse.d.ts.map +1 -0
- package/dist/main/lib/types/GetProjectResponse.js +3 -0
- package/dist/main/lib/types/GetProjectResponse.js.map +1 -0
- package/dist/main/lib/types/GetProjectUsageFieldsOptions.d.ts +5 -0
- package/dist/main/lib/types/GetProjectUsageFieldsOptions.d.ts.map +1 -0
- package/dist/main/lib/types/GetProjectUsageFieldsOptions.js +3 -0
- package/dist/main/lib/types/GetProjectUsageFieldsOptions.js.map +1 -0
- package/dist/main/lib/types/GetProjectUsageFieldsResponse.d.ts +15 -0
- package/dist/main/lib/types/GetProjectUsageFieldsResponse.d.ts.map +1 -0
- package/dist/main/lib/types/GetProjectUsageFieldsResponse.js +3 -0
- package/dist/main/lib/types/GetProjectUsageFieldsResponse.js.map +1 -0
- package/dist/main/lib/types/GetProjectUsageRequestsOptions.d.ts +7 -0
- package/dist/main/lib/types/GetProjectUsageRequestsOptions.d.ts.map +1 -0
- package/dist/main/lib/types/GetProjectUsageRequestsOptions.js +3 -0
- package/dist/main/lib/types/GetProjectUsageRequestsOptions.js.map +1 -0
- package/dist/main/lib/types/GetProjectUsageRequestsResponse.d.ts +49 -0
- package/dist/main/lib/types/GetProjectUsageRequestsResponse.d.ts.map +1 -0
- package/dist/main/lib/types/GetProjectUsageRequestsResponse.js +3 -0
- package/dist/main/lib/types/GetProjectUsageRequestsResponse.js.map +1 -0
- package/dist/{types/usageOptions.d.ts → main/lib/types/GetProjectUsageSummaryOptions.d.ts} +7 -16
- package/dist/main/lib/types/GetProjectUsageSummaryOptions.d.ts.map +1 -0
- package/dist/main/lib/types/GetProjectUsageSummaryOptions.js +3 -0
- package/dist/main/lib/types/GetProjectUsageSummaryOptions.js.map +1 -0
- package/dist/main/lib/types/GetProjectUsageSummaryResponse.d.ts +18 -0
- package/dist/main/lib/types/GetProjectUsageSummaryResponse.d.ts.map +1 -0
- package/dist/main/lib/types/GetProjectUsageSummaryResponse.js +3 -0
- package/dist/main/lib/types/GetProjectUsageSummaryResponse.js.map +1 -0
- package/dist/main/lib/types/GetProjectsResponse.d.ts +9 -0
- package/dist/main/lib/types/GetProjectsResponse.d.ts.map +1 -0
- package/dist/main/lib/types/GetProjectsResponse.js +3 -0
- package/dist/main/lib/types/GetProjectsResponse.js.map +1 -0
- package/dist/main/lib/types/ListOnPremCredentialsResponse.d.ts +17 -0
- package/dist/main/lib/types/ListOnPremCredentialsResponse.d.ts.map +1 -0
- package/dist/main/lib/types/ListOnPremCredentialsResponse.js +3 -0
- package/dist/main/lib/types/ListOnPremCredentialsResponse.js.map +1 -0
- package/dist/main/lib/types/LiveConfigOptions.d.ts +4 -0
- package/dist/main/lib/types/LiveConfigOptions.d.ts.map +1 -0
- package/dist/main/lib/types/LiveConfigOptions.js +3 -0
- package/dist/main/lib/types/LiveConfigOptions.js.map +1 -0
- package/dist/main/lib/types/LiveMetadataEvent.d.ts +10 -0
- package/dist/main/lib/types/LiveMetadataEvent.d.ts.map +1 -0
- package/dist/main/lib/types/LiveMetadataEvent.js +3 -0
- package/dist/main/lib/types/LiveMetadataEvent.js.map +1 -0
- package/dist/main/lib/types/LiveTranscriptionEvent.d.ts +35 -0
- package/dist/main/lib/types/LiveTranscriptionEvent.d.ts.map +1 -0
- package/dist/main/lib/types/LiveTranscriptionEvent.js +3 -0
- package/dist/main/lib/types/LiveTranscriptionEvent.js.map +1 -0
- package/dist/main/lib/types/MessageResponse.d.ts +4 -0
- package/dist/main/lib/types/MessageResponse.d.ts.map +1 -0
- package/dist/main/lib/types/MessageResponse.js +3 -0
- package/dist/main/lib/types/MessageResponse.js.map +1 -0
- package/dist/main/lib/types/PrerecordedSource.d.ts +17 -0
- package/dist/main/lib/types/PrerecordedSource.d.ts.map +1 -0
- package/dist/main/lib/types/PrerecordedSource.js +3 -0
- package/dist/main/lib/types/PrerecordedSource.js.map +1 -0
- package/dist/main/lib/types/SendProjectInviteOptions.d.ts +5 -0
- package/dist/main/lib/types/SendProjectInviteOptions.d.ts.map +1 -0
- package/dist/main/lib/types/SendProjectInviteOptions.js +3 -0
- package/dist/main/lib/types/SendProjectInviteOptions.js.map +1 -0
- package/dist/main/lib/types/SyncPrerecordedResponse.d.ts +121 -0
- package/dist/main/lib/types/SyncPrerecordedResponse.d.ts.map +1 -0
- package/dist/main/lib/types/SyncPrerecordedResponse.js +3 -0
- package/dist/main/lib/types/SyncPrerecordedResponse.js.map +1 -0
- package/dist/main/lib/types/TranscriptionOptions.d.ts +129 -0
- package/dist/main/lib/types/TranscriptionOptions.d.ts.map +1 -0
- package/dist/main/lib/types/TranscriptionOptions.js +3 -0
- package/dist/main/lib/types/TranscriptionOptions.js.map +1 -0
- package/dist/main/lib/types/UpdateProjectMemberScopeOptions.d.ts +4 -0
- package/dist/main/lib/types/UpdateProjectMemberScopeOptions.d.ts.map +1 -0
- package/dist/main/lib/types/UpdateProjectMemberScopeOptions.js +3 -0
- package/dist/main/lib/types/UpdateProjectMemberScopeOptions.js.map +1 -0
- package/dist/main/lib/types/UpdateProjectOptions.d.ts +6 -0
- package/dist/main/lib/types/UpdateProjectOptions.d.ts.map +1 -0
- package/dist/main/lib/types/UpdateProjectOptions.js +3 -0
- package/dist/main/lib/types/UpdateProjectOptions.js.map +1 -0
- package/dist/main/lib/types/VoidResponse.d.ts +10 -0
- package/dist/main/lib/types/VoidResponse.d.ts.map +1 -0
- package/dist/main/lib/types/VoidResponse.js +3 -0
- package/dist/main/lib/types/VoidResponse.js.map +1 -0
- package/dist/main/lib/types/index.d.ts +33 -0
- package/dist/main/lib/types/index.d.ts.map +1 -0
- package/dist/main/lib/types/index.js +3 -0
- package/dist/main/lib/types/index.js.map +1 -0
- package/dist/main/lib/version.d.ts +2 -0
- package/dist/main/lib/version.d.ts.map +1 -0
- package/dist/main/lib/version.js +5 -0
- package/dist/main/lib/version.js.map +1 -0
- package/dist/main/packages/AbstractRestfulClient.d.ts +22 -0
- package/dist/main/packages/AbstractRestfulClient.d.ts.map +1 -0
- package/dist/main/packages/AbstractRestfulClient.js +94 -0
- package/dist/main/packages/AbstractRestfulClient.js.map +1 -0
- package/dist/main/packages/ListenClient.d.ts +12 -0
- package/dist/main/packages/ListenClient.d.ts.map +1 -0
- package/dist/main/packages/ListenClient.js +20 -0
- package/dist/main/packages/ListenClient.js.map +1 -0
- package/dist/main/packages/LiveClient.d.ts +25 -0
- package/dist/main/packages/LiveClient.d.ts.map +1 -0
- package/dist/main/packages/LiveClient.js +119 -0
- package/dist/main/packages/LiveClient.js.map +1 -0
- package/dist/main/packages/ManageClient.d.ts +93 -0
- package/dist/main/packages/ManageClient.d.ts.map +1 -0
- package/dist/main/packages/ManageClient.js +488 -0
- package/dist/main/packages/ManageClient.js.map +1 -0
- package/dist/main/packages/OnPremClient.d.ts +21 -0
- package/dist/main/packages/OnPremClient.d.ts.map +1 -0
- package/dist/main/packages/OnPremClient.js +107 -0
- package/dist/main/packages/OnPremClient.js.map +1 -0
- package/dist/main/packages/PrerecordedClient.d.ts +10 -0
- package/dist/main/packages/PrerecordedClient.d.ts.map +1 -0
- package/dist/main/packages/PrerecordedClient.js +143 -0
- package/dist/main/packages/PrerecordedClient.js.map +1 -0
- package/dist/module/DeepgramClient.d.ts +21 -0
- package/dist/module/DeepgramClient.d.ts.map +1 -0
- package/dist/module/DeepgramClient.js +45 -0
- package/dist/module/DeepgramClient.js.map +1 -0
- package/dist/module/index.d.ts +9 -0
- package/dist/module/index.d.ts.map +1 -0
- package/dist/module/index.js +10 -0
- package/dist/module/index.js.map +1 -0
- package/dist/module/lib/constants.d.ts +25 -0
- package/dist/module/lib/constants.d.ts.map +1 -0
- package/dist/module/lib/constants.js +16 -0
- package/dist/module/lib/constants.js.map +1 -0
- package/dist/module/lib/enums/LiveConnectionState.d.ts +7 -0
- package/dist/module/lib/enums/LiveConnectionState.d.ts.map +1 -0
- package/dist/module/lib/enums/LiveConnectionState.js +8 -0
- package/dist/module/lib/enums/LiveConnectionState.js.map +1 -0
- package/dist/module/lib/enums/LiveTranscriptionEvents.d.ts +9 -0
- package/dist/module/lib/enums/LiveTranscriptionEvents.d.ts.map +1 -0
- package/dist/module/lib/enums/LiveTranscriptionEvents.js +10 -0
- package/dist/module/lib/enums/LiveTranscriptionEvents.js.map +1 -0
- package/dist/module/lib/enums/index.d.ts +3 -0
- package/dist/module/lib/enums/index.d.ts.map +1 -0
- package/dist/module/lib/enums/index.js +3 -0
- package/dist/module/lib/enums/index.js.map +1 -0
- package/dist/module/lib/errors.d.ts +19 -0
- package/dist/module/lib/errors.d.ts.map +1 -0
- package/dist/module/lib/errors.js +32 -0
- package/dist/module/lib/errors.js.map +1 -0
- package/dist/module/lib/fetch.d.ts +10 -0
- package/dist/module/lib/fetch.d.ts.map +1 -0
- package/dist/module/lib/fetch.js +39 -0
- package/dist/module/lib/fetch.js.map +1 -0
- package/dist/module/lib/helpers.d.ts +16 -0
- package/dist/module/lib/helpers.d.ts.map +1 -0
- package/dist/module/lib/helpers.js +53 -0
- package/dist/module/lib/helpers.js.map +1 -0
- package/dist/module/lib/types/AsyncPrerecordedResponse.d.ts +4 -0
- package/dist/module/lib/types/AsyncPrerecordedResponse.d.ts.map +1 -0
- package/dist/module/lib/types/AsyncPrerecordedResponse.js +2 -0
- package/dist/module/lib/types/AsyncPrerecordedResponse.js.map +1 -0
- package/dist/module/lib/types/CreateOnPremCredentialsOptions.d.ts +6 -0
- package/dist/module/lib/types/CreateOnPremCredentialsOptions.d.ts.map +1 -0
- package/dist/module/lib/types/CreateOnPremCredentialsOptions.js +2 -0
- package/dist/module/lib/types/CreateOnPremCredentialsOptions.js.map +1 -0
- package/dist/module/lib/types/CreateProjectKeyOptions.d.ts +15 -0
- package/dist/module/lib/types/CreateProjectKeyOptions.d.ts.map +1 -0
- package/dist/module/lib/types/CreateProjectKeyOptions.js +2 -0
- package/dist/module/lib/types/CreateProjectKeyOptions.js.map +1 -0
- package/dist/module/lib/types/CreateProjectKeyResponse.d.ts +9 -0
- package/dist/module/lib/types/CreateProjectKeyResponse.d.ts.map +1 -0
- package/dist/module/lib/types/CreateProjectKeyResponse.js +2 -0
- package/dist/module/lib/types/CreateProjectKeyResponse.js.map +1 -0
- package/dist/module/lib/types/DeepgramClientOptions.d.ts +13 -0
- package/dist/module/lib/types/DeepgramClientOptions.d.ts.map +1 -0
- package/dist/module/lib/types/DeepgramClientOptions.js +2 -0
- package/dist/module/lib/types/DeepgramClientOptions.js.map +1 -0
- package/dist/module/lib/types/DeepgramResponse.d.ts +12 -0
- package/dist/module/lib/types/DeepgramResponse.d.ts.map +1 -0
- package/dist/module/lib/types/DeepgramResponse.js +2 -0
- package/dist/module/lib/types/DeepgramResponse.js.map +1 -0
- package/dist/module/lib/types/Fetch.d.ts +15 -0
- package/dist/module/lib/types/Fetch.d.ts.map +1 -0
- package/dist/module/lib/types/Fetch.js +2 -0
- package/dist/module/lib/types/Fetch.js.map +1 -0
- package/dist/module/lib/types/GetProjectBalancesResponse.d.ts +10 -0
- package/dist/module/lib/types/GetProjectBalancesResponse.d.ts.map +1 -0
- package/dist/module/lib/types/GetProjectBalancesResponse.js +2 -0
- package/dist/module/lib/types/GetProjectBalancesResponse.js.map +1 -0
- package/dist/module/lib/types/GetProjectInvitesResponse.d.ts +9 -0
- package/dist/module/lib/types/GetProjectInvitesResponse.d.ts.map +1 -0
- package/dist/module/lib/types/GetProjectInvitesResponse.js +2 -0
- package/dist/module/lib/types/GetProjectInvitesResponse.js.map +1 -0
- package/dist/module/lib/types/GetProjectKeysResponse.d.ts +22 -0
- package/dist/module/lib/types/GetProjectKeysResponse.d.ts.map +1 -0
- package/dist/module/lib/types/GetProjectKeysResponse.js +2 -0
- package/dist/module/lib/types/GetProjectKeysResponse.js.map +1 -0
- package/dist/module/lib/types/GetProjectMemberScopesResponse.d.ts +4 -0
- package/dist/module/lib/types/GetProjectMemberScopesResponse.d.ts.map +1 -0
- package/dist/module/lib/types/GetProjectMemberScopesResponse.js +2 -0
- package/dist/module/lib/types/GetProjectMemberScopesResponse.js.map +1 -0
- package/dist/module/lib/types/GetProjectMembersResponse.d.ts +12 -0
- package/dist/module/lib/types/GetProjectMembersResponse.d.ts.map +1 -0
- package/dist/module/lib/types/GetProjectMembersResponse.js +2 -0
- package/dist/module/lib/types/GetProjectMembersResponse.js.map +1 -0
- package/dist/module/lib/types/GetProjectResponse.d.ts +6 -0
- package/dist/module/lib/types/GetProjectResponse.d.ts.map +1 -0
- package/dist/module/lib/types/GetProjectResponse.js +2 -0
- package/dist/module/lib/types/GetProjectResponse.js.map +1 -0
- package/dist/module/lib/types/GetProjectUsageFieldsOptions.d.ts +5 -0
- package/dist/module/lib/types/GetProjectUsageFieldsOptions.d.ts.map +1 -0
- package/dist/module/lib/types/GetProjectUsageFieldsOptions.js +2 -0
- package/dist/module/lib/types/GetProjectUsageFieldsOptions.js.map +1 -0
- package/dist/module/lib/types/GetProjectUsageFieldsResponse.d.ts +15 -0
- package/dist/module/lib/types/GetProjectUsageFieldsResponse.d.ts.map +1 -0
- package/dist/module/lib/types/GetProjectUsageFieldsResponse.js +2 -0
- package/dist/module/lib/types/GetProjectUsageFieldsResponse.js.map +1 -0
- package/dist/module/lib/types/GetProjectUsageRequestsOptions.d.ts +7 -0
- package/dist/module/lib/types/GetProjectUsageRequestsOptions.d.ts.map +1 -0
- package/dist/module/lib/types/GetProjectUsageRequestsOptions.js +2 -0
- package/dist/module/lib/types/GetProjectUsageRequestsOptions.js.map +1 -0
- package/dist/module/lib/types/GetProjectUsageRequestsResponse.d.ts +49 -0
- package/dist/module/lib/types/GetProjectUsageRequestsResponse.d.ts.map +1 -0
- package/dist/module/lib/types/GetProjectUsageRequestsResponse.js +2 -0
- package/dist/module/lib/types/GetProjectUsageRequestsResponse.js.map +1 -0
- package/dist/module/lib/types/GetProjectUsageSummaryOptions.d.ts +24 -0
- package/dist/module/lib/types/GetProjectUsageSummaryOptions.d.ts.map +1 -0
- package/dist/module/lib/types/GetProjectUsageSummaryOptions.js +2 -0
- package/dist/module/lib/types/GetProjectUsageSummaryOptions.js.map +1 -0
- package/dist/module/lib/types/GetProjectUsageSummaryResponse.d.ts +18 -0
- package/dist/module/lib/types/GetProjectUsageSummaryResponse.d.ts.map +1 -0
- package/dist/module/lib/types/GetProjectUsageSummaryResponse.js +2 -0
- package/dist/module/lib/types/GetProjectUsageSummaryResponse.js.map +1 -0
- package/dist/module/lib/types/GetProjectsResponse.d.ts +9 -0
- package/dist/module/lib/types/GetProjectsResponse.d.ts.map +1 -0
- package/dist/module/lib/types/GetProjectsResponse.js +2 -0
- package/dist/module/lib/types/GetProjectsResponse.js.map +1 -0
- package/dist/module/lib/types/ListOnPremCredentialsResponse.d.ts +17 -0
- package/dist/module/lib/types/ListOnPremCredentialsResponse.d.ts.map +1 -0
- package/dist/module/lib/types/ListOnPremCredentialsResponse.js +2 -0
- package/dist/module/lib/types/ListOnPremCredentialsResponse.js.map +1 -0
- package/dist/module/lib/types/LiveConfigOptions.d.ts +4 -0
- package/dist/module/lib/types/LiveConfigOptions.d.ts.map +1 -0
- package/dist/module/lib/types/LiveConfigOptions.js +2 -0
- package/dist/module/lib/types/LiveConfigOptions.js.map +1 -0
- package/dist/module/lib/types/LiveMetadataEvent.d.ts +10 -0
- package/dist/module/lib/types/LiveMetadataEvent.d.ts.map +1 -0
- package/dist/module/lib/types/LiveMetadataEvent.js +2 -0
- package/dist/module/lib/types/LiveMetadataEvent.js.map +1 -0
- package/dist/module/lib/types/LiveTranscriptionEvent.d.ts +35 -0
- package/dist/module/lib/types/LiveTranscriptionEvent.d.ts.map +1 -0
- package/dist/module/lib/types/LiveTranscriptionEvent.js +2 -0
- package/dist/module/lib/types/LiveTranscriptionEvent.js.map +1 -0
- package/dist/module/lib/types/MessageResponse.d.ts +4 -0
- package/dist/module/lib/types/MessageResponse.d.ts.map +1 -0
- package/dist/module/lib/types/MessageResponse.js +2 -0
- package/dist/module/lib/types/MessageResponse.js.map +1 -0
- package/dist/module/lib/types/PrerecordedSource.d.ts +17 -0
- package/dist/module/lib/types/PrerecordedSource.d.ts.map +1 -0
- package/dist/module/lib/types/PrerecordedSource.js +2 -0
- package/dist/module/lib/types/PrerecordedSource.js.map +1 -0
- package/dist/module/lib/types/SendProjectInviteOptions.d.ts +5 -0
- package/dist/module/lib/types/SendProjectInviteOptions.d.ts.map +1 -0
- package/dist/module/lib/types/SendProjectInviteOptions.js +2 -0
- package/dist/module/lib/types/SendProjectInviteOptions.js.map +1 -0
- package/dist/module/lib/types/SyncPrerecordedResponse.d.ts +121 -0
- package/dist/module/lib/types/SyncPrerecordedResponse.d.ts.map +1 -0
- package/dist/module/lib/types/SyncPrerecordedResponse.js +2 -0
- package/dist/module/lib/types/SyncPrerecordedResponse.js.map +1 -0
- package/dist/module/lib/types/TranscriptionOptions.d.ts +129 -0
- package/dist/module/lib/types/TranscriptionOptions.d.ts.map +1 -0
- package/dist/module/lib/types/TranscriptionOptions.js +2 -0
- package/dist/module/lib/types/TranscriptionOptions.js.map +1 -0
- package/dist/module/lib/types/UpdateProjectMemberScopeOptions.d.ts +4 -0
- package/dist/module/lib/types/UpdateProjectMemberScopeOptions.d.ts.map +1 -0
- package/dist/module/lib/types/UpdateProjectMemberScopeOptions.js +2 -0
- package/dist/module/lib/types/UpdateProjectMemberScopeOptions.js.map +1 -0
- package/dist/module/lib/types/UpdateProjectOptions.d.ts +6 -0
- package/dist/module/lib/types/UpdateProjectOptions.d.ts.map +1 -0
- package/dist/module/lib/types/UpdateProjectOptions.js +2 -0
- package/dist/module/lib/types/UpdateProjectOptions.js.map +1 -0
- package/dist/module/lib/types/VoidResponse.d.ts +10 -0
- package/dist/module/lib/types/VoidResponse.d.ts.map +1 -0
- package/dist/module/lib/types/VoidResponse.js +2 -0
- package/dist/module/lib/types/VoidResponse.js.map +1 -0
- package/dist/module/lib/types/index.d.ts +33 -0
- package/dist/module/lib/types/index.d.ts.map +1 -0
- package/dist/module/lib/types/index.js +2 -0
- package/dist/module/lib/types/index.js.map +1 -0
- package/dist/module/lib/version.d.ts +2 -0
- package/dist/module/lib/version.d.ts.map +1 -0
- package/dist/module/lib/version.js +2 -0
- package/dist/module/lib/version.js.map +1 -0
- package/dist/module/packages/AbstractRestfulClient.d.ts +22 -0
- package/dist/module/packages/AbstractRestfulClient.d.ts.map +1 -0
- package/dist/module/packages/AbstractRestfulClient.js +90 -0
- package/dist/module/packages/AbstractRestfulClient.js.map +1 -0
- package/dist/module/packages/ListenClient.d.ts +12 -0
- package/dist/module/packages/ListenClient.d.ts.map +1 -0
- package/dist/module/packages/ListenClient.js +16 -0
- package/dist/module/packages/ListenClient.js.map +1 -0
- package/dist/module/packages/LiveClient.d.ts +25 -0
- package/dist/module/packages/LiveClient.d.ts.map +1 -0
- package/dist/module/packages/LiveClient.js +112 -0
- package/dist/module/packages/LiveClient.js.map +1 -0
- package/dist/module/packages/ManageClient.d.ts +93 -0
- package/dist/module/packages/ManageClient.d.ts.map +1 -0
- package/dist/module/packages/ManageClient.js +484 -0
- package/dist/module/packages/ManageClient.js.map +1 -0
- package/dist/module/packages/OnPremClient.d.ts +21 -0
- package/dist/module/packages/OnPremClient.d.ts.map +1 -0
- package/dist/module/packages/OnPremClient.js +103 -0
- package/dist/module/packages/OnPremClient.js.map +1 -0
- package/dist/module/packages/PrerecordedClient.d.ts +10 -0
- package/dist/module/packages/PrerecordedClient.d.ts.map +1 -0
- package/dist/module/packages/PrerecordedClient.js +139 -0
- package/dist/module/packages/PrerecordedClient.js.map +1 -0
- package/dist/umd/deepgram.js +1 -0
- package/package.json +75 -48
- package/src/DeepgramClient.ts +62 -0
- package/src/index.ts +12 -0
- package/src/lib/constants.ts +19 -0
- package/src/lib/enums/LiveConnectionState.ts +6 -0
- package/src/lib/enums/LiveTranscriptionEvents.ts +8 -0
- package/src/lib/enums/index.ts +2 -0
- package/src/lib/errors.ts +40 -0
- package/src/lib/fetch.ts +36 -0
- package/src/lib/helpers.ts +80 -0
- package/src/lib/types/AsyncPrerecordedResponse.ts +3 -0
- package/src/lib/types/CreateOnPremCredentialsOptions.ts +5 -0
- package/src/lib/types/CreateProjectKeyOptions.ts +16 -0
- package/src/lib/types/CreateProjectKeyResponse.ts +8 -0
- package/src/lib/types/DeepgramClientOptions.ts +13 -0
- package/src/lib/types/DeepgramResponse.ts +13 -0
- package/src/lib/types/Fetch.ts +17 -0
- package/src/lib/types/GetProjectBalancesResponse.ts +10 -0
- package/src/lib/types/GetProjectInvitesResponse.ts +8 -0
- package/src/lib/types/GetProjectKeysResponse.ts +23 -0
- package/src/lib/types/GetProjectMemberScopesResponse.ts +3 -0
- package/src/lib/types/GetProjectMembersResponse.ts +11 -0
- package/src/lib/types/GetProjectResponse.ts +5 -0
- package/src/lib/types/GetProjectUsageFieldsOptions.ts +4 -0
- package/src/lib/types/GetProjectUsageFieldsResponse.ts +14 -0
- package/src/lib/types/GetProjectUsageRequestsOptions.ts +6 -0
- package/src/lib/types/GetProjectUsageRequestsResponse.ts +49 -0
- package/src/lib/types/GetProjectUsageSummaryOptions.ts +23 -0
- package/src/lib/types/GetProjectUsageSummaryResponse.ts +17 -0
- package/src/lib/types/GetProjectsResponse.ts +8 -0
- package/src/lib/types/ListOnPremCredentialsResponse.ts +17 -0
- package/src/lib/types/LiveConfigOptions.ts +3 -0
- package/src/lib/types/LiveMetadataEvent.ts +9 -0
- package/src/lib/types/LiveTranscriptionEvent.ts +34 -0
- package/src/lib/types/MessageResponse.ts +3 -0
- package/src/lib/types/PrerecordedSource.ts +19 -0
- package/src/lib/types/SendProjectInviteOptions.ts +4 -0
- package/src/lib/types/SyncPrerecordedResponse.ts +137 -0
- package/src/lib/types/TranscriptionOptions.ts +158 -0
- package/src/lib/types/UpdateProjectMemberScopeOptions.ts +3 -0
- package/src/lib/types/UpdateProjectOptions.ts +5 -0
- package/src/lib/types/VoidResponse.ts +11 -0
- package/src/lib/types/index.ts +47 -0
- package/src/lib/version.ts +1 -0
- package/src/packages/AbstractRestfulClient.ts +123 -0
- package/src/packages/ListenClient.ts +23 -0
- package/src/packages/LiveClient.ts +143 -0
- package/src/packages/ManageClient.ts +605 -0
- package/src/packages/OnPremClient.ts +121 -0
- package/src/packages/PrerecordedClient.ts +188 -0
- package/.devcontainer/Dockerfile +0 -14
- package/.devcontainer/base.Dockerfile +0 -17
- package/.devcontainer/devcontainer.json +0 -34
- package/CODE_OF_CONDUCT.md +0 -132
- package/CONTRIBUTING.md +0 -50
- package/dist/billing.d.ts +0 -25
- package/dist/constants/defaultOptions.d.ts +0 -7
- package/dist/constants/index.d.ts +0 -1
- package/dist/enums/alternatives.d.ts +0 -4
- package/dist/enums/connectionState.d.ts +0 -6
- package/dist/enums/diarization.d.ts +0 -4
- package/dist/enums/index.d.ts +0 -7
- package/dist/enums/liveTranscriptionEvents.d.ts +0 -6
- package/dist/enums/models.d.ts +0 -5
- package/dist/enums/punctuation.d.ts +0 -4
- package/dist/enums/searchKind.d.ts +0 -4
- package/dist/helpers/index.d.ts +0 -2
- package/dist/helpers/secondsToTimestamp.d.ts +0 -1
- package/dist/helpers/validateOptions.d.ts +0 -1
- package/dist/httpRequest.d.ts +0 -4
- package/dist/index.d.ts +0 -22
- package/dist/index.js +0 -1
- package/dist/invitation.d.ts +0 -43
- package/dist/keys.d.ts +0 -45
- package/dist/members.d.ts +0 -25
- package/dist/projects.d.ts +0 -40
- package/dist/scopes.d.ts +0 -27
- package/dist/transcription/index.d.ts +0 -25
- package/dist/transcription/liveTranscription.d.ts +0 -25
- package/dist/transcription/preRecordedTranscription.d.ts +0 -13
- package/dist/types/alternatives.d.ts +0 -40
- package/dist/types/balance.d.ts +0 -8
- package/dist/types/balanceList.d.ts +0 -6
- package/dist/types/channel.d.ts +0 -19
- package/dist/types/createKeyOptions.d.ts +0 -17
- package/dist/types/entity.d.ts +0 -23
- package/dist/types/error.d.ts +0 -5
- package/dist/types/hit.d.ts +0 -21
- package/dist/types/index.d.ts +0 -49
- package/dist/types/invitationList.d.ts +0 -6
- package/dist/types/invitationOptions.d.ts +0 -4
- package/dist/types/key.d.ts +0 -27
- package/dist/types/keyResponse.d.ts +0 -12
- package/dist/types/keyResponseObj.d.ts +0 -42
- package/dist/types/keyword.d.ts +0 -4
- package/dist/types/liveTranscriptionOptions.d.ts +0 -238
- package/dist/types/liveTranscriptionResponse.d.ts +0 -9
- package/dist/types/member.d.ts +0 -7
- package/dist/types/memberList.d.ts +0 -6
- package/dist/types/message.d.ts +0 -5
- package/dist/types/metadata.d.ts +0 -18
- package/dist/types/paragraph.d.ts +0 -19
- package/dist/types/paragraphGroup.d.ts +0 -11
- package/dist/types/prerecordedTranscriptionOptions.d.ts +0 -252
- package/dist/types/prerecordedTranscriptionResponse.d.ts +0 -29
- package/dist/types/project.d.ts +0 -19
- package/dist/types/projectPatchRequest.d.ts +0 -4
- package/dist/types/projectPatchResponse.d.ts +0 -8
- package/dist/types/projectResponse.d.ts +0 -6
- package/dist/types/requestFunction.d.ts +0 -6
- package/dist/types/scopeList.d.ts +0 -5
- package/dist/types/search.d.ts +0 -14
- package/dist/types/sentence.d.ts +0 -14
- package/dist/types/summary.d.ts +0 -17
- package/dist/types/toggleConfigOptions.d.ts +0 -3
- package/dist/types/topic.d.ts +0 -10
- package/dist/types/topicGroup.d.ts +0 -19
- package/dist/types/transcriptionSource.d.ts +0 -15
- package/dist/types/translation.d.ts +0 -10
- package/dist/types/usageCallback.d.ts +0 -4
- package/dist/types/usageField.d.ts +0 -9
- package/dist/types/usageFieldOptions.d.ts +0 -4
- package/dist/types/usageRequest.d.ts +0 -13
- package/dist/types/usageRequestDetail.d.ts +0 -33
- package/dist/types/usageRequestList.d.ts +0 -8
- package/dist/types/usageRequestListOptions.d.ts +0 -7
- package/dist/types/usageRequestMessage.d.ts +0 -3
- package/dist/types/usageResponse.d.ts +0 -12
- package/dist/types/usageResponseDetail.d.ts +0 -6
- package/dist/types/utterance.d.ts +0 -39
- package/dist/types/warning.d.ts +0 -5
- package/dist/types/wordBase.d.ts +0 -9
- package/dist/usage.d.ts +0 -44
- package/dist/userAgent.d.ts +0 -1
- package/webpack.config.js +0 -19
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { AbstractRestfulClient } from "./AbstractRestfulClient";
|
|
2
|
+
import {
|
|
3
|
+
CallbackUrl,
|
|
4
|
+
appendSearchParams,
|
|
5
|
+
isBufferSource,
|
|
6
|
+
isReadStreamSource,
|
|
7
|
+
isUrlSource,
|
|
8
|
+
} from "../lib/helpers";
|
|
9
|
+
import { DeepgramError, isDeepgramError } from "../lib/errors";
|
|
10
|
+
import type {
|
|
11
|
+
AsyncPrerecordedResponse,
|
|
12
|
+
DeepgramResponse,
|
|
13
|
+
Fetch,
|
|
14
|
+
FileSource,
|
|
15
|
+
PrerecordedOptions,
|
|
16
|
+
SyncPrerecordedResponse,
|
|
17
|
+
UrlSource,
|
|
18
|
+
} from "../lib/types";
|
|
19
|
+
|
|
20
|
+
export class PrerecordedClient extends AbstractRestfulClient {
|
|
21
|
+
async transcribeUrl(
|
|
22
|
+
source: UrlSource,
|
|
23
|
+
options?: PrerecordedOptions,
|
|
24
|
+
endpoint = "v1/listen"
|
|
25
|
+
): Promise<DeepgramResponse<SyncPrerecordedResponse>> {
|
|
26
|
+
try {
|
|
27
|
+
let body;
|
|
28
|
+
if (isUrlSource(source)) {
|
|
29
|
+
body = JSON.stringify(source);
|
|
30
|
+
} else {
|
|
31
|
+
throw new DeepgramError("Unknown transcription source type");
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
if (options !== undefined && "callback" in options) {
|
|
35
|
+
throw new DeepgramError(
|
|
36
|
+
"Callback cannot be provided as an option to a synchronous transcription. Use `asyncPrerecordedUrl` or `asyncPrerecordedFile` instead."
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const transcriptionOptions: PrerecordedOptions = { ...{}, ...options };
|
|
41
|
+
|
|
42
|
+
const url = new URL(endpoint, this.baseUrl);
|
|
43
|
+
appendSearchParams(url.searchParams, transcriptionOptions);
|
|
44
|
+
|
|
45
|
+
const result: SyncPrerecordedResponse = await this.post(this.fetch as Fetch, url, body, {
|
|
46
|
+
headers: this.headers,
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
return { result, error: null };
|
|
50
|
+
} catch (error) {
|
|
51
|
+
if (isDeepgramError(error)) {
|
|
52
|
+
return { result: null, error };
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
throw error;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async transcribeFile(
|
|
60
|
+
source: FileSource,
|
|
61
|
+
options?: PrerecordedOptions,
|
|
62
|
+
endpoint = "v1/listen"
|
|
63
|
+
): Promise<DeepgramResponse<SyncPrerecordedResponse>> {
|
|
64
|
+
try {
|
|
65
|
+
if (source.mimetype === undefined || source.mimetype.length === 0) {
|
|
66
|
+
throw new DeepgramError(
|
|
67
|
+
"Mimetype must be provided if the source is a Buffer or a Readable"
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
this.headers["Content-Type"] = source.mimetype;
|
|
72
|
+
|
|
73
|
+
let body;
|
|
74
|
+
if (isBufferSource(source)) {
|
|
75
|
+
body = source.buffer;
|
|
76
|
+
} else if (isReadStreamSource(source)) {
|
|
77
|
+
body = source.stream;
|
|
78
|
+
} else {
|
|
79
|
+
throw new DeepgramError("Unknown transcription source type");
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (options !== undefined && "callback" in options) {
|
|
83
|
+
throw new DeepgramError(
|
|
84
|
+
"Callback cannot be provided as an option to a synchronous transcription. Use `asyncPrerecordedUrl` or `asyncPrerecordedFile` instead."
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const transcriptionOptions: PrerecordedOptions = { ...{}, ...options };
|
|
89
|
+
|
|
90
|
+
const url = new URL(endpoint, this.baseUrl);
|
|
91
|
+
appendSearchParams(url.searchParams, transcriptionOptions);
|
|
92
|
+
|
|
93
|
+
const result: SyncPrerecordedResponse = await this.post(this.fetch as Fetch, url, body, {
|
|
94
|
+
headers: this.headers,
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
return { result, error: null };
|
|
98
|
+
} catch (error) {
|
|
99
|
+
if (isDeepgramError(error)) {
|
|
100
|
+
return { result: null, error };
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
throw error;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
async transcribeUrlCallback(
|
|
108
|
+
source: UrlSource,
|
|
109
|
+
callback: CallbackUrl,
|
|
110
|
+
options?: PrerecordedOptions,
|
|
111
|
+
endpoint = "v1/listen"
|
|
112
|
+
): Promise<DeepgramResponse<AsyncPrerecordedResponse>> {
|
|
113
|
+
try {
|
|
114
|
+
let body;
|
|
115
|
+
if (isUrlSource(source)) {
|
|
116
|
+
body = JSON.stringify(source);
|
|
117
|
+
} else {
|
|
118
|
+
throw new DeepgramError("Unknown transcription source type");
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const transcriptionOptions: PrerecordedOptions = {
|
|
122
|
+
...options,
|
|
123
|
+
...{ callback: callback.toString() },
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
const url = new URL(endpoint, this.baseUrl);
|
|
127
|
+
appendSearchParams(url.searchParams, transcriptionOptions);
|
|
128
|
+
|
|
129
|
+
const result: AsyncPrerecordedResponse = await this.post(this.fetch as Fetch, url, body, {
|
|
130
|
+
headers: this.headers,
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
return { result, error: null };
|
|
134
|
+
} catch (error) {
|
|
135
|
+
if (isDeepgramError(error)) {
|
|
136
|
+
return { result: null, error };
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
throw error;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
async transcribeFileCallback(
|
|
144
|
+
source: FileSource,
|
|
145
|
+
callback: CallbackUrl,
|
|
146
|
+
options?: PrerecordedOptions,
|
|
147
|
+
endpoint = "v1/listen"
|
|
148
|
+
): Promise<DeepgramResponse<AsyncPrerecordedResponse>> {
|
|
149
|
+
try {
|
|
150
|
+
if (source.mimetype === undefined || source.mimetype.length === 0) {
|
|
151
|
+
throw new DeepgramError(
|
|
152
|
+
"Mimetype must be provided if the source is a Buffer or a Readable"
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
this.headers["Content-Type"] = source.mimetype;
|
|
157
|
+
|
|
158
|
+
let body;
|
|
159
|
+
if (isBufferSource(source)) {
|
|
160
|
+
body = source.buffer;
|
|
161
|
+
} else if (isReadStreamSource(source)) {
|
|
162
|
+
body = source.stream;
|
|
163
|
+
} else {
|
|
164
|
+
throw new DeepgramError("Unknown transcription source type");
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
const transcriptionOptions: PrerecordedOptions = {
|
|
168
|
+
...options,
|
|
169
|
+
...{ callback: callback.toString() },
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
const url = new URL(endpoint, this.baseUrl);
|
|
173
|
+
appendSearchParams(url.searchParams, transcriptionOptions);
|
|
174
|
+
|
|
175
|
+
const result: AsyncPrerecordedResponse = await this.post(this.fetch as Fetch, url, body, {
|
|
176
|
+
headers: this.headers,
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
return { result, error: null };
|
|
180
|
+
} catch (error) {
|
|
181
|
+
if (isDeepgramError(error)) {
|
|
182
|
+
return { result: null, error };
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
throw error;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
package/.devcontainer/Dockerfile
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18, 16, 14, 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster
|
|
2
|
-
ARG VARIANT=16-bullseye
|
|
3
|
-
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}
|
|
4
|
-
|
|
5
|
-
# [Optional] Uncomment this section to install additional OS packages.
|
|
6
|
-
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
|
7
|
-
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
|
8
|
-
|
|
9
|
-
# [Optional] Uncomment if you want to install an additional version of node using nvm
|
|
10
|
-
# ARG EXTRA_NODE_VERSION=10
|
|
11
|
-
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
|
|
12
|
-
|
|
13
|
-
# [Optional] Uncomment if you want to install more global node packages
|
|
14
|
-
# RUN su node -c "npm install -g <your-package-list -here>"
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18, 16, 14, 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster
|
|
2
|
-
ARG VARIANT=16-bullseye
|
|
3
|
-
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
|
|
4
|
-
|
|
5
|
-
# Install tslint, typescript. eslint is installed by javascript image
|
|
6
|
-
ARG NODE_MODULES="tslint-to-eslint-config typescript"
|
|
7
|
-
COPY library-scripts/meta.env /usr/local/etc/vscode-dev-containers
|
|
8
|
-
RUN su node -c "umask 0002 && npm install -g ${NODE_MODULES}" \
|
|
9
|
-
&& npm cache clean --force > /dev/null 2>&1
|
|
10
|
-
|
|
11
|
-
# [Optional] Uncomment this section to install additional OS packages.
|
|
12
|
-
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
|
13
|
-
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
|
14
|
-
|
|
15
|
-
# [Optional] Uncomment if you want to install an additional version of node using nvm
|
|
16
|
-
# ARG EXTRA_NODE_VERSION=10
|
|
17
|
-
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
|
2
|
-
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/typescript-node
|
|
3
|
-
{
|
|
4
|
-
"name": "Node.js & TypeScript",
|
|
5
|
-
"build": {
|
|
6
|
-
"dockerfile": "Dockerfile",
|
|
7
|
-
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
|
|
8
|
-
// Append -bullseye or -buster to pin to an OS version.
|
|
9
|
-
// Use -bullseye variants on local on arm64/Apple Silicon.
|
|
10
|
-
"args": {
|
|
11
|
-
"VARIANT": "16-bullseye"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
// Configure tool-specific properties.
|
|
16
|
-
"customizations": {
|
|
17
|
-
// Configure properties specific to VS Code.
|
|
18
|
-
"vscode": {
|
|
19
|
-
// Add the IDs of extensions you want installed when the container is created.
|
|
20
|
-
"extensions": [
|
|
21
|
-
"dbaeumer.vscode-eslint"
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
27
|
-
// "forwardPorts": [],
|
|
28
|
-
|
|
29
|
-
// Use 'postCreateCommand' to run commands after the container is created.
|
|
30
|
-
// "postCreateCommand": "yarn install",
|
|
31
|
-
|
|
32
|
-
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
|
33
|
-
"remoteUser": "node"
|
|
34
|
-
}
|
package/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# Code of Conduct
|
|
3
|
-
|
|
4
|
-
The Deepgram developer community is filled with amazing, clever and creative people, and we're excited for you to join us. Our goal is to create safe and inclusive spaces, have meaningful conversations, and explore ways to make sure that every voice is heard and understood.
|
|
5
|
-
|
|
6
|
-
#### Being a Good Community Member
|
|
7
|
-
|
|
8
|
-
Because we prioritize creating a safe space for our members, we believe in actively working on how we, as individuals, can ensure a positive community environment through our own actions and mindsets.
|
|
9
|
-
|
|
10
|
-
Every supportive community starts with each member. We feel it’s important to be open to others, respectful, and supportive. As part of the Deepgram community, please begin by thinking carefully about and agreeing with the following statements:
|
|
11
|
-
|
|
12
|
-
- I will be welcoming to everyone at the table;
|
|
13
|
-
- I will be patient and open to learning from everyone around me;
|
|
14
|
-
- I will treat everyone with respect, because they deserve it;
|
|
15
|
-
- I will be mindful of the needs and boundaries of others;
|
|
16
|
-
|
|
17
|
-
We strive to create a space where we learn and grow together. Here are some other key things you can do to make the community great:
|
|
18
|
-
|
|
19
|
-
### BE HUMBLE
|
|
20
|
-
|
|
21
|
-
People come from all different places, and it’s best not to make assumptions about what they think or feel. Approach others with curiosity and openness. We **all** have a lot to learn from each other.
|
|
22
|
-
|
|
23
|
-
### BE HELPFUL
|
|
24
|
-
|
|
25
|
-
If someone asks for help, consider jumping in. You don’t have to be an expert to talk through a problem, suggest a resource, or help find a solution. We all have something to contribute.
|
|
26
|
-
|
|
27
|
-
### ENCOURAGE OTHERS
|
|
28
|
-
|
|
29
|
-
There’s no one path to have a career in technology or to this community. Let’s engage others in ways that create opportunities for learning and fun for all of us.
|
|
30
|
-
|
|
31
|
-
## Our Pledge
|
|
32
|
-
|
|
33
|
-
Everyone who participates in our community must agree to abide by our Code of Conduct. By agreeing, you help create a welcoming, respectful, and friendly community based on respect and trust. We are committed to creating a harassment-free community.
|
|
34
|
-
|
|
35
|
-
These rules will be strictly enforced in any and all of our official spaces, including direct messages, social media, and physical and virtual events. Everyone who participates in these spaces is required to agree to this community code. We also ask and expect community members to observe these rules anywhere the community is meeting (for example, online chats on unofficial platforms or event after-parties).
|
|
36
|
-
|
|
37
|
-
## Our Standards
|
|
38
|
-
|
|
39
|
-
### BE RESPECTFUL
|
|
40
|
-
|
|
41
|
-
Exercise consideration and respect in your speech and actions. Be willing to accept and give feedback gracefully.
|
|
42
|
-
|
|
43
|
-
Don’t make offensive comments related to gender, gender identity and expression, sexual orientation, disability, mental illness, neuro(a)typicality, physical appearance, body size, race, ethnicity, immigration status, religion, experience level, socioeconomic status, nationality, or other identity markers.
|
|
44
|
-
|
|
45
|
-
Additionally, don’t insult or demean others. This includes making unwelcome comments about a person’s lifestyle choices and practices, including things related to diet, health, parenting, drugs, or employment. It’s not okay to insult or demean others if it’s "just a joke."
|
|
46
|
-
|
|
47
|
-
### BE WELCOMING AND OPEN
|
|
48
|
-
|
|
49
|
-
Encourage others, be supportive and willing to listen, and be willing to learn from others’ perspectives and experiences. Lead with empathy and kindness.
|
|
50
|
-
|
|
51
|
-
Don’t engage in gatekeeping behaviors, like questioning the intelligence or knowledge of others as a way to prove their credentials. And don’t exclude people for prejudicial reasons.
|
|
52
|
-
|
|
53
|
-
### RESPECT PRIVACY
|
|
54
|
-
|
|
55
|
-
Do not publish private communications without consent. Additionally, never disclose private aspects of a person’s personal identity without consent, except as necessary to protect them from intentional abuse.
|
|
56
|
-
|
|
57
|
-
### RESPECT PERSONAL BOUNDARIES
|
|
58
|
-
|
|
59
|
-
Do not introduce gratuitous or off-topic sexual images, languages, or behavior in spaces where they are not appropriate. Never make physical contact or simulated physical contact without consent or after a request to stop. Additionally, do not continue to message others about anything if they ask you to stop or leave them alone.
|
|
60
|
-
|
|
61
|
-
#### BE A GOOD NEIGHBOR
|
|
62
|
-
|
|
63
|
-
Contribute to the community in a positive and thoughtful way. Consider what’s best for the overall community. Do not make threats of violence, intimidate others, incite violence or intimidation against others, incite self-harm, stalk, follow, or otherwise harass others. Be mindful of your surroundings and of your fellow participants.
|
|
64
|
-
|
|
65
|
-
Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential.
|
|
66
|
-
|
|
67
|
-
# Additional rules for online spaces
|
|
68
|
-
|
|
69
|
-
For Deepgram’s official online spaces, like our YouTube & Twitch chats, we have some additional rules. Any of the following behaviors can result in a ban without warning.
|
|
70
|
-
|
|
71
|
-
### DON'T SPAM
|
|
72
|
-
|
|
73
|
-
Don't spam. We'll ban you.
|
|
74
|
-
|
|
75
|
-
### KEEP IT LEGAL
|
|
76
|
-
|
|
77
|
-
If it’s illegal, it’s not allowed on our websites or in our online spaces. Please don’t share links to pirated material or other nefarious things.
|
|
78
|
-
|
|
79
|
-
### NO TROLLING
|
|
80
|
-
|
|
81
|
-
Please be earnest. Don’t use excessive sarcasm to annoy or undermine other people. And don’t bait them with bad faith comments or abuse.
|
|
82
|
-
|
|
83
|
-
### PORNOGRAPHY AND OTHER NSFW STUFF
|
|
84
|
-
|
|
85
|
-
Please don’t post it or link to it. It doesn’t belong in our online spaces.
|
|
86
|
-
|
|
87
|
-
### FOUL AND GRAPHIC LANGUAGE
|
|
88
|
-
|
|
89
|
-
Please do not use excessive curse words. Additionally, do not use graphic sexual or violent language — again, think of our spaces as places for people of all ages.
|
|
90
|
-
|
|
91
|
-
# Enforcement & Reporting
|
|
92
|
-
|
|
93
|
-
If you are being harassed by a member of the Deepgram developer community, if you observe someone else being harassed, or you experience actions or behaviors that are contrary to our Code of Conduct, please report the behavior using our [Code of Conduct Report Form](https://developers.deepgram.com/code-of-conduct/report-form/).
|
|
94
|
-
|
|
95
|
-
## Enforcement Guidelines
|
|
96
|
-
|
|
97
|
-
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
|
98
|
-
|
|
99
|
-
### 1. Correction
|
|
100
|
-
|
|
101
|
-
**_Community Impact:_** Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
|
102
|
-
|
|
103
|
-
**_Consequence:_** A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
|
104
|
-
|
|
105
|
-
### 2. Warning
|
|
106
|
-
|
|
107
|
-
**_Community Impact:_** A violation through a single incident or series of actions.
|
|
108
|
-
|
|
109
|
-
**_Consequence:_** A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
|
110
|
-
|
|
111
|
-
### 3. Temporary Ban
|
|
112
|
-
|
|
113
|
-
**_Community Impact:_** A serious violation of community standards, including sustained inappropriate behavior.
|
|
114
|
-
|
|
115
|
-
**_Consequence:_** A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
|
116
|
-
|
|
117
|
-
### 4. Permanent Ban
|
|
118
|
-
|
|
119
|
-
**_Community Impact:_** Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
|
120
|
-
|
|
121
|
-
**_Consequence:_** A permanent ban from any sort of public interaction within the community.
|
|
122
|
-
|
|
123
|
-
# Attribution
|
|
124
|
-
|
|
125
|
-
This Code of Conduct is adapted from:
|
|
126
|
-
|
|
127
|
-
- Contributor Covenant, version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct
|
|
128
|
-
- https://eventhandler.community/conduct/, which itself is inspired by Quest, who in turn provides credit to Scripto, the #botALLY Code of Conduct, the LGBTQ in Tech code of Conduct, and the XOXO Code of Conduct.
|
|
129
|
-
|
|
130
|
-
Community Impact Guidelines, which were copied from InnerSource Commons, were inspired by Mozilla’s code of conduct enforcement ladder.
|
|
131
|
-
|
|
132
|
-
For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# Contributing Guidelines
|
|
2
|
-
|
|
3
|
-
Want to contribute to this project? We ❤️ it!
|
|
4
|
-
|
|
5
|
-
Here are a few types of contributions that we would be interested in hearing about.
|
|
6
|
-
|
|
7
|
-
- Bug fixes
|
|
8
|
-
- If you find a bug, please first report it using Github Issues.
|
|
9
|
-
- Issues that have already been identified as a bug will be labeled `🐛 bug`.
|
|
10
|
-
- If you'd like to submit a fix for a bug, send a Pull Request from your own fork and mention the Issue number.
|
|
11
|
-
- Include a test that isolates the bug and verifies that it was fixed.
|
|
12
|
-
- New Features
|
|
13
|
-
- If you'd like to accomplish something in the extension that it doesn't already do, describe the problem in a new Github Issue.
|
|
14
|
-
- Issues that have been identified as a feature request will be labeled `✨ enhancement`.
|
|
15
|
-
- If you'd like to implement the new feature, please wait for feedback from the project maintainers before spending
|
|
16
|
-
too much time writing the code. In some cases, `✨ enhancement`s may not align well with the project objectives at
|
|
17
|
-
the time.
|
|
18
|
-
- Tests, Documentation, Miscellaneous
|
|
19
|
-
- If you think the test coverage could be improved, the documentation could be clearer, you've got an alternative
|
|
20
|
-
implementation of something that may have more advantages, or any other change we would still be glad hear about
|
|
21
|
-
it.
|
|
22
|
-
- If its a trivial change, go ahead and send a Pull Request with the changes you have in mind
|
|
23
|
-
- If not, open a Github Issue to discuss the idea first.
|
|
24
|
-
- Snippets
|
|
25
|
-
- To add snippets:
|
|
26
|
-
- Add a directory in the `snippets` folder with the name of the language.
|
|
27
|
-
- Add one or more files in the language directory with snippets.
|
|
28
|
-
- Update the `package.json` to include the snippets you added.
|
|
29
|
-
|
|
30
|
-
We also welcome anyone to work on any existing issues with the `👋🏽 good first issue` tag.
|
|
31
|
-
|
|
32
|
-
## Requirements
|
|
33
|
-
|
|
34
|
-
For a contribution to be accepted:
|
|
35
|
-
|
|
36
|
-
- The test suite must be complete and pass
|
|
37
|
-
- Code must follow existing styling conventions
|
|
38
|
-
- Commit messages must be descriptive. Related issues should be mentioned by number.
|
|
39
|
-
|
|
40
|
-
If the contribution doesn't meet these criteria, a maintainer will discuss it with you on the Issue. You can still
|
|
41
|
-
continue to add more commits to the branch you have sent the Pull Request from.
|
|
42
|
-
|
|
43
|
-
## How To
|
|
44
|
-
|
|
45
|
-
1. Fork this repository on GitHub.
|
|
46
|
-
1. Clone/fetch your fork to your local development machine.
|
|
47
|
-
1. Create a new branch (e.g. `issue-12`, `feat.add_foo`, etc) and check it out.
|
|
48
|
-
1. Make your changes and commit them. (Did the tests pass? No linting errors?)
|
|
49
|
-
1. Push your new branch to your fork. (e.g. `git push myname issue-12`)
|
|
50
|
-
1. Open a Pull Request from your new branch to the original fork's `main` branch.
|
package/dist/billing.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { BalanceList, Balance, RequestFunction } from "./types";
|
|
2
|
-
export declare class Billing {
|
|
3
|
-
private _credentials;
|
|
4
|
-
private _apiUrl;
|
|
5
|
-
private _requireSSL;
|
|
6
|
-
private _request;
|
|
7
|
-
constructor(_credentials: string, _apiUrl: string, _requireSSL: boolean, _request: RequestFunction);
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves list of balance info of the specified project.
|
|
10
|
-
* @param {string} projectId Unique identifier of the project
|
|
11
|
-
* @param {string} endpoint Custom API endpoint
|
|
12
|
-
*
|
|
13
|
-
* @returns {Promise<BalanceList>}
|
|
14
|
-
*/
|
|
15
|
-
listBalances(projectId: string, endpoint?: string): Promise<BalanceList>;
|
|
16
|
-
/**
|
|
17
|
-
* Retrieves balance info of a specified balance_id in the specified project.
|
|
18
|
-
* @param {string} projectId Unique identifier of the project
|
|
19
|
-
* @param {string} balanceId Unique identifier of the balance
|
|
20
|
-
* @param {string} endpoint Custom API endpoint
|
|
21
|
-
*
|
|
22
|
-
* @returns {Promise<Balance>}
|
|
23
|
-
*/
|
|
24
|
-
getBalance(projectId: string, balanceId: string, endpoint?: string): Promise<Balance>;
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./defaultOptions";
|
package/dist/enums/index.d.ts
DELETED
package/dist/enums/models.d.ts
DELETED
package/dist/helpers/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function secondsToTimestamp(seconds: number, format?: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function validateOptions(apiKey: string, apiUrl: string): void;
|
package/dist/httpRequest.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
import { Readable } from "stream";
|
|
4
|
-
export declare function _request<T>(method: string, apiKey: string, apiURL: string, requireSSL: boolean, path: string, payload?: string | Buffer | Readable, options?: Object): Promise<T>;
|
package/dist/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Keys } from "./keys";
|
|
2
|
-
import { Projects } from "./projects";
|
|
3
|
-
import { Transcriber } from "./transcription";
|
|
4
|
-
import { Usage } from "./usage";
|
|
5
|
-
import { Members } from "./members";
|
|
6
|
-
import { Invitation } from "./invitation";
|
|
7
|
-
import { Billing } from "./billing";
|
|
8
|
-
import { Scopes } from "./scopes";
|
|
9
|
-
export declare class Deepgram {
|
|
10
|
-
private _apiUrl;
|
|
11
|
-
private _apiKey;
|
|
12
|
-
private _requireSSL;
|
|
13
|
-
keys: Keys;
|
|
14
|
-
projects: Projects;
|
|
15
|
-
transcription: Transcriber;
|
|
16
|
-
usage: Usage;
|
|
17
|
-
members: Members;
|
|
18
|
-
invitation: Invitation;
|
|
19
|
-
billing: Billing;
|
|
20
|
-
scopes: Scopes;
|
|
21
|
-
constructor(apiKey: string, apiUrl?: string, requireSSL?: boolean);
|
|
22
|
-
}
|