@artemiskit/adapter-trueforge 0.1.7 → 0.1.9
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 +23 -0
- package/dist/client.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1186 -717
- package/dist/mapper.d.ts +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __returnValue = (v) => v;
|
|
3
|
+
function __exportSetter(name, newValue) {
|
|
4
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
5
|
+
}
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
set: __exportSetter.bind(all, name)
|
|
13
|
+
});
|
|
14
|
+
};
|
|
2
15
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/auth/AuthProvider.mjs
|
|
3
16
|
function isAuthProvider(value) {
|
|
4
17
|
return typeof value === "object" && value !== null && "getAuthRequest" in value && typeof value.getAuthRequest === "function";
|
|
@@ -467,11 +480,11 @@ var Headers2;
|
|
|
467
480
|
if (typeof globalThis.Headers !== "undefined") {
|
|
468
481
|
Headers2 = globalThis.Headers;
|
|
469
482
|
} else {
|
|
470
|
-
Headers2 = class
|
|
483
|
+
Headers2 = class Headers3 {
|
|
471
484
|
constructor(init) {
|
|
472
485
|
this.headers = new Map;
|
|
473
486
|
if (init) {
|
|
474
|
-
if (init instanceof
|
|
487
|
+
if (init instanceof Headers3) {
|
|
475
488
|
init.forEach((value, key) => this.append(key, value));
|
|
476
489
|
} else if (Array.isArray(init)) {
|
|
477
490
|
for (const [key, value] of init) {
|
|
@@ -1361,6 +1374,14 @@ function targetsBaseUrl(fullUrl, baseUrl) {
|
|
|
1361
1374
|
return false;
|
|
1362
1375
|
}
|
|
1363
1376
|
}
|
|
1377
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/logging/index.mjs
|
|
1378
|
+
var exports_logging = {};
|
|
1379
|
+
__export(exports_logging, {
|
|
1380
|
+
createLogger: () => createLogger,
|
|
1381
|
+
Logger: () => Logger,
|
|
1382
|
+
LogLevel: () => LogLevel,
|
|
1383
|
+
ConsoleLogger: () => ConsoleLogger
|
|
1384
|
+
});
|
|
1364
1385
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/pagination/Page.mjs
|
|
1365
1386
|
var __awaiter12 = function(thisArg, _arguments, P, generator) {
|
|
1366
1387
|
function adopt(value) {
|
|
@@ -1451,8 +1472,8 @@ var __asyncValues = function(o) {
|
|
|
1451
1472
|
};
|
|
1452
1473
|
}
|
|
1453
1474
|
function settle(resolve, reject, d, v) {
|
|
1454
|
-
Promise.resolve(v).then(function(
|
|
1455
|
-
resolve({ value:
|
|
1475
|
+
Promise.resolve(v).then(function(v2) {
|
|
1476
|
+
resolve({ value: v2, done: d });
|
|
1456
1477
|
}, reject);
|
|
1457
1478
|
}
|
|
1458
1479
|
};
|
|
@@ -1584,6 +1605,44 @@ function evaluateRuntime() {
|
|
|
1584
1605
|
};
|
|
1585
1606
|
}
|
|
1586
1607
|
var X86_64_ARCH_ALIASES = new Set(["x64", "amd64", "x86_64"]);
|
|
1608
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/index.mjs
|
|
1609
|
+
var exports_schemas = {};
|
|
1610
|
+
__export(exports_schemas, {
|
|
1611
|
+
withParsedProperties: () => withParsedProperties,
|
|
1612
|
+
unknown: () => unknown,
|
|
1613
|
+
union: () => union,
|
|
1614
|
+
undiscriminatedUnion: () => undiscriminatedUnion,
|
|
1615
|
+
transform: () => transform,
|
|
1616
|
+
stringLiteral: () => stringLiteral,
|
|
1617
|
+
string: () => string,
|
|
1618
|
+
set: () => set,
|
|
1619
|
+
record: () => record,
|
|
1620
|
+
property: () => property,
|
|
1621
|
+
partialRecord: () => partialRecord,
|
|
1622
|
+
optional: () => optional,
|
|
1623
|
+
objectWithoutOptionalProperties: () => objectWithoutOptionalProperties,
|
|
1624
|
+
object: () => object,
|
|
1625
|
+
number: () => number,
|
|
1626
|
+
never: () => never,
|
|
1627
|
+
list: () => list,
|
|
1628
|
+
lazyObject: () => lazyObject,
|
|
1629
|
+
lazy: () => lazy,
|
|
1630
|
+
isProperty: () => isProperty,
|
|
1631
|
+
getSchemaUtils: () => getSchemaUtils,
|
|
1632
|
+
getObjectUtils: () => getObjectUtils,
|
|
1633
|
+
getObjectLikeUtils: () => getObjectLikeUtils,
|
|
1634
|
+
forwardCompatibleEnum_: () => forwardCompatibleEnum_,
|
|
1635
|
+
enum_: () => enum_,
|
|
1636
|
+
discriminant: () => discriminant,
|
|
1637
|
+
date: () => date,
|
|
1638
|
+
booleanLiteral: () => booleanLiteral,
|
|
1639
|
+
boolean: () => boolean,
|
|
1640
|
+
bigint: () => bigint,
|
|
1641
|
+
any: () => any,
|
|
1642
|
+
ParseError: () => ParseError,
|
|
1643
|
+
JsonError: () => JsonError
|
|
1644
|
+
});
|
|
1645
|
+
|
|
1587
1646
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/Schema.mjs
|
|
1588
1647
|
var SchemaType = {
|
|
1589
1648
|
BIGINT: "bigint",
|
|
@@ -1819,6 +1878,107 @@ function transform(schema, transformer) {
|
|
|
1819
1878
|
};
|
|
1820
1879
|
return Object.assign(Object.assign({}, baseSchema), getSchemaUtils(baseSchema));
|
|
1821
1880
|
}
|
|
1881
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/builders/bigint/bigint.mjs
|
|
1882
|
+
function bigint() {
|
|
1883
|
+
const baseSchema = {
|
|
1884
|
+
parse: (raw, { breadcrumbsPrefix = [] } = {}) => {
|
|
1885
|
+
if (typeof raw === "bigint") {
|
|
1886
|
+
return {
|
|
1887
|
+
ok: true,
|
|
1888
|
+
value: raw
|
|
1889
|
+
};
|
|
1890
|
+
}
|
|
1891
|
+
if (typeof raw === "number") {
|
|
1892
|
+
return {
|
|
1893
|
+
ok: true,
|
|
1894
|
+
value: BigInt(raw)
|
|
1895
|
+
};
|
|
1896
|
+
}
|
|
1897
|
+
return {
|
|
1898
|
+
ok: false,
|
|
1899
|
+
errors: [
|
|
1900
|
+
{
|
|
1901
|
+
path: breadcrumbsPrefix,
|
|
1902
|
+
message: getErrorMessageForIncorrectType(raw, "bigint | number")
|
|
1903
|
+
}
|
|
1904
|
+
]
|
|
1905
|
+
};
|
|
1906
|
+
},
|
|
1907
|
+
json: (bigint2, { breadcrumbsPrefix = [] } = {}) => {
|
|
1908
|
+
if (typeof bigint2 !== "bigint") {
|
|
1909
|
+
return {
|
|
1910
|
+
ok: false,
|
|
1911
|
+
errors: [
|
|
1912
|
+
{
|
|
1913
|
+
path: breadcrumbsPrefix,
|
|
1914
|
+
message: getErrorMessageForIncorrectType(bigint2, "bigint")
|
|
1915
|
+
}
|
|
1916
|
+
]
|
|
1917
|
+
};
|
|
1918
|
+
}
|
|
1919
|
+
return {
|
|
1920
|
+
ok: true,
|
|
1921
|
+
value: bigint2
|
|
1922
|
+
};
|
|
1923
|
+
},
|
|
1924
|
+
getType: () => SchemaType.BIGINT
|
|
1925
|
+
};
|
|
1926
|
+
return Object.assign(Object.assign({}, maybeSkipValidation(baseSchema)), getSchemaUtils(baseSchema));
|
|
1927
|
+
}
|
|
1928
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/builders/date/date.mjs
|
|
1929
|
+
var ISO_8601_REGEX = /^([+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([.,]\d+(?!:))?)?(\17[0-5]\d([.,]\d+)?)?([zZ]|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;
|
|
1930
|
+
function date() {
|
|
1931
|
+
const baseSchema = {
|
|
1932
|
+
parse: (raw, { breadcrumbsPrefix = [] } = {}) => {
|
|
1933
|
+
if (typeof raw !== "string") {
|
|
1934
|
+
return {
|
|
1935
|
+
ok: false,
|
|
1936
|
+
errors: [
|
|
1937
|
+
{
|
|
1938
|
+
path: breadcrumbsPrefix,
|
|
1939
|
+
message: getErrorMessageForIncorrectType(raw, "string")
|
|
1940
|
+
}
|
|
1941
|
+
]
|
|
1942
|
+
};
|
|
1943
|
+
}
|
|
1944
|
+
if (!ISO_8601_REGEX.test(raw)) {
|
|
1945
|
+
return {
|
|
1946
|
+
ok: false,
|
|
1947
|
+
errors: [
|
|
1948
|
+
{
|
|
1949
|
+
path: breadcrumbsPrefix,
|
|
1950
|
+
message: getErrorMessageForIncorrectType(raw, "ISO 8601 date string")
|
|
1951
|
+
}
|
|
1952
|
+
]
|
|
1953
|
+
};
|
|
1954
|
+
}
|
|
1955
|
+
return {
|
|
1956
|
+
ok: true,
|
|
1957
|
+
value: new Date(raw)
|
|
1958
|
+
};
|
|
1959
|
+
},
|
|
1960
|
+
json: (date2, { breadcrumbsPrefix = [] } = {}) => {
|
|
1961
|
+
if (date2 instanceof Date) {
|
|
1962
|
+
return {
|
|
1963
|
+
ok: true,
|
|
1964
|
+
value: date2.toISOString()
|
|
1965
|
+
};
|
|
1966
|
+
} else {
|
|
1967
|
+
return {
|
|
1968
|
+
ok: false,
|
|
1969
|
+
errors: [
|
|
1970
|
+
{
|
|
1971
|
+
path: breadcrumbsPrefix,
|
|
1972
|
+
message: getErrorMessageForIncorrectType(date2, "Date object")
|
|
1973
|
+
}
|
|
1974
|
+
]
|
|
1975
|
+
};
|
|
1976
|
+
}
|
|
1977
|
+
},
|
|
1978
|
+
getType: () => SchemaType.DATE
|
|
1979
|
+
};
|
|
1980
|
+
return Object.assign(Object.assign({}, maybeSkipValidation(baseSchema)), getSchemaUtils(baseSchema));
|
|
1981
|
+
}
|
|
1822
1982
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/utils/createIdentitySchemaCreator.mjs
|
|
1823
1983
|
function createIdentitySchemaCreator(schemaType, validate) {
|
|
1824
1984
|
return () => {
|
|
@@ -1864,6 +2024,31 @@ function enum_(values) {
|
|
|
1864
2024
|
});
|
|
1865
2025
|
return schemaCreator();
|
|
1866
2026
|
}
|
|
2027
|
+
function forwardCompatibleEnum_(values) {
|
|
2028
|
+
return enum_(values).transform({
|
|
2029
|
+
transform: (val) => val,
|
|
2030
|
+
untransform: (val) => val
|
|
2031
|
+
});
|
|
2032
|
+
}
|
|
2033
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/builders/lazy/lazy.mjs
|
|
2034
|
+
function lazy(getter) {
|
|
2035
|
+
const baseSchema = constructLazyBaseSchema(getter);
|
|
2036
|
+
return Object.assign(Object.assign({}, baseSchema), getSchemaUtils(baseSchema));
|
|
2037
|
+
}
|
|
2038
|
+
function constructLazyBaseSchema(getter) {
|
|
2039
|
+
return {
|
|
2040
|
+
parse: (raw, opts) => getMemoizedSchema(getter).parse(raw, opts),
|
|
2041
|
+
json: (parsed, opts) => getMemoizedSchema(getter).json(parsed, opts),
|
|
2042
|
+
getType: () => getMemoizedSchema(getter).getType()
|
|
2043
|
+
};
|
|
2044
|
+
}
|
|
2045
|
+
function getMemoizedSchema(getter) {
|
|
2046
|
+
const castedGetter = getter;
|
|
2047
|
+
if (castedGetter.__zurg_memoized == null) {
|
|
2048
|
+
castedGetter.__zurg_memoized = getter();
|
|
2049
|
+
}
|
|
2050
|
+
return castedGetter.__zurg_memoized;
|
|
2051
|
+
}
|
|
1867
2052
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/utils/entries.mjs
|
|
1868
2053
|
function entries(object) {
|
|
1869
2054
|
return Object.entries(object);
|
|
@@ -2038,15 +2223,15 @@ function object(schemas) {
|
|
|
2038
2223
|
requiredKeys: getParseRequiredKeys(),
|
|
2039
2224
|
requiredKeysSet: getParseRequiredKeysSet(),
|
|
2040
2225
|
getProperty: (rawKey) => {
|
|
2041
|
-
const
|
|
2042
|
-
if (
|
|
2226
|
+
const property2 = getRawKeyToProperty()[rawKey];
|
|
2227
|
+
if (property2 == null) {
|
|
2043
2228
|
return;
|
|
2044
2229
|
}
|
|
2045
2230
|
return {
|
|
2046
|
-
transformedKey:
|
|
2231
|
+
transformedKey: property2.parsedKey,
|
|
2047
2232
|
transform: (propertyValue) => {
|
|
2048
2233
|
const childBreadcrumbs = [...breadcrumbsPrefix, rawKey];
|
|
2049
|
-
return
|
|
2234
|
+
return property2.valueSchema.parse(propertyValue, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: childBreadcrumbs }));
|
|
2050
2235
|
}
|
|
2051
2236
|
};
|
|
2052
2237
|
},
|
|
@@ -2064,16 +2249,16 @@ function object(schemas) {
|
|
|
2064
2249
|
requiredKeys: getJsonRequiredKeys(),
|
|
2065
2250
|
requiredKeysSet: getJsonRequiredKeysSet(),
|
|
2066
2251
|
getProperty: (parsedKey) => {
|
|
2067
|
-
const
|
|
2068
|
-
if (
|
|
2252
|
+
const property2 = schemas[parsedKey];
|
|
2253
|
+
if (property2 == null) {
|
|
2069
2254
|
return;
|
|
2070
2255
|
}
|
|
2071
|
-
if (isProperty(
|
|
2256
|
+
if (isProperty(property2)) {
|
|
2072
2257
|
return {
|
|
2073
|
-
transformedKey:
|
|
2258
|
+
transformedKey: property2.rawKey,
|
|
2074
2259
|
transform: (propertyValue) => {
|
|
2075
2260
|
const childBreadcrumbs = [...breadcrumbsPrefix, parsedKey];
|
|
2076
|
-
return
|
|
2261
|
+
return property2.valueSchema.json(propertyValue, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: childBreadcrumbs }));
|
|
2077
2262
|
}
|
|
2078
2263
|
};
|
|
2079
2264
|
} else {
|
|
@@ -2081,7 +2266,7 @@ function object(schemas) {
|
|
|
2081
2266
|
transformedKey: parsedKey,
|
|
2082
2267
|
transform: (propertyValue) => {
|
|
2083
2268
|
const childBreadcrumbs = [...breadcrumbsPrefix, parsedKey];
|
|
2084
|
-
return
|
|
2269
|
+
return property2.json(propertyValue, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: childBreadcrumbs }));
|
|
2085
2270
|
}
|
|
2086
2271
|
};
|
|
2087
2272
|
}
|
|
@@ -2116,17 +2301,17 @@ function validateAndTransformObject({ value, requiredKeys, requiredKeysSet, getP
|
|
|
2116
2301
|
continue;
|
|
2117
2302
|
}
|
|
2118
2303
|
const preTransformedItemValue = value[preTransformedKey];
|
|
2119
|
-
const
|
|
2120
|
-
if (
|
|
2304
|
+
const property2 = getProperty(preTransformedKey);
|
|
2305
|
+
if (property2 != null) {
|
|
2121
2306
|
if (missingRequiredCount > 0 && requiredKeysSet.has(preTransformedKey)) {
|
|
2122
2307
|
missingRequiredCount--;
|
|
2123
2308
|
}
|
|
2124
|
-
const
|
|
2125
|
-
if (
|
|
2126
|
-
transformed[
|
|
2309
|
+
const value2 = property2.transform(preTransformedItemValue);
|
|
2310
|
+
if (value2.ok) {
|
|
2311
|
+
transformed[property2.transformedKey] = value2.value;
|
|
2127
2312
|
} else {
|
|
2128
2313
|
transformed[preTransformedKey] = preTransformedItemValue;
|
|
2129
|
-
errors.push(...
|
|
2314
|
+
errors.push(...value2.errors);
|
|
2130
2315
|
}
|
|
2131
2316
|
} else {
|
|
2132
2317
|
switch (unrecognizedObjectKeys) {
|
|
@@ -2287,6 +2472,15 @@ function isSchemaOptional(schema) {
|
|
|
2287
2472
|
return false;
|
|
2288
2473
|
}
|
|
2289
2474
|
}
|
|
2475
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/builders/object/objectWithoutOptionalProperties.mjs
|
|
2476
|
+
function objectWithoutOptionalProperties(schemas) {
|
|
2477
|
+
return object(schemas);
|
|
2478
|
+
}
|
|
2479
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/builders/lazy/lazyObject.mjs
|
|
2480
|
+
function lazyObject(getter) {
|
|
2481
|
+
const baseSchema = Object.assign(Object.assign({}, constructLazyBaseSchema(getter)), { _getRawProperties: () => getMemoizedSchema(getter)._getRawProperties(), _getParsedProperties: () => getMemoizedSchema(getter)._getParsedProperties() });
|
|
2482
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({}, baseSchema), getSchemaUtils(baseSchema)), getObjectLikeUtils(baseSchema)), getObjectUtils(baseSchema));
|
|
2483
|
+
}
|
|
2290
2484
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/builders/list/list.mjs
|
|
2291
2485
|
function list(schema) {
|
|
2292
2486
|
const baseSchema = {
|
|
@@ -2329,6 +2523,28 @@ function validateAndTransformArray(value, transformItem) {
|
|
|
2329
2523
|
}
|
|
2330
2524
|
return { ok: false, errors };
|
|
2331
2525
|
}
|
|
2526
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/builders/literals/booleanLiteral.mjs
|
|
2527
|
+
function booleanLiteral(literal) {
|
|
2528
|
+
const schemaCreator = createIdentitySchemaCreator(SchemaType.BOOLEAN_LITERAL, (value, { breadcrumbsPrefix = [] } = {}) => {
|
|
2529
|
+
if (value === literal) {
|
|
2530
|
+
return {
|
|
2531
|
+
ok: true,
|
|
2532
|
+
value: literal
|
|
2533
|
+
};
|
|
2534
|
+
} else {
|
|
2535
|
+
return {
|
|
2536
|
+
ok: false,
|
|
2537
|
+
errors: [
|
|
2538
|
+
{
|
|
2539
|
+
path: breadcrumbsPrefix,
|
|
2540
|
+
message: getErrorMessageForIncorrectType(value, `${literal.toString()}`)
|
|
2541
|
+
}
|
|
2542
|
+
]
|
|
2543
|
+
};
|
|
2544
|
+
}
|
|
2545
|
+
});
|
|
2546
|
+
return schemaCreator();
|
|
2547
|
+
}
|
|
2332
2548
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/builders/literals/stringLiteral.mjs
|
|
2333
2549
|
function stringLiteral(literal) {
|
|
2334
2550
|
const schemaCreator = createIdentitySchemaCreator(SchemaType.STRING_LITERAL, (value, { breadcrumbsPrefix = [] } = {}) => {
|
|
@@ -2351,6 +2567,11 @@ function stringLiteral(literal) {
|
|
|
2351
2567
|
});
|
|
2352
2568
|
return schemaCreator();
|
|
2353
2569
|
}
|
|
2570
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/builders/primitives/any.mjs
|
|
2571
|
+
var any = createIdentitySchemaCreator(SchemaType.ANY, (value) => ({
|
|
2572
|
+
ok: true,
|
|
2573
|
+
value
|
|
2574
|
+
}));
|
|
2354
2575
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/builders/primitives/boolean.mjs
|
|
2355
2576
|
var boolean = createIdentitySchemaCreator(SchemaType.BOOLEAN, (value, { breadcrumbsPrefix = [] } = {}) => {
|
|
2356
2577
|
if (typeof value === "boolean") {
|
|
@@ -2370,6 +2591,16 @@ var boolean = createIdentitySchemaCreator(SchemaType.BOOLEAN, (value, { breadcru
|
|
|
2370
2591
|
};
|
|
2371
2592
|
}
|
|
2372
2593
|
});
|
|
2594
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/builders/primitives/never.mjs
|
|
2595
|
+
var never = createIdentitySchemaCreator(SchemaType.NEVER, (_value, { breadcrumbsPrefix = [] } = {}) => ({
|
|
2596
|
+
ok: false,
|
|
2597
|
+
errors: [
|
|
2598
|
+
{
|
|
2599
|
+
path: breadcrumbsPrefix,
|
|
2600
|
+
message: "Expected never"
|
|
2601
|
+
}
|
|
2602
|
+
]
|
|
2603
|
+
}));
|
|
2373
2604
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/builders/primitives/number.mjs
|
|
2374
2605
|
var number = createIdentitySchemaCreator(SchemaType.NUMBER, (value, { breadcrumbsPrefix = [] } = {}) => {
|
|
2375
2606
|
if (typeof value === "number") {
|
|
@@ -2448,6 +2679,42 @@ function record(keySchema, valueSchema) {
|
|
|
2448
2679
|
};
|
|
2449
2680
|
return Object.assign(Object.assign({}, maybeSkipValidation(baseSchema)), getSchemaUtils(baseSchema));
|
|
2450
2681
|
}
|
|
2682
|
+
function partialRecord(keySchema, valueSchema) {
|
|
2683
|
+
const baseSchema = {
|
|
2684
|
+
parse: (raw, opts) => {
|
|
2685
|
+
return validateAndTransformRecord({
|
|
2686
|
+
value: raw,
|
|
2687
|
+
isKeyNumeric: keySchema.getType() === SchemaType.NUMBER,
|
|
2688
|
+
transformKey: (key) => {
|
|
2689
|
+
var _a;
|
|
2690
|
+
return keySchema.parse(key, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...(_a = opts === null || opts === undefined ? undefined : opts.breadcrumbsPrefix) !== null && _a !== undefined ? _a : [], `${key} (key)`] }));
|
|
2691
|
+
},
|
|
2692
|
+
transformValue: (value, key) => {
|
|
2693
|
+
var _a;
|
|
2694
|
+
return valueSchema.parse(value, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...(_a = opts === null || opts === undefined ? undefined : opts.breadcrumbsPrefix) !== null && _a !== undefined ? _a : [], `${key}`] }));
|
|
2695
|
+
},
|
|
2696
|
+
breadcrumbsPrefix: opts === null || opts === undefined ? undefined : opts.breadcrumbsPrefix
|
|
2697
|
+
});
|
|
2698
|
+
},
|
|
2699
|
+
json: (parsed, opts) => {
|
|
2700
|
+
return validateAndTransformRecord({
|
|
2701
|
+
value: parsed,
|
|
2702
|
+
isKeyNumeric: keySchema.getType() === SchemaType.NUMBER,
|
|
2703
|
+
transformKey: (key) => {
|
|
2704
|
+
var _a;
|
|
2705
|
+
return keySchema.json(key, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...(_a = opts === null || opts === undefined ? undefined : opts.breadcrumbsPrefix) !== null && _a !== undefined ? _a : [], `${key} (key)`] }));
|
|
2706
|
+
},
|
|
2707
|
+
transformValue: (value, key) => {
|
|
2708
|
+
var _a;
|
|
2709
|
+
return valueSchema.json(value, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...(_a = opts === null || opts === undefined ? undefined : opts.breadcrumbsPrefix) !== null && _a !== undefined ? _a : [], `${key}`] }));
|
|
2710
|
+
},
|
|
2711
|
+
breadcrumbsPrefix: opts === null || opts === undefined ? undefined : opts.breadcrumbsPrefix
|
|
2712
|
+
});
|
|
2713
|
+
},
|
|
2714
|
+
getType: () => SchemaType.RECORD
|
|
2715
|
+
};
|
|
2716
|
+
return Object.assign(Object.assign({}, maybeSkipValidation(baseSchema)), getSchemaUtils(baseSchema));
|
|
2717
|
+
}
|
|
2451
2718
|
function validateAndTransformRecord({ value, isKeyNumeric, transformKey, transformValue, breadcrumbsPrefix = [] }) {
|
|
2452
2719
|
if (!isPlainObject(value)) {
|
|
2453
2720
|
return {
|
|
@@ -2495,23 +2762,58 @@ function validateAndTransformRecord({ value, isKeyNumeric, transformKey, transfo
|
|
|
2495
2762
|
}
|
|
2496
2763
|
return { ok: false, errors };
|
|
2497
2764
|
}
|
|
2765
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/builders/set/set.mjs
|
|
2766
|
+
function set(schema) {
|
|
2767
|
+
const listSchema = list(schema);
|
|
2768
|
+
const baseSchema = {
|
|
2769
|
+
parse: (raw, opts) => {
|
|
2770
|
+
const parsedList = listSchema.parse(raw, opts);
|
|
2771
|
+
if (parsedList.ok) {
|
|
2772
|
+
return {
|
|
2773
|
+
ok: true,
|
|
2774
|
+
value: new Set(parsedList.value)
|
|
2775
|
+
};
|
|
2776
|
+
} else {
|
|
2777
|
+
return parsedList;
|
|
2778
|
+
}
|
|
2779
|
+
},
|
|
2780
|
+
json: (parsed, opts) => {
|
|
2781
|
+
var _a;
|
|
2782
|
+
if (!(parsed instanceof Set)) {
|
|
2783
|
+
return {
|
|
2784
|
+
ok: false,
|
|
2785
|
+
errors: [
|
|
2786
|
+
{
|
|
2787
|
+
path: (_a = opts === null || opts === undefined ? undefined : opts.breadcrumbsPrefix) !== null && _a !== undefined ? _a : [],
|
|
2788
|
+
message: getErrorMessageForIncorrectType(parsed, "Set")
|
|
2789
|
+
}
|
|
2790
|
+
]
|
|
2791
|
+
};
|
|
2792
|
+
}
|
|
2793
|
+
const jsonList = listSchema.json([...parsed], opts);
|
|
2794
|
+
return jsonList;
|
|
2795
|
+
},
|
|
2796
|
+
getType: () => SchemaType.SET
|
|
2797
|
+
};
|
|
2798
|
+
return Object.assign(Object.assign({}, maybeSkipValidation(baseSchema)), getSchemaUtils(baseSchema));
|
|
2799
|
+
}
|
|
2498
2800
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.mjs
|
|
2499
2801
|
function undiscriminatedUnion(schemas) {
|
|
2500
2802
|
const baseSchema = {
|
|
2501
2803
|
parse: (raw, opts) => {
|
|
2502
|
-
return validateAndTransformUndiscriminatedUnion((schema,
|
|
2804
|
+
return validateAndTransformUndiscriminatedUnion((schema, opts2) => schema.parse(raw, opts2), schemas, opts);
|
|
2503
2805
|
},
|
|
2504
2806
|
json: (parsed, opts) => {
|
|
2505
|
-
return validateAndTransformUndiscriminatedUnion((schema,
|
|
2807
|
+
return validateAndTransformUndiscriminatedUnion((schema, opts2) => schema.json(parsed, opts2), schemas, opts);
|
|
2506
2808
|
},
|
|
2507
2809
|
getType: () => SchemaType.UNDISCRIMINATED_UNION
|
|
2508
2810
|
};
|
|
2509
2811
|
return Object.assign(Object.assign({}, maybeSkipValidation(baseSchema)), getSchemaUtils(baseSchema));
|
|
2510
2812
|
}
|
|
2511
|
-
function validateAndTransformUndiscriminatedUnion(
|
|
2813
|
+
function validateAndTransformUndiscriminatedUnion(transform2, schemas, opts) {
|
|
2512
2814
|
const errors = [];
|
|
2513
2815
|
for (const [index, schema] of schemas.entries()) {
|
|
2514
|
-
const transformed =
|
|
2816
|
+
const transformed = transform2(schema, Object.assign(Object.assign({}, opts), { skipValidation: false }));
|
|
2515
2817
|
if (transformed.ok) {
|
|
2516
2818
|
return transformed;
|
|
2517
2819
|
} else {
|
|
@@ -2528,6 +2830,125 @@ function validateAndTransformUndiscriminatedUnion(transform, schemas, opts) {
|
|
|
2528
2830
|
errors
|
|
2529
2831
|
};
|
|
2530
2832
|
}
|
|
2833
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/builders/union/discriminant.mjs
|
|
2834
|
+
function discriminant(parsedDiscriminant, rawDiscriminant) {
|
|
2835
|
+
return {
|
|
2836
|
+
parsedDiscriminant,
|
|
2837
|
+
rawDiscriminant
|
|
2838
|
+
};
|
|
2839
|
+
}
|
|
2840
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/schemas/builders/union/union.mjs
|
|
2841
|
+
var _hasOwn4 = Object.prototype.hasOwnProperty;
|
|
2842
|
+
function union(discriminant2, union2) {
|
|
2843
|
+
const rawDiscriminant = typeof discriminant2 === "string" ? discriminant2 : discriminant2.rawDiscriminant;
|
|
2844
|
+
const parsedDiscriminant = typeof discriminant2 === "string" ? discriminant2 : discriminant2.parsedDiscriminant;
|
|
2845
|
+
const discriminantValueSchema = enum_(keys(union2));
|
|
2846
|
+
const baseSchema = {
|
|
2847
|
+
parse: (raw, opts) => {
|
|
2848
|
+
return transformAndValidateUnion({
|
|
2849
|
+
value: raw,
|
|
2850
|
+
discriminant: rawDiscriminant,
|
|
2851
|
+
transformedDiscriminant: parsedDiscriminant,
|
|
2852
|
+
transformDiscriminantValue: (discriminantValue) => {
|
|
2853
|
+
var _a;
|
|
2854
|
+
return discriminantValueSchema.parse(discriminantValue, {
|
|
2855
|
+
allowUnrecognizedEnumValues: opts === null || opts === undefined ? undefined : opts.allowUnrecognizedUnionMembers,
|
|
2856
|
+
breadcrumbsPrefix: [...(_a = opts === null || opts === undefined ? undefined : opts.breadcrumbsPrefix) !== null && _a !== undefined ? _a : [], rawDiscriminant]
|
|
2857
|
+
});
|
|
2858
|
+
},
|
|
2859
|
+
getAdditionalPropertiesSchema: (discriminantValue) => union2[discriminantValue],
|
|
2860
|
+
allowUnrecognizedUnionMembers: opts === null || opts === undefined ? undefined : opts.allowUnrecognizedUnionMembers,
|
|
2861
|
+
transformAdditionalProperties: (additionalProperties, additionalPropertiesSchema) => additionalPropertiesSchema.parse(additionalProperties, opts),
|
|
2862
|
+
breadcrumbsPrefix: opts === null || opts === undefined ? undefined : opts.breadcrumbsPrefix
|
|
2863
|
+
});
|
|
2864
|
+
},
|
|
2865
|
+
json: (parsed, opts) => {
|
|
2866
|
+
return transformAndValidateUnion({
|
|
2867
|
+
value: parsed,
|
|
2868
|
+
discriminant: parsedDiscriminant,
|
|
2869
|
+
transformedDiscriminant: rawDiscriminant,
|
|
2870
|
+
transformDiscriminantValue: (discriminantValue) => {
|
|
2871
|
+
var _a;
|
|
2872
|
+
return discriminantValueSchema.json(discriminantValue, {
|
|
2873
|
+
allowUnrecognizedEnumValues: opts === null || opts === undefined ? undefined : opts.allowUnrecognizedUnionMembers,
|
|
2874
|
+
breadcrumbsPrefix: [...(_a = opts === null || opts === undefined ? undefined : opts.breadcrumbsPrefix) !== null && _a !== undefined ? _a : [], parsedDiscriminant]
|
|
2875
|
+
});
|
|
2876
|
+
},
|
|
2877
|
+
getAdditionalPropertiesSchema: (discriminantValue) => union2[discriminantValue],
|
|
2878
|
+
allowUnrecognizedUnionMembers: opts === null || opts === undefined ? undefined : opts.allowUnrecognizedUnionMembers,
|
|
2879
|
+
transformAdditionalProperties: (additionalProperties, additionalPropertiesSchema) => additionalPropertiesSchema.json(additionalProperties, opts),
|
|
2880
|
+
breadcrumbsPrefix: opts === null || opts === undefined ? undefined : opts.breadcrumbsPrefix
|
|
2881
|
+
});
|
|
2882
|
+
},
|
|
2883
|
+
getType: () => SchemaType.UNION
|
|
2884
|
+
};
|
|
2885
|
+
return Object.assign(Object.assign(Object.assign({}, maybeSkipValidation(baseSchema)), getSchemaUtils(baseSchema)), getObjectLikeUtils(baseSchema));
|
|
2886
|
+
}
|
|
2887
|
+
function transformAndValidateUnion({ value, discriminant: discriminant2, transformedDiscriminant, transformDiscriminantValue, getAdditionalPropertiesSchema, allowUnrecognizedUnionMembers = false, transformAdditionalProperties, breadcrumbsPrefix = [] }) {
|
|
2888
|
+
if (!isPlainObject(value)) {
|
|
2889
|
+
return {
|
|
2890
|
+
ok: false,
|
|
2891
|
+
errors: [
|
|
2892
|
+
{
|
|
2893
|
+
path: breadcrumbsPrefix,
|
|
2894
|
+
message: getErrorMessageForIncorrectType(value, "object")
|
|
2895
|
+
}
|
|
2896
|
+
]
|
|
2897
|
+
};
|
|
2898
|
+
}
|
|
2899
|
+
const discriminantValue = value[discriminant2];
|
|
2900
|
+
const additionalProperties = {};
|
|
2901
|
+
for (const key in value) {
|
|
2902
|
+
if (_hasOwn4.call(value, key) && key !== discriminant2) {
|
|
2903
|
+
additionalProperties[key] = value[key];
|
|
2904
|
+
}
|
|
2905
|
+
}
|
|
2906
|
+
if (discriminantValue == null) {
|
|
2907
|
+
return {
|
|
2908
|
+
ok: false,
|
|
2909
|
+
errors: [
|
|
2910
|
+
{
|
|
2911
|
+
path: breadcrumbsPrefix,
|
|
2912
|
+
message: `Missing discriminant ("${discriminant2}")`
|
|
2913
|
+
}
|
|
2914
|
+
]
|
|
2915
|
+
};
|
|
2916
|
+
}
|
|
2917
|
+
const transformedDiscriminantValue = transformDiscriminantValue(discriminantValue);
|
|
2918
|
+
if (!transformedDiscriminantValue.ok) {
|
|
2919
|
+
return {
|
|
2920
|
+
ok: false,
|
|
2921
|
+
errors: transformedDiscriminantValue.errors
|
|
2922
|
+
};
|
|
2923
|
+
}
|
|
2924
|
+
const additionalPropertiesSchema = getAdditionalPropertiesSchema(transformedDiscriminantValue.value);
|
|
2925
|
+
if (additionalPropertiesSchema == null) {
|
|
2926
|
+
if (allowUnrecognizedUnionMembers) {
|
|
2927
|
+
return {
|
|
2928
|
+
ok: true,
|
|
2929
|
+
value: Object.assign({ [transformedDiscriminant]: transformedDiscriminantValue.value }, additionalProperties)
|
|
2930
|
+
};
|
|
2931
|
+
} else {
|
|
2932
|
+
return {
|
|
2933
|
+
ok: false,
|
|
2934
|
+
errors: [
|
|
2935
|
+
{
|
|
2936
|
+
path: [...breadcrumbsPrefix, discriminant2],
|
|
2937
|
+
message: "Unexpected discriminant value"
|
|
2938
|
+
}
|
|
2939
|
+
]
|
|
2940
|
+
};
|
|
2941
|
+
}
|
|
2942
|
+
}
|
|
2943
|
+
const transformedAdditionalProperties = transformAdditionalProperties(additionalProperties, additionalPropertiesSchema);
|
|
2944
|
+
if (!transformedAdditionalProperties.ok) {
|
|
2945
|
+
return transformedAdditionalProperties;
|
|
2946
|
+
}
|
|
2947
|
+
return {
|
|
2948
|
+
ok: true,
|
|
2949
|
+
value: Object.assign({ [transformedDiscriminant]: discriminantValue }, transformedAdditionalProperties.value)
|
|
2950
|
+
};
|
|
2951
|
+
}
|
|
2531
2952
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/stream/Stream.mjs
|
|
2532
2953
|
var __awaiter13 = function(thisArg, _arguments, P, generator) {
|
|
2533
2954
|
function adopt(value) {
|
|
@@ -2571,8 +2992,8 @@ var __asyncValues2 = function(o) {
|
|
|
2571
2992
|
};
|
|
2572
2993
|
}
|
|
2573
2994
|
function settle(resolve, reject, d, v) {
|
|
2574
|
-
Promise.resolve(v).then(function(
|
|
2575
|
-
resolve({ value:
|
|
2995
|
+
Promise.resolve(v).then(function(v2) {
|
|
2996
|
+
resolve({ value: v2, done: d });
|
|
2576
2997
|
}, reject);
|
|
2577
2998
|
}
|
|
2578
2999
|
};
|
|
@@ -3061,6 +3482,15 @@ function readableStreamAsyncIterable(stream) {
|
|
|
3061
3482
|
}
|
|
3062
3483
|
};
|
|
3063
3484
|
}
|
|
3485
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/url/index.mjs
|
|
3486
|
+
var exports_url = {};
|
|
3487
|
+
__export(exports_url, {
|
|
3488
|
+
toQueryString: () => toQueryString,
|
|
3489
|
+
queryBuilder: () => queryBuilder,
|
|
3490
|
+
join: () => join,
|
|
3491
|
+
encodePathParam: () => encodePathParam
|
|
3492
|
+
});
|
|
3493
|
+
|
|
3064
3494
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/url/encodePathParam.mjs
|
|
3065
3495
|
function encodePathParam(param) {
|
|
3066
3496
|
if (param === null) {
|
|
@@ -3126,17 +3556,17 @@ class QueryStringBuilder {
|
|
|
3126
3556
|
}
|
|
3127
3557
|
}
|
|
3128
3558
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/utils/setObjectProperty.mjs
|
|
3129
|
-
function setObjectProperty(
|
|
3130
|
-
if (
|
|
3131
|
-
return
|
|
3559
|
+
function setObjectProperty(object2, path, value) {
|
|
3560
|
+
if (object2 == null) {
|
|
3561
|
+
return object2;
|
|
3132
3562
|
}
|
|
3133
|
-
const
|
|
3134
|
-
if (
|
|
3135
|
-
return
|
|
3563
|
+
const keys2 = path.split(".");
|
|
3564
|
+
if (keys2.length === 0) {
|
|
3565
|
+
return object2;
|
|
3136
3566
|
}
|
|
3137
|
-
let current =
|
|
3138
|
-
for (let i = 0;i <
|
|
3139
|
-
const key =
|
|
3567
|
+
let current = object2;
|
|
3568
|
+
for (let i = 0;i < keys2.length - 1; i++) {
|
|
3569
|
+
const key = keys2[i];
|
|
3140
3570
|
if (key == null) {
|
|
3141
3571
|
continue;
|
|
3142
3572
|
}
|
|
@@ -3145,12 +3575,12 @@ function setObjectProperty(object, path, value) {
|
|
|
3145
3575
|
}
|
|
3146
3576
|
current = current[key];
|
|
3147
3577
|
}
|
|
3148
|
-
const lastKey =
|
|
3578
|
+
const lastKey = keys2[keys2.length - 1];
|
|
3149
3579
|
if (lastKey == null) {
|
|
3150
|
-
return
|
|
3580
|
+
return object2;
|
|
3151
3581
|
}
|
|
3152
3582
|
current[lastKey] = value;
|
|
3153
|
-
return
|
|
3583
|
+
return object2;
|
|
3154
3584
|
}
|
|
3155
3585
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/auth/BearerAuthProvider.mjs
|
|
3156
3586
|
var __awaiter14 = function(thisArg, _arguments, P, generator) {
|
|
@@ -3201,13 +3631,13 @@ class BearerAuthProvider {
|
|
|
3201
3631
|
});
|
|
3202
3632
|
}
|
|
3203
3633
|
}
|
|
3204
|
-
(function(
|
|
3205
|
-
|
|
3206
|
-
|
|
3634
|
+
(function(BearerAuthProvider2) {
|
|
3635
|
+
BearerAuthProvider2.AUTH_SCHEME = "BearerAuth";
|
|
3636
|
+
BearerAuthProvider2.AUTH_CONFIG_ERROR_MESSAGE = `Please provide '${TOKEN_PARAM}' when initializing the client`;
|
|
3207
3637
|
function createInstance(options) {
|
|
3208
|
-
return new
|
|
3638
|
+
return new BearerAuthProvider2(options);
|
|
3209
3639
|
}
|
|
3210
|
-
|
|
3640
|
+
BearerAuthProvider2.createInstance = createInstance;
|
|
3211
3641
|
})(BearerAuthProvider || (BearerAuthProvider = {}));
|
|
3212
3642
|
|
|
3213
3643
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/core/headers.mjs
|
|
@@ -3234,7 +3664,7 @@ function normalizeClientOptions(options) {
|
|
|
3234
3664
|
"X-Fern-Runtime": RUNTIME.type,
|
|
3235
3665
|
"X-Fern-Runtime-Version": RUNTIME.version
|
|
3236
3666
|
}, options === null || options === undefined ? undefined : options.headers);
|
|
3237
|
-
return Object.assign(Object.assign({}, options), { logging: createLogger(options === null || options === undefined ? undefined : options.logging), headers });
|
|
3667
|
+
return Object.assign(Object.assign({}, options), { logging: exports_logging.createLogger(options === null || options === undefined ? undefined : options.logging), headers });
|
|
3238
3668
|
}
|
|
3239
3669
|
function normalizeClientOptionsWithAuth(options) {
|
|
3240
3670
|
var _a;
|
|
@@ -3358,387 +3788,409 @@ function handleNonStatusCodeError(error, rawResponse, method, path) {
|
|
|
3358
3788
|
}
|
|
3359
3789
|
|
|
3360
3790
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/InitialUserMessage.mjs
|
|
3361
|
-
var InitialUserMessage = object({
|
|
3362
|
-
content: string(),
|
|
3363
|
-
type: stringLiteral("user.message")
|
|
3791
|
+
var InitialUserMessage = exports_schemas.object({
|
|
3792
|
+
content: exports_schemas.string(),
|
|
3793
|
+
type: exports_schemas.stringLiteral("user.message")
|
|
3364
3794
|
});
|
|
3365
3795
|
|
|
3366
3796
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpServerApprovalToolSelector.mjs
|
|
3367
|
-
var McpServerApprovalToolSelector = undiscriminatedUnion([
|
|
3368
|
-
stringLiteral("@all"),
|
|
3369
|
-
stringLiteral("@write"),
|
|
3370
|
-
stringLiteral("@destructive"),
|
|
3371
|
-
string()
|
|
3797
|
+
var McpServerApprovalToolSelector = exports_schemas.undiscriminatedUnion([
|
|
3798
|
+
exports_schemas.stringLiteral("@all"),
|
|
3799
|
+
exports_schemas.stringLiteral("@write"),
|
|
3800
|
+
exports_schemas.stringLiteral("@destructive"),
|
|
3801
|
+
exports_schemas.string()
|
|
3372
3802
|
]);
|
|
3373
3803
|
|
|
3374
3804
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpServerToolSelector.mjs
|
|
3375
|
-
var McpServerToolSelector = undiscriminatedUnion([
|
|
3376
|
-
stringLiteral("@all"),
|
|
3377
|
-
stringLiteral("@read-only"),
|
|
3378
|
-
string()
|
|
3805
|
+
var McpServerToolSelector = exports_schemas.undiscriminatedUnion([
|
|
3806
|
+
exports_schemas.stringLiteral("@all"),
|
|
3807
|
+
exports_schemas.stringLiteral("@read-only"),
|
|
3808
|
+
exports_schemas.string()
|
|
3379
3809
|
]);
|
|
3380
3810
|
|
|
3381
3811
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpServer.mjs
|
|
3382
|
-
var McpServer = object({
|
|
3383
|
-
disableTools: property("disable_tools", list(McpServerToolSelector).optional()),
|
|
3384
|
-
enableTools: property("enable_tools", list(McpServerToolSelector).optional()),
|
|
3385
|
-
name: string(),
|
|
3386
|
-
preload: boolean().optional(),
|
|
3387
|
-
preloadTools: property("preload_tools", list(McpServerToolSelector).optional()),
|
|
3388
|
-
requireApprovalForTools: property("require_approval_for_tools", list(McpServerApprovalToolSelector).optional())
|
|
3812
|
+
var McpServer = exports_schemas.object({
|
|
3813
|
+
disableTools: exports_schemas.property("disable_tools", exports_schemas.list(McpServerToolSelector).optional()),
|
|
3814
|
+
enableTools: exports_schemas.property("enable_tools", exports_schemas.list(McpServerToolSelector).optional()),
|
|
3815
|
+
name: exports_schemas.string(),
|
|
3816
|
+
preload: exports_schemas.boolean().optional(),
|
|
3817
|
+
preloadTools: exports_schemas.property("preload_tools", exports_schemas.list(McpServerToolSelector).optional()),
|
|
3818
|
+
requireApprovalForTools: exports_schemas.property("require_approval_for_tools", exports_schemas.list(McpServerApprovalToolSelector).optional())
|
|
3389
3819
|
});
|
|
3390
3820
|
|
|
3391
3821
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ModelParams.mjs
|
|
3392
|
-
var ModelParams = object({
|
|
3393
|
-
maxTokens: property("max_tokens", number().optional()),
|
|
3394
|
-
parallelToolCalls: property("parallel_tool_calls", boolean().optional()),
|
|
3395
|
-
reasoningEffort: property("reasoning_effort", string().optional()),
|
|
3396
|
-
temperature: number().optional(),
|
|
3397
|
-
topK: property("top_k", number().optional()),
|
|
3398
|
-
topP: property("top_p", number().optional())
|
|
3822
|
+
var ModelParams = exports_schemas.object({
|
|
3823
|
+
maxTokens: exports_schemas.property("max_tokens", exports_schemas.number().optional()),
|
|
3824
|
+
parallelToolCalls: exports_schemas.property("parallel_tool_calls", exports_schemas.boolean().optional()),
|
|
3825
|
+
reasoningEffort: exports_schemas.property("reasoning_effort", exports_schemas.string().optional()),
|
|
3826
|
+
temperature: exports_schemas.number().optional(),
|
|
3827
|
+
topK: exports_schemas.property("top_k", exports_schemas.number().optional()),
|
|
3828
|
+
topP: exports_schemas.property("top_p", exports_schemas.number().optional())
|
|
3399
3829
|
}).passthrough();
|
|
3400
3830
|
|
|
3401
3831
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/Model.mjs
|
|
3402
|
-
var Model = object({
|
|
3403
|
-
name: string(),
|
|
3832
|
+
var Model = exports_schemas.object({
|
|
3833
|
+
name: exports_schemas.string(),
|
|
3404
3834
|
params: ModelParams.optional()
|
|
3405
3835
|
});
|
|
3406
3836
|
|
|
3407
3837
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ResponseFormatJsonObject.mjs
|
|
3408
|
-
var ResponseFormatJsonObject = object({
|
|
3409
|
-
type: stringLiteral("json_object")
|
|
3838
|
+
var ResponseFormatJsonObject = exports_schemas.object({
|
|
3839
|
+
type: exports_schemas.stringLiteral("json_object")
|
|
3410
3840
|
}).passthrough();
|
|
3411
3841
|
|
|
3412
3842
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ResponseFormatJsonSchemaJsonSchema.mjs
|
|
3413
|
-
var ResponseFormatJsonSchemaJsonSchema = object({
|
|
3414
|
-
description: string().optional(),
|
|
3415
|
-
name: string(),
|
|
3416
|
-
schema: record(string(), unknown()).optional(),
|
|
3417
|
-
strict: boolean().optionalNullable()
|
|
3843
|
+
var ResponseFormatJsonSchemaJsonSchema = exports_schemas.object({
|
|
3844
|
+
description: exports_schemas.string().optional(),
|
|
3845
|
+
name: exports_schemas.string(),
|
|
3846
|
+
schema: exports_schemas.record(exports_schemas.string(), exports_schemas.unknown()).optional(),
|
|
3847
|
+
strict: exports_schemas.boolean().optionalNullable()
|
|
3418
3848
|
}).passthrough();
|
|
3419
3849
|
|
|
3420
3850
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ResponseFormatJsonSchema.mjs
|
|
3421
|
-
var ResponseFormatJsonSchema = object({
|
|
3422
|
-
jsonSchema: property("json_schema", ResponseFormatJsonSchemaJsonSchema),
|
|
3423
|
-
type: stringLiteral("json_schema")
|
|
3851
|
+
var ResponseFormatJsonSchema = exports_schemas.object({
|
|
3852
|
+
jsonSchema: exports_schemas.property("json_schema", ResponseFormatJsonSchemaJsonSchema),
|
|
3853
|
+
type: exports_schemas.stringLiteral("json_schema")
|
|
3424
3854
|
}).passthrough();
|
|
3425
3855
|
|
|
3426
3856
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ResponseFormatText.mjs
|
|
3427
|
-
var ResponseFormatText = object({
|
|
3428
|
-
type: stringLiteral("text")
|
|
3857
|
+
var ResponseFormatText = exports_schemas.object({
|
|
3858
|
+
type: exports_schemas.stringLiteral("text")
|
|
3429
3859
|
}).passthrough();
|
|
3430
3860
|
|
|
3431
3861
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ResponseFormat.mjs
|
|
3432
|
-
var ResponseFormat = undiscriminatedUnion([ResponseFormatJsonObject, ResponseFormatJsonSchema, ResponseFormatText]);
|
|
3862
|
+
var ResponseFormat = exports_schemas.undiscriminatedUnion([ResponseFormatJsonObject, ResponseFormatJsonSchema, ResponseFormatText]);
|
|
3433
3863
|
|
|
3434
3864
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/AskUserQuestionsConfig.mjs
|
|
3435
|
-
var AskUserQuestionsConfig = object({
|
|
3436
|
-
enabled: boolean().optional()
|
|
3865
|
+
var AskUserQuestionsConfig = exports_schemas.object({
|
|
3866
|
+
enabled: exports_schemas.boolean().optional()
|
|
3437
3867
|
});
|
|
3438
3868
|
|
|
3439
3869
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/CompactionConfig.mjs
|
|
3440
|
-
var CompactionConfig = object({
|
|
3441
|
-
compactionThresholdTokens: property("compaction_threshold_tokens", number().optional()),
|
|
3442
|
-
enabled: boolean().optional()
|
|
3870
|
+
var CompactionConfig = exports_schemas.object({
|
|
3871
|
+
compactionThresholdTokens: exports_schemas.property("compaction_threshold_tokens", exports_schemas.number().optional()),
|
|
3872
|
+
enabled: exports_schemas.boolean().optional()
|
|
3443
3873
|
});
|
|
3444
3874
|
|
|
3445
3875
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/LargeToolResponseConfig.mjs
|
|
3446
|
-
var LargeToolResponseConfig = object({
|
|
3447
|
-
enabled: boolean().optional()
|
|
3876
|
+
var LargeToolResponseConfig = exports_schemas.object({
|
|
3877
|
+
enabled: exports_schemas.boolean().optional()
|
|
3448
3878
|
});
|
|
3449
3879
|
|
|
3450
3880
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ContextManagementConfig.mjs
|
|
3451
|
-
var ContextManagementConfig = object({
|
|
3881
|
+
var ContextManagementConfig = exports_schemas.object({
|
|
3452
3882
|
compaction: CompactionConfig.optional(),
|
|
3453
|
-
largeToolResponse: property("large_tool_response", LargeToolResponseConfig.optional())
|
|
3883
|
+
largeToolResponse: exports_schemas.property("large_tool_response", LargeToolResponseConfig.optional())
|
|
3454
3884
|
});
|
|
3455
3885
|
|
|
3456
3886
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/DynamicSubAgentsConfig.mjs
|
|
3457
|
-
var DynamicSubAgentsConfig = object({
|
|
3458
|
-
enabled: boolean().optional()
|
|
3887
|
+
var DynamicSubAgentsConfig = exports_schemas.object({
|
|
3888
|
+
enabled: exports_schemas.boolean().optional()
|
|
3459
3889
|
});
|
|
3460
3890
|
|
|
3461
3891
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/GenerativeUiConfig.mjs
|
|
3462
|
-
var GenerativeUiConfig = object({
|
|
3463
|
-
enabled: boolean().optional()
|
|
3892
|
+
var GenerativeUiConfig = exports_schemas.object({
|
|
3893
|
+
enabled: exports_schemas.boolean().optional()
|
|
3464
3894
|
});
|
|
3465
3895
|
|
|
3466
3896
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/SandboxConfig.mjs
|
|
3467
|
-
var SandboxConfig = object({
|
|
3468
|
-
enabled: boolean(),
|
|
3469
|
-
fileDownloads: property("file_downloads", boolean().optional())
|
|
3897
|
+
var SandboxConfig = exports_schemas.object({
|
|
3898
|
+
enabled: exports_schemas.boolean(),
|
|
3899
|
+
fileDownloads: exports_schemas.property("file_downloads", exports_schemas.boolean().optional())
|
|
3470
3900
|
});
|
|
3471
3901
|
|
|
3472
3902
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/RuntimeConfig.mjs
|
|
3473
|
-
var RuntimeConfig = object({
|
|
3474
|
-
askUserQuestions: property("ask_user_questions", AskUserQuestionsConfig.optional()),
|
|
3475
|
-
contextManagement: property("context_management", ContextManagementConfig.optional()),
|
|
3476
|
-
dynamicSubAgents: property("dynamic_sub_agents", DynamicSubAgentsConfig.optional()),
|
|
3477
|
-
generativeUi: property("generative_ui", GenerativeUiConfig.optional()),
|
|
3478
|
-
iterationLimit: property("iteration_limit", number().optional()),
|
|
3903
|
+
var RuntimeConfig = exports_schemas.object({
|
|
3904
|
+
askUserQuestions: exports_schemas.property("ask_user_questions", AskUserQuestionsConfig.optional()),
|
|
3905
|
+
contextManagement: exports_schemas.property("context_management", ContextManagementConfig.optional()),
|
|
3906
|
+
dynamicSubAgents: exports_schemas.property("dynamic_sub_agents", DynamicSubAgentsConfig.optional()),
|
|
3907
|
+
generativeUi: exports_schemas.property("generative_ui", GenerativeUiConfig.optional()),
|
|
3908
|
+
iterationLimit: exports_schemas.property("iteration_limit", exports_schemas.number().optional()),
|
|
3479
3909
|
sandbox: SandboxConfig.optional()
|
|
3480
3910
|
});
|
|
3481
3911
|
|
|
3482
3912
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/Skill.mjs
|
|
3483
|
-
var Skill = object({
|
|
3484
|
-
name: string()
|
|
3913
|
+
var Skill = exports_schemas.object({
|
|
3914
|
+
name: exports_schemas.string()
|
|
3485
3915
|
});
|
|
3486
3916
|
|
|
3487
3917
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/AgentSpec.mjs
|
|
3488
|
-
var AgentSpec = object({
|
|
3918
|
+
var AgentSpec = exports_schemas.object({
|
|
3489
3919
|
config: RuntimeConfig.optional(),
|
|
3490
|
-
instructions: string().optional(),
|
|
3491
|
-
mcpServers: property("mcp_servers", list(McpServer).optional()),
|
|
3492
|
-
messages: list(InitialUserMessage).optional(),
|
|
3920
|
+
instructions: exports_schemas.string().optional(),
|
|
3921
|
+
mcpServers: exports_schemas.property("mcp_servers", exports_schemas.list(McpServer).optional()),
|
|
3922
|
+
messages: exports_schemas.list(InitialUserMessage).optional(),
|
|
3493
3923
|
model: Model,
|
|
3494
|
-
responseFormat: property("response_format", ResponseFormat.optional()),
|
|
3495
|
-
skills: list(Skill).optional()
|
|
3924
|
+
responseFormat: exports_schemas.property("response_format", ResponseFormat.optional()),
|
|
3925
|
+
skills: exports_schemas.list(Skill).optional()
|
|
3496
3926
|
});
|
|
3497
3927
|
|
|
3498
3928
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ResourceName.mjs
|
|
3499
|
-
var ResourceName = string();
|
|
3929
|
+
var ResourceName = exports_schemas.string();
|
|
3500
3930
|
|
|
3501
3931
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/agents/client/requests/CreateAgentRequest.mjs
|
|
3502
|
-
var CreateAgentRequest = object({
|
|
3932
|
+
var CreateAgentRequest = exports_schemas.object({
|
|
3503
3933
|
manifest: AgentSpec,
|
|
3504
3934
|
name: ResourceName
|
|
3505
3935
|
});
|
|
3506
3936
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/agents/client/requests/UpdateAgentRequest.mjs
|
|
3507
|
-
var UpdateAgentRequest = object({
|
|
3937
|
+
var UpdateAgentRequest = exports_schemas.object({
|
|
3508
3938
|
manifest: AgentSpec
|
|
3509
3939
|
});
|
|
3510
3940
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/sessions/client/requests/CancelSessionRequest.mjs
|
|
3511
|
-
var CancelSessionRequest = object({});
|
|
3941
|
+
var CancelSessionRequest = exports_schemas.object({});
|
|
3512
3942
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/SessionAgentNameRef.mjs
|
|
3513
|
-
var SessionAgentNameRef = object({
|
|
3943
|
+
var SessionAgentNameRef = exports_schemas.object({
|
|
3514
3944
|
name: ResourceName
|
|
3515
3945
|
});
|
|
3516
3946
|
|
|
3517
3947
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/SessionAgentSpecBody.mjs
|
|
3518
|
-
var SessionAgentSpecBody = object({
|
|
3948
|
+
var SessionAgentSpecBody = exports_schemas.object({
|
|
3519
3949
|
spec: AgentSpec
|
|
3520
3950
|
});
|
|
3521
3951
|
|
|
3522
3952
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/CreateSessionAgent.mjs
|
|
3523
|
-
var CreateSessionAgent = undiscriminatedUnion([SessionAgentNameRef, SessionAgentSpecBody]);
|
|
3953
|
+
var CreateSessionAgent = exports_schemas.undiscriminatedUnion([SessionAgentNameRef, SessionAgentSpecBody]);
|
|
3524
3954
|
|
|
3525
3955
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/sessions/client/requests/CreateSessionRequest.mjs
|
|
3526
|
-
var CreateSessionRequest = object({
|
|
3956
|
+
var CreateSessionRequest = exports_schemas.object({
|
|
3527
3957
|
agent: CreateSessionAgent
|
|
3528
3958
|
});
|
|
3529
3959
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/PreviousTurnIdInput.mjs
|
|
3530
|
-
var PreviousTurnIdInput = undiscriminatedUnion([
|
|
3531
|
-
stringLiteral("auto"),
|
|
3532
|
-
stringLiteral("none"),
|
|
3533
|
-
string()
|
|
3960
|
+
var PreviousTurnIdInput = exports_schemas.undiscriminatedUnion([
|
|
3961
|
+
exports_schemas.stringLiteral("auto"),
|
|
3962
|
+
exports_schemas.stringLiteral("none"),
|
|
3963
|
+
exports_schemas.string()
|
|
3534
3964
|
]);
|
|
3535
3965
|
|
|
3536
3966
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/FileContent.mjs
|
|
3537
|
-
var FileContent = object({
|
|
3538
|
-
data: string(),
|
|
3539
|
-
name: string(),
|
|
3540
|
-
type: stringLiteral("file")
|
|
3967
|
+
var FileContent = exports_schemas.object({
|
|
3968
|
+
data: exports_schemas.string(),
|
|
3969
|
+
name: exports_schemas.string(),
|
|
3970
|
+
type: exports_schemas.stringLiteral("file")
|
|
3541
3971
|
});
|
|
3542
3972
|
|
|
3543
3973
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TextContent.mjs
|
|
3544
|
-
var TextContent = object({
|
|
3545
|
-
text: string(),
|
|
3546
|
-
type: stringLiteral("text")
|
|
3974
|
+
var TextContent = exports_schemas.object({
|
|
3975
|
+
text: exports_schemas.string(),
|
|
3976
|
+
type: exports_schemas.stringLiteral("text")
|
|
3547
3977
|
});
|
|
3548
3978
|
|
|
3549
3979
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/UserMessageContentItem.mjs
|
|
3550
|
-
var UserMessageContentItem = undiscriminatedUnion([FileContent, TextContent]);
|
|
3980
|
+
var UserMessageContentItem = exports_schemas.undiscriminatedUnion([FileContent, TextContent]);
|
|
3551
3981
|
|
|
3552
3982
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/UserMessageContent.mjs
|
|
3553
|
-
var UserMessageContent = undiscriminatedUnion([
|
|
3554
|
-
string(),
|
|
3555
|
-
list(UserMessageContentItem)
|
|
3983
|
+
var UserMessageContent = exports_schemas.undiscriminatedUnion([
|
|
3984
|
+
exports_schemas.string(),
|
|
3985
|
+
exports_schemas.list(UserMessageContentItem)
|
|
3556
3986
|
]);
|
|
3557
3987
|
|
|
3558
3988
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/UserMessage.mjs
|
|
3559
|
-
var UserMessage = object({
|
|
3989
|
+
var UserMessage = exports_schemas.object({
|
|
3560
3990
|
content: UserMessageContent,
|
|
3561
|
-
type: stringLiteral("user.message")
|
|
3991
|
+
type: exports_schemas.stringLiteral("user.message")
|
|
3562
3992
|
});
|
|
3563
3993
|
|
|
3564
3994
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ApprovalAllow.mjs
|
|
3565
|
-
var ApprovalAllow = object({
|
|
3566
|
-
status: stringLiteral("allow")
|
|
3995
|
+
var ApprovalAllow = exports_schemas.object({
|
|
3996
|
+
status: exports_schemas.stringLiteral("allow")
|
|
3567
3997
|
});
|
|
3568
3998
|
|
|
3569
3999
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ApprovalDeny.mjs
|
|
3570
|
-
var ApprovalDeny = object({
|
|
3571
|
-
reason: string().optional(),
|
|
3572
|
-
status: stringLiteral("deny")
|
|
4000
|
+
var ApprovalDeny = exports_schemas.object({
|
|
4001
|
+
reason: exports_schemas.string().optional(),
|
|
4002
|
+
status: exports_schemas.stringLiteral("deny")
|
|
3573
4003
|
});
|
|
3574
4004
|
|
|
3575
4005
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ApprovalDecision.mjs
|
|
3576
|
-
var ApprovalDecision = undiscriminatedUnion([ApprovalAllow, ApprovalDeny]);
|
|
4006
|
+
var ApprovalDecision = exports_schemas.undiscriminatedUnion([ApprovalAllow, ApprovalDeny]);
|
|
3577
4007
|
|
|
3578
4008
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/UserToolApprovalEvent.mjs
|
|
3579
|
-
var UserToolApprovalEvent = object({
|
|
4009
|
+
var UserToolApprovalEvent = exports_schemas.object({
|
|
3580
4010
|
approval: ApprovalDecision,
|
|
3581
|
-
threadId: property("thread_id", string()),
|
|
3582
|
-
toolCallId: property("tool_call_id", string()),
|
|
3583
|
-
type: stringLiteral("user.tool_approval")
|
|
4011
|
+
threadId: exports_schemas.property("thread_id", exports_schemas.string()),
|
|
4012
|
+
toolCallId: exports_schemas.property("tool_call_id", exports_schemas.string()),
|
|
4013
|
+
type: exports_schemas.stringLiteral("user.tool_approval")
|
|
3584
4014
|
});
|
|
3585
4015
|
|
|
3586
4016
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/UserToolResponseEvent.mjs
|
|
3587
|
-
var UserToolResponseEvent = object({
|
|
3588
|
-
content: string(),
|
|
3589
|
-
threadId: property("thread_id", string()),
|
|
3590
|
-
toolCallId: property("tool_call_id", string()),
|
|
3591
|
-
type: stringLiteral("user.tool_response")
|
|
4017
|
+
var UserToolResponseEvent = exports_schemas.object({
|
|
4018
|
+
content: exports_schemas.string(),
|
|
4019
|
+
threadId: exports_schemas.property("thread_id", exports_schemas.string()),
|
|
4020
|
+
toolCallId: exports_schemas.property("tool_call_id", exports_schemas.string()),
|
|
4021
|
+
type: exports_schemas.stringLiteral("user.tool_response")
|
|
3592
4022
|
});
|
|
3593
4023
|
|
|
3594
4024
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TurnInputItem.mjs
|
|
3595
|
-
var TurnInputItem = undiscriminatedUnion([UserMessage, UserToolApprovalEvent, UserToolResponseEvent]);
|
|
4025
|
+
var TurnInputItem = exports_schemas.undiscriminatedUnion([UserMessage, UserToolApprovalEvent, UserToolResponseEvent]);
|
|
3596
4026
|
|
|
3597
4027
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/sessions/client/requests/CreateTurnSessionsRequest.mjs
|
|
3598
|
-
var CreateTurnSessionsRequest = object({
|
|
3599
|
-
input: list(TurnInputItem).optional(),
|
|
3600
|
-
previousTurnId: property("previous_turn_id", PreviousTurnIdInput.optional())
|
|
4028
|
+
var CreateTurnSessionsRequest = exports_schemas.object({
|
|
4029
|
+
input: exports_schemas.list(TurnInputItem).optional(),
|
|
4030
|
+
previousTurnId: exports_schemas.property("previous_turn_id", PreviousTurnIdInput.optional())
|
|
3601
4031
|
});
|
|
3602
4032
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/sessions/client/requests/CreateTurnSessionsStreamRequest.mjs
|
|
3603
|
-
var CreateTurnSessionsStreamRequest = object({
|
|
3604
|
-
input: list(TurnInputItem).optional(),
|
|
3605
|
-
previousTurnId: property("previous_turn_id", PreviousTurnIdInput.optional())
|
|
4033
|
+
var CreateTurnSessionsStreamRequest = exports_schemas.object({
|
|
4034
|
+
input: exports_schemas.list(TurnInputItem).optional(),
|
|
4035
|
+
previousTurnId: exports_schemas.property("previous_turn_id", PreviousTurnIdInput.optional())
|
|
3606
4036
|
});
|
|
3607
4037
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/sessions/client/requests/UpdateSessionRequest.mjs
|
|
3608
|
-
var UpdateSessionRequest = object({
|
|
4038
|
+
var UpdateSessionRequest = exports_schemas.object({
|
|
3609
4039
|
agent: SessionAgentSpecBody.optional()
|
|
3610
4040
|
});
|
|
4041
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/settings/index.mjs
|
|
4042
|
+
var exports_settings = {};
|
|
4043
|
+
__export(exports_settings, {
|
|
4044
|
+
skills: () => exports_skills,
|
|
4045
|
+
sandboxProviders: () => exports_sandboxProviders,
|
|
4046
|
+
modelProviders: () => exports_modelProviders,
|
|
4047
|
+
mcpServers: () => exports_mcpServers,
|
|
4048
|
+
UpdateSkillRequest: () => UpdateSkillRequest,
|
|
4049
|
+
UpdateSandboxProviderRequest: () => UpdateSandboxProviderRequest,
|
|
4050
|
+
UpdateModelProviderRequest: () => UpdateModelProviderRequest,
|
|
4051
|
+
UpdateMcpServerRequest: () => UpdateMcpServerRequest,
|
|
4052
|
+
CreateSkillRequest: () => CreateSkillRequest,
|
|
4053
|
+
CreateModelProviderRequest: () => CreateModelProviderRequest,
|
|
4054
|
+
CreateMcpServerRequest: () => CreateMcpServerRequest
|
|
4055
|
+
});
|
|
4056
|
+
|
|
3611
4057
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpServerDcrAuth.mjs
|
|
3612
|
-
var McpServerDcrAuth = object({
|
|
3613
|
-
type: stringLiteral("dcr")
|
|
4058
|
+
var McpServerDcrAuth = exports_schemas.object({
|
|
4059
|
+
type: exports_schemas.stringLiteral("dcr")
|
|
3614
4060
|
});
|
|
3615
4061
|
|
|
3616
4062
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpServerHeaderAuth.mjs
|
|
3617
|
-
var McpServerHeaderAuth = object({
|
|
3618
|
-
headers: record(string(), string()),
|
|
3619
|
-
type: stringLiteral("header")
|
|
4063
|
+
var McpServerHeaderAuth = exports_schemas.object({
|
|
4064
|
+
headers: exports_schemas.record(exports_schemas.string(), exports_schemas.string()),
|
|
4065
|
+
type: exports_schemas.stringLiteral("header")
|
|
3620
4066
|
});
|
|
3621
4067
|
|
|
3622
4068
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpServerManifestAuth.mjs
|
|
3623
|
-
var McpServerManifestAuth = undiscriminatedUnion([McpServerDcrAuth, McpServerHeaderAuth]);
|
|
4069
|
+
var McpServerManifestAuth = exports_schemas.undiscriminatedUnion([McpServerDcrAuth, McpServerHeaderAuth]);
|
|
3624
4070
|
|
|
3625
4071
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpServerType.mjs
|
|
3626
|
-
var McpServerType = stringLiteral("remote");
|
|
4072
|
+
var McpServerType = exports_schemas.stringLiteral("remote");
|
|
3627
4073
|
|
|
3628
4074
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpServerManifest.mjs
|
|
3629
|
-
var McpServerManifest = object({
|
|
4075
|
+
var McpServerManifest = exports_schemas.object({
|
|
3630
4076
|
auth: McpServerManifestAuth.optional(),
|
|
3631
|
-
description: string(),
|
|
4077
|
+
description: exports_schemas.string(),
|
|
3632
4078
|
name: ResourceName,
|
|
3633
4079
|
type: McpServerType,
|
|
3634
|
-
url: string()
|
|
4080
|
+
url: exports_schemas.string()
|
|
3635
4081
|
});
|
|
3636
4082
|
|
|
3637
4083
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/settings/resources/mcpServers/client/requests/CreateMcpServerRequest.mjs
|
|
3638
|
-
var CreateMcpServerRequest = object({
|
|
4084
|
+
var CreateMcpServerRequest = exports_schemas.object({
|
|
3639
4085
|
manifest: McpServerManifest
|
|
3640
4086
|
});
|
|
3641
4087
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/settings/resources/mcpServers/client/requests/UpdateMcpServerRequest.mjs
|
|
3642
|
-
var UpdateMcpServerRequest = object({
|
|
4088
|
+
var UpdateMcpServerRequest = exports_schemas.object({
|
|
3643
4089
|
manifest: McpServerManifest
|
|
3644
4090
|
});
|
|
4091
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/settings/resources/mcpServers/index.mjs
|
|
4092
|
+
var exports_mcpServers = {};
|
|
4093
|
+
__export(exports_mcpServers, {
|
|
4094
|
+
UpdateMcpServerRequest: () => UpdateMcpServerRequest,
|
|
4095
|
+
CreateMcpServerRequest: () => CreateMcpServerRequest
|
|
4096
|
+
});
|
|
3645
4097
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ReasoningEffort.mjs
|
|
3646
|
-
var ReasoningEffort = enum_(["none", "minimal", "low", "medium", "high", "xhigh", "max"]);
|
|
4098
|
+
var ReasoningEffort = exports_schemas.enum_(["none", "minimal", "low", "medium", "high", "xhigh", "max"]);
|
|
3647
4099
|
|
|
3648
4100
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ModelProperties.mjs
|
|
3649
|
-
var ModelProperties = object({
|
|
3650
|
-
contextLength: property("context_length", number().optional()),
|
|
3651
|
-
maxOutputTokens: property("max_output_tokens", number().optional()),
|
|
3652
|
-
reasoningEfforts: property("reasoning_efforts", list(ReasoningEffort).optional())
|
|
4101
|
+
var ModelProperties = exports_schemas.object({
|
|
4102
|
+
contextLength: exports_schemas.property("context_length", exports_schemas.number().optional()),
|
|
4103
|
+
maxOutputTokens: exports_schemas.property("max_output_tokens", exports_schemas.number().optional()),
|
|
4104
|
+
reasoningEfforts: exports_schemas.property("reasoning_efforts", exports_schemas.list(ReasoningEffort).optional())
|
|
3653
4105
|
});
|
|
3654
4106
|
|
|
3655
4107
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ConfiguredModel.mjs
|
|
3656
|
-
var ConfiguredModel = object({
|
|
3657
|
-
modelId: property("model_id", string()),
|
|
4108
|
+
var ConfiguredModel = exports_schemas.object({
|
|
4109
|
+
modelId: exports_schemas.property("model_id", exports_schemas.string()),
|
|
3658
4110
|
name: ResourceName,
|
|
3659
4111
|
properties: ModelProperties
|
|
3660
4112
|
});
|
|
3661
4113
|
|
|
3662
4114
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ModelProviderAuth.mjs
|
|
3663
|
-
var ModelProviderAuth = object({
|
|
3664
|
-
apiKey: property("api_key", string())
|
|
4115
|
+
var ModelProviderAuth = exports_schemas.object({
|
|
4116
|
+
apiKey: exports_schemas.property("api_key", exports_schemas.string())
|
|
3665
4117
|
});
|
|
3666
4118
|
|
|
3667
4119
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/AlibabaModelProvider.mjs
|
|
3668
|
-
var AlibabaModelProvider = object({
|
|
4120
|
+
var AlibabaModelProvider = exports_schemas.object({
|
|
3669
4121
|
auth: ModelProviderAuth,
|
|
3670
|
-
baseUrl: property("base_url", string().optional()),
|
|
3671
|
-
models: list(ConfiguredModel),
|
|
3672
|
-
type: stringLiteral("alibaba")
|
|
4122
|
+
baseUrl: exports_schemas.property("base_url", exports_schemas.string().optional()),
|
|
4123
|
+
models: exports_schemas.list(ConfiguredModel),
|
|
4124
|
+
type: exports_schemas.stringLiteral("alibaba")
|
|
3673
4125
|
});
|
|
3674
4126
|
|
|
3675
4127
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/AnthropicModelProvider.mjs
|
|
3676
|
-
var AnthropicModelProvider = object({
|
|
4128
|
+
var AnthropicModelProvider = exports_schemas.object({
|
|
3677
4129
|
auth: ModelProviderAuth,
|
|
3678
|
-
baseUrl: property("base_url", string().optional()),
|
|
3679
|
-
models: list(ConfiguredModel),
|
|
3680
|
-
type: stringLiteral("anthropic")
|
|
4130
|
+
baseUrl: exports_schemas.property("base_url", exports_schemas.string().optional()),
|
|
4131
|
+
models: exports_schemas.list(ConfiguredModel),
|
|
4132
|
+
type: exports_schemas.stringLiteral("anthropic")
|
|
3681
4133
|
});
|
|
3682
4134
|
|
|
3683
4135
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/CustomModelProvider.mjs
|
|
3684
|
-
var CustomModelProvider = object({
|
|
4136
|
+
var CustomModelProvider = exports_schemas.object({
|
|
3685
4137
|
auth: ModelProviderAuth.optional(),
|
|
3686
|
-
baseUrl: property("base_url", string()),
|
|
3687
|
-
models: list(ConfiguredModel),
|
|
4138
|
+
baseUrl: exports_schemas.property("base_url", exports_schemas.string()),
|
|
4139
|
+
models: exports_schemas.list(ConfiguredModel),
|
|
3688
4140
|
name: ResourceName,
|
|
3689
|
-
type: stringLiteral("custom")
|
|
4141
|
+
type: exports_schemas.stringLiteral("custom")
|
|
3690
4142
|
});
|
|
3691
4143
|
|
|
3692
4144
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/FireworksModelProvider.mjs
|
|
3693
|
-
var FireworksModelProvider = object({
|
|
4145
|
+
var FireworksModelProvider = exports_schemas.object({
|
|
3694
4146
|
auth: ModelProviderAuth,
|
|
3695
|
-
baseUrl: property("base_url", string().optional()),
|
|
3696
|
-
models: list(ConfiguredModel),
|
|
3697
|
-
type: stringLiteral("fireworks")
|
|
4147
|
+
baseUrl: exports_schemas.property("base_url", exports_schemas.string().optional()),
|
|
4148
|
+
models: exports_schemas.list(ConfiguredModel),
|
|
4149
|
+
type: exports_schemas.stringLiteral("fireworks")
|
|
3698
4150
|
});
|
|
3699
4151
|
|
|
3700
4152
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/GoogleGeminiModelProvider.mjs
|
|
3701
|
-
var GoogleGeminiModelProvider = object({
|
|
4153
|
+
var GoogleGeminiModelProvider = exports_schemas.object({
|
|
3702
4154
|
auth: ModelProviderAuth,
|
|
3703
|
-
baseUrl: property("base_url", string().optional()),
|
|
3704
|
-
models: list(ConfiguredModel),
|
|
3705
|
-
type: stringLiteral("google-gemini")
|
|
4155
|
+
baseUrl: exports_schemas.property("base_url", exports_schemas.string().optional()),
|
|
4156
|
+
models: exports_schemas.list(ConfiguredModel),
|
|
4157
|
+
type: exports_schemas.stringLiteral("google-gemini")
|
|
3706
4158
|
});
|
|
3707
4159
|
|
|
3708
4160
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/MoonshotModelProvider.mjs
|
|
3709
|
-
var MoonshotModelProvider = object({
|
|
4161
|
+
var MoonshotModelProvider = exports_schemas.object({
|
|
3710
4162
|
auth: ModelProviderAuth,
|
|
3711
|
-
baseUrl: property("base_url", string().optional()),
|
|
3712
|
-
models: list(ConfiguredModel),
|
|
3713
|
-
type: stringLiteral("moonshot")
|
|
4163
|
+
baseUrl: exports_schemas.property("base_url", exports_schemas.string().optional()),
|
|
4164
|
+
models: exports_schemas.list(ConfiguredModel),
|
|
4165
|
+
type: exports_schemas.stringLiteral("moonshot")
|
|
3714
4166
|
});
|
|
3715
4167
|
|
|
3716
4168
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/OpenAiModelProvider.mjs
|
|
3717
|
-
var OpenAiModelProvider = object({
|
|
4169
|
+
var OpenAiModelProvider = exports_schemas.object({
|
|
3718
4170
|
auth: ModelProviderAuth,
|
|
3719
|
-
baseUrl: property("base_url", string().optional()),
|
|
3720
|
-
models: list(ConfiguredModel),
|
|
3721
|
-
type: stringLiteral("openai")
|
|
4171
|
+
baseUrl: exports_schemas.property("base_url", exports_schemas.string().optional()),
|
|
4172
|
+
models: exports_schemas.list(ConfiguredModel),
|
|
4173
|
+
type: exports_schemas.stringLiteral("openai")
|
|
3722
4174
|
});
|
|
3723
4175
|
|
|
3724
4176
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TogetherAiModelProvider.mjs
|
|
3725
|
-
var TogetherAiModelProvider = object({
|
|
4177
|
+
var TogetherAiModelProvider = exports_schemas.object({
|
|
3726
4178
|
auth: ModelProviderAuth,
|
|
3727
|
-
baseUrl: property("base_url", string().optional()),
|
|
3728
|
-
models: list(ConfiguredModel),
|
|
3729
|
-
type: stringLiteral("together")
|
|
4179
|
+
baseUrl: exports_schemas.property("base_url", exports_schemas.string().optional()),
|
|
4180
|
+
models: exports_schemas.list(ConfiguredModel),
|
|
4181
|
+
type: exports_schemas.stringLiteral("together")
|
|
3730
4182
|
});
|
|
3731
4183
|
|
|
3732
4184
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ZaiModelProvider.mjs
|
|
3733
|
-
var ZaiModelProvider = object({
|
|
4185
|
+
var ZaiModelProvider = exports_schemas.object({
|
|
3734
4186
|
auth: ModelProviderAuth,
|
|
3735
|
-
baseUrl: property("base_url", string().optional()),
|
|
3736
|
-
models: list(ConfiguredModel),
|
|
3737
|
-
type: stringLiteral("zai")
|
|
4187
|
+
baseUrl: exports_schemas.property("base_url", exports_schemas.string().optional()),
|
|
4188
|
+
models: exports_schemas.list(ConfiguredModel),
|
|
4189
|
+
type: exports_schemas.stringLiteral("zai")
|
|
3738
4190
|
});
|
|
3739
4191
|
|
|
3740
4192
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ModelProviderManifest.mjs
|
|
3741
|
-
var ModelProviderManifest = undiscriminatedUnion([
|
|
4193
|
+
var ModelProviderManifest = exports_schemas.undiscriminatedUnion([
|
|
3742
4194
|
AlibabaModelProvider,
|
|
3743
4195
|
AnthropicModelProvider,
|
|
3744
4196
|
CustomModelProvider,
|
|
@@ -3751,232 +4203,249 @@ var ModelProviderManifest = undiscriminatedUnion([
|
|
|
3751
4203
|
]);
|
|
3752
4204
|
|
|
3753
4205
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/settings/resources/modelProviders/client/requests/CreateModelProviderRequest.mjs
|
|
3754
|
-
var CreateModelProviderRequest = object({
|
|
4206
|
+
var CreateModelProviderRequest = exports_schemas.object({
|
|
3755
4207
|
manifest: ModelProviderManifest
|
|
3756
4208
|
});
|
|
3757
4209
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/settings/resources/modelProviders/client/requests/UpdateModelProviderRequest.mjs
|
|
3758
|
-
var UpdateModelProviderRequest = object({
|
|
4210
|
+
var UpdateModelProviderRequest = exports_schemas.object({
|
|
3759
4211
|
manifest: ModelProviderManifest
|
|
3760
4212
|
});
|
|
4213
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/settings/resources/modelProviders/index.mjs
|
|
4214
|
+
var exports_modelProviders = {};
|
|
4215
|
+
__export(exports_modelProviders, {
|
|
4216
|
+
UpdateModelProviderRequest: () => UpdateModelProviderRequest,
|
|
4217
|
+
CreateModelProviderRequest: () => CreateModelProviderRequest
|
|
4218
|
+
});
|
|
3761
4219
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/DaytonaSandboxProviderAuth.mjs
|
|
3762
|
-
var DaytonaSandboxProviderAuth = object({
|
|
3763
|
-
apiKey: property("api_key", string())
|
|
4220
|
+
var DaytonaSandboxProviderAuth = exports_schemas.object({
|
|
4221
|
+
apiKey: exports_schemas.property("api_key", exports_schemas.string())
|
|
3764
4222
|
});
|
|
3765
4223
|
|
|
3766
4224
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/SandboxProviderManifest.mjs
|
|
3767
|
-
var SandboxProviderManifest = object({
|
|
4225
|
+
var SandboxProviderManifest = exports_schemas.object({
|
|
3768
4226
|
auth: DaytonaSandboxProviderAuth,
|
|
3769
|
-
autoArchiveIntervalInMinutes: property("auto_archive_interval_in_minutes", number()),
|
|
3770
|
-
autoDeleteIntervalInMinutes: property("auto_delete_interval_in_minutes", number()),
|
|
3771
|
-
autoStopIntervalInMinutes: property("auto_stop_interval_in_minutes", number()),
|
|
3772
|
-
execTimeoutMs: property("exec_timeout_ms", number()),
|
|
3773
|
-
type: stringLiteral("daytona")
|
|
4227
|
+
autoArchiveIntervalInMinutes: exports_schemas.property("auto_archive_interval_in_minutes", exports_schemas.number()),
|
|
4228
|
+
autoDeleteIntervalInMinutes: exports_schemas.property("auto_delete_interval_in_minutes", exports_schemas.number()),
|
|
4229
|
+
autoStopIntervalInMinutes: exports_schemas.property("auto_stop_interval_in_minutes", exports_schemas.number()),
|
|
4230
|
+
execTimeoutMs: exports_schemas.property("exec_timeout_ms", exports_schemas.number()),
|
|
4231
|
+
type: exports_schemas.stringLiteral("daytona")
|
|
3774
4232
|
});
|
|
3775
4233
|
|
|
3776
4234
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/settings/resources/sandboxProviders/client/requests/UpdateSandboxProviderRequest.mjs
|
|
3777
|
-
var UpdateSandboxProviderRequest = object({
|
|
4235
|
+
var UpdateSandboxProviderRequest = exports_schemas.object({
|
|
3778
4236
|
manifest: SandboxProviderManifest
|
|
3779
4237
|
});
|
|
4238
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/settings/resources/sandboxProviders/index.mjs
|
|
4239
|
+
var exports_sandboxProviders = {};
|
|
4240
|
+
__export(exports_sandboxProviders, {
|
|
4241
|
+
UpdateSandboxProviderRequest: () => UpdateSandboxProviderRequest
|
|
4242
|
+
});
|
|
3780
4243
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/SkillType.mjs
|
|
3781
|
-
var SkillType = stringLiteral("git");
|
|
4244
|
+
var SkillType = exports_schemas.stringLiteral("git");
|
|
3782
4245
|
|
|
3783
4246
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/SkillManifest.mjs
|
|
3784
|
-
var SkillManifest = object({
|
|
3785
|
-
description: string(),
|
|
4247
|
+
var SkillManifest = exports_schemas.object({
|
|
4248
|
+
description: exports_schemas.string(),
|
|
3786
4249
|
name: ResourceName,
|
|
3787
|
-
path: string().optional(),
|
|
3788
|
-
ref: string(),
|
|
4250
|
+
path: exports_schemas.string().optional(),
|
|
4251
|
+
ref: exports_schemas.string(),
|
|
3789
4252
|
type: SkillType,
|
|
3790
|
-
url: string()
|
|
4253
|
+
url: exports_schemas.string()
|
|
3791
4254
|
});
|
|
3792
4255
|
|
|
3793
4256
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/settings/resources/skills/client/requests/CreateSkillRequest.mjs
|
|
3794
|
-
var CreateSkillRequest = object({
|
|
4257
|
+
var CreateSkillRequest = exports_schemas.object({
|
|
3795
4258
|
manifest: SkillManifest
|
|
3796
4259
|
});
|
|
3797
4260
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/settings/resources/skills/client/requests/UpdateSkillRequest.mjs
|
|
3798
|
-
var UpdateSkillRequest = object({
|
|
4261
|
+
var UpdateSkillRequest = exports_schemas.object({
|
|
3799
4262
|
manifest: SkillManifest
|
|
3800
4263
|
});
|
|
4264
|
+
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/resources/settings/resources/skills/index.mjs
|
|
4265
|
+
var exports_skills = {};
|
|
4266
|
+
__export(exports_skills, {
|
|
4267
|
+
UpdateSkillRequest: () => UpdateSkillRequest,
|
|
4268
|
+
CreateSkillRequest: () => CreateSkillRequest
|
|
4269
|
+
});
|
|
3801
4270
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/BaseMcpAuthRequiredEvent.mjs
|
|
3802
|
-
var BaseMcpAuthRequiredEvent = object({
|
|
3803
|
-
createdAt: property("created_at", string()),
|
|
3804
|
-
id: string(),
|
|
3805
|
-
threadId: property("thread_id", string().nullable())
|
|
4271
|
+
var BaseMcpAuthRequiredEvent = exports_schemas.object({
|
|
4272
|
+
createdAt: exports_schemas.property("created_at", exports_schemas.string()),
|
|
4273
|
+
id: exports_schemas.string(),
|
|
4274
|
+
threadId: exports_schemas.property("thread_id", exports_schemas.string().nullable())
|
|
3806
4275
|
});
|
|
3807
4276
|
|
|
3808
4277
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpServerAuthInfo.mjs
|
|
3809
|
-
var McpServerAuthInfo = object({
|
|
3810
|
-
authUrl: property("auth_url", string()),
|
|
3811
|
-
id: string(),
|
|
3812
|
-
name: string()
|
|
4278
|
+
var McpServerAuthInfo = exports_schemas.object({
|
|
4279
|
+
authUrl: exports_schemas.property("auth_url", exports_schemas.string()),
|
|
4280
|
+
id: exports_schemas.string(),
|
|
4281
|
+
name: exports_schemas.string()
|
|
3813
4282
|
});
|
|
3814
4283
|
|
|
3815
4284
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpAuthRequiredEvent.mjs
|
|
3816
|
-
var McpAuthRequiredEvent = object({
|
|
3817
|
-
mcpServers: property("mcp_servers", list(McpServerAuthInfo)),
|
|
3818
|
-
type: stringLiteral("mcp.auth_required")
|
|
4285
|
+
var McpAuthRequiredEvent = exports_schemas.object({
|
|
4286
|
+
mcpServers: exports_schemas.property("mcp_servers", exports_schemas.list(McpServerAuthInfo)),
|
|
4287
|
+
type: exports_schemas.stringLiteral("mcp.auth_required")
|
|
3819
4288
|
}).extend(BaseMcpAuthRequiredEvent);
|
|
3820
4289
|
|
|
3821
4290
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ToolCallRef.mjs
|
|
3822
|
-
var ToolCallRef = object({
|
|
3823
|
-
id: string(),
|
|
3824
|
-
sourceEventId: property("source_event_id", string())
|
|
4291
|
+
var ToolCallRef = exports_schemas.object({
|
|
4292
|
+
id: exports_schemas.string(),
|
|
4293
|
+
sourceEventId: exports_schemas.property("source_event_id", exports_schemas.string())
|
|
3825
4294
|
});
|
|
3826
4295
|
|
|
3827
4296
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ToolApprovalRequiredEvent.mjs
|
|
3828
|
-
var ToolApprovalRequiredEvent = object({
|
|
3829
|
-
createdAt: property("created_at", string()),
|
|
3830
|
-
id: string(),
|
|
3831
|
-
threadId: property("thread_id", string()),
|
|
3832
|
-
toolCalls: property("tool_calls", list(ToolCallRef)),
|
|
3833
|
-
type: stringLiteral("tool.approval_required")
|
|
4297
|
+
var ToolApprovalRequiredEvent = exports_schemas.object({
|
|
4298
|
+
createdAt: exports_schemas.property("created_at", exports_schemas.string()),
|
|
4299
|
+
id: exports_schemas.string(),
|
|
4300
|
+
threadId: exports_schemas.property("thread_id", exports_schemas.string()),
|
|
4301
|
+
toolCalls: exports_schemas.property("tool_calls", exports_schemas.list(ToolCallRef)),
|
|
4302
|
+
type: exports_schemas.stringLiteral("tool.approval_required")
|
|
3834
4303
|
});
|
|
3835
4304
|
|
|
3836
4305
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ToolResponseRequiredEvent.mjs
|
|
3837
|
-
var ToolResponseRequiredEvent = object({
|
|
3838
|
-
createdAt: property("created_at", string()),
|
|
3839
|
-
id: string(),
|
|
3840
|
-
threadId: property("thread_id", string()),
|
|
3841
|
-
toolCalls: property("tool_calls", list(ToolCallRef)),
|
|
3842
|
-
type: stringLiteral("tool.response_required")
|
|
4306
|
+
var ToolResponseRequiredEvent = exports_schemas.object({
|
|
4307
|
+
createdAt: exports_schemas.property("created_at", exports_schemas.string()),
|
|
4308
|
+
id: exports_schemas.string(),
|
|
4309
|
+
threadId: exports_schemas.property("thread_id", exports_schemas.string()),
|
|
4310
|
+
toolCalls: exports_schemas.property("tool_calls", exports_schemas.list(ToolCallRef)),
|
|
4311
|
+
type: exports_schemas.stringLiteral("tool.response_required")
|
|
3843
4312
|
});
|
|
3844
4313
|
|
|
3845
4314
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ActionRequiredEvent.mjs
|
|
3846
|
-
var ActionRequiredEvent = undiscriminatedUnion([
|
|
4315
|
+
var ActionRequiredEvent = exports_schemas.undiscriminatedUnion([
|
|
3847
4316
|
McpAuthRequiredEvent,
|
|
3848
4317
|
ToolApprovalRequiredEvent,
|
|
3849
4318
|
ToolResponseRequiredEvent
|
|
3850
4319
|
]);
|
|
3851
4320
|
|
|
3852
4321
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/Agent.mjs
|
|
3853
|
-
var Agent = object({
|
|
3854
|
-
id: string(),
|
|
4322
|
+
var Agent = exports_schemas.object({
|
|
4323
|
+
id: exports_schemas.string(),
|
|
3855
4324
|
manifest: AgentSpec,
|
|
3856
4325
|
name: ResourceName
|
|
3857
4326
|
});
|
|
3858
4327
|
|
|
3859
4328
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/AgentInfo.mjs
|
|
3860
|
-
var AgentInfo = object({
|
|
3861
|
-
input: string(),
|
|
3862
|
-
model: string().optional(),
|
|
3863
|
-
name: string(),
|
|
3864
|
-
type: stringLiteral("dynamic")
|
|
4329
|
+
var AgentInfo = exports_schemas.object({
|
|
4330
|
+
input: exports_schemas.string(),
|
|
4331
|
+
model: exports_schemas.string().optional(),
|
|
4332
|
+
name: exports_schemas.string(),
|
|
4333
|
+
type: exports_schemas.stringLiteral("dynamic")
|
|
3865
4334
|
});
|
|
3866
4335
|
|
|
3867
4336
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/AgentParent.mjs
|
|
3868
|
-
var AgentParent = object({
|
|
3869
|
-
threadId: property("thread_id", string()),
|
|
3870
|
-
toolCallId: property("tool_call_id", string())
|
|
4337
|
+
var AgentParent = exports_schemas.object({
|
|
4338
|
+
threadId: exports_schemas.property("thread_id", exports_schemas.string()),
|
|
4339
|
+
toolCallId: exports_schemas.property("tool_call_id", exports_schemas.string())
|
|
3871
4340
|
});
|
|
3872
4341
|
|
|
3873
4342
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpAuthStatusStatus.mjs
|
|
3874
|
-
var McpAuthStatusStatus = enum_(["authenticated", "auth_required", "not_required"]);
|
|
4343
|
+
var McpAuthStatusStatus = exports_schemas.enum_(["authenticated", "auth_required", "not_required"]);
|
|
3875
4344
|
|
|
3876
4345
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpAuthStatus.mjs
|
|
3877
|
-
var McpAuthStatus = object({
|
|
3878
|
-
authorizationUrl: property("authorization_url", string().optional()),
|
|
4346
|
+
var McpAuthStatus = exports_schemas.object({
|
|
4347
|
+
authorizationUrl: exports_schemas.property("authorization_url", exports_schemas.string().optional()),
|
|
3879
4348
|
status: McpAuthStatusStatus
|
|
3880
4349
|
});
|
|
3881
4350
|
|
|
3882
4351
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpServerAuthPublicOne.mjs
|
|
3883
|
-
var McpServerAuthPublicOne = object({
|
|
3884
|
-
type: stringLiteral("header")
|
|
4352
|
+
var McpServerAuthPublicOne = exports_schemas.object({
|
|
4353
|
+
type: exports_schemas.stringLiteral("header")
|
|
3885
4354
|
});
|
|
3886
4355
|
|
|
3887
4356
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpServerAuthPublicZero.mjs
|
|
3888
|
-
var McpServerAuthPublicZero = object({
|
|
3889
|
-
type: stringLiteral("dcr")
|
|
4357
|
+
var McpServerAuthPublicZero = exports_schemas.object({
|
|
4358
|
+
type: exports_schemas.stringLiteral("dcr")
|
|
3890
4359
|
});
|
|
3891
4360
|
|
|
3892
4361
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpServerAuthPublic.mjs
|
|
3893
|
-
var McpServerAuthPublic = undiscriminatedUnion([McpServerAuthPublicZero, McpServerAuthPublicOne]);
|
|
4362
|
+
var McpServerAuthPublic = exports_schemas.undiscriminatedUnion([McpServerAuthPublicZero, McpServerAuthPublicOne]);
|
|
3894
4363
|
|
|
3895
4364
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/AvailableMcpServer.mjs
|
|
3896
|
-
var AvailableMcpServer = object({
|
|
4365
|
+
var AvailableMcpServer = exports_schemas.object({
|
|
3897
4366
|
auth: McpServerAuthPublic.optional(),
|
|
3898
|
-
authStatus: property("auth_status", McpAuthStatus),
|
|
4367
|
+
authStatus: exports_schemas.property("auth_status", McpAuthStatus),
|
|
3899
4368
|
name: ResourceName,
|
|
3900
|
-
url: string()
|
|
4369
|
+
url: exports_schemas.string()
|
|
3901
4370
|
});
|
|
3902
4371
|
|
|
3903
4372
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/AvailableModelProvider.mjs
|
|
3904
|
-
var AvailableModelProvider = object({
|
|
3905
|
-
name: string()
|
|
4373
|
+
var AvailableModelProvider = exports_schemas.object({
|
|
4374
|
+
name: exports_schemas.string()
|
|
3906
4375
|
});
|
|
3907
4376
|
|
|
3908
4377
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/AvailableModel.mjs
|
|
3909
|
-
var AvailableModel = object({
|
|
3910
|
-
modelId: property("model_id", string()),
|
|
3911
|
-
name: string(),
|
|
4378
|
+
var AvailableModel = exports_schemas.object({
|
|
4379
|
+
modelId: exports_schemas.property("model_id", exports_schemas.string()),
|
|
4380
|
+
name: exports_schemas.string(),
|
|
3912
4381
|
properties: ModelProperties,
|
|
3913
4382
|
provider: AvailableModelProvider
|
|
3914
4383
|
});
|
|
3915
4384
|
|
|
3916
4385
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/AvailableSkill.mjs
|
|
3917
|
-
var AvailableSkill = object({
|
|
3918
|
-
description: string(),
|
|
4386
|
+
var AvailableSkill = exports_schemas.object({
|
|
4387
|
+
description: exports_schemas.string(),
|
|
3919
4388
|
name: ResourceName
|
|
3920
4389
|
});
|
|
3921
4390
|
|
|
3922
4391
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/BaseThreadDoneEvent.mjs
|
|
3923
|
-
var BaseThreadDoneEvent = object({
|
|
4392
|
+
var BaseThreadDoneEvent = exports_schemas.object({
|
|
3924
4393
|
parent: AgentParent.optional(),
|
|
3925
|
-
threadId: property("thread_id", string()),
|
|
3926
|
-
title: string()
|
|
4394
|
+
threadId: exports_schemas.property("thread_id", exports_schemas.string()),
|
|
4395
|
+
title: exports_schemas.string()
|
|
3927
4396
|
});
|
|
3928
4397
|
|
|
3929
4398
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/CancelSessionResponse.mjs
|
|
3930
|
-
var CancelSessionResponse = object({});
|
|
4399
|
+
var CancelSessionResponse = exports_schemas.object({});
|
|
3931
4400
|
|
|
3932
4401
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/SandboxCapability.mjs
|
|
3933
|
-
var SandboxCapability = object({
|
|
3934
|
-
enabled: boolean()
|
|
4402
|
+
var SandboxCapability = exports_schemas.object({
|
|
4403
|
+
enabled: exports_schemas.boolean()
|
|
3935
4404
|
});
|
|
3936
4405
|
|
|
3937
4406
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/SettingsCapability.mjs
|
|
3938
|
-
var SettingsCapability = object({
|
|
3939
|
-
enabled: boolean()
|
|
4407
|
+
var SettingsCapability = exports_schemas.object({
|
|
4408
|
+
enabled: exports_schemas.boolean()
|
|
3940
4409
|
});
|
|
3941
4410
|
|
|
3942
4411
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/SkillCapability.mjs
|
|
3943
|
-
var SkillCapability = object({
|
|
3944
|
-
enabled: boolean(),
|
|
3945
|
-
reason: string().optional()
|
|
4412
|
+
var SkillCapability = exports_schemas.object({
|
|
4413
|
+
enabled: exports_schemas.boolean(),
|
|
4414
|
+
reason: exports_schemas.string().optional()
|
|
3946
4415
|
});
|
|
3947
4416
|
|
|
3948
4417
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/CapabilitiesData.mjs
|
|
3949
|
-
var CapabilitiesData = object({
|
|
4418
|
+
var CapabilitiesData = exports_schemas.object({
|
|
3950
4419
|
sandbox: SandboxCapability,
|
|
3951
4420
|
settings: SettingsCapability,
|
|
3952
4421
|
skill: SkillCapability
|
|
3953
4422
|
});
|
|
3954
4423
|
|
|
3955
4424
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/CatalogCustomModelProvider.mjs
|
|
3956
|
-
var CatalogCustomModelProvider = object({
|
|
3957
|
-
supportedReasoningEfforts: property("supported_reasoning_efforts", list(ReasoningEffort)),
|
|
3958
|
-
type: stringLiteral("custom")
|
|
4425
|
+
var CatalogCustomModelProvider = exports_schemas.object({
|
|
4426
|
+
supportedReasoningEfforts: exports_schemas.property("supported_reasoning_efforts", exports_schemas.list(ReasoningEffort)),
|
|
4427
|
+
type: exports_schemas.stringLiteral("custom")
|
|
3959
4428
|
});
|
|
3960
4429
|
|
|
3961
4430
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/CatalogMcpServer.mjs
|
|
3962
|
-
var CatalogMcpServer = object({
|
|
4431
|
+
var CatalogMcpServer = exports_schemas.object({
|
|
3963
4432
|
auth: McpServerManifestAuth.optional(),
|
|
3964
|
-
description: string(),
|
|
3965
|
-
logo: string().optional(),
|
|
4433
|
+
description: exports_schemas.string(),
|
|
4434
|
+
logo: exports_schemas.string().optional(),
|
|
3966
4435
|
name: ResourceName,
|
|
3967
4436
|
type: McpServerType,
|
|
3968
|
-
url: string()
|
|
4437
|
+
url: exports_schemas.string()
|
|
3969
4438
|
});
|
|
3970
4439
|
|
|
3971
4440
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/CatalogModel.mjs
|
|
3972
|
-
var CatalogModel = object({
|
|
3973
|
-
modelId: property("model_id", string()),
|
|
4441
|
+
var CatalogModel = exports_schemas.object({
|
|
4442
|
+
modelId: exports_schemas.property("model_id", exports_schemas.string()),
|
|
3974
4443
|
name: ResourceName,
|
|
3975
4444
|
properties: ModelProperties
|
|
3976
4445
|
});
|
|
3977
4446
|
|
|
3978
4447
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/CatalogWellKnownModelProviderType.mjs
|
|
3979
|
-
var CatalogWellKnownModelProviderType = enum_([
|
|
4448
|
+
var CatalogWellKnownModelProviderType = exports_schemas.enum_([
|
|
3980
4449
|
"openai",
|
|
3981
4450
|
"anthropic",
|
|
3982
4451
|
"google-gemini",
|
|
@@ -3988,493 +4457,493 @@ var CatalogWellKnownModelProviderType = enum_([
|
|
|
3988
4457
|
]);
|
|
3989
4458
|
|
|
3990
4459
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/CatalogWellKnownModelProvider.mjs
|
|
3991
|
-
var CatalogWellKnownModelProvider = object({
|
|
3992
|
-
logo: string().optional(),
|
|
3993
|
-
models: list(CatalogModel),
|
|
4460
|
+
var CatalogWellKnownModelProvider = exports_schemas.object({
|
|
4461
|
+
logo: exports_schemas.string().optional(),
|
|
4462
|
+
models: exports_schemas.list(CatalogModel),
|
|
3994
4463
|
type: CatalogWellKnownModelProviderType
|
|
3995
4464
|
});
|
|
3996
4465
|
|
|
3997
4466
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/CatalogModelProvider.mjs
|
|
3998
|
-
var CatalogModelProvider = undiscriminatedUnion([CatalogWellKnownModelProvider, CatalogCustomModelProvider]);
|
|
4467
|
+
var CatalogModelProvider = exports_schemas.undiscriminatedUnion([CatalogWellKnownModelProvider, CatalogCustomModelProvider]);
|
|
3999
4468
|
|
|
4000
4469
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/CatalogSandboxProvider.mjs
|
|
4001
|
-
var CatalogSandboxProvider = object({
|
|
4002
|
-
autoArchiveIntervalInMinutes: property("auto_archive_interval_in_minutes", number()),
|
|
4003
|
-
autoDeleteIntervalInMinutes: property("auto_delete_interval_in_minutes", number()),
|
|
4004
|
-
autoStopIntervalInMinutes: property("auto_stop_interval_in_minutes", number()),
|
|
4005
|
-
execTimeoutMs: property("exec_timeout_ms", number()),
|
|
4006
|
-
type: stringLiteral("daytona")
|
|
4470
|
+
var CatalogSandboxProvider = exports_schemas.object({
|
|
4471
|
+
autoArchiveIntervalInMinutes: exports_schemas.property("auto_archive_interval_in_minutes", exports_schemas.number()),
|
|
4472
|
+
autoDeleteIntervalInMinutes: exports_schemas.property("auto_delete_interval_in_minutes", exports_schemas.number()),
|
|
4473
|
+
autoStopIntervalInMinutes: exports_schemas.property("auto_stop_interval_in_minutes", exports_schemas.number()),
|
|
4474
|
+
execTimeoutMs: exports_schemas.property("exec_timeout_ms", exports_schemas.number()),
|
|
4475
|
+
type: exports_schemas.stringLiteral("daytona")
|
|
4007
4476
|
});
|
|
4008
4477
|
|
|
4009
4478
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/CatalogSkill.mjs
|
|
4010
|
-
var CatalogSkill = object({
|
|
4011
|
-
description: string(),
|
|
4479
|
+
var CatalogSkill = exports_schemas.object({
|
|
4480
|
+
description: exports_schemas.string(),
|
|
4012
4481
|
name: ResourceName,
|
|
4013
|
-
path: string().optional(),
|
|
4014
|
-
ref: string(),
|
|
4482
|
+
path: exports_schemas.string().optional(),
|
|
4483
|
+
ref: exports_schemas.string(),
|
|
4015
4484
|
type: SkillType,
|
|
4016
|
-
url: string()
|
|
4485
|
+
url: exports_schemas.string()
|
|
4017
4486
|
});
|
|
4018
4487
|
|
|
4019
4488
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ChatCompletionChunkDeltaToolCallFunction.mjs
|
|
4020
|
-
var ChatCompletionChunkDeltaToolCallFunction = object({
|
|
4021
|
-
arguments: string().optional(),
|
|
4022
|
-
name: string().optional()
|
|
4489
|
+
var ChatCompletionChunkDeltaToolCallFunction = exports_schemas.object({
|
|
4490
|
+
arguments: exports_schemas.string().optional(),
|
|
4491
|
+
name: exports_schemas.string().optional()
|
|
4023
4492
|
});
|
|
4024
4493
|
|
|
4025
4494
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ChatCompletionChunkDeltaToolCall.mjs
|
|
4026
|
-
var ChatCompletionChunkDeltaToolCall = object({
|
|
4495
|
+
var ChatCompletionChunkDeltaToolCall = exports_schemas.object({
|
|
4027
4496
|
function: ChatCompletionChunkDeltaToolCallFunction.optional(),
|
|
4028
|
-
id: string().optional(),
|
|
4029
|
-
index: number(),
|
|
4030
|
-
type: stringLiteral("function").optional()
|
|
4497
|
+
id: exports_schemas.string().optional(),
|
|
4498
|
+
index: exports_schemas.number(),
|
|
4499
|
+
type: exports_schemas.stringLiteral("function").optional()
|
|
4031
4500
|
});
|
|
4032
4501
|
|
|
4033
4502
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ChatCompletionContentPartRefusal.mjs
|
|
4034
|
-
var ChatCompletionContentPartRefusal = object({
|
|
4035
|
-
refusal: string(),
|
|
4036
|
-
type: stringLiteral("refusal")
|
|
4503
|
+
var ChatCompletionContentPartRefusal = exports_schemas.object({
|
|
4504
|
+
refusal: exports_schemas.string(),
|
|
4505
|
+
type: exports_schemas.stringLiteral("refusal")
|
|
4037
4506
|
});
|
|
4038
4507
|
|
|
4039
4508
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ChatCompletionContentPartText.mjs
|
|
4040
|
-
var ChatCompletionContentPartText = object({
|
|
4041
|
-
text: string(),
|
|
4042
|
-
type: stringLiteral("text")
|
|
4509
|
+
var ChatCompletionContentPartText = exports_schemas.object({
|
|
4510
|
+
text: exports_schemas.string(),
|
|
4511
|
+
type: exports_schemas.stringLiteral("text")
|
|
4043
4512
|
});
|
|
4044
4513
|
|
|
4045
4514
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ChatCompletionMessageToolCallFunction.mjs
|
|
4046
|
-
var ChatCompletionMessageToolCallFunction = object({
|
|
4047
|
-
arguments: string(),
|
|
4048
|
-
name: string()
|
|
4515
|
+
var ChatCompletionMessageToolCallFunction = exports_schemas.object({
|
|
4516
|
+
arguments: exports_schemas.string(),
|
|
4517
|
+
name: exports_schemas.string()
|
|
4049
4518
|
});
|
|
4050
4519
|
|
|
4051
4520
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ChatCompletionMessageToolCall.mjs
|
|
4052
|
-
var ChatCompletionMessageToolCall = object({
|
|
4521
|
+
var ChatCompletionMessageToolCall = exports_schemas.object({
|
|
4053
4522
|
function: ChatCompletionMessageToolCallFunction,
|
|
4054
|
-
id: string(),
|
|
4055
|
-
type: stringLiteral("function")
|
|
4523
|
+
id: exports_schemas.string(),
|
|
4524
|
+
type: exports_schemas.stringLiteral("function")
|
|
4056
4525
|
});
|
|
4057
4526
|
|
|
4058
4527
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ConfiguredMcpServer.mjs
|
|
4059
|
-
var ConfiguredMcpServer = object({
|
|
4060
|
-
authStatus: property("auth_status", McpAuthStatus),
|
|
4528
|
+
var ConfiguredMcpServer = exports_schemas.object({
|
|
4529
|
+
authStatus: exports_schemas.property("auth_status", McpAuthStatus),
|
|
4061
4530
|
manifest: McpServerManifest,
|
|
4062
4531
|
name: ResourceName
|
|
4063
4532
|
});
|
|
4064
4533
|
|
|
4065
4534
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ConfiguredModelProvider.mjs
|
|
4066
|
-
var ConfiguredModelProvider = object({
|
|
4535
|
+
var ConfiguredModelProvider = exports_schemas.object({
|
|
4067
4536
|
manifest: ModelProviderManifest,
|
|
4068
4537
|
name: ResourceName
|
|
4069
4538
|
});
|
|
4070
4539
|
|
|
4071
4540
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/SandboxBuildStatus.mjs
|
|
4072
|
-
var SandboxBuildStatus = enum_(["pending", "ready", "failed"]);
|
|
4541
|
+
var SandboxBuildStatus = exports_schemas.enum_(["pending", "ready", "failed"]);
|
|
4073
4542
|
|
|
4074
4543
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ConfiguredSandboxProvider.mjs
|
|
4075
|
-
var ConfiguredSandboxProvider = object({
|
|
4544
|
+
var ConfiguredSandboxProvider = exports_schemas.object({
|
|
4076
4545
|
manifest: SandboxProviderManifest,
|
|
4077
4546
|
status: SandboxBuildStatus,
|
|
4078
|
-
statusReason: property("status_reason", string().nullable())
|
|
4547
|
+
statusReason: exports_schemas.property("status_reason", exports_schemas.string().nullable())
|
|
4079
4548
|
});
|
|
4080
4549
|
|
|
4081
4550
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ConfiguredSkill.mjs
|
|
4082
|
-
var ConfiguredSkill = object({
|
|
4551
|
+
var ConfiguredSkill = exports_schemas.object({
|
|
4083
4552
|
manifest: SkillManifest,
|
|
4084
4553
|
name: ResourceName
|
|
4085
4554
|
});
|
|
4086
4555
|
|
|
4087
4556
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/DeleteAgentResponse.mjs
|
|
4088
|
-
var DeleteAgentResponse = object({});
|
|
4557
|
+
var DeleteAgentResponse = exports_schemas.object({});
|
|
4089
4558
|
|
|
4090
4559
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpToolInfo.mjs
|
|
4091
|
-
var McpToolInfo = object({
|
|
4092
|
-
name: string(),
|
|
4093
|
-
serverId: property("server_id", string()),
|
|
4094
|
-
serverName: property("server_name", string()),
|
|
4095
|
-
type: stringLiteral("mcp")
|
|
4560
|
+
var McpToolInfo = exports_schemas.object({
|
|
4561
|
+
name: exports_schemas.string(),
|
|
4562
|
+
serverId: exports_schemas.property("server_id", exports_schemas.string()),
|
|
4563
|
+
serverName: exports_schemas.property("server_name", exports_schemas.string()),
|
|
4564
|
+
type: exports_schemas.stringLiteral("mcp")
|
|
4096
4565
|
});
|
|
4097
4566
|
|
|
4098
4567
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TrueFoundrySystemToolInfo.mjs
|
|
4099
|
-
var TrueFoundrySystemToolInfo = object({
|
|
4100
|
-
name: string(),
|
|
4101
|
-
type: stringLiteral("truefoundry-system")
|
|
4568
|
+
var TrueFoundrySystemToolInfo = exports_schemas.object({
|
|
4569
|
+
name: exports_schemas.string(),
|
|
4570
|
+
type: exports_schemas.stringLiteral("truefoundry-system")
|
|
4102
4571
|
});
|
|
4103
4572
|
|
|
4104
4573
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ToolInfo.mjs
|
|
4105
|
-
var ToolInfo = undiscriminatedUnion([McpToolInfo, TrueFoundrySystemToolInfo]);
|
|
4574
|
+
var ToolInfo = exports_schemas.undiscriminatedUnion([McpToolInfo, TrueFoundrySystemToolInfo]);
|
|
4106
4575
|
|
|
4107
4576
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ExtendedChunkDeltaToolCall.mjs
|
|
4108
|
-
var ExtendedChunkDeltaToolCall = object({
|
|
4109
|
-
providerSpecificFields: property("provider_specific_fields", record(string(), unknown()).optional()),
|
|
4110
|
-
toolInfo: property("tool_info", ToolInfo.optional())
|
|
4577
|
+
var ExtendedChunkDeltaToolCall = exports_schemas.object({
|
|
4578
|
+
providerSpecificFields: exports_schemas.property("provider_specific_fields", exports_schemas.record(exports_schemas.string(), exports_schemas.unknown()).optional()),
|
|
4579
|
+
toolInfo: exports_schemas.property("tool_info", ToolInfo.optional())
|
|
4111
4580
|
}).extend(ChatCompletionChunkDeltaToolCall);
|
|
4112
4581
|
|
|
4113
4582
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/FinishReason.mjs
|
|
4114
|
-
var FinishReason = enum_(["stop", "length", "tool_calls", "content_filter", "function_call"]);
|
|
4583
|
+
var FinishReason = exports_schemas.enum_(["stop", "length", "tool_calls", "content_filter", "function_call"]);
|
|
4115
4584
|
|
|
4116
4585
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/GetAgentResponse.mjs
|
|
4117
|
-
var GetAgentResponse = object({
|
|
4586
|
+
var GetAgentResponse = exports_schemas.object({
|
|
4118
4587
|
data: Agent
|
|
4119
4588
|
});
|
|
4120
4589
|
|
|
4121
4590
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/GetCapabilitiesResponse.mjs
|
|
4122
|
-
var GetCapabilitiesResponse = object({
|
|
4591
|
+
var GetCapabilitiesResponse = exports_schemas.object({
|
|
4123
4592
|
data: CapabilitiesData
|
|
4124
4593
|
});
|
|
4125
4594
|
|
|
4126
4595
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/GetMcpServerCatalogResponse.mjs
|
|
4127
|
-
var GetMcpServerCatalogResponse = object({
|
|
4128
|
-
data: list(CatalogMcpServer)
|
|
4596
|
+
var GetMcpServerCatalogResponse = exports_schemas.object({
|
|
4597
|
+
data: exports_schemas.list(CatalogMcpServer)
|
|
4129
4598
|
});
|
|
4130
4599
|
|
|
4131
4600
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/GetMcpServerResponse.mjs
|
|
4132
|
-
var GetMcpServerResponse = object({
|
|
4601
|
+
var GetMcpServerResponse = exports_schemas.object({
|
|
4133
4602
|
data: ConfiguredMcpServer
|
|
4134
4603
|
});
|
|
4135
4604
|
|
|
4136
4605
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/GetMeResponseType.mjs
|
|
4137
|
-
var GetMeResponseType = enum_(["default", "oidc-connected"]);
|
|
4606
|
+
var GetMeResponseType = exports_schemas.enum_(["default", "oidc-connected"]);
|
|
4138
4607
|
|
|
4139
4608
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/GetMeResponse.mjs
|
|
4140
|
-
var GetMeResponse = object({
|
|
4141
|
-
email: string(),
|
|
4142
|
-
role: string(),
|
|
4609
|
+
var GetMeResponse = exports_schemas.object({
|
|
4610
|
+
email: exports_schemas.string(),
|
|
4611
|
+
role: exports_schemas.string(),
|
|
4143
4612
|
type: GetMeResponseType
|
|
4144
4613
|
});
|
|
4145
4614
|
|
|
4146
4615
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/GetModelProviderCatalogResponse.mjs
|
|
4147
|
-
var GetModelProviderCatalogResponse = object({
|
|
4148
|
-
data: list(CatalogModelProvider)
|
|
4616
|
+
var GetModelProviderCatalogResponse = exports_schemas.object({
|
|
4617
|
+
data: exports_schemas.list(CatalogModelProvider)
|
|
4149
4618
|
});
|
|
4150
4619
|
|
|
4151
4620
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/GetModelProviderResponse.mjs
|
|
4152
|
-
var GetModelProviderResponse = object({
|
|
4621
|
+
var GetModelProviderResponse = exports_schemas.object({
|
|
4153
4622
|
data: ConfiguredModelProvider
|
|
4154
4623
|
});
|
|
4155
4624
|
|
|
4156
4625
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/GetSandboxProviderCatalogResponse.mjs
|
|
4157
|
-
var GetSandboxProviderCatalogResponse = object({
|
|
4158
|
-
data: list(CatalogSandboxProvider)
|
|
4626
|
+
var GetSandboxProviderCatalogResponse = exports_schemas.object({
|
|
4627
|
+
data: exports_schemas.list(CatalogSandboxProvider)
|
|
4159
4628
|
});
|
|
4160
4629
|
|
|
4161
4630
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/GetSandboxProviderResponse.mjs
|
|
4162
|
-
var GetSandboxProviderResponse = object({
|
|
4631
|
+
var GetSandboxProviderResponse = exports_schemas.object({
|
|
4163
4632
|
data: ConfiguredSandboxProvider
|
|
4164
4633
|
});
|
|
4165
4634
|
|
|
4166
4635
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/SessionAgentInline.mjs
|
|
4167
|
-
var SessionAgentInline = object({
|
|
4636
|
+
var SessionAgentInline = exports_schemas.object({
|
|
4168
4637
|
spec: AgentSpec,
|
|
4169
|
-
type: stringLiteral("inline")
|
|
4638
|
+
type: exports_schemas.stringLiteral("inline")
|
|
4170
4639
|
});
|
|
4171
4640
|
|
|
4172
4641
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/SessionAgentReference.mjs
|
|
4173
|
-
var SessionAgentReference = object({
|
|
4174
|
-
id: string(),
|
|
4175
|
-
name: string().nullable(),
|
|
4176
|
-
type: stringLiteral("reference")
|
|
4642
|
+
var SessionAgentReference = exports_schemas.object({
|
|
4643
|
+
id: exports_schemas.string(),
|
|
4644
|
+
name: exports_schemas.string().nullable(),
|
|
4645
|
+
type: exports_schemas.stringLiteral("reference")
|
|
4177
4646
|
});
|
|
4178
4647
|
|
|
4179
4648
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/SessionAgent.mjs
|
|
4180
|
-
var SessionAgent = undiscriminatedUnion([SessionAgentInline, SessionAgentReference]);
|
|
4649
|
+
var SessionAgent = exports_schemas.undiscriminatedUnion([SessionAgentInline, SessionAgentReference]);
|
|
4181
4650
|
|
|
4182
4651
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/Session.mjs
|
|
4183
|
-
var Session = object({
|
|
4652
|
+
var Session = exports_schemas.object({
|
|
4184
4653
|
agent: SessionAgent,
|
|
4185
|
-
createdAt: property("created_at", string()),
|
|
4186
|
-
createdBy: property("created_by", string()),
|
|
4187
|
-
id: string(),
|
|
4188
|
-
title: string().nullable(),
|
|
4189
|
-
updatedAt: property("updated_at", string())
|
|
4654
|
+
createdAt: exports_schemas.property("created_at", exports_schemas.string()),
|
|
4655
|
+
createdBy: exports_schemas.property("created_by", exports_schemas.string()),
|
|
4656
|
+
id: exports_schemas.string(),
|
|
4657
|
+
title: exports_schemas.string().nullable(),
|
|
4658
|
+
updatedAt: exports_schemas.property("updated_at", exports_schemas.string())
|
|
4190
4659
|
});
|
|
4191
4660
|
|
|
4192
4661
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/GetSessionResponse.mjs
|
|
4193
|
-
var GetSessionResponse = object({
|
|
4662
|
+
var GetSessionResponse = exports_schemas.object({
|
|
4194
4663
|
data: Session
|
|
4195
4664
|
});
|
|
4196
4665
|
|
|
4197
4666
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/GetSkillCatalogResponse.mjs
|
|
4198
|
-
var GetSkillCatalogResponse = object({
|
|
4199
|
-
data: list(CatalogSkill)
|
|
4667
|
+
var GetSkillCatalogResponse = exports_schemas.object({
|
|
4668
|
+
data: exports_schemas.list(CatalogSkill)
|
|
4200
4669
|
});
|
|
4201
4670
|
|
|
4202
4671
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/GetSkillResponse.mjs
|
|
4203
|
-
var GetSkillResponse = object({
|
|
4672
|
+
var GetSkillResponse = exports_schemas.object({
|
|
4204
4673
|
data: ConfiguredSkill
|
|
4205
4674
|
});
|
|
4206
4675
|
|
|
4207
4676
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TurnStateCancelledMetrics.mjs
|
|
4208
|
-
var TurnStateCancelledMetrics = object({
|
|
4209
|
-
totalCacheReadTokens: property("total_cache_read_tokens", number().optional()),
|
|
4210
|
-
totalCacheWriteTokens: property("total_cache_write_tokens", number().optional()),
|
|
4211
|
-
totalCostInUsd: property("total_cost_in_usd", number().optional()),
|
|
4212
|
-
totalInputTokens: property("total_input_tokens", number().optional()),
|
|
4213
|
-
totalOutputTokens: property("total_output_tokens", number().optional()),
|
|
4214
|
-
totalReasoningTokens: property("total_reasoning_tokens", number().optional()),
|
|
4215
|
-
totalTokens: property("total_tokens", number().optional())
|
|
4677
|
+
var TurnStateCancelledMetrics = exports_schemas.object({
|
|
4678
|
+
totalCacheReadTokens: exports_schemas.property("total_cache_read_tokens", exports_schemas.number().optional()),
|
|
4679
|
+
totalCacheWriteTokens: exports_schemas.property("total_cache_write_tokens", exports_schemas.number().optional()),
|
|
4680
|
+
totalCostInUsd: exports_schemas.property("total_cost_in_usd", exports_schemas.number().optional()),
|
|
4681
|
+
totalInputTokens: exports_schemas.property("total_input_tokens", exports_schemas.number().optional()),
|
|
4682
|
+
totalOutputTokens: exports_schemas.property("total_output_tokens", exports_schemas.number().optional()),
|
|
4683
|
+
totalReasoningTokens: exports_schemas.property("total_reasoning_tokens", exports_schemas.number().optional()),
|
|
4684
|
+
totalTokens: exports_schemas.property("total_tokens", exports_schemas.number().optional())
|
|
4216
4685
|
});
|
|
4217
4686
|
|
|
4218
4687
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TurnStateCancelledReason.mjs
|
|
4219
|
-
var TurnStateCancelledReason = enum_(["server-execution-timeout", "client-cancelled", "cancelled-for-next-turn", "abandoned"]);
|
|
4688
|
+
var TurnStateCancelledReason = exports_schemas.enum_(["server-execution-timeout", "client-cancelled", "cancelled-for-next-turn", "abandoned"]);
|
|
4220
4689
|
|
|
4221
4690
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TurnStateCancelled.mjs
|
|
4222
|
-
var TurnStateCancelled = object({
|
|
4223
|
-
completedAt: property("completed_at", string()),
|
|
4691
|
+
var TurnStateCancelled = exports_schemas.object({
|
|
4692
|
+
completedAt: exports_schemas.property("completed_at", exports_schemas.string()),
|
|
4224
4693
|
metrics: TurnStateCancelledMetrics.optional(),
|
|
4225
4694
|
reason: TurnStateCancelledReason,
|
|
4226
|
-
status: stringLiteral("cancelled")
|
|
4695
|
+
status: exports_schemas.stringLiteral("cancelled")
|
|
4227
4696
|
});
|
|
4228
4697
|
|
|
4229
4698
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ModelMessageEventContentOneItem.mjs
|
|
4230
|
-
var ModelMessageEventContentOneItem = undiscriminatedUnion([ChatCompletionContentPartText, ChatCompletionContentPartRefusal]);
|
|
4699
|
+
var ModelMessageEventContentOneItem = exports_schemas.undiscriminatedUnion([ChatCompletionContentPartText, ChatCompletionContentPartRefusal]);
|
|
4231
4700
|
|
|
4232
4701
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ModelMessageEventContent.mjs
|
|
4233
|
-
var ModelMessageEventContent = undiscriminatedUnion([
|
|
4234
|
-
string(),
|
|
4235
|
-
list(ModelMessageEventContentOneItem)
|
|
4702
|
+
var ModelMessageEventContent = exports_schemas.undiscriminatedUnion([
|
|
4703
|
+
exports_schemas.string(),
|
|
4704
|
+
exports_schemas.list(ModelMessageEventContentOneItem)
|
|
4236
4705
|
]);
|
|
4237
4706
|
|
|
4238
4707
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ModelMessageUsageInputTokensBreakdown.mjs
|
|
4239
|
-
var ModelMessageUsageInputTokensBreakdown = object({
|
|
4240
|
-
harness: number(),
|
|
4241
|
-
instructions: number(),
|
|
4242
|
-
messages: number(),
|
|
4243
|
-
skills: number(),
|
|
4244
|
-
toolDefinitions: property("tool_definitions", number())
|
|
4708
|
+
var ModelMessageUsageInputTokensBreakdown = exports_schemas.object({
|
|
4709
|
+
harness: exports_schemas.number(),
|
|
4710
|
+
instructions: exports_schemas.number(),
|
|
4711
|
+
messages: exports_schemas.number(),
|
|
4712
|
+
skills: exports_schemas.number(),
|
|
4713
|
+
toolDefinitions: exports_schemas.property("tool_definitions", exports_schemas.number())
|
|
4245
4714
|
});
|
|
4246
4715
|
|
|
4247
4716
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ModelMessageUsage.mjs
|
|
4248
|
-
var ModelMessageUsage = object({
|
|
4249
|
-
cacheReadTokens: property("cache_read_tokens", number().optional()),
|
|
4250
|
-
cacheWriteTokens: property("cache_write_tokens", number().optional()),
|
|
4251
|
-
inputTokens: property("input_tokens", number()),
|
|
4252
|
-
inputTokensBreakdown: property("input_tokens_breakdown", ModelMessageUsageInputTokensBreakdown),
|
|
4253
|
-
outputTokens: property("output_tokens", number())
|
|
4717
|
+
var ModelMessageUsage = exports_schemas.object({
|
|
4718
|
+
cacheReadTokens: exports_schemas.property("cache_read_tokens", exports_schemas.number().optional()),
|
|
4719
|
+
cacheWriteTokens: exports_schemas.property("cache_write_tokens", exports_schemas.number().optional()),
|
|
4720
|
+
inputTokens: exports_schemas.property("input_tokens", exports_schemas.number()),
|
|
4721
|
+
inputTokensBreakdown: exports_schemas.property("input_tokens_breakdown", ModelMessageUsageInputTokensBreakdown),
|
|
4722
|
+
outputTokens: exports_schemas.property("output_tokens", exports_schemas.number())
|
|
4254
4723
|
});
|
|
4255
4724
|
|
|
4256
4725
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/RawToolCall.mjs
|
|
4257
|
-
var RawToolCall = object({
|
|
4258
|
-
providerSpecificFields: property("provider_specific_fields", record(string(), unknown()).optional())
|
|
4726
|
+
var RawToolCall = exports_schemas.object({
|
|
4727
|
+
providerSpecificFields: exports_schemas.property("provider_specific_fields", exports_schemas.record(exports_schemas.string(), exports_schemas.unknown()).optional())
|
|
4259
4728
|
}).extend(ChatCompletionMessageToolCall);
|
|
4260
4729
|
|
|
4261
4730
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ToolCall.mjs
|
|
4262
|
-
var ToolCall = object({
|
|
4263
|
-
toolInfo: property("tool_info", ToolInfo)
|
|
4731
|
+
var ToolCall = exports_schemas.object({
|
|
4732
|
+
toolInfo: exports_schemas.property("tool_info", ToolInfo)
|
|
4264
4733
|
}).extend(RawToolCall);
|
|
4265
4734
|
|
|
4266
4735
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ModelMessageEvent.mjs
|
|
4267
|
-
var ModelMessageEvent = object({
|
|
4736
|
+
var ModelMessageEvent = exports_schemas.object({
|
|
4268
4737
|
content: ModelMessageEventContent.optionalNullable(),
|
|
4269
|
-
createdAt: property("created_at", string()),
|
|
4270
|
-
finishReason: property("finish_reason", FinishReason.optionalNullable()),
|
|
4271
|
-
id: string(),
|
|
4272
|
-
name: string().optional(),
|
|
4273
|
-
reasoningContent: property("reasoning_content", string().optional()),
|
|
4274
|
-
refusal: string().optionalNullable(),
|
|
4275
|
-
threadId: property("thread_id", string()),
|
|
4276
|
-
toolCalls: property("tool_calls", list(ToolCall).optional()),
|
|
4277
|
-
type: stringLiteral("model.message"),
|
|
4738
|
+
createdAt: exports_schemas.property("created_at", exports_schemas.string()),
|
|
4739
|
+
finishReason: exports_schemas.property("finish_reason", FinishReason.optionalNullable()),
|
|
4740
|
+
id: exports_schemas.string(),
|
|
4741
|
+
name: exports_schemas.string().optional(),
|
|
4742
|
+
reasoningContent: exports_schemas.property("reasoning_content", exports_schemas.string().optional()),
|
|
4743
|
+
refusal: exports_schemas.string().optionalNullable(),
|
|
4744
|
+
threadId: exports_schemas.property("thread_id", exports_schemas.string()),
|
|
4745
|
+
toolCalls: exports_schemas.property("tool_calls", exports_schemas.list(ToolCall).optional()),
|
|
4746
|
+
type: exports_schemas.stringLiteral("model.message"),
|
|
4278
4747
|
usage: ModelMessageUsage.optional()
|
|
4279
4748
|
});
|
|
4280
4749
|
|
|
4281
4750
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TurnMetrics.mjs
|
|
4282
|
-
var TurnMetrics = object({
|
|
4283
|
-
totalCacheReadTokens: property("total_cache_read_tokens", number().optional()),
|
|
4284
|
-
totalCacheWriteTokens: property("total_cache_write_tokens", number().optional()),
|
|
4285
|
-
totalCostInUsd: property("total_cost_in_usd", number().optional()),
|
|
4286
|
-
totalInputTokens: property("total_input_tokens", number().optional()),
|
|
4287
|
-
totalOutputTokens: property("total_output_tokens", number().optional()),
|
|
4288
|
-
totalReasoningTokens: property("total_reasoning_tokens", number().optional()),
|
|
4289
|
-
totalTokens: property("total_tokens", number().optional())
|
|
4751
|
+
var TurnMetrics = exports_schemas.object({
|
|
4752
|
+
totalCacheReadTokens: exports_schemas.property("total_cache_read_tokens", exports_schemas.number().optional()),
|
|
4753
|
+
totalCacheWriteTokens: exports_schemas.property("total_cache_write_tokens", exports_schemas.number().optional()),
|
|
4754
|
+
totalCostInUsd: exports_schemas.property("total_cost_in_usd", exports_schemas.number().optional()),
|
|
4755
|
+
totalInputTokens: exports_schemas.property("total_input_tokens", exports_schemas.number().optional()),
|
|
4756
|
+
totalOutputTokens: exports_schemas.property("total_output_tokens", exports_schemas.number().optional()),
|
|
4757
|
+
totalReasoningTokens: exports_schemas.property("total_reasoning_tokens", exports_schemas.number().optional()),
|
|
4758
|
+
totalTokens: exports_schemas.property("total_tokens", exports_schemas.number().optional())
|
|
4290
4759
|
});
|
|
4291
4760
|
|
|
4292
4761
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TurnStateDone.mjs
|
|
4293
|
-
var TurnStateDone = object({
|
|
4294
|
-
completedAt: property("completed_at", string()),
|
|
4762
|
+
var TurnStateDone = exports_schemas.object({
|
|
4763
|
+
completedAt: exports_schemas.property("completed_at", exports_schemas.string()),
|
|
4295
4764
|
metrics: TurnMetrics.optional(),
|
|
4296
4765
|
output: ModelMessageEvent.nullable(),
|
|
4297
|
-
requiredActions: property("required_actions", list(ActionRequiredEvent)),
|
|
4298
|
-
status: stringLiteral("done")
|
|
4766
|
+
requiredActions: exports_schemas.property("required_actions", exports_schemas.list(ActionRequiredEvent)),
|
|
4767
|
+
status: exports_schemas.stringLiteral("done")
|
|
4299
4768
|
});
|
|
4300
4769
|
|
|
4301
4770
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TurnStateErrorMetrics.mjs
|
|
4302
|
-
var TurnStateErrorMetrics = object({
|
|
4303
|
-
totalCacheReadTokens: property("total_cache_read_tokens", number().optional()),
|
|
4304
|
-
totalCacheWriteTokens: property("total_cache_write_tokens", number().optional()),
|
|
4305
|
-
totalCostInUsd: property("total_cost_in_usd", number().optional()),
|
|
4306
|
-
totalInputTokens: property("total_input_tokens", number().optional()),
|
|
4307
|
-
totalOutputTokens: property("total_output_tokens", number().optional()),
|
|
4308
|
-
totalReasoningTokens: property("total_reasoning_tokens", number().optional()),
|
|
4309
|
-
totalTokens: property("total_tokens", number().optional())
|
|
4771
|
+
var TurnStateErrorMetrics = exports_schemas.object({
|
|
4772
|
+
totalCacheReadTokens: exports_schemas.property("total_cache_read_tokens", exports_schemas.number().optional()),
|
|
4773
|
+
totalCacheWriteTokens: exports_schemas.property("total_cache_write_tokens", exports_schemas.number().optional()),
|
|
4774
|
+
totalCostInUsd: exports_schemas.property("total_cost_in_usd", exports_schemas.number().optional()),
|
|
4775
|
+
totalInputTokens: exports_schemas.property("total_input_tokens", exports_schemas.number().optional()),
|
|
4776
|
+
totalOutputTokens: exports_schemas.property("total_output_tokens", exports_schemas.number().optional()),
|
|
4777
|
+
totalReasoningTokens: exports_schemas.property("total_reasoning_tokens", exports_schemas.number().optional()),
|
|
4778
|
+
totalTokens: exports_schemas.property("total_tokens", exports_schemas.number().optional())
|
|
4310
4779
|
});
|
|
4311
4780
|
|
|
4312
4781
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TurnStateError.mjs
|
|
4313
|
-
var TurnStateError = object({
|
|
4314
|
-
completedAt: property("completed_at", string()),
|
|
4315
|
-
message: string(),
|
|
4782
|
+
var TurnStateError = exports_schemas.object({
|
|
4783
|
+
completedAt: exports_schemas.property("completed_at", exports_schemas.string()),
|
|
4784
|
+
message: exports_schemas.string(),
|
|
4316
4785
|
metrics: TurnStateErrorMetrics.optional(),
|
|
4317
|
-
status: stringLiteral("error")
|
|
4786
|
+
status: exports_schemas.stringLiteral("error")
|
|
4318
4787
|
});
|
|
4319
4788
|
|
|
4320
4789
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TurnStateRunning.mjs
|
|
4321
|
-
var TurnStateRunning = object({
|
|
4322
|
-
status: stringLiteral("running")
|
|
4790
|
+
var TurnStateRunning = exports_schemas.object({
|
|
4791
|
+
status: exports_schemas.stringLiteral("running")
|
|
4323
4792
|
});
|
|
4324
4793
|
|
|
4325
4794
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TurnState.mjs
|
|
4326
|
-
var TurnState = undiscriminatedUnion([TurnStateCancelled, TurnStateDone, TurnStateError, TurnStateRunning]);
|
|
4795
|
+
var TurnState = exports_schemas.undiscriminatedUnion([TurnStateCancelled, TurnStateDone, TurnStateError, TurnStateRunning]);
|
|
4327
4796
|
|
|
4328
4797
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/Turn.mjs
|
|
4329
|
-
var Turn = object({
|
|
4330
|
-
createdAt: property("created_at", string()),
|
|
4331
|
-
id: string(),
|
|
4332
|
-
input: list(TurnInputItem).optional(),
|
|
4333
|
-
previousTurnId: property("previous_turn_id", string().nullable()),
|
|
4334
|
-
sessionId: property("session_id", string()),
|
|
4798
|
+
var Turn = exports_schemas.object({
|
|
4799
|
+
createdAt: exports_schemas.property("created_at", exports_schemas.string()),
|
|
4800
|
+
id: exports_schemas.string(),
|
|
4801
|
+
input: exports_schemas.list(TurnInputItem).optional(),
|
|
4802
|
+
previousTurnId: exports_schemas.property("previous_turn_id", exports_schemas.string().nullable()),
|
|
4803
|
+
sessionId: exports_schemas.property("session_id", exports_schemas.string()),
|
|
4335
4804
|
state: TurnState
|
|
4336
4805
|
});
|
|
4337
4806
|
|
|
4338
4807
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/GetTurnResponse.mjs
|
|
4339
|
-
var GetTurnResponse = object({
|
|
4808
|
+
var GetTurnResponse = exports_schemas.object({
|
|
4340
4809
|
data: Turn
|
|
4341
4810
|
});
|
|
4342
4811
|
|
|
4343
4812
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ListAgentsResponse.mjs
|
|
4344
|
-
var ListAgentsResponse = object({
|
|
4345
|
-
data: list(Agent)
|
|
4813
|
+
var ListAgentsResponse = exports_schemas.object({
|
|
4814
|
+
data: exports_schemas.list(Agent)
|
|
4346
4815
|
});
|
|
4347
4816
|
|
|
4348
4817
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ListAvailableMcpServersResponse.mjs
|
|
4349
|
-
var ListAvailableMcpServersResponse = object({
|
|
4350
|
-
data: list(AvailableMcpServer)
|
|
4818
|
+
var ListAvailableMcpServersResponse = exports_schemas.object({
|
|
4819
|
+
data: exports_schemas.list(AvailableMcpServer)
|
|
4351
4820
|
});
|
|
4352
4821
|
|
|
4353
4822
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ListAvailableModelsResponse.mjs
|
|
4354
|
-
var ListAvailableModelsResponse = object({
|
|
4355
|
-
data: list(AvailableModel)
|
|
4823
|
+
var ListAvailableModelsResponse = exports_schemas.object({
|
|
4824
|
+
data: exports_schemas.list(AvailableModel)
|
|
4356
4825
|
});
|
|
4357
4826
|
|
|
4358
4827
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ListAvailableSkillsResponse.mjs
|
|
4359
|
-
var ListAvailableSkillsResponse = object({
|
|
4360
|
-
data: list(AvailableSkill)
|
|
4828
|
+
var ListAvailableSkillsResponse = exports_schemas.object({
|
|
4829
|
+
data: exports_schemas.list(AvailableSkill)
|
|
4361
4830
|
});
|
|
4362
4831
|
|
|
4363
4832
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ListMcpServersResponse.mjs
|
|
4364
|
-
var ListMcpServersResponse = object({
|
|
4365
|
-
data: list(ConfiguredMcpServer)
|
|
4833
|
+
var ListMcpServersResponse = exports_schemas.object({
|
|
4834
|
+
data: exports_schemas.list(ConfiguredMcpServer)
|
|
4366
4835
|
});
|
|
4367
4836
|
|
|
4368
4837
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ListMcpServerToolsResponse.mjs
|
|
4369
|
-
var ListMcpServerToolsResponse = object({
|
|
4370
|
-
data: list(record(string(), unknown()))
|
|
4838
|
+
var ListMcpServerToolsResponse = exports_schemas.object({
|
|
4839
|
+
data: exports_schemas.list(exports_schemas.record(exports_schemas.string(), exports_schemas.unknown()))
|
|
4371
4840
|
});
|
|
4372
4841
|
|
|
4373
4842
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ListModelProvidersResponse.mjs
|
|
4374
|
-
var ListModelProvidersResponse = object({
|
|
4375
|
-
data: list(ConfiguredModelProvider)
|
|
4843
|
+
var ListModelProvidersResponse = exports_schemas.object({
|
|
4844
|
+
data: exports_schemas.list(ConfiguredModelProvider)
|
|
4376
4845
|
});
|
|
4377
4846
|
|
|
4378
4847
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpServerInitInfoTransportType.mjs
|
|
4379
|
-
var McpServerInitInfoTransportType = enum_(["streamable-http", "sse"]);
|
|
4848
|
+
var McpServerInitInfoTransportType = exports_schemas.enum_(["streamable-http", "sse"]);
|
|
4380
4849
|
|
|
4381
4850
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpServerInitInfo.mjs
|
|
4382
|
-
var McpServerInitInfo = object({
|
|
4383
|
-
id: string(),
|
|
4384
|
-
name: string(),
|
|
4385
|
-
sessionId: property("session_id", string().optional()),
|
|
4386
|
-
transportType: property("transport_type", McpServerInitInfoTransportType.optional())
|
|
4851
|
+
var McpServerInitInfo = exports_schemas.object({
|
|
4852
|
+
id: exports_schemas.string(),
|
|
4853
|
+
name: exports_schemas.string(),
|
|
4854
|
+
sessionId: exports_schemas.property("session_id", exports_schemas.string().optional()),
|
|
4855
|
+
transportType: exports_schemas.property("transport_type", McpServerInitInfoTransportType.optional())
|
|
4387
4856
|
});
|
|
4388
4857
|
|
|
4389
4858
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/McpInitializeEvent.mjs
|
|
4390
|
-
var McpInitializeEvent = object({
|
|
4391
|
-
createdAt: property("created_at", string()),
|
|
4392
|
-
id: string(),
|
|
4393
|
-
mcpServers: property("mcp_servers", list(McpServerInitInfo)),
|
|
4394
|
-
threadId: property("thread_id", string()),
|
|
4395
|
-
type: stringLiteral("mcp.initialize")
|
|
4859
|
+
var McpInitializeEvent = exports_schemas.object({
|
|
4860
|
+
createdAt: exports_schemas.property("created_at", exports_schemas.string()),
|
|
4861
|
+
id: exports_schemas.string(),
|
|
4862
|
+
mcpServers: exports_schemas.property("mcp_servers", exports_schemas.list(McpServerInitInfo)),
|
|
4863
|
+
threadId: exports_schemas.property("thread_id", exports_schemas.string()),
|
|
4864
|
+
type: exports_schemas.stringLiteral("mcp.initialize")
|
|
4396
4865
|
});
|
|
4397
4866
|
|
|
4398
4867
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/SandboxCreatedEvent.mjs
|
|
4399
|
-
var SandboxCreatedEvent = object({
|
|
4400
|
-
createdAt: property("created_at", string()),
|
|
4401
|
-
id: string(),
|
|
4402
|
-
sandboxId: property("sandbox_id", string()),
|
|
4403
|
-
threadId: property("thread_id", string().nullable()),
|
|
4404
|
-
type: stringLiteral("sandbox.created")
|
|
4868
|
+
var SandboxCreatedEvent = exports_schemas.object({
|
|
4869
|
+
createdAt: exports_schemas.property("created_at", exports_schemas.string()),
|
|
4870
|
+
id: exports_schemas.string(),
|
|
4871
|
+
sandboxId: exports_schemas.property("sandbox_id", exports_schemas.string()),
|
|
4872
|
+
threadId: exports_schemas.property("thread_id", exports_schemas.string().nullable()),
|
|
4873
|
+
type: exports_schemas.stringLiteral("sandbox.created")
|
|
4405
4874
|
});
|
|
4406
4875
|
|
|
4407
4876
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ThreadCreatedEvent.mjs
|
|
4408
|
-
var ThreadCreatedEvent = object({
|
|
4409
|
-
agentInfo: property("agent_info", AgentInfo),
|
|
4410
|
-
createdAt: property("created_at", string()),
|
|
4411
|
-
id: string(),
|
|
4877
|
+
var ThreadCreatedEvent = exports_schemas.object({
|
|
4878
|
+
agentInfo: exports_schemas.property("agent_info", AgentInfo),
|
|
4879
|
+
createdAt: exports_schemas.property("created_at", exports_schemas.string()),
|
|
4880
|
+
id: exports_schemas.string(),
|
|
4412
4881
|
parent: AgentParent,
|
|
4413
|
-
threadId: property("thread_id", string()),
|
|
4414
|
-
title: string(),
|
|
4415
|
-
type: stringLiteral("thread.created")
|
|
4882
|
+
threadId: exports_schemas.property("thread_id", exports_schemas.string()),
|
|
4883
|
+
title: exports_schemas.string(),
|
|
4884
|
+
type: exports_schemas.stringLiteral("thread.created")
|
|
4416
4885
|
});
|
|
4417
4886
|
|
|
4418
4887
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ThreadStateDone.mjs
|
|
4419
|
-
var ThreadStateDone = object({
|
|
4888
|
+
var ThreadStateDone = exports_schemas.object({
|
|
4420
4889
|
output: ModelMessageEvent,
|
|
4421
|
-
status: stringLiteral("done")
|
|
4890
|
+
status: exports_schemas.stringLiteral("done")
|
|
4422
4891
|
});
|
|
4423
4892
|
|
|
4424
4893
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ThreadStateError.mjs
|
|
4425
|
-
var ThreadStateError = object({
|
|
4426
|
-
error: string(),
|
|
4894
|
+
var ThreadStateError = exports_schemas.object({
|
|
4895
|
+
error: exports_schemas.string(),
|
|
4427
4896
|
output: ModelMessageEvent.optional(),
|
|
4428
|
-
status: stringLiteral("error")
|
|
4897
|
+
status: exports_schemas.stringLiteral("error")
|
|
4429
4898
|
});
|
|
4430
4899
|
|
|
4431
4900
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ThreadState.mjs
|
|
4432
|
-
var ThreadState = undiscriminatedUnion([ThreadStateDone, ThreadStateError]);
|
|
4901
|
+
var ThreadState = exports_schemas.undiscriminatedUnion([ThreadStateDone, ThreadStateError]);
|
|
4433
4902
|
|
|
4434
4903
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ThreadDoneEvent.mjs
|
|
4435
|
-
var ThreadDoneEvent = object({
|
|
4436
|
-
createdAt: property("created_at", string()),
|
|
4437
|
-
id: string(),
|
|
4904
|
+
var ThreadDoneEvent = exports_schemas.object({
|
|
4905
|
+
createdAt: exports_schemas.property("created_at", exports_schemas.string()),
|
|
4906
|
+
id: exports_schemas.string(),
|
|
4438
4907
|
state: ThreadState,
|
|
4439
|
-
type: stringLiteral("thread.done")
|
|
4908
|
+
type: exports_schemas.stringLiteral("thread.done")
|
|
4440
4909
|
}).extend(BaseThreadDoneEvent);
|
|
4441
4910
|
|
|
4442
4911
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ToolResponseEvent.mjs
|
|
4443
|
-
var ToolResponseEvent = object({
|
|
4444
|
-
content: string(),
|
|
4445
|
-
createdAt: property("created_at", string()),
|
|
4446
|
-
id: string(),
|
|
4447
|
-
threadId: property("thread_id", string()),
|
|
4448
|
-
toolCallId: property("tool_call_id", string()),
|
|
4449
|
-
type: stringLiteral("tool.response")
|
|
4912
|
+
var ToolResponseEvent = exports_schemas.object({
|
|
4913
|
+
content: exports_schemas.string(),
|
|
4914
|
+
createdAt: exports_schemas.property("created_at", exports_schemas.string()),
|
|
4915
|
+
id: exports_schemas.string(),
|
|
4916
|
+
threadId: exports_schemas.property("thread_id", exports_schemas.string()),
|
|
4917
|
+
toolCallId: exports_schemas.property("tool_call_id", exports_schemas.string()),
|
|
4918
|
+
type: exports_schemas.stringLiteral("tool.response")
|
|
4450
4919
|
});
|
|
4451
4920
|
|
|
4452
4921
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TurnCreatedEvent.mjs
|
|
4453
|
-
var TurnCreatedEvent = object({
|
|
4454
|
-
createdAt: property("created_at", string()),
|
|
4455
|
-
id: string(),
|
|
4456
|
-
input: list(TurnInputItem).optional(),
|
|
4457
|
-
previousTurnId: property("previous_turn_id", string().nullable()),
|
|
4922
|
+
var TurnCreatedEvent = exports_schemas.object({
|
|
4923
|
+
createdAt: exports_schemas.property("created_at", exports_schemas.string()),
|
|
4924
|
+
id: exports_schemas.string(),
|
|
4925
|
+
input: exports_schemas.list(TurnInputItem).optional(),
|
|
4926
|
+
previousTurnId: exports_schemas.property("previous_turn_id", exports_schemas.string().nullable()),
|
|
4458
4927
|
state: TurnStateRunning,
|
|
4459
|
-
threadId: property("thread_id", string().nullable()),
|
|
4460
|
-
turnId: property("turn_id", string()),
|
|
4461
|
-
type: stringLiteral("turn.created")
|
|
4928
|
+
threadId: exports_schemas.property("thread_id", exports_schemas.string().nullable()),
|
|
4929
|
+
turnId: exports_schemas.property("turn_id", exports_schemas.string()),
|
|
4930
|
+
type: exports_schemas.stringLiteral("turn.created")
|
|
4462
4931
|
});
|
|
4463
4932
|
|
|
4464
4933
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TurnDoneEventState.mjs
|
|
4465
|
-
var TurnDoneEventState = undiscriminatedUnion([TurnStateCancelled, TurnStateDone, TurnStateError]);
|
|
4934
|
+
var TurnDoneEventState = exports_schemas.undiscriminatedUnion([TurnStateCancelled, TurnStateDone, TurnStateError]);
|
|
4466
4935
|
|
|
4467
4936
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TurnDoneEvent.mjs
|
|
4468
|
-
var TurnDoneEvent = object({
|
|
4469
|
-
createdAt: property("created_at", string()),
|
|
4470
|
-
id: string(),
|
|
4937
|
+
var TurnDoneEvent = exports_schemas.object({
|
|
4938
|
+
createdAt: exports_schemas.property("created_at", exports_schemas.string()),
|
|
4939
|
+
id: exports_schemas.string(),
|
|
4471
4940
|
state: TurnDoneEventState,
|
|
4472
|
-
threadId: property("thread_id", string().nullable()),
|
|
4473
|
-
type: stringLiteral("turn.done")
|
|
4941
|
+
threadId: exports_schemas.property("thread_id", exports_schemas.string().nullable()),
|
|
4942
|
+
type: exports_schemas.stringLiteral("turn.done")
|
|
4474
4943
|
});
|
|
4475
4944
|
|
|
4476
4945
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/SessionEvent.mjs
|
|
4477
|
-
var SessionEvent = undiscriminatedUnion([
|
|
4946
|
+
var SessionEvent = exports_schemas.undiscriminatedUnion([
|
|
4478
4947
|
McpAuthRequiredEvent,
|
|
4479
4948
|
McpInitializeEvent,
|
|
4480
4949
|
ModelMessageEvent,
|
|
@@ -4489,82 +4958,82 @@ var SessionEvent = undiscriminatedUnion([
|
|
|
4489
4958
|
]);
|
|
4490
4959
|
|
|
4491
4960
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/SessionEventItem.mjs
|
|
4492
|
-
var SessionEventItem = object({
|
|
4961
|
+
var SessionEventItem = exports_schemas.object({
|
|
4493
4962
|
event: SessionEvent,
|
|
4494
|
-
turnId: property("turn_id", string())
|
|
4963
|
+
turnId: exports_schemas.property("turn_id", exports_schemas.string())
|
|
4495
4964
|
});
|
|
4496
4965
|
|
|
4497
4966
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TokenPagination.mjs
|
|
4498
|
-
var TokenPagination = object({
|
|
4499
|
-
limit: number(),
|
|
4500
|
-
nextPageToken: property("next_page_token", string().optional()),
|
|
4501
|
-
previousPageToken: property("previous_page_token", string().optional())
|
|
4967
|
+
var TokenPagination = exports_schemas.object({
|
|
4968
|
+
limit: exports_schemas.number(),
|
|
4969
|
+
nextPageToken: exports_schemas.property("next_page_token", exports_schemas.string().optional()),
|
|
4970
|
+
previousPageToken: exports_schemas.property("previous_page_token", exports_schemas.string().optional())
|
|
4502
4971
|
});
|
|
4503
4972
|
|
|
4504
4973
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ListSessionEventsResponse.mjs
|
|
4505
|
-
var ListSessionEventsResponse = object({
|
|
4506
|
-
data: list(SessionEventItem),
|
|
4974
|
+
var ListSessionEventsResponse = exports_schemas.object({
|
|
4975
|
+
data: exports_schemas.list(SessionEventItem),
|
|
4507
4976
|
pagination: TokenPagination
|
|
4508
4977
|
});
|
|
4509
4978
|
|
|
4510
4979
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ListSessionsOrder.mjs
|
|
4511
|
-
var ListSessionsOrder = enum_(["asc", "desc"]);
|
|
4980
|
+
var ListSessionsOrder = exports_schemas.enum_(["asc", "desc"]);
|
|
4512
4981
|
|
|
4513
4982
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ListSessionsResponse.mjs
|
|
4514
|
-
var ListSessionsResponse = object({
|
|
4515
|
-
data: list(Session),
|
|
4983
|
+
var ListSessionsResponse = exports_schemas.object({
|
|
4984
|
+
data: exports_schemas.list(Session),
|
|
4516
4985
|
pagination: TokenPagination
|
|
4517
4986
|
});
|
|
4518
4987
|
|
|
4519
4988
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ListSkillsResponse.mjs
|
|
4520
|
-
var ListSkillsResponse = object({
|
|
4521
|
-
data: list(ConfiguredSkill)
|
|
4989
|
+
var ListSkillsResponse = exports_schemas.object({
|
|
4990
|
+
data: exports_schemas.list(ConfiguredSkill)
|
|
4522
4991
|
});
|
|
4523
4992
|
|
|
4524
4993
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ListTurnEventsOrder.mjs
|
|
4525
|
-
var ListTurnEventsOrder = enum_(["asc", "desc"]);
|
|
4994
|
+
var ListTurnEventsOrder = exports_schemas.enum_(["asc", "desc"]);
|
|
4526
4995
|
|
|
4527
4996
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ListTurnEventsResponse.mjs
|
|
4528
|
-
var ListTurnEventsResponse = object({
|
|
4529
|
-
data: list(SessionEvent),
|
|
4997
|
+
var ListTurnEventsResponse = exports_schemas.object({
|
|
4998
|
+
data: exports_schemas.list(SessionEvent),
|
|
4530
4999
|
pagination: TokenPagination
|
|
4531
5000
|
});
|
|
4532
5001
|
|
|
4533
5002
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ListTurnsResponse.mjs
|
|
4534
|
-
var ListTurnsResponse = object({
|
|
4535
|
-
data: list(Turn),
|
|
5003
|
+
var ListTurnsResponse = exports_schemas.object({
|
|
5004
|
+
data: exports_schemas.list(Turn),
|
|
4536
5005
|
pagination: TokenPagination
|
|
4537
5006
|
});
|
|
4538
5007
|
|
|
4539
5008
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/ModelMessageDeltaEvent.mjs
|
|
4540
|
-
var ModelMessageDeltaEvent = object({
|
|
4541
|
-
content: string().optionalNullable(),
|
|
4542
|
-
createdAt: property("created_at", string().optional()),
|
|
4543
|
-
finishReason: property("finish_reason", FinishReason.optionalNullable()),
|
|
4544
|
-
id: string(),
|
|
4545
|
-
reasoningContent: property("reasoning_content", string().optional()),
|
|
4546
|
-
refusal: string().optionalNullable(),
|
|
4547
|
-
threadId: property("thread_id", string()),
|
|
4548
|
-
toolCalls: property("tool_calls", list(ExtendedChunkDeltaToolCall).optional()),
|
|
4549
|
-
type: stringLiteral("model.message.delta"),
|
|
5009
|
+
var ModelMessageDeltaEvent = exports_schemas.object({
|
|
5010
|
+
content: exports_schemas.string().optionalNullable(),
|
|
5011
|
+
createdAt: exports_schemas.property("created_at", exports_schemas.string().optional()),
|
|
5012
|
+
finishReason: exports_schemas.property("finish_reason", FinishReason.optionalNullable()),
|
|
5013
|
+
id: exports_schemas.string(),
|
|
5014
|
+
reasoningContent: exports_schemas.property("reasoning_content", exports_schemas.string().optional()),
|
|
5015
|
+
refusal: exports_schemas.string().optionalNullable(),
|
|
5016
|
+
threadId: exports_schemas.property("thread_id", exports_schemas.string()),
|
|
5017
|
+
toolCalls: exports_schemas.property("tool_calls", exports_schemas.list(ExtendedChunkDeltaToolCall).optional()),
|
|
5018
|
+
type: exports_schemas.stringLiteral("model.message.delta"),
|
|
4550
5019
|
usage: ModelMessageUsage.optional()
|
|
4551
5020
|
});
|
|
4552
5021
|
|
|
4553
5022
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/RequestErrorResponseError.mjs
|
|
4554
|
-
var RequestErrorResponseError = object({
|
|
4555
|
-
code: string().optionalNullable(),
|
|
4556
|
-
message: string(),
|
|
4557
|
-
param: string().optionalNullable(),
|
|
4558
|
-
type: string().optional()
|
|
5023
|
+
var RequestErrorResponseError = exports_schemas.object({
|
|
5024
|
+
code: exports_schemas.string().optionalNullable(),
|
|
5025
|
+
message: exports_schemas.string(),
|
|
5026
|
+
param: exports_schemas.string().optionalNullable(),
|
|
5027
|
+
type: exports_schemas.string().optional()
|
|
4559
5028
|
});
|
|
4560
5029
|
|
|
4561
5030
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/RequestErrorResponse.mjs
|
|
4562
|
-
var RequestErrorResponse = object({
|
|
5031
|
+
var RequestErrorResponse = exports_schemas.object({
|
|
4563
5032
|
error: RequestErrorResponseError
|
|
4564
5033
|
});
|
|
4565
5034
|
|
|
4566
5035
|
// ../../../node_modules/@truefoundry/trueforge-sdk/dist/esm/serialization/types/TurnStreamingEvent.mjs
|
|
4567
|
-
var TurnStreamingEvent = undiscriminatedUnion([
|
|
5036
|
+
var TurnStreamingEvent = exports_schemas.undiscriminatedUnion([
|
|
4568
5037
|
McpAuthRequiredEvent,
|
|
4569
5038
|
McpInitializeEvent,
|
|
4570
5039
|
ModelMessageEvent,
|
|
@@ -4825,10 +5294,10 @@ class AgentsClient {
|
|
|
4825
5294
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
4826
5295
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
4827
5296
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
4828
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/agents"),
|
|
5297
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/agents"),
|
|
4829
5298
|
method: "GET",
|
|
4830
5299
|
headers: _headers,
|
|
4831
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5300
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
4832
5301
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
4833
5302
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
4834
5303
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -4877,11 +5346,11 @@ class AgentsClient {
|
|
|
4877
5346
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
4878
5347
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
4879
5348
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
4880
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/agents"),
|
|
5349
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/agents"),
|
|
4881
5350
|
method: "POST",
|
|
4882
5351
|
headers: _headers,
|
|
4883
5352
|
contentType: "application/json",
|
|
4884
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5353
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
4885
5354
|
requestType: "json",
|
|
4886
5355
|
body: mergeAdditionalBodyParameters(CreateAgentRequest.jsonOrThrow(request, {
|
|
4887
5356
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -4953,10 +5422,10 @@ class AgentsClient {
|
|
|
4953
5422
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
4954
5423
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
4955
5424
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
4956
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/agents/${encodePathParam(agent_id)}`),
|
|
5425
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/agents/${exports_url.encodePathParam(agent_id)}`),
|
|
4957
5426
|
method: "GET",
|
|
4958
5427
|
headers: _headers,
|
|
4959
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5428
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
4960
5429
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
4961
5430
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
4962
5431
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -5005,11 +5474,11 @@ class AgentsClient {
|
|
|
5005
5474
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5006
5475
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
5007
5476
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
5008
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/agents/${encodePathParam(agent_id)}`),
|
|
5477
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/agents/${exports_url.encodePathParam(agent_id)}`),
|
|
5009
5478
|
method: "PUT",
|
|
5010
5479
|
headers: _headers,
|
|
5011
5480
|
contentType: "application/json",
|
|
5012
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5481
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5013
5482
|
requestType: "json",
|
|
5014
5483
|
body: mergeAdditionalBodyParameters(UpdateAgentRequest.jsonOrThrow(request, {
|
|
5015
5484
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -5081,10 +5550,10 @@ class AgentsClient {
|
|
|
5081
5550
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5082
5551
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
5083
5552
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
5084
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/agents/${encodePathParam(agent_id)}`),
|
|
5553
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/agents/${exports_url.encodePathParam(agent_id)}`),
|
|
5085
5554
|
method: "DELETE",
|
|
5086
5555
|
headers: _headers,
|
|
5087
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5556
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5088
5557
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
5089
5558
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
5090
5559
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -5168,10 +5637,10 @@ class AuthClient {
|
|
|
5168
5637
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5169
5638
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
5170
5639
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
5171
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/auth/me"),
|
|
5640
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/auth/me"),
|
|
5172
5641
|
method: "GET",
|
|
5173
5642
|
headers: _headers,
|
|
5174
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5643
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5175
5644
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
5176
5645
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
5177
5646
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -5255,10 +5724,10 @@ class McpServersClient {
|
|
|
5255
5724
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5256
5725
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
5257
5726
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
5258
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/catalogs/mcp-servers"),
|
|
5727
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/catalogs/mcp-servers"),
|
|
5259
5728
|
method: "GET",
|
|
5260
5729
|
headers: _headers,
|
|
5261
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5730
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5262
5731
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
5263
5732
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
5264
5733
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -5342,10 +5811,10 @@ class ModelProvidersClient {
|
|
|
5342
5811
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5343
5812
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
5344
5813
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
5345
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/catalogs/model-providers"),
|
|
5814
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/catalogs/model-providers"),
|
|
5346
5815
|
method: "GET",
|
|
5347
5816
|
headers: _headers,
|
|
5348
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5817
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5349
5818
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
5350
5819
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
5351
5820
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -5429,10 +5898,10 @@ class SandboxProvidersClient {
|
|
|
5429
5898
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5430
5899
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
5431
5900
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
5432
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/catalogs/sandbox-providers"),
|
|
5901
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/catalogs/sandbox-providers"),
|
|
5433
5902
|
method: "GET",
|
|
5434
5903
|
headers: _headers,
|
|
5435
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5904
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5436
5905
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
5437
5906
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
5438
5907
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -5516,10 +5985,10 @@ class SkillsClient {
|
|
|
5516
5985
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5517
5986
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
5518
5987
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
5519
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/catalogs/skills"),
|
|
5988
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/catalogs/skills"),
|
|
5520
5989
|
method: "GET",
|
|
5521
5990
|
headers: _headers,
|
|
5522
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5991
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5523
5992
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
5524
5993
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
5525
5994
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -5626,10 +6095,10 @@ class McpServersClient2 {
|
|
|
5626
6095
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5627
6096
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
5628
6097
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
5629
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/mcp-servers"),
|
|
6098
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/mcp-servers"),
|
|
5630
6099
|
method: "GET",
|
|
5631
6100
|
headers: _headers,
|
|
5632
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6101
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5633
6102
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
5634
6103
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
5635
6104
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -5682,10 +6151,10 @@ class McpServersClient2 {
|
|
|
5682
6151
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5683
6152
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
5684
6153
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
5685
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/mcp-servers/${encodePathParam(name)}/authorize`),
|
|
6154
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/mcp-servers/${exports_url.encodePathParam(name)}/authorize`),
|
|
5686
6155
|
method: "GET",
|
|
5687
6156
|
headers: _headers,
|
|
5688
|
-
queryString: queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6157
|
+
queryString: exports_url.queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5689
6158
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
5690
6159
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
5691
6160
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -5766,10 +6235,10 @@ class McpServersClient2 {
|
|
|
5766
6235
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5767
6236
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
5768
6237
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
5769
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/mcp-servers/${encodePathParam(name)}/authorize`),
|
|
6238
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/mcp-servers/${exports_url.encodePathParam(name)}/authorize`),
|
|
5770
6239
|
method: "DELETE",
|
|
5771
6240
|
headers: _headers,
|
|
5772
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6241
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5773
6242
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
5774
6243
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
5775
6244
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -5818,10 +6287,10 @@ class McpServersClient2 {
|
|
|
5818
6287
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5819
6288
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
5820
6289
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
5821
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/mcp-servers/${encodePathParam(name)}/tools`),
|
|
6290
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/mcp-servers/${exports_url.encodePathParam(name)}/tools`),
|
|
5822
6291
|
method: "GET",
|
|
5823
6292
|
headers: _headers,
|
|
5824
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6293
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5825
6294
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
5826
6295
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
5827
6296
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -5929,10 +6398,10 @@ class ModelsClient {
|
|
|
5929
6398
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5930
6399
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
5931
6400
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
5932
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/models"),
|
|
6401
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/models"),
|
|
5933
6402
|
method: "GET",
|
|
5934
6403
|
headers: _headers,
|
|
5935
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6404
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
5936
6405
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
5937
6406
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
5938
6407
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -6016,10 +6485,10 @@ class ServerClient {
|
|
|
6016
6485
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6017
6486
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
6018
6487
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
6019
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/capabilities"),
|
|
6488
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/capabilities"),
|
|
6020
6489
|
method: "GET",
|
|
6021
6490
|
headers: _headers,
|
|
6022
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6491
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6023
6492
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
6024
6493
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
6025
6494
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -6096,9 +6565,9 @@ class SessionsClient {
|
|
|
6096
6565
|
}
|
|
6097
6566
|
list() {
|
|
6098
6567
|
return __awaiter24(this, arguments, undefined, function* (request = {}, requestOptions) {
|
|
6099
|
-
const
|
|
6568
|
+
const list2 = HttpResponsePromise.interceptFunction((request2) => __awaiter24(this, undefined, undefined, function* () {
|
|
6100
6569
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
6101
|
-
const { limit = 25, order, pageToken, startTimestamp, endTimestamp, agentId } =
|
|
6570
|
+
const { limit = 25, order, pageToken, startTimestamp, endTimestamp, agentId } = request2;
|
|
6102
6571
|
const _queryParams = {
|
|
6103
6572
|
limit,
|
|
6104
6573
|
order: order != null ? ListSessionsOrder.jsonOrThrow(order, {
|
|
@@ -6115,10 +6584,10 @@ class SessionsClient {
|
|
|
6115
6584
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6116
6585
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
6117
6586
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
6118
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/sessions"),
|
|
6587
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/sessions"),
|
|
6119
6588
|
method: "GET",
|
|
6120
6589
|
headers: _headers,
|
|
6121
|
-
queryString: queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6590
|
+
queryString: exports_url.queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6122
6591
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
6123
6592
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
6124
6593
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -6157,7 +6626,7 @@ class SessionsClient {
|
|
|
6157
6626
|
}
|
|
6158
6627
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/sessions");
|
|
6159
6628
|
}));
|
|
6160
|
-
const dataWithRawResponse = yield
|
|
6629
|
+
const dataWithRawResponse = yield list2(request).withRawResponse();
|
|
6161
6630
|
return new Page({
|
|
6162
6631
|
response: dataWithRawResponse.data,
|
|
6163
6632
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
@@ -6167,7 +6636,7 @@ class SessionsClient {
|
|
|
6167
6636
|
return (_a = response === null || response === undefined ? undefined : response.data) !== null && _a !== undefined ? _a : [];
|
|
6168
6637
|
},
|
|
6169
6638
|
loadPage: (response) => {
|
|
6170
|
-
return
|
|
6639
|
+
return list2(setObjectProperty(request, "pageToken", response === null || response === undefined ? undefined : response.pagination.nextPageToken));
|
|
6171
6640
|
}
|
|
6172
6641
|
});
|
|
6173
6642
|
});
|
|
@@ -6181,11 +6650,11 @@ class SessionsClient {
|
|
|
6181
6650
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6182
6651
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
6183
6652
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
6184
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/sessions"),
|
|
6653
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/sessions"),
|
|
6185
6654
|
method: "POST",
|
|
6186
6655
|
headers: _headers,
|
|
6187
6656
|
contentType: "application/json",
|
|
6188
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6657
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6189
6658
|
requestType: "json",
|
|
6190
6659
|
body: mergeAdditionalBodyParameters(CreateSessionRequest.jsonOrThrow(request, {
|
|
6191
6660
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -6257,10 +6726,10 @@ class SessionsClient {
|
|
|
6257
6726
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6258
6727
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
6259
6728
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
6260
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${encodePathParam(session_id)}`),
|
|
6729
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${exports_url.encodePathParam(session_id)}`),
|
|
6261
6730
|
method: "GET",
|
|
6262
6731
|
headers: _headers,
|
|
6263
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6732
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6264
6733
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
6265
6734
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
6266
6735
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -6317,10 +6786,10 @@ class SessionsClient {
|
|
|
6317
6786
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6318
6787
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
6319
6788
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
6320
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${encodePathParam(session_id)}`),
|
|
6789
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${exports_url.encodePathParam(session_id)}`),
|
|
6321
6790
|
method: "DELETE",
|
|
6322
6791
|
headers: _headers,
|
|
6323
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6792
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6324
6793
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
6325
6794
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
6326
6795
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -6360,11 +6829,11 @@ class SessionsClient {
|
|
|
6360
6829
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6361
6830
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
6362
6831
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
6363
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${encodePathParam(session_id)}`),
|
|
6832
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${exports_url.encodePathParam(session_id)}`),
|
|
6364
6833
|
method: "PATCH",
|
|
6365
6834
|
headers: _headers,
|
|
6366
6835
|
contentType: "application/json",
|
|
6367
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6836
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6368
6837
|
requestType: "json",
|
|
6369
6838
|
body: mergeAdditionalBodyParameters(UpdateSessionRequest.jsonOrThrow(request, {
|
|
6370
6839
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -6444,11 +6913,11 @@ class SessionsClient {
|
|
|
6444
6913
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6445
6914
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
6446
6915
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
6447
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${encodePathParam(session_id)}/cancel`),
|
|
6916
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${exports_url.encodePathParam(session_id)}/cancel`),
|
|
6448
6917
|
method: "POST",
|
|
6449
6918
|
headers: _headers,
|
|
6450
6919
|
contentType: "application/json",
|
|
6451
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6920
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6452
6921
|
requestType: "json",
|
|
6453
6922
|
body: mergeAdditionalBodyParameters(CancelSessionRequest.jsonOrThrow(request, {
|
|
6454
6923
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -6513,9 +6982,9 @@ class SessionsClient {
|
|
|
6513
6982
|
}
|
|
6514
6983
|
listEvents(session_id_1) {
|
|
6515
6984
|
return __awaiter24(this, arguments, undefined, function* (session_id, request = {}, requestOptions) {
|
|
6516
|
-
const
|
|
6985
|
+
const list2 = HttpResponsePromise.interceptFunction((request2) => __awaiter24(this, undefined, undefined, function* () {
|
|
6517
6986
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
6518
|
-
const { pageToken, lastTurnId, limit = 100 } =
|
|
6987
|
+
const { pageToken, lastTurnId, limit = 100 } = request2;
|
|
6519
6988
|
const _queryParams = {
|
|
6520
6989
|
page_token: pageToken,
|
|
6521
6990
|
last_turn_id: lastTurnId,
|
|
@@ -6524,10 +6993,10 @@ class SessionsClient {
|
|
|
6524
6993
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6525
6994
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
6526
6995
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
6527
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${encodePathParam(session_id)}/events`),
|
|
6996
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${exports_url.encodePathParam(session_id)}/events`),
|
|
6528
6997
|
method: "GET",
|
|
6529
6998
|
headers: _headers,
|
|
6530
|
-
queryString: queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6999
|
+
queryString: exports_url.queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6531
7000
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
6532
7001
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
6533
7002
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -6582,7 +7051,7 @@ class SessionsClient {
|
|
|
6582
7051
|
}
|
|
6583
7052
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/sessions/{session_id}/events");
|
|
6584
7053
|
}));
|
|
6585
|
-
const dataWithRawResponse = yield
|
|
7054
|
+
const dataWithRawResponse = yield list2(request).withRawResponse();
|
|
6586
7055
|
return new Page({
|
|
6587
7056
|
response: dataWithRawResponse.data,
|
|
6588
7057
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
@@ -6592,16 +7061,16 @@ class SessionsClient {
|
|
|
6592
7061
|
return (_a = response === null || response === undefined ? undefined : response.data) !== null && _a !== undefined ? _a : [];
|
|
6593
7062
|
},
|
|
6594
7063
|
loadPage: (response) => {
|
|
6595
|
-
return
|
|
7064
|
+
return list2(setObjectProperty(request, "pageToken", response === null || response === undefined ? undefined : response.pagination.nextPageToken));
|
|
6596
7065
|
}
|
|
6597
7066
|
});
|
|
6598
7067
|
});
|
|
6599
7068
|
}
|
|
6600
7069
|
listTurns(session_id_1) {
|
|
6601
7070
|
return __awaiter24(this, arguments, undefined, function* (session_id, request = {}, requestOptions) {
|
|
6602
|
-
const
|
|
7071
|
+
const list2 = HttpResponsePromise.interceptFunction((request2) => __awaiter24(this, undefined, undefined, function* () {
|
|
6603
7072
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
6604
|
-
const { limit = 25, pageToken } =
|
|
7073
|
+
const { limit = 25, pageToken } = request2;
|
|
6605
7074
|
const _queryParams = {
|
|
6606
7075
|
limit,
|
|
6607
7076
|
page_token: pageToken
|
|
@@ -6609,10 +7078,10 @@ class SessionsClient {
|
|
|
6609
7078
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6610
7079
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
6611
7080
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
6612
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${encodePathParam(session_id)}/turns`),
|
|
7081
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${exports_url.encodePathParam(session_id)}/turns`),
|
|
6613
7082
|
method: "GET",
|
|
6614
7083
|
headers: _headers,
|
|
6615
|
-
queryString: queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7084
|
+
queryString: exports_url.queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6616
7085
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
6617
7086
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
6618
7087
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -6667,7 +7136,7 @@ class SessionsClient {
|
|
|
6667
7136
|
}
|
|
6668
7137
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/sessions/{session_id}/turns");
|
|
6669
7138
|
}));
|
|
6670
|
-
const dataWithRawResponse = yield
|
|
7139
|
+
const dataWithRawResponse = yield list2(request).withRawResponse();
|
|
6671
7140
|
return new Page({
|
|
6672
7141
|
response: dataWithRawResponse.data,
|
|
6673
7142
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
@@ -6677,7 +7146,7 @@ class SessionsClient {
|
|
|
6677
7146
|
return (_a = response === null || response === undefined ? undefined : response.data) !== null && _a !== undefined ? _a : [];
|
|
6678
7147
|
},
|
|
6679
7148
|
loadPage: (response) => {
|
|
6680
|
-
return
|
|
7149
|
+
return list2(setObjectProperty(request, "pageToken", response === null || response === undefined ? undefined : response.pagination.nextPageToken));
|
|
6681
7150
|
}
|
|
6682
7151
|
});
|
|
6683
7152
|
});
|
|
@@ -6691,11 +7160,11 @@ class SessionsClient {
|
|
|
6691
7160
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6692
7161
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
6693
7162
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
6694
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${encodePathParam(session_id)}/turns`),
|
|
7163
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${exports_url.encodePathParam(session_id)}/turns`),
|
|
6695
7164
|
method: "POST",
|
|
6696
7165
|
headers: _headers,
|
|
6697
7166
|
contentType: "application/json",
|
|
6698
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7167
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6699
7168
|
requestType: "json",
|
|
6700
7169
|
body: mergeAdditionalBodyParameters(Object.assign(Object.assign({}, CreateTurnSessionsStreamRequest.jsonOrThrow(request, {
|
|
6701
7170
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -6801,11 +7270,11 @@ class SessionsClient {
|
|
|
6801
7270
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6802
7271
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
6803
7272
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
6804
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${encodePathParam(session_id)}/turns`),
|
|
7273
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${exports_url.encodePathParam(session_id)}/turns`),
|
|
6805
7274
|
method: "POST",
|
|
6806
7275
|
headers: _headers,
|
|
6807
7276
|
contentType: "application/json",
|
|
6808
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7277
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6809
7278
|
requestType: "json",
|
|
6810
7279
|
body: mergeAdditionalBodyParameters(Object.assign(Object.assign({}, CreateTurnSessionsRequest.jsonOrThrow(request, {
|
|
6811
7280
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -6901,10 +7370,10 @@ class SessionsClient {
|
|
|
6901
7370
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6902
7371
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
6903
7372
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
6904
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${encodePathParam(session_id)}/turns/${encodePathParam(turn_id)}`),
|
|
7373
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${exports_url.encodePathParam(session_id)}/turns/${exports_url.encodePathParam(turn_id)}`),
|
|
6905
7374
|
method: "GET",
|
|
6906
7375
|
headers: _headers,
|
|
6907
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7376
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6908
7377
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
6909
7378
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
6910
7379
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -6965,10 +7434,10 @@ class SessionsClient {
|
|
|
6965
7434
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6966
7435
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
6967
7436
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
6968
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${encodePathParam(session_id)}/turns/${encodePathParam(turn_id)}/download-sandbox-file`),
|
|
7437
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${exports_url.encodePathParam(session_id)}/turns/${exports_url.encodePathParam(turn_id)}/download-sandbox-file`),
|
|
6969
7438
|
method: "GET",
|
|
6970
7439
|
headers: _headers,
|
|
6971
|
-
queryString: queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7440
|
+
queryString: exports_url.queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
6972
7441
|
responseType: "binary-response",
|
|
6973
7442
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
6974
7443
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
@@ -7050,9 +7519,9 @@ class SessionsClient {
|
|
|
7050
7519
|
}
|
|
7051
7520
|
listTurnEvents(session_id_1, turn_id_1) {
|
|
7052
7521
|
return __awaiter24(this, arguments, undefined, function* (session_id, turn_id, request = {}, requestOptions) {
|
|
7053
|
-
const
|
|
7522
|
+
const list2 = HttpResponsePromise.interceptFunction((request2) => __awaiter24(this, undefined, undefined, function* () {
|
|
7054
7523
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
7055
|
-
const { limit = 100, pageToken, order } =
|
|
7524
|
+
const { limit = 100, pageToken, order } = request2;
|
|
7056
7525
|
const _queryParams = {
|
|
7057
7526
|
limit,
|
|
7058
7527
|
page_token: pageToken,
|
|
@@ -7066,10 +7535,10 @@ class SessionsClient {
|
|
|
7066
7535
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7067
7536
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
7068
7537
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
7069
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${encodePathParam(session_id)}/turns/${encodePathParam(turn_id)}/events`),
|
|
7538
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${exports_url.encodePathParam(session_id)}/turns/${exports_url.encodePathParam(turn_id)}/events`),
|
|
7070
7539
|
method: "GET",
|
|
7071
7540
|
headers: _headers,
|
|
7072
|
-
queryString: queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7541
|
+
queryString: exports_url.queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7073
7542
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
7074
7543
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
7075
7544
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -7124,7 +7593,7 @@ class SessionsClient {
|
|
|
7124
7593
|
}
|
|
7125
7594
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/sessions/{session_id}/turns/{turn_id}/events");
|
|
7126
7595
|
}));
|
|
7127
|
-
const dataWithRawResponse = yield
|
|
7596
|
+
const dataWithRawResponse = yield list2(request).withRawResponse();
|
|
7128
7597
|
return new Page({
|
|
7129
7598
|
response: dataWithRawResponse.data,
|
|
7130
7599
|
rawResponse: dataWithRawResponse.rawResponse,
|
|
@@ -7134,7 +7603,7 @@ class SessionsClient {
|
|
|
7134
7603
|
return (_a = response === null || response === undefined ? undefined : response.data) !== null && _a !== undefined ? _a : [];
|
|
7135
7604
|
},
|
|
7136
7605
|
loadPage: (response) => {
|
|
7137
|
-
return
|
|
7606
|
+
return list2(setObjectProperty(request, "pageToken", response === null || response === undefined ? undefined : response.pagination.nextPageToken));
|
|
7138
7607
|
}
|
|
7139
7608
|
});
|
|
7140
7609
|
});
|
|
@@ -7152,10 +7621,10 @@ class SessionsClient {
|
|
|
7152
7621
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7153
7622
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
7154
7623
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
7155
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${encodePathParam(session_id)}/turns/${encodePathParam(turn_id)}/subscribe`),
|
|
7624
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/sessions/${exports_url.encodePathParam(session_id)}/turns/${exports_url.encodePathParam(turn_id)}/subscribe`),
|
|
7156
7625
|
method: "GET",
|
|
7157
7626
|
headers: _headers,
|
|
7158
|
-
queryString: queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7627
|
+
queryString: exports_url.queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7159
7628
|
responseType: "sse",
|
|
7160
7629
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
7161
7630
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
@@ -7164,17 +7633,17 @@ class SessionsClient {
|
|
|
7164
7633
|
logging: this._options.logging
|
|
7165
7634
|
});
|
|
7166
7635
|
const _reconnect = (lastEventId) => __awaiter24(this, undefined, undefined, function* () {
|
|
7167
|
-
var
|
|
7168
|
-
const _reconnectResponse = yield ((
|
|
7169
|
-
url: join((
|
|
7636
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
|
|
7637
|
+
const _reconnectResponse = yield ((_a2 = this._options.fetcher) !== null && _a2 !== undefined ? _a2 : fetcher)({
|
|
7638
|
+
url: exports_url.join((_b2 = yield Supplier.get(this._options.baseUrl)) !== null && _b2 !== undefined ? _b2 : yield Supplier.get(this._options.environment), `api/v1/sessions/${exports_url.encodePathParam(session_id)}/turns/${exports_url.encodePathParam(turn_id)}/subscribe`),
|
|
7170
7639
|
method: "GET",
|
|
7171
7640
|
headers: Object.assign(Object.assign({}, _headers), { "Last-Event-ID": lastEventId }),
|
|
7172
|
-
queryString: queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7641
|
+
queryString: exports_url.queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7173
7642
|
responseType: "sse",
|
|
7174
|
-
timeoutMs: ((
|
|
7175
|
-
maxRetries: (
|
|
7643
|
+
timeoutMs: ((_e2 = (_c2 = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _c2 !== undefined ? _c2 : (_d2 = this._options) === null || _d2 === undefined ? undefined : _d2.timeoutInSeconds) !== null && _e2 !== undefined ? _e2 : 60) * 1000,
|
|
7644
|
+
maxRetries: (_f2 = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _f2 !== undefined ? _f2 : (_g2 = this._options) === null || _g2 === undefined ? undefined : _g2.maxRetries,
|
|
7176
7645
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
7177
|
-
fetchFn: (
|
|
7646
|
+
fetchFn: (_h2 = this._options) === null || _h2 === undefined ? undefined : _h2.fetch,
|
|
7178
7647
|
logging: this._options.logging
|
|
7179
7648
|
});
|
|
7180
7649
|
if (!_reconnectResponse.ok) {
|
|
@@ -7299,10 +7768,10 @@ class McpServersClient3 {
|
|
|
7299
7768
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7300
7769
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
7301
7770
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
7302
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/mcp-servers"),
|
|
7771
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/mcp-servers"),
|
|
7303
7772
|
method: "GET",
|
|
7304
7773
|
headers: _headers,
|
|
7305
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7774
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7306
7775
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
7307
7776
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
7308
7777
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -7359,13 +7828,13 @@ class McpServersClient3 {
|
|
|
7359
7828
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7360
7829
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
7361
7830
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
7362
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/mcp-servers"),
|
|
7831
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/mcp-servers"),
|
|
7363
7832
|
method: "POST",
|
|
7364
7833
|
headers: _headers,
|
|
7365
7834
|
contentType: "application/json",
|
|
7366
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7835
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7367
7836
|
requestType: "json",
|
|
7368
|
-
body: mergeAdditionalBodyParameters(CreateMcpServerRequest.jsonOrThrow(request, {
|
|
7837
|
+
body: mergeAdditionalBodyParameters(exports_settings.CreateMcpServerRequest.jsonOrThrow(request, {
|
|
7369
7838
|
unrecognizedObjectKeys: "passthrough",
|
|
7370
7839
|
allowUnrecognizedUnionMembers: true,
|
|
7371
7840
|
allowUnrecognizedEnumValues: true,
|
|
@@ -7435,13 +7904,13 @@ class McpServersClient3 {
|
|
|
7435
7904
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7436
7905
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
7437
7906
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
7438
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/mcp-servers"),
|
|
7907
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/mcp-servers"),
|
|
7439
7908
|
method: "PUT",
|
|
7440
7909
|
headers: _headers,
|
|
7441
7910
|
contentType: "application/json",
|
|
7442
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7911
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7443
7912
|
requestType: "json",
|
|
7444
|
-
body: mergeAdditionalBodyParameters(UpdateMcpServerRequest.jsonOrThrow(request, {
|
|
7913
|
+
body: mergeAdditionalBodyParameters(exports_settings.UpdateMcpServerRequest.jsonOrThrow(request, {
|
|
7445
7914
|
unrecognizedObjectKeys: "passthrough",
|
|
7446
7915
|
allowUnrecognizedUnionMembers: true,
|
|
7447
7916
|
allowUnrecognizedEnumValues: true,
|
|
@@ -7503,10 +7972,10 @@ class McpServersClient3 {
|
|
|
7503
7972
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7504
7973
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
7505
7974
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
7506
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/settings/mcp-servers/${encodePathParam(name)}`),
|
|
7975
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), `api/v1/settings/mcp-servers/${exports_url.encodePathParam(name)}`),
|
|
7507
7976
|
method: "GET",
|
|
7508
7977
|
headers: _headers,
|
|
7509
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7978
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7510
7979
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
7511
7980
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
7512
7981
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -7590,10 +8059,10 @@ class ModelProvidersClient2 {
|
|
|
7590
8059
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7591
8060
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
7592
8061
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
7593
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/model-providers"),
|
|
8062
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/model-providers"),
|
|
7594
8063
|
method: "GET",
|
|
7595
8064
|
headers: _headers,
|
|
7596
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
8065
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7597
8066
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
7598
8067
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
7599
8068
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -7650,13 +8119,13 @@ class ModelProvidersClient2 {
|
|
|
7650
8119
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7651
8120
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
7652
8121
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
7653
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/model-providers"),
|
|
8122
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/model-providers"),
|
|
7654
8123
|
method: "POST",
|
|
7655
8124
|
headers: _headers,
|
|
7656
8125
|
contentType: "application/json",
|
|
7657
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
8126
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7658
8127
|
requestType: "json",
|
|
7659
|
-
body: mergeAdditionalBodyParameters(CreateModelProviderRequest.jsonOrThrow(request, {
|
|
8128
|
+
body: mergeAdditionalBodyParameters(exports_settings.CreateModelProviderRequest.jsonOrThrow(request, {
|
|
7660
8129
|
unrecognizedObjectKeys: "passthrough",
|
|
7661
8130
|
allowUnrecognizedUnionMembers: true,
|
|
7662
8131
|
allowUnrecognizedEnumValues: true,
|
|
@@ -7718,13 +8187,13 @@ class ModelProvidersClient2 {
|
|
|
7718
8187
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7719
8188
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
7720
8189
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
7721
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/model-providers"),
|
|
8190
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/model-providers"),
|
|
7722
8191
|
method: "PUT",
|
|
7723
8192
|
headers: _headers,
|
|
7724
8193
|
contentType: "application/json",
|
|
7725
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
8194
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7726
8195
|
requestType: "json",
|
|
7727
|
-
body: mergeAdditionalBodyParameters(UpdateModelProviderRequest.jsonOrThrow(request, {
|
|
8196
|
+
body: mergeAdditionalBodyParameters(exports_settings.UpdateModelProviderRequest.jsonOrThrow(request, {
|
|
7728
8197
|
unrecognizedObjectKeys: "passthrough",
|
|
7729
8198
|
allowUnrecognizedUnionMembers: true,
|
|
7730
8199
|
allowUnrecognizedEnumValues: true,
|
|
@@ -7813,10 +8282,10 @@ class SandboxProvidersClient2 {
|
|
|
7813
8282
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7814
8283
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
7815
8284
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
7816
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/sandbox-providers"),
|
|
8285
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/sandbox-providers"),
|
|
7817
8286
|
method: "GET",
|
|
7818
8287
|
headers: _headers,
|
|
7819
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
8288
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7820
8289
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
7821
8290
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
7822
8291
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -7865,13 +8334,13 @@ class SandboxProvidersClient2 {
|
|
|
7865
8334
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7866
8335
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
7867
8336
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
7868
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/sandbox-providers"),
|
|
8337
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/sandbox-providers"),
|
|
7869
8338
|
method: "PUT",
|
|
7870
8339
|
headers: _headers,
|
|
7871
8340
|
contentType: "application/json",
|
|
7872
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
8341
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7873
8342
|
requestType: "json",
|
|
7874
|
-
body: mergeAdditionalBodyParameters(UpdateSandboxProviderRequest.jsonOrThrow(request, {
|
|
8343
|
+
body: mergeAdditionalBodyParameters(exports_settings.UpdateSandboxProviderRequest.jsonOrThrow(request, {
|
|
7875
8344
|
unrecognizedObjectKeys: "passthrough",
|
|
7876
8345
|
allowUnrecognizedUnionMembers: true,
|
|
7877
8346
|
allowUnrecognizedEnumValues: true,
|
|
@@ -7968,10 +8437,10 @@ class SkillsClient2 {
|
|
|
7968
8437
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7969
8438
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
7970
8439
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
7971
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/skills"),
|
|
8440
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/skills"),
|
|
7972
8441
|
method: "GET",
|
|
7973
8442
|
headers: _headers,
|
|
7974
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
8443
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
7975
8444
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
7976
8445
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
7977
8446
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -8028,13 +8497,13 @@ class SkillsClient2 {
|
|
|
8028
8497
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
8029
8498
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
8030
8499
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
8031
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/skills"),
|
|
8500
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/skills"),
|
|
8032
8501
|
method: "POST",
|
|
8033
8502
|
headers: _headers,
|
|
8034
8503
|
contentType: "application/json",
|
|
8035
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
8504
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
8036
8505
|
requestType: "json",
|
|
8037
|
-
body: mergeAdditionalBodyParameters(CreateSkillRequest.jsonOrThrow(request, {
|
|
8506
|
+
body: mergeAdditionalBodyParameters(exports_settings.CreateSkillRequest.jsonOrThrow(request, {
|
|
8038
8507
|
unrecognizedObjectKeys: "passthrough",
|
|
8039
8508
|
allowUnrecognizedUnionMembers: true,
|
|
8040
8509
|
allowUnrecognizedEnumValues: true,
|
|
@@ -8096,13 +8565,13 @@ class SkillsClient2 {
|
|
|
8096
8565
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
8097
8566
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
8098
8567
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
8099
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/skills"),
|
|
8568
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/settings/skills"),
|
|
8100
8569
|
method: "PUT",
|
|
8101
8570
|
headers: _headers,
|
|
8102
8571
|
contentType: "application/json",
|
|
8103
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
8572
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
8104
8573
|
requestType: "json",
|
|
8105
|
-
body: mergeAdditionalBodyParameters(UpdateSkillRequest.jsonOrThrow(request, {
|
|
8574
|
+
body: mergeAdditionalBodyParameters(exports_settings.UpdateSkillRequest.jsonOrThrow(request, {
|
|
8106
8575
|
unrecognizedObjectKeys: "passthrough",
|
|
8107
8576
|
allowUnrecognizedUnionMembers: true,
|
|
8108
8577
|
allowUnrecognizedEnumValues: true,
|
|
@@ -8214,10 +8683,10 @@ class SkillsClient3 {
|
|
|
8214
8683
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
8215
8684
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === undefined ? undefined : _a.headers, requestOptions === null || requestOptions === undefined ? undefined : requestOptions.headers);
|
|
8216
8685
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== undefined ? _b : fetcher)({
|
|
8217
|
-
url: join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/skills"),
|
|
8686
|
+
url: exports_url.join((_c = yield Supplier.get(this._options.baseUrl)) !== null && _c !== undefined ? _c : yield Supplier.get(this._options.environment), "api/v1/skills"),
|
|
8218
8687
|
method: "GET",
|
|
8219
8688
|
headers: _headers,
|
|
8220
|
-
queryString: queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
8689
|
+
queryString: exports_url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === undefined ? undefined : requestOptions.queryParams).build(),
|
|
8221
8690
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.timeoutInSeconds) !== null && _d !== undefined ? _d : (_e = this._options) === null || _e === undefined ? undefined : _e.timeoutInSeconds) !== null && _f !== undefined ? _f : 60) * 1000,
|
|
8222
8691
|
maxRetries: (_g = requestOptions === null || requestOptions === undefined ? undefined : requestOptions.maxRetries) !== null && _g !== undefined ? _g : (_h = this._options) === null || _h === undefined ? undefined : _h.maxRetries,
|
|
8223
8692
|
abortSignal: requestOptions === null || requestOptions === undefined ? undefined : requestOptions.abortSignal,
|
|
@@ -8627,9 +9096,9 @@ class TrueForgeAdapter {
|
|
|
8627
9096
|
client;
|
|
8628
9097
|
config;
|
|
8629
9098
|
sensitiveValues;
|
|
8630
|
-
constructor(config,
|
|
9099
|
+
constructor(config, client5) {
|
|
8631
9100
|
this.config = config;
|
|
8632
|
-
this.client =
|
|
9101
|
+
this.client = client5 ?? new TrueForge({
|
|
8633
9102
|
baseUrl: config.baseUrl ?? DEFAULT_BASE_URL,
|
|
8634
9103
|
...config.token ? { token: config.token } : { auth: false },
|
|
8635
9104
|
...config.fetch ? { fetch: config.fetch } : {},
|
|
@@ -8692,10 +9161,10 @@ class TrueForgeAdapter {
|
|
|
8692
9161
|
await cancelSession();
|
|
8693
9162
|
throw new Error("turn-aborted");
|
|
8694
9163
|
}
|
|
8695
|
-
const
|
|
9164
|
+
const stream2 = await this.client.sessions.createTurnStream(sessionId, { input: [{ type: "user.message", content: prompt }] }, this.requestOptions(timeoutMs, controller.signal));
|
|
8696
9165
|
if (controller.signal.aborted)
|
|
8697
9166
|
throw new Error("turn-aborted");
|
|
8698
|
-
for await (const event of
|
|
9167
|
+
for await (const event of stream2) {
|
|
8699
9168
|
if (controller.signal.aborted)
|
|
8700
9169
|
throw new Error("turn-aborted");
|
|
8701
9170
|
events.push(event);
|
|
@@ -8810,9 +9279,9 @@ class TrueForgeAdapter {
|
|
|
8810
9279
|
}
|
|
8811
9280
|
collectSensitiveValues() {
|
|
8812
9281
|
const values = [this.config.token, this.config.setup?.provider?.auth?.apiKey];
|
|
8813
|
-
const
|
|
8814
|
-
if (
|
|
8815
|
-
values.push(...Object.values(
|
|
9282
|
+
const auth2 = this.config.setup?.mcpServer?.auth;
|
|
9283
|
+
if (auth2?.type === "header")
|
|
9284
|
+
values.push(...Object.values(auth2.headers));
|
|
8816
9285
|
return values.filter((value) => typeof value === "string" && value.length > 0);
|
|
8817
9286
|
}
|
|
8818
9287
|
invokeOutcomeCollector(context) {
|
|
@@ -8864,13 +9333,13 @@ class TrueForgeAdapter {
|
|
|
8864
9333
|
}
|
|
8865
9334
|
// src/types.ts
|
|
8866
9335
|
function createLingProviderSetup(options = {}) {
|
|
8867
|
-
const
|
|
9336
|
+
const providerName2 = options.providerName ?? "ling";
|
|
8868
9337
|
const modelName = options.modelName ?? "ling-3-flash";
|
|
8869
9338
|
return {
|
|
8870
|
-
model: { name: `${
|
|
9339
|
+
model: { name: `${providerName2}/${modelName}` },
|
|
8871
9340
|
provider: {
|
|
8872
9341
|
type: "custom",
|
|
8873
|
-
name:
|
|
9342
|
+
name: providerName2,
|
|
8874
9343
|
baseUrl: options.baseUrl ?? "https://api.ant-ling.com/v1",
|
|
8875
9344
|
...options.apiKey ? { auth: { apiKey: options.apiKey } } : {},
|
|
8876
9345
|
models: [
|
|
@@ -8884,9 +9353,9 @@ function createLingProviderSetup(options = {}) {
|
|
|
8884
9353
|
};
|
|
8885
9354
|
}
|
|
8886
9355
|
export {
|
|
8887
|
-
|
|
8888
|
-
createLingProviderSetup,
|
|
8889
|
-
normalizeTrueForgeActions,
|
|
9356
|
+
sanitizeTrueForgeText,
|
|
8890
9357
|
sanitizeTrueForgeEvents,
|
|
8891
|
-
|
|
9358
|
+
normalizeTrueForgeActions,
|
|
9359
|
+
createLingProviderSetup,
|
|
9360
|
+
TrueForgeAdapter
|
|
8892
9361
|
};
|