@amigo-ai/platform-sdk 0.87.0 → 0.89.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,61 @@
1
+ import { WorkspaceScopedResource, extractData } from './base.js';
2
+ /**
3
+ * Native (bring-your-own) agent definition registry — the frameworks layer's
4
+ * registry for native framework agents (OpenAI SDK / Anthropic SDK) that run
5
+ * against the platform world-model tools. Register is an idempotent push: a new
6
+ * content hash mints a new immutable, clamp-validated version.
7
+ */
8
+ export class AgentDefinitionsResource extends WorkspaceScopedResource {
9
+ async list(params) {
10
+ return extractData(await this.client.GET('/v1/{workspace_id}/agent-definitions', {
11
+ params: { path: { workspace_id: this.workspaceId }, query: params },
12
+ }));
13
+ }
14
+ listAutoPaging(params) {
15
+ return this.iteratePaginatedList((pageParams) => this.list(pageParams), params);
16
+ }
17
+ /**
18
+ * Register (idempotent push) a native definition. An identical body re-push
19
+ * reports `created: false`; a changed body mints a new version.
20
+ */
21
+ async register(body) {
22
+ return extractData(await this.client.POST('/v1/{workspace_id}/agent-definitions', {
23
+ params: { path: { workspace_id: this.workspaceId } },
24
+ body,
25
+ }));
26
+ }
27
+ /** Dry-run clamp validation — nothing is stored; 422 with the offending paths on failure. */
28
+ async validate(body) {
29
+ return extractData(await this.client.POST('/v1/{workspace_id}/agent-definitions/validate', {
30
+ params: { path: { workspace_id: this.workspaceId } },
31
+ body,
32
+ }));
33
+ }
34
+ async get(definitionId) {
35
+ return extractData(await this.client.GET('/v1/{workspace_id}/agent-definitions/{definition_id}', {
36
+ params: {
37
+ path: { workspace_id: this.workspaceId, definition_id: definitionId },
38
+ },
39
+ }));
40
+ }
41
+ /** Fetch a specific immutable version, including its clamped body. */
42
+ async getVersion(definitionId, version) {
43
+ return extractData(await this.client.GET('/v1/{workspace_id}/agent-definitions/{definition_id}/versions/{version}', {
44
+ params: {
45
+ path: {
46
+ workspace_id: this.workspaceId,
47
+ definition_id: definitionId,
48
+ version,
49
+ },
50
+ },
51
+ }));
52
+ }
53
+ async archive(definitionId) {
54
+ await this.client.DELETE('/v1/{workspace_id}/agent-definitions/{definition_id}', {
55
+ params: {
56
+ path: { workspace_id: this.workspaceId, definition_id: definitionId },
57
+ },
58
+ });
59
+ }
60
+ }
61
+ //# sourceMappingURL=agent-definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-definitions.js","sourceRoot":"","sources":["../../src/resources/agent-definitions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAahE;;;;;GAKG;AACH,MAAM,OAAO,wBAAyB,SAAQ,uBAAuB;IACnE,KAAK,CAAC,IAAI,CAAC,MAAmC;QAC5C,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,sCAAsC,EAAE;YAC5D,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;SACpE,CAAC,CACH,CAAA;IACH,CAAC;IAED,cAAc,CAAC,MAAmC;QAChD,OAAO,IAAI,CAAC,oBAAoB,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,CAAA;IACjF,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,QAAQ,CAAC,IAA6D;QAC1E,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,sCAAsC,EAAE;YAC7D,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE;YACpD,IAAI;SACL,CAAC,CACH,CAAA;IACH,CAAC;IAED,6FAA6F;IAC7F,KAAK,CAAC,QAAQ,CAAC,IAA6D;QAC1E,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,+CAA+C,EAAE;YACtE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE;YACpD,IAAI;SACL,CAAC,CACH,CAAA;IACH,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,YAAoB;QAC5B,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,sDAAsD,EAAE;YAC5E,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE;aACtE;SACF,CAAC,CACH,CAAA;IACH,CAAC;IAED,sEAAsE;IACtE,KAAK,CAAC,UAAU,CAAC,YAAoB,EAAE,OAAe;QACpD,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CACnB,yEAAyE,EACzE;YACE,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,YAAY,EAAE,IAAI,CAAC,WAAW;oBAC9B,aAAa,EAAE,YAAY;oBAC3B,OAAO;iBACR;aACF;SACF,CACF,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,YAAoB;QAChC,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,sDAAsD,EAAE;YAC/E,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE;aACtE;SACF,CAAC,CAAA;IACJ,CAAC;CACF"}
@@ -0,0 +1,46 @@
1
+ import { WorkspaceScopedResource, extractData } from './base.js';
2
+ /**
3
+ * Framework agent runs — the RUN + CONTEXT edges of the framework-agnostic
4
+ * world-model harness.
5
+ *
6
+ * Launch a message through a framework harness (OpenAI SDK / Anthropic SDK)
7
+ * bound to a service + version set, or a native run from a registered/inline
8
+ * definition; poll it to a terminal status; and fetch the retrievable harness
9
+ * context a run is handed. A run executes the chosen framework unmodified
10
+ * against the platform MCP world-tools edge.
11
+ */
12
+ export class AgentRunsResource extends WorkspaceScopedResource {
13
+ /**
14
+ * Launch a framework agent run — a platform run (`service_id` + `framework`)
15
+ * or a native run (`native`). Non-blocking; returns a running `run_id`, poll
16
+ * {@link get}.
17
+ */
18
+ async create(body) {
19
+ return extractData(await this.client.POST('/v1/{workspace_id}/agent-runs', {
20
+ params: { path: { workspace_id: this.workspaceId } },
21
+ body,
22
+ }));
23
+ }
24
+ /** Fetch a run snapshot: status, final text, trajectory, and token usage. */
25
+ async get(runId) {
26
+ return extractData(await this.client.GET('/v1/{workspace_id}/agent-runs/{run_id}', {
27
+ params: { path: { workspace_id: this.workspaceId, run_id: runId } },
28
+ }));
29
+ }
30
+ /**
31
+ * The CONTEXT edge — the retrievable, framework-neutral session bootstrap a
32
+ * service hands an agent: identity/instructions, world scope, tool
33
+ * descriptors, guardrails, the real enforced write-floor, and runtime. This
34
+ * is the exact context a remote framework would fetch before a run.
35
+ */
36
+ async harnessContext(params) {
37
+ return extractData(await this.client.GET('/v1/{workspace_id}/agent-runs/harness-context', {
38
+ params: {
39
+ path: { workspace_id: this.workspaceId },
40
+ // camelCase args → snake_case wire query (service_id / version_set).
41
+ query: { service_id: params.serviceId, version_set: params.versionSet },
42
+ },
43
+ }));
44
+ }
45
+ }
46
+ //# sourceMappingURL=agent-runs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-runs.js","sourceRoot":"","sources":["../../src/resources/agent-runs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAEhE;;;;;;;;;GASG;AACH,MAAM,OAAO,iBAAkB,SAAQ,uBAAuB;IAC5D;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,IAAoD;QAC/D,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,+BAA+B,EAAE;YACtD,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE;YACpD,IAAI;SACL,CAAC,CACH,CAAA;IACH,CAAC;IAED,6EAA6E;IAC7E,KAAK,CAAC,GAAG,CAAC,KAAa;QACrB,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,wCAAwC,EAAE;YAC9D,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE;SACpE,CAAC,CACH,CAAA;IACH,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAAC,MAAkD;QACrE,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,+CAA+C,EAAE;YACrE,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE;gBACxC,qEAAqE;gBACrE,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,CAAC,UAAU,EAAE;aACxE;SACF,CAAC,CACH,CAAA;IACH,CAAC;CACF"}
@@ -794,7 +794,11 @@ export interface paths {
794
794
  path?: never;
795
795
  cookie?: never;
796
796
  };
797
- get?: never;
797
+ /**
798
+ * List framework agent runs
799
+ * @description Paginated list of framework agent runs for the workspace, newest first, read from the durable ``world.agent_runs`` read model. Filter by ``framework`` / ``status``. ``continuation_token`` is an opaque page cursor.
800
+ */
801
+ get: operations["list_agent_runs_v1__workspace_id__agent_runs_get"];
798
802
  put?: never;
799
803
  /**
800
804
  * Dispatch a framework agent run
@@ -5383,6 +5387,26 @@ export interface paths {
5383
5387
  patch?: never;
5384
5388
  trace?: never;
5385
5389
  };
5390
+ "/v1/{workspace_id}/runs": {
5391
+ parameters: {
5392
+ query?: never;
5393
+ header?: never;
5394
+ path?: never;
5395
+ cookie?: never;
5396
+ };
5397
+ /**
5398
+ * List runs (framework + conversation)
5399
+ * @description Paginated, newest-first list of runs for the workspace behind the unified ``Run`` contract. Federates framework runs (Delta ``world.runs`` MV) and conversation runs (Lakebase ``world.conversations``) at read time. Filter by ``kind`` (conversation / framework), ``channel`` (voice/text/sms/email/web — conversation runs only), and ``status`` (``live`` expands to running + paused). ``continuation_token`` is an opaque page cursor.
5400
+ */
5401
+ get: operations["list_runs_v1__workspace_id__runs_get"];
5402
+ put?: never;
5403
+ post?: never;
5404
+ delete?: never;
5405
+ options?: never;
5406
+ head?: never;
5407
+ patch?: never;
5408
+ trace?: never;
5409
+ };
5386
5410
  "/v1/{workspace_id}/scheduling-rule-sets": {
5387
5411
  parameters: {
5388
5412
  query?: never;
@@ -8453,6 +8477,59 @@ export interface components {
8453
8477
  }[];
8454
8478
  usage?: components["schemas"]["Usage"];
8455
8479
  };
8480
+ /** AgentRunListResponse */
8481
+ AgentRunListResponse: {
8482
+ /** Continuation Token */
8483
+ continuation_token?: unknown;
8484
+ /** Has More */
8485
+ has_more: boolean;
8486
+ /** Items */
8487
+ items: components["schemas"]["AgentRunSummary"][];
8488
+ };
8489
+ /**
8490
+ * AgentRunSummary
8491
+ * @description One row of the framework-runs LIST, projected from ``world.agent_runs``.
8492
+ *
8493
+ * ``run_id`` is the framework run's external call_sid (a string identifier
8494
+ * stamped by agent-runner), NOT a Lakebase row UUID — kept ``str``. ``entity_id``
8495
+ * IS a world-model row reference, so it stays ``uuid.UUID`` per repo type rigor.
8496
+ */
8497
+ AgentRunSummary: {
8498
+ /** Created At */
8499
+ created_at: string;
8500
+ /** Duration Ms */
8501
+ duration_ms?: number | null;
8502
+ /** Entity Id */
8503
+ entity_id?: string | null;
8504
+ /**
8505
+ * Framework
8506
+ * @enum {string}
8507
+ */
8508
+ framework: "claude-agent-sdk" | "openai-agents";
8509
+ /**
8510
+ * Input Tokens
8511
+ * @default 0
8512
+ */
8513
+ input_tokens?: number;
8514
+ /** Origin Source */
8515
+ origin_source?: string | null;
8516
+ /**
8517
+ * Output Tokens
8518
+ * @default 0
8519
+ */
8520
+ output_tokens?: number;
8521
+ /** Run Id */
8522
+ run_id: string;
8523
+ /** Started At */
8524
+ started_at: string;
8525
+ /** Status */
8526
+ status?: string | null;
8527
+ /**
8528
+ * Step Count
8529
+ * @default 0
8530
+ */
8531
+ step_count?: number;
8532
+ };
8456
8533
  /** AgentTranscriptDeltaEvent */
8457
8534
  AgentTranscriptDeltaEvent: {
8458
8535
  /** Delta */
@@ -12137,7 +12214,7 @@ export interface components {
12137
12214
  event_filter?: {
12138
12215
  [key: string]: unknown;
12139
12216
  } | null;
12140
- event_type: components["schemas"]["EventTypeString"];
12217
+ event_type: components["schemas"]["TriggerableEvent"];
12141
12218
  /** Input Template */
12142
12219
  input_template?: {
12143
12220
  [key: string]: unknown;
@@ -13239,6 +13316,16 @@ export interface components {
13239
13316
  */
13240
13317
  op: "drop_index";
13241
13318
  };
13319
+ /** EagerEvalResponse */
13320
+ EagerEvalResponse: {
13321
+ /** Eval Count */
13322
+ eval_count: number;
13323
+ /**
13324
+ * Status
13325
+ * @enum {string}
13326
+ */
13327
+ status: "evaluated" | "skipped_over_cap";
13328
+ };
13242
13329
  /** EgressIpsResponse */
13243
13330
  EgressIpsResponse: {
13244
13331
  /** Egress Ips */
@@ -14618,7 +14705,6 @@ export interface components {
14618
14705
  /** Total Events */
14619
14706
  total_events: number;
14620
14707
  };
14621
- EventTypeString: string;
14622
14708
  /** EventTypeSummary */
14623
14709
  EventTypeSummary: {
14624
14710
  /** Count */
@@ -18116,7 +18202,10 @@ export interface components {
18116
18202
  };
18117
18203
  /**
18118
18204
  * OAuth2JwtBearerAuthDict
18119
- * @description OAuth 2.0 JWT Bearer Token Grant — RFC 7523 § 2.1.
18205
+ * @description OAuth 2.0 JWT Bearer Token — RFC 7523.
18206
+ *
18207
+ * ``assertion_usage`` selects the flow: § 2.1 (JWT as authorization grant) or
18208
+ * § 2.2 (JWT as client authentication / private_key_jwt).
18120
18209
  */
18121
18210
  OAuth2JwtBearerAuthDict: {
18122
18211
  /**
@@ -18132,6 +18221,11 @@ export interface components {
18132
18221
  assertion_lifetime_seconds: number;
18133
18222
  /** Assertion Subject */
18134
18223
  assertion_subject: string;
18224
+ /**
18225
+ * Assertion Usage
18226
+ * @enum {string}
18227
+ */
18228
+ assertion_usage: "authorization_grant" | "client_authentication";
18135
18229
  /** Extra Claims */
18136
18230
  extra_claims: {
18137
18231
  [key: string]: unknown;
@@ -18152,7 +18246,10 @@ export interface components {
18152
18246
  };
18153
18247
  /**
18154
18248
  * OAuth2JwtBearerAuthRequest
18155
- * @description OAuth 2.0 JWT Bearer Token Grant — RFC 7523 § 2.1.
18249
+ * @description OAuth 2.0 JWT Bearer Token — RFC 7523.
18250
+ *
18251
+ * ``assertion_usage`` (required) selects the flow: § 2.1 (JWT as authorization
18252
+ * grant) or § 2.2 (JWT as client authentication / private_key_jwt).
18156
18253
  */
18157
18254
  OAuth2JwtBearerAuthRequest: {
18158
18255
  /**
@@ -18183,6 +18280,17 @@ export interface components {
18183
18280
  * Use a different value only for delegation / impersonation grants.
18184
18281
  */
18185
18282
  assertion_subject: string;
18283
+ /**
18284
+ * Assertion Usage
18285
+ * @description RFC 7523 flow selector — required; the caller must pick a flow.
18286
+ * ``authorization_grant`` (§ 2.1) sends the JWT as ``assertion`` under
18287
+ * ``grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer``.
18288
+ * ``client_authentication`` (§ 2.2, the ``private_key_jwt`` method) sends it as
18289
+ * ``client_assertion`` + ``client_assertion_type`` under ``grant_type=client_credentials``
18290
+ * — required by Epic / SMART Backend Services.
18291
+ * @enum {string}
18292
+ */
18293
+ assertion_usage: "authorization_grant" | "client_authentication";
18186
18294
  /**
18187
18295
  * Extra Claims
18188
18296
  * @description RFC 7523 § 3 item 8 — arbitrary additional JWT claims (e.g. Google's
@@ -20836,6 +20944,12 @@ export interface components {
20836
20944
  * @constant
20837
20945
  */
20838
20946
  kind?: "rest";
20947
+ /**
20948
+ * Managed
20949
+ * @description Whether the integration is system-managed and protected from workspace CRUD.
20950
+ * @default false
20951
+ */
20952
+ managed?: boolean;
20839
20953
  /**
20840
20954
  * Name
20841
20955
  * @description Slug-like identifier, immutable post-create.
@@ -21162,6 +21276,73 @@ export interface components {
21162
21276
  /** Duration Days */
21163
21277
  duration_days: number;
21164
21278
  };
21279
+ /**
21280
+ * Run
21281
+ * @description The universal agent-run object.
21282
+ *
21283
+ * ``run_id`` is a dedicated UUID (not an overloaded ``call_sid`` / ``conversation_id``);
21284
+ * the originating subsystem's ids are kept as ``source_*`` provenance fields so a
21285
+ * run can always be traced back to its channel/framework origin. Conversation runs
21286
+ * carry a ``channel`` and no ``framework``; framework runs carry a ``framework`` and
21287
+ * no ``channel`` — enforced below.
21288
+ */
21289
+ Run: {
21290
+ /** Caller Id */
21291
+ caller_id?: string | null;
21292
+ /** Channel */
21293
+ channel?: ("voice" | "text" | "sms" | "email" | "web") | null;
21294
+ /** Completion Reason */
21295
+ completion_reason?: string | null;
21296
+ /** Direction */
21297
+ direction?: string | null;
21298
+ /** Ended At */
21299
+ ended_at?: string | null;
21300
+ /** Entity Id */
21301
+ entity_id?: string | null;
21302
+ /** Entity Name */
21303
+ entity_name?: string | null;
21304
+ /** Framework */
21305
+ framework?: ("claude-agent-sdk" | "openai-agents") | null;
21306
+ /**
21307
+ * Kind
21308
+ * @enum {string}
21309
+ */
21310
+ kind: "conversation" | "framework";
21311
+ /** Phone Number */
21312
+ phone_number?: string | null;
21313
+ /**
21314
+ * Run Id
21315
+ * Format: uuid
21316
+ */
21317
+ run_id: string;
21318
+ /** Service Id */
21319
+ service_id?: string | null;
21320
+ /** Service Name */
21321
+ service_name?: string | null;
21322
+ /** Source Call Sid */
21323
+ source_call_sid?: string | null;
21324
+ /** Source Conversation Id */
21325
+ source_conversation_id?: string | null;
21326
+ /** Source Framework Run Id */
21327
+ source_framework_run_id?: string | null;
21328
+ /**
21329
+ * Started At
21330
+ * Format: date-time
21331
+ */
21332
+ started_at: string;
21333
+ /**
21334
+ * Status
21335
+ * @enum {string}
21336
+ */
21337
+ status: "running" | "paused" | "completed" | "failed" | "timed_out";
21338
+ /** Turn Count */
21339
+ turn_count?: number | null;
21340
+ /**
21341
+ * Workspace Id
21342
+ * Format: uuid
21343
+ */
21344
+ workspace_id: string;
21345
+ };
21165
21346
  /** RunSimulationBenchmarkRequest */
21166
21347
  RunSimulationBenchmarkRequest: {
21167
21348
  /** Branch Name */
@@ -21221,6 +21402,15 @@ export interface components {
21221
21402
  /** Tags */
21222
21403
  tags?: string[];
21223
21404
  };
21405
+ /** RunsResponse */
21406
+ RunsResponse: {
21407
+ /** Continuation Token */
21408
+ continuation_token?: unknown;
21409
+ /** Has More */
21410
+ has_more: boolean;
21411
+ /** Items */
21412
+ items: components["schemas"]["Run"][];
21413
+ };
21224
21414
  /** Runtime */
21225
21415
  Runtime: {
21226
21416
  /**
@@ -25832,6 +26022,16 @@ export interface components {
25832
26022
  */
25833
26023
  triggered_at: string;
25834
26024
  };
26025
+ /**
26026
+ * TriggerableEvent
26027
+ * @description Closed set of world events that trigger definitions may subscribe to.
26028
+ *
26029
+ * The database column intentionally remains text for compatibility with old
26030
+ * rows, but API writes must choose from this list so typoed event names do
26031
+ * not silently create never-matching triggers.
26032
+ * @enum {string}
26033
+ */
26034
+ TriggerableEvent: "amigo.trigger.cron" | "appointment.booked" | "appointment.cancelled" | "appointment.confirmed" | "booking.requested" | "call.intelligence" | "call.outcome" | "channel.email.bounced" | "channel.email.clicked" | "channel.email.complained" | "channel.email.delayed" | "channel.email.delivered" | "channel.email.opened" | "channel.email.received" | "channel.email.rejected" | "channel.message.received" | "channel.voice.voicemail_status" | "conversation.channel_switched" | "conversation.started" | "conversation.turn_recorded" | "coverage.created" | "entity.enriched" | "entity.resolved" | "intake.file.received" | "medication.refill_requested" | "outbound.initiated" | "outbound.scheduled" | "patient.created" | "patient.updated" | "relationship.established" | "review.approve" | "review.correct" | "review.reject" | "surface.created" | "surface.submitted" | "ticket.created" | "triage.completed" | "trigger.completed" | "trigger.failed" | "trigger.fired";
25835
26035
  /** Turn */
25836
26036
  Turn: {
25837
26037
  /** Agent Action */
@@ -26508,7 +26708,7 @@ export interface components {
26508
26708
  event_filter?: {
26509
26709
  [key: string]: unknown;
26510
26710
  } | null;
26511
- event_type?: components["schemas"]["EventTypeString"] | null;
26711
+ event_type?: components["schemas"]["TriggerableEvent"] | null;
26512
26712
  /** Input Template */
26513
26713
  input_template?: {
26514
26714
  [key: string]: unknown;
@@ -27916,6 +28116,12 @@ export interface components {
27916
28116
  * @default true
27917
28117
  */
27918
28118
  enabled?: boolean;
28119
+ /**
28120
+ * Managed
28121
+ * @description Whether this is a system-managed integration protected from workspace CRUD.
28122
+ * @default false
28123
+ */
28124
+ managed?: boolean;
27919
28125
  /**
27920
28126
  * Name
27921
28127
  * @description Slug-like identifier, lowercase alphanumeric + hyphens/underscores. Immutable post-create.
@@ -28125,6 +28331,11 @@ export interface components {
28125
28331
  * @description Toggle the integration on/off.
28126
28332
  */
28127
28333
  enabled?: boolean;
28334
+ /**
28335
+ * Managed
28336
+ * @description Mark/unmark the integration as system-managed. Requires ``platform:admin`` scope.
28337
+ */
28338
+ managed?: boolean;
28128
28339
  /**
28129
28340
  * Secret Value
28130
28341
  * @description Rotate the per-integration SSM secret. Absent ⇒ existing secret
@@ -28218,6 +28429,8 @@ export interface components {
28218
28429
  };
28219
28430
  /** @constant */
28220
28431
  src__routes__role_grants___SortField: "created_at";
28432
+ /** @constant */
28433
+ src__routes__runs___SortField: "started_at";
28221
28434
  /**
28222
28435
  * Request
28223
28436
  * @description Create body — the authored shape of a new workspace data query.
@@ -30447,6 +30660,42 @@ export interface operations {
30447
30660
  };
30448
30661
  };
30449
30662
  };
30663
+ list_agent_runs_v1__workspace_id__agent_runs_get: {
30664
+ parameters: {
30665
+ query?: {
30666
+ limit?: number;
30667
+ continuation_token?: unknown;
30668
+ framework?: ("claude-agent-sdk" | "openai-agents") | null;
30669
+ status?: ("running" | "succeeded" | "failed" | "timed_out") | null;
30670
+ };
30671
+ header?: never;
30672
+ path: {
30673
+ workspace_id: string;
30674
+ };
30675
+ cookie?: never;
30676
+ };
30677
+ requestBody?: never;
30678
+ responses: {
30679
+ /** @description Successful Response */
30680
+ 200: {
30681
+ headers: {
30682
+ [name: string]: unknown;
30683
+ };
30684
+ content: {
30685
+ "application/json": components["schemas"]["AgentRunListResponse"];
30686
+ };
30687
+ };
30688
+ /** @description Validation Error */
30689
+ 422: {
30690
+ headers: {
30691
+ [name: string]: unknown;
30692
+ };
30693
+ content: {
30694
+ "application/json": components["schemas"]["HTTPValidationError"];
30695
+ };
30696
+ };
30697
+ };
30698
+ };
30450
30699
  create_agent_run_v1__workspace_id__agent_runs_post: {
30451
30700
  parameters: {
30452
30701
  query?: never;
@@ -37790,7 +38039,7 @@ export interface operations {
37790
38039
  };
37791
38040
  content?: never;
37792
38041
  };
37793
- /** @description Integration referenced by one or more skills. */
38042
+ /** @description Integration is managed or referenced by one or more skills. */
37794
38043
  409: {
37795
38044
  headers: {
37796
38045
  [name: string]: unknown;
@@ -37854,6 +38103,13 @@ export interface operations {
37854
38103
  };
37855
38104
  content?: never;
37856
38105
  };
38106
+ /** @description Managed integration mutation blocked. */
38107
+ 409: {
38108
+ headers: {
38109
+ [name: string]: unknown;
38110
+ };
38111
+ content?: never;
38112
+ };
37857
38113
  /** @description Invalid request body, NOT NULL field set to null, or no fields to update. */
37858
38114
  422: {
37859
38115
  headers: {
@@ -37966,7 +38222,7 @@ export interface operations {
37966
38222
  };
37967
38223
  content?: never;
37968
38224
  };
37969
- /** @description Endpoint name already exists on this integration. */
38225
+ /** @description Integration is managed or endpoint name already exists. */
37970
38226
  409: {
37971
38227
  headers: {
37972
38228
  [name: string]: unknown;
@@ -38077,6 +38333,13 @@ export interface operations {
38077
38333
  };
38078
38334
  content?: never;
38079
38335
  };
38336
+ /** @description Managed integration endpoint mutation blocked. */
38337
+ 409: {
38338
+ headers: {
38339
+ [name: string]: unknown;
38340
+ };
38341
+ content?: never;
38342
+ };
38080
38343
  /** @description Validation Error */
38081
38344
  422: {
38082
38345
  headers: {
@@ -38135,6 +38398,13 @@ export interface operations {
38135
38398
  };
38136
38399
  content?: never;
38137
38400
  };
38401
+ /** @description Managed integration endpoint mutation blocked. */
38402
+ 409: {
38403
+ headers: {
38404
+ [name: string]: unknown;
38405
+ };
38406
+ content?: never;
38407
+ };
38138
38408
  /** @description Invalid request body, NOT NULL field set to null, or no fields to update. */
38139
38409
  422: {
38140
38410
  headers: {
@@ -41417,6 +41687,44 @@ export interface operations {
41417
41687
  };
41418
41688
  };
41419
41689
  };
41690
+ list_runs_v1__workspace_id__runs_get: {
41691
+ parameters: {
41692
+ query?: {
41693
+ sort_by?: string[];
41694
+ limit?: number;
41695
+ continuation_token?: unknown;
41696
+ status?: ("live" | "running" | "paused" | "completed" | "failed" | "timed_out") | null;
41697
+ kind?: ("conversation" | "framework") | null;
41698
+ channel?: ("voice" | "text" | "sms" | "email" | "web") | null;
41699
+ };
41700
+ header?: never;
41701
+ path: {
41702
+ workspace_id: string;
41703
+ };
41704
+ cookie?: never;
41705
+ };
41706
+ requestBody?: never;
41707
+ responses: {
41708
+ /** @description Successful Response */
41709
+ 200: {
41710
+ headers: {
41711
+ [name: string]: unknown;
41712
+ };
41713
+ content: {
41714
+ "application/json": components["schemas"]["RunsResponse"];
41715
+ };
41716
+ };
41717
+ /** @description Validation Error */
41718
+ 422: {
41719
+ headers: {
41720
+ [name: string]: unknown;
41721
+ };
41722
+ content: {
41723
+ "application/json": components["schemas"]["HTTPValidationError"];
41724
+ };
41725
+ };
41726
+ };
41727
+ };
41420
41728
  "list-scheduling-rule-sets": {
41421
41729
  parameters: {
41422
41730
  query?: {