casedev 0.23.0 → 0.24.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 (119) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/resources/agent/v1/agents.d.mts +22 -1
  4. package/resources/agent/v1/agents.d.mts.map +1 -1
  5. package/resources/agent/v1/agents.d.ts +22 -1
  6. package/resources/agent/v1/agents.d.ts.map +1 -1
  7. package/resources/agent/v1/chat.d.mts +1 -1
  8. package/resources/agent/v1/chat.d.ts +1 -1
  9. package/resources/applications/v1/deployments.d.mts +26 -16
  10. package/resources/applications/v1/deployments.d.mts.map +1 -1
  11. package/resources/applications/v1/deployments.d.ts +26 -16
  12. package/resources/applications/v1/deployments.d.ts.map +1 -1
  13. package/resources/applications/v1/deployments.js +16 -6
  14. package/resources/applications/v1/deployments.js.map +1 -1
  15. package/resources/applications/v1/deployments.mjs +16 -6
  16. package/resources/applications/v1/deployments.mjs.map +1 -1
  17. package/resources/applications/v1/index.d.mts +1 -1
  18. package/resources/applications/v1/index.d.mts.map +1 -1
  19. package/resources/applications/v1/index.d.ts +1 -1
  20. package/resources/applications/v1/index.d.ts.map +1 -1
  21. package/resources/applications/v1/index.js.map +1 -1
  22. package/resources/applications/v1/index.mjs.map +1 -1
  23. package/resources/applications/v1/projects.d.mts +91 -24
  24. package/resources/applications/v1/projects.d.mts.map +1 -1
  25. package/resources/applications/v1/projects.d.ts +91 -24
  26. package/resources/applications/v1/projects.d.ts.map +1 -1
  27. package/resources/applications/v1/projects.js +20 -8
  28. package/resources/applications/v1/projects.js.map +1 -1
  29. package/resources/applications/v1/projects.mjs +20 -8
  30. package/resources/applications/v1/projects.mjs.map +1 -1
  31. package/resources/applications/v1/v1.d.mts +2 -2
  32. package/resources/applications/v1/v1.d.mts.map +1 -1
  33. package/resources/applications/v1/v1.d.ts +2 -2
  34. package/resources/applications/v1/v1.d.ts.map +1 -1
  35. package/resources/applications/v1/v1.js.map +1 -1
  36. package/resources/applications/v1/v1.mjs.map +1 -1
  37. package/resources/format/v1/v1.d.mts +8 -0
  38. package/resources/format/v1/v1.d.mts.map +1 -1
  39. package/resources/format/v1/v1.d.ts +8 -0
  40. package/resources/format/v1/v1.d.ts.map +1 -1
  41. package/resources/format/v1/v1.js.map +1 -1
  42. package/resources/format/v1/v1.mjs.map +1 -1
  43. package/resources/legal/v1.d.mts +9 -0
  44. package/resources/legal/v1.d.mts.map +1 -1
  45. package/resources/legal/v1.d.ts +9 -0
  46. package/resources/legal/v1.d.ts.map +1 -1
  47. package/resources/vault/events/subscriptions.d.mts +20 -6
  48. package/resources/vault/events/subscriptions.d.mts.map +1 -1
  49. package/resources/vault/events/subscriptions.d.ts +20 -6
  50. package/resources/vault/events/subscriptions.d.ts.map +1 -1
  51. package/resources/vault/groups.d.mts +34 -7
  52. package/resources/vault/groups.d.mts.map +1 -1
  53. package/resources/vault/groups.d.ts +34 -7
  54. package/resources/vault/groups.d.ts.map +1 -1
  55. package/resources/vault/groups.js +13 -7
  56. package/resources/vault/groups.js.map +1 -1
  57. package/resources/vault/groups.mjs +13 -7
  58. package/resources/vault/groups.mjs.map +1 -1
  59. package/resources/vault/index.d.mts +1 -1
  60. package/resources/vault/index.d.mts.map +1 -1
  61. package/resources/vault/index.d.ts +1 -1
  62. package/resources/vault/index.d.ts.map +1 -1
  63. package/resources/vault/index.js.map +1 -1
  64. package/resources/vault/index.mjs.map +1 -1
  65. package/resources/vault/multipart.d.mts +18 -0
  66. package/resources/vault/multipart.d.mts.map +1 -1
  67. package/resources/vault/multipart.d.ts +18 -0
  68. package/resources/vault/multipart.d.ts.map +1 -1
  69. package/resources/vault/vault.d.mts +2 -2
  70. package/resources/vault/vault.d.mts.map +1 -1
  71. package/resources/vault/vault.d.ts +2 -2
  72. package/resources/vault/vault.d.ts.map +1 -1
  73. package/resources/vault/vault.js.map +1 -1
  74. package/resources/vault/vault.mjs.map +1 -1
  75. package/resources/voice/boost-list.d.mts +88 -0
  76. package/resources/voice/boost-list.d.mts.map +1 -0
  77. package/resources/voice/boost-list.d.ts +88 -0
  78. package/resources/voice/boost-list.d.ts.map +1 -0
  79. package/resources/voice/boost-list.js +40 -0
  80. package/resources/voice/boost-list.js.map +1 -0
  81. package/resources/voice/boost-list.mjs +36 -0
  82. package/resources/voice/boost-list.mjs.map +1 -0
  83. package/resources/voice/index.d.mts +1 -0
  84. package/resources/voice/index.d.mts.map +1 -1
  85. package/resources/voice/index.d.ts +1 -0
  86. package/resources/voice/index.d.ts.map +1 -1
  87. package/resources/voice/index.js +3 -1
  88. package/resources/voice/index.js.map +1 -1
  89. package/resources/voice/index.mjs +1 -0
  90. package/resources/voice/index.mjs.map +1 -1
  91. package/resources/voice/voice.d.mts +4 -0
  92. package/resources/voice/voice.d.mts.map +1 -1
  93. package/resources/voice/voice.d.ts +4 -0
  94. package/resources/voice/voice.d.ts.map +1 -1
  95. package/resources/voice/voice.js +4 -0
  96. package/resources/voice/voice.js.map +1 -1
  97. package/resources/voice/voice.mjs +4 -0
  98. package/resources/voice/voice.mjs.map +1 -1
  99. package/src/resources/agent/v1/agents.ts +22 -1
  100. package/src/resources/agent/v1/chat.ts +1 -1
  101. package/src/resources/applications/v1/deployments.ts +26 -16
  102. package/src/resources/applications/v1/index.ts +1 -0
  103. package/src/resources/applications/v1/projects.ts +97 -24
  104. package/src/resources/applications/v1/v1.ts +2 -0
  105. package/src/resources/format/v1/v1.ts +8 -0
  106. package/src/resources/legal/v1.ts +9 -0
  107. package/src/resources/vault/events/subscriptions.ts +20 -6
  108. package/src/resources/vault/groups.ts +41 -7
  109. package/src/resources/vault/index.ts +1 -1
  110. package/src/resources/vault/multipart.ts +18 -0
  111. package/src/resources/vault/vault.ts +6 -2
  112. package/src/resources/voice/boost-list.ts +119 -0
  113. package/src/resources/voice/index.ts +7 -0
  114. package/src/resources/voice/voice.ts +18 -0
  115. package/src/version.ts +1 -1
  116. package/version.d.mts +1 -1
  117. package/version.d.ts +1 -1
  118. package/version.js +1 -1
  119. package/version.mjs +1 -1
@@ -0,0 +1,119 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import { APIPromise } from '../../core/api-promise';
5
+ import { RequestOptions } from '../../internal/request-options';
6
+
7
+ /**
8
+ * Audio transcription and text-to-speech
9
+ */
10
+ export class BoostList extends APIResource {
11
+ /**
12
+ * Extracts a categorized word boost list from vault documents or raw text using
13
+ * LLM entity extraction. The resulting list can be passed as `word_boost` to the
14
+ * transcription endpoint for improved accuracy.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const response = await client.voice.boostList.extract();
19
+ * ```
20
+ */
21
+ extract(body: BoostListExtractParams, options?: RequestOptions): APIPromise<BoostListExtractResponse> {
22
+ return this._client.post('/voice/boost-list/extract', { body, ...options });
23
+ }
24
+
25
+ /**
26
+ * Generates a categorized word boost list from a completed transcription job.
27
+ * Extracts entities from the pass-1 transcript for use as `word_boost` in a second
28
+ * transcription pass.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const response = await client.voice.boostList.generate({
33
+ * transcription_job_id: 'transcription_job_id',
34
+ * });
35
+ * ```
36
+ */
37
+ generate(body: BoostListGenerateParams, options?: RequestOptions): APIPromise<BoostListGenerateResponse> {
38
+ return this._client.post('/voice/boost-list/generate', { body, ...options });
39
+ }
40
+ }
41
+
42
+ export interface BoostListExtractResponse {
43
+ items?: Array<BoostListExtractResponse.Item>;
44
+
45
+ source?: 'document' | 'text';
46
+
47
+ source_ids?: Array<string>;
48
+ }
49
+
50
+ export namespace BoostListExtractResponse {
51
+ export interface Item {
52
+ boost_param?: 'low' | 'default' | 'high';
53
+
54
+ category?: string;
55
+
56
+ word?: string;
57
+ }
58
+ }
59
+
60
+ export interface BoostListGenerateResponse {
61
+ items?: Array<BoostListGenerateResponse.Item>;
62
+
63
+ source?: 'transcript';
64
+
65
+ source_ids?: Array<string>;
66
+ }
67
+
68
+ export namespace BoostListGenerateResponse {
69
+ export interface Item {
70
+ boost_param?: 'low' | 'default' | 'high';
71
+
72
+ category?: string;
73
+
74
+ word?: string;
75
+ }
76
+ }
77
+
78
+ export interface BoostListExtractParams {
79
+ /**
80
+ * Optional filter for entity categories to extract
81
+ */
82
+ categories?: Array<'person' | 'organization' | 'legal_term' | 'medical' | 'citation' | 'email'>;
83
+
84
+ /**
85
+ * Object IDs of documents to extract entities from (PDFs, text files)
86
+ */
87
+ object_ids?: Array<string>;
88
+
89
+ /**
90
+ * Raw text input for entity extraction (alternative to vault documents)
91
+ */
92
+ text?: string;
93
+
94
+ /**
95
+ * Vault ID containing the source documents (use with object_ids)
96
+ */
97
+ vault_id?: string;
98
+ }
99
+
100
+ export interface BoostListGenerateParams {
101
+ /**
102
+ * Completed pass-1 transcription job ID (tr\_...)
103
+ */
104
+ transcription_job_id: string;
105
+
106
+ /**
107
+ * Optional filter for entity categories to extract
108
+ */
109
+ categories?: Array<'person' | 'organization' | 'legal_term' | 'medical' | 'citation' | 'email'>;
110
+ }
111
+
112
+ export declare namespace BoostList {
113
+ export {
114
+ type BoostListExtractResponse as BoostListExtractResponse,
115
+ type BoostListGenerateResponse as BoostListGenerateResponse,
116
+ type BoostListExtractParams as BoostListExtractParams,
117
+ type BoostListGenerateParams as BoostListGenerateParams,
118
+ };
119
+ }
@@ -1,5 +1,12 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ export {
4
+ BoostList,
5
+ type BoostListExtractResponse,
6
+ type BoostListGenerateResponse,
7
+ type BoostListExtractParams,
8
+ type BoostListGenerateParams,
9
+ } from './boost-list';
3
10
  export { Streaming, type StreamingGetURLResponse } from './streaming';
4
11
  export {
5
12
  Transcription,
@@ -1,6 +1,14 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
+ import * as BoostListAPI from './boost-list';
5
+ import {
6
+ BoostList,
7
+ BoostListExtractParams,
8
+ BoostListExtractResponse,
9
+ BoostListGenerateParams,
10
+ BoostListGenerateResponse,
11
+ } from './boost-list';
4
12
  import * as StreamingAPI from './streaming';
5
13
  import { Streaming, StreamingGetURLResponse } from './streaming';
6
14
  import * as TranscriptionAPI from './transcription';
@@ -15,17 +23,27 @@ import { V1, V1ListVoicesParams, V1ListVoicesResponse } from './v1/v1';
15
23
 
16
24
  export class Voice extends APIResource {
17
25
  streaming: StreamingAPI.Streaming = new StreamingAPI.Streaming(this._client);
26
+ boostList: BoostListAPI.BoostList = new BoostListAPI.BoostList(this._client);
18
27
  transcription: TranscriptionAPI.Transcription = new TranscriptionAPI.Transcription(this._client);
19
28
  v1: V1API.V1 = new V1API.V1(this._client);
20
29
  }
21
30
 
22
31
  Voice.Streaming = Streaming;
32
+ Voice.BoostList = BoostList;
23
33
  Voice.Transcription = Transcription;
24
34
  Voice.V1 = V1;
25
35
 
26
36
  export declare namespace Voice {
27
37
  export { Streaming as Streaming, type StreamingGetURLResponse as StreamingGetURLResponse };
28
38
 
39
+ export {
40
+ BoostList as BoostList,
41
+ type BoostListExtractResponse as BoostListExtractResponse,
42
+ type BoostListGenerateResponse as BoostListGenerateResponse,
43
+ type BoostListExtractParams as BoostListExtractParams,
44
+ type BoostListGenerateParams as BoostListGenerateParams,
45
+ };
46
+
29
47
  export {
30
48
  Transcription as Transcription,
31
49
  type TranscriptionCreateResponse as TranscriptionCreateResponse,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.23.0'; // x-release-please-version
1
+ export const VERSION = '0.24.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.23.0";
1
+ export declare const VERSION = "0.24.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.23.0";
1
+ export declare const VERSION = "0.24.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.23.0'; // x-release-please-version
4
+ exports.VERSION = '0.24.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.23.0'; // x-release-please-version
1
+ export const VERSION = '0.24.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map