@mobilerun/sdk 6.1.0 → 6.1.1
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 +8 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +307 -0
- package/resources/agents/agents.d.mts.map +1 -0
- package/resources/agents/agents.d.ts +307 -0
- package/resources/agents/agents.d.ts.map +1 -0
- package/resources/agents/agents.js +56 -0
- package/resources/agents/agents.js.map +1 -0
- package/resources/agents/agents.mjs +51 -0
- package/resources/agents/agents.mjs.map +1 -0
- package/resources/agents/conversations.d.mts +110 -0
- package/resources/agents/conversations.d.mts.map +1 -0
- package/resources/agents/conversations.d.ts +110 -0
- package/resources/agents/conversations.d.ts.map +1 -0
- package/resources/agents/conversations.js +24 -0
- package/resources/agents/conversations.js.map +1 -0
- package/resources/agents/conversations.mjs +20 -0
- package/resources/agents/conversations.mjs.map +1 -0
- package/resources/agents/files.d.mts +64 -0
- package/resources/agents/files.d.mts.map +1 -0
- package/resources/agents/files.d.ts +64 -0
- package/resources/agents/files.d.ts.map +1 -0
- package/resources/agents/files.js +16 -0
- package/resources/agents/files.js.map +1 -0
- package/resources/agents/files.mjs +12 -0
- package/resources/agents/files.mjs.map +1 -0
- package/resources/agents/index.d.mts +7 -0
- package/resources/agents/index.d.mts.map +1 -0
- package/resources/agents/index.d.ts +7 -0
- package/resources/agents/index.d.ts.map +1 -0
- package/resources/agents/index.js +17 -0
- package/resources/agents/index.js.map +1 -0
- package/resources/agents/index.mjs +8 -0
- package/resources/agents/index.mjs.map +1 -0
- package/resources/agents/profile.d.mts +156 -0
- package/resources/agents/profile.d.mts.map +1 -0
- package/resources/agents/profile.d.ts +156 -0
- package/resources/agents/profile.d.ts.map +1 -0
- package/resources/agents/profile.js +19 -0
- package/resources/agents/profile.js.map +1 -0
- package/resources/agents/profile.mjs +15 -0
- package/resources/agents/profile.mjs.map +1 -0
- package/resources/agents/requests.d.mts +295 -0
- package/resources/agents/requests.d.mts.map +1 -0
- package/resources/agents/requests.d.ts +295 -0
- package/resources/agents/requests.d.ts.map +1 -0
- package/resources/agents/requests.js +42 -0
- package/resources/agents/requests.js.map +1 -0
- package/resources/agents/requests.mjs +38 -0
- package/resources/agents/requests.mjs.map +1 -0
- package/resources/agents/routines.d.mts +95 -0
- package/resources/agents/routines.d.mts.map +1 -0
- package/resources/agents/routines.d.ts +95 -0
- package/resources/agents/routines.d.ts.map +1 -0
- package/resources/agents/routines.js +26 -0
- package/resources/agents/routines.js.map +1 -0
- package/resources/agents/routines.mjs +22 -0
- package/resources/agents/routines.mjs.map +1 -0
- package/resources/agents.d.mts +2 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +2 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +6 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +3 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/assistant/conversations.d.mts +114 -38
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +114 -38
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +20 -19
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +20 -19
- package/resources/assistant/conversations.mjs.map +1 -1
- package/resources/devices/actions.d.mts +3 -4
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +3 -4
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +3 -4
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +3 -4
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/devices.d.mts +9 -0
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +9 -0
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +8 -0
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +8 -0
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +2 -0
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +2 -0
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +5 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +2 -0
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/number-bindings.d.mts +40 -0
- package/resources/devices/number-bindings.d.mts.map +1 -0
- package/resources/devices/number-bindings.d.ts +40 -0
- package/resources/devices/number-bindings.d.ts.map +1 -0
- package/resources/devices/number-bindings.js +15 -0
- package/resources/devices/number-bindings.js.map +1 -0
- package/resources/devices/number-bindings.mjs +11 -0
- package/resources/devices/number-bindings.mjs.map +1 -0
- package/resources/devices/number.d.mts +141 -0
- package/resources/devices/number.d.mts.map +1 -0
- package/resources/devices/number.d.ts +141 -0
- package/resources/devices/number.d.ts.map +1 -0
- package/resources/devices/number.js +68 -0
- package/resources/devices/number.js.map +1 -0
- package/resources/devices/number.mjs +64 -0
- package/resources/devices/number.mjs.map +1 -0
- package/resources/files.d.mts +13 -7
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +13 -7
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +9 -7
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +9 -7
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +2 -1
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +2 -1
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +2 -1
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +2 -1
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +48 -0
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +48 -0
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +24 -5
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +24 -5
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +56 -8
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +56 -8
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/action-catalog.js +7 -5
- package/resources/workflows/action-catalog.js.map +1 -1
- package/resources/workflows/action-catalog.mjs +7 -5
- package/resources/workflows/action-catalog.mjs.map +1 -1
- package/resources/workflows/actions/actions.d.mts +22 -10
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +22 -10
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +7 -5
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +7 -5
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/actions/index.d.mts +1 -1
- package/resources/workflows/actions/index.d.mts.map +1 -1
- package/resources/workflows/actions/index.d.ts +1 -1
- package/resources/workflows/actions/index.d.ts.map +1 -1
- package/resources/workflows/actions/index.js.map +1 -1
- package/resources/workflows/actions/index.mjs.map +1 -1
- package/resources/workflows/actions/services.d.mts +1 -1
- package/resources/workflows/actions/services.d.mts.map +1 -1
- package/resources/workflows/actions/services.d.ts +1 -1
- package/resources/workflows/actions/services.d.ts.map +1 -1
- package/resources/workflows/events.d.mts +25 -3
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +25 -3
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +16 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -1
- package/resources/workflows/executions/executions.d.ts +16 -0
- package/resources/workflows/executions/executions.d.ts.map +1 -1
- package/resources/workflows/executions/executions.js.map +1 -1
- package/resources/workflows/executions/executions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +547 -102
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +547 -102
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +15 -2
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +15 -2
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +2 -1
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +2 -1
- package/resources/workflows/flows/index.d.ts.map +1 -1
- package/resources/workflows/flows/index.js +3 -1
- package/resources/workflows/flows/index.js.map +1 -1
- package/resources/workflows/flows/index.mjs +1 -0
- package/resources/workflows/flows/index.mjs.map +1 -1
- package/resources/workflows/flows/state.d.mts +65 -0
- package/resources/workflows/flows/state.d.mts.map +1 -0
- package/resources/workflows/flows/state.d.ts +65 -0
- package/resources/workflows/flows/state.d.ts.map +1 -0
- package/resources/workflows/flows/state.js +33 -0
- package/resources/workflows/flows/state.js.map +1 -0
- package/resources/workflows/flows/state.mjs +29 -0
- package/resources/workflows/flows/state.mjs.map +1 -0
- package/resources/workflows/index.d.mts +3 -3
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +3 -3
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +40 -5
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +40 -5
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +12 -3
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +12 -3
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +6 -6
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +6 -6
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +17 -0
- package/src/resources/agents/agents.ts +475 -0
- package/src/resources/agents/conversations.ts +205 -0
- package/src/resources/agents/files.ts +105 -0
- package/src/resources/agents/index.ts +34 -0
- package/src/resources/agents/profile.ts +225 -0
- package/src/resources/agents/requests.ts +495 -0
- package/src/resources/agents/routines.ts +156 -0
- package/src/resources/agents.ts +3 -0
- package/src/resources/assistant/conversations.ts +146 -39
- package/src/resources/devices/actions.ts +3 -4
- package/src/resources/devices/devices.ts +38 -0
- package/src/resources/devices/index.ts +14 -0
- package/src/resources/devices/number-bindings.ts +62 -0
- package/src/resources/devices/number.ts +261 -0
- package/src/resources/files.ts +17 -7
- package/src/resources/index.ts +7 -0
- package/src/resources/numbers/messages.ts +2 -1
- package/src/resources/numbers/numbers.ts +64 -0
- package/src/resources/tasks/tasks.ts +26 -5
- package/src/resources/workflows/action-catalog.ts +69 -8
- package/src/resources/workflows/actions/actions.ts +29 -10
- package/src/resources/workflows/actions/index.ts +1 -0
- package/src/resources/workflows/actions/services.ts +1 -1
- package/src/resources/workflows/events.ts +32 -2
- package/src/resources/workflows/executions/executions.ts +26 -0
- package/src/resources/workflows/flows/flows.ts +707 -97
- package/src/resources/workflows/flows/index.ts +10 -0
- package/src/resources/workflows/flows/state.ts +103 -0
- package/src/resources/workflows/index.ts +4 -0
- package/src/resources/workflows/triggers.ts +34 -5
- package/src/resources/workflows/workflows.ts +8 -0
- 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
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Agents = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const ConversationsAPI = tslib_1.__importStar(require("./conversations.js"));
|
|
8
|
+
const conversations_1 = require("./conversations.js");
|
|
9
|
+
const FilesAPI = tslib_1.__importStar(require("./files.js"));
|
|
10
|
+
const files_1 = require("./files.js");
|
|
11
|
+
const ProfileAPI = tslib_1.__importStar(require("./profile.js"));
|
|
12
|
+
const profile_1 = require("./profile.js");
|
|
13
|
+
const RequestsAPI = tslib_1.__importStar(require("./requests.js"));
|
|
14
|
+
const requests_1 = require("./requests.js");
|
|
15
|
+
const RoutinesAPI = tslib_1.__importStar(require("./routines.js"));
|
|
16
|
+
const routines_1 = require("./routines.js");
|
|
17
|
+
class Agents extends resource_1.APIResource {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.profile = new ProfileAPI.Profile(this._client);
|
|
21
|
+
this.files = new FilesAPI.Files(this._client);
|
|
22
|
+
this.conversations = new ConversationsAPI.Conversations(this._client);
|
|
23
|
+
this.requests = new RequestsAPI.Requests(this._client);
|
|
24
|
+
this.routines = new RoutinesAPI.Routines(this._client);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Creates an Agent directly on the owner runtime, without a chat message or
|
|
28
|
+
* approval card. Provisioning runs in the background; the new Agent has no chat
|
|
29
|
+
* history. Requires Idempotency-Key; a replay returns the current Agent with the
|
|
30
|
+
* original 201 status.
|
|
31
|
+
*/
|
|
32
|
+
create(body, options) {
|
|
33
|
+
return this._client.post('/agents', { body, ...options });
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Owner-scoped. Returns every Agent of the owner that is not on a retired machine,
|
|
37
|
+
* archived and failed ones included, oldest first.
|
|
38
|
+
*/
|
|
39
|
+
list(options) {
|
|
40
|
+
return this._client.get('/agents', options);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* List the environment model profiles and their default. Model routing is managed
|
|
44
|
+
* by the server.
|
|
45
|
+
*/
|
|
46
|
+
modelProfiles(options) {
|
|
47
|
+
return this._client.get('/agents/model-profiles', options);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.Agents = Agents;
|
|
51
|
+
Agents.Profile = profile_1.Profile;
|
|
52
|
+
Agents.Files = files_1.Files;
|
|
53
|
+
Agents.Conversations = conversations_1.Conversations;
|
|
54
|
+
Agents.Requests = requests_1.Requests;
|
|
55
|
+
Agents.Routines = routines_1.Routines;
|
|
56
|
+
//# sourceMappingURL=agents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6EAAoD;AACpD,sDAMyB;AACzB,6DAAoC;AACpC,sCAAkE;AAClE,iEAAwC;AACxC,0CAAqG;AACrG,mEAA0C;AAC1C,4CAQoB;AACpB,mEAA0C;AAC1C,4CAMoB;AAIpB,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2B1E,CAAC;IAzBC;;;;;OAKG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF;AAhCD,wBAgCC;AAuWD,MAAM,CAAC,OAAO,GAAG,iBAAiB,CAAC;AACnC,MAAM,CAAC,KAAK,GAAG,aAAK,CAAC;AACrB,MAAM,CAAC,aAAa,GAAG,6BAAa,CAAC;AACrC,MAAM,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC3B,MAAM,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as ConversationsAPI from "./conversations.mjs";
|
|
4
|
+
import { Conversations, } from "./conversations.mjs";
|
|
5
|
+
import * as FilesAPI from "./files.mjs";
|
|
6
|
+
import { Files } from "./files.mjs";
|
|
7
|
+
import * as ProfileAPI from "./profile.mjs";
|
|
8
|
+
import { Profile as ProfileAPIProfile } from "./profile.mjs";
|
|
9
|
+
import * as RequestsAPI from "./requests.mjs";
|
|
10
|
+
import { Requests, } from "./requests.mjs";
|
|
11
|
+
import * as RoutinesAPI from "./routines.mjs";
|
|
12
|
+
import { Routines, } from "./routines.mjs";
|
|
13
|
+
export class Agents extends APIResource {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.profile = new ProfileAPI.Profile(this._client);
|
|
17
|
+
this.files = new FilesAPI.Files(this._client);
|
|
18
|
+
this.conversations = new ConversationsAPI.Conversations(this._client);
|
|
19
|
+
this.requests = new RequestsAPI.Requests(this._client);
|
|
20
|
+
this.routines = new RoutinesAPI.Routines(this._client);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Creates an Agent directly on the owner runtime, without a chat message or
|
|
24
|
+
* approval card. Provisioning runs in the background; the new Agent has no chat
|
|
25
|
+
* history. Requires Idempotency-Key; a replay returns the current Agent with the
|
|
26
|
+
* original 201 status.
|
|
27
|
+
*/
|
|
28
|
+
create(body, options) {
|
|
29
|
+
return this._client.post('/agents', { body, ...options });
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Owner-scoped. Returns every Agent of the owner that is not on a retired machine,
|
|
33
|
+
* archived and failed ones included, oldest first.
|
|
34
|
+
*/
|
|
35
|
+
list(options) {
|
|
36
|
+
return this._client.get('/agents', options);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* List the environment model profiles and their default. Model routing is managed
|
|
40
|
+
* by the server.
|
|
41
|
+
*/
|
|
42
|
+
modelProfiles(options) {
|
|
43
|
+
return this._client.get('/agents/model-profiles', options);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
Agents.Profile = ProfileAPIProfile;
|
|
47
|
+
Agents.Files = Files;
|
|
48
|
+
Agents.Conversations = Conversations;
|
|
49
|
+
Agents.Requests = Requests;
|
|
50
|
+
Agents.Routines = Routines;
|
|
51
|
+
//# sourceMappingURL=agents.mjs.map
|
|
@@ -0,0 +1 @@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C,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF;AAuWD,MAAM,CAAC,OAAO,GAAG,iBAAiB,CAAC;AACnC,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;AACrB,MAAM,CAAC,aAAa,GAAG,aAAa,CAAC;AACrC,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC3B,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Conversations extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a named chat session bound to one agent. Idempotent via the
|
|
7
|
+
* `Idempotency-Key` header, like the unscoped create.
|
|
8
|
+
*/
|
|
9
|
+
create(agentID: string, body: ConversationCreateParams, options?: RequestOptions): APIPromise<ConversationCreateResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* List the user's named chat sessions for one agent. Supports the same `kind`,
|
|
12
|
+
* `workflowId` and `mine` filters as the unscoped list.
|
|
13
|
+
*/
|
|
14
|
+
list(agentID: string, query?: ConversationListParams | null | undefined, options?: RequestOptions): APIPromise<ConversationListResponse>;
|
|
15
|
+
}
|
|
16
|
+
export interface ConversationCreateResponse {
|
|
17
|
+
session: ConversationCreateResponse.Session;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace ConversationCreateResponse {
|
|
20
|
+
interface Session {
|
|
21
|
+
id: string;
|
|
22
|
+
agent: string | null;
|
|
23
|
+
agentId: string | null;
|
|
24
|
+
basePromptTokens: number | null;
|
|
25
|
+
contextExhaustedAt: string | null;
|
|
26
|
+
costCents: number;
|
|
27
|
+
costUsd: number;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
creditsUsed: number | null;
|
|
30
|
+
description: string | null;
|
|
31
|
+
lastActiveAt: string;
|
|
32
|
+
peakPromptTokens: number | null;
|
|
33
|
+
pinned: boolean;
|
|
34
|
+
promptStatus: 'ready' | 'machine_replaced';
|
|
35
|
+
status: string;
|
|
36
|
+
title: string;
|
|
37
|
+
turnActive: boolean;
|
|
38
|
+
turnStartedAt: string | null;
|
|
39
|
+
createdBy?: string | null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export interface ConversationListResponse {
|
|
43
|
+
sessions: Array<ConversationListResponse.UnionMember0 | ConversationListResponse.UnionMember1>;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace ConversationListResponse {
|
|
46
|
+
interface UnionMember0 {
|
|
47
|
+
id: string;
|
|
48
|
+
agent: string | null;
|
|
49
|
+
agentId: string | null;
|
|
50
|
+
basePromptTokens: number | null;
|
|
51
|
+
contextExhaustedAt: string | null;
|
|
52
|
+
costCents: number;
|
|
53
|
+
costUsd: number;
|
|
54
|
+
createdAt: string;
|
|
55
|
+
creditsUsed: number | null;
|
|
56
|
+
description: string | null;
|
|
57
|
+
episode: number;
|
|
58
|
+
kind: 'chat';
|
|
59
|
+
lastActiveAt: string;
|
|
60
|
+
peakPromptTokens: number | null;
|
|
61
|
+
pinned: boolean;
|
|
62
|
+
promptStatus: 'ready' | 'machine_replaced';
|
|
63
|
+
sourceExecutionId: null;
|
|
64
|
+
status: string;
|
|
65
|
+
title: string;
|
|
66
|
+
turnActive: boolean;
|
|
67
|
+
turnStartedAt: string | null;
|
|
68
|
+
workflowId: null;
|
|
69
|
+
createdBy?: string | null;
|
|
70
|
+
}
|
|
71
|
+
interface UnionMember1 {
|
|
72
|
+
id: string;
|
|
73
|
+
agent: string | null;
|
|
74
|
+
agentId: string | null;
|
|
75
|
+
basePromptTokens: number | null;
|
|
76
|
+
contextExhaustedAt: string | null;
|
|
77
|
+
costCents: number;
|
|
78
|
+
costUsd: number;
|
|
79
|
+
createdAt: string;
|
|
80
|
+
creditsUsed: number | null;
|
|
81
|
+
description: string | null;
|
|
82
|
+
episode: number;
|
|
83
|
+
kind: 'agent_workflow';
|
|
84
|
+
lastActiveAt: string;
|
|
85
|
+
peakPromptTokens: number | null;
|
|
86
|
+
pinned: boolean;
|
|
87
|
+
promptStatus: 'ready' | 'machine_replaced';
|
|
88
|
+
sourceExecutionId: string;
|
|
89
|
+
status: string;
|
|
90
|
+
title: string;
|
|
91
|
+
turnActive: boolean;
|
|
92
|
+
turnStartedAt: string | null;
|
|
93
|
+
workflowId: string;
|
|
94
|
+
createdBy?: string | null;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
export interface ConversationCreateParams {
|
|
98
|
+
title: string;
|
|
99
|
+
agent?: string;
|
|
100
|
+
description?: string;
|
|
101
|
+
}
|
|
102
|
+
export interface ConversationListParams {
|
|
103
|
+
kind?: 'chat' | 'agent_workflow';
|
|
104
|
+
mine?: 'true' | 'false';
|
|
105
|
+
workflowId?: string;
|
|
106
|
+
}
|
|
107
|
+
export declare namespace Conversations {
|
|
108
|
+
export { type ConversationCreateResponse as ConversationCreateResponse, type ConversationListResponse as ConversationListResponse, type ConversationCreateParams as ConversationCreateParams, type ConversationListParams as ConversationListParams, };
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=conversations.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.d.mts","sourceRoot":"","sources":["../../src/resources/agents/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,wBAAwB,EAC9B,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E3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B,OAAO,EAAE,MAAM,CAAC;QAEhB,IAAI,EAAE,gBAAgB,CAAC;QAEvB,YAAY,EAAE,MAAM,CAAC;QAErB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;QAEhC,MAAM,EAAE,OAAO,CAAC;QAEhB,YAAY,EAAE,OAAO,GAAG,kBAAkB,CAAC;QAE3C,iBAAiB,EAAE,MAAM,CAAC;QAE1B,MAAM,EAAE,MAAM,CAAC;QAEf,KAAK,EAAE,MAAM,CAAC;QAEd,UAAU,EAAE,OAAO,CAAC;QAEpB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAE7B,UAAU,EAAE,MAAM,CAAC;QAEnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC3B;CACF;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;IAEd,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAC;IAEjC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAExB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Conversations extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a named chat session bound to one agent. Idempotent via the
|
|
7
|
+
* `Idempotency-Key` header, like the unscoped create.
|
|
8
|
+
*/
|
|
9
|
+
create(agentID: string, body: ConversationCreateParams, options?: RequestOptions): APIPromise<ConversationCreateResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* List the user's named chat sessions for one agent. Supports the same `kind`,
|
|
12
|
+
* `workflowId` and `mine` filters as the unscoped list.
|
|
13
|
+
*/
|
|
14
|
+
list(agentID: string, query?: ConversationListParams | null | undefined, options?: RequestOptions): APIPromise<ConversationListResponse>;
|
|
15
|
+
}
|
|
16
|
+
export interface ConversationCreateResponse {
|
|
17
|
+
session: ConversationCreateResponse.Session;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace ConversationCreateResponse {
|
|
20
|
+
interface Session {
|
|
21
|
+
id: string;
|
|
22
|
+
agent: string | null;
|
|
23
|
+
agentId: string | null;
|
|
24
|
+
basePromptTokens: number | null;
|
|
25
|
+
contextExhaustedAt: string | null;
|
|
26
|
+
costCents: number;
|
|
27
|
+
costUsd: number;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
creditsUsed: number | null;
|
|
30
|
+
description: string | null;
|
|
31
|
+
lastActiveAt: string;
|
|
32
|
+
peakPromptTokens: number | null;
|
|
33
|
+
pinned: boolean;
|
|
34
|
+
promptStatus: 'ready' | 'machine_replaced';
|
|
35
|
+
status: string;
|
|
36
|
+
title: string;
|
|
37
|
+
turnActive: boolean;
|
|
38
|
+
turnStartedAt: string | null;
|
|
39
|
+
createdBy?: string | null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export interface ConversationListResponse {
|
|
43
|
+
sessions: Array<ConversationListResponse.UnionMember0 | ConversationListResponse.UnionMember1>;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace ConversationListResponse {
|
|
46
|
+
interface UnionMember0 {
|
|
47
|
+
id: string;
|
|
48
|
+
agent: string | null;
|
|
49
|
+
agentId: string | null;
|
|
50
|
+
basePromptTokens: number | null;
|
|
51
|
+
contextExhaustedAt: string | null;
|
|
52
|
+
costCents: number;
|
|
53
|
+
costUsd: number;
|
|
54
|
+
createdAt: string;
|
|
55
|
+
creditsUsed: number | null;
|
|
56
|
+
description: string | null;
|
|
57
|
+
episode: number;
|
|
58
|
+
kind: 'chat';
|
|
59
|
+
lastActiveAt: string;
|
|
60
|
+
peakPromptTokens: number | null;
|
|
61
|
+
pinned: boolean;
|
|
62
|
+
promptStatus: 'ready' | 'machine_replaced';
|
|
63
|
+
sourceExecutionId: null;
|
|
64
|
+
status: string;
|
|
65
|
+
title: string;
|
|
66
|
+
turnActive: boolean;
|
|
67
|
+
turnStartedAt: string | null;
|
|
68
|
+
workflowId: null;
|
|
69
|
+
createdBy?: string | null;
|
|
70
|
+
}
|
|
71
|
+
interface UnionMember1 {
|
|
72
|
+
id: string;
|
|
73
|
+
agent: string | null;
|
|
74
|
+
agentId: string | null;
|
|
75
|
+
basePromptTokens: number | null;
|
|
76
|
+
contextExhaustedAt: string | null;
|
|
77
|
+
costCents: number;
|
|
78
|
+
costUsd: number;
|
|
79
|
+
createdAt: string;
|
|
80
|
+
creditsUsed: number | null;
|
|
81
|
+
description: string | null;
|
|
82
|
+
episode: number;
|
|
83
|
+
kind: 'agent_workflow';
|
|
84
|
+
lastActiveAt: string;
|
|
85
|
+
peakPromptTokens: number | null;
|
|
86
|
+
pinned: boolean;
|
|
87
|
+
promptStatus: 'ready' | 'machine_replaced';
|
|
88
|
+
sourceExecutionId: string;
|
|
89
|
+
status: string;
|
|
90
|
+
title: string;
|
|
91
|
+
turnActive: boolean;
|
|
92
|
+
turnStartedAt: string | null;
|
|
93
|
+
workflowId: string;
|
|
94
|
+
createdBy?: string | null;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
export interface ConversationCreateParams {
|
|
98
|
+
title: string;
|
|
99
|
+
agent?: string;
|
|
100
|
+
description?: string;
|
|
101
|
+
}
|
|
102
|
+
export interface ConversationListParams {
|
|
103
|
+
kind?: 'chat' | 'agent_workflow';
|
|
104
|
+
mine?: 'true' | 'false';
|
|
105
|
+
workflowId?: string;
|
|
106
|
+
}
|
|
107
|
+
export declare namespace Conversations {
|
|
108
|
+
export { type ConversationCreateResponse as ConversationCreateResponse, type ConversationListResponse as ConversationListResponse, type ConversationCreateParams as ConversationCreateParams, type ConversationListParams as ConversationListParams, };
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=conversations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../src/resources/agents/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;OAGG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAGxC;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,0BAA0B,CAAC,OAAO,CAAC;CAC7C;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,OAAO;QACtB,EAAE,EAAE,MAAM,CAAC;QAEX,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QAErB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAEvB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;QAEhC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;QAElC,SAAS,EAAE,MAAM,CAAC;QAElB,OAAO,EAAE,MAAM,CAAC;QAEhB,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CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAC;IAEjC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAExB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Conversations = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Conversations extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Create a named chat session bound to one agent. Idempotent via the
|
|
10
|
+
* `Idempotency-Key` header, like the unscoped create.
|
|
11
|
+
*/
|
|
12
|
+
create(agentID, body, options) {
|
|
13
|
+
return this._client.post((0, path_1.path) `/agents/${agentID}/chat/sessions`, { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* List the user's named chat sessions for one agent. Supports the same `kind`,
|
|
17
|
+
* `workflowId` and `mine` filters as the unscoped list.
|
|
18
|
+
*/
|
|
19
|
+
list(agentID, query = {}, options) {
|
|
20
|
+
return this._client.get((0, path_1.path) `/agents/${agentID}/chat/sessions`, { query, ...options });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.Conversations = Conversations;
|
|
24
|
+
//# sourceMappingURL=conversations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../src/resources/agents/conversations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;OAGG;IACH,MAAM,CACJ,OAAe,EACf,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,OAAe,EACf,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF;AAxBD,sCAwBC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
export class Conversations extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a named chat session bound to one agent. Idempotent via the
|
|
7
|
+
* `Idempotency-Key` header, like the unscoped create.
|
|
8
|
+
*/
|
|
9
|
+
create(agentID, body, options) {
|
|
10
|
+
return this._client.post(path `/agents/${agentID}/chat/sessions`, { body, ...options });
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* List the user's named chat sessions for one agent. Supports the same `kind`,
|
|
14
|
+
* `workflowId` and `mine` filters as the unscoped list.
|
|
15
|
+
*/
|
|
16
|
+
list(agentID, query = {}, options) {
|
|
17
|
+
return this._client.get(path `/agents/${agentID}/chat/sessions`, { query, ...options });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=conversations.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.mjs","sourceRoot":"","sources":["../../src/resources/agents/conversations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,MAAM,CACJ,OAAe,EACf,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,WAAW,OAAO,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,OAAe,EACf,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Files extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List the ready files of one agent, optionally filtered by zone.
|
|
7
|
+
*/
|
|
8
|
+
list(agentID: string, query?: FileListParams | null | undefined, options?: RequestOptions): APIPromise<FileListResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface FileListResponse {
|
|
11
|
+
files: Array<FileListResponse.File>;
|
|
12
|
+
quota: FileListResponse.Quota;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace FileListResponse {
|
|
15
|
+
interface File {
|
|
16
|
+
createdAt: string;
|
|
17
|
+
createdBy: 'user' | 'agent' | 'workflow';
|
|
18
|
+
displayName: string | null;
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
fileId: string;
|
|
21
|
+
filename: string;
|
|
22
|
+
mimeType: string;
|
|
23
|
+
sizeBytes: number;
|
|
24
|
+
zone: 'user' | 'agent' | 'workflow' | 'skills';
|
|
25
|
+
agentId?: string;
|
|
26
|
+
collectionStatus?: File.UnionMember0 | File.UnionMember1;
|
|
27
|
+
}
|
|
28
|
+
namespace File {
|
|
29
|
+
interface UnionMember0 {
|
|
30
|
+
completeness: 'complete' | 'partial' | 'none' | 'unknown';
|
|
31
|
+
coverage: 'exhaustive' | 'bounded' | 'unknown';
|
|
32
|
+
endReached: boolean;
|
|
33
|
+
records: UnionMember0.Records;
|
|
34
|
+
resumable: boolean;
|
|
35
|
+
version: 1;
|
|
36
|
+
}
|
|
37
|
+
namespace UnionMember0 {
|
|
38
|
+
interface Records {
|
|
39
|
+
reported: number;
|
|
40
|
+
unit: string;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
interface UnionMember1 {
|
|
44
|
+
completeness: 'unknown';
|
|
45
|
+
coverage: 'unknown';
|
|
46
|
+
endReached: false;
|
|
47
|
+
resumable: false;
|
|
48
|
+
version: 1;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
interface Quota {
|
|
52
|
+
includedBytes: number | null;
|
|
53
|
+
maxBytes: number | null;
|
|
54
|
+
overageAllowed: boolean;
|
|
55
|
+
usedBytes: number;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export interface FileListParams {
|
|
59
|
+
zone?: 'user' | 'agent' | 'workflow' | 'skills';
|
|
60
|
+
}
|
|
61
|
+
export declare namespace Files {
|
|
62
|
+
export { type FileListResponse as FileListResponse, type FileListParams as FileListParams };
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=files.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../../src/resources/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AO,CAAC;YAE9B,SAAS,EAAE,OAAO,CAAC;YAEnB,OAAO,EAAE,CAAC,CAAC;SACZ;QAED,UAAiB,YAAY,CAAC;YAC5B,UAAiB,OAAO;gBACtB,QAAQ,EAAE,MAAM,CAAC;gBAEjB,IAAI,EAAE,MAAM,CAAC;aACd;SACF;QAED,UAAiB,YAAY;YAC3B,YAAY,EAAE,SAAS,CAAC;YAExB,QAAQ,EAAE,SAAS,CAAC;YAEpB,UAAU,EAAE,KAAK,CAAC;YAElB,SAAS,EAAE,KAAK,CAAC;YAEjB,OAAO,EAAE,CAAC,CAAC;SACZ;KACF;IAED,UAAiB,KAAK;QACpB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAE7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QAExB,cAAc,EAAE,OAAO,CAAC;QAExB,SAAS,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;CACjD;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC7F"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Files extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List the ready files of one agent, optionally filtered by zone.
|
|
7
|
+
*/
|
|
8
|
+
list(agentID: string, query?: FileListParams | null | undefined, options?: RequestOptions): APIPromise<FileListResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface FileListResponse {
|
|
11
|
+
files: Array<FileListResponse.File>;
|
|
12
|
+
quota: FileListResponse.Quota;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace FileListResponse {
|
|
15
|
+
interface File {
|
|
16
|
+
createdAt: string;
|
|
17
|
+
createdBy: 'user' | 'agent' | 'workflow';
|
|
18
|
+
displayName: string | null;
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
fileId: string;
|
|
21
|
+
filename: string;
|
|
22
|
+
mimeType: string;
|
|
23
|
+
sizeBytes: number;
|
|
24
|
+
zone: 'user' | 'agent' | 'workflow' | 'skills';
|
|
25
|
+
agentId?: string;
|
|
26
|
+
collectionStatus?: File.UnionMember0 | File.UnionMember1;
|
|
27
|
+
}
|
|
28
|
+
namespace File {
|
|
29
|
+
interface UnionMember0 {
|
|
30
|
+
completeness: 'complete' | 'partial' | 'none' | 'unknown';
|
|
31
|
+
coverage: 'exhaustive' | 'bounded' | 'unknown';
|
|
32
|
+
endReached: boolean;
|
|
33
|
+
records: UnionMember0.Records;
|
|
34
|
+
resumable: boolean;
|
|
35
|
+
version: 1;
|
|
36
|
+
}
|
|
37
|
+
namespace UnionMember0 {
|
|
38
|
+
interface Records {
|
|
39
|
+
reported: number;
|
|
40
|
+
unit: string;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
interface UnionMember1 {
|
|
44
|
+
completeness: 'unknown';
|
|
45
|
+
coverage: 'unknown';
|
|
46
|
+
endReached: false;
|
|
47
|
+
resumable: false;
|
|
48
|
+
version: 1;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
interface Quota {
|
|
52
|
+
includedBytes: number | null;
|
|
53
|
+
maxBytes: number | null;
|
|
54
|
+
overageAllowed: boolean;
|
|
55
|
+
usedBytes: number;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export interface FileListParams {
|
|
59
|
+
zone?: 'user' | 'agent' | 'workflow' | 'skills';
|
|
60
|
+
}
|
|
61
|
+
export declare namespace Files {
|
|
62
|
+
export { type FileListResponse as FileListResponse, type FileListParams as FileListParams };
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=files.d.ts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,GAAG,SAAS,CAAC;YAE/C,UAAU,EAAE,OAAO,CAAC;YAEpB,OAAO,EAAE,YAAY,CAAC,OAAO,CAAC;YAE9B,SAAS,EAAE,OAAO,CAAC;YAEnB,OAAO,EAAE,CAAC,CAAC;SACZ;QAED,UAAiB,YAAY,CAAC;YAC5B,UAAiB,OAAO;gBACtB,QAAQ,EAAE,MAAM,CAAC;gBAEjB,IAAI,EAAE,MAAM,CAAC;aACd;SACF;QAED,UAAiB,YAAY;YAC3B,YAAY,EAAE,SAAS,CAAC;YAExB,QAAQ,EAAE,SAAS,CAAC;YAEpB,UAAU,EAAE,KAAK,CAAC;YAElB,SAAS,EAAE,KAAK,CAAC;YAEjB,OAAO,EAAE,CAAC,CAAC;SACZ;KACF;IAED,UAAiB,KAAK;QACpB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAE7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QAExB,cAAc,EAAE,OAAO,CAAC;QAExB,SAAS,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;CACjD;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC7F"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Files = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Files extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* List the ready files of one agent, optionally filtered by zone.
|
|
10
|
+
*/
|
|
11
|
+
list(agentID, query = {}, options) {
|
|
12
|
+
return this._client.get((0, path_1.path) `/agents/${agentID}/files`, { query, ...options });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Files = Files;
|
|
16
|
+
//# sourceMappingURL=files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/agents/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AAXD,sBAWC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
export class Files extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List the ready files of one agent, optionally filtered by zone.
|
|
7
|
+
*/
|
|
8
|
+
list(agentID, query = {}, options) {
|
|
9
|
+
return this._client.get(path `/agents/${agentID}/files`, { query, ...options });
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=files.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/agents/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Agents, type AgentCreateResponse, type AgentListResponse, type AgentModelProfilesResponse, type AgentCreateParams, } from "./agents.mjs";
|
|
2
|
+
export { Conversations, type ConversationCreateResponse, type ConversationListResponse, type ConversationCreateParams, type ConversationListParams, } from "./conversations.mjs";
|
|
3
|
+
export { Files, type FileListResponse, type FileListParams } from "./files.mjs";
|
|
4
|
+
export { Profile, type ProfileUpdateResponse, type ProfileUpdateParams } from "./profile.mjs";
|
|
5
|
+
export { Requests, type RequestRetrieveResponse, type RequestListResponse, type RequestListForAgentResponse, type RequestRetrieveBySessionResponse, type RequestListParams, type RequestListForAgentParams, } from "./requests.mjs";
|
|
6
|
+
export { Routines, type RoutineCreateResponse, type RoutineCloneResponse, type RoutineCreateParams, type RoutineCloneParams, } from "./routines.mjs";
|
|
7
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,GACvB,qBAAiB;AAClB,OAAO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B,4BAAwB;AACzB,OAAO,EAAE,KAAK,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,oBAAgB;AAC5E,OAAO,EAAE,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,sBAAkB;AAC1F,OAAO,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,EACrC,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,GAC/B,uBAAmB;AACpB,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,GACxB,uBAAmB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Agents, type AgentCreateResponse, type AgentListResponse, type AgentModelProfilesResponse, type AgentCreateParams, } from "./agents.js";
|
|
2
|
+
export { Conversations, type ConversationCreateResponse, type ConversationListResponse, type ConversationCreateParams, type ConversationListParams, } from "./conversations.js";
|
|
3
|
+
export { Files, type FileListResponse, type FileListParams } from "./files.js";
|
|
4
|
+
export { Profile, type ProfileUpdateResponse, type ProfileUpdateParams } from "./profile.js";
|
|
5
|
+
export { Requests, type RequestRetrieveResponse, type RequestListResponse, type RequestListForAgentResponse, type RequestRetrieveBySessionResponse, type RequestListParams, type RequestListForAgentParams, } from "./requests.js";
|
|
6
|
+
export { Routines, type RoutineCreateResponse, type RoutineCloneResponse, type RoutineCreateParams, type RoutineCloneParams, } from "./routines.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,GACvB,oBAAiB;AAClB,OAAO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B,2BAAwB;AACzB,OAAO,EAAE,KAAK,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,mBAAgB;AAC5E,OAAO,EAAE,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,qBAAkB;AAC1F,OAAO,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,EACrC,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,GAC/B,sBAAmB;AACpB,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,GACxB,sBAAmB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Routines = exports.Requests = exports.Profile = exports.Files = exports.Conversations = exports.Agents = void 0;
|
|
5
|
+
var agents_1 = require("./agents.js");
|
|
6
|
+
Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
|
|
7
|
+
var conversations_1 = require("./conversations.js");
|
|
8
|
+
Object.defineProperty(exports, "Conversations", { enumerable: true, get: function () { return conversations_1.Conversations; } });
|
|
9
|
+
var files_1 = require("./files.js");
|
|
10
|
+
Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return files_1.Files; } });
|
|
11
|
+
var profile_1 = require("./profile.js");
|
|
12
|
+
Object.defineProperty(exports, "Profile", { enumerable: true, get: function () { return profile_1.Profile; } });
|
|
13
|
+
var requests_1 = require("./requests.js");
|
|
14
|
+
Object.defineProperty(exports, "Requests", { enumerable: true, get: function () { return requests_1.Requests; } });
|
|
15
|
+
var routines_1 = require("./routines.js");
|
|
16
|
+
Object.defineProperty(exports, "Routines", { enumerable: true, get: function () { return routines_1.Routines; } });
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,oDAMyB;AALvB,8GAAA,aAAa,OAAA;AAMf,oCAA4E;AAAnE,8FAAA,KAAK,OAAA;AACd,wCAA0F;AAAjF,kGAAA,OAAO,OAAA;AAChB,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA;AAQV,0CAMoB;AALlB,oGAAA,QAAQ,OAAA"}
|