truefoundry-gateway-sdk 0.1.1-rc.1 → 0.2.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/README.md +2 -2
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/private/resources/agents/client/Client.d.ts +4 -3
- package/dist/cjs/api/resources/private/resources/agents/client/Client.js +14 -5
- package/dist/cjs/api/resources/private/resources/agents/resources/index.d.ts +1 -2
- package/dist/cjs/api/resources/private/resources/agents/resources/index.js +5 -6
- package/dist/cjs/api/resources/private/resources/agents/resources/private/client/Client.d.ts +12 -0
- package/dist/cjs/api/resources/private/resources/agents/resources/private/client/Client.js +16 -0
- package/dist/cjs/api/resources/private/resources/agents/resources/private/exports.d.ts +3 -0
- package/dist/cjs/api/resources/private/resources/agents/resources/private/exports.js +22 -0
- package/dist/cjs/api/resources/private/resources/agents/resources/private/index.d.ts +2 -0
- package/dist/cjs/api/resources/private/resources/agents/resources/private/index.js +18 -0
- package/dist/cjs/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/Client.js +16 -16
- package/dist/cjs/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/CreateDraftSessionRequest.d.ts +1 -1
- package/dist/cjs/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/DraftSessionsListRequest.d.ts +1 -1
- package/dist/cjs/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/UpdateDraftSessionRequest.d.ts +1 -1
- package/dist/cjs/api/resources/private/resources/agents/resources/private/resources/draftSessions/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/private/resources/agents/resources/private/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/private/resources/agents/resources/private/resources/index.js +41 -0
- package/dist/cjs/serialization/resources/private/resources/agents/resources/index.d.ts +1 -2
- package/dist/cjs/serialization/resources/private/resources/agents/resources/index.js +5 -6
- package/dist/cjs/serialization/resources/private/resources/agents/resources/private/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/private/resources/agents/resources/private/index.js +17 -0
- package/dist/cjs/serialization/resources/private/resources/agents/resources/private/resources/draftSessions/client/requests/CreateDraftSessionRequest.d.ts +11 -0
- package/dist/cjs/serialization/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/CreateDraftSessionRequest.js +2 -2
- package/dist/cjs/serialization/resources/private/resources/agents/resources/private/resources/draftSessions/client/requests/UpdateDraftSessionRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/UpdateDraftSessionRequest.js +2 -2
- package/dist/cjs/serialization/resources/private/resources/agents/resources/private/resources/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/private/resources/agents/resources/private/resources/index.js +41 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/private/resources/agents/client/Client.d.mts +4 -3
- package/dist/esm/api/resources/private/resources/agents/client/Client.mjs +14 -5
- package/dist/esm/api/resources/private/resources/agents/resources/index.d.mts +1 -2
- package/dist/esm/api/resources/private/resources/agents/resources/index.mjs +1 -2
- package/dist/esm/api/resources/private/resources/agents/resources/private/client/Client.d.mts +12 -0
- package/dist/esm/api/resources/private/resources/agents/resources/private/client/Client.mjs +12 -0
- package/dist/esm/api/resources/private/resources/agents/resources/private/client/index.d.mts +1 -0
- package/dist/esm/api/resources/private/resources/agents/resources/private/client/index.mjs +1 -0
- package/dist/esm/api/resources/private/resources/agents/resources/private/exports.d.mts +3 -0
- package/dist/esm/api/resources/private/resources/agents/resources/private/exports.mjs +4 -0
- package/dist/esm/api/resources/private/resources/agents/resources/private/index.d.mts +2 -0
- package/dist/esm/api/resources/private/resources/agents/resources/private/index.mjs +2 -0
- package/dist/esm/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/Client.mjs +16 -16
- package/dist/esm/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/CreateDraftSessionRequest.d.mts +1 -1
- package/dist/esm/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/DraftSessionsListRequest.d.mts +1 -1
- package/dist/esm/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/UpdateDraftSessionRequest.d.mts +1 -1
- package/dist/esm/api/resources/private/resources/agents/resources/private/resources/draftSessions/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/private/resources/agents/resources/private/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/private/resources/agents/resources/private/resources/index.mjs +2 -0
- package/dist/esm/serialization/resources/private/resources/agents/resources/index.d.mts +1 -2
- package/dist/esm/serialization/resources/private/resources/agents/resources/index.mjs +1 -2
- package/dist/esm/serialization/resources/private/resources/agents/resources/private/index.d.mts +1 -0
- package/dist/esm/serialization/resources/private/resources/agents/resources/private/index.mjs +1 -0
- package/dist/esm/serialization/resources/private/resources/agents/resources/private/resources/draftSessions/client/requests/CreateDraftSessionRequest.d.mts +11 -0
- package/dist/esm/serialization/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/CreateDraftSessionRequest.mjs +2 -2
- package/dist/esm/serialization/resources/private/resources/agents/resources/private/resources/draftSessions/client/requests/UpdateDraftSessionRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/UpdateDraftSessionRequest.mjs +2 -2
- package/dist/esm/serialization/resources/private/resources/agents/resources/private/resources/index.d.mts +2 -0
- package/dist/esm/serialization/resources/private/resources/agents/resources/private/resources/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +23 -12
- package/reference.md +151 -151
- package/dist/cjs/serialization/resources/private/resources/agents/resources/draftSessions/client/requests/CreateDraftSessionRequest.d.ts +0 -11
- package/dist/cjs/serialization/resources/private/resources/agents/resources/draftSessions/client/requests/UpdateDraftSessionRequest.d.ts +0 -10
- package/dist/esm/serialization/resources/private/resources/agents/resources/draftSessions/client/requests/CreateDraftSessionRequest.d.mts +0 -11
- package/dist/esm/serialization/resources/private/resources/agents/resources/draftSessions/client/requests/UpdateDraftSessionRequest.d.mts +0 -10
- /package/dist/{esm/api/resources/private/resources/agents/resources/draftSessions/client/requests/index.mjs → cjs/api/resources/private/resources/agents/resources/private/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/private/resources/agents/resources/{draftSessions/client/requests → private/client}/index.js +0 -0
- /package/dist/cjs/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/index.js +0 -0
- /package/dist/cjs/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/CreateDraftSessionRequest.js +0 -0
- /package/dist/cjs/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/DraftSessionsListRequest.js +0 -0
- /package/dist/cjs/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/UpdateDraftSessionRequest.js +0 -0
- /package/dist/cjs/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/exports.d.ts +0 -0
- /package/dist/cjs/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/exports.js +0 -0
- /package/dist/cjs/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/index.js +0 -0
- /package/dist/cjs/serialization/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/index.js +0 -0
- /package/dist/cjs/serialization/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/index.js +0 -0
- /package/dist/cjs/serialization/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/index.d.ts +0 -0
- /package/dist/cjs/serialization/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/index.js +0 -0
- /package/dist/esm/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/CreateDraftSessionRequest.mjs +0 -0
- /package/dist/esm/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/DraftSessionsListRequest.mjs +0 -0
- /package/dist/esm/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/UpdateDraftSessionRequest.mjs +0 -0
- /package/dist/esm/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/exports.d.mts +0 -0
- /package/dist/esm/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/exports.mjs +0 -0
- /package/dist/esm/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/index.d.mts +0 -0
- /package/dist/esm/api/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/index.mjs +0 -0
- /package/dist/esm/serialization/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/index.mjs +0 -0
- /package/dist/esm/serialization/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/client/requests/index.mjs +0 -0
- /package/dist/esm/serialization/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/index.d.mts +0 -0
- /package/dist/esm/serialization/resources/private/resources/agents/resources/{draftSessions → private/resources/draftSessions}/index.mjs +0 -0
package/README.md
CHANGED
|
@@ -562,7 +562,7 @@ List endpoints are paginated. The SDK provides an iterator so that you can simpl
|
|
|
562
562
|
import { TrueFoundryGateway } from "truefoundry-gateway-sdk";
|
|
563
563
|
|
|
564
564
|
const client = new TrueFoundryGateway({ environment: "YOUR_BASE_URL", apiKey: "YOUR_API_KEY" });
|
|
565
|
-
const pageableResponse = await client.private.agents.
|
|
565
|
+
const pageableResponse = await client.private.agents.sessions.list({
|
|
566
566
|
agentName: "agent_name",
|
|
567
567
|
limit: 1,
|
|
568
568
|
order: "asc",
|
|
@@ -575,7 +575,7 @@ for await (const item of pageableResponse) {
|
|
|
575
575
|
}
|
|
576
576
|
|
|
577
577
|
// Or you can manually iterate page-by-page
|
|
578
|
-
let page = await client.private.agents.
|
|
578
|
+
let page = await client.private.agents.sessions.list({
|
|
579
579
|
agentName: "agent_name",
|
|
580
580
|
limit: 1,
|
|
581
581
|
order: "asc",
|
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "truefoundry-gateway-sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "0.
|
|
47
|
-
"User-Agent": "truefoundry-gateway-sdk/0.
|
|
46
|
+
"X-Fern-SDK-Version": "0.2.0",
|
|
47
|
+
"User-Agent": "truefoundry-gateway-sdk/0.2.0",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -2,7 +2,7 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../Ba
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../../../core/index.js";
|
|
4
4
|
import * as TrueFoundryGateway from "../../../../../index.js";
|
|
5
|
-
import {
|
|
5
|
+
import { PrivateClient } from "../resources/private/client/Client.js";
|
|
6
6
|
import { SessionsClient } from "../resources/sessions/client/Client.js";
|
|
7
7
|
export declare namespace AgentsClient {
|
|
8
8
|
type Options = BaseClientOptions;
|
|
@@ -11,11 +11,11 @@ export declare namespace AgentsClient {
|
|
|
11
11
|
}
|
|
12
12
|
export declare class AgentsClient {
|
|
13
13
|
protected readonly _options: NormalizedClientOptionsWithAuth<AgentsClient.Options>;
|
|
14
|
-
protected _draftSessions: DraftSessionsClient | undefined;
|
|
15
14
|
protected _sessions: SessionsClient | undefined;
|
|
15
|
+
protected _private: PrivateClient | undefined;
|
|
16
16
|
constructor(options: AgentsClient.Options);
|
|
17
|
-
get draftSessions(): DraftSessionsClient;
|
|
18
17
|
get sessions(): SessionsClient;
|
|
18
|
+
get private(): PrivateClient;
|
|
19
19
|
/**
|
|
20
20
|
* Download a file produced by an agent inside a sandbox.
|
|
21
21
|
*
|
|
@@ -23,6 +23,7 @@ export declare class AgentsClient {
|
|
|
23
23
|
* @throws {@link TrueFoundryGateway.ForbiddenError}
|
|
24
24
|
* @throws {@link TrueFoundryGateway.NotFoundError}
|
|
25
25
|
* @throws {@link TrueFoundryGateway.GoneError}
|
|
26
|
+
* @throws {@link TrueFoundryGateway.PreconditionFailedError}
|
|
26
27
|
* @throws {@link TrueFoundryGateway.ContentTooLargeError}
|
|
27
28
|
* @throws {@link TrueFoundryGateway.BadGatewayError}
|
|
28
29
|
*/
|
|
@@ -51,20 +51,20 @@ const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNo
|
|
|
51
51
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
52
52
|
const serializers = __importStar(require("../../../../../../serialization/index.js"));
|
|
53
53
|
const TrueFoundryGateway = __importStar(require("../../../../../index.js"));
|
|
54
|
-
const Client_js_1 = require("../resources/
|
|
54
|
+
const Client_js_1 = require("../resources/private/client/Client.js");
|
|
55
55
|
const Client_js_2 = require("../resources/sessions/client/Client.js");
|
|
56
56
|
class AgentsClient {
|
|
57
57
|
constructor(options) {
|
|
58
58
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
59
59
|
}
|
|
60
|
-
get draftSessions() {
|
|
61
|
-
var _a;
|
|
62
|
-
return ((_a = this._draftSessions) !== null && _a !== void 0 ? _a : (this._draftSessions = new Client_js_1.DraftSessionsClient(this._options)));
|
|
63
|
-
}
|
|
64
60
|
get sessions() {
|
|
65
61
|
var _a;
|
|
66
62
|
return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_js_2.SessionsClient(this._options)));
|
|
67
63
|
}
|
|
64
|
+
get private() {
|
|
65
|
+
var _a;
|
|
66
|
+
return ((_a = this._private) !== null && _a !== void 0 ? _a : (this._private = new Client_js_1.PrivateClient(this._options)));
|
|
67
|
+
}
|
|
68
68
|
/**
|
|
69
69
|
* Download a file produced by an agent inside a sandbox.
|
|
70
70
|
*
|
|
@@ -72,6 +72,7 @@ class AgentsClient {
|
|
|
72
72
|
* @throws {@link TrueFoundryGateway.ForbiddenError}
|
|
73
73
|
* @throws {@link TrueFoundryGateway.NotFoundError}
|
|
74
74
|
* @throws {@link TrueFoundryGateway.GoneError}
|
|
75
|
+
* @throws {@link TrueFoundryGateway.PreconditionFailedError}
|
|
75
76
|
* @throws {@link TrueFoundryGateway.ContentTooLargeError}
|
|
76
77
|
* @throws {@link TrueFoundryGateway.BadGatewayError}
|
|
77
78
|
*/
|
|
@@ -140,6 +141,14 @@ class AgentsClient {
|
|
|
140
141
|
skipValidation: true,
|
|
141
142
|
breadcrumbsPrefix: ["response"],
|
|
142
143
|
}), _response.rawResponse);
|
|
144
|
+
case 412:
|
|
145
|
+
throw new TrueFoundryGateway.PreconditionFailedError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
|
|
146
|
+
unrecognizedObjectKeys: "passthrough",
|
|
147
|
+
allowUnrecognizedUnionMembers: true,
|
|
148
|
+
allowUnrecognizedEnumValues: true,
|
|
149
|
+
skipValidation: true,
|
|
150
|
+
breadcrumbsPrefix: ["response"],
|
|
151
|
+
}), _response.rawResponse);
|
|
143
152
|
case 413:
|
|
144
153
|
throw new TrueFoundryGateway.ContentTooLargeError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
|
|
145
154
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * as draftSessions from "./draftSessions/index.js";
|
|
1
|
+
export * as private_ from "./private/index.js";
|
|
3
2
|
export * from "./sessions/client/requests/index.js";
|
|
4
3
|
export * as sessions from "./sessions/index.js";
|
|
@@ -15,9 +15,6 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
-
};
|
|
21
18
|
var __importStar = (this && this.__importStar) || (function () {
|
|
22
19
|
var ownKeys = function(o) {
|
|
23
20
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
@@ -35,9 +32,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
32
|
return result;
|
|
36
33
|
};
|
|
37
34
|
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.sessions = exports.
|
|
40
|
-
|
|
41
|
-
exports.draftSessions = __importStar(require("./draftSessions/index.js"));
|
|
39
|
+
exports.sessions = exports.private_ = void 0;
|
|
40
|
+
exports.private_ = __importStar(require("./private/index.js"));
|
|
42
41
|
__exportStar(require("./sessions/client/requests/index.js"), exports);
|
|
43
42
|
exports.sessions = __importStar(require("./sessions/index.js"));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BaseClientOptions } from "../../../../../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.js";
|
|
3
|
+
import { DraftSessionsClient } from "../resources/draftSessions/client/Client.js";
|
|
4
|
+
export declare namespace PrivateClient {
|
|
5
|
+
type Options = BaseClientOptions;
|
|
6
|
+
}
|
|
7
|
+
export declare class PrivateClient {
|
|
8
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<PrivateClient.Options>;
|
|
9
|
+
protected _draftSessions: DraftSessionsClient | undefined;
|
|
10
|
+
constructor(options: PrivateClient.Options);
|
|
11
|
+
get draftSessions(): DraftSessionsClient;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PrivateClient = void 0;
|
|
5
|
+
const BaseClient_js_1 = require("../../../../../../../../BaseClient.js");
|
|
6
|
+
const Client_js_1 = require("../resources/draftSessions/client/Client.js");
|
|
7
|
+
class PrivateClient {
|
|
8
|
+
constructor(options) {
|
|
9
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
10
|
+
}
|
|
11
|
+
get draftSessions() {
|
|
12
|
+
var _a;
|
|
13
|
+
return ((_a = this._draftSessions) !== null && _a !== void 0 ? _a : (this._draftSessions = new Client_js_1.DraftSessionsClient(this._options)));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.PrivateClient = PrivateClient;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.PrivateClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "PrivateClient", { enumerable: true, get: function () { return Client_js_1.PrivateClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
22
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "
|
|
2
|
-
import { type NormalizedClientOptionsWithAuth } from "
|
|
3
|
-
import * as core from "
|
|
4
|
-
import * as TrueFoundryGateway from "
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../../../../../../../core/index.js";
|
|
4
|
+
import * as TrueFoundryGateway from "../../../../../../../../../index.js";
|
|
5
5
|
export declare namespace DraftSessionsClient {
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -13,7 +13,7 @@ export declare class DraftSessionsClient {
|
|
|
13
13
|
/**
|
|
14
14
|
* List the caller-owned draft sessions (newest first by default), keyset-paginated. Optionally filter by `agent_name`. Pass `page_token` to fetch the next page, keeping the other query params constant.
|
|
15
15
|
*
|
|
16
|
-
* @param {TrueFoundryGateway.private_.agents.DraftSessionsListRequest} request
|
|
16
|
+
* @param {TrueFoundryGateway.private_.agents.private_.DraftSessionsListRequest} request
|
|
17
17
|
* @param {DraftSessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link TrueFoundryGateway.BadRequestError}
|
|
@@ -22,7 +22,7 @@ export declare class DraftSessionsClient {
|
|
|
22
22
|
* @throws {@link TrueFoundryGateway.UnprocessableEntityError}
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
|
-
* await client.private.agents.draftSessions.list({
|
|
25
|
+
* await client.private.agents.private.draftSessions.list({
|
|
26
26
|
* agentName: "agent_name",
|
|
27
27
|
* limit: 1,
|
|
28
28
|
* order: "asc",
|
|
@@ -31,11 +31,11 @@ export declare class DraftSessionsClient {
|
|
|
31
31
|
* endTimestamp: "end_timestamp"
|
|
32
32
|
* })
|
|
33
33
|
*/
|
|
34
|
-
list(request?: TrueFoundryGateway.private_.agents.DraftSessionsListRequest, requestOptions?: DraftSessionsClient.RequestOptions): Promise<core.Page<TrueFoundryGateway.DraftSession, TrueFoundryGateway.ListDraftSessionsResponse>>;
|
|
34
|
+
list(request?: TrueFoundryGateway.private_.agents.private_.DraftSessionsListRequest, requestOptions?: DraftSessionsClient.RequestOptions): Promise<core.Page<TrueFoundryGateway.DraftSession, TrueFoundryGateway.ListDraftSessionsResponse>>;
|
|
35
35
|
/**
|
|
36
36
|
* Create a draft session holding an inline agent spec, optionally linked to a saved agent. Owner is the token subject.
|
|
37
37
|
*
|
|
38
|
-
* @param {TrueFoundryGateway.private_.agents.CreateDraftSessionRequest} request
|
|
38
|
+
* @param {TrueFoundryGateway.private_.agents.private_.CreateDraftSessionRequest} request
|
|
39
39
|
* @param {DraftSessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
40
|
*
|
|
41
41
|
* @throws {@link TrueFoundryGateway.BadRequestError}
|
|
@@ -45,7 +45,7 @@ export declare class DraftSessionsClient {
|
|
|
45
45
|
* @throws {@link TrueFoundryGateway.InternalServerError}
|
|
46
46
|
*
|
|
47
47
|
* @example
|
|
48
|
-
* await client.private.agents.draftSessions.create({
|
|
48
|
+
* await client.private.agents.private.draftSessions.create({
|
|
49
49
|
* agentSpec: {
|
|
50
50
|
* model: {
|
|
51
51
|
* name: "name"
|
|
@@ -53,7 +53,7 @@ export declare class DraftSessionsClient {
|
|
|
53
53
|
* }
|
|
54
54
|
* })
|
|
55
55
|
*/
|
|
56
|
-
create(request: TrueFoundryGateway.private_.agents.CreateDraftSessionRequest, requestOptions?: DraftSessionsClient.RequestOptions): core.HttpResponsePromise<TrueFoundryGateway.GetDraftSessionResponse>;
|
|
56
|
+
create(request: TrueFoundryGateway.private_.agents.private_.CreateDraftSessionRequest, requestOptions?: DraftSessionsClient.RequestOptions): core.HttpResponsePromise<TrueFoundryGateway.GetDraftSessionResponse>;
|
|
57
57
|
private __create;
|
|
58
58
|
/**
|
|
59
59
|
* Get a draft session by id. Owner-only.
|
|
@@ -65,7 +65,7 @@ export declare class DraftSessionsClient {
|
|
|
65
65
|
* @throws {@link TrueFoundryGateway.NotFoundError}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* await client.private.agents.draftSessions.get("draftSessionId")
|
|
68
|
+
* await client.private.agents.private.draftSessions.get("draftSessionId")
|
|
69
69
|
*/
|
|
70
70
|
get(draftSessionId: string, requestOptions?: DraftSessionsClient.RequestOptions): core.HttpResponsePromise<TrueFoundryGateway.GetDraftSessionResponse>;
|
|
71
71
|
private __get;
|
|
@@ -73,7 +73,7 @@ export declare class DraftSessionsClient {
|
|
|
73
73
|
* Update a draft session's inline spec. Owner-only. An empty body is a valid no-op that refreshes `updated_at`.
|
|
74
74
|
*
|
|
75
75
|
* @param {string} draftSessionId - Draft session identifier.
|
|
76
|
-
* @param {TrueFoundryGateway.private_.agents.UpdateDraftSessionRequest} request
|
|
76
|
+
* @param {TrueFoundryGateway.private_.agents.private_.UpdateDraftSessionRequest} request
|
|
77
77
|
* @param {DraftSessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
78
78
|
*
|
|
79
79
|
* @throws {@link TrueFoundryGateway.BadRequestError}
|
|
@@ -82,8 +82,8 @@ export declare class DraftSessionsClient {
|
|
|
82
82
|
* @throws {@link TrueFoundryGateway.UnprocessableEntityError}
|
|
83
83
|
*
|
|
84
84
|
* @example
|
|
85
|
-
* await client.private.agents.draftSessions.update("draftSessionId")
|
|
85
|
+
* await client.private.agents.private.draftSessions.update("draftSessionId")
|
|
86
86
|
*/
|
|
87
|
-
update(draftSessionId: string, request?: TrueFoundryGateway.private_.agents.UpdateDraftSessionRequest, requestOptions?: DraftSessionsClient.RequestOptions): core.HttpResponsePromise<TrueFoundryGateway.GetDraftSessionResponse>;
|
|
87
|
+
update(draftSessionId: string, request?: TrueFoundryGateway.private_.agents.private_.UpdateDraftSessionRequest, requestOptions?: DraftSessionsClient.RequestOptions): core.HttpResponsePromise<TrueFoundryGateway.GetDraftSessionResponse>;
|
|
88
88
|
private __update;
|
|
89
89
|
}
|
|
@@ -44,13 +44,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
46
|
exports.DraftSessionsClient = void 0;
|
|
47
|
-
const BaseClient_js_1 = require("
|
|
48
|
-
const headers_js_1 = require("
|
|
49
|
-
const core = __importStar(require("
|
|
50
|
-
const handleNonStatusCodeError_js_1 = require("
|
|
51
|
-
const errors = __importStar(require("
|
|
52
|
-
const serializers = __importStar(require("
|
|
53
|
-
const TrueFoundryGateway = __importStar(require("
|
|
47
|
+
const BaseClient_js_1 = require("../../../../../../../../../../BaseClient.js");
|
|
48
|
+
const headers_js_1 = require("../../../../../../../../../../core/headers.js");
|
|
49
|
+
const core = __importStar(require("../../../../../../../../../../core/index.js"));
|
|
50
|
+
const handleNonStatusCodeError_js_1 = require("../../../../../../../../../../errors/handleNonStatusCodeError.js");
|
|
51
|
+
const errors = __importStar(require("../../../../../../../../../../errors/index.js"));
|
|
52
|
+
const serializers = __importStar(require("../../../../../../../../../../serialization/index.js"));
|
|
53
|
+
const TrueFoundryGateway = __importStar(require("../../../../../../../../../index.js"));
|
|
54
54
|
class DraftSessionsClient {
|
|
55
55
|
constructor(options) {
|
|
56
56
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
@@ -58,7 +58,7 @@ class DraftSessionsClient {
|
|
|
58
58
|
/**
|
|
59
59
|
* List the caller-owned draft sessions (newest first by default), keyset-paginated. Optionally filter by `agent_name`. Pass `page_token` to fetch the next page, keeping the other query params constant.
|
|
60
60
|
*
|
|
61
|
-
* @param {TrueFoundryGateway.private_.agents.DraftSessionsListRequest} request
|
|
61
|
+
* @param {TrueFoundryGateway.private_.agents.private_.DraftSessionsListRequest} request
|
|
62
62
|
* @param {DraftSessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
63
|
*
|
|
64
64
|
* @throws {@link TrueFoundryGateway.BadRequestError}
|
|
@@ -67,7 +67,7 @@ class DraftSessionsClient {
|
|
|
67
67
|
* @throws {@link TrueFoundryGateway.UnprocessableEntityError}
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
|
-
* await client.private.agents.draftSessions.list({
|
|
70
|
+
* await client.private.agents.private.draftSessions.list({
|
|
71
71
|
* agentName: "agent_name",
|
|
72
72
|
* limit: 1,
|
|
73
73
|
* order: "asc",
|
|
@@ -185,7 +185,7 @@ class DraftSessionsClient {
|
|
|
185
185
|
/**
|
|
186
186
|
* Create a draft session holding an inline agent spec, optionally linked to a saved agent. Owner is the token subject.
|
|
187
187
|
*
|
|
188
|
-
* @param {TrueFoundryGateway.private_.agents.CreateDraftSessionRequest} request
|
|
188
|
+
* @param {TrueFoundryGateway.private_.agents.private_.CreateDraftSessionRequest} request
|
|
189
189
|
* @param {DraftSessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
190
190
|
*
|
|
191
191
|
* @throws {@link TrueFoundryGateway.BadRequestError}
|
|
@@ -195,7 +195,7 @@ class DraftSessionsClient {
|
|
|
195
195
|
* @throws {@link TrueFoundryGateway.InternalServerError}
|
|
196
196
|
*
|
|
197
197
|
* @example
|
|
198
|
-
* await client.private.agents.draftSessions.create({
|
|
198
|
+
* await client.private.agents.private.draftSessions.create({
|
|
199
199
|
* agentSpec: {
|
|
200
200
|
* model: {
|
|
201
201
|
* name: "name"
|
|
@@ -218,7 +218,7 @@ class DraftSessionsClient {
|
|
|
218
218
|
contentType: "application/json",
|
|
219
219
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
220
220
|
requestType: "json",
|
|
221
|
-
body: serializers.private_.agents.CreateDraftSessionRequest.jsonOrThrow(request, {
|
|
221
|
+
body: serializers.private_.agents.private_.CreateDraftSessionRequest.jsonOrThrow(request, {
|
|
222
222
|
unrecognizedObjectKeys: "passthrough",
|
|
223
223
|
allowUnrecognizedUnionMembers: true,
|
|
224
224
|
allowUnrecognizedEnumValues: true,
|
|
@@ -305,7 +305,7 @@ class DraftSessionsClient {
|
|
|
305
305
|
* @throws {@link TrueFoundryGateway.NotFoundError}
|
|
306
306
|
*
|
|
307
307
|
* @example
|
|
308
|
-
* await client.private.agents.draftSessions.get("draftSessionId")
|
|
308
|
+
* await client.private.agents.private.draftSessions.get("draftSessionId")
|
|
309
309
|
*/
|
|
310
310
|
get(draftSessionId, requestOptions) {
|
|
311
311
|
return core.HttpResponsePromise.fromPromise(this.__get(draftSessionId, requestOptions));
|
|
@@ -371,7 +371,7 @@ class DraftSessionsClient {
|
|
|
371
371
|
* Update a draft session's inline spec. Owner-only. An empty body is a valid no-op that refreshes `updated_at`.
|
|
372
372
|
*
|
|
373
373
|
* @param {string} draftSessionId - Draft session identifier.
|
|
374
|
-
* @param {TrueFoundryGateway.private_.agents.UpdateDraftSessionRequest} request
|
|
374
|
+
* @param {TrueFoundryGateway.private_.agents.private_.UpdateDraftSessionRequest} request
|
|
375
375
|
* @param {DraftSessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
376
376
|
*
|
|
377
377
|
* @throws {@link TrueFoundryGateway.BadRequestError}
|
|
@@ -380,7 +380,7 @@ class DraftSessionsClient {
|
|
|
380
380
|
* @throws {@link TrueFoundryGateway.UnprocessableEntityError}
|
|
381
381
|
*
|
|
382
382
|
* @example
|
|
383
|
-
* await client.private.agents.draftSessions.update("draftSessionId")
|
|
383
|
+
* await client.private.agents.private.draftSessions.update("draftSessionId")
|
|
384
384
|
*/
|
|
385
385
|
update(draftSessionId, request = {}, requestOptions) {
|
|
386
386
|
return core.HttpResponsePromise.fromPromise(this.__update(draftSessionId, request, requestOptions));
|
|
@@ -397,7 +397,7 @@ class DraftSessionsClient {
|
|
|
397
397
|
contentType: "application/json",
|
|
398
398
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
399
399
|
requestType: "json",
|
|
400
|
-
body: serializers.private_.agents.UpdateDraftSessionRequest.jsonOrThrow(request, {
|
|
400
|
+
body: serializers.private_.agents.private_.UpdateDraftSessionRequest.jsonOrThrow(request, {
|
|
401
401
|
unrecognizedObjectKeys: "passthrough",
|
|
402
402
|
allowUnrecognizedUnionMembers: true,
|
|
403
403
|
allowUnrecognizedEnumValues: true,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.draftSessions = void 0;
|
|
40
|
+
__exportStar(require("./draftSessions/client/requests/index.js"), exports);
|
|
41
|
+
exports.draftSessions = __importStar(require("./draftSessions/index.js"));
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * as draftSessions from "./draftSessions/index.js";
|
|
1
|
+
export * as private_ from "./private/index.js";
|
|
3
2
|
export * from "./sessions/client/requests/index.js";
|
|
4
3
|
export * as sessions from "./sessions/index.js";
|
|
@@ -15,9 +15,6 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
-
};
|
|
21
18
|
var __importStar = (this && this.__importStar) || (function () {
|
|
22
19
|
var ownKeys = function(o) {
|
|
23
20
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
@@ -35,9 +32,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
32
|
return result;
|
|
36
33
|
};
|
|
37
34
|
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.sessions = exports.
|
|
40
|
-
|
|
41
|
-
exports.draftSessions = __importStar(require("./draftSessions/index.js"));
|
|
39
|
+
exports.sessions = exports.private_ = void 0;
|
|
40
|
+
exports.private_ = __importStar(require("./private/index.js"));
|
|
42
41
|
__exportStar(require("./sessions/client/requests/index.js"), exports);
|
|
43
42
|
exports.sessions = __importStar(require("./sessions/index.js"));
|
package/dist/cjs/serialization/resources/private/resources/agents/resources/private/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./resources/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as TrueFoundryGateway from "../../../../../../../../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../../../../../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../../../../../../../../index.js";
|
|
4
|
+
import { AgentSpec } from "../../../../../../../../../../types/AgentSpec.js";
|
|
5
|
+
export declare const CreateDraftSessionRequest: core.serialization.Schema<serializers.private_.agents.private_.CreateDraftSessionRequest.Raw, TrueFoundryGateway.private_.agents.private_.CreateDraftSessionRequest>;
|
|
6
|
+
export declare namespace CreateDraftSessionRequest {
|
|
7
|
+
interface Raw {
|
|
8
|
+
agent_spec: AgentSpec.Raw;
|
|
9
|
+
agent_name?: string | null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -35,8 +35,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.CreateDraftSessionRequest = void 0;
|
|
38
|
-
const core = __importStar(require("
|
|
39
|
-
const AgentSpec_js_1 = require("
|
|
38
|
+
const core = __importStar(require("../../../../../../../../../../../core/index.js"));
|
|
39
|
+
const AgentSpec_js_1 = require("../../../../../../../../../../types/AgentSpec.js");
|
|
40
40
|
exports.CreateDraftSessionRequest = core.serialization.object({
|
|
41
41
|
agentSpec: core.serialization.property("agent_spec", AgentSpec_js_1.AgentSpec),
|
|
42
42
|
agentName: core.serialization.property("agent_name", core.serialization.string().optional()),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as TrueFoundryGateway from "../../../../../../../../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../../../../../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../../../../../../../../index.js";
|
|
4
|
+
import { AgentSpec } from "../../../../../../../../../../types/AgentSpec.js";
|
|
5
|
+
export declare const UpdateDraftSessionRequest: core.serialization.Schema<serializers.private_.agents.private_.UpdateDraftSessionRequest.Raw, TrueFoundryGateway.private_.agents.private_.UpdateDraftSessionRequest>;
|
|
6
|
+
export declare namespace UpdateDraftSessionRequest {
|
|
7
|
+
interface Raw {
|
|
8
|
+
agent_spec?: AgentSpec.Raw | null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -35,8 +35,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.UpdateDraftSessionRequest = void 0;
|
|
38
|
-
const core = __importStar(require("
|
|
39
|
-
const AgentSpec_js_1 = require("
|
|
38
|
+
const core = __importStar(require("../../../../../../../../../../../core/index.js"));
|
|
39
|
+
const AgentSpec_js_1 = require("../../../../../../../../../../types/AgentSpec.js");
|
|
40
40
|
exports.UpdateDraftSessionRequest = core.serialization.object({
|
|
41
41
|
agentSpec: core.serialization.property("agent_spec", AgentSpec_js_1.AgentSpec.optional()),
|
|
42
42
|
});
|