oz-agent-sdk 1.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +179 -0
- package/LICENSE +201 -0
- package/README.md +422 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +179 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +179 -0
- package/client.d.ts.map +1 -0
- package/client.js +461 -0
- package/client.js.map +1 -0
- package/client.mjs +457 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +137 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/agent/agent.d.mts +413 -0
- package/resources/agent/agent.d.mts.map +1 -0
- package/resources/agent/agent.d.ts +413 -0
- package/resources/agent/agent.d.ts.map +1 -0
- package/resources/agent/agent.js +66 -0
- package/resources/agent/agent.js.map +1 -0
- package/resources/agent/agent.mjs +61 -0
- package/resources/agent/agent.mjs.map +1 -0
- package/resources/agent/index.d.mts +5 -0
- package/resources/agent/index.d.mts.map +1 -0
- package/resources/agent/index.d.ts +5 -0
- package/resources/agent/index.d.ts.map +1 -0
- package/resources/agent/index.js +13 -0
- package/resources/agent/index.js.map +1 -0
- package/resources/agent/index.mjs +6 -0
- package/resources/agent/index.mjs.map +1 -0
- package/resources/agent/runs.d.mts +412 -0
- package/resources/agent/runs.d.mts.map +1 -0
- package/resources/agent/runs.d.ts +412 -0
- package/resources/agent/runs.d.ts.map +1 -0
- package/resources/agent/runs.js +46 -0
- package/resources/agent/runs.js.map +1 -0
- package/resources/agent/runs.mjs +42 -0
- package/resources/agent/runs.mjs.map +1 -0
- package/resources/agent/schedules.d.mts +241 -0
- package/resources/agent/schedules.d.mts.map +1 -0
- package/resources/agent/schedules.d.ts +241 -0
- package/resources/agent/schedules.d.ts.map +1 -0
- package/resources/agent/schedules.js +110 -0
- package/resources/agent/schedules.js.map +1 -0
- package/resources/agent/schedules.mjs +106 -0
- package/resources/agent/schedules.mjs.map +1 -0
- package/resources/agent/sessions.d.mts +28 -0
- package/resources/agent/sessions.d.mts.map +1 -0
- package/resources/agent/sessions.d.ts +28 -0
- package/resources/agent/sessions.d.ts.map +1 -0
- package/resources/agent/sessions.js +25 -0
- package/resources/agent/sessions.js.map +1 -0
- package/resources/agent/sessions.mjs +21 -0
- package/resources/agent/sessions.mjs.map +1 -0
- package/resources/agent.d.mts +2 -0
- package/resources/agent.d.mts.map +1 -0
- package/resources/agent.d.ts +2 -0
- package/resources/agent.d.ts.map +1 -0
- package/resources/agent.js +6 -0
- package/resources/agent.js.map +1 -0
- package/resources/agent.mjs +3 -0
- package/resources/agent.mjs.map +1 -0
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +7 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +751 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/agent/agent.ts +538 -0
- package/src/resources/agent/index.ts +34 -0
- package/src/resources/agent/runs.ts +527 -0
- package/src/resources/agent/schedules.ts +306 -0
- package/src/resources/agent/sessions.ts +35 -0
- package/src/resources/agent.ts +3 -0
- package/src/resources/index.ts +15 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { OzAPIError } from '../../core/error';
|
|
4
|
+
|
|
5
|
+
// https://url.spec.whatwg.org/#url-scheme-string
|
|
6
|
+
const startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
|
|
7
|
+
|
|
8
|
+
export const isAbsoluteURL = (url: string): boolean => {
|
|
9
|
+
return startsWithSchemeRegexp.test(url);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export let isArray = (val: unknown): val is unknown[] => ((isArray = Array.isArray), isArray(val));
|
|
13
|
+
export let isReadonlyArray = isArray as (val: unknown) => val is readonly unknown[];
|
|
14
|
+
|
|
15
|
+
/** Returns an object if the given value isn't an object, otherwise returns as-is */
|
|
16
|
+
export function maybeObj(x: unknown): object {
|
|
17
|
+
if (typeof x !== 'object') {
|
|
18
|
+
return {};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return x ?? {};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// https://stackoverflow.com/a/34491287
|
|
25
|
+
export function isEmptyObj(obj: Object | null | undefined): boolean {
|
|
26
|
+
if (!obj) return true;
|
|
27
|
+
for (const _k in obj) return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// https://eslint.org/docs/latest/rules/no-prototype-builtins
|
|
32
|
+
export function hasOwn<T extends object = object>(obj: T, key: PropertyKey): key is keyof T {
|
|
33
|
+
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function isObj(obj: unknown): obj is Record<string, unknown> {
|
|
37
|
+
return obj != null && typeof obj === 'object' && !Array.isArray(obj);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const ensurePresent = <T>(value: T | null | undefined): T => {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
throw new OzAPIError(`Expected a value to be given but received ${value} instead.`);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return value;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const validatePositiveInteger = (name: string, n: unknown): number => {
|
|
49
|
+
if (typeof n !== 'number' || !Number.isInteger(n)) {
|
|
50
|
+
throw new OzAPIError(`${name} must be an integer`);
|
|
51
|
+
}
|
|
52
|
+
if (n < 0) {
|
|
53
|
+
throw new OzAPIError(`${name} must be a positive integer`);
|
|
54
|
+
}
|
|
55
|
+
return n;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const coerceInteger = (value: unknown): number => {
|
|
59
|
+
if (typeof value === 'number') return Math.round(value);
|
|
60
|
+
if (typeof value === 'string') return parseInt(value, 10);
|
|
61
|
+
|
|
62
|
+
throw new OzAPIError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export const coerceFloat = (value: unknown): number => {
|
|
66
|
+
if (typeof value === 'number') return value;
|
|
67
|
+
if (typeof value === 'string') return parseFloat(value);
|
|
68
|
+
|
|
69
|
+
throw new OzAPIError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export const coerceBoolean = (value: unknown): boolean => {
|
|
73
|
+
if (typeof value === 'boolean') return value;
|
|
74
|
+
if (typeof value === 'string') return value === 'true';
|
|
75
|
+
return Boolean(value);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const maybeCoerceInteger = (value: unknown): number | undefined => {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
return coerceInteger(value);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const maybeCoerceFloat = (value: unknown): number | undefined => {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return undefined;
|
|
88
|
+
}
|
|
89
|
+
return coerceFloat(value);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export const maybeCoerceBoolean = (value: unknown): boolean | undefined => {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
return coerceBoolean(value);
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export const safeJSON = (text: string) => {
|
|
100
|
+
try {
|
|
101
|
+
return JSON.parse(text);
|
|
102
|
+
} catch (err) {
|
|
103
|
+
return undefined;
|
|
104
|
+
}
|
|
105
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export * from './utils/values';
|
|
4
|
+
export * from './utils/base64';
|
|
5
|
+
export * from './utils/env';
|
|
6
|
+
export * from './utils/log';
|
|
7
|
+
export * from './utils/uuid';
|
|
8
|
+
export * from './utils/sleep';
|
package/src/lib/.keep
ADDED
package/src/resource.ts
ADDED
|
@@ -0,0 +1,538 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as RunsAPI from './runs';
|
|
5
|
+
import {
|
|
6
|
+
ArtifactItem,
|
|
7
|
+
RunCancelResponse,
|
|
8
|
+
RunItem,
|
|
9
|
+
RunListParams,
|
|
10
|
+
RunListResponse,
|
|
11
|
+
RunSourceType,
|
|
12
|
+
RunState,
|
|
13
|
+
Runs,
|
|
14
|
+
} from './runs';
|
|
15
|
+
import * as SchedulesAPI from './schedules';
|
|
16
|
+
import {
|
|
17
|
+
ScheduleCreateParams,
|
|
18
|
+
ScheduleDeleteResponse,
|
|
19
|
+
ScheduleListResponse,
|
|
20
|
+
ScheduleUpdateParams,
|
|
21
|
+
ScheduledAgentItem,
|
|
22
|
+
Schedules,
|
|
23
|
+
} from './schedules';
|
|
24
|
+
import * as SessionsAPI from './sessions';
|
|
25
|
+
import { SessionCheckRedirectResponse, Sessions } from './sessions';
|
|
26
|
+
import { APIPromise } from '../../core/api-promise';
|
|
27
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
28
|
+
import { path } from '../../internal/utils/path';
|
|
29
|
+
|
|
30
|
+
export class Agent extends APIResource {
|
|
31
|
+
runs: RunsAPI.Runs = new RunsAPI.Runs(this._client);
|
|
32
|
+
schedules: SchedulesAPI.Schedules = new SchedulesAPI.Schedules(this._client);
|
|
33
|
+
sessions: SessionsAPI.Sessions = new SessionsAPI.Sessions(this._client);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Retrieve a list of available agents (skills) that can be used to run tasks.
|
|
37
|
+
* Agents are discovered from environments or a specific repository.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const agents = await client.agent.list();
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
list(
|
|
45
|
+
query: AgentListParams | null | undefined = {},
|
|
46
|
+
options?: RequestOptions,
|
|
47
|
+
): APIPromise<AgentListResponse> {
|
|
48
|
+
return this._client.get('/agent', { query, ...options });
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Retrieve an artifact by its UUID. For screenshot artifacts, returns a
|
|
53
|
+
* time-limited signed download URL.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const response = await client.agent.getArtifact(
|
|
58
|
+
* 'artifactUid',
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
getArtifact(artifactUid: string, options?: RequestOptions): APIPromise<AgentGetArtifactResponse> {
|
|
63
|
+
return this._client.get(path`/agent/artifacts/${artifactUid}`, options);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Spawn a cloud agent with a prompt and optional configuration. The agent will be
|
|
68
|
+
* queued for execution and assigned a unique run ID.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const response = await client.agent.run({
|
|
73
|
+
* prompt: 'Fix the bug in auth.go',
|
|
74
|
+
* });
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
run(body: AgentRunParams, options?: RequestOptions): APIPromise<AgentRunResponse> {
|
|
78
|
+
return this._client.post('/agent/run', { body, ...options });
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface AgentSkill {
|
|
83
|
+
/**
|
|
84
|
+
* Human-readable name of the agent
|
|
85
|
+
*/
|
|
86
|
+
name: string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Available variants of this agent
|
|
90
|
+
*/
|
|
91
|
+
variants: Array<AgentSkill.Variant>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export namespace AgentSkill {
|
|
95
|
+
export interface Variant {
|
|
96
|
+
/**
|
|
97
|
+
* Stable identifier for this skill variant. Format: "{owner}/{repo}:{skill_path}"
|
|
98
|
+
* Example: "warpdotdev/warp-server:.claude/skills/deploy/SKILL.md"
|
|
99
|
+
*/
|
|
100
|
+
id: string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Base prompt/instructions for the agent
|
|
104
|
+
*/
|
|
105
|
+
base_prompt: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Description of the agent variant
|
|
109
|
+
*/
|
|
110
|
+
description: string;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Environments where this agent variant is available
|
|
114
|
+
*/
|
|
115
|
+
environments: Array<Variant.Environment>;
|
|
116
|
+
|
|
117
|
+
source: Variant.Source;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Timestamp of the last time this skill was run (RFC3339)
|
|
121
|
+
*/
|
|
122
|
+
last_run_timestamp?: string | null;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export namespace Variant {
|
|
126
|
+
export interface Environment {
|
|
127
|
+
/**
|
|
128
|
+
* Human-readable name of the environment
|
|
129
|
+
*/
|
|
130
|
+
name: string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Unique identifier for the environment
|
|
134
|
+
*/
|
|
135
|
+
uid: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface Source {
|
|
139
|
+
/**
|
|
140
|
+
* GitHub repository name
|
|
141
|
+
*/
|
|
142
|
+
name: string;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* GitHub repository owner
|
|
146
|
+
*/
|
|
147
|
+
owner: string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Path to the skill definition file within the repository
|
|
151
|
+
*/
|
|
152
|
+
skill_path: string;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Configuration for a cloud agent run
|
|
159
|
+
*/
|
|
160
|
+
export interface AmbientAgentConfig {
|
|
161
|
+
/**
|
|
162
|
+
* Custom base prompt for the agent
|
|
163
|
+
*/
|
|
164
|
+
base_prompt?: string;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Controls whether computer use is enabled for this agent. If not set, defaults to
|
|
168
|
+
* false.
|
|
169
|
+
*/
|
|
170
|
+
computer_use_enabled?: boolean;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* UID of the environment to run the agent in
|
|
174
|
+
*/
|
|
175
|
+
environment_id?: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Map of MCP server configurations by name
|
|
179
|
+
*/
|
|
180
|
+
mcp_servers?: { [key: string]: McpServerConfig };
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* LLM model to use (uses team default if not specified)
|
|
184
|
+
*/
|
|
185
|
+
model_id?: string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Human-readable label for grouping, filtering, and traceability. Automatically
|
|
189
|
+
* set to the skill name when running a skill-based agent. Set this explicitly to
|
|
190
|
+
* categorize runs by intent (e.g., "nightly-dependency-check") so you can filter
|
|
191
|
+
* and track them via the name query parameter on GET /agent/runs.
|
|
192
|
+
*/
|
|
193
|
+
name?: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Skill specification identifying which agent skill to use. Format:
|
|
197
|
+
* "{owner}/{repo}:{skill_path}" Example:
|
|
198
|
+
* "warpdotdev/warp-server:.claude/skills/deploy/SKILL.md" Use the list agents
|
|
199
|
+
* endpoint to discover available skills.
|
|
200
|
+
*/
|
|
201
|
+
skill_spec?: string;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Self-hosted worker ID that should execute this task. If not specified or set to
|
|
205
|
+
* "warp", the task runs on Warp-hosted workers.
|
|
206
|
+
*/
|
|
207
|
+
worker_host?: string;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Configuration for a cloud environment used by scheduled agents
|
|
212
|
+
*/
|
|
213
|
+
export interface CloudEnvironmentConfig {
|
|
214
|
+
/**
|
|
215
|
+
* Optional description of the environment
|
|
216
|
+
*/
|
|
217
|
+
description?: string | null;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Docker image to use (e.g., "ubuntu:latest" or "registry/repo:tag")
|
|
221
|
+
*/
|
|
222
|
+
docker_image?: string;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* List of GitHub repositories to clone into the environment
|
|
226
|
+
*/
|
|
227
|
+
github_repos?: Array<CloudEnvironmentConfig.GitHubRepo>;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Human-readable name for the environment
|
|
231
|
+
*/
|
|
232
|
+
name?: string;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Shell commands to run during environment setup
|
|
236
|
+
*/
|
|
237
|
+
setup_commands?: Array<string>;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export namespace CloudEnvironmentConfig {
|
|
241
|
+
export interface GitHubRepo {
|
|
242
|
+
/**
|
|
243
|
+
* GitHub repository owner (user or organization)
|
|
244
|
+
*/
|
|
245
|
+
owner: string;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* GitHub repository name
|
|
249
|
+
*/
|
|
250
|
+
repo: string;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Configuration for an MCP server. Must have exactly one of: warp_id, command, or
|
|
256
|
+
* url.
|
|
257
|
+
*/
|
|
258
|
+
export interface McpServerConfig {
|
|
259
|
+
/**
|
|
260
|
+
* Stdio transport - command arguments
|
|
261
|
+
*/
|
|
262
|
+
args?: Array<string>;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Stdio transport - command to run
|
|
266
|
+
*/
|
|
267
|
+
command?: string;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Environment variables for the server
|
|
271
|
+
*/
|
|
272
|
+
env?: { [key: string]: string };
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* HTTP headers for SSE/HTTP transport
|
|
276
|
+
*/
|
|
277
|
+
headers?: { [key: string]: string };
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* SSE/HTTP transport - server URL
|
|
281
|
+
*/
|
|
282
|
+
url?: string;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Reference to a Warp shared MCP server by UUID
|
|
286
|
+
*/
|
|
287
|
+
warp_id?: string;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export interface UserProfile {
|
|
291
|
+
/**
|
|
292
|
+
* Display name of the creator
|
|
293
|
+
*/
|
|
294
|
+
display_name?: string;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Email address of the creator
|
|
298
|
+
*/
|
|
299
|
+
email?: string;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* URL to the creator's photo
|
|
303
|
+
*/
|
|
304
|
+
photo_url?: string;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Type of the creator principal
|
|
308
|
+
*/
|
|
309
|
+
type?: 'user' | 'service_account';
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Unique identifier of the creator
|
|
313
|
+
*/
|
|
314
|
+
uid?: string;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export interface AgentListResponse {
|
|
318
|
+
/**
|
|
319
|
+
* List of available agents
|
|
320
|
+
*/
|
|
321
|
+
agents: Array<AgentSkill>;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Response for artifact retrieval. Currently supports screenshot artifacts.
|
|
326
|
+
*/
|
|
327
|
+
export interface AgentGetArtifactResponse {
|
|
328
|
+
/**
|
|
329
|
+
* Type of the artifact (e.g., SCREENSHOT)
|
|
330
|
+
*/
|
|
331
|
+
artifact_type: string;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Unique identifier (UUID) for the artifact
|
|
335
|
+
*/
|
|
336
|
+
artifact_uid: string;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Timestamp when the artifact was created (RFC3339)
|
|
340
|
+
*/
|
|
341
|
+
created_at: string;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Response data for a screenshot artifact, including a signed download URL.
|
|
345
|
+
*/
|
|
346
|
+
data: AgentGetArtifactResponse.Data;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export namespace AgentGetArtifactResponse {
|
|
350
|
+
/**
|
|
351
|
+
* Response data for a screenshot artifact, including a signed download URL.
|
|
352
|
+
*/
|
|
353
|
+
export interface Data {
|
|
354
|
+
/**
|
|
355
|
+
* MIME type of the screenshot (e.g., image/png)
|
|
356
|
+
*/
|
|
357
|
+
content_type: string;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Time-limited signed URL to download the screenshot
|
|
361
|
+
*/
|
|
362
|
+
download_url: string;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Timestamp when the download URL expires (RFC3339)
|
|
366
|
+
*/
|
|
367
|
+
expires_at: string;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Optional description of the screenshot
|
|
371
|
+
*/
|
|
372
|
+
description?: string;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export interface AgentRunResponse {
|
|
377
|
+
/**
|
|
378
|
+
* Unique identifier for the created run
|
|
379
|
+
*/
|
|
380
|
+
run_id: string;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Current state of the run:
|
|
384
|
+
*
|
|
385
|
+
* - QUEUED: Run is waiting to be picked up
|
|
386
|
+
* - PENDING: Run is being prepared
|
|
387
|
+
* - CLAIMED: Run has been claimed by a worker
|
|
388
|
+
* - INPROGRESS: Run is actively being executed
|
|
389
|
+
* - SUCCEEDED: Run completed successfully
|
|
390
|
+
* - FAILED: Run failed
|
|
391
|
+
* - BLOCKED: Run is blocked (e.g., awaiting user input or approval)
|
|
392
|
+
* - ERROR: Run encountered an error
|
|
393
|
+
* - CANCELLED: Run was cancelled by user
|
|
394
|
+
*/
|
|
395
|
+
state: RunsAPI.RunState;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* @deprecated Use run_id instead.
|
|
399
|
+
*/
|
|
400
|
+
task_id: string;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Whether the system is at capacity when the run was created
|
|
404
|
+
*/
|
|
405
|
+
at_capacity?: boolean;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
export interface AgentListParams {
|
|
409
|
+
/**
|
|
410
|
+
* When true, clears the agent list cache before fetching. Use this to force a
|
|
411
|
+
* refresh of the available agents.
|
|
412
|
+
*/
|
|
413
|
+
refresh?: boolean;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Optional repository specification to list agents from (format: "owner/repo"). If
|
|
417
|
+
* not provided, lists agents from all accessible environments.
|
|
418
|
+
*/
|
|
419
|
+
repo?: string;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Sort order for the returned agents.
|
|
423
|
+
*
|
|
424
|
+
* - "name": Sort alphabetically by name (default)
|
|
425
|
+
* - "last_run": Sort by most recently used
|
|
426
|
+
*/
|
|
427
|
+
sort_by?: 'name' | 'last_run';
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export interface AgentRunParams {
|
|
431
|
+
/**
|
|
432
|
+
* Optional file attachments to include with the prompt (max 5). Attachments are
|
|
433
|
+
* uploaded to cloud storage and made available to the agent.
|
|
434
|
+
*/
|
|
435
|
+
attachments?: Array<AgentRunParams.Attachment>;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Configuration for a cloud agent run
|
|
439
|
+
*/
|
|
440
|
+
config?: AmbientAgentConfig;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Optional conversation ID to continue an existing conversation. If provided, the
|
|
444
|
+
* agent will continue from where the previous run left off.
|
|
445
|
+
*/
|
|
446
|
+
conversation_id?: string;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* The prompt/instruction for the agent to execute. Required unless a skill is
|
|
450
|
+
* specified via the skill field or config.skill_spec.
|
|
451
|
+
*/
|
|
452
|
+
prompt?: string;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Skill specification to use as the base prompt for the agent. Supported formats:
|
|
456
|
+
*
|
|
457
|
+
* - "repo:skill_name" - Simple name in specific repo
|
|
458
|
+
* - "repo:skill_path" - Full path in specific repo
|
|
459
|
+
* - "org/repo:skill_name" - Simple name with org and repo
|
|
460
|
+
* - "org/repo:skill_path" - Full path with org and repo When provided, this takes
|
|
461
|
+
* precedence over config.skill_spec.
|
|
462
|
+
*/
|
|
463
|
+
skill?: string;
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Whether to create a team-owned run. Defaults to true for users on a single team.
|
|
467
|
+
*/
|
|
468
|
+
team?: boolean;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Custom title for the run (auto-generated if not provided)
|
|
472
|
+
*/
|
|
473
|
+
title?: string;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
export namespace AgentRunParams {
|
|
477
|
+
/**
|
|
478
|
+
* A base64-encoded file attachment to include with the prompt
|
|
479
|
+
*/
|
|
480
|
+
export interface Attachment {
|
|
481
|
+
/**
|
|
482
|
+
* Base64-encoded attachment data
|
|
483
|
+
*/
|
|
484
|
+
data: string;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Name of the attached file
|
|
488
|
+
*/
|
|
489
|
+
file_name: string;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* MIME type of the attachment. Supported image types: image/jpeg, image/png,
|
|
493
|
+
* image/gif, image/webp
|
|
494
|
+
*/
|
|
495
|
+
mime_type: string;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
Agent.Runs = Runs;
|
|
500
|
+
Agent.Schedules = Schedules;
|
|
501
|
+
Agent.Sessions = Sessions;
|
|
502
|
+
|
|
503
|
+
export declare namespace Agent {
|
|
504
|
+
export {
|
|
505
|
+
type AgentSkill as AgentSkill,
|
|
506
|
+
type AmbientAgentConfig as AmbientAgentConfig,
|
|
507
|
+
type CloudEnvironmentConfig as CloudEnvironmentConfig,
|
|
508
|
+
type McpServerConfig as McpServerConfig,
|
|
509
|
+
type UserProfile as UserProfile,
|
|
510
|
+
type AgentListResponse as AgentListResponse,
|
|
511
|
+
type AgentGetArtifactResponse as AgentGetArtifactResponse,
|
|
512
|
+
type AgentRunResponse as AgentRunResponse,
|
|
513
|
+
type AgentListParams as AgentListParams,
|
|
514
|
+
type AgentRunParams as AgentRunParams,
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
export {
|
|
518
|
+
Runs as Runs,
|
|
519
|
+
type ArtifactItem as ArtifactItem,
|
|
520
|
+
type RunItem as RunItem,
|
|
521
|
+
type RunSourceType as RunSourceType,
|
|
522
|
+
type RunState as RunState,
|
|
523
|
+
type RunListResponse as RunListResponse,
|
|
524
|
+
type RunCancelResponse as RunCancelResponse,
|
|
525
|
+
type RunListParams as RunListParams,
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
export {
|
|
529
|
+
Schedules as Schedules,
|
|
530
|
+
type ScheduledAgentItem as ScheduledAgentItem,
|
|
531
|
+
type ScheduleListResponse as ScheduleListResponse,
|
|
532
|
+
type ScheduleDeleteResponse as ScheduleDeleteResponse,
|
|
533
|
+
type ScheduleCreateParams as ScheduleCreateParams,
|
|
534
|
+
type ScheduleUpdateParams as ScheduleUpdateParams,
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
export { Sessions as Sessions, type SessionCheckRedirectResponse as SessionCheckRedirectResponse };
|
|
538
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Agent,
|
|
5
|
+
type AgentSkill,
|
|
6
|
+
type AmbientAgentConfig,
|
|
7
|
+
type CloudEnvironmentConfig,
|
|
8
|
+
type McpServerConfig,
|
|
9
|
+
type UserProfile,
|
|
10
|
+
type AgentListResponse,
|
|
11
|
+
type AgentGetArtifactResponse,
|
|
12
|
+
type AgentRunResponse,
|
|
13
|
+
type AgentListParams,
|
|
14
|
+
type AgentRunParams,
|
|
15
|
+
} from './agent';
|
|
16
|
+
export {
|
|
17
|
+
Runs,
|
|
18
|
+
type ArtifactItem,
|
|
19
|
+
type RunItem,
|
|
20
|
+
type RunSourceType,
|
|
21
|
+
type RunState,
|
|
22
|
+
type RunListResponse,
|
|
23
|
+
type RunCancelResponse,
|
|
24
|
+
type RunListParams,
|
|
25
|
+
} from './runs';
|
|
26
|
+
export {
|
|
27
|
+
Schedules,
|
|
28
|
+
type ScheduledAgentItem,
|
|
29
|
+
type ScheduleListResponse,
|
|
30
|
+
type ScheduleDeleteResponse,
|
|
31
|
+
type ScheduleCreateParams,
|
|
32
|
+
type ScheduleUpdateParams,
|
|
33
|
+
} from './schedules';
|
|
34
|
+
export { Sessions, type SessionCheckRedirectResponse } from './sessions';
|