@deepgram/sdk 3.11.2 → 3.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/README.md +145 -4
  2. package/dist/main/DeepgramClient.d.ts +8 -1
  3. package/dist/main/DeepgramClient.d.ts.map +1 -1
  4. package/dist/main/DeepgramClient.js +9 -0
  5. package/dist/main/DeepgramClient.js.map +1 -1
  6. package/dist/main/lib/constants.d.ts +0 -3
  7. package/dist/main/lib/constants.d.ts.map +1 -1
  8. package/dist/main/lib/constants.js +9 -17
  9. package/dist/main/lib/constants.js.map +1 -1
  10. package/dist/main/lib/helpers.d.ts +0 -3
  11. package/dist/main/lib/helpers.d.ts.map +1 -1
  12. package/dist/main/lib/helpers.js +1 -8
  13. package/dist/main/lib/helpers.js.map +1 -1
  14. package/dist/main/lib/runtime.d.ts +7 -0
  15. package/dist/main/lib/runtime.d.ts.map +1 -0
  16. package/dist/main/lib/runtime.js +19 -0
  17. package/dist/main/lib/runtime.js.map +1 -0
  18. package/dist/main/lib/types/GrantTokenResponse.d.ts +5 -0
  19. package/dist/main/lib/types/GrantTokenResponse.d.ts.map +1 -0
  20. package/dist/main/lib/types/GrantTokenResponse.js +3 -0
  21. package/dist/main/lib/types/GrantTokenResponse.js.map +1 -0
  22. package/dist/main/lib/types/index.d.ts +1 -0
  23. package/dist/main/lib/types/index.d.ts.map +1 -1
  24. package/dist/main/lib/types/index.js +1 -0
  25. package/dist/main/lib/types/index.js.map +1 -1
  26. package/dist/main/lib/version.d.ts +1 -1
  27. package/dist/main/lib/version.js +1 -1
  28. package/dist/main/packages/AbstractLiveClient.js +2 -2
  29. package/dist/main/packages/AbstractRestClient.js +2 -2
  30. package/dist/main/packages/AuthRestClient.d.ts +13 -0
  31. package/dist/main/packages/AuthRestClient.d.ts.map +1 -0
  32. package/dist/main/packages/AuthRestClient.js +42 -0
  33. package/dist/main/packages/AuthRestClient.js.map +1 -0
  34. package/dist/main/packages/ManageRestClient.d.ts +3 -31
  35. package/dist/main/packages/ManageRestClient.d.ts.map +1 -1
  36. package/dist/main/packages/ManageRestClient.js +3 -31
  37. package/dist/main/packages/ManageRestClient.js.map +1 -1
  38. package/dist/main/packages/index.d.ts +1 -0
  39. package/dist/main/packages/index.d.ts.map +1 -1
  40. package/dist/main/packages/index.js +1 -0
  41. package/dist/main/packages/index.js.map +1 -1
  42. package/dist/module/DeepgramClient.d.ts +8 -1
  43. package/dist/module/DeepgramClient.d.ts.map +1 -1
  44. package/dist/module/DeepgramClient.js +10 -1
  45. package/dist/module/DeepgramClient.js.map +1 -1
  46. package/dist/module/lib/constants.d.ts +0 -3
  47. package/dist/module/lib/constants.d.ts.map +1 -1
  48. package/dist/module/lib/constants.js +2 -10
  49. package/dist/module/lib/constants.js.map +1 -1
  50. package/dist/module/lib/helpers.d.ts +0 -3
  51. package/dist/module/lib/helpers.d.ts.map +1 -1
  52. package/dist/module/lib/helpers.js +0 -4
  53. package/dist/module/lib/helpers.js.map +1 -1
  54. package/dist/module/lib/runtime.d.ts +7 -0
  55. package/dist/module/lib/runtime.d.ts.map +1 -0
  56. package/dist/module/lib/runtime.js +13 -0
  57. package/dist/module/lib/runtime.js.map +1 -0
  58. package/dist/module/lib/types/GrantTokenResponse.d.ts +5 -0
  59. package/dist/module/lib/types/GrantTokenResponse.d.ts.map +1 -0
  60. package/dist/module/lib/types/GrantTokenResponse.js +2 -0
  61. package/dist/module/lib/types/GrantTokenResponse.js.map +1 -0
  62. package/dist/module/lib/types/index.d.ts +1 -0
  63. package/dist/module/lib/types/index.d.ts.map +1 -1
  64. package/dist/module/lib/types/index.js +1 -0
  65. package/dist/module/lib/types/index.js.map +1 -1
  66. package/dist/module/lib/version.d.ts +1 -1
  67. package/dist/module/lib/version.js +1 -1
  68. package/dist/module/packages/AbstractLiveClient.js +1 -1
  69. package/dist/module/packages/AbstractRestClient.js +1 -1
  70. package/dist/module/packages/AuthRestClient.d.ts +13 -0
  71. package/dist/module/packages/AuthRestClient.d.ts.map +1 -0
  72. package/dist/module/packages/AuthRestClient.js +38 -0
  73. package/dist/module/packages/AuthRestClient.js.map +1 -0
  74. package/dist/module/packages/ManageRestClient.d.ts +3 -31
  75. package/dist/module/packages/ManageRestClient.d.ts.map +1 -1
  76. package/dist/module/packages/ManageRestClient.js +3 -31
  77. package/dist/module/packages/ManageRestClient.js.map +1 -1
  78. package/dist/module/packages/index.d.ts +1 -0
  79. package/dist/module/packages/index.d.ts.map +1 -1
  80. package/dist/module/packages/index.js +1 -0
  81. package/dist/module/packages/index.js.map +1 -1
  82. package/dist/umd/deepgram.js +1 -1
  83. package/package.json +1 -1
  84. package/src/DeepgramClient.ts +10 -0
  85. package/src/lib/constants.ts +2 -16
  86. package/src/lib/helpers.ts +0 -7
  87. package/src/lib/runtime.ts +20 -0
  88. package/src/lib/types/GrantTokenResponse.ts +4 -0
  89. package/src/lib/types/index.ts +1 -0
  90. package/src/lib/version.ts +1 -1
  91. package/src/packages/AbstractLiveClient.ts +1 -1
  92. package/src/packages/AbstractRestClient.ts +1 -1
  93. package/src/packages/AuthRestClient.ts +32 -0
  94. package/src/packages/ManageRestClient.ts +3 -31
  95. package/src/packages/index.ts +1 -0
@@ -32,37 +32,7 @@ import type {
32
32
  import { AbstractRestClient } from "./AbstractRestClient";
33
33
 
34
34
  /**
35
- * The `ManageRestClient` class provides a set of methods for interacting with the Deepgram Manage API. It extends the `AbstractRestClient` class and provides functionality for managing projects, keys, members, invites, usage, and balances.
36
- *
37
- * The class has a `namespace` property that is set to `"manage"`, which is used in the construction of the request URLs.
38
- *
39
- * The methods in this class include:
40
- * - `getTokenDetails`: Retrieves the details of the current authentication token.
41
- * - `getProjects`: Retrieves a list of all projects associated with the authenticated account.
42
- * - `getProject`: Retrieves the details of a specific project.
43
- * - `updateProject`: Updates the details of a specific project.
44
- * - `deleteProject`: Deletes a specific project.
45
- * - `getProjectKeys`: Retrieves a list of all API keys associated with a specific project.
46
- * - `getProjectKey`: Retrieves the details of a specific API key.
47
- * - `createProjectKey`: Creates a new API key for a specific project.
48
- * - `deleteProjectKey`: Deletes a specific API key.
49
- * - `getProjectMembers`: Retrieves a list of all members associated with a specific project.
50
- * - `removeProjectMember`: Removes a specific member from a project.
51
- * - `getProjectMemberScopes`: Retrieves the scopes associated with a specific project member.
52
- * - `updateProjectMemberScope`: Updates the scopes associated with a specific project member.
53
- * - `getProjectInvites`: Retrieves a list of all pending invitations for a specific project.
54
- * - `sendProjectInvite`: Sends a new invitation to a specific email address for a project.
55
- * - `deleteProjectInvite`: Deletes a specific invitation for a project.
56
- * - `leaveProject`: Removes the authenticated user from a specific project.
57
- * - `getProjectUsageRequests`: Retrieves a list of all usage requests for a specific project.
58
- * - `getProjectUsageRequest`: Retrieves the details of a specific usage request.
59
- * - `getProjectUsageSummary`: Retrieves a summary of the usage for a specific project.
60
- * - `getProjectUsageFields`: Retrieves a list of the available usage fields for a specific project.
61
- * - `getProjectBalances`: Retrieves a list of all balances associated with a specific project.
62
- * - `getProjectBalance`: Retrieves the details of a specific balance for a project.
63
- */
64
- /**
65
- * The `ManageRestClient` class provides a set of methods for interacting with the Deepgram Manage API. It extends the `AbstractRestClient` class and provides functionality for managing projects, keys, members, invites, usage, and balances.
35
+ * The `ManageRestClient` class provides a set of methods for interacting with the Deepgram Manage API. It extends the `AbstractRestClient` class and provides functionality for managing projects, keys, members, invites, usage, balances, and models.
66
36
  *
67
37
  * The class has a `namespace` property that is set to `"manage"`, which is used in the construction of the request URLs.
68
38
  *
@@ -90,6 +60,8 @@ import { AbstractRestClient } from "./AbstractRestClient";
90
60
  * - `getProjectUsageFields`: Retrieves a list of the available usage fields for a specific project.
91
61
  * - `getProjectBalances`: Retrieves a list of all balances associated with a specific project.
92
62
  * - `getProjectBalance`: Retrieves the details of a specific balance for a project.
63
+ * - `getAllModels`: Retrieves all models for a project.
64
+ * - `getModel`: Retrieves a specific model.
93
65
  */
94
66
  export class ManageRestClient extends AbstractRestClient {
95
67
  public namespace: string = "manage";
@@ -2,6 +2,7 @@ export * from "./AbstractClient";
2
2
  export * from "./AbstractLiveClient";
3
3
  export * from "./AbstractRestClient";
4
4
  export * from "./AgentLiveClient";
5
+ export * from "./AuthRestClient";
5
6
  export * from "./ListenClient";
6
7
  export * from "./ListenLiveClient";
7
8
  export * from "./ListenRestClient";