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.
- package/CHANGELOG.md +16 -0
- package/client.d.mts +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js +7 -1
- package/client.js.map +1 -1
- package/client.mjs +7 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent/v1/chat/files.d.mts +1 -1
- package/resources/agent/v1/chat/files.d.mts.map +1 -1
- package/resources/agent/v1/chat/files.d.ts +1 -1
- package/resources/agent/v1/chat/files.d.ts.map +1 -1
- package/resources/agent/v1/chat/files.js +2 -2
- package/resources/agent/v1/chat/files.js.map +1 -1
- package/resources/agent/v1/chat/files.mjs +2 -2
- package/resources/agent/v1/chat/files.mjs.map +1 -1
- package/resources/index.d.mts +3 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +6 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mail/index.d.mts +3 -0
- package/resources/mail/index.d.mts.map +1 -0
- package/resources/mail/index.d.ts +3 -0
- package/resources/mail/index.d.ts.map +1 -0
- package/resources/mail/index.js +9 -0
- package/resources/mail/index.js.map +1 -0
- package/resources/mail/index.mjs +4 -0
- package/resources/mail/index.mjs.map +1 -0
- package/resources/mail/mail.d.mts +10 -0
- package/resources/mail/mail.d.mts.map +1 -0
- package/resources/mail/mail.d.ts +10 -0
- package/resources/mail/mail.d.ts.map +1 -0
- package/resources/mail/mail.js +17 -0
- package/resources/mail/mail.js.map +1 -0
- package/resources/mail/mail.mjs +12 -0
- package/resources/mail/mail.mjs.map +1 -0
- package/resources/mail/v1/inboxes.d.mts +63 -0
- package/resources/mail/v1/inboxes.d.mts.map +1 -0
- package/resources/mail/v1/inboxes.d.ts +63 -0
- package/resources/mail/v1/inboxes.d.ts.map +1 -0
- package/resources/mail/v1/inboxes.js +97 -0
- package/resources/mail/v1/inboxes.js.map +1 -0
- package/resources/mail/v1/inboxes.mjs +93 -0
- package/resources/mail/v1/inboxes.mjs.map +1 -0
- package/resources/mail/v1/index.d.mts +3 -0
- package/resources/mail/v1/index.d.mts.map +1 -0
- package/resources/mail/v1/index.d.ts +3 -0
- package/resources/mail/v1/index.d.ts.map +1 -0
- package/resources/mail/v1/index.js +9 -0
- package/resources/mail/v1/index.js.map +1 -0
- package/resources/mail/v1/index.mjs +4 -0
- package/resources/mail/v1/index.mjs.map +1 -0
- package/resources/mail/v1/v1.d.mts +10 -0
- package/resources/mail/v1/v1.d.mts.map +1 -0
- package/resources/mail/v1/v1.d.ts +10 -0
- package/resources/mail/v1/v1.d.ts.map +1 -0
- package/resources/mail/v1/v1.js +17 -0
- package/resources/mail/v1/v1.js.map +1 -0
- package/resources/mail/v1/v1.mjs +12 -0
- package/resources/mail/v1/v1.mjs.map +1 -0
- package/resources/mail/v1.d.mts +2 -0
- package/resources/mail/v1.d.mts.map +1 -0
- package/resources/mail/v1.d.ts +2 -0
- package/resources/mail/v1.d.ts.map +1 -0
- package/resources/mail/v1.js +6 -0
- package/resources/mail/v1.js.map +1 -0
- package/resources/mail/v1.mjs +3 -0
- package/resources/mail/v1.mjs.map +1 -0
- package/resources/mail.d.mts +2 -0
- package/resources/mail.d.mts.map +1 -0
- package/resources/mail.d.ts +2 -0
- package/resources/mail.d.ts.map +1 -0
- package/resources/mail.js +6 -0
- package/resources/mail.js.map +1 -0
- package/resources/mail.mjs +3 -0
- package/resources/mail.mjs.map +1 -0
- package/resources/operator/index.d.mts +3 -0
- package/resources/operator/index.d.mts.map +1 -0
- package/resources/operator/index.d.ts +3 -0
- package/resources/operator/index.d.ts.map +1 -0
- package/resources/operator/index.js +9 -0
- package/resources/operator/index.js.map +1 -0
- package/resources/operator/index.mjs +4 -0
- package/resources/operator/index.mjs.map +1 -0
- package/resources/operator/operator.d.mts +10 -0
- package/resources/operator/operator.d.mts.map +1 -0
- package/resources/operator/operator.d.ts +10 -0
- package/resources/operator/operator.d.ts.map +1 -0
- package/resources/operator/operator.js +17 -0
- package/resources/operator/operator.js.map +1 -0
- package/resources/operator/operator.mjs +12 -0
- package/resources/operator/operator.mjs.map +1 -0
- package/resources/operator/v1.d.mts +39 -0
- package/resources/operator/v1.d.mts.map +1 -0
- package/resources/operator/v1.d.ts +39 -0
- package/resources/operator/v1.d.ts.map +1 -0
- package/resources/operator/v1.js +47 -0
- package/resources/operator/v1.js.map +1 -0
- package/resources/operator/v1.mjs +43 -0
- package/resources/operator/v1.mjs.map +1 -0
- package/resources/operator.d.mts +2 -0
- package/resources/operator.d.mts.map +1 -0
- package/resources/operator.d.ts +2 -0
- package/resources/operator.d.ts.map +1 -0
- package/resources/operator.js +6 -0
- package/resources/operator.js.map +1 -0
- package/resources/operator.mjs +3 -0
- package/resources/operator.mjs.map +1 -0
- package/resources/skills/custom.d.mts +48 -0
- package/resources/skills/custom.d.mts.map +1 -0
- package/resources/skills/custom.d.ts +48 -0
- package/resources/skills/custom.d.ts.map +1 -0
- package/resources/skills/custom.js +19 -0
- package/resources/skills/custom.js.map +1 -0
- package/resources/skills/custom.mjs +15 -0
- package/resources/skills/custom.mjs.map +1 -0
- package/resources/skills/index.d.mts +3 -0
- package/resources/skills/index.d.mts.map +1 -0
- package/resources/skills/index.d.ts +3 -0
- package/resources/skills/index.d.ts.map +1 -0
- package/resources/skills/index.js +9 -0
- package/resources/skills/index.js.map +1 -0
- package/resources/skills/index.mjs +4 -0
- package/resources/skills/index.mjs.map +1 -0
- package/resources/skills/skills.d.mts +189 -0
- package/resources/skills/skills.d.mts.map +1 -0
- package/resources/skills/skills.d.ts +189 -0
- package/resources/skills/skills.d.ts.map +1 -0
- package/resources/skills/skills.js +56 -0
- package/resources/skills/skills.js.map +1 -0
- package/resources/skills/skills.mjs +51 -0
- package/resources/skills/skills.mjs.map +1 -0
- package/resources/skills.d.mts +1 -96
- package/resources/skills.d.mts.map +1 -1
- package/resources/skills.d.ts +1 -96
- package/resources/skills.d.ts.map +1 -1
- package/resources/skills.js +2 -23
- package/resources/skills.js.map +1 -1
- package/resources/skills.mjs +1 -21
- package/resources/skills.mjs.map +1 -1
- package/src/client.ts +26 -1
- package/src/resources/agent/v1/chat/files.ts +2 -2
- package/src/resources/index.ts +13 -1
- package/src/resources/mail/index.ts +4 -0
- package/src/resources/mail/mail.ts +15 -0
- package/src/resources/mail/v1/inboxes.ts +140 -0
- package/src/resources/mail/v1/index.ts +10 -0
- package/src/resources/mail/v1/v1.ts +27 -0
- package/src/resources/mail/v1.ts +3 -0
- package/src/resources/mail.ts +3 -0
- package/src/resources/operator/index.ts +4 -0
- package/src/resources/operator/operator.ts +15 -0
- package/src/resources/operator/v1.ts +70 -0
- package/src/resources/operator.ts +3 -0
- package/src/resources/skills/custom.ts +70 -0
- package/src/resources/skills/index.ts +14 -0
- package/src/resources/skills/skills.ts +274 -0
- package/src/resources/skills.ts +1 -125
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/skills.d.ts
CHANGED
|
@@ -1,97 +1,2 @@
|
|
|
1
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../src/resources/skills.ts"],"names":[],"mappings":""}
|
package/resources/skills.js
CHANGED
|
@@ -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
|
-
|
|
5
|
-
|
|
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
|
package/resources/skills.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills.js","sourceRoot":"","sources":["../src/resources/skills.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"skills.js","sourceRoot":"","sources":["../src/resources/skills.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
|
package/resources/skills.mjs
CHANGED
|
@@ -1,23 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
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
|
package/resources/skills.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills.mjs","sourceRoot":"","sources":["../src/resources/skills.ts"],"names":[],"mappings":"AAAA,sFAAsF
|
|
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(
|
|
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/${
|
|
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,
|
package/src/resources/index.ts
CHANGED
|
@@ -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 {
|
|
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,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,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,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';
|