oz-agent-sdk 1.0.0-alpha.9 → 1.0.2

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.
Files changed (87) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/client.d.mts +6 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +8 -5
  7. package/client.js.map +1 -1
  8. package/client.mjs +8 -5
  9. package/client.mjs.map +1 -1
  10. package/internal/utils/query.d.mts +2 -0
  11. package/internal/utils/query.d.mts.map +1 -0
  12. package/internal/utils/query.d.ts +2 -0
  13. package/internal/utils/query.d.ts.map +1 -0
  14. package/internal/utils/query.js +10 -0
  15. package/internal/utils/query.js.map +1 -0
  16. package/internal/utils/query.mjs +6 -0
  17. package/internal/utils/query.mjs.map +1 -0
  18. package/internal/utils.d.mts +1 -0
  19. package/internal/utils.d.ts +1 -0
  20. package/internal/utils.js +1 -0
  21. package/internal/utils.js.map +1 -1
  22. package/internal/utils.mjs +1 -0
  23. package/package.json +1 -1
  24. package/resources/agent/agent.d.mts +202 -16
  25. package/resources/agent/agent.d.mts.map +1 -1
  26. package/resources/agent/agent.d.ts +202 -16
  27. package/resources/agent/agent.d.ts.map +1 -1
  28. package/resources/agent/agent.js +23 -1
  29. package/resources/agent/agent.js.map +1 -1
  30. package/resources/agent/agent.mjs +23 -1
  31. package/resources/agent/agent.mjs.map +1 -1
  32. package/resources/agent/index.d.mts +3 -2
  33. package/resources/agent/index.d.mts.map +1 -1
  34. package/resources/agent/index.d.ts +3 -2
  35. package/resources/agent/index.d.ts.map +1 -1
  36. package/resources/agent/index.js +3 -1
  37. package/resources/agent/index.js.map +1 -1
  38. package/resources/agent/index.mjs +1 -0
  39. package/resources/agent/index.mjs.map +1 -1
  40. package/resources/agent/runs.d.mts +99 -18
  41. package/resources/agent/runs.d.mts.map +1 -1
  42. package/resources/agent/runs.d.ts +99 -18
  43. package/resources/agent/runs.d.ts.map +1 -1
  44. package/resources/agent/runs.js +10 -3
  45. package/resources/agent/runs.js.map +1 -1
  46. package/resources/agent/runs.mjs +10 -3
  47. package/resources/agent/runs.mjs.map +1 -1
  48. package/resources/agent/schedules.d.mts +32 -43
  49. package/resources/agent/schedules.d.mts.map +1 -1
  50. package/resources/agent/schedules.d.ts +32 -43
  51. package/resources/agent/schedules.d.ts.map +1 -1
  52. package/resources/agent/schedules.js +4 -2
  53. package/resources/agent/schedules.js.map +1 -1
  54. package/resources/agent/schedules.mjs +4 -2
  55. package/resources/agent/schedules.mjs.map +1 -1
  56. package/resources/agent/sessions.d.mts +31 -0
  57. package/resources/agent/sessions.d.mts.map +1 -0
  58. package/resources/agent/sessions.d.ts +31 -0
  59. package/resources/agent/sessions.d.ts.map +1 -0
  60. package/resources/agent/sessions.js +28 -0
  61. package/resources/agent/sessions.js.map +1 -0
  62. package/resources/agent/sessions.mjs +24 -0
  63. package/resources/agent/sessions.mjs.map +1 -0
  64. package/resources/index.d.mts +1 -1
  65. package/resources/index.d.mts.map +1 -1
  66. package/resources/index.d.ts +1 -1
  67. package/resources/index.d.ts.map +1 -1
  68. package/resources/index.js.map +1 -1
  69. package/resources/index.mjs.map +1 -1
  70. package/src/client.ts +19 -8
  71. package/src/internal/utils/query.ts +7 -0
  72. package/src/internal/utils.ts +1 -0
  73. package/src/resources/agent/agent.ts +252 -13
  74. package/src/resources/agent/index.ts +6 -0
  75. package/src/resources/agent/runs.ts +119 -18
  76. package/src/resources/agent/schedules.ts +35 -47
  77. package/src/resources/agent/sessions.ts +38 -0
  78. package/src/resources/index.ts +4 -0
  79. package/src/version.ts +1 -1
  80. package/version.d.mts +1 -1
  81. package/version.d.mts.map +1 -1
  82. package/version.d.ts +1 -1
  83. package/version.d.ts.map +1 -1
  84. package/version.js +1 -1
  85. package/version.js.map +1 -1
  86. package/version.mjs +1 -1
  87. package/version.mjs.map +1 -1
@@ -2,12 +2,18 @@ import { APIResource } from "../../core/resource.mjs";
2
2
  import * as RunsAPI from "./runs.mjs";
3
3
  import { ArtifactItem, RunCancelResponse, RunItem, RunListParams, RunListResponse, RunSourceType, RunState, Runs } from "./runs.mjs";
4
4
  import * as SchedulesAPI from "./schedules.mjs";
5
- import { ScheduleCreateParams, ScheduleDeleteResponse, ScheduleListResponse, ScheduleUpdateParams, ScheduledAgentItem, Schedules } from "./schedules.mjs";
5
+ import { ScheduleCreateParams, ScheduleDeleteResponse, ScheduleListResponse, ScheduleUpdateParams, ScheduledAgentHistoryItem, ScheduledAgentItem, Schedules } from "./schedules.mjs";
6
+ import * as SessionsAPI from "./sessions.mjs";
7
+ import { SessionCheckRedirectResponse, Sessions } from "./sessions.mjs";
6
8
  import { APIPromise } from "../../core/api-promise.mjs";
7
9
  import { RequestOptions } from "../../internal/request-options.mjs";
10
+ /**
11
+ * Operations for running and managing cloud agents
12
+ */
8
13
  export declare class Agent extends APIResource {
9
14
  runs: RunsAPI.Runs;
10
15
  schedules: SchedulesAPI.Schedules;
16
+ sessions: SessionsAPI.Sessions;
11
17
  /**
12
18
  * Retrieve a list of available agents (skills) that can be used to run tasks.
13
19
  * Agents are discovered from environments or a specific repository.
@@ -19,7 +25,19 @@ export declare class Agent extends APIResource {
19
25
  */
20
26
  list(query?: AgentListParams | null | undefined, options?: RequestOptions): APIPromise<AgentListResponse>;
21
27
  /**
22
- * Spawn an cloud agent with a prompt and optional configuration. The agent will be
28
+ * Retrieve an artifact by its UUID. For screenshot artifacts, returns a
29
+ * time-limited signed download URL.
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const response = await client.agent.getArtifact(
34
+ * 'artifactUid',
35
+ * );
36
+ * ```
37
+ */
38
+ getArtifact(artifactUid: string, options?: RequestOptions): APIPromise<AgentGetArtifactResponse>;
39
+ /**
40
+ * Spawn a cloud agent with a prompt and optional configuration. The agent will be
23
41
  * queued for execution and assigned a unique run ID.
24
42
  *
25
43
  * @example
@@ -61,6 +79,12 @@ export declare namespace AgentSkill {
61
79
  */
62
80
  environments: Array<Variant.Environment>;
63
81
  source: Variant.Source;
82
+ /**
83
+ * Non-empty when the skill's SKILL.md file exists but is malformed. Contains a
84
+ * description of the parse failure. Only present when
85
+ * include_malformed_skills=true is passed to the list agents endpoint.
86
+ */
87
+ error?: string;
64
88
  /**
65
89
  * Timestamp of the last time this skill was run (RFC3339)
66
90
  */
@@ -94,7 +118,7 @@ export declare namespace AgentSkill {
94
118
  }
95
119
  }
96
120
  /**
97
- * Configuration for an cloud agent run
121
+ * Configuration for a cloud agent run
98
122
  */
99
123
  export interface AmbientAgentConfig {
100
124
  /**
@@ -121,7 +145,10 @@ export interface AmbientAgentConfig {
121
145
  */
122
146
  model_id?: string;
123
147
  /**
124
- * Config name for searchability and traceability
148
+ * Human-readable label for grouping, filtering, and traceability. Automatically
149
+ * set to the skill name when running a skill-based agent. Set this explicitly to
150
+ * categorize runs by intent (e.g., "nightly-dependency-check") so you can filter
151
+ * and track them via the name query parameter on GET /agent/runs.
125
152
  */
126
153
  name?: string;
127
154
  /**
@@ -174,6 +201,83 @@ export declare namespace CloudEnvironmentConfig {
174
201
  repo: string;
175
202
  }
176
203
  }
204
+ /**
205
+ * Error response following RFC 7807 (Problem Details for HTTP APIs). Includes
206
+ * backward-compatible extension members.
207
+ *
208
+ * The response uses the `application/problem+json` content type. Additional
209
+ * extension members (e.g., `auth_url`, `provider`) may be present depending on the
210
+ * error code.
211
+ */
212
+ export interface Error {
213
+ /**
214
+ * Human-readable error message combining title and detail. Backward-compatible
215
+ * extension member for older clients.
216
+ */
217
+ error: string;
218
+ /**
219
+ * The HTTP status code for this occurrence of the problem (RFC 7807)
220
+ */
221
+ status: number;
222
+ /**
223
+ * A short, human-readable summary of the problem type (RFC 7807)
224
+ */
225
+ title: string;
226
+ /**
227
+ * A URI reference that identifies the problem type (RFC 7807). Format:
228
+ * `https://docs.warp.dev/reference/api-and-sdk/troubleshooting/errors/{error_code}`
229
+ * See PlatformErrorCode for the list of possible error codes.
230
+ */
231
+ type: string;
232
+ /**
233
+ * A human-readable explanation specific to this occurrence of the problem
234
+ * (RFC 7807)
235
+ */
236
+ detail?: string;
237
+ /**
238
+ * The request path that generated this error (RFC 7807)
239
+ */
240
+ instance?: string;
241
+ /**
242
+ * Whether the request can be retried. When true, the error is transient and the
243
+ * request may be retried. When false, retrying without addressing the underlying
244
+ * cause will not succeed.
245
+ */
246
+ retryable?: boolean;
247
+ /**
248
+ * OpenTelemetry trace ID for debugging and support requests
249
+ */
250
+ trace_id?: string;
251
+ }
252
+ /**
253
+ * Machine-readable error code identifying the problem type. Used in the `type` URI
254
+ * of Error responses and in the `error_code` field of RunStatusMessage.
255
+ *
256
+ * User errors (run transitions to FAILED):
257
+ *
258
+ * - `insufficient_credits` — Team has no remaining add-on credits
259
+ * - `feature_not_available` — Required feature not enabled for user's plan
260
+ * - `external_authentication_required` — User hasn't authorized a required
261
+ * external service
262
+ * - `not_authorized` — Principal lacks permission for the requested operation
263
+ * - `invalid_request` — Request is malformed or contains invalid parameters
264
+ * - `resource_not_found` — Referenced resource does not exist
265
+ * - `budget_exceeded` — Spending budget limit has been reached
266
+ * - `integration_disabled` — Integration is disabled and must be enabled
267
+ * - `integration_not_configured` — Integration setup is incomplete
268
+ * - `operation_not_supported` — Requested operation not supported for this
269
+ * resource/state
270
+ * - `environment_setup_failed` — Client-side environment setup failed
271
+ * - `content_policy_violation` — Prompt or setup commands violated content policy
272
+ * - `conflict` — Request conflicts with the current state of the resource
273
+ *
274
+ * Warp errors (run transitions to ERROR):
275
+ *
276
+ * - `authentication_required` — Request lacks valid authentication credentials
277
+ * - `resource_unavailable` — Transient infrastructure issue (retryable)
278
+ * - `internal_error` — Unexpected server-side error (retryable)
279
+ */
280
+ export type ErrorCode = 'insufficient_credits' | 'feature_not_available' | 'external_authentication_required' | 'not_authorized' | 'invalid_request' | 'resource_not_found' | 'budget_exceeded' | 'integration_disabled' | 'integration_not_configured' | 'operation_not_supported' | 'environment_setup_failed' | 'content_policy_violation' | 'conflict' | 'authentication_required' | 'resource_unavailable' | 'internal_error';
177
281
  /**
178
282
  * Configuration for an MCP server. Must have exactly one of: warp_id, command, or
179
283
  * url.
@@ -208,11 +312,28 @@ export interface McpServerConfig {
208
312
  */
209
313
  warp_id?: string;
210
314
  }
315
+ /**
316
+ * Ownership scope for a resource (team or personal)
317
+ */
318
+ export interface Scope {
319
+ /**
320
+ * Type of ownership ("User" for personal, "Team" for team-owned)
321
+ */
322
+ type: 'User' | 'Team';
323
+ /**
324
+ * UID of the owning user or team
325
+ */
326
+ uid?: string;
327
+ }
211
328
  export interface UserProfile {
212
329
  /**
213
330
  * Display name of the creator
214
331
  */
215
332
  display_name?: string;
333
+ /**
334
+ * Email address of the creator
335
+ */
336
+ email?: string;
216
337
  /**
217
338
  * URL to the creator's photo
218
339
  */
@@ -232,6 +353,50 @@ export interface AgentListResponse {
232
353
  */
233
354
  agents: Array<AgentSkill>;
234
355
  }
356
+ /**
357
+ * Response for artifact retrieval. Currently supports screenshot artifacts.
358
+ */
359
+ export interface AgentGetArtifactResponse {
360
+ /**
361
+ * Type of the artifact (e.g., SCREENSHOT)
362
+ */
363
+ artifact_type: string;
364
+ /**
365
+ * Unique identifier (UUID) for the artifact
366
+ */
367
+ artifact_uid: string;
368
+ /**
369
+ * Timestamp when the artifact was created (RFC3339)
370
+ */
371
+ created_at: string;
372
+ /**
373
+ * Response data for a screenshot artifact, including a signed download URL.
374
+ */
375
+ data: AgentGetArtifactResponse.Data;
376
+ }
377
+ export declare namespace AgentGetArtifactResponse {
378
+ /**
379
+ * Response data for a screenshot artifact, including a signed download URL.
380
+ */
381
+ interface Data {
382
+ /**
383
+ * MIME type of the screenshot (e.g., image/png)
384
+ */
385
+ content_type: string;
386
+ /**
387
+ * Time-limited signed URL to download the screenshot
388
+ */
389
+ download_url: string;
390
+ /**
391
+ * Timestamp when the download URL expires (RFC3339)
392
+ */
393
+ expires_at: string;
394
+ /**
395
+ * Optional description of the screenshot
396
+ */
397
+ description?: string;
398
+ }
399
+ }
235
400
  export interface AgentRunResponse {
236
401
  /**
237
402
  * Unique identifier for the created run
@@ -246,6 +411,8 @@ export interface AgentRunResponse {
246
411
  * - INPROGRESS: Run is actively being executed
247
412
  * - SUCCEEDED: Run completed successfully
248
413
  * - FAILED: Run failed
414
+ * - BLOCKED: Run is blocked (e.g., awaiting user input or approval)
415
+ * - ERROR: Run encountered an error
249
416
  * - CANCELLED: Run was cancelled by user
250
417
  */
251
418
  state: RunsAPI.RunState;
@@ -253,8 +420,18 @@ export interface AgentRunResponse {
253
420
  * @deprecated Use run_id instead.
254
421
  */
255
422
  task_id: string;
423
+ /**
424
+ * Whether the system is at capacity when the run was created
425
+ */
426
+ at_capacity?: boolean;
256
427
  }
257
428
  export interface AgentListParams {
429
+ /**
430
+ * When true, includes skills whose SKILL.md file exists but is malformed. These
431
+ * variants will have a non-empty `error` field describing the parse failure.
432
+ * Defaults to false.
433
+ */
434
+ include_malformed_skills?: boolean;
258
435
  /**
259
436
  * When true, clears the agent list cache before fetching. Use this to force a
260
437
  * refresh of the available agents.
@@ -275,7 +452,12 @@ export interface AgentListParams {
275
452
  }
276
453
  export interface AgentRunParams {
277
454
  /**
278
- * Configuration for an cloud agent run
455
+ * Optional file attachments to include with the prompt (max 5). Attachments are
456
+ * uploaded to cloud storage and made available to the agent.
457
+ */
458
+ attachments?: Array<AgentRunParams.Attachment>;
459
+ /**
460
+ * Configuration for a cloud agent run
279
461
  */
280
462
  config?: AmbientAgentConfig;
281
463
  /**
@@ -284,10 +466,9 @@ export interface AgentRunParams {
284
466
  */
285
467
  conversation_id?: string;
286
468
  /**
287
- * Optional images to include with the prompt (max 5). Images are uploaded to cloud
288
- * storage and made available to the agent.
469
+ * Whether the run should be interactive. If not set, defaults to false.
289
470
  */
290
- images?: Array<AgentRunParams.Image>;
471
+ interactive?: boolean;
291
472
  /**
292
473
  * The prompt/instruction for the agent to execute. Required unless a skill is
293
474
  * specified via the skill field or config.skill_spec.
@@ -314,23 +495,28 @@ export interface AgentRunParams {
314
495
  }
315
496
  export declare namespace AgentRunParams {
316
497
  /**
317
- * A base64-encoded image to include with the prompt
498
+ * A base64-encoded file attachment to include with the prompt
318
499
  */
319
- interface Image {
500
+ interface Attachment {
320
501
  /**
321
- * Base64-encoded image data
502
+ * Base64-encoded attachment data
322
503
  */
323
504
  data: string;
324
505
  /**
325
- * MIME type of the image. Supported types: image/jpeg, image/png, image/gif,
326
- * image/webp
506
+ * Name of the attached file
507
+ */
508
+ file_name: string;
509
+ /**
510
+ * MIME type of the attachment. Supported image types: image/jpeg, image/png,
511
+ * image/gif, image/webp
327
512
  */
328
- mime_type: 'image/jpeg' | 'image/png' | 'image/gif' | 'image/webp';
513
+ mime_type: string;
329
514
  }
330
515
  }
331
516
  export declare namespace Agent {
332
- export { type AgentSkill as AgentSkill, type AmbientAgentConfig as AmbientAgentConfig, type CloudEnvironmentConfig as CloudEnvironmentConfig, type McpServerConfig as McpServerConfig, type UserProfile as UserProfile, type AgentListResponse as AgentListResponse, type AgentRunResponse as AgentRunResponse, type AgentListParams as AgentListParams, type AgentRunParams as AgentRunParams, };
517
+ export { type AgentSkill as AgentSkill, type AmbientAgentConfig as AmbientAgentConfig, type CloudEnvironmentConfig as CloudEnvironmentConfig, type Error as Error, type ErrorCode as ErrorCode, type McpServerConfig as McpServerConfig, type Scope as Scope, type UserProfile as UserProfile, type AgentListResponse as AgentListResponse, type AgentGetArtifactResponse as AgentGetArtifactResponse, type AgentRunResponse as AgentRunResponse, type AgentListParams as AgentListParams, type AgentRunParams as AgentRunParams, };
333
518
  export { Runs as Runs, type ArtifactItem as ArtifactItem, type RunItem as RunItem, type RunSourceType as RunSourceType, type RunState as RunState, type RunListResponse as RunListResponse, type RunCancelResponse as RunCancelResponse, type RunListParams as RunListParams, };
334
- export { Schedules as Schedules, type ScheduledAgentItem as ScheduledAgentItem, type ScheduleListResponse as ScheduleListResponse, type ScheduleDeleteResponse as ScheduleDeleteResponse, type ScheduleCreateParams as ScheduleCreateParams, type ScheduleUpdateParams as ScheduleUpdateParams, };
519
+ export { Schedules as Schedules, type ScheduledAgentHistoryItem as ScheduledAgentHistoryItem, type ScheduledAgentItem as ScheduledAgentItem, type ScheduleListResponse as ScheduleListResponse, type ScheduleDeleteResponse as ScheduleDeleteResponse, type ScheduleCreateParams as ScheduleCreateParams, type ScheduleUpdateParams as ScheduleUpdateParams, };
520
+ export { Sessions as Sessions, type SessionCheckRedirectResponse as SessionCheckRedirectResponse };
335
521
  }
336
522
  //# sourceMappingURL=agent.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.mts","sourceRoot":"","sources":["../../src/resources/agent/agent.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EACL,YAAY,EACZ,iBAAiB,EACjB,OAAO,EACP,aAAa,EACb,eAAe,EACf,aAAa,EACb,QAAQ,EACR,IAAI,EACL;OACM,KAAK,YAAY;OACjB,EACL,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,SAAS,EACV;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAE7E;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAIhC;;;;;;;;;;OAUG;IACH,GAAG,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGlF;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC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