@amigo-ai/platform-sdk 0.95.0 → 0.96.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.
@@ -1362,7 +1362,7 @@ export interface paths {
1362
1362
  * List Audit Events
1363
1363
  * @description List audit events with filters and pagination.
1364
1364
  *
1365
- * Permissions: admin, owner
1365
+ * Permissions: admin, owner (``Audit.view``)
1366
1366
  */
1367
1367
  get: operations["list-audit-events"];
1368
1368
  put?: never;
@@ -1384,7 +1384,7 @@ export interface paths {
1384
1384
  * Get Entity Access Log
1385
1385
  * @description Per-entity access history — all audit events for a specific resource.
1386
1386
  *
1387
- * Permissions: admin, owner
1387
+ * Permissions: admin, owner (``Audit.view``)
1388
1388
  */
1389
1389
  get: operations["get-entity-access-log"];
1390
1390
  put?: never;
@@ -1406,7 +1406,10 @@ export interface paths {
1406
1406
  put?: never;
1407
1407
  /**
1408
1408
  * Create Audit Export
1409
- * @description Export audit events to S3 as NDJSON. Returns a presigned download URL.
1409
+ * @description Export audit events to the UC Volume as NDJSON.
1410
+ *
1411
+ * Returns a platform-api proxy download path (UC Volumes have no presigned
1412
+ * URLs — ``download_audit_export`` streams the bytes).
1410
1413
  *
1411
1414
  * Permissions: admin, owner
1412
1415
  */
@@ -1426,7 +1429,7 @@ export interface paths {
1426
1429
  };
1427
1430
  /**
1428
1431
  * List Audit Exports
1429
- * @description List past audit exports with presigned download URLs.
1432
+ * @description List past audit exports with platform-api proxy download paths.
1430
1433
  *
1431
1434
  * Permissions: admin, owner
1432
1435
  */
@@ -1439,6 +1442,34 @@ export interface paths {
1439
1442
  patch?: never;
1440
1443
  trace?: never;
1441
1444
  };
1445
+ "/v1/{workspace_id}/audit/exports/download/{filename}": {
1446
+ parameters: {
1447
+ query?: never;
1448
+ header?: never;
1449
+ path?: never;
1450
+ cookie?: never;
1451
+ };
1452
+ /**
1453
+ * Download Audit Export
1454
+ * @description Proxy-download an audit export artifact (NDJSON) from the UC Volume.
1455
+ *
1456
+ * ``filename`` must be a bare export filename (``{export_id}.ndjson``);
1457
+ * path separators and traversal sequences are rejected with 422. The volume
1458
+ * key is reconstructed server-side as ``exports/{workspace_id}/{filename}``,
1459
+ * so a caller can never reach outside its own workspace prefix. The bytes
1460
+ * are streamed volume→client without buffering the artifact in memory.
1461
+ *
1462
+ * Permissions: admin, owner (``Audit.export`` — same gate as create/list).
1463
+ */
1464
+ get: operations["download-audit-export"];
1465
+ put?: never;
1466
+ post?: never;
1467
+ delete?: never;
1468
+ options?: never;
1469
+ head?: never;
1470
+ patch?: never;
1471
+ trace?: never;
1472
+ };
1442
1473
  "/v1/{workspace_id}/audit/phi-access": {
1443
1474
  parameters: {
1444
1475
  query?: never;
@@ -1452,7 +1483,7 @@ export interface paths {
1452
1483
  *
1453
1484
  * Required for HIPAA breach investigation (§164.312(b)).
1454
1485
  *
1455
- * Permissions: admin, owner
1486
+ * Permissions: admin, owner (``Audit.view``)
1456
1487
  */
1457
1488
  get: operations["get-phi-access-report"];
1458
1489
  put?: never;
@@ -1474,7 +1505,7 @@ export interface paths {
1474
1505
  * Get Audit Summary
1475
1506
  * @description Audit summary statistics for compliance dashboard.
1476
1507
  *
1477
- * Permissions: admin, owner
1508
+ * Permissions: admin, owner (``Audit.view``)
1478
1509
  */
1479
1510
  get: operations["get-audit-summary"];
1480
1511
  put?: never;
@@ -5644,7 +5675,8 @@ export interface paths {
5644
5675
  * Partial updates supported — only provided fields are changed.
5645
5676
  * Requirements list is replaced entirely when provided (not merged).
5646
5677
  *
5647
- * Permissions: admin, owner.
5678
+ * Permissions: admin, owner (enforced via ``Workspace.update``, matching
5679
+ * the outreach-settings sibling).
5648
5680
  */
5649
5681
  put: operations["update-gap-scanner-settings"];
5650
5682
  post?: never;
@@ -5669,7 +5701,7 @@ export interface paths {
5669
5701
  *
5670
5702
  * Proxies to connector-runner /internal/gap-scanner/preview.
5671
5703
  *
5672
- * Permissions: admin, owner.
5704
+ * Permissions: admin, owner (enforced via ``Workspace.update``).
5673
5705
  */
5674
5706
  post: operations["gap-scanner-preview"];
5675
5707
  delete?: never;
@@ -5693,7 +5725,9 @@ export interface paths {
5693
5725
  *
5694
5726
  * Proxies to connector-runner /internal/gap-scanner/scan.
5695
5727
  *
5696
- * Permissions: admin, owner.
5728
+ * Permissions: admin, owner (enforced via ``Workspace.update`` — this
5729
+ * creates patient-facing surfaces, so it must not be reachable below
5730
+ * admin tier).
5697
5731
  */
5698
5732
  post: operations["gap-scanner-scan"];
5699
5733
  delete?: never;
@@ -5796,7 +5830,7 @@ export interface paths {
5796
5830
  * Advisory in v1: policy is stored and displayed but no automated
5797
5831
  * deletion is performed. Legal hold overrides all retention.
5798
5832
  *
5799
- * Permissions: admin, owner.
5833
+ * Permissions: admin, owner (``Workspace.update``).
5800
5834
  */
5801
5835
  put: operations["update-retention-policy"];
5802
5836
  post?: never;
@@ -11047,6 +11081,11 @@ export interface components {
11047
11081
  * @constant
11048
11082
  */
11049
11083
  status: "active";
11084
+ /**
11085
+ * Turn Count
11086
+ * @default 0
11087
+ */
11088
+ turn_count?: number;
11050
11089
  /**
11051
11090
  * Workspace Id
11052
11091
  * Format: uuid
@@ -23907,6 +23946,10 @@ export interface components {
23907
23946
  };
23908
23947
  /** SurfaceResponse */
23909
23948
  SurfaceResponse: {
23949
+ /** Archive Reason */
23950
+ archive_reason?: string | null;
23951
+ /** Archived At */
23952
+ archived_at?: string | null;
23910
23953
  channel?: components["schemas"]["ChannelType"] | null;
23911
23954
  /**
23912
23955
  * Context
@@ -23952,6 +23995,12 @@ export interface components {
23952
23995
  opened_at?: string | null;
23953
23996
  /** Resource Type */
23954
23997
  resource_type?: string | null;
23998
+ /** Review Notes */
23999
+ review_notes?: string | null;
24000
+ /** Reviewed At */
24001
+ reviewed_at?: string | null;
24002
+ /** Reviewed By */
24003
+ reviewed_by?: string | null;
23955
24004
  status: components["schemas"]["SurfaceStatus"];
23956
24005
  /** Submitted At */
23957
24006
  submitted_at?: string | null;
@@ -25803,6 +25852,18 @@ export interface components {
25803
25852
  status: string;
25804
25853
  /** Turn Count */
25805
25854
  turn_count: number;
25855
+ /**
25856
+ * Turn Id
25857
+ * @description Identifier of the user exchange this turn belongs to — identical to the ``turn_id`` on the non-streaming ``POST /turns`` response and on this conversation's history turns, so a streaming client can anchor durable per-turn artifacts (e.g. feedback) without a follow-up read. Stamped by platform-api at the proxy boundary (agent-engine frames do not carry it). Null when the conversation has no user exchange yet (a greeting kickoff stream on a fresh conversation).
25858
+ * @default null
25859
+ */
25860
+ turn_id?: string | null;
25861
+ /**
25862
+ * Turn Index
25863
+ * @description Zero-based ordinal of the user exchange (0 = first user turn). Derived server-side; null exactly when ``turn_id`` is null.
25864
+ * @default null
25865
+ */
25866
+ turn_index?: number | null;
25806
25867
  };
25807
25868
  /**
25808
25869
  * TurnErrorEvent
@@ -29775,7 +29836,7 @@ export interface operations {
29775
29836
  };
29776
29837
  content?: never;
29777
29838
  };
29778
- /** @description Invalid request body. */
29839
+ /** @description Invalid request body, or region provided (immutable). */
29779
29840
  422: {
29780
29841
  headers: {
29781
29842
  [name: string]: unknown;
@@ -32012,6 +32073,51 @@ export interface operations {
32012
32073
  };
32013
32074
  };
32014
32075
  };
32076
+ "download-audit-export": {
32077
+ parameters: {
32078
+ query?: never;
32079
+ header?: never;
32080
+ path: {
32081
+ workspace_id: string;
32082
+ filename: string;
32083
+ };
32084
+ cookie?: never;
32085
+ };
32086
+ requestBody?: never;
32087
+ responses: {
32088
+ /** @description The export artifact, streamed as NDJSON. */
32089
+ 200: {
32090
+ headers: {
32091
+ [name: string]: unknown;
32092
+ };
32093
+ content: {
32094
+ "application/json": unknown;
32095
+ "application/x-ndjson": unknown;
32096
+ };
32097
+ };
32098
+ /** @description Audit export not found */
32099
+ 404: {
32100
+ headers: {
32101
+ [name: string]: unknown;
32102
+ };
32103
+ content?: never;
32104
+ };
32105
+ /** @description Invalid export filename */
32106
+ 422: {
32107
+ headers: {
32108
+ [name: string]: unknown;
32109
+ };
32110
+ content?: never;
32111
+ };
32112
+ /** @description Rate limited */
32113
+ 429: {
32114
+ headers: {
32115
+ [name: string]: unknown;
32116
+ };
32117
+ content?: never;
32118
+ };
32119
+ };
32120
+ };
32015
32121
  "get-phi-access-report": {
32016
32122
  parameters: {
32017
32123
  query?: {