@amigo-ai/platform-sdk 0.24.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 (38) hide show
  1. package/api.md +6 -3
  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 +711 -13
  7. package/dist/index.cjs.map +4 -4
  8. package/dist/index.js +18 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.mjs +711 -13
  11. package/dist/index.mjs.map +4 -4
  12. package/dist/resources/events.js +139 -3
  13. package/dist/resources/events.js.map +1 -1
  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/types/core/errors.d.ts +93 -1
  19. package/dist/types/core/errors.d.ts.map +1 -1
  20. package/dist/types/core/reconnecting-websocket.d.ts +156 -0
  21. package/dist/types/core/reconnecting-websocket.d.ts.map +1 -0
  22. package/dist/types/generated/api.d.ts +627 -62
  23. package/dist/types/generated/api.d.ts.map +1 -1
  24. package/dist/types/index.d.cts +42 -2
  25. package/dist/types/index.d.cts.map +1 -1
  26. package/dist/types/index.d.ts +42 -2
  27. package/dist/types/index.d.ts.map +1 -1
  28. package/dist/types/resources/events.d.ts +33 -0
  29. package/dist/types/resources/events.d.ts.map +1 -1
  30. package/dist/types/resources/functions.d.ts.map +1 -1
  31. package/dist/types/resources/integrations.d.ts +33 -0
  32. package/dist/types/resources/integrations.d.ts.map +1 -1
  33. package/dist/types/resources/metrics.d.ts.map +1 -1
  34. package/dist/types/resources/observers.d.ts +148 -0
  35. package/dist/types/resources/observers.d.ts.map +1 -0
  36. package/dist/types/resources/operators.d.ts.map +1 -1
  37. package/dist/types/resources/settings.d.ts.map +1 -1
  38. package/package.json +1 -1
@@ -3508,6 +3508,26 @@ export interface paths {
3508
3508
  patch?: never;
3509
3509
  trace?: never;
3510
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
+ };
3511
3531
  "/v1/{workspace_id}/m42/anomalies/ranked": {
3512
3532
  parameters: {
3513
3533
  query?: never;
@@ -8813,7 +8833,10 @@ export interface components {
8813
8833
  };
8814
8834
  /** AuditExportRequest */
8815
8835
  AuditExportRequest: {
8816
- /** Action */
8836
+ /**
8837
+ * Action
8838
+ * @description Filter by action type.
8839
+ */
8817
8840
  action?: string | null;
8818
8841
  /**
8819
8842
  * Date From
@@ -8830,7 +8853,10 @@ export interface components {
8830
8853
  * @default false
8831
8854
  */
8832
8855
  phi_only?: boolean;
8833
- /** Service */
8856
+ /**
8857
+ * Service
8858
+ * @description Filter by service name.
8859
+ */
8834
8860
  service?: string | null;
8835
8861
  };
8836
8862
  /** AuditExportResponse */
@@ -9054,6 +9080,32 @@ export interface components {
9054
9080
  */
9055
9081
  workspace_id: string;
9056
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
+ };
9057
9109
  /** AvailableNumber */
9058
9110
  AvailableNumber: {
9059
9111
  /**
@@ -9387,6 +9439,22 @@ export interface components {
9387
9439
  */
9388
9440
  slot_id: string;
9389
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
+ };
9390
9458
  /** BooleanMetricValueResponse */
9391
9459
  BooleanMetricValueResponse: {
9392
9460
  /** Avg Confidence */
@@ -10486,7 +10554,10 @@ export interface components {
10486
10554
  };
10487
10555
  /** ChatRequest */
10488
10556
  ChatRequest: {
10489
- /** Message */
10557
+ /**
10558
+ * Message
10559
+ * @description Insights chat user message.
10560
+ */
10490
10561
  message: string;
10491
10562
  };
10492
10563
  /** ClaimResponse */
@@ -11631,8 +11702,11 @@ export interface components {
11631
11702
  CreateApiKeyRequest: {
11632
11703
  /** Duration Days */
11633
11704
  duration_days: number;
11634
- name?: components["schemas"]["StrippedNonemptyString"] | null;
11635
- /** Permissions */
11705
+ name?: components["schemas"]["NameString"] | null;
11706
+ /**
11707
+ * Permissions
11708
+ * @description Permission names. Max 128 entries; each entry up to 128 chars.
11709
+ */
11636
11710
  permissions?: string[];
11637
11711
  /**
11638
11712
  * Role
@@ -11810,7 +11884,10 @@ export interface components {
11810
11884
  * @default true
11811
11885
  */
11812
11886
  enabled?: boolean;
11813
- /** Endpoints */
11887
+ /**
11888
+ * Endpoints
11889
+ * @default []
11890
+ */
11814
11891
  endpoints?: components["schemas"]["EndpointConfig-Input"][];
11815
11892
  /** Mcp Args */
11816
11893
  mcp_args?: string[] | null;
@@ -16459,6 +16536,15 @@ export interface components {
16459
16536
  /** Value */
16460
16537
  value: string;
16461
16538
  };
16539
+ /** HealFieldResponse */
16540
+ HealFieldResponse: {
16541
+ /** Confidence */
16542
+ confidence: number;
16543
+ /** Corrected Value */
16544
+ corrected_value: string;
16545
+ /** Explanation */
16546
+ explanation?: string | null;
16547
+ };
16462
16548
  /** HealthSyncResponse */
16463
16549
  HealthSyncResponse: {
16464
16550
  /** Connector Heartbeats */
@@ -16710,6 +16796,16 @@ export interface components {
16710
16796
  * @description Integration ID
16711
16797
  */
16712
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;
16713
16809
  /**
16714
16810
  * Mcp Args
16715
16811
  * @description MCP stdio command arguments
@@ -17326,6 +17422,59 @@ export interface components {
17326
17422
  /** Success */
17327
17423
  success: boolean;
17328
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
+ };
17329
17478
  /** LoopLatencyPointItem */
17330
17479
  LoopLatencyPointItem: {
17331
17480
  /**
@@ -18236,6 +18385,18 @@ export interface components {
18236
18385
  */
18237
18386
  target_fields?: string[] | null;
18238
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
+ };
18239
18400
  /**
18240
18401
  * OperatorAction
18241
18402
  * @description Today's behavior — write escalation.requested + publish SSE, wait for a
@@ -19495,6 +19656,47 @@ export interface components {
19495
19656
  [key: string]: unknown;
19496
19657
  };
19497
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
+ };
19498
19700
  /** PatientTimelineResponse */
19499
19701
  PatientTimelineResponse: {
19500
19702
  /**
@@ -21127,6 +21329,18 @@ export interface components {
21127
21329
  */
21128
21330
  workspace_id: string;
21129
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
+ };
21130
21344
  /** Scenario */
21131
21345
  Scenario: {
21132
21346
  /** Description */
@@ -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,9 +23824,57 @@ 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
- /** Params */
23874
+ /**
23875
+ * Params
23876
+ * @default {}
23877
+ */
23563
23878
  params?: {
23564
23879
  [key: string]: unknown;
23565
23880
  };
@@ -23611,16 +23926,19 @@ export interface components {
23611
23926
  };
23612
23927
  /** TestSkillRequest */
23613
23928
  TestSkillRequest: {
23614
- /** Input */
23929
+ /**
23930
+ * Input
23931
+ * @description Input parameters to pass to the skill executor.
23932
+ */
23615
23933
  input: {
23616
23934
  [key: string]: unknown;
23617
23935
  };
23618
23936
  /**
23619
23937
  * Static Tool Mocks
23620
- * @default {}
23938
+ * @description Map of static tool name (max 128 chars) to mocked output string (max 16 KB). Up to 64 entries.
23621
23939
  */
23622
23940
  static_tool_mocks?: {
23623
- [key: string]: string;
23941
+ [key: string]: components["schemas"]["_ToolMockValue"];
23624
23942
  };
23625
23943
  };
23626
23944
  /** TestSkillResponse */
@@ -25375,6 +25693,55 @@ export interface components {
25375
25693
  /** Region */
25376
25694
  region?: ("us-east-1" | "ap-southeast-2" | "eu-central-1" | "ca-central-1") | null;
25377
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
+ };
25378
25745
  /** UpsertVersionSetRequest */
25379
25746
  UpsertVersionSetRequest: {
25380
25747
  version_set: components["schemas"]["VersionSet"];
@@ -26531,6 +26898,8 @@ export interface components {
26531
26898
  /** Success */
26532
26899
  success: boolean;
26533
26900
  };
26901
+ _ToolMockKey: string;
26902
+ _ToolMockValue: string;
26534
26903
  /**
26535
26904
  * IntegrationToolRef
26536
26905
  * @description Reference to an integration endpoint by integration + endpoint name.
@@ -26978,7 +27347,7 @@ export interface operations {
26978
27347
  [name: string]: unknown;
26979
27348
  };
26980
27349
  content: {
26981
- "application/json": unknown;
27350
+ "application/json": components["schemas"]["AvailabilityResponse"];
26982
27351
  };
26983
27352
  };
26984
27353
  /** @description Invalid token */
@@ -26986,21 +27355,27 @@ export interface operations {
26986
27355
  headers: {
26987
27356
  [name: string]: unknown;
26988
27357
  };
26989
- content?: never;
27358
+ content: {
27359
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27360
+ };
26990
27361
  };
26991
27362
  /** @description Token expired */
26992
27363
  410: {
26993
27364
  headers: {
26994
27365
  [name: string]: unknown;
26995
27366
  };
26996
- content?: never;
27367
+ content: {
27368
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27369
+ };
26997
27370
  };
26998
27371
  /** @description Invalid date format */
26999
27372
  422: {
27000
27373
  headers: {
27001
27374
  [name: string]: unknown;
27002
27375
  };
27003
- content?: never;
27376
+ content: {
27377
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27378
+ };
27004
27379
  };
27005
27380
  /** @description Rate limited */
27006
27381
  429: {
@@ -27032,7 +27407,7 @@ export interface operations {
27032
27407
  [name: string]: unknown;
27033
27408
  };
27034
27409
  content: {
27035
- "application/json": unknown;
27410
+ "application/json": components["schemas"]["BookingResponse"];
27036
27411
  };
27037
27412
  };
27038
27413
  /** @description Invalid token */
@@ -27040,22 +27415,44 @@ export interface operations {
27040
27415
  headers: {
27041
27416
  [name: string]: unknown;
27042
27417
  };
27043
- 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
+ };
27044
27439
  };
27045
27440
  /** @description Token expired */
27046
27441
  410: {
27047
27442
  headers: {
27048
27443
  [name: string]: unknown;
27049
27444
  };
27050
- content?: never;
27445
+ content: {
27446
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27447
+ };
27051
27448
  };
27052
- /** @description Validation Error */
27449
+ /** @description Validation error */
27053
27450
  422: {
27054
27451
  headers: {
27055
27452
  [name: string]: unknown;
27056
27453
  };
27057
27454
  content: {
27058
- "application/json": components["schemas"]["HTTPValidationError"];
27455
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27059
27456
  };
27060
27457
  };
27061
27458
  /** @description Rate limited */
@@ -27089,7 +27486,7 @@ export interface operations {
27089
27486
  [name: string]: unknown;
27090
27487
  };
27091
27488
  content: {
27092
- "application/json": unknown;
27489
+ "application/json": components["schemas"]["SaveFieldResponse"];
27093
27490
  };
27094
27491
  };
27095
27492
  /** @description Invalid token */
@@ -27097,14 +27494,18 @@ export interface operations {
27097
27494
  headers: {
27098
27495
  [name: string]: unknown;
27099
27496
  };
27100
- content?: never;
27497
+ content: {
27498
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27499
+ };
27101
27500
  };
27102
27501
  /** @description Payload too large */
27103
27502
  413: {
27104
27503
  headers: {
27105
27504
  [name: string]: unknown;
27106
27505
  };
27107
- content?: never;
27506
+ content: {
27507
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27508
+ };
27108
27509
  };
27109
27510
  /** @description Validation Error */
27110
27511
  422: {
@@ -27127,7 +27528,9 @@ export interface operations {
27127
27528
  headers: {
27128
27529
  [name: string]: unknown;
27129
27530
  };
27130
- content?: never;
27531
+ content: {
27532
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27533
+ };
27131
27534
  };
27132
27535
  };
27133
27536
  };
@@ -27152,7 +27555,7 @@ export interface operations {
27152
27555
  [name: string]: unknown;
27153
27556
  };
27154
27557
  content: {
27155
- "application/json": unknown;
27558
+ "application/json": components["schemas"]["HealFieldResponse"];
27156
27559
  };
27157
27560
  };
27158
27561
  /** @description Invalid token */
@@ -27160,7 +27563,9 @@ export interface operations {
27160
27563
  headers: {
27161
27564
  [name: string]: unknown;
27162
27565
  };
27163
- content?: never;
27566
+ content: {
27567
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27568
+ };
27164
27569
  };
27165
27570
  /** @description Validation Error */
27166
27571
  422: {
@@ -27200,7 +27605,7 @@ export interface operations {
27200
27605
  [name: string]: unknown;
27201
27606
  };
27202
27607
  content: {
27203
- "application/json": unknown;
27608
+ "application/json": components["schemas"]["LookupResponse"];
27204
27609
  };
27205
27610
  };
27206
27611
  /** @description Invalid token */
@@ -27208,14 +27613,18 @@ export interface operations {
27208
27613
  headers: {
27209
27614
  [name: string]: unknown;
27210
27615
  };
27211
- content?: never;
27616
+ content: {
27617
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27618
+ };
27212
27619
  };
27213
27620
  /** @description Invalid lookup type */
27214
27621
  422: {
27215
27622
  headers: {
27216
27623
  [name: string]: unknown;
27217
27624
  };
27218
- content?: never;
27625
+ content: {
27626
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27627
+ };
27219
27628
  };
27220
27629
  /** @description Rate limited */
27221
27630
  429: {
@@ -27247,7 +27656,7 @@ export interface operations {
27247
27656
  [name: string]: unknown;
27248
27657
  };
27249
27658
  content: {
27250
- "application/json": unknown;
27659
+ "application/json": components["schemas"]["OcrResponse"];
27251
27660
  };
27252
27661
  };
27253
27662
  /** @description Invalid token */
@@ -27255,7 +27664,9 @@ export interface operations {
27255
27664
  headers: {
27256
27665
  [name: string]: unknown;
27257
27666
  };
27258
- content?: never;
27667
+ content: {
27668
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27669
+ };
27259
27670
  };
27260
27671
  /** @description Validation Error */
27261
27672
  422: {
@@ -27292,7 +27703,7 @@ export interface operations {
27292
27703
  [name: string]: unknown;
27293
27704
  };
27294
27705
  content: {
27295
- "application/json": unknown;
27706
+ "application/json": components["schemas"]["SurfaceSpecResponse"];
27296
27707
  };
27297
27708
  };
27298
27709
  /** @description Invalid token */
@@ -27300,28 +27711,36 @@ export interface operations {
27300
27711
  headers: {
27301
27712
  [name: string]: unknown;
27302
27713
  };
27303
- content?: never;
27714
+ content: {
27715
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27716
+ };
27304
27717
  };
27305
27718
  /** @description Surface not found */
27306
27719
  404: {
27307
27720
  headers: {
27308
27721
  [name: string]: unknown;
27309
27722
  };
27310
- content?: never;
27723
+ content: {
27724
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27725
+ };
27311
27726
  };
27312
27727
  /** @description Already submitted */
27313
27728
  409: {
27314
27729
  headers: {
27315
27730
  [name: string]: unknown;
27316
27731
  };
27317
- content?: never;
27732
+ content: {
27733
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27734
+ };
27318
27735
  };
27319
27736
  /** @description Token expired or surface archived */
27320
27737
  410: {
27321
27738
  headers: {
27322
27739
  [name: string]: unknown;
27323
27740
  };
27324
- content?: never;
27741
+ content: {
27742
+ "application/json": components["schemas"]["SurfaceErrorResponse"];
27743
+ };
27325
27744
  };
27326
27745
  /** @description Validation Error */
27327
27746
  422: {
@@ -27414,21 +27833,14 @@ export interface operations {
27414
27833
  };
27415
27834
  requestBody?: never;
27416
27835
  responses: {
27417
- /** @description Successful Response */
27418
- 200: {
27419
- headers: {
27420
- [name: string]: unknown;
27421
- };
27422
- content: {
27423
- "application/json": unknown;
27424
- };
27425
- };
27426
27836
  /** @description File uploaded successfully */
27427
27837
  201: {
27428
27838
  headers: {
27429
27839
  [name: string]: unknown;
27430
27840
  };
27431
- content?: never;
27841
+ content: {
27842
+ "application/json": components["schemas"]["UploadFileResponse"];
27843
+ };
27432
27844
  };
27433
27845
  /** @description Link not found */
27434
27846
  404: {
@@ -27491,7 +27903,7 @@ export interface operations {
27491
27903
  [name: string]: unknown;
27492
27904
  };
27493
27905
  content: {
27494
- "application/json": unknown;
27906
+ "application/json": components["schemas"]["LinkInfoResponse"];
27495
27907
  };
27496
27908
  };
27497
27909
  /** @description Invalid token */
@@ -27499,21 +27911,27 @@ export interface operations {
27499
27911
  headers: {
27500
27912
  [name: string]: unknown;
27501
27913
  };
27502
- content?: never;
27914
+ content: {
27915
+ "application/json": components["schemas"]["LinkErrorResponse"];
27916
+ };
27503
27917
  };
27504
27918
  /** @description Link not found */
27505
27919
  404: {
27506
27920
  headers: {
27507
27921
  [name: string]: unknown;
27508
27922
  };
27509
- content?: never;
27923
+ content: {
27924
+ "application/json": components["schemas"]["LinkErrorResponse"];
27925
+ };
27510
27926
  };
27511
- /** @description Link expired */
27927
+ /** @description Link expired or exhausted */
27512
27928
  410: {
27513
27929
  headers: {
27514
27930
  [name: string]: unknown;
27515
27931
  };
27516
- content?: never;
27932
+ content: {
27933
+ "application/json": components["schemas"]["LinkErrorResponse"];
27934
+ };
27517
27935
  };
27518
27936
  /** @description Validation Error */
27519
27937
  422: {
@@ -27524,7 +27942,7 @@ export interface operations {
27524
27942
  "application/json": components["schemas"]["HTTPValidationError"];
27525
27943
  };
27526
27944
  };
27527
- /** @description Upload limit reached */
27945
+ /** @description Rate limited */
27528
27946
  429: {
27529
27947
  headers: {
27530
27948
  [name: string]: unknown;
@@ -29089,7 +29507,7 @@ export interface operations {
29089
29507
  interval?: "1h" | "1d" | "1w";
29090
29508
  service_id?: string | null;
29091
29509
  /** @description Filter by call direction: inbound or outbound */
29092
- direction?: string | null;
29510
+ direction?: ("inbound" | "outbound") | null;
29093
29511
  };
29094
29512
  header?: never;
29095
29513
  path: {
@@ -30093,7 +30511,10 @@ export interface operations {
30093
30511
  };
30094
30512
  "list-audit-exports": {
30095
30513
  parameters: {
30096
- query?: never;
30514
+ query?: {
30515
+ /** @description Max exports to return */
30516
+ limit?: number;
30517
+ };
30097
30518
  header?: never;
30098
30519
  path: {
30099
30520
  workspace_id: string;
@@ -30111,6 +30532,15 @@ export interface operations {
30111
30532
  "application/json": components["schemas"]["AuditExportListResponse"];
30112
30533
  };
30113
30534
  };
30535
+ /** @description Validation Error */
30536
+ 422: {
30537
+ headers: {
30538
+ [name: string]: unknown;
30539
+ };
30540
+ content: {
30541
+ "application/json": components["schemas"]["HTTPValidationError"];
30542
+ };
30543
+ };
30114
30544
  /** @description Rate limited */
30115
30545
  429: {
30116
30546
  headers: {
@@ -34550,6 +34980,8 @@ export interface operations {
34550
34980
  parameters: {
34551
34981
  query?: {
34552
34982
  include_expired?: boolean;
34983
+ limit?: number;
34984
+ offset?: number;
34553
34985
  };
34554
34986
  header?: never;
34555
34987
  path: {
@@ -34646,7 +35078,10 @@ export interface operations {
34646
35078
  };
34647
35079
  "list-intake-link-uploads": {
34648
35080
  parameters: {
34649
- query?: never;
35081
+ query?: {
35082
+ limit?: number;
35083
+ offset?: number;
35084
+ };
34650
35085
  header?: never;
34651
35086
  path: {
34652
35087
  workspace_id: string;
@@ -35077,10 +35512,65 @@ export interface operations {
35077
35512
  };
35078
35513
  };
35079
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
+ };
35080
35568
  list_anomalies_ranked_v1__workspace_id__m42_anomalies_ranked_get: {
35081
35569
  parameters: {
35082
35570
  query?: {
35083
35571
  indicator?: string | null;
35572
+ limit?: number;
35573
+ offset?: number;
35084
35574
  };
35085
35575
  header?: never;
35086
35576
  path: {
@@ -35115,6 +35605,7 @@ export interface operations {
35115
35605
  query?: {
35116
35606
  severity?: ("high" | "medium" | "low") | null;
35117
35607
  limit?: number;
35608
+ offset?: number;
35118
35609
  };
35119
35610
  header?: never;
35120
35611
  path: {
@@ -35236,6 +35727,8 @@ export interface operations {
35236
35727
  parameters: {
35237
35728
  query?: {
35238
35729
  focus_area?: string | null;
35730
+ limit?: number;
35731
+ offset?: number;
35239
35732
  };
35240
35733
  header?: never;
35241
35734
  path: {
@@ -35267,7 +35760,10 @@ export interface operations {
35267
35760
  };
35268
35761
  list_cluster_summary_v1__workspace_id__m42_clusters_summary_get: {
35269
35762
  parameters: {
35270
- query?: never;
35763
+ query?: {
35764
+ limit?: number;
35765
+ offset?: number;
35766
+ };
35271
35767
  header?: never;
35272
35768
  path: {
35273
35769
  workspace_id: string;
@@ -35285,11 +35781,23 @@ export interface operations {
35285
35781
  "application/json": components["schemas"]["ClusterSummaryResponse"];
35286
35782
  };
35287
35783
  };
35784
+ /** @description Validation Error */
35785
+ 422: {
35786
+ headers: {
35787
+ [name: string]: unknown;
35788
+ };
35789
+ content: {
35790
+ "application/json": components["schemas"]["HTTPValidationError"];
35791
+ };
35792
+ };
35288
35793
  };
35289
35794
  };
35290
35795
  list_district_metrics_v1__workspace_id__m42_district_metrics_get: {
35291
35796
  parameters: {
35292
- query?: never;
35797
+ query?: {
35798
+ limit?: number;
35799
+ offset?: number;
35800
+ };
35293
35801
  header?: never;
35294
35802
  path: {
35295
35803
  workspace_id: string;
@@ -35307,6 +35815,15 @@ export interface operations {
35307
35815
  "application/json": components["schemas"]["DistrictMetricsResponse"];
35308
35816
  };
35309
35817
  };
35818
+ /** @description Validation Error */
35819
+ 422: {
35820
+ headers: {
35821
+ [name: string]: unknown;
35822
+ };
35823
+ content: {
35824
+ "application/json": components["schemas"]["HTTPValidationError"];
35825
+ };
35826
+ };
35310
35827
  };
35311
35828
  };
35312
35829
  list_features_v1__workspace_id__m42_features_get: {
@@ -35370,6 +35887,8 @@ export interface operations {
35370
35887
  query?: {
35371
35888
  run_id?: string | null;
35372
35889
  scenario?: ("baseline" | "with_policy" | "observational") | null;
35890
+ limit?: number;
35891
+ offset?: number;
35373
35892
  };
35374
35893
  header?: never;
35375
35894
  path: {
@@ -35436,7 +35955,10 @@ export interface operations {
35436
35955
  };
35437
35956
  list_model_registry_v1__workspace_id__m42_model_registry_get: {
35438
35957
  parameters: {
35439
- query?: never;
35958
+ query?: {
35959
+ limit?: number;
35960
+ offset?: number;
35961
+ };
35440
35962
  header?: never;
35441
35963
  path: {
35442
35964
  workspace_id: string;
@@ -35454,6 +35976,15 @@ export interface operations {
35454
35976
  "application/json": components["schemas"]["ModelRegistryResponse"];
35455
35977
  };
35456
35978
  };
35979
+ /** @description Validation Error */
35980
+ 422: {
35981
+ headers: {
35982
+ [name: string]: unknown;
35983
+ };
35984
+ content: {
35985
+ "application/json": components["schemas"]["HTTPValidationError"];
35986
+ };
35987
+ };
35457
35988
  };
35458
35989
  };
35459
35990
  get_notes_rollup_v1__workspace_id__m42_notes_rollup_get: {
@@ -35528,7 +36059,10 @@ export interface operations {
35528
36059
  };
35529
36060
  list_patient_labs_v1__workspace_id__m42_patients__patient_id__labs_get: {
35530
36061
  parameters: {
35531
- query?: never;
36062
+ query?: {
36063
+ limit?: number;
36064
+ offset?: number;
36065
+ };
35532
36066
  header?: never;
35533
36067
  path: {
35534
36068
  workspace_id: string;
@@ -35592,7 +36126,10 @@ export interface operations {
35592
36126
  };
35593
36127
  list_positive_signals_v1__workspace_id__m42_positive_signals_get: {
35594
36128
  parameters: {
35595
- query?: never;
36129
+ query?: {
36130
+ limit?: number;
36131
+ offset?: number;
36132
+ };
35596
36133
  header?: never;
35597
36134
  path: {
35598
36135
  workspace_id: string;
@@ -35610,12 +36147,23 @@ export interface operations {
35610
36147
  "application/json": components["schemas"]["PositiveSignalResponse"];
35611
36148
  };
35612
36149
  };
36150
+ /** @description Validation Error */
36151
+ 422: {
36152
+ headers: {
36153
+ [name: string]: unknown;
36154
+ };
36155
+ content: {
36156
+ "application/json": components["schemas"]["HTTPValidationError"];
36157
+ };
36158
+ };
35613
36159
  };
35614
36160
  };
35615
36161
  list_stratified_fits_v1__workspace_id__m42_stratified_fits_get: {
35616
36162
  parameters: {
35617
36163
  query?: {
35618
36164
  outcome_key?: string | null;
36165
+ limit?: number;
36166
+ offset?: number;
35619
36167
  };
35620
36168
  header?: never;
35621
36169
  path: {
@@ -35802,6 +36350,8 @@ export interface operations {
35802
36350
  service_id?: string | null;
35803
36351
  run_id?: string | null;
35804
36352
  session_id?: string | null;
36353
+ limit?: number;
36354
+ offset?: number;
35805
36355
  };
35806
36356
  header?: never;
35807
36357
  path: {
@@ -39706,6 +40256,8 @@ export interface operations {
39706
40256
  query?: {
39707
40257
  /** @description Max rows to return (default 20, max 100) */
39708
40258
  limit?: number;
40259
+ /** @description Offset for pagination (default 0) */
40260
+ offset?: number;
39709
40261
  };
39710
40262
  header?: never;
39711
40263
  path: {
@@ -44038,7 +44590,7 @@ export interface operations {
44038
44590
  query?: {
44039
44591
  use_case_id?: string | null;
44040
44592
  setup_id?: string | null;
44041
- status?: string[] | null;
44593
+ status?: ("pending" | "skipped" | "failed" | "delivered" | "not_delivered")[] | null;
44042
44594
  recipient_phone_number?: string | null;
44043
44595
  };
44044
44596
  header?: never;
@@ -44654,6 +45206,10 @@ export interface operations {
44654
45206
  query?: {
44655
45207
  /** @description Filter by entity type. */
44656
45208
  entity_type?: string | null;
45209
+ /** @description Max keys to return */
45210
+ limit?: number;
45211
+ /** @description Page offset */
45212
+ offset?: number;
44657
45213
  };
44658
45214
  header?: never;
44659
45215
  path: {
@@ -44895,6 +45451,10 @@ export interface operations {
44895
45451
  entity_type?: string | null;
44896
45452
  /** @description Max confidence threshold */
44897
45453
  confidence_max?: number;
45454
+ /** @description Max edges to return */
45455
+ limit?: number;
45456
+ /** @description Page offset */
45457
+ offset?: number;
44898
45458
  };
44899
45459
  header?: never;
44900
45460
  path: {
@@ -44988,7 +45548,12 @@ export interface operations {
44988
45548
  };
44989
45549
  "list-entity-enrichment": {
44990
45550
  parameters: {
44991
- query?: never;
45551
+ query?: {
45552
+ /** @description Max enrichment rows */
45553
+ limit?: number;
45554
+ /** @description Page offset */
45555
+ offset?: number;
45556
+ };
44992
45557
  header?: never;
44993
45558
  path: {
44994
45559
  workspace_id: string;