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
@@ -1,97 +1,2 @@
1
- import { APIResource } from "../core/resource.js";
2
- import { APIPromise } from "../core/api-promise.js";
3
- import { RequestOptions } from "../internal/request-options.js";
4
- /**
5
- * Search and read legal AI skills for agents
6
- */
7
- export declare class Skills extends APIResource {
8
- /**
9
- * Read the full content of a legal skill by its slug. Returns markdown content,
10
- * tags, and metadata.
11
- */
12
- read(slug: string, options?: RequestOptions): APIPromise<SkillReadResponse>;
13
- /**
14
- * Search the Legal Skills Store using hybrid search (text + tag + semantic).
15
- * Returns ranked results with relevance scores.
16
- */
17
- resolve(query: SkillResolveParams, options?: RequestOptions): APIPromise<SkillResolveResponse>;
18
- }
19
- export interface SkillReadResponse {
20
- /**
21
- * Skill author
22
- */
23
- author_name?: string;
24
- /**
25
- * Full skill content in markdown
26
- */
27
- content?: string;
28
- /**
29
- * Skill license
30
- */
31
- license?: string;
32
- /**
33
- * Skill name
34
- */
35
- name?: string;
36
- /**
37
- * Unique skill identifier
38
- */
39
- slug?: string;
40
- /**
41
- * Brief skill description
42
- */
43
- summary?: string;
44
- /**
45
- * Skill tags
46
- */
47
- tags?: Array<string>;
48
- /**
49
- * Skill version
50
- */
51
- version?: string;
52
- }
53
- export interface SkillResolveResponse {
54
- /**
55
- * Search methods used (text, tag, semantic)
56
- */
57
- methods_used?: Array<string>;
58
- results?: Array<SkillResolveResponse.Result>;
59
- }
60
- export declare namespace SkillResolveResponse {
61
- interface Result {
62
- /**
63
- * Skill name
64
- */
65
- name?: string;
66
- /**
67
- * Relevance score
68
- */
69
- score?: number;
70
- /**
71
- * Unique skill identifier
72
- */
73
- slug?: string;
74
- /**
75
- * Brief skill description
76
- */
77
- summary?: string;
78
- /**
79
- * Skill tags
80
- */
81
- tags?: Array<string>;
82
- }
83
- }
84
- export interface SkillResolveParams {
85
- /**
86
- * Search query string
87
- */
88
- q: string;
89
- /**
90
- * Maximum number of results to return (1-20)
91
- */
92
- limit?: number;
93
- }
94
- export declare namespace Skills {
95
- export { type SkillReadResponse as SkillReadResponse, type SkillResolveResponse as SkillResolveResponse, type SkillResolveParams as SkillResolveParams, };
96
- }
1
+ export * from "./skills/index.js";
97
2
  //# sourceMappingURL=skills.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../src/resources/skills.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAI3E;;;OAGG;IACH,OAAO,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG/F;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE7B,OAAO,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;CAC9C;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,MAAM;QACrB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACtB;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
1
+ {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../src/resources/skills.ts"],"names":[],"mappings":""}
@@ -1,27 +1,6 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Skills = void 0;
5
- const resource_1 = require("../core/resource.js");
6
- const path_1 = require("../internal/utils/path.js");
7
- /**
8
- * Search and read legal AI skills for agents
9
- */
10
- class Skills extends resource_1.APIResource {
11
- /**
12
- * Read the full content of a legal skill by its slug. Returns markdown content,
13
- * tags, and metadata.
14
- */
15
- read(slug, options) {
16
- return this._client.get((0, path_1.path) `/skills/${slug}`, options);
17
- }
18
- /**
19
- * Search the Legal Skills Store using hybrid search (text + tag + semantic).
20
- * Returns ranked results with relevance scores.
21
- */
22
- resolve(query, options) {
23
- return this._client.get('/skills/resolve', { query, ...options });
24
- }
25
- }
26
- exports.Skills = Skills;
4
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./skills/index.js"), exports);
27
6
  //# sourceMappingURL=skills.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"skills.js","sourceRoot":"","sources":["../src/resources/skills.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;OAGG;IACH,IAAI,CAAC,IAAY,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,KAAyB,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;CACF;AAhBD,wBAgBC"}
1
+ {"version":3,"file":"skills.js","sourceRoot":"","sources":["../src/resources/skills.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
@@ -1,23 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../core/resource.mjs";
3
- import { path } from "../internal/utils/path.mjs";
4
- /**
5
- * Search and read legal AI skills for agents
6
- */
7
- export class Skills extends APIResource {
8
- /**
9
- * Read the full content of a legal skill by its slug. Returns markdown content,
10
- * tags, and metadata.
11
- */
12
- read(slug, options) {
13
- return this._client.get(path `/skills/${slug}`, options);
14
- }
15
- /**
16
- * Search the Legal Skills Store using hybrid search (text + tag + semantic).
17
- * Returns ranked results with relevance scores.
18
- */
19
- resolve(query, options) {
20
- return this._client.get('/skills/resolve', { query, ...options });
21
- }
22
- }
2
+ export * from "./skills/index.mjs";
23
3
  //# sourceMappingURL=skills.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"skills.mjs","sourceRoot":"","sources":["../src/resources/skills.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,IAAI,CAAC,IAAY,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,KAAyB,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;CACF"}
1
+ {"version":3,"file":"skills.mjs","sourceRoot":"","sources":["../src/resources/skills.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
package/src/client.ts CHANGED
@@ -17,7 +17,6 @@ import * as Errors from './core/error';
17
17
  import * as Uploads from './core/uploads';
18
18
  import * as API from './resources/index';
19
19
  import { APIPromise } from './core/api-promise';
20
- import { SkillReadResponse, SkillResolveParams, SkillResolveResponse, Skills } from './resources/skills';
21
20
  import { System, SystemListServicesResponse } from './resources/system';
22
21
  import { Agent } from './resources/agent/agent';
23
22
  import { Applications } from './resources/applications/applications';
@@ -26,10 +25,23 @@ import { Database } from './resources/database/database';
26
25
  import { Format } from './resources/format/format';
27
26
  import { Legal } from './resources/legal/legal';
28
27
  import { Llm, LlmGetConfigResponse } from './resources/llm/llm';
28
+ import { Mail } from './resources/mail/mail';
29
29
  import { Memory } from './resources/memory/memory';
30
30
  import { Ocr } from './resources/ocr/ocr';
31
+ import { Operator } from './resources/operator/operator';
31
32
  import { Privilege } from './resources/privilege/privilege';
32
33
  import { Search } from './resources/search/search';
34
+ import {
35
+ SkillCreateParams,
36
+ SkillCreateResponse,
37
+ SkillDeleteResponse,
38
+ SkillReadResponse,
39
+ SkillResolveParams,
40
+ SkillResolveResponse,
41
+ SkillUpdateParams,
42
+ SkillUpdateResponse,
43
+ Skills,
44
+ } from './resources/skills/skills';
33
45
  import { Superdoc } from './resources/superdoc/superdoc';
34
46
  import { Translate } from './resources/translate/translate';
35
47
  import {
@@ -793,6 +805,8 @@ export class Casedev {
793
805
  memory: API.Memory = new API.Memory(this);
794
806
  ocr: API.Ocr = new API.Ocr(this);
795
807
  privilege: API.Privilege = new API.Privilege(this);
808
+ mail: API.Mail = new API.Mail(this);
809
+ operator: API.Operator = new API.Operator(this);
796
810
  /**
797
811
  * Search and read legal AI skills for agents
798
812
  */
@@ -818,6 +832,8 @@ Casedev.Llm = Llm;
818
832
  Casedev.Memory = Memory;
819
833
  Casedev.Ocr = Ocr;
820
834
  Casedev.Privilege = Privilege;
835
+ Casedev.Mail = Mail;
836
+ Casedev.Operator = Operator;
821
837
  Casedev.Skills = Skills;
822
838
  Casedev.Search = Search;
823
839
  Casedev.Superdoc = Superdoc;
@@ -850,10 +866,19 @@ export declare namespace Casedev {
850
866
 
851
867
  export { Privilege as Privilege };
852
868
 
869
+ export { Mail as Mail };
870
+
871
+ export { Operator as Operator };
872
+
853
873
  export {
854
874
  Skills as Skills,
875
+ type SkillCreateResponse as SkillCreateResponse,
876
+ type SkillUpdateResponse as SkillUpdateResponse,
877
+ type SkillDeleteResponse as SkillDeleteResponse,
855
878
  type SkillReadResponse as SkillReadResponse,
856
879
  type SkillResolveResponse as SkillResolveResponse,
880
+ type SkillCreateParams as SkillCreateParams,
881
+ type SkillUpdateParams as SkillUpdateParams,
857
882
  type SkillResolveParams as SkillResolveParams,
858
883
  };
859
884
 
@@ -22,9 +22,9 @@ export class Files extends APIResource {
22
22
  * Downloads a file from the sandbox workspace by path. Only available while the
23
23
  * sandbox is running.
24
24
  */
25
- download(path_: string, params: FileDownloadParams, options?: RequestOptions): APIPromise<Response> {
25
+ download(filePath: string, params: FileDownloadParams, options?: RequestOptions): APIPromise<Response> {
26
26
  const { id } = params;
27
- return this._client.get(path`/agent/v1/chat/${id}/files/${path_}`, {
27
+ return this._client.get(path`/agent/v1/chat/${id}/files/${filePath}`, {
28
28
  ...options,
29
29
  headers: buildHeaders([{ Accept: 'application/octet-stream' }, options?.headers]),
30
30
  __binaryResponse: true,
@@ -7,11 +7,23 @@ export { Database } from './database/database';
7
7
  export { Format } from './format/format';
8
8
  export { Legal } from './legal/legal';
9
9
  export { Llm, type LlmGetConfigResponse } from './llm/llm';
10
+ export { Mail } from './mail/mail';
10
11
  export { Memory } from './memory/memory';
11
12
  export { Ocr } from './ocr/ocr';
13
+ export { Operator } from './operator/operator';
12
14
  export { Privilege } from './privilege/privilege';
13
15
  export { Search } from './search/search';
14
- export { Skills, type SkillReadResponse, type SkillResolveResponse, type SkillResolveParams } from './skills';
16
+ export {
17
+ Skills,
18
+ type SkillCreateResponse,
19
+ type SkillUpdateResponse,
20
+ type SkillDeleteResponse,
21
+ type SkillReadResponse,
22
+ type SkillResolveResponse,
23
+ type SkillCreateParams,
24
+ type SkillUpdateParams,
25
+ type SkillResolveParams,
26
+ } from './skills/skills';
15
27
  export { Superdoc } from './superdoc/superdoc';
16
28
  export { System, type SystemListServicesResponse } from './system';
17
29
  export { Translate } from './translate/translate';
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export { Mail } from './mail';
4
+ export { V1 } from './v1/index';
@@ -0,0 +1,15 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as V1API from './v1/v1';
5
+ import { V1 } from './v1/v1';
6
+
7
+ export class Mail extends APIResource {
8
+ v1: V1API.V1 = new V1API.V1(this._client);
9
+ }
10
+
11
+ Mail.V1 = V1;
12
+
13
+ export declare namespace Mail {
14
+ export { V1 as V1 };
15
+ }
@@ -0,0 +1,140 @@
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 { buildHeaders } from '../../../internal/headers';
6
+ import { RequestOptions } from '../../../internal/request-options';
7
+ import { path } from '../../../internal/utils/path';
8
+
9
+ /**
10
+ * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
11
+ */
12
+ export class Inboxes extends APIResource {
13
+ /**
14
+ * Create an inbox owned by the authenticated organization.
15
+ */
16
+ create(body: InboxCreateParams | null | undefined = {}, options?: RequestOptions): APIPromise<void> {
17
+ return this._client.post('/mail/v1/inboxes', {
18
+ body,
19
+ ...options,
20
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
21
+ });
22
+ }
23
+
24
+ /**
25
+ * Get an inbox owned by the authenticated organization.
26
+ */
27
+ retrieve(inboxID: string, options?: RequestOptions): APIPromise<void> {
28
+ return this._client.get(path`/mail/v1/inboxes/${inboxID}`, {
29
+ ...options,
30
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
31
+ });
32
+ }
33
+
34
+ /**
35
+ * List inboxes owned by the authenticated organization.
36
+ */
37
+ list(options?: RequestOptions): APIPromise<void> {
38
+ return this._client.get('/mail/v1/inboxes', {
39
+ ...options,
40
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
41
+ });
42
+ }
43
+
44
+ /**
45
+ * Delete an inbox owned by the authenticated organization.
46
+ */
47
+ delete(inboxID: string, options?: RequestOptions): APIPromise<void> {
48
+ return this._client.delete(path`/mail/v1/inboxes/${inboxID}`, {
49
+ ...options,
50
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
51
+ });
52
+ }
53
+
54
+ /**
55
+ * Get attachment metadata for a message in an inbox owned by the authenticated
56
+ * organization.
57
+ */
58
+ getAttachment(
59
+ attachmentID: string,
60
+ params: InboxGetAttachmentParams,
61
+ options?: RequestOptions,
62
+ ): APIPromise<void> {
63
+ const { inboxId, messageId } = params;
64
+ return this._client.get(
65
+ path`/mail/v1/inboxes/${inboxId}/messages/${messageId}/attachments/${attachmentID}`,
66
+ { ...options, headers: buildHeaders([{ Accept: '*/*' }, options?.headers]) },
67
+ );
68
+ }
69
+
70
+ /**
71
+ * Get a message for an inbox owned by the authenticated organization.
72
+ */
73
+ getMessage(messageID: string, params: InboxGetMessageParams, options?: RequestOptions): APIPromise<void> {
74
+ const { inboxId } = params;
75
+ return this._client.get(path`/mail/v1/inboxes/${inboxId}/messages/${messageID}`, {
76
+ ...options,
77
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
78
+ });
79
+ }
80
+
81
+ /**
82
+ * List messages for an inbox owned by the authenticated organization.
83
+ */
84
+ listMessages(inboxID: string, options?: RequestOptions): APIPromise<void> {
85
+ return this._client.get(path`/mail/v1/inboxes/${inboxID}/messages`, {
86
+ ...options,
87
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
88
+ });
89
+ }
90
+
91
+ /**
92
+ * Reply to a message in an inbox owned by the authenticated organization.
93
+ */
94
+ reply(messageID: string, params: InboxReplyParams, options?: RequestOptions): APIPromise<void> {
95
+ const { inboxId } = params;
96
+ return this._client.post(path`/mail/v1/inboxes/${inboxId}/messages/${messageID}/reply`, {
97
+ ...options,
98
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
99
+ });
100
+ }
101
+
102
+ /**
103
+ * Send a message from an inbox owned by the authenticated organization.
104
+ */
105
+ send(inboxID: string, options?: RequestOptions): APIPromise<void> {
106
+ return this._client.post(path`/mail/v1/inboxes/${inboxID}/messages/send`, {
107
+ ...options,
108
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
109
+ });
110
+ }
111
+ }
112
+
113
+ export interface InboxCreateParams {
114
+ address?: string;
115
+
116
+ displayName?: string;
117
+ }
118
+
119
+ export interface InboxGetAttachmentParams {
120
+ inboxId: string;
121
+
122
+ messageId: string;
123
+ }
124
+
125
+ export interface InboxGetMessageParams {
126
+ inboxId: string;
127
+ }
128
+
129
+ export interface InboxReplyParams {
130
+ inboxId: string;
131
+ }
132
+
133
+ export declare namespace Inboxes {
134
+ export {
135
+ type InboxCreateParams as InboxCreateParams,
136
+ type InboxGetAttachmentParams as InboxGetAttachmentParams,
137
+ type InboxGetMessageParams as InboxGetMessageParams,
138
+ type InboxReplyParams as InboxReplyParams,
139
+ };
140
+ }
@@ -0,0 +1,10 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ Inboxes,
5
+ type InboxCreateParams,
6
+ type InboxGetAttachmentParams,
7
+ type InboxGetMessageParams,
8
+ type InboxReplyParams,
9
+ } from './inboxes';
10
+ export { V1 } from './v1';
@@ -0,0 +1,27 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import * as InboxesAPI from './inboxes';
5
+ import {
6
+ InboxCreateParams,
7
+ InboxGetAttachmentParams,
8
+ InboxGetMessageParams,
9
+ InboxReplyParams,
10
+ Inboxes,
11
+ } from './inboxes';
12
+
13
+ export class V1 extends APIResource {
14
+ inboxes: InboxesAPI.Inboxes = new InboxesAPI.Inboxes(this._client);
15
+ }
16
+
17
+ V1.Inboxes = Inboxes;
18
+
19
+ export declare namespace V1 {
20
+ export {
21
+ Inboxes as Inboxes,
22
+ type InboxCreateParams as InboxCreateParams,
23
+ type InboxGetAttachmentParams as InboxGetAttachmentParams,
24
+ type InboxGetMessageParams as InboxGetMessageParams,
25
+ type InboxReplyParams as InboxReplyParams,
26
+ };
27
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './v1/index';
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './mail/index';
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export { Operator } from './operator';
4
+ export { V1, type V1CreateParams } from './v1';
@@ -0,0 +1,15 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as V1API from './v1';
5
+ import { V1, V1CreateParams } from './v1';
6
+
7
+ export class Operator extends APIResource {
8
+ v1: V1API.V1 = new V1API.V1(this._client);
9
+ }
10
+
11
+ Operator.V1 = V1;
12
+
13
+ export declare namespace Operator {
14
+ export { V1 as V1, type V1CreateParams as V1CreateParams };
15
+ }
@@ -0,0 +1,70 @@
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 { buildHeaders } from '../../internal/headers';
6
+ import { RequestOptions } from '../../internal/request-options';
7
+
8
+ export class V1 extends APIResource {
9
+ /**
10
+ * Provision a new operator instance for the organization.
11
+ */
12
+ create(body: V1CreateParams, options?: RequestOptions): APIPromise<void> {
13
+ return this._client.post('/operator/v1/create', {
14
+ body,
15
+ ...options,
16
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
17
+ });
18
+ }
19
+
20
+ /**
21
+ * Proxy a chat completion request to the organization's operator instance.
22
+ */
23
+ createChatCompletion(options?: RequestOptions): APIPromise<void> {
24
+ return this._client.post('/operator/v1/chat/completions', {
25
+ ...options,
26
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
27
+ });
28
+ }
29
+
30
+ /**
31
+ * Proxy a response request to the organization's operator instance.
32
+ */
33
+ createResponse(options?: RequestOptions): APIPromise<void> {
34
+ return this._client.post('/operator/v1/responses', {
35
+ ...options,
36
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
37
+ });
38
+ }
39
+
40
+ /**
41
+ * Get the status of the organization's operator instance.
42
+ */
43
+ getStatus(options?: RequestOptions): APIPromise<void> {
44
+ return this._client.get('/operator/v1/status', {
45
+ ...options,
46
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
47
+ });
48
+ }
49
+ }
50
+
51
+ export interface V1CreateParams {
52
+ /**
53
+ * Operator name
54
+ */
55
+ name: string;
56
+
57
+ /**
58
+ * Model to use
59
+ */
60
+ model?: string;
61
+
62
+ /**
63
+ * Instance size
64
+ */
65
+ size?: 'small' | 'medium' | 'large';
66
+ }
67
+
68
+ export declare namespace V1 {
69
+ export { type V1CreateParams as V1CreateParams };
70
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './operator/index';
@@ -0,0 +1,70 @@
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
+ * Search and read legal AI skills for agents
9
+ */
10
+ export class Custom extends APIResource {
11
+ /**
12
+ * List all custom skills for the authenticated organization. Supports cursor-based
13
+ * pagination.
14
+ */
15
+ list(
16
+ query: CustomListParams | null | undefined = {},
17
+ options?: RequestOptions,
18
+ ): APIPromise<CustomListResponse> {
19
+ return this._client.get('/skills/custom', { query, ...options });
20
+ }
21
+ }
22
+
23
+ export interface CustomListResponse {
24
+ has_more?: boolean;
25
+
26
+ next_cursor?: string | null;
27
+
28
+ skills?: Array<CustomListResponse.Skill>;
29
+ }
30
+
31
+ export namespace CustomListResponse {
32
+ export interface Skill {
33
+ created_at?: string;
34
+
35
+ metadata?: unknown;
36
+
37
+ name?: string;
38
+
39
+ slug?: string;
40
+
41
+ summary?: string | null;
42
+
43
+ tags?: Array<string>;
44
+
45
+ updated_at?: string;
46
+
47
+ version?: number;
48
+ }
49
+ }
50
+
51
+ export interface CustomListParams {
52
+ /**
53
+ * Cursor for pagination (skill ID from previous page)
54
+ */
55
+ cursor?: string;
56
+
57
+ /**
58
+ * Maximum number of results (1-100)
59
+ */
60
+ limit?: number;
61
+
62
+ /**
63
+ * Filter by tag
64
+ */
65
+ tag?: string;
66
+ }
67
+
68
+ export declare namespace Custom {
69
+ export { type CustomListResponse as CustomListResponse, type CustomListParams as CustomListParams };
70
+ }
@@ -0,0 +1,14 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export { Custom, type CustomListResponse, type CustomListParams } from './custom';
4
+ export {
5
+ Skills,
6
+ type SkillCreateResponse,
7
+ type SkillUpdateResponse,
8
+ type SkillDeleteResponse,
9
+ type SkillReadResponse,
10
+ type SkillResolveResponse,
11
+ type SkillCreateParams,
12
+ type SkillUpdateParams,
13
+ type SkillResolveParams,
14
+ } from './skills';