casedev 0.26.0 → 0.28.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 (169) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +8 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +8 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +7 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +7 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent/v1/chat/files.d.mts +1 -1
  12. package/resources/agent/v1/chat/files.d.mts.map +1 -1
  13. package/resources/agent/v1/chat/files.d.ts +1 -1
  14. package/resources/agent/v1/chat/files.d.ts.map +1 -1
  15. package/resources/agent/v1/chat/files.js +2 -2
  16. package/resources/agent/v1/chat/files.js.map +1 -1
  17. package/resources/agent/v1/chat/files.mjs +2 -2
  18. package/resources/agent/v1/chat/files.mjs.map +1 -1
  19. package/resources/index.d.mts +3 -1
  20. package/resources/index.d.mts.map +1 -1
  21. package/resources/index.d.ts +3 -1
  22. package/resources/index.d.ts.map +1 -1
  23. package/resources/index.js +6 -2
  24. package/resources/index.js.map +1 -1
  25. package/resources/index.mjs +3 -1
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/mail/index.d.mts +3 -0
  28. package/resources/mail/index.d.mts.map +1 -0
  29. package/resources/mail/index.d.ts +3 -0
  30. package/resources/mail/index.d.ts.map +1 -0
  31. package/resources/mail/index.js +9 -0
  32. package/resources/mail/index.js.map +1 -0
  33. package/resources/mail/index.mjs +4 -0
  34. package/resources/mail/index.mjs.map +1 -0
  35. package/resources/mail/mail.d.mts +10 -0
  36. package/resources/mail/mail.d.mts.map +1 -0
  37. package/resources/mail/mail.d.ts +10 -0
  38. package/resources/mail/mail.d.ts.map +1 -0
  39. package/resources/mail/mail.js +17 -0
  40. package/resources/mail/mail.js.map +1 -0
  41. package/resources/mail/mail.mjs +12 -0
  42. package/resources/mail/mail.mjs.map +1 -0
  43. package/resources/mail/v1/inboxes.d.mts +63 -0
  44. package/resources/mail/v1/inboxes.d.mts.map +1 -0
  45. package/resources/mail/v1/inboxes.d.ts +63 -0
  46. package/resources/mail/v1/inboxes.d.ts.map +1 -0
  47. package/resources/mail/v1/inboxes.js +97 -0
  48. package/resources/mail/v1/inboxes.js.map +1 -0
  49. package/resources/mail/v1/inboxes.mjs +93 -0
  50. package/resources/mail/v1/inboxes.mjs.map +1 -0
  51. package/resources/mail/v1/index.d.mts +3 -0
  52. package/resources/mail/v1/index.d.mts.map +1 -0
  53. package/resources/mail/v1/index.d.ts +3 -0
  54. package/resources/mail/v1/index.d.ts.map +1 -0
  55. package/resources/mail/v1/index.js +9 -0
  56. package/resources/mail/v1/index.js.map +1 -0
  57. package/resources/mail/v1/index.mjs +4 -0
  58. package/resources/mail/v1/index.mjs.map +1 -0
  59. package/resources/mail/v1/v1.d.mts +10 -0
  60. package/resources/mail/v1/v1.d.mts.map +1 -0
  61. package/resources/mail/v1/v1.d.ts +10 -0
  62. package/resources/mail/v1/v1.d.ts.map +1 -0
  63. package/resources/mail/v1/v1.js +17 -0
  64. package/resources/mail/v1/v1.js.map +1 -0
  65. package/resources/mail/v1/v1.mjs +12 -0
  66. package/resources/mail/v1/v1.mjs.map +1 -0
  67. package/resources/mail/v1.d.mts +2 -0
  68. package/resources/mail/v1.d.mts.map +1 -0
  69. package/resources/mail/v1.d.ts +2 -0
  70. package/resources/mail/v1.d.ts.map +1 -0
  71. package/resources/mail/v1.js +6 -0
  72. package/resources/mail/v1.js.map +1 -0
  73. package/resources/mail/v1.mjs +3 -0
  74. package/resources/mail/v1.mjs.map +1 -0
  75. package/resources/mail.d.mts +2 -0
  76. package/resources/mail.d.mts.map +1 -0
  77. package/resources/mail.d.ts +2 -0
  78. package/resources/mail.d.ts.map +1 -0
  79. package/resources/mail.js +6 -0
  80. package/resources/mail.js.map +1 -0
  81. package/resources/mail.mjs +3 -0
  82. package/resources/mail.mjs.map +1 -0
  83. package/resources/operator/index.d.mts +3 -0
  84. package/resources/operator/index.d.mts.map +1 -0
  85. package/resources/operator/index.d.ts +3 -0
  86. package/resources/operator/index.d.ts.map +1 -0
  87. package/resources/operator/index.js +9 -0
  88. package/resources/operator/index.js.map +1 -0
  89. package/resources/operator/index.mjs +4 -0
  90. package/resources/operator/index.mjs.map +1 -0
  91. package/resources/operator/operator.d.mts +10 -0
  92. package/resources/operator/operator.d.mts.map +1 -0
  93. package/resources/operator/operator.d.ts +10 -0
  94. package/resources/operator/operator.d.ts.map +1 -0
  95. package/resources/operator/operator.js +17 -0
  96. package/resources/operator/operator.js.map +1 -0
  97. package/resources/operator/operator.mjs +12 -0
  98. package/resources/operator/operator.mjs.map +1 -0
  99. package/resources/operator/v1.d.mts +39 -0
  100. package/resources/operator/v1.d.mts.map +1 -0
  101. package/resources/operator/v1.d.ts +39 -0
  102. package/resources/operator/v1.d.ts.map +1 -0
  103. package/resources/operator/v1.js +47 -0
  104. package/resources/operator/v1.js.map +1 -0
  105. package/resources/operator/v1.mjs +43 -0
  106. package/resources/operator/v1.mjs.map +1 -0
  107. package/resources/operator.d.mts +2 -0
  108. package/resources/operator.d.mts.map +1 -0
  109. package/resources/operator.d.ts +2 -0
  110. package/resources/operator.d.ts.map +1 -0
  111. package/resources/operator.js +6 -0
  112. package/resources/operator.js.map +1 -0
  113. package/resources/operator.mjs +3 -0
  114. package/resources/operator.mjs.map +1 -0
  115. package/resources/skills/custom.d.mts +48 -0
  116. package/resources/skills/custom.d.mts.map +1 -0
  117. package/resources/skills/custom.d.ts +48 -0
  118. package/resources/skills/custom.d.ts.map +1 -0
  119. package/resources/skills/custom.js +19 -0
  120. package/resources/skills/custom.js.map +1 -0
  121. package/resources/skills/custom.mjs +15 -0
  122. package/resources/skills/custom.mjs.map +1 -0
  123. package/resources/skills/index.d.mts +3 -0
  124. package/resources/skills/index.d.mts.map +1 -0
  125. package/resources/skills/index.d.ts +3 -0
  126. package/resources/skills/index.d.ts.map +1 -0
  127. package/resources/skills/index.js +9 -0
  128. package/resources/skills/index.js.map +1 -0
  129. package/resources/skills/index.mjs +4 -0
  130. package/resources/skills/index.mjs.map +1 -0
  131. package/resources/skills/skills.d.mts +189 -0
  132. package/resources/skills/skills.d.mts.map +1 -0
  133. package/resources/skills/skills.d.ts +189 -0
  134. package/resources/skills/skills.d.ts.map +1 -0
  135. package/resources/skills/skills.js +56 -0
  136. package/resources/skills/skills.js.map +1 -0
  137. package/resources/skills/skills.mjs +51 -0
  138. package/resources/skills/skills.mjs.map +1 -0
  139. package/resources/skills.d.mts +1 -96
  140. package/resources/skills.d.mts.map +1 -1
  141. package/resources/skills.d.ts +1 -96
  142. package/resources/skills.d.ts.map +1 -1
  143. package/resources/skills.js +2 -23
  144. package/resources/skills.js.map +1 -1
  145. package/resources/skills.mjs +1 -21
  146. package/resources/skills.mjs.map +1 -1
  147. package/src/client.ts +26 -1
  148. package/src/resources/agent/v1/chat/files.ts +2 -2
  149. package/src/resources/index.ts +13 -1
  150. package/src/resources/mail/index.ts +4 -0
  151. package/src/resources/mail/mail.ts +15 -0
  152. package/src/resources/mail/v1/inboxes.ts +140 -0
  153. package/src/resources/mail/v1/index.ts +10 -0
  154. package/src/resources/mail/v1/v1.ts +27 -0
  155. package/src/resources/mail/v1.ts +3 -0
  156. package/src/resources/mail.ts +3 -0
  157. package/src/resources/operator/index.ts +4 -0
  158. package/src/resources/operator/operator.ts +15 -0
  159. package/src/resources/operator/v1.ts +70 -0
  160. package/src/resources/operator.ts +3 -0
  161. package/src/resources/skills/custom.ts +70 -0
  162. package/src/resources/skills/index.ts +14 -0
  163. package/src/resources/skills/skills.ts +274 -0
  164. package/src/resources/skills.ts +1 -125
  165. package/src/version.ts +1 -1
  166. package/version.d.mts +1 -1
  167. package/version.d.ts +1 -1
  168. package/version.js +1 -1
  169. package/version.mjs +1 -1
@@ -0,0 +1,274 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as CustomAPI from './custom';
5
+ import { Custom, CustomListParams, CustomListResponse } from './custom';
6
+ import { APIPromise } from '../../core/api-promise';
7
+ import { RequestOptions } from '../../internal/request-options';
8
+ import { path } from '../../internal/utils/path';
9
+
10
+ /**
11
+ * Search and read legal AI skills for agents
12
+ */
13
+ export class Skills extends APIResource {
14
+ custom: CustomAPI.Custom = new CustomAPI.Custom(this._client);
15
+
16
+ /**
17
+ * Create an org-scoped custom skill. The skill will be searchable via
18
+ * /skills/resolve alongside curated skills.
19
+ */
20
+ create(body: SkillCreateParams, options?: RequestOptions): APIPromise<SkillCreateResponse> {
21
+ return this._client.post('/skills', { body, ...options });
22
+ }
23
+
24
+ /**
25
+ * Update an org-scoped custom skill by slug. Only provided fields are updated.
26
+ * Version is auto-incremented.
27
+ */
28
+ update(slug: string, body: SkillUpdateParams, options?: RequestOptions): APIPromise<SkillUpdateResponse> {
29
+ return this._client.put(path`/skills/${slug}`, { body, ...options });
30
+ }
31
+
32
+ /**
33
+ * Soft-delete an org-scoped custom skill by slug. The skill will no longer appear
34
+ * in search results.
35
+ */
36
+ delete(slug: string, options?: RequestOptions): APIPromise<SkillDeleteResponse> {
37
+ return this._client.delete(path`/skills/${slug}`, options);
38
+ }
39
+
40
+ /**
41
+ * Read the full content of a legal skill by its slug. Returns markdown content,
42
+ * tags, and metadata.
43
+ */
44
+ read(slug: string, options?: RequestOptions): APIPromise<SkillReadResponse> {
45
+ return this._client.get(path`/skills/${slug}`, options);
46
+ }
47
+
48
+ /**
49
+ * Search the Legal Skills Store using hybrid search (text + tag + semantic).
50
+ * Returns ranked results with relevance scores.
51
+ */
52
+ resolve(query: SkillResolveParams, options?: RequestOptions): APIPromise<SkillResolveResponse> {
53
+ return this._client.get('/skills/resolve', { query, ...options });
54
+ }
55
+ }
56
+
57
+ export interface SkillCreateResponse {
58
+ content?: string;
59
+
60
+ created_at?: string;
61
+
62
+ metadata?: unknown;
63
+
64
+ name?: string;
65
+
66
+ slug?: string;
67
+
68
+ summary?: string | null;
69
+
70
+ tags?: Array<string>;
71
+
72
+ version?: number;
73
+ }
74
+
75
+ export interface SkillUpdateResponse {
76
+ content?: string;
77
+
78
+ metadata?: unknown;
79
+
80
+ name?: string;
81
+
82
+ slug?: string;
83
+
84
+ summary?: string | null;
85
+
86
+ tags?: Array<string>;
87
+
88
+ updated_at?: string;
89
+
90
+ version?: number;
91
+ }
92
+
93
+ export interface SkillDeleteResponse {
94
+ deleted?: boolean;
95
+
96
+ slug?: string;
97
+ }
98
+
99
+ export interface SkillReadResponse {
100
+ /**
101
+ * Skill author
102
+ */
103
+ author_name?: string;
104
+
105
+ /**
106
+ * Full skill content in markdown
107
+ */
108
+ content?: string;
109
+
110
+ /**
111
+ * Skill license
112
+ */
113
+ license?: string;
114
+
115
+ /**
116
+ * Custom metadata (custom skills only)
117
+ */
118
+ metadata?: unknown;
119
+
120
+ /**
121
+ * Skill name
122
+ */
123
+ name?: string;
124
+
125
+ /**
126
+ * Unique skill identifier
127
+ */
128
+ slug?: string;
129
+
130
+ /**
131
+ * Skill source (authenticated requests only)
132
+ */
133
+ source?: 'curated' | 'custom';
134
+
135
+ /**
136
+ * Brief skill description
137
+ */
138
+ summary?: string;
139
+
140
+ /**
141
+ * Skill tags
142
+ */
143
+ tags?: Array<string>;
144
+
145
+ /**
146
+ * Skill version
147
+ */
148
+ version?: string;
149
+ }
150
+
151
+ export interface SkillResolveResponse {
152
+ /**
153
+ * Search methods used (text, tag, semantic)
154
+ */
155
+ methods_used?: Array<string>;
156
+
157
+ results?: Array<SkillResolveResponse.Result>;
158
+ }
159
+
160
+ export namespace SkillResolveResponse {
161
+ export interface Result {
162
+ /**
163
+ * Skill name
164
+ */
165
+ name?: string;
166
+
167
+ /**
168
+ * Relevance score
169
+ */
170
+ score?: number;
171
+
172
+ /**
173
+ * Unique skill identifier
174
+ */
175
+ slug?: string;
176
+
177
+ /**
178
+ * Whether the skill is curated or org-custom
179
+ */
180
+ source?: 'curated' | 'custom';
181
+
182
+ /**
183
+ * Brief skill description
184
+ */
185
+ summary?: string;
186
+
187
+ /**
188
+ * Skill tags
189
+ */
190
+ tags?: Array<string>;
191
+ }
192
+ }
193
+
194
+ export interface SkillCreateParams {
195
+ /**
196
+ * Full skill content in markdown
197
+ */
198
+ content: string;
199
+
200
+ /**
201
+ * Skill name
202
+ */
203
+ name: string;
204
+
205
+ /**
206
+ * Arbitrary metadata (author, license, etc.)
207
+ */
208
+ metadata?: unknown;
209
+
210
+ /**
211
+ * URL-safe slug. Auto-generated from name if omitted.
212
+ */
213
+ slug?: string;
214
+
215
+ /**
216
+ * Brief description (1-2 sentences)
217
+ */
218
+ summary?: string;
219
+
220
+ /**
221
+ * Tags for categorization and search boosting
222
+ */
223
+ tags?: Array<string>;
224
+ }
225
+
226
+ export interface SkillUpdateParams {
227
+ content?: string;
228
+
229
+ metadata?: unknown;
230
+
231
+ name?: string;
232
+
233
+ /**
234
+ * New slug (renames the skill)
235
+ */
236
+ slug?: string;
237
+
238
+ summary?: string | null;
239
+
240
+ tags?: Array<string>;
241
+ }
242
+
243
+ export interface SkillResolveParams {
244
+ /**
245
+ * Search query string
246
+ */
247
+ q: string;
248
+
249
+ /**
250
+ * Maximum number of results to return (1-20)
251
+ */
252
+ limit?: number;
253
+ }
254
+
255
+ Skills.Custom = Custom;
256
+
257
+ export declare namespace Skills {
258
+ export {
259
+ type SkillCreateResponse as SkillCreateResponse,
260
+ type SkillUpdateResponse as SkillUpdateResponse,
261
+ type SkillDeleteResponse as SkillDeleteResponse,
262
+ type SkillReadResponse as SkillReadResponse,
263
+ type SkillResolveResponse as SkillResolveResponse,
264
+ type SkillCreateParams as SkillCreateParams,
265
+ type SkillUpdateParams as SkillUpdateParams,
266
+ type SkillResolveParams as SkillResolveParams,
267
+ };
268
+
269
+ export {
270
+ Custom as Custom,
271
+ type CustomListResponse as CustomListResponse,
272
+ type CustomListParams as CustomListParams,
273
+ };
274
+ }
@@ -1,127 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../core/resource';
4
- import { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
- import { path } from '../internal/utils/path';
7
-
8
- /**
9
- * Search and read legal AI skills for agents
10
- */
11
- export class Skills extends APIResource {
12
- /**
13
- * Read the full content of a legal skill by its slug. Returns markdown content,
14
- * tags, and metadata.
15
- */
16
- read(slug: string, options?: RequestOptions): APIPromise<SkillReadResponse> {
17
- return this._client.get(path`/skills/${slug}`, options);
18
- }
19
-
20
- /**
21
- * Search the Legal Skills Store using hybrid search (text + tag + semantic).
22
- * Returns ranked results with relevance scores.
23
- */
24
- resolve(query: SkillResolveParams, options?: RequestOptions): APIPromise<SkillResolveResponse> {
25
- return this._client.get('/skills/resolve', { query, ...options });
26
- }
27
- }
28
-
29
- export interface SkillReadResponse {
30
- /**
31
- * Skill author
32
- */
33
- author_name?: string;
34
-
35
- /**
36
- * Full skill content in markdown
37
- */
38
- content?: string;
39
-
40
- /**
41
- * Skill license
42
- */
43
- license?: string;
44
-
45
- /**
46
- * Skill name
47
- */
48
- name?: string;
49
-
50
- /**
51
- * Unique skill identifier
52
- */
53
- slug?: string;
54
-
55
- /**
56
- * Brief skill description
57
- */
58
- summary?: string;
59
-
60
- /**
61
- * Skill tags
62
- */
63
- tags?: Array<string>;
64
-
65
- /**
66
- * Skill version
67
- */
68
- version?: string;
69
- }
70
-
71
- export interface SkillResolveResponse {
72
- /**
73
- * Search methods used (text, tag, semantic)
74
- */
75
- methods_used?: Array<string>;
76
-
77
- results?: Array<SkillResolveResponse.Result>;
78
- }
79
-
80
- export namespace SkillResolveResponse {
81
- export interface Result {
82
- /**
83
- * Skill name
84
- */
85
- name?: string;
86
-
87
- /**
88
- * Relevance score
89
- */
90
- score?: number;
91
-
92
- /**
93
- * Unique skill identifier
94
- */
95
- slug?: string;
96
-
97
- /**
98
- * Brief skill description
99
- */
100
- summary?: string;
101
-
102
- /**
103
- * Skill tags
104
- */
105
- tags?: Array<string>;
106
- }
107
- }
108
-
109
- export interface SkillResolveParams {
110
- /**
111
- * Search query string
112
- */
113
- q: string;
114
-
115
- /**
116
- * Maximum number of results to return (1-20)
117
- */
118
- limit?: number;
119
- }
120
-
121
- export declare namespace Skills {
122
- export {
123
- type SkillReadResponse as SkillReadResponse,
124
- type SkillResolveResponse as SkillResolveResponse,
125
- type SkillResolveParams as SkillResolveParams,
126
- };
127
- }
3
+ export * from './skills/index';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.26.0'; // x-release-please-version
1
+ export const VERSION = '0.28.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.26.0";
1
+ export declare const VERSION = "0.28.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.26.0";
1
+ export declare const VERSION = "0.28.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.26.0'; // x-release-please-version
4
+ exports.VERSION = '0.28.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.26.0'; // x-release-please-version
1
+ export const VERSION = '0.28.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map