@artemiskit/adapter-trueforge 0.1.12 → 0.1.13

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