@amigo-ai/platform-sdk 0.23.0 → 0.25.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 (42) hide show
  1. package/api.md +8 -2
  2. package/dist/core/errors.js +155 -9
  3. package/dist/core/errors.js.map +1 -1
  4. package/dist/core/reconnecting-websocket.js +371 -0
  5. package/dist/core/reconnecting-websocket.js.map +1 -0
  6. package/dist/index.cjs +1021 -17
  7. package/dist/index.cjs.map +4 -4
  8. package/dist/index.js +22 -2
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.mjs +1021 -17
  11. package/dist/index.mjs.map +4 -4
  12. package/dist/resources/events.js +588 -0
  13. package/dist/resources/events.js.map +1 -0
  14. package/dist/resources/integrations.js +25 -0
  15. package/dist/resources/integrations.js.map +1 -1
  16. package/dist/resources/observers.js +238 -0
  17. package/dist/resources/observers.js.map +1 -0
  18. package/dist/resources/workspaces.js +4 -8
  19. package/dist/resources/workspaces.js.map +1 -1
  20. package/dist/types/core/errors.d.ts +93 -1
  21. package/dist/types/core/errors.d.ts.map +1 -1
  22. package/dist/types/core/reconnecting-websocket.d.ts +156 -0
  23. package/dist/types/core/reconnecting-websocket.d.ts.map +1 -0
  24. package/dist/types/generated/api.d.ts +628 -104
  25. package/dist/types/generated/api.d.ts.map +1 -1
  26. package/dist/types/index.d.cts +45 -2
  27. package/dist/types/index.d.cts.map +1 -1
  28. package/dist/types/index.d.ts +45 -2
  29. package/dist/types/index.d.ts.map +1 -1
  30. package/dist/types/resources/events.d.ts +193 -0
  31. package/dist/types/resources/events.d.ts.map +1 -0
  32. package/dist/types/resources/functions.d.ts.map +1 -1
  33. package/dist/types/resources/integrations.d.ts +33 -0
  34. package/dist/types/resources/integrations.d.ts.map +1 -1
  35. package/dist/types/resources/metrics.d.ts.map +1 -1
  36. package/dist/types/resources/observers.d.ts +148 -0
  37. package/dist/types/resources/observers.d.ts.map +1 -0
  38. package/dist/types/resources/operators.d.ts.map +1 -1
  39. package/dist/types/resources/settings.d.ts.map +1 -1
  40. package/dist/types/resources/workspaces.d.ts +4 -15
  41. package/dist/types/resources/workspaces.d.ts.map +1 -1
  42. package/package.json +1 -1
@@ -560,11 +560,7 @@ export interface paths {
560
560
  */
561
561
  get: operations["list-workspaces"];
562
562
  put?: never;
563
- /**
564
- * Create a workspace
565
- * @description Bootstrap a new workspace. No authentication required.
566
- */
567
- post: operations["create-workspace"];
563
+ post?: never;
568
564
  delete?: never;
569
565
  options?: never;
570
566
  head?: never;
@@ -3512,6 +3508,26 @@ export interface paths {
3512
3508
  patch?: never;
3513
3509
  trace?: never;
3514
3510
  };
3511
+ "/v1/{workspace_id}/integrations/{integration_id}/test-connection": {
3512
+ parameters: {
3513
+ query?: never;
3514
+ header?: never;
3515
+ path?: never;
3516
+ cookie?: never;
3517
+ };
3518
+ get?: never;
3519
+ put?: never;
3520
+ /**
3521
+ * Probe an integration's connection + auth
3522
+ * @description Pre-flight probe of an integration without invoking any specific endpoint. Exercises auth resolution end-to-end (SSM lookup, OAuth2 token mint, JWT signing) and sends a HEAD request to ``base_url`` (REST/FHIR) or to ``mcp_url`` (MCP sse/http). The most recent probe outcome is persisted on the integration so the UI can display a health badge without re-probing on every render. Safe to run on production integrations — HEAD requests carry no side effects. Requires `Integration.view` permission.
3523
+ */
3524
+ post: operations["test-integration-connection"];
3525
+ delete?: never;
3526
+ options?: never;
3527
+ head?: never;
3528
+ patch?: never;
3529
+ trace?: never;
3530
+ };
3515
3531
  "/v1/{workspace_id}/m42/anomalies/ranked": {
3516
3532
  parameters: {
3517
3533
  query?: never;
@@ -8817,7 +8833,10 @@ export interface components {
8817
8833
  };
8818
8834
  /** AuditExportRequest */
8819
8835
  AuditExportRequest: {
8820
- /** Action */
8836
+ /**
8837
+ * Action
8838
+ * @description Filter by action type.
8839
+ */
8821
8840
  action?: string | null;
8822
8841
  /**
8823
8842
  * Date From
@@ -8834,7 +8853,10 @@ export interface components {
8834
8853
  * @default false
8835
8854
  */
8836
8855
  phi_only?: boolean;
8837
- /** Service */
8856
+ /**
8857
+ * Service
8858
+ * @description Filter by service name.
8859
+ */
8838
8860
  service?: string | null;
8839
8861
  };
8840
8862
  /** AuditExportResponse */
@@ -9058,6 +9080,32 @@ export interface components {
9058
9080
  */
9059
9081
  workspace_id: string;
9060
9082
  };
9083
+ /** AvailabilityDate */
9084
+ AvailabilityDate: {
9085
+ /** Date */
9086
+ date: string;
9087
+ /** Slots */
9088
+ slots?: components["schemas"]["AvailabilitySlot"][];
9089
+ };
9090
+ /**
9091
+ * AvailabilityResponse
9092
+ * @description Available appointment slots grouped by date.
9093
+ */
9094
+ AvailabilityResponse: {
9095
+ /** Dates */
9096
+ dates?: components["schemas"]["AvailabilityDate"][];
9097
+ };
9098
+ /** AvailabilitySlot */
9099
+ AvailabilitySlot: {
9100
+ /** End */
9101
+ end: string;
9102
+ /** Id */
9103
+ id: string;
9104
+ /** Provider */
9105
+ provider?: string | null;
9106
+ /** Start */
9107
+ start: string;
9108
+ };
9061
9109
  /** AvailableNumber */
9062
9110
  AvailableNumber: {
9063
9111
  /**
@@ -9391,6 +9439,22 @@ export interface components {
9391
9439
  */
9392
9440
  slot_id: string;
9393
9441
  };
9442
+ /**
9443
+ * BookingResponse
9444
+ * @description Acknowledgement returned when a booking request is accepted.
9445
+ */
9446
+ BookingResponse: {
9447
+ /** Message */
9448
+ message: string;
9449
+ /** Slot Id */
9450
+ slot_id: string;
9451
+ /**
9452
+ * Status
9453
+ * @description Booking lifecycle status.
9454
+ * @constant
9455
+ */
9456
+ status: "pending";
9457
+ };
9394
9458
  /** BooleanMetricValueResponse */
9395
9459
  BooleanMetricValueResponse: {
9396
9460
  /** Avg Confidence */
@@ -10490,7 +10554,10 @@ export interface components {
10490
10554
  };
10491
10555
  /** ChatRequest */
10492
10556
  ChatRequest: {
10493
- /** Message */
10557
+ /**
10558
+ * Message
10559
+ * @description Insights chat user message.
10560
+ */
10494
10561
  message: string;
10495
10562
  };
10496
10563
  /** ClaimResponse */
@@ -11635,8 +11702,11 @@ export interface components {
11635
11702
  CreateApiKeyRequest: {
11636
11703
  /** Duration Days */
11637
11704
  duration_days: number;
11638
- name?: components["schemas"]["StrippedNonemptyString"] | null;
11639
- /** Permissions */
11705
+ name?: components["schemas"]["NameString"] | null;
11706
+ /**
11707
+ * Permissions
11708
+ * @description Permission names. Max 128 entries; each entry up to 128 chars.
11709
+ */
11640
11710
  permissions?: string[];
11641
11711
  /**
11642
11712
  * Role
@@ -11831,7 +11901,10 @@ export interface components {
11831
11901
  mcp_transport?: ("stdio" | "sse" | "http") | null;
11832
11902
  /** Mcp Url */
11833
11903
  mcp_url?: string | null;
11834
- /** Name */
11904
+ /**
11905
+ * Name
11906
+ * @description Slug-like identifier, lowercase alphanumeric + hyphens/underscores.
11907
+ */
11835
11908
  name: string;
11836
11909
  /**
11837
11910
  * Protocol
@@ -16463,6 +16536,15 @@ export interface components {
16463
16536
  /** Value */
16464
16537
  value: string;
16465
16538
  };
16539
+ /** HealFieldResponse */
16540
+ HealFieldResponse: {
16541
+ /** Confidence */
16542
+ confidence: number;
16543
+ /** Corrected Value */
16544
+ corrected_value: string;
16545
+ /** Explanation */
16546
+ explanation?: string | null;
16547
+ };
16466
16548
  /** HealthSyncResponse */
16467
16549
  HealthSyncResponse: {
16468
16550
  /** Connector Heartbeats */
@@ -16714,6 +16796,16 @@ export interface components {
16714
16796
  * @description Integration ID
16715
16797
  */
16716
16798
  id: string;
16799
+ /**
16800
+ * Last Test Status
16801
+ * @description Status of the most recent connection probe. ``None`` if never tested.
16802
+ */
16803
+ last_test_status?: ("healthy" | "auth_failed" | "unreachable" | "timeout" | "ssl_error" | "misconfigured") | null;
16804
+ /**
16805
+ * Last Tested At
16806
+ * @description When this integration was last successfully or unsuccessfully tested (server UTC).
16807
+ */
16808
+ last_tested_at?: string | null;
16717
16809
  /**
16718
16810
  * Mcp Args
16719
16811
  * @description MCP stdio command arguments
@@ -17330,6 +17422,59 @@ export interface components {
17330
17422
  /** Success */
17331
17423
  success: boolean;
17332
17424
  };
17425
+ /**
17426
+ * LinkErrorResponse
17427
+ * @description Error envelope returned for token / link validation failures.
17428
+ */
17429
+ LinkErrorResponse: {
17430
+ /**
17431
+ * Error Code
17432
+ * @description Machine-readable error code.
17433
+ * @enum {string}
17434
+ */
17435
+ error_code: "invalid_token" | "link_not_found" | "link_expired" | "link_exhausted";
17436
+ /**
17437
+ * Message
17438
+ * @description Human-readable error message.
17439
+ */
17440
+ message: string;
17441
+ };
17442
+ /**
17443
+ * LinkInfoResponse
17444
+ * @description Public metadata for an intake upload link, returned to the forms app.
17445
+ */
17446
+ LinkInfoResponse: {
17447
+ /**
17448
+ * Allowed Content Types
17449
+ * @description Allowed Content-Type values for uploads, sorted lexicographically.
17450
+ */
17451
+ allowed_content_types?: string[];
17452
+ /**
17453
+ * Customer Slug
17454
+ * @description Stable URL-safe customer identifier.
17455
+ */
17456
+ customer_slug: string;
17457
+ /**
17458
+ * Display Name
17459
+ * @description Human-readable display name (falls back to customer slug).
17460
+ */
17461
+ display_name: string;
17462
+ /**
17463
+ * Max Upload Bytes
17464
+ * @description Maximum allowed upload size in bytes.
17465
+ */
17466
+ max_upload_bytes: number;
17467
+ };
17468
+ /**
17469
+ * LookupResponse
17470
+ * @description Autocompletion results for a surface lookup field.
17471
+ */
17472
+ LookupResponse: {
17473
+ /** Results */
17474
+ results?: {
17475
+ [key: string]: unknown;
17476
+ }[];
17477
+ };
17333
17478
  /** LoopLatencyPointItem */
17334
17479
  LoopLatencyPointItem: {
17335
17480
  /**
@@ -18240,6 +18385,18 @@ export interface components {
18240
18385
  */
18241
18386
  target_fields?: string[] | null;
18242
18387
  };
18388
+ /**
18389
+ * OcrResponse
18390
+ * @description Structured field extraction result for an uploaded image.
18391
+ */
18392
+ OcrResponse: {
18393
+ /** Confidence */
18394
+ confidence: number;
18395
+ /** Extracted Fields */
18396
+ extracted_fields?: {
18397
+ [key: string]: unknown;
18398
+ };
18399
+ };
18243
18400
  /**
18244
18401
  * OperatorAction
18245
18402
  * @description Today's behavior — write escalation.requested + publish SSE, wait for a
@@ -19499,6 +19656,47 @@ export interface components {
19499
19656
  [key: string]: unknown;
19500
19657
  };
19501
19658
  };
19659
+ /**
19660
+ * PatientSurfaceSpec
19661
+ * @description Patient-facing surface spec — what forms-app renders.
19662
+ *
19663
+ * Free-form by design: ``fields``/``sections``/``branding`` are forwarded
19664
+ * from the upstream surface document as raw dicts. Renamed from
19665
+ * ``SurfaceSpec`` to avoid an OpenAPI schema-name collision with
19666
+ * ``platform_lib.surfaces.models.SurfaceSpec`` (which would otherwise
19667
+ * force FastAPI to namespace both classes and rename the existing
19668
+ * ``SurfaceSpec`` schema in the committed openapi.json).
19669
+ */
19670
+ PatientSurfaceSpec: {
19671
+ /** Branding */
19672
+ branding?: {
19673
+ [key: string]: unknown;
19674
+ } | null;
19675
+ /** Completion Action Url */
19676
+ completion_action_url?: string | null;
19677
+ /** Completion Message */
19678
+ completion_message?: string | null;
19679
+ /** Completion Title */
19680
+ completion_title?: string | null;
19681
+ /** Context */
19682
+ context?: {
19683
+ [key: string]: unknown;
19684
+ } | null;
19685
+ /** Description */
19686
+ description?: string | null;
19687
+ /** Fields */
19688
+ fields?: {
19689
+ [key: string]: unknown;
19690
+ }[];
19691
+ /** Sections */
19692
+ sections?: {
19693
+ [key: string]: unknown;
19694
+ }[] | null;
19695
+ /** Submit Button Text */
19696
+ submit_button_text?: string | null;
19697
+ /** Title */
19698
+ title?: string | null;
19699
+ };
19502
19700
  /** PatientTimelineResponse */
19503
19701
  PatientTimelineResponse: {
19504
19702
  /**
@@ -21131,6 +21329,18 @@ export interface components {
21131
21329
  */
21132
21330
  workspace_id: string;
21133
21331
  };
21332
+ /**
21333
+ * SaveFieldResponse
21334
+ * @description Acknowledgement returned when a field is auto-saved.
21335
+ */
21336
+ SaveFieldResponse: {
21337
+ /**
21338
+ * Status
21339
+ * @default saved
21340
+ * @constant
21341
+ */
21342
+ status?: "saved";
21343
+ };
21134
21344
  /** Scenario */
21135
21345
  Scenario: {
21136
21346
  /** Description */
@@ -21413,6 +21623,10 @@ export interface components {
21413
21623
  /**
21414
21624
  * SecretInput
21415
21625
  * @description Inline secret value — auto-provisioned to SSM on create/update.
21626
+ *
21627
+ * Bounded to 8192 chars: large enough for a PEM RSA-4096 private key
21628
+ * plus a short cert chain, small enough that an adversary cannot
21629
+ * push a 100 MB "secret" through to SSM.
21416
21630
  */
21417
21631
  SecretInput: {
21418
21632
  /** Value */
@@ -22548,7 +22762,10 @@ export interface components {
22548
22762
  };
22549
22763
  /** SqlQueryRequest */
22550
22764
  SqlQueryRequest: {
22551
- /** Sql */
22765
+ /**
22766
+ * Sql
22767
+ * @description Read-only SQL query against Databricks.
22768
+ */
22552
22769
  sql: string;
22553
22770
  };
22554
22771
  /** SqlQueryResponse */
@@ -22958,6 +23175,39 @@ export interface components {
22958
23175
  */
22959
23176
  surface_id: string;
22960
23177
  };
23178
+ /**
23179
+ * SurfaceErrorResponse
23180
+ * @description Error envelope returned by patient-facing surface JSON endpoints.
23181
+ *
23182
+ * Frontend (forms-app) reads ``error_code`` for branching and ``message``
23183
+ * for user-visible copy. ``reason`` is a debug-only field set by the token
23184
+ * validator. ``details`` is set when a request body fails server-side
23185
+ * validation.
23186
+ */
23187
+ SurfaceErrorResponse: {
23188
+ /**
23189
+ * Details
23190
+ * @description Optional structured validation details for 422 responses.
23191
+ */
23192
+ details?: {
23193
+ [key: string]: unknown;
23194
+ } | null;
23195
+ /**
23196
+ * Error Code
23197
+ * @description Machine-readable error code.
23198
+ */
23199
+ error_code: string;
23200
+ /**
23201
+ * Message
23202
+ * @description Human-readable error message. Omitted for token-validator errors that only carry ``reason``.
23203
+ */
23204
+ message?: string | null;
23205
+ /**
23206
+ * Reason
23207
+ * @description Debug detail from the token validator (e.g. ``token expired``).
23208
+ */
23209
+ reason?: string | null;
23210
+ };
22961
23211
  /**
22962
23212
  * SurfaceField
22963
23213
  * @description A single data collection field in a surface spec.
@@ -23257,6 +23507,23 @@ export interface components {
23257
23507
  submit_button_text?: string | null;
23258
23508
  title: components["schemas"]["NameString"];
23259
23509
  };
23510
+ /**
23511
+ * SurfaceSpecResponse
23512
+ * @description Surface render bundle returned to forms-app SSR.
23513
+ */
23514
+ SurfaceSpecResponse: {
23515
+ /** Entity Id */
23516
+ entity_id?: string | null;
23517
+ /** Saved Values */
23518
+ saved_values?: {
23519
+ [key: string]: unknown;
23520
+ };
23521
+ spec: components["schemas"]["PatientSurfaceSpec"];
23522
+ /** Status */
23523
+ status?: string | null;
23524
+ /** Surface Id */
23525
+ surface_id?: string | null;
23526
+ };
23260
23527
  /** SurfaceSubmittedEvent */
23261
23528
  SurfaceSubmittedEvent: {
23262
23529
  /**
@@ -23557,6 +23824,51 @@ export interface components {
23557
23824
  /** Numbers */
23558
23825
  numbers: string[];
23559
23826
  };
23827
+ /**
23828
+ * TestConnectionResponse
23829
+ * @description Result of a pre-flight connection probe.
23830
+ *
23831
+ * Exercised by the developer-console "Test Connection" button. Probes
23832
+ * auth resolution + upstream reachability without invoking any
23833
+ * specific endpoint, so it's safe to run on production integrations.
23834
+ */
23835
+ TestConnectionResponse: {
23836
+ /**
23837
+ * Auth Resolved
23838
+ * @description True if the auth credential successfully resolved (SSM lookup, OAuth2 token mint, JWT signing). False does not necessarily mean the auth is wrong — for ``bearer_token_exchange`` it can mean per-call params weren't supplied.
23839
+ * @default false
23840
+ */
23841
+ auth_resolved?: boolean;
23842
+ /**
23843
+ * Duration Ms
23844
+ * @description End-to-end probe duration in milliseconds.
23845
+ * @default 0
23846
+ */
23847
+ duration_ms?: number;
23848
+ /**
23849
+ * Http Status
23850
+ * @description HTTP status code from the upstream HEAD probe (REST/FHIR/MCP-http only).
23851
+ */
23852
+ http_status?: number | null;
23853
+ /**
23854
+ * Message
23855
+ * @description Human-readable summary suitable for direct display to the user.
23856
+ * @default
23857
+ */
23858
+ message?: string;
23859
+ /**
23860
+ * Status
23861
+ * @description Coarse classification of the probe outcome. The console maps each value to a distinct remediation message: ``healthy`` is green, ``auth_failed`` prompts re-auth, ``unreachable`` / ``timeout`` suggest checking the URL or VPN, ``ssl_error`` calls out cert issues, ``misconfigured`` highlights missing required fields.
23862
+ * @enum {string}
23863
+ */
23864
+ status: "healthy" | "auth_failed" | "unreachable" | "timeout" | "ssl_error" | "misconfigured";
23865
+ /**
23866
+ * Tested At
23867
+ * Format: date-time
23868
+ * @description When the probe ran (server time, UTC).
23869
+ */
23870
+ tested_at: string;
23871
+ };
23560
23872
  /** TestEndpointRequest */
23561
23873
  TestEndpointRequest: {
23562
23874
  /**
@@ -23614,16 +23926,19 @@ export interface components {
23614
23926
  };
23615
23927
  /** TestSkillRequest */
23616
23928
  TestSkillRequest: {
23617
- /** Input */
23929
+ /**
23930
+ * Input
23931
+ * @description Input parameters to pass to the skill executor.
23932
+ */
23618
23933
  input: {
23619
23934
  [key: string]: unknown;
23620
23935
  };
23621
23936
  /**
23622
23937
  * Static Tool Mocks
23623
- * @default {}
23938
+ * @description Map of static tool name (max 128 chars) to mocked output string (max 16 KB). Up to 64 entries.
23624
23939
  */
23625
23940
  static_tool_mocks?: {
23626
- [key: string]: string;
23941
+ [key: string]: components["schemas"]["_ToolMockValue"];
23627
23942
  };
23628
23943
  };
23629
23944
  /** TestSkillResponse */
@@ -25378,6 +25693,55 @@ export interface components {
25378
25693
  /** Region */
25379
25694
  region?: ("us-east-1" | "ap-southeast-2" | "eu-central-1" | "ca-central-1") | null;
25380
25695
  };
25696
+ /**
25697
+ * UploadDuplicateInfo
25698
+ * @description Pointer to an existing upload row when content-hash dedup fires.
25699
+ */
25700
+ UploadDuplicateInfo: {
25701
+ /**
25702
+ * Id
25703
+ * @description UUID of the existing upload row.
25704
+ */
25705
+ id: string;
25706
+ /**
25707
+ * Received At
25708
+ * @description ISO-8601 timestamp the original upload was received.
25709
+ */
25710
+ received_at: string;
25711
+ };
25712
+ /**
25713
+ * UploadFileResponse
25714
+ * @description Receipt for a successful upload via an intake link.
25715
+ */
25716
+ UploadFileResponse: {
25717
+ /** @description Set when this upload's content hash matched a prior upload; otherwise null. */
25718
+ duplicate_of?: components["schemas"]["UploadDuplicateInfo"] | null;
25719
+ /**
25720
+ * Filename
25721
+ * @description Stored filename.
25722
+ */
25723
+ filename: string;
25724
+ /**
25725
+ * Id
25726
+ * @description UUID of the newly created upload row.
25727
+ */
25728
+ id: string;
25729
+ /**
25730
+ * Scan Status
25731
+ * @description Virus-scan status (e.g. ``clean``, ``skipped``).
25732
+ */
25733
+ scan_status: string;
25734
+ /**
25735
+ * Sha256
25736
+ * @description SHA-256 of the uploaded bytes (lowercase hex).
25737
+ */
25738
+ sha256: string;
25739
+ /**
25740
+ * Size Bytes
25741
+ * @description Stored size in bytes.
25742
+ */
25743
+ size_bytes: number;
25744
+ };
25381
25745
  /** UpsertVersionSetRequest */
25382
25746
  UpsertVersionSetRequest: {
25383
25747
  version_set: components["schemas"]["VersionSet"];
@@ -26534,6 +26898,8 @@ export interface components {
26534
26898
  /** Success */
26535
26899
  success: boolean;
26536
26900
  };
26901
+ _ToolMockKey: string;
26902
+ _ToolMockValue: string;
26537
26903
  /**
26538
26904
  * IntegrationToolRef
26539
26905
  * @description Reference to an integration endpoint by integration + endpoint name.
@@ -26981,7 +27347,7 @@ export interface operations {
26981
27347
  [name: string]: unknown;
26982
27348
  };
26983
27349
  content: {
26984
- "application/json": unknown;
27350
+ "application/json": components["schemas"]["AvailabilityResponse"];
26985
27351
  };
26986
27352
  };
26987
27353
  /** @description Invalid token */
@@ -26989,21 +27355,27 @@ export interface operations {
26989
27355
  headers: {
26990
27356
  [name: string]: unknown;
26991
27357
  };
26992
- content?: never;
27358
+ content: {
27359
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27360
+ };
26993
27361
  };
26994
27362
  /** @description Token expired */
26995
27363
  410: {
26996
27364
  headers: {
26997
27365
  [name: string]: unknown;
26998
27366
  };
26999
- content?: never;
27367
+ content: {
27368
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27369
+ };
27000
27370
  };
27001
27371
  /** @description Invalid date format */
27002
27372
  422: {
27003
27373
  headers: {
27004
27374
  [name: string]: unknown;
27005
27375
  };
27006
- content?: never;
27376
+ content: {
27377
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27378
+ };
27007
27379
  };
27008
27380
  /** @description Rate limited */
27009
27381
  429: {
@@ -27035,7 +27407,7 @@ export interface operations {
27035
27407
  [name: string]: unknown;
27036
27408
  };
27037
27409
  content: {
27038
- "application/json": unknown;
27410
+ "application/json": components["schemas"]["BookingResponse"];
27039
27411
  };
27040
27412
  };
27041
27413
  /** @description Invalid token */
@@ -27043,22 +27415,44 @@ export interface operations {
27043
27415
  headers: {
27044
27416
  [name: string]: unknown;
27045
27417
  };
27046
- content?: never;
27418
+ content: {
27419
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27420
+ };
27421
+ };
27422
+ /** @description Slot not found */
27423
+ 404: {
27424
+ headers: {
27425
+ [name: string]: unknown;
27426
+ };
27427
+ content: {
27428
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27429
+ };
27430
+ };
27431
+ /** @description Slot unavailable */
27432
+ 409: {
27433
+ headers: {
27434
+ [name: string]: unknown;
27435
+ };
27436
+ content: {
27437
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27438
+ };
27047
27439
  };
27048
27440
  /** @description Token expired */
27049
27441
  410: {
27050
27442
  headers: {
27051
27443
  [name: string]: unknown;
27052
27444
  };
27053
- content?: never;
27445
+ content: {
27446
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27447
+ };
27054
27448
  };
27055
- /** @description Validation Error */
27449
+ /** @description Validation error */
27056
27450
  422: {
27057
27451
  headers: {
27058
27452
  [name: string]: unknown;
27059
27453
  };
27060
27454
  content: {
27061
- "application/json": components["schemas"]["HTTPValidationError"];
27455
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27062
27456
  };
27063
27457
  };
27064
27458
  /** @description Rate limited */
@@ -27092,7 +27486,7 @@ export interface operations {
27092
27486
  [name: string]: unknown;
27093
27487
  };
27094
27488
  content: {
27095
- "application/json": unknown;
27489
+ "application/json": components["schemas"]["SaveFieldResponse"];
27096
27490
  };
27097
27491
  };
27098
27492
  /** @description Invalid token */
@@ -27100,14 +27494,18 @@ export interface operations {
27100
27494
  headers: {
27101
27495
  [name: string]: unknown;
27102
27496
  };
27103
- content?: never;
27497
+ content: {
27498
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27499
+ };
27104
27500
  };
27105
27501
  /** @description Payload too large */
27106
27502
  413: {
27107
27503
  headers: {
27108
27504
  [name: string]: unknown;
27109
27505
  };
27110
- content?: never;
27506
+ content: {
27507
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27508
+ };
27111
27509
  };
27112
27510
  /** @description Validation Error */
27113
27511
  422: {
@@ -27130,7 +27528,9 @@ export interface operations {
27130
27528
  headers: {
27131
27529
  [name: string]: unknown;
27132
27530
  };
27133
- content?: never;
27531
+ content: {
27532
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27533
+ };
27134
27534
  };
27135
27535
  };
27136
27536
  };
@@ -27155,7 +27555,7 @@ export interface operations {
27155
27555
  [name: string]: unknown;
27156
27556
  };
27157
27557
  content: {
27158
- "application/json": unknown;
27558
+ "application/json": components["schemas"]["HealFieldResponse"];
27159
27559
  };
27160
27560
  };
27161
27561
  /** @description Invalid token */
@@ -27163,7 +27563,9 @@ export interface operations {
27163
27563
  headers: {
27164
27564
  [name: string]: unknown;
27165
27565
  };
27166
- content?: never;
27566
+ content: {
27567
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27568
+ };
27167
27569
  };
27168
27570
  /** @description Validation Error */
27169
27571
  422: {
@@ -27203,7 +27605,7 @@ export interface operations {
27203
27605
  [name: string]: unknown;
27204
27606
  };
27205
27607
  content: {
27206
- "application/json": unknown;
27608
+ "application/json": components["schemas"]["LookupResponse"];
27207
27609
  };
27208
27610
  };
27209
27611
  /** @description Invalid token */
@@ -27211,14 +27613,18 @@ export interface operations {
27211
27613
  headers: {
27212
27614
  [name: string]: unknown;
27213
27615
  };
27214
- content?: never;
27616
+ content: {
27617
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27618
+ };
27215
27619
  };
27216
27620
  /** @description Invalid lookup type */
27217
27621
  422: {
27218
27622
  headers: {
27219
27623
  [name: string]: unknown;
27220
27624
  };
27221
- content?: never;
27625
+ content: {
27626
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27627
+ };
27222
27628
  };
27223
27629
  /** @description Rate limited */
27224
27630
  429: {
@@ -27250,7 +27656,7 @@ export interface operations {
27250
27656
  [name: string]: unknown;
27251
27657
  };
27252
27658
  content: {
27253
- "application/json": unknown;
27659
+ "application/json": components["schemas"]["OcrResponse"];
27254
27660
  };
27255
27661
  };
27256
27662
  /** @description Invalid token */
@@ -27258,7 +27664,9 @@ export interface operations {
27258
27664
  headers: {
27259
27665
  [name: string]: unknown;
27260
27666
  };
27261
- content?: never;
27667
+ content: {
27668
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27669
+ };
27262
27670
  };
27263
27671
  /** @description Validation Error */
27264
27672
  422: {
@@ -27295,7 +27703,7 @@ export interface operations {
27295
27703
  [name: string]: unknown;
27296
27704
  };
27297
27705
  content: {
27298
- "application/json": unknown;
27706
+ "application/json": components["schemas"]["SurfaceSpecResponse"];
27299
27707
  };
27300
27708
  };
27301
27709
  /** @description Invalid token */
@@ -27303,28 +27711,36 @@ export interface operations {
27303
27711
  headers: {
27304
27712
  [name: string]: unknown;
27305
27713
  };
27306
- content?: never;
27714
+ content: {
27715
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27716
+ };
27307
27717
  };
27308
27718
  /** @description Surface not found */
27309
27719
  404: {
27310
27720
  headers: {
27311
27721
  [name: string]: unknown;
27312
27722
  };
27313
- content?: never;
27723
+ content: {
27724
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27725
+ };
27314
27726
  };
27315
27727
  /** @description Already submitted */
27316
27728
  409: {
27317
27729
  headers: {
27318
27730
  [name: string]: unknown;
27319
27731
  };
27320
- content?: never;
27732
+ content: {
27733
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27734
+ };
27321
27735
  };
27322
27736
  /** @description Token expired or surface archived */
27323
27737
  410: {
27324
27738
  headers: {
27325
27739
  [name: string]: unknown;
27326
27740
  };
27327
- content?: never;
27741
+ content: {
27742
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27743
+ };
27328
27744
  };
27329
27745
  /** @description Validation Error */
27330
27746
  422: {
@@ -27417,21 +27833,14 @@ export interface operations {
27417
27833
  };
27418
27834
  requestBody?: never;
27419
27835
  responses: {
27420
- /** @description Successful Response */
27421
- 200: {
27422
- headers: {
27423
- [name: string]: unknown;
27424
- };
27425
- content: {
27426
- "application/json": unknown;
27427
- };
27428
- };
27429
27836
  /** @description File uploaded successfully */
27430
27837
  201: {
27431
27838
  headers: {
27432
27839
  [name: string]: unknown;
27433
27840
  };
27434
- content?: never;
27841
+ content: {
27842
+ "application/json": components["schemas"]["UploadFileResponse"];
27843
+ };
27435
27844
  };
27436
27845
  /** @description Link not found */
27437
27846
  404: {
@@ -27494,7 +27903,7 @@ export interface operations {
27494
27903
  [name: string]: unknown;
27495
27904
  };
27496
27905
  content: {
27497
- "application/json": unknown;
27906
+ "application/json": components["schemas"]["LinkInfoResponse"];
27498
27907
  };
27499
27908
  };
27500
27909
  /** @description Invalid token */
@@ -27502,21 +27911,27 @@ export interface operations {
27502
27911
  headers: {
27503
27912
  [name: string]: unknown;
27504
27913
  };
27505
- content?: never;
27914
+ content: {
27915
+ "application/json": components["schemas"]["LinkErrorResponse"];
27916
+ };
27506
27917
  };
27507
27918
  /** @description Link not found */
27508
27919
  404: {
27509
27920
  headers: {
27510
27921
  [name: string]: unknown;
27511
27922
  };
27512
- content?: never;
27923
+ content: {
27924
+ "application/json": components["schemas"]["LinkErrorResponse"];
27925
+ };
27513
27926
  };
27514
- /** @description Link expired */
27927
+ /** @description Link expired or exhausted */
27515
27928
  410: {
27516
27929
  headers: {
27517
27930
  [name: string]: unknown;
27518
27931
  };
27519
- content?: never;
27932
+ content: {
27933
+ "application/json": components["schemas"]["LinkErrorResponse"];
27934
+ };
27520
27935
  };
27521
27936
  /** @description Validation Error */
27522
27937
  422: {
@@ -27527,7 +27942,7 @@ export interface operations {
27527
27942
  "application/json": components["schemas"]["HTTPValidationError"];
27528
27943
  };
27529
27944
  };
27530
- /** @description Upload limit reached */
27945
+ /** @description Rate limited */
27531
27946
  429: {
27532
27947
  headers: {
27533
27948
  [name: string]: unknown;
@@ -28100,44 +28515,6 @@ export interface operations {
28100
28515
  };
28101
28516
  };
28102
28517
  };
28103
- "create-workspace": {
28104
- parameters: {
28105
- query?: never;
28106
- header?: never;
28107
- path?: never;
28108
- cookie?: never;
28109
- };
28110
- requestBody: {
28111
- content: {
28112
- "application/json": components["schemas"]["CreateWorkspaceRequest"];
28113
- };
28114
- };
28115
- responses: {
28116
- /** @description Successful Response */
28117
- 201: {
28118
- headers: {
28119
- [name: string]: unknown;
28120
- };
28121
- content: {
28122
- "application/json": components["schemas"]["WorkspaceResponse"];
28123
- };
28124
- };
28125
- /** @description Workspace slug already taken. */
28126
- 409: {
28127
- headers: {
28128
- [name: string]: unknown;
28129
- };
28130
- content?: never;
28131
- };
28132
- /** @description Invalid request body. */
28133
- 422: {
28134
- headers: {
28135
- [name: string]: unknown;
28136
- };
28137
- content?: never;
28138
- };
28139
- };
28140
- };
28141
28518
  "create-self-service-workspace": {
28142
28519
  parameters: {
28143
28520
  query?: never;
@@ -29130,7 +29507,7 @@ export interface operations {
29130
29507
  interval?: "1h" | "1d" | "1w";
29131
29508
  service_id?: string | null;
29132
29509
  /** @description Filter by call direction: inbound or outbound */
29133
- direction?: string | null;
29510
+ direction?: ("inbound" | "outbound") | null;
29134
29511
  };
29135
29512
  header?: never;
29136
29513
  path: {
@@ -30134,7 +30511,10 @@ export interface operations {
30134
30511
  };
30135
30512
  "list-audit-exports": {
30136
30513
  parameters: {
30137
- query?: never;
30514
+ query?: {
30515
+ /** @description Max exports to return */
30516
+ limit?: number;
30517
+ };
30138
30518
  header?: never;
30139
30519
  path: {
30140
30520
  workspace_id: string;
@@ -30152,6 +30532,15 @@ export interface operations {
30152
30532
  "application/json": components["schemas"]["AuditExportListResponse"];
30153
30533
  };
30154
30534
  };
30535
+ /** @description Validation Error */
30536
+ 422: {
30537
+ headers: {
30538
+ [name: string]: unknown;
30539
+ };
30540
+ content: {
30541
+ "application/json": components["schemas"]["HTTPValidationError"];
30542
+ };
30543
+ };
30155
30544
  /** @description Rate limited */
30156
30545
  429: {
30157
30546
  headers: {
@@ -34591,6 +34980,8 @@ export interface operations {
34591
34980
  parameters: {
34592
34981
  query?: {
34593
34982
  include_expired?: boolean;
34983
+ limit?: number;
34984
+ offset?: number;
34594
34985
  };
34595
34986
  header?: never;
34596
34987
  path: {
@@ -34687,7 +35078,10 @@ export interface operations {
34687
35078
  };
34688
35079
  "list-intake-link-uploads": {
34689
35080
  parameters: {
34690
- query?: never;
35081
+ query?: {
35082
+ limit?: number;
35083
+ offset?: number;
35084
+ };
34691
35085
  header?: never;
34692
35086
  path: {
34693
35087
  workspace_id: string;
@@ -35118,10 +35512,65 @@ export interface operations {
35118
35512
  };
35119
35513
  };
35120
35514
  };
35515
+ "test-integration-connection": {
35516
+ parameters: {
35517
+ query?: never;
35518
+ header?: never;
35519
+ path: {
35520
+ workspace_id: string;
35521
+ integration_id: string;
35522
+ };
35523
+ cookie?: never;
35524
+ };
35525
+ requestBody?: never;
35526
+ responses: {
35527
+ /** @description Successful Response */
35528
+ 200: {
35529
+ headers: {
35530
+ [name: string]: unknown;
35531
+ };
35532
+ content: {
35533
+ "application/json": components["schemas"]["TestConnectionResponse"];
35534
+ };
35535
+ };
35536
+ /** @description Missing or invalid API key. */
35537
+ 401: {
35538
+ headers: {
35539
+ [name: string]: unknown;
35540
+ };
35541
+ content?: never;
35542
+ };
35543
+ /** @description Insufficient permissions. */
35544
+ 403: {
35545
+ headers: {
35546
+ [name: string]: unknown;
35547
+ };
35548
+ content?: never;
35549
+ };
35550
+ /** @description Integration not found. */
35551
+ 404: {
35552
+ headers: {
35553
+ [name: string]: unknown;
35554
+ };
35555
+ content?: never;
35556
+ };
35557
+ /** @description Validation Error */
35558
+ 422: {
35559
+ headers: {
35560
+ [name: string]: unknown;
35561
+ };
35562
+ content: {
35563
+ "application/json": components["schemas"]["HTTPValidationError"];
35564
+ };
35565
+ };
35566
+ };
35567
+ };
35121
35568
  list_anomalies_ranked_v1__workspace_id__m42_anomalies_ranked_get: {
35122
35569
  parameters: {
35123
35570
  query?: {
35124
35571
  indicator?: string | null;
35572
+ limit?: number;
35573
+ offset?: number;
35125
35574
  };
35126
35575
  header?: never;
35127
35576
  path: {
@@ -35156,6 +35605,7 @@ export interface operations {
35156
35605
  query?: {
35157
35606
  severity?: ("high" | "medium" | "low") | null;
35158
35607
  limit?: number;
35608
+ offset?: number;
35159
35609
  };
35160
35610
  header?: never;
35161
35611
  path: {
@@ -35277,6 +35727,8 @@ export interface operations {
35277
35727
  parameters: {
35278
35728
  query?: {
35279
35729
  focus_area?: string | null;
35730
+ limit?: number;
35731
+ offset?: number;
35280
35732
  };
35281
35733
  header?: never;
35282
35734
  path: {
@@ -35308,7 +35760,10 @@ export interface operations {
35308
35760
  };
35309
35761
  list_cluster_summary_v1__workspace_id__m42_clusters_summary_get: {
35310
35762
  parameters: {
35311
- query?: never;
35763
+ query?: {
35764
+ limit?: number;
35765
+ offset?: number;
35766
+ };
35312
35767
  header?: never;
35313
35768
  path: {
35314
35769
  workspace_id: string;
@@ -35326,11 +35781,23 @@ export interface operations {
35326
35781
  "application/json": components["schemas"]["ClusterSummaryResponse"];
35327
35782
  };
35328
35783
  };
35784
+ /** @description Validation Error */
35785
+ 422: {
35786
+ headers: {
35787
+ [name: string]: unknown;
35788
+ };
35789
+ content: {
35790
+ "application/json": components["schemas"]["HTTPValidationError"];
35791
+ };
35792
+ };
35329
35793
  };
35330
35794
  };
35331
35795
  list_district_metrics_v1__workspace_id__m42_district_metrics_get: {
35332
35796
  parameters: {
35333
- query?: never;
35797
+ query?: {
35798
+ limit?: number;
35799
+ offset?: number;
35800
+ };
35334
35801
  header?: never;
35335
35802
  path: {
35336
35803
  workspace_id: string;
@@ -35348,6 +35815,15 @@ export interface operations {
35348
35815
  "application/json": components["schemas"]["DistrictMetricsResponse"];
35349
35816
  };
35350
35817
  };
35818
+ /** @description Validation Error */
35819
+ 422: {
35820
+ headers: {
35821
+ [name: string]: unknown;
35822
+ };
35823
+ content: {
35824
+ "application/json": components["schemas"]["HTTPValidationError"];
35825
+ };
35826
+ };
35351
35827
  };
35352
35828
  };
35353
35829
  list_features_v1__workspace_id__m42_features_get: {
@@ -35411,6 +35887,8 @@ export interface operations {
35411
35887
  query?: {
35412
35888
  run_id?: string | null;
35413
35889
  scenario?: ("baseline" | "with_policy" | "observational") | null;
35890
+ limit?: number;
35891
+ offset?: number;
35414
35892
  };
35415
35893
  header?: never;
35416
35894
  path: {
@@ -35477,7 +35955,10 @@ export interface operations {
35477
35955
  };
35478
35956
  list_model_registry_v1__workspace_id__m42_model_registry_get: {
35479
35957
  parameters: {
35480
- query?: never;
35958
+ query?: {
35959
+ limit?: number;
35960
+ offset?: number;
35961
+ };
35481
35962
  header?: never;
35482
35963
  path: {
35483
35964
  workspace_id: string;
@@ -35495,6 +35976,15 @@ export interface operations {
35495
35976
  "application/json": components["schemas"]["ModelRegistryResponse"];
35496
35977
  };
35497
35978
  };
35979
+ /** @description Validation Error */
35980
+ 422: {
35981
+ headers: {
35982
+ [name: string]: unknown;
35983
+ };
35984
+ content: {
35985
+ "application/json": components["schemas"]["HTTPValidationError"];
35986
+ };
35987
+ };
35498
35988
  };
35499
35989
  };
35500
35990
  get_notes_rollup_v1__workspace_id__m42_notes_rollup_get: {
@@ -35569,7 +36059,10 @@ export interface operations {
35569
36059
  };
35570
36060
  list_patient_labs_v1__workspace_id__m42_patients__patient_id__labs_get: {
35571
36061
  parameters: {
35572
- query?: never;
36062
+ query?: {
36063
+ limit?: number;
36064
+ offset?: number;
36065
+ };
35573
36066
  header?: never;
35574
36067
  path: {
35575
36068
  workspace_id: string;
@@ -35633,7 +36126,10 @@ export interface operations {
35633
36126
  };
35634
36127
  list_positive_signals_v1__workspace_id__m42_positive_signals_get: {
35635
36128
  parameters: {
35636
- query?: never;
36129
+ query?: {
36130
+ limit?: number;
36131
+ offset?: number;
36132
+ };
35637
36133
  header?: never;
35638
36134
  path: {
35639
36135
  workspace_id: string;
@@ -35651,12 +36147,23 @@ export interface operations {
35651
36147
  "application/json": components["schemas"]["PositiveSignalResponse"];
35652
36148
  };
35653
36149
  };
36150
+ /** @description Validation Error */
36151
+ 422: {
36152
+ headers: {
36153
+ [name: string]: unknown;
36154
+ };
36155
+ content: {
36156
+ "application/json": components["schemas"]["HTTPValidationError"];
36157
+ };
36158
+ };
35654
36159
  };
35655
36160
  };
35656
36161
  list_stratified_fits_v1__workspace_id__m42_stratified_fits_get: {
35657
36162
  parameters: {
35658
36163
  query?: {
35659
36164
  outcome_key?: string | null;
36165
+ limit?: number;
36166
+ offset?: number;
35660
36167
  };
35661
36168
  header?: never;
35662
36169
  path: {
@@ -35843,6 +36350,8 @@ export interface operations {
35843
36350
  service_id?: string | null;
35844
36351
  run_id?: string | null;
35845
36352
  session_id?: string | null;
36353
+ limit?: number;
36354
+ offset?: number;
35846
36355
  };
35847
36356
  header?: never;
35848
36357
  path: {
@@ -39747,6 +40256,8 @@ export interface operations {
39747
40256
  query?: {
39748
40257
  /** @description Max rows to return (default 20, max 100) */
39749
40258
  limit?: number;
40259
+ /** @description Offset for pagination (default 0) */
40260
+ offset?: number;
39750
40261
  };
39751
40262
  header?: never;
39752
40263
  path: {
@@ -44079,7 +44590,7 @@ export interface operations {
44079
44590
  query?: {
44080
44591
  use_case_id?: string | null;
44081
44592
  setup_id?: string | null;
44082
- status?: string[] | null;
44593
+ status?: ("pending" | "skipped" | "failed" | "delivered" | "not_delivered")[] | null;
44083
44594
  recipient_phone_number?: string | null;
44084
44595
  };
44085
44596
  header?: never;
@@ -44695,6 +45206,10 @@ export interface operations {
44695
45206
  query?: {
44696
45207
  /** @description Filter by entity type. */
44697
45208
  entity_type?: string | null;
45209
+ /** @description Max keys to return */
45210
+ limit?: number;
45211
+ /** @description Page offset */
45212
+ offset?: number;
44698
45213
  };
44699
45214
  header?: never;
44700
45215
  path: {
@@ -44936,6 +45451,10 @@ export interface operations {
44936
45451
  entity_type?: string | null;
44937
45452
  /** @description Max confidence threshold */
44938
45453
  confidence_max?: number;
45454
+ /** @description Max edges to return */
45455
+ limit?: number;
45456
+ /** @description Page offset */
45457
+ offset?: number;
44939
45458
  };
44940
45459
  header?: never;
44941
45460
  path: {
@@ -45029,7 +45548,12 @@ export interface operations {
45029
45548
  };
45030
45549
  "list-entity-enrichment": {
45031
45550
  parameters: {
45032
- query?: never;
45551
+ query?: {
45552
+ /** @description Max enrichment rows */
45553
+ limit?: number;
45554
+ /** @description Page offset */
45555
+ offset?: number;
45556
+ };
45033
45557
  header?: never;
45034
45558
  path: {
45035
45559
  workspace_id: string;