@amigo-ai/platform-sdk 0.27.0 → 0.31.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.
Files changed (35) hide show
  1. package/api.md +4 -1
  2. package/dist/index.cjs +26 -10
  3. package/dist/index.cjs.map +3 -3
  4. package/dist/index.js +10 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +26 -10
  7. package/dist/index.mjs.map +3 -3
  8. package/dist/resources/conversations.js +8 -5
  9. package/dist/resources/conversations.js.map +1 -1
  10. package/dist/resources/me.js +46 -0
  11. package/dist/resources/me.js.map +1 -0
  12. package/dist/resources/workspaces.js +8 -10
  13. package/dist/resources/workspaces.js.map +1 -1
  14. package/dist/types/generated/api.d.ts +252 -119
  15. package/dist/types/generated/api.d.ts.map +1 -1
  16. package/dist/types/index.d.cts +2 -0
  17. package/dist/types/index.d.cts.map +1 -1
  18. package/dist/types/index.d.ts +2 -0
  19. package/dist/types/index.d.ts.map +1 -1
  20. package/dist/types/resources/calls.d.ts +16 -9
  21. package/dist/types/resources/calls.d.ts.map +1 -1
  22. package/dist/types/resources/conversations.d.ts +7 -3
  23. package/dist/types/resources/conversations.d.ts.map +1 -1
  24. package/dist/types/resources/functions.d.ts.map +1 -1
  25. package/dist/types/resources/intake.d.ts.map +1 -1
  26. package/dist/types/resources/me.d.ts +54 -0
  27. package/dist/types/resources/me.d.ts.map +1 -0
  28. package/dist/types/resources/metrics.d.ts.map +1 -1
  29. package/dist/types/resources/operators.d.ts.map +1 -1
  30. package/dist/types/resources/settings.d.ts.map +1 -1
  31. package/dist/types/resources/surfaces.d.ts +17 -17
  32. package/dist/types/resources/surfaces.d.ts.map +1 -1
  33. package/dist/types/resources/workspaces.d.ts +8 -17
  34. package/dist/types/resources/workspaces.d.ts.map +1 -1
  35. package/package.json +1 -1
@@ -547,40 +547,40 @@ export interface paths {
547
547
  patch?: never;
548
548
  trace?: never;
549
549
  };
550
- "/v1/workspaces": {
550
+ "/v1/me/workspaces": {
551
551
  parameters: {
552
552
  query?: never;
553
553
  header?: never;
554
554
  path?: never;
555
555
  cookie?: never;
556
556
  };
557
+ get?: never;
558
+ put?: never;
557
559
  /**
558
- * List workspaces
559
- * @description List workspaces accessible to this API key. Requires `Workspace.view` permission.
560
+ * Create a workspace under the authenticated identity
561
+ * @description Create a new workspace and attach the authenticated caller as the owner.
560
562
  */
561
- get: operations["list-workspaces"];
562
- put?: never;
563
- post?: never;
563
+ post: operations["create-my-workspace"];
564
564
  delete?: never;
565
565
  options?: never;
566
566
  head?: never;
567
567
  patch?: never;
568
568
  trace?: never;
569
569
  };
570
- "/v1/workspaces/self-service": {
570
+ "/v1/workspaces": {
571
571
  parameters: {
572
572
  query?: never;
573
573
  header?: never;
574
574
  path?: never;
575
575
  cookie?: never;
576
576
  };
577
- get?: never;
578
- put?: never;
579
577
  /**
580
- * Create a workspace for the authenticated user
581
- * @description Create a new workspace and attach the authenticated caller as the owner.
578
+ * List workspaces
579
+ * @description List workspaces accessible to this API key. Requires `Workspace.view` permission.
582
580
  */
583
- post: operations["create-self-service-workspace"];
581
+ get: operations["list-workspaces"];
582
+ put?: never;
583
+ post?: never;
584
584
  delete?: never;
585
585
  options?: never;
586
586
  head?: never;
@@ -782,7 +782,7 @@ export interface paths {
782
782
  put?: never;
783
783
  /**
784
784
  * Create an agent version
785
- * @description Create a new version of an agent. Version number is auto-incremented. Requires `Agent.update` permission.
785
+ * @description Create a new version of an agent. Version number is auto-incremented. Requires `Agent.create` permission for the first version and `Agent.update` permission afterward.
786
786
  */
787
787
  post: operations["create-agent-version"];
788
788
  delete?: never;
@@ -1928,7 +1928,7 @@ export interface paths {
1928
1928
  put?: never;
1929
1929
  /**
1930
1930
  * Create a context graph version
1931
- * @description Create a new version of a context graph. Version number is auto-incremented. Requires `ContextGraph.update` permission.
1931
+ * @description Create a new version of a context graph. Version number is auto-incremented. Requires `ContextGraph.create` permission for the first version and `ContextGraph.update` permission afterward.
1932
1932
  */
1933
1933
  post: operations["create-context_graph-version"];
1934
1934
  delete?: never;
@@ -2004,7 +2004,7 @@ export interface paths {
2004
2004
  put?: never;
2005
2005
  /**
2006
2006
  * Send a message and get the agent's response
2007
- * @description Send a user message and receive the agent's response. Set `Accept: text/event-stream` to receive an SSE stream of token, tool_call_started, tool_call_completed, message, and done events instead of the synchronous JSON response.
2007
+ * @description Send a user message and receive the agent's response. Set `Accept: text/event-stream` to receive an SSE stream of typed `TurnStreamEvent` frames (token, tool_call_started, tool_call_completed, thinking, message, done, error) instead of the synchronous JSON response. For new integrations prefer `POST /turns/stream`, which is always SSE.
2008
2008
  */
2009
2009
  post: operations["create_turn_v1__workspace_id__conversations__conversation_id__turns_post"];
2010
2010
  delete?: never;
@@ -2013,6 +2013,26 @@ export interface paths {
2013
2013
  patch?: never;
2014
2014
  trace?: never;
2015
2015
  };
2016
+ "/v1/{workspace_id}/conversations/{conversation_id}/turns/stream": {
2017
+ parameters: {
2018
+ query?: never;
2019
+ header?: never;
2020
+ path?: never;
2021
+ cookie?: never;
2022
+ };
2023
+ get?: never;
2024
+ put?: never;
2025
+ /**
2026
+ * Send a message and receive a streamed agent response
2027
+ * @description Streaming variant of `POST /turns`. Always returns `text/event-stream` regardless of the `Accept` header — no JSON fallback. Each frame is a `TurnStreamEvent` discriminated by the `event` field (token, tool_call_started, tool_call_completed, thinking, message, done, error). Use this endpoint for new integrations; the `Accept`-sniffing variant remains for backward compatibility.
2028
+ */
2029
+ post: operations["create_turn_stream_v1__workspace_id__conversations__conversation_id__turns_stream_post"];
2030
+ delete?: never;
2031
+ options?: never;
2032
+ head?: never;
2033
+ patch?: never;
2034
+ trace?: never;
2035
+ };
2016
2036
  "/v1/{workspace_id}/crm/companies": {
2017
2037
  parameters: {
2018
2038
  query?: never;
@@ -11955,8 +11975,7 @@ export interface components {
11955
11975
  */
11956
11976
  email: string;
11957
11977
  name: components["schemas"]["NameString"];
11958
- /** Phone Number */
11959
- phone_number?: string | null;
11978
+ phone_number?: components["schemas"]["PhoneE164"] | null;
11960
11979
  /**
11961
11980
  * Role
11962
11981
  * @default operator
@@ -12353,11 +12372,7 @@ export interface components {
12353
12372
  };
12354
12373
  /** CreateSurfaceResponse */
12355
12374
  CreateSurfaceResponse: {
12356
- /**
12357
- * Channel
12358
- * @enum {string}
12359
- */
12360
- channel: "sms" | "whatsapp" | "imessage" | "email" | "voice" | "web";
12375
+ channel: components["schemas"]["ChannelType"];
12361
12376
  /** Created At */
12362
12377
  created_at: string;
12363
12378
  /** Description */
@@ -12381,11 +12396,7 @@ export interface components {
12381
12396
  * Format: uuid
12382
12397
  */
12383
12398
  id: string;
12384
- /**
12385
- * Status
12386
- * @enum {string}
12387
- */
12388
- status: "created" | "pending_review" | "delivered" | "opened" | "partial" | "completed" | "expired" | "archived";
12399
+ status: components["schemas"]["SurfaceStatus"];
12389
12400
  /** Title */
12390
12401
  title: string;
12391
12402
  /** Token */
@@ -13531,8 +13542,7 @@ export interface components {
13531
13542
  };
13532
13543
  /** DeliverSurfaceResponse */
13533
13544
  DeliverSurfaceResponse: {
13534
- /** Channel */
13535
- channel?: ("sms" | "whatsapp" | "imessage" | "email" | "voice" | "web") | null;
13545
+ channel?: components["schemas"]["ChannelType"] | null;
13536
13546
  /** Channel Address */
13537
13547
  channel_address: string;
13538
13548
  /** Delivered At */
@@ -14007,30 +14017,38 @@ export interface components {
14007
14017
  /**
14008
14018
  * EmotionSummary
14009
14019
  * @description Aggregated emotional analysis across the call.
14020
+ *
14021
+ * Free-form residual on the raw ``emotion_summary`` JSONB:
14022
+ * ``compound_emotions: list[{name, score}]``. Not exposed via this
14023
+ * typed shape — readers wanting it consume the JSONB endpoint.
14010
14024
  */
14011
14025
  EmotionSummary: {
14012
14026
  /**
14013
- * Avg Valence
14027
+ * Average Arousal
14028
+ * @description Average emotional arousal 0.0 to 1.0
14029
+ */
14030
+ average_arousal?: number | null;
14031
+ /**
14032
+ * Average Valence
14014
14033
  * @description Average emotional valence -1.0 to 1.0
14015
14034
  */
14016
- avg_valence?: number | null;
14035
+ average_valence?: number | null;
14017
14036
  /**
14018
- * Caller Distress Detected
14019
- * @description Whether caller distress was detected
14020
- * @default false
14037
+ * Barge In Count
14038
+ * @description Number of caller interruptions (emotion-tagged)
14039
+ * @default 0
14021
14040
  */
14022
- caller_distress_detected?: boolean;
14041
+ barge_in_count?: number;
14023
14042
  /**
14024
14043
  * Dominant Emotion
14025
- * @description Most frequent emotion
14044
+ * @description Most frequent emotion (e.g. 'neutral', 'happy', 'angry')
14026
14045
  */
14027
14046
  dominant_emotion?: string | null;
14028
14047
  /**
14029
- * Emotion Shifts
14030
- * @description Number of significant emotion transitions
14031
- * @default 0
14048
+ * Peak Negative Valence
14049
+ * @description Most negative valence observed
14032
14050
  */
14033
- emotion_shifts?: number;
14051
+ peak_negative_valence?: number | null;
14034
14052
  };
14035
14053
  /**
14036
14054
  * EmotionalShift
@@ -17359,29 +17377,59 @@ export interface components {
17359
17377
  };
17360
17378
  /**
17361
17379
  * LatencySummary
17362
- * @description Audio latency and silence metrics.
17380
+ * @description Audio + engine latency metrics (one entry per turn averaged).
17363
17381
  */
17364
17382
  LatencySummary: {
17383
+ /**
17384
+ * Avg Audio Ttfb Ms
17385
+ * @description Average audio time-to-first-byte (ms)
17386
+ */
17387
+ avg_audio_ttfb_ms?: number | null;
17388
+ /**
17389
+ * Avg Engine Ms
17390
+ * @description Average reasoning-engine latency (ms)
17391
+ */
17392
+ avg_engine_ms?: number | null;
17393
+ /**
17394
+ * Avg Nav Ms
17395
+ * @description Average navigation latency (ms)
17396
+ */
17397
+ avg_nav_ms?: number | null;
17398
+ /**
17399
+ * Avg Render Ms
17400
+ * @description Average render latency (ms)
17401
+ */
17402
+ avg_render_ms?: number | null;
17365
17403
  /**
17366
17404
  * P50 Audio Ttfb Ms
17367
- * @description Median audio time-to-first-byte (ms)
17405
+ * @description Median audio TTFB (ms)
17368
17406
  */
17369
17407
  p50_audio_ttfb_ms?: number | null;
17408
+ /**
17409
+ * P50 Engine Ms
17410
+ * @description Median engine latency (ms)
17411
+ */
17412
+ p50_engine_ms?: number | null;
17370
17413
  /**
17371
17414
  * P95 Audio Ttfb Ms
17372
17415
  * @description 95th percentile audio TTFB (ms)
17373
17416
  */
17374
17417
  p95_audio_ttfb_ms?: number | null;
17418
+ /**
17419
+ * P95 Engine Ms
17420
+ * @description 95th percentile engine latency (ms)
17421
+ */
17422
+ p95_engine_ms?: number | null;
17375
17423
  /**
17376
17424
  * Silence Ratio
17377
17425
  * @description Fraction of call spent in silence
17378
17426
  */
17379
17427
  silence_ratio?: number | null;
17380
17428
  /**
17381
- * Total Silence Seconds
17382
- * @description Total silence duration in seconds
17429
+ * Turn Count
17430
+ * @description Number of turns the latency averages were computed over
17383
17431
  */
17384
- total_silence_seconds?: number | null;
17432
+ turn_count?: number | null;
17385
17433
  };
17386
17434
  /**
17387
17435
  * LeaveCallRequest
@@ -17935,7 +17983,7 @@ export interface components {
17935
17983
  event_types: string[];
17936
17984
  /**
17937
17985
  * Extract Path
17938
- * @description JSONB path for static extraction (e.g. '$.quality_score', '$.emotion_summary.dominant_emotion'). Used when extraction_mode='static'.
17986
+ * @description JSON path for static extraction (e.g. `$.quality_score`, `$.risk_level`). For `call_intelligence` and `world_events`, single-segment paths resolve to typed columns when available and fall back to JSONB extraction otherwise. Used when `extraction_mode='static'`.
17939
17987
  */
17940
17988
  extract_path?: string | null;
17941
17989
  /**
@@ -18400,19 +18448,25 @@ export interface components {
18400
18448
  /**
18401
18449
  * OperatorIntelligenceSummary
18402
18450
  * @description Operator intervention summary.
18451
+ *
18452
+ * Three-valued semantics on ``operator_active``:
18453
+ * - ``True`` — escalation occurred and an operator was active.
18454
+ * - ``False`` — escalation occurred but no operator picked up.
18455
+ * - ``None`` — no escalation occurred (producer omits the key).
18456
+ * Readers must distinguish; do not coerce ``None`` → ``False``.
18403
18457
  */
18404
18458
  OperatorIntelligenceSummary: {
18405
18459
  /**
18406
18460
  * Escalated
18407
- * @description Whether the call was escalated
18461
+ * @description Whether the call was escalated to a human operator
18408
18462
  * @default false
18409
18463
  */
18410
18464
  escalated?: boolean;
18411
18465
  /**
18412
- * Operator Handle Time Seconds
18413
- * @description Operator handle time
18466
+ * Operator Active
18467
+ * @description Whether an operator was active during escalation. True = active; False = escalation occurred but no operator picked up; None = no escalation occurred (do NOT coerce to False).
18414
18468
  */
18415
- operator_handle_time_seconds?: number | null;
18469
+ operator_active?: boolean | null;
18416
18470
  };
18417
18471
  /** OperatorJoinedCallEvent */
18418
18472
  OperatorJoinedCallEvent: {
@@ -20868,11 +20922,7 @@ export interface components {
20868
20922
  * @enum {string}
20869
20923
  */
20870
20924
  action: "approved" | "rejected";
20871
- /**
20872
- * Status
20873
- * @enum {string}
20874
- */
20875
- status: "created" | "pending_review" | "delivered" | "opened" | "partial" | "completed" | "expired" | "archived";
20925
+ status: components["schemas"]["SurfaceStatus"];
20876
20926
  /**
20877
20927
  * Surface Id
20878
20928
  * Format: uuid
@@ -21058,6 +21108,12 @@ export interface components {
21058
21108
  /**
21059
21109
  * RiskSummary
21060
21110
  * @description Aggregated risk signals across the call.
21111
+ *
21112
+ * Free-form residual on the raw ``risk_summary`` JSONB:
21113
+ * ``signals: list[{name, raw_score, weight, weighted_score, detail}]``
21114
+ * — the per-signal breakdown that aggregates into ``composite_score``.
21115
+ * Not exposed via this typed shape; consumers needing per-signal
21116
+ * detail read the JSONB endpoint.
21061
21117
  */
21062
21118
  RiskSummary: {
21063
21119
  /**
@@ -21066,11 +21122,6 @@ export interface components {
21066
21122
  * @default 0
21067
21123
  */
21068
21124
  composite_score?: number;
21069
- /**
21070
- * Flags
21071
- * @description Specific risk flags raised
21072
- */
21073
- flags?: string[];
21074
21125
  /**
21075
21126
  * Level
21076
21127
  * @description Risk level
@@ -21196,13 +21247,12 @@ export interface components {
21196
21247
  /**
21197
21248
  * SafetySummary
21198
21249
  * @description Safety filter results.
21250
+ *
21251
+ * Free-form residual on the raw ``safety_summary`` JSONB:
21252
+ * ``actions: dict | list`` — escalation handler actions taken
21253
+ * when ``match_count > 0``. Not exposed via this typed shape.
21199
21254
  */
21200
21255
  SafetySummary: {
21201
- /**
21202
- * Categories
21203
- * @description Safety categories matched
21204
- */
21205
- categories?: string[];
21206
21256
  /**
21207
21257
  * Match Count
21208
21258
  * @description Number of safety filter matches
@@ -23344,8 +23394,7 @@ export interface components {
23344
23394
  };
23345
23395
  /** SurfaceResponse */
23346
23396
  SurfaceResponse: {
23347
- /** Channel */
23348
- channel?: ("sms" | "whatsapp" | "imessage" | "email" | "voice" | "web") | null;
23397
+ channel?: components["schemas"]["ChannelType"] | null;
23349
23398
  /**
23350
23399
  * Context
23351
23400
  * @default {}
@@ -23390,11 +23439,7 @@ export interface components {
23390
23439
  opened_at?: string | null;
23391
23440
  /** Resource Type */
23392
23441
  resource_type?: string | null;
23393
- /**
23394
- * Status
23395
- * @enum {string}
23396
- */
23397
- status: "created" | "pending_review" | "delivered" | "opened" | "partial" | "completed" | "expired" | "archived";
23442
+ status: components["schemas"]["SurfaceStatus"];
23398
23443
  /** Submitted At */
23399
23444
  submitted_at?: string | null;
23400
23445
  /** Submitted Data */
@@ -23509,6 +23554,12 @@ export interface components {
23509
23554
  /** Surface Id */
23510
23555
  surface_id?: string | null;
23511
23556
  };
23557
+ /**
23558
+ * SurfaceStatus
23559
+ * @description Lifecycle status of a surface.
23560
+ * @enum {string}
23561
+ */
23562
+ SurfaceStatus: "created" | "pending_review" | "delivered" | "opened" | "partial" | "completed" | "expired" | "archived";
23512
23563
  /** SurfaceSubmittedEvent */
23513
23564
  SurfaceSubmittedEvent: {
23514
23565
  /**
@@ -24402,6 +24453,10 @@ export interface components {
24402
24453
  /**
24403
24454
  * ToolSummary
24404
24455
  * @description Tool usage statistics.
24456
+ *
24457
+ * Free-form residual on the raw ``tool_summary`` JSONB:
24458
+ * ``by_tool: list[{name, calls, succeeded, failed, avg_duration_ms}]``
24459
+ * — per-tool breakdown. Not exposed via this typed shape.
24405
24460
  */
24406
24461
  ToolSummary: {
24407
24462
  /**
@@ -24416,6 +24471,12 @@ export interface components {
24416
24471
  * @default 0
24417
24472
  */
24418
24473
  failure_rate?: number;
24474
+ /**
24475
+ * Succeeded
24476
+ * @description Successful tool invocations
24477
+ * @default 0
24478
+ */
24479
+ succeeded?: number;
24419
24480
  /**
24420
24481
  * Total Calls
24421
24482
  * @description Total tool invocations
@@ -25424,8 +25485,7 @@ export interface components {
25424
25485
  /** Email */
25425
25486
  email?: string | null;
25426
25487
  name?: components["schemas"]["NameString"] | null;
25427
- /** Phone Number */
25428
- phone_number?: string | null;
25488
+ phone_number?: components["schemas"]["PhoneE164"] | null;
25429
25489
  /** Role */
25430
25490
  role?: ("operator" | "supervisor" | "admin") | null;
25431
25491
  /** Skills */
@@ -27017,13 +27077,15 @@ export interface components {
27017
27077
  /**
27018
27078
  * ConversationSummary
27019
27079
  * @description Conversation flow metrics.
27080
+ *
27081
+ * Free-form residual on the raw ``conversation_summary`` JSONB:
27082
+ * ``text_intelligence: dict`` (text-channel intelligence
27083
+ * sub-payload), and on the simulation path ``transcript_text:
27084
+ * str`` (PHI), ``tool_calls: list``, ``score``,
27085
+ * ``score_rationale``, ``terminal_reached``, ``states_visited``.
27086
+ * Not exposed via this typed shape.
27020
27087
  */
27021
27088
  src__routes__calls__ConversationSummary: {
27022
- /**
27023
- * Avg Turn Duration Seconds
27024
- * @description Average turn duration
27025
- */
27026
- avg_turn_duration_seconds?: number | null;
27027
27089
  /**
27028
27090
  * Barge In Count
27029
27091
  * @description Number of caller interruptions
@@ -27032,16 +27094,28 @@ export interface components {
27032
27094
  barge_in_count?: number;
27033
27095
  /**
27034
27096
  * Loop Count
27035
- * @description Number of detected conversation loops
27097
+ * @description Number of detected state loops
27036
27098
  * @default 0
27037
27099
  */
27038
27100
  loop_count?: number;
27039
27101
  /**
27040
- * Topic Changes
27041
- * @description Number of topic transitions
27102
+ * States Visited Count
27103
+ * @description Number of states visited (including repeats)
27042
27104
  * @default 0
27043
27105
  */
27044
- topic_changes?: number;
27106
+ states_visited_count?: number;
27107
+ /**
27108
+ * Turn Count
27109
+ * @description Total turn count for the call
27110
+ * @default 0
27111
+ */
27112
+ turn_count?: number;
27113
+ /**
27114
+ * Unique States
27115
+ * @description Number of distinct states visited
27116
+ * @default 0
27117
+ */
27118
+ unique_states?: number;
27045
27119
  };
27046
27120
  /** ConversationSummary */
27047
27121
  src__routes__conversations__ConversationSummary: {
@@ -28479,101 +28553,101 @@ export interface operations {
28479
28553
  };
28480
28554
  };
28481
28555
  };
28482
- "list-workspaces": {
28556
+ "create-my-workspace": {
28483
28557
  parameters: {
28484
- query?: {
28485
- limit?: number;
28486
- continuation_token?: number;
28487
- };
28558
+ query?: never;
28488
28559
  header?: never;
28489
28560
  path?: never;
28490
28561
  cookie?: never;
28491
28562
  };
28492
- requestBody?: never;
28563
+ requestBody: {
28564
+ content: {
28565
+ "application/json": components["schemas"]["CreateWorkspaceRequest"];
28566
+ };
28567
+ };
28493
28568
  responses: {
28494
28569
  /** @description Successful Response */
28495
- 200: {
28570
+ 201: {
28496
28571
  headers: {
28497
28572
  [name: string]: unknown;
28498
28573
  };
28499
28574
  content: {
28500
- "application/json": components["schemas"]["PaginatedResponse_WorkspaceResponse_"];
28575
+ "application/json": components["schemas"]["WorkspaceResponse"];
28501
28576
  };
28502
28577
  };
28503
- /** @description Missing or invalid API key. */
28504
- 401: {
28578
+ /** @description Insufficient permissions or unsupported principal type. */
28579
+ 403: {
28505
28580
  headers: {
28506
28581
  [name: string]: unknown;
28507
28582
  };
28508
28583
  content?: never;
28509
28584
  };
28510
- /** @description Insufficient permissions. */
28511
- 403: {
28585
+ /** @description Workspace slug already taken. */
28586
+ 409: {
28512
28587
  headers: {
28513
28588
  [name: string]: unknown;
28514
28589
  };
28515
28590
  content?: never;
28516
28591
  };
28517
- /** @description Validation Error */
28592
+ /** @description Invalid request body. */
28518
28593
  422: {
28519
28594
  headers: {
28520
28595
  [name: string]: unknown;
28521
28596
  };
28522
- content: {
28523
- "application/json": components["schemas"]["HTTPValidationError"];
28597
+ content?: never;
28598
+ };
28599
+ /** @description Identity service unavailable. */
28600
+ 503: {
28601
+ headers: {
28602
+ [name: string]: unknown;
28524
28603
  };
28604
+ content?: never;
28525
28605
  };
28526
28606
  };
28527
28607
  };
28528
- "create-self-service-workspace": {
28608
+ "list-workspaces": {
28529
28609
  parameters: {
28530
- query?: never;
28610
+ query?: {
28611
+ limit?: number;
28612
+ continuation_token?: number;
28613
+ };
28531
28614
  header?: never;
28532
28615
  path?: never;
28533
28616
  cookie?: never;
28534
28617
  };
28535
- requestBody: {
28536
- content: {
28537
- "application/json": components["schemas"]["CreateWorkspaceRequest"];
28538
- };
28539
- };
28618
+ requestBody?: never;
28540
28619
  responses: {
28541
28620
  /** @description Successful Response */
28542
- 201: {
28621
+ 200: {
28543
28622
  headers: {
28544
28623
  [name: string]: unknown;
28545
28624
  };
28546
28625
  content: {
28547
- "application/json": components["schemas"]["WorkspaceResponse"];
28626
+ "application/json": components["schemas"]["PaginatedResponse_WorkspaceResponse_"];
28548
28627
  };
28549
28628
  };
28550
- /** @description Insufficient permissions or unsupported principal type. */
28551
- 403: {
28629
+ /** @description Missing or invalid API key. */
28630
+ 401: {
28552
28631
  headers: {
28553
28632
  [name: string]: unknown;
28554
28633
  };
28555
28634
  content?: never;
28556
28635
  };
28557
- /** @description Workspace slug already taken. */
28558
- 409: {
28636
+ /** @description Insufficient permissions. */
28637
+ 403: {
28559
28638
  headers: {
28560
28639
  [name: string]: unknown;
28561
28640
  };
28562
28641
  content?: never;
28563
28642
  };
28564
- /** @description Invalid request body. */
28643
+ /** @description Validation Error */
28565
28644
  422: {
28566
28645
  headers: {
28567
28646
  [name: string]: unknown;
28568
28647
  };
28569
- content?: never;
28570
- };
28571
- /** @description Identity service unavailable. */
28572
- 503: {
28573
- headers: {
28574
- [name: string]: unknown;
28648
+ content: {
28649
+ "application/json": components["schemas"]["HTTPValidationError"];
28575
28650
  };
28576
- content?: never;
28577
28651
  };
28578
28652
  };
28579
28653
  };
@@ -32177,6 +32251,65 @@ export interface operations {
32177
32251
  };
32178
32252
  };
32179
32253
  };
32254
+ create_turn_stream_v1__workspace_id__conversations__conversation_id__turns_stream_post: {
32255
+ parameters: {
32256
+ query?: {
32257
+ /** @description Include tool_call_started / tool_call_completed frames in the stream */
32258
+ include_tool_calls?: boolean;
32259
+ };
32260
+ header?: never;
32261
+ path: {
32262
+ workspace_id: string;
32263
+ conversation_id: string;
32264
+ };
32265
+ cookie?: never;
32266
+ };
32267
+ requestBody: {
32268
+ content: {
32269
+ "application/json": components["schemas"]["TurnRequest"];
32270
+ };
32271
+ };
32272
+ responses: {
32273
+ /** @description SSE stream of TurnStreamEvent frames */
32274
+ 200: {
32275
+ headers: {
32276
+ [name: string]: unknown;
32277
+ };
32278
+ content: {
32279
+ "application/json": unknown;
32280
+ "text/event-stream": components["schemas"]["TurnStreamEvent"];
32281
+ };
32282
+ };
32283
+ /** @description Conversation or service not found */
32284
+ 404: {
32285
+ headers: {
32286
+ [name: string]: unknown;
32287
+ };
32288
+ content?: never;
32289
+ };
32290
+ /** @description Conversation is closed */
32291
+ 409: {
32292
+ headers: {
32293
+ [name: string]: unknown;
32294
+ };
32295
+ content?: never;
32296
+ };
32297
+ /** @description Conversation is missing or has corrupt service binding */
32298
+ 422: {
32299
+ headers: {
32300
+ [name: string]: unknown;
32301
+ };
32302
+ content?: never;
32303
+ };
32304
+ /** @description Agent service unavailable */
32305
+ 503: {
32306
+ headers: {
32307
+ [name: string]: unknown;
32308
+ };
32309
+ content?: never;
32310
+ };
32311
+ };
32312
+ };
32180
32313
  "crm-company-search": {
32181
32314
  parameters: {
32182
32315
  query?: {