@amigo-ai/platform-sdk 0.69.0 → 0.70.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.
@@ -1547,7 +1547,7 @@ export interface paths {
1547
1547
  put?: never;
1548
1548
  /**
1549
1549
  * Create an outbound call
1550
- * @description Initiate an outbound voice call from a workspace phone number. Provide either phone_from (direct caller ID) or use_case_id (channel-manager selects the optimal number). Supports idempotency via the idempotency_key field.
1550
+ * @description Initiate an outbound voice call from a workspace phone number. channel-manager selects the optimal number for the given use_case_id. Supports idempotency via the idempotency_key field.
1551
1551
  */
1552
1552
  post: operations["create-outbound-call"];
1553
1553
  delete?: never;
@@ -2498,6 +2498,78 @@ export interface paths {
2498
2498
  patch?: never;
2499
2499
  trace?: never;
2500
2500
  };
2501
+ "/v1/{workspace_id}/external-role-assignments": {
2502
+ parameters: {
2503
+ query?: never;
2504
+ header?: never;
2505
+ path?: never;
2506
+ cookie?: never;
2507
+ };
2508
+ /** List External Role Assignments */
2509
+ get: operations["list-external-role-assignments"];
2510
+ /** Upsert External Role Assignment */
2511
+ put: operations["upsert-external-role-assignment"];
2512
+ post?: never;
2513
+ delete?: never;
2514
+ options?: never;
2515
+ head?: never;
2516
+ patch?: never;
2517
+ trace?: never;
2518
+ };
2519
+ "/v1/{workspace_id}/external-role-assignments/{assignment_id}": {
2520
+ parameters: {
2521
+ query?: never;
2522
+ header?: never;
2523
+ path?: never;
2524
+ cookie?: never;
2525
+ };
2526
+ /** Get External Role Assignment */
2527
+ get: operations["get-external-role-assignment"];
2528
+ put?: never;
2529
+ post?: never;
2530
+ /** Delete External Role Assignment */
2531
+ delete: operations["delete-external-role-assignment"];
2532
+ options?: never;
2533
+ head?: never;
2534
+ patch?: never;
2535
+ trace?: never;
2536
+ };
2537
+ "/v1/{workspace_id}/external-roles": {
2538
+ parameters: {
2539
+ query?: never;
2540
+ header?: never;
2541
+ path?: never;
2542
+ cookie?: never;
2543
+ };
2544
+ /** List External Roles */
2545
+ get: operations["list-external-roles"];
2546
+ put?: never;
2547
+ /** Create External Role */
2548
+ post: operations["create-external-role"];
2549
+ delete?: never;
2550
+ options?: never;
2551
+ head?: never;
2552
+ patch?: never;
2553
+ trace?: never;
2554
+ };
2555
+ "/v1/{workspace_id}/external-roles/{role_id}": {
2556
+ parameters: {
2557
+ query?: never;
2558
+ header?: never;
2559
+ path?: never;
2560
+ cookie?: never;
2561
+ };
2562
+ /** Get External Role */
2563
+ get: operations["get-external-role"];
2564
+ put?: never;
2565
+ post?: never;
2566
+ /** Delete External Role */
2567
+ delete: operations["delete-external-role"];
2568
+ options?: never;
2569
+ head?: never;
2570
+ patch?: never;
2571
+ trace?: never;
2572
+ };
2501
2573
  "/v1/{workspace_id}/fhir/import": {
2502
2574
  parameters: {
2503
2575
  query?: never;
@@ -4195,7 +4267,7 @@ export interface paths {
4195
4267
  };
4196
4268
  /**
4197
4269
  * Entity resolution metrics
4198
- * @description Same-as merge counts and entity resolution loop status.
4270
+ * @description Historical same_as merge-edge counts (written by the pre-SDP resolver; merge detection now lives in the Databricks pipeline — new edges are not produced) and entity resolution loop status.
4199
4271
  */
4200
4272
  get: operations["get-entity-resolution"];
4201
4273
  put?: never;
@@ -4845,6 +4917,45 @@ export interface paths {
4845
4917
  patch?: never;
4846
4918
  trace?: never;
4847
4919
  };
4920
+ "/v1/{workspace_id}/role-grants": {
4921
+ parameters: {
4922
+ query?: never;
4923
+ header?: never;
4924
+ path?: never;
4925
+ cookie?: never;
4926
+ };
4927
+ /** List Role Grants */
4928
+ get: operations["list-role-grants"];
4929
+ put?: never;
4930
+ /** Create Role Grant */
4931
+ post: operations["create-role-grant"];
4932
+ delete?: never;
4933
+ options?: never;
4934
+ head?: never;
4935
+ patch?: never;
4936
+ trace?: never;
4937
+ };
4938
+ "/v1/{workspace_id}/role-grants/{grant_id}": {
4939
+ parameters: {
4940
+ query?: never;
4941
+ header?: never;
4942
+ path?: never;
4943
+ cookie?: never;
4944
+ };
4945
+ /** Get Role Grant */
4946
+ get: operations["get-role-grant"];
4947
+ put?: never;
4948
+ post?: never;
4949
+ /**
4950
+ * Delete Role Grant
4951
+ * @description Supersede an active grant (immutable history) — never a physical delete.
4952
+ */
4953
+ delete: operations["supersede-role-grant"];
4954
+ options?: never;
4955
+ head?: never;
4956
+ patch?: never;
4957
+ trace?: never;
4958
+ };
4848
4959
  "/v1/{workspace_id}/scheduling-rule-sets": {
4849
4960
  parameters: {
4850
4961
  query?: never;
@@ -6865,7 +6976,7 @@ export interface paths {
6865
6976
  };
6866
6977
  /**
6867
6978
  * Get Entity Duplicates
6868
- * @description Suspected duplicate entities — same_as edges sorted by confidence.
6979
+ * @description Suspected duplicate entities — historical same_as merge edges sorted by confidence (written by the pre-SDP resolver; merge detection now lives in the Databricks pipeline — new edges are not produced).
6869
6980
  */
6870
6981
  get: operations["get-entity-duplicates"];
6871
6982
  put?: never;
@@ -6985,7 +7096,7 @@ export interface paths {
6985
7096
  };
6986
7097
  /**
6987
7098
  * Get Entity Graph
6988
- * @description Entity relationship graph — one level of edges with neighbor metadata.
7099
+ * @description Entity relationship graph — one level of edges with neighbor metadata. same_as edges are historical merge edges (written by the pre-SDP resolver; merge detection now lives in the Databricks pipeline — new edges are not produced).
6989
7100
  */
6990
7101
  get: operations["get-entity-graph"];
6991
7102
  put?: never;
@@ -7025,7 +7136,7 @@ export interface paths {
7025
7136
  };
7026
7137
  /**
7027
7138
  * Get merged entities (same_as links)
7028
- * @description Returns entities linked via same_as edges — cross-source merges where different data sources refer to the same real-world entity.
7139
+ * @description Returns entities linked via same_as edges — historical merge edges where different data sources refer to the same real-world entity (written by the pre-SDP resolver; merge detection now lives in the Databricks pipeline — new edges are not produced).
7029
7140
  */
7030
7141
  get: operations["merged-entities"];
7031
7142
  put?: never;
@@ -7045,7 +7156,7 @@ export interface paths {
7045
7156
  };
7046
7157
  /**
7047
7158
  * Get Entity Provenance
7048
- * @description Data lineage for an entity — sources, confidence history, merge history.
7159
+ * @description Data lineage for an entity — sources, confidence history, merge history (historical same_as edges from the pre-SDP resolver — new edges are not produced).
7049
7160
  */
7050
7161
  get: operations["get-entity-provenance"];
7051
7162
  put?: never;
@@ -10518,9 +10629,8 @@ export interface components {
10518
10629
  * CreateOutboundCallRequest
10519
10630
  * @description Request body for creating an outbound call.
10520
10631
  *
10521
- * Exactly one of ``phone_from`` or ``use_case_id`` is required.
10522
- * When ``use_case_id`` is provided, channel-manager selects the optimal
10523
- * outbound phone number for that use case.
10632
+ * ``use_case_id`` is required: channel-manager selects the optimal outbound
10633
+ * phone number bound to that use case (the sole caller-ID resolution path).
10524
10634
  */
10525
10635
  CreateOutboundCallRequest: {
10526
10636
  /**
@@ -10554,8 +10664,6 @@ export interface components {
10554
10664
  * @description Patient entity UUID in the world model. Must exist in workspace as a person entity. Provide either patient_entity_id or patient_canonical_id.
10555
10665
  */
10556
10666
  patient_entity_id?: string | null;
10557
- /** @description Caller ID phone number in E.164 format. Must belong to this workspace. */
10558
- phone_from?: components["schemas"]["PhoneE164"] | null;
10559
10667
  /** @description Destination phone number in E.164 format. */
10560
10668
  phone_to: components["schemas"]["PhoneE164"];
10561
10669
  /** @description Why the call is being made (e.g. appointment_reminder, follow_up, lab_results). */
@@ -10577,9 +10685,10 @@ export interface components {
10577
10685
  tags?: string[] | null;
10578
10686
  /**
10579
10687
  * Use Case Id
10580
- * @description Channel-manager use case ID. When provided, channel-manager selects the optimal outbound phone number for this use case.
10688
+ * Format: uuid
10689
+ * @description Channel-manager use case ID. channel-manager selects the optimal outbound phone number bound to this use case.
10581
10690
  */
10582
- use_case_id?: string | null;
10691
+ use_case_id: string;
10583
10692
  };
10584
10693
  /**
10585
10694
  * CreateOutboundCallResponse
@@ -11016,6 +11125,10 @@ export interface components {
11016
11125
  body_encoding: "json" | "form";
11017
11126
  /** Exchange Url */
11018
11127
  exchange_url: string;
11128
+ /** Identity Bindings */
11129
+ identity_bindings: {
11130
+ [key: string]: string;
11131
+ };
11019
11132
  /** Param Body Fields */
11020
11133
  param_body_fields: {
11021
11134
  [key: string]: components["schemas"]["ParamValueDict"];
@@ -11062,6 +11175,17 @@ export interface components {
11062
11175
  * Format: uri
11063
11176
  */
11064
11177
  exchange_url: string;
11178
+ /**
11179
+ * Identity Bindings
11180
+ * @description Maps a declared ``param_name`` to the verified session-principal attribute that supplies it
11181
+ * at dispatch. A bound param is dropped from the LLM-facing tool schema and injected from the
11182
+ * ``SessionPrincipal`` (never model-supplied), closing the per-user-identity impersonation hole.
11183
+ * Keys MUST reference a ``param_name`` declared on ``param_headers`` / ``param_body_fields``.
11184
+ * @default {}
11185
+ */
11186
+ identity_bindings?: {
11187
+ [key: string]: "principal.subject_key" | "principal.subject_id";
11188
+ };
11065
11189
  /**
11066
11190
  * Param Body Fields
11067
11191
  * @description Per-request params routed to body fields on the exchange request, keyed by RFC 6901 JSON Pointer.
@@ -12779,11 +12903,6 @@ export interface components {
12779
12903
  last_tick_at?: string | null;
12780
12904
  /** Loop Status */
12781
12905
  loop_status: string;
12782
- /**
12783
- * Merges Last Tick
12784
- * @default 0
12785
- */
12786
- merges_last_tick?: number;
12787
12906
  /** Recent Merges 24H */
12788
12907
  recent_merges_24h: number;
12789
12908
  /** Total Same As Edges */
@@ -13613,6 +13732,80 @@ export interface components {
13613
13732
  /** Name */
13614
13733
  name?: string;
13615
13734
  };
13735
+ /** ExternalRoleAssignmentItem */
13736
+ ExternalRoleAssignmentItem: {
13737
+ /**
13738
+ * Created At
13739
+ * Format: date-time
13740
+ */
13741
+ created_at: string;
13742
+ /** Display Name */
13743
+ display_name?: string | null;
13744
+ /**
13745
+ * Entity Id
13746
+ * Format: uuid
13747
+ */
13748
+ entity_id: string;
13749
+ /** External Subject Id */
13750
+ external_subject_id?: string | null;
13751
+ /** External Subject Key */
13752
+ external_subject_key: string;
13753
+ /**
13754
+ * Id
13755
+ * Format: uuid
13756
+ */
13757
+ id: string;
13758
+ /** Last Verified At */
13759
+ last_verified_at?: string | null;
13760
+ /**
13761
+ * Provisioned Via
13762
+ * @enum {string}
13763
+ */
13764
+ provisioned_via: "roster_sync" | "jit";
13765
+ /** Roles */
13766
+ roles: string[];
13767
+ /** Roles Verified */
13768
+ roles_verified: boolean;
13769
+ /** Source */
13770
+ source: string;
13771
+ /**
13772
+ * Status
13773
+ * @enum {string}
13774
+ */
13775
+ status: "active" | "suspended" | "revoked";
13776
+ /**
13777
+ * Updated At
13778
+ * Format: date-time
13779
+ */
13780
+ updated_at: string;
13781
+ };
13782
+ /**
13783
+ * ExternalRoleItem
13784
+ * @description Wire shape for read + create responses.
13785
+ */
13786
+ ExternalRoleItem: {
13787
+ /**
13788
+ * Created At
13789
+ * Format: date-time
13790
+ */
13791
+ created_at: string;
13792
+ /** Description */
13793
+ description?: string | null;
13794
+ /** External Name */
13795
+ external_name: string;
13796
+ /**
13797
+ * Id
13798
+ * Format: uuid
13799
+ */
13800
+ id: string;
13801
+ /** Name */
13802
+ name: string;
13803
+ /**
13804
+ * Updated At
13805
+ * Format: date-time
13806
+ */
13807
+ updated_at: string;
13808
+ };
13616
13809
  ExternalSystemString: string;
13617
13810
  ExternalValueString: string;
13618
13811
  /**
@@ -19328,6 +19521,37 @@ export interface components {
19328
19521
  */
19329
19522
  level?: "low" | "medium" | "high" | "critical";
19330
19523
  };
19524
+ /** RoleGrantItem */
19525
+ RoleGrantItem: {
19526
+ access: components["schemas"]["_Access"];
19527
+ /** Changed By */
19528
+ changed_by?: string | null;
19529
+ /**
19530
+ * Created At
19531
+ * Format: date-time
19532
+ */
19533
+ created_at: string;
19534
+ /**
19535
+ * Id
19536
+ * Format: uuid
19537
+ */
19538
+ id: string;
19539
+ /** Param Binding */
19540
+ param_binding?: string | null;
19541
+ /** Resource Key */
19542
+ resource_key: string;
19543
+ resource_type: components["schemas"]["_ResourceType"];
19544
+ /**
19545
+ * Role Id
19546
+ * Format: uuid
19547
+ */
19548
+ role_id: string;
19549
+ /**
19550
+ * Status
19551
+ * @enum {string}
19552
+ */
19553
+ status: "active" | "superseded";
19554
+ };
19331
19555
  /** RotateApiKeyRequest */
19332
19556
  RotateApiKeyRequest: {
19333
19557
  /** Duration Days */
@@ -19713,10 +19937,10 @@ export interface components {
19713
19937
  * - ``EscalationPolicy.ForwardAction`` — engine-fired escalation with no
19714
19938
  * overrides falls through to the same path.
19715
19939
  *
19716
- * Distinct from ``platform_lib.phone_numbers.ForwardingConfig`` (per-phone
19717
- * legacy shape with ``enabled``); per-service forwarding is a binary
19718
- * presence set means tier 3 resolves to it, None means tier 3 has no
19719
- * static target.
19940
+ * Per-service forwarding is a binary presence — set means tier 3 resolves
19941
+ * to it, None means tier 3 has no static target. (The legacy per-phone
19942
+ * forwarding shape, with its own ``enabled`` flag, was removed alongside
19943
+ * the legacy Twilio phone path.)
19720
19944
  */
19721
19945
  ServiceForwardingConfig: {
19722
19946
  forward_to: components["schemas"]["PhoneE164"];
@@ -24280,6 +24504,34 @@ export interface components {
24280
24504
  */
24281
24505
  size_bytes: number;
24282
24506
  };
24507
+ /** UpsertRequest */
24508
+ UpsertRequest: {
24509
+ /** Display Name */
24510
+ display_name?: string | null;
24511
+ /**
24512
+ * Entity Id
24513
+ * Format: uuid
24514
+ */
24515
+ entity_id: string;
24516
+ /** External Subject Id */
24517
+ external_subject_id?: string | null;
24518
+ /** External Subject Key */
24519
+ external_subject_key: string;
24520
+ /**
24521
+ * Provisioned Via
24522
+ * @enum {string}
24523
+ */
24524
+ provisioned_via: "roster_sync" | "jit";
24525
+ /** Roles */
24526
+ roles?: string[];
24527
+ /**
24528
+ * Roles Verified
24529
+ * @default false
24530
+ */
24531
+ roles_verified?: boolean;
24532
+ /** Source */
24533
+ source: string;
24534
+ };
24283
24535
  /** UpsertVersionSetRequest */
24284
24536
  UpsertVersionSetRequest: {
24285
24537
  version_set: components["schemas"]["VersionSet-Input"];
@@ -24761,6 +25013,8 @@ export interface components {
24761
25013
  sensitive_topics?: string[] | null;
24762
25014
  /** Speed */
24763
25015
  speed?: number | null;
25016
+ /** Stt Provider */
25017
+ stt_provider?: ("deepgram" | "openai" | "cartesia") | null;
24764
25018
  /** Tone */
24765
25019
  tone?: string | null;
24766
25020
  /** Transcript Correction Enabled */
@@ -24799,6 +25053,8 @@ export interface components {
24799
25053
  sensitive_topics: string[];
24800
25054
  /** Speed */
24801
25055
  speed: number | null;
25056
+ /** Stt Provider */
25057
+ stt_provider: ("deepgram" | "openai" | "cartesia") | null;
24802
25058
  /** Tone */
24803
25059
  tone: string | null;
24804
25060
  /** Transcript Correction Enabled */
@@ -25085,6 +25341,8 @@ export interface components {
25085
25341
  /** Success */
25086
25342
  success: boolean;
25087
25343
  };
25344
+ /** @enum {string} */
25345
+ _Access: "read" | "write";
25088
25346
  /**
25089
25347
  * _DayHours
25090
25348
  * @description Open-hours window for one weekday. Times in 24h ``HH:MM`` form,
@@ -25096,8 +25354,8 @@ export interface components {
25096
25354
  /** Start */
25097
25355
  start: string;
25098
25356
  };
25099
- /** @constant */
25100
- _SortField: "deployed_at";
25357
+ /** @enum {string} */
25358
+ _ResourceType: "integration_endpoint" | "skill" | "kb_scope";
25101
25359
  _ToolMockKey: string;
25102
25360
  _ToolMockValue: string;
25103
25361
  /**
@@ -25354,6 +25612,37 @@ export interface components {
25354
25612
  /** Updated At */
25355
25613
  updated_at: string;
25356
25614
  };
25615
+ /** ListResponse */
25616
+ src__routes__external_role_assignments__ListResponse: {
25617
+ /** Continuation Token */
25618
+ continuation_token?: unknown;
25619
+ /** Has More */
25620
+ has_more: boolean;
25621
+ /** Items */
25622
+ items: components["schemas"]["ExternalRoleAssignmentItem"][];
25623
+ };
25624
+ /** @enum {string} */
25625
+ src__routes__external_role_assignments___SortField: "created_at" | "external_subject_key";
25626
+ /** CreateRequest */
25627
+ src__routes__external_roles__CreateRequest: {
25628
+ /** Description */
25629
+ description?: string | null;
25630
+ /** External Name */
25631
+ external_name: string;
25632
+ /** Name */
25633
+ name: string;
25634
+ };
25635
+ /** ListResponse */
25636
+ src__routes__external_roles__ListResponse: {
25637
+ /** Continuation Token */
25638
+ continuation_token?: unknown;
25639
+ /** Has More */
25640
+ has_more: boolean;
25641
+ /** Items */
25642
+ items: components["schemas"]["ExternalRoleItem"][];
25643
+ };
25644
+ /** @constant */
25645
+ src__routes__external_roles___SortField: "created_at";
25357
25646
  /**
25358
25647
  * Request
25359
25648
  * @description Add a new endpoint to a REST integration (V186 flat shape).
@@ -25750,6 +26039,31 @@ export interface components {
25750
26039
  */
25751
26040
  workspace_id: string;
25752
26041
  };
26042
+ /** CreateRequest */
26043
+ src__routes__role_grants__CreateRequest: {
26044
+ access: components["schemas"]["_Access"];
26045
+ /** Param Binding */
26046
+ param_binding?: string | null;
26047
+ /** Resource Key */
26048
+ resource_key: string;
26049
+ resource_type: components["schemas"]["_ResourceType"];
26050
+ /**
26051
+ * Role Id
26052
+ * Format: uuid
26053
+ */
26054
+ role_id: string;
26055
+ };
26056
+ /** ListResponse */
26057
+ src__routes__role_grants__ListResponse: {
26058
+ /** Continuation Token */
26059
+ continuation_token?: unknown;
26060
+ /** Has More */
26061
+ has_more: boolean;
26062
+ /** Items */
26063
+ items: components["schemas"]["RoleGrantItem"][];
26064
+ };
26065
+ /** @constant */
26066
+ src__routes__role_grants___SortField: "created_at";
25753
26067
  /**
25754
26068
  * Request
25755
26069
  * @description Create body — the authored shape of a new workspace data query.
@@ -25857,6 +26171,8 @@ export interface components {
25857
26171
  /** Timeout Ms */
25858
26172
  timeout_ms: number;
25859
26173
  };
26174
+ /** @constant */
26175
+ src__routes__workspace_data_queries__list_workspace_data_queries___SortField: "deployed_at";
25860
26176
  /**
25861
26177
  * Request
25862
26178
  * @description PATCH body — every field optional. Present ⇒ overwrite; absent ⇒ keep.
@@ -29772,13 +30088,6 @@ export interface operations {
29772
30088
  };
29773
30089
  content?: never;
29774
30090
  };
29775
- /** @description phone_from does not belong to this workspace */
29776
- 403: {
29777
- headers: {
29778
- [name: string]: unknown;
29779
- };
29780
- content?: never;
29781
- };
29782
30091
  /** @description No phone number available for use case */
29783
30092
  404: {
29784
30093
  headers: {
@@ -32839,6 +33148,305 @@ export interface operations {
32839
33148
  };
32840
33149
  };
32841
33150
  };
33151
+ "list-external-role-assignments": {
33152
+ parameters: {
33153
+ query?: {
33154
+ sort_by?: string[];
33155
+ limit?: number;
33156
+ continuation_token?: unknown;
33157
+ };
33158
+ header?: never;
33159
+ path: {
33160
+ workspace_id: string;
33161
+ };
33162
+ cookie?: never;
33163
+ };
33164
+ requestBody?: never;
33165
+ responses: {
33166
+ /** @description Successful Response */
33167
+ 200: {
33168
+ headers: {
33169
+ [name: string]: unknown;
33170
+ };
33171
+ content: {
33172
+ "application/json": components["schemas"]["src__routes__external_role_assignments__ListResponse"];
33173
+ };
33174
+ };
33175
+ /** @description Validation Error */
33176
+ 422: {
33177
+ headers: {
33178
+ [name: string]: unknown;
33179
+ };
33180
+ content: {
33181
+ "application/json": components["schemas"]["HTTPValidationError"];
33182
+ };
33183
+ };
33184
+ };
33185
+ };
33186
+ "upsert-external-role-assignment": {
33187
+ parameters: {
33188
+ query?: never;
33189
+ header?: never;
33190
+ path: {
33191
+ workspace_id: string;
33192
+ };
33193
+ cookie?: never;
33194
+ };
33195
+ requestBody: {
33196
+ content: {
33197
+ "application/json": components["schemas"]["UpsertRequest"];
33198
+ };
33199
+ };
33200
+ responses: {
33201
+ /** @description Successful Response */
33202
+ 200: {
33203
+ headers: {
33204
+ [name: string]: unknown;
33205
+ };
33206
+ content: {
33207
+ "application/json": components["schemas"]["ExternalRoleAssignmentItem"];
33208
+ };
33209
+ };
33210
+ /** @description Validation Error */
33211
+ 422: {
33212
+ headers: {
33213
+ [name: string]: unknown;
33214
+ };
33215
+ content: {
33216
+ "application/json": components["schemas"]["HTTPValidationError"];
33217
+ };
33218
+ };
33219
+ };
33220
+ };
33221
+ "get-external-role-assignment": {
33222
+ parameters: {
33223
+ query?: never;
33224
+ header?: never;
33225
+ path: {
33226
+ workspace_id: string;
33227
+ assignment_id: string;
33228
+ };
33229
+ cookie?: never;
33230
+ };
33231
+ requestBody?: never;
33232
+ responses: {
33233
+ /** @description Successful Response */
33234
+ 200: {
33235
+ headers: {
33236
+ [name: string]: unknown;
33237
+ };
33238
+ content: {
33239
+ "application/json": components["schemas"]["ExternalRoleAssignmentItem"];
33240
+ };
33241
+ };
33242
+ /** @description Assignment not found */
33243
+ 404: {
33244
+ headers: {
33245
+ [name: string]: unknown;
33246
+ };
33247
+ content?: never;
33248
+ };
33249
+ /** @description Validation Error */
33250
+ 422: {
33251
+ headers: {
33252
+ [name: string]: unknown;
33253
+ };
33254
+ content: {
33255
+ "application/json": components["schemas"]["HTTPValidationError"];
33256
+ };
33257
+ };
33258
+ };
33259
+ };
33260
+ "delete-external-role-assignment": {
33261
+ parameters: {
33262
+ query?: never;
33263
+ header?: never;
33264
+ path: {
33265
+ workspace_id: string;
33266
+ assignment_id: string;
33267
+ };
33268
+ cookie?: never;
33269
+ };
33270
+ requestBody?: never;
33271
+ responses: {
33272
+ /** @description Successful Response */
33273
+ 204: {
33274
+ headers: {
33275
+ [name: string]: unknown;
33276
+ };
33277
+ content?: never;
33278
+ };
33279
+ /** @description Assignment not found */
33280
+ 404: {
33281
+ headers: {
33282
+ [name: string]: unknown;
33283
+ };
33284
+ content?: never;
33285
+ };
33286
+ /** @description Validation Error */
33287
+ 422: {
33288
+ headers: {
33289
+ [name: string]: unknown;
33290
+ };
33291
+ content: {
33292
+ "application/json": components["schemas"]["HTTPValidationError"];
33293
+ };
33294
+ };
33295
+ };
33296
+ };
33297
+ "list-external-roles": {
33298
+ parameters: {
33299
+ query?: {
33300
+ sort_by?: string[];
33301
+ limit?: number;
33302
+ continuation_token?: unknown;
33303
+ };
33304
+ header?: never;
33305
+ path: {
33306
+ workspace_id: string;
33307
+ };
33308
+ cookie?: never;
33309
+ };
33310
+ requestBody?: never;
33311
+ responses: {
33312
+ /** @description Successful Response */
33313
+ 200: {
33314
+ headers: {
33315
+ [name: string]: unknown;
33316
+ };
33317
+ content: {
33318
+ "application/json": components["schemas"]["src__routes__external_roles__ListResponse"];
33319
+ };
33320
+ };
33321
+ /** @description Validation Error */
33322
+ 422: {
33323
+ headers: {
33324
+ [name: string]: unknown;
33325
+ };
33326
+ content: {
33327
+ "application/json": components["schemas"]["HTTPValidationError"];
33328
+ };
33329
+ };
33330
+ };
33331
+ };
33332
+ "create-external-role": {
33333
+ parameters: {
33334
+ query?: never;
33335
+ header?: never;
33336
+ path: {
33337
+ workspace_id: string;
33338
+ };
33339
+ cookie?: never;
33340
+ };
33341
+ requestBody: {
33342
+ content: {
33343
+ "application/json": components["schemas"]["src__routes__external_roles__CreateRequest"];
33344
+ };
33345
+ };
33346
+ responses: {
33347
+ /** @description Successful Response */
33348
+ 201: {
33349
+ headers: {
33350
+ [name: string]: unknown;
33351
+ };
33352
+ content: {
33353
+ "application/json": components["schemas"]["ExternalRoleItem"];
33354
+ };
33355
+ };
33356
+ /** @description An external role with the given name already exists */
33357
+ 409: {
33358
+ headers: {
33359
+ [name: string]: unknown;
33360
+ };
33361
+ content?: never;
33362
+ };
33363
+ /** @description Validation Error */
33364
+ 422: {
33365
+ headers: {
33366
+ [name: string]: unknown;
33367
+ };
33368
+ content: {
33369
+ "application/json": components["schemas"]["HTTPValidationError"];
33370
+ };
33371
+ };
33372
+ };
33373
+ };
33374
+ "get-external-role": {
33375
+ parameters: {
33376
+ query?: never;
33377
+ header?: never;
33378
+ path: {
33379
+ workspace_id: string;
33380
+ role_id: string;
33381
+ };
33382
+ cookie?: never;
33383
+ };
33384
+ requestBody?: never;
33385
+ responses: {
33386
+ /** @description Successful Response */
33387
+ 200: {
33388
+ headers: {
33389
+ [name: string]: unknown;
33390
+ };
33391
+ content: {
33392
+ "application/json": components["schemas"]["ExternalRoleItem"];
33393
+ };
33394
+ };
33395
+ /** @description External role not found */
33396
+ 404: {
33397
+ headers: {
33398
+ [name: string]: unknown;
33399
+ };
33400
+ content?: never;
33401
+ };
33402
+ /** @description Validation Error */
33403
+ 422: {
33404
+ headers: {
33405
+ [name: string]: unknown;
33406
+ };
33407
+ content: {
33408
+ "application/json": components["schemas"]["HTTPValidationError"];
33409
+ };
33410
+ };
33411
+ };
33412
+ };
33413
+ "delete-external-role": {
33414
+ parameters: {
33415
+ query?: never;
33416
+ header?: never;
33417
+ path: {
33418
+ workspace_id: string;
33419
+ role_id: string;
33420
+ };
33421
+ cookie?: never;
33422
+ };
33423
+ requestBody?: never;
33424
+ responses: {
33425
+ /** @description Successful Response */
33426
+ 204: {
33427
+ headers: {
33428
+ [name: string]: unknown;
33429
+ };
33430
+ content?: never;
33431
+ };
33432
+ /** @description External role not found */
33433
+ 404: {
33434
+ headers: {
33435
+ [name: string]: unknown;
33436
+ };
33437
+ content?: never;
33438
+ };
33439
+ /** @description Validation Error */
33440
+ 422: {
33441
+ headers: {
33442
+ [name: string]: unknown;
33443
+ };
33444
+ content: {
33445
+ "application/json": components["schemas"]["HTTPValidationError"];
33446
+ };
33447
+ };
33448
+ };
33449
+ };
32842
33450
  "fhir-import": {
32843
33451
  parameters: {
32844
33452
  query?: never;
@@ -37878,6 +38486,160 @@ export interface operations {
37878
38486
  };
37879
38487
  };
37880
38488
  };
38489
+ "list-role-grants": {
38490
+ parameters: {
38491
+ query?: {
38492
+ sort_by?: string[];
38493
+ limit?: number;
38494
+ continuation_token?: unknown;
38495
+ status?: ("active" | "superseded") | null;
38496
+ };
38497
+ header?: never;
38498
+ path: {
38499
+ workspace_id: string;
38500
+ };
38501
+ cookie?: never;
38502
+ };
38503
+ requestBody?: never;
38504
+ responses: {
38505
+ /** @description Successful Response */
38506
+ 200: {
38507
+ headers: {
38508
+ [name: string]: unknown;
38509
+ };
38510
+ content: {
38511
+ "application/json": components["schemas"]["src__routes__role_grants__ListResponse"];
38512
+ };
38513
+ };
38514
+ /** @description Validation Error */
38515
+ 422: {
38516
+ headers: {
38517
+ [name: string]: unknown;
38518
+ };
38519
+ content: {
38520
+ "application/json": components["schemas"]["HTTPValidationError"];
38521
+ };
38522
+ };
38523
+ };
38524
+ };
38525
+ "create-role-grant": {
38526
+ parameters: {
38527
+ query?: never;
38528
+ header?: never;
38529
+ path: {
38530
+ workspace_id: string;
38531
+ };
38532
+ cookie?: never;
38533
+ };
38534
+ requestBody: {
38535
+ content: {
38536
+ "application/json": components["schemas"]["src__routes__role_grants__CreateRequest"];
38537
+ };
38538
+ };
38539
+ responses: {
38540
+ /** @description Successful Response */
38541
+ 201: {
38542
+ headers: {
38543
+ [name: string]: unknown;
38544
+ };
38545
+ content: {
38546
+ "application/json": components["schemas"]["RoleGrantItem"];
38547
+ };
38548
+ };
38549
+ /** @description An active grant for this (role, resource, access) already exists */
38550
+ 409: {
38551
+ headers: {
38552
+ [name: string]: unknown;
38553
+ };
38554
+ content?: never;
38555
+ };
38556
+ /** @description Validation Error */
38557
+ 422: {
38558
+ headers: {
38559
+ [name: string]: unknown;
38560
+ };
38561
+ content: {
38562
+ "application/json": components["schemas"]["HTTPValidationError"];
38563
+ };
38564
+ };
38565
+ };
38566
+ };
38567
+ "get-role-grant": {
38568
+ parameters: {
38569
+ query?: never;
38570
+ header?: never;
38571
+ path: {
38572
+ workspace_id: string;
38573
+ grant_id: string;
38574
+ };
38575
+ cookie?: never;
38576
+ };
38577
+ requestBody?: never;
38578
+ responses: {
38579
+ /** @description Successful Response */
38580
+ 200: {
38581
+ headers: {
38582
+ [name: string]: unknown;
38583
+ };
38584
+ content: {
38585
+ "application/json": components["schemas"]["RoleGrantItem"];
38586
+ };
38587
+ };
38588
+ /** @description Role grant not found */
38589
+ 404: {
38590
+ headers: {
38591
+ [name: string]: unknown;
38592
+ };
38593
+ content?: never;
38594
+ };
38595
+ /** @description Validation Error */
38596
+ 422: {
38597
+ headers: {
38598
+ [name: string]: unknown;
38599
+ };
38600
+ content: {
38601
+ "application/json": components["schemas"]["HTTPValidationError"];
38602
+ };
38603
+ };
38604
+ };
38605
+ };
38606
+ "supersede-role-grant": {
38607
+ parameters: {
38608
+ query?: never;
38609
+ header?: never;
38610
+ path: {
38611
+ workspace_id: string;
38612
+ grant_id: string;
38613
+ };
38614
+ cookie?: never;
38615
+ };
38616
+ requestBody?: never;
38617
+ responses: {
38618
+ /** @description Successful Response */
38619
+ 204: {
38620
+ headers: {
38621
+ [name: string]: unknown;
38622
+ };
38623
+ content?: never;
38624
+ };
38625
+ /** @description Active role grant not found */
38626
+ 404: {
38627
+ headers: {
38628
+ [name: string]: unknown;
38629
+ };
38630
+ content?: never;
38631
+ };
38632
+ /** @description Validation Error */
38633
+ 422: {
38634
+ headers: {
38635
+ [name: string]: unknown;
38636
+ };
38637
+ content: {
38638
+ "application/json": components["schemas"]["HTTPValidationError"];
38639
+ };
38640
+ };
38641
+ };
38642
+ };
37881
38643
  "list-scheduling-rule-sets": {
37882
38644
  parameters: {
37883
38645
  query?: {