@amigo-ai/platform-sdk 0.26.0 → 0.29.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.
- package/README.md +62 -0
- package/api.md +170 -1
- package/dist/index.cjs +1081 -5
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +78 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1081 -5
- package/dist/index.mjs.map +4 -4
- package/dist/resources/analytics.js +20 -0
- package/dist/resources/analytics.js.map +1 -1
- package/dist/resources/briefs.js +34 -0
- package/dist/resources/briefs.js.map +1 -0
- package/dist/resources/calls.js +22 -0
- package/dist/resources/calls.js.map +1 -1
- package/dist/resources/command-center.js +17 -0
- package/dist/resources/command-center.js.map +1 -0
- package/dist/resources/crm.js +52 -0
- package/dist/resources/crm.js.map +1 -0
- package/dist/resources/data-query.js +22 -0
- package/dist/resources/data-query.js.map +1 -0
- package/dist/resources/desktop-sessions.js +43 -0
- package/dist/resources/desktop-sessions.js.map +1 -0
- package/dist/resources/fhir.js +130 -0
- package/dist/resources/fhir.js.map +1 -0
- package/dist/resources/insights.js +53 -0
- package/dist/resources/insights.js.map +1 -0
- package/dist/resources/intake.js +42 -0
- package/dist/resources/intake.js.map +1 -0
- package/dist/resources/me.js +46 -0
- package/dist/resources/me.js.map +1 -0
- package/dist/resources/monitor-concepts.js +47 -0
- package/dist/resources/monitor-concepts.js.map +1 -0
- package/dist/resources/network.js +17 -0
- package/dist/resources/network.js.map +1 -0
- package/dist/resources/pipeline.js +69 -0
- package/dist/resources/pipeline.js.map +1 -0
- package/dist/resources/sensorium.js +25 -0
- package/dist/resources/sensorium.js.map +1 -0
- package/dist/resources/sessions.js +29 -0
- package/dist/resources/sessions.js.map +1 -0
- package/dist/resources/settings.js +17 -0
- package/dist/resources/settings.js.map +1 -1
- package/dist/resources/simulations.js +75 -0
- package/dist/resources/simulations.js.map +1 -1
- package/dist/resources/surfaces.js +85 -0
- package/dist/resources/surfaces.js.map +1 -0
- package/dist/resources/tasks.js +23 -0
- package/dist/resources/tasks.js.map +1 -0
- package/dist/resources/tools.js +24 -0
- package/dist/resources/tools.js.map +1 -0
- package/dist/resources/unification-rules.js +46 -0
- package/dist/resources/unification-rules.js.map +1 -0
- package/dist/resources/workspaces.js +33 -10
- package/dist/resources/workspaces.js.map +1 -1
- package/dist/types/generated/api.d.ts +172 -118
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/index.d.cts +53 -0
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.ts +53 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/resources/analytics.d.ts +26 -0
- package/dist/types/resources/analytics.d.ts.map +1 -1
- package/dist/types/resources/briefs.d.ts +79 -0
- package/dist/types/resources/briefs.d.ts.map +1 -0
- package/dist/types/resources/calls.d.ts +93 -9
- package/dist/types/resources/calls.d.ts.map +1 -1
- package/dist/types/resources/command-center.d.ts +55 -0
- package/dist/types/resources/command-center.d.ts.map +1 -0
- package/dist/types/resources/crm.d.ts +207 -0
- package/dist/types/resources/crm.d.ts.map +1 -0
- package/dist/types/resources/data-query.d.ts +23 -0
- package/dist/types/resources/data-query.d.ts.map +1 -0
- package/dist/types/resources/desktop-sessions.d.ts +38 -0
- package/dist/types/resources/desktop-sessions.d.ts.map +1 -0
- package/dist/types/resources/fhir.d.ts +350 -0
- package/dist/types/resources/fhir.d.ts.map +1 -0
- package/dist/types/resources/functions.d.ts.map +1 -1
- package/dist/types/resources/insights.d.ts +56 -0
- package/dist/types/resources/insights.d.ts.map +1 -0
- package/dist/types/resources/intake.d.ts +59 -0
- package/dist/types/resources/intake.d.ts.map +1 -0
- package/dist/types/resources/me.d.ts +54 -0
- package/dist/types/resources/me.d.ts.map +1 -0
- package/dist/types/resources/metrics.d.ts.map +1 -1
- package/dist/types/resources/monitor-concepts.d.ts +115 -0
- package/dist/types/resources/monitor-concepts.d.ts.map +1 -0
- package/dist/types/resources/network.d.ts +17 -0
- package/dist/types/resources/network.d.ts.map +1 -0
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/pipeline.d.ts +183 -0
- package/dist/types/resources/pipeline.d.ts.map +1 -0
- package/dist/types/resources/sensorium.d.ts +40 -0
- package/dist/types/resources/sensorium.d.ts.map +1 -0
- package/dist/types/resources/sessions.d.ts +33 -0
- package/dist/types/resources/sessions.d.ts.map +1 -0
- package/dist/types/resources/settings.d.ts +16 -0
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +186 -3
- package/dist/types/resources/simulations.d.ts.map +1 -1
- package/dist/types/resources/surfaces.d.ts +240 -0
- package/dist/types/resources/surfaces.d.ts.map +1 -0
- package/dist/types/resources/tasks.d.ts +55 -0
- package/dist/types/resources/tasks.d.ts.map +1 -0
- package/dist/types/resources/tools.d.ts +53 -0
- package/dist/types/resources/tools.d.ts.map +1 -0
- package/dist/types/resources/unification-rules.d.ts +129 -0
- package/dist/types/resources/unification-rules.d.ts.map +1 -0
- package/dist/types/resources/workspaces.d.ts +32 -17
- package/dist/types/resources/workspaces.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import type { components, paths } from '../generated/api.js';
|
|
2
|
+
import { WorkspaceScopedResource } from './base.js';
|
|
3
|
+
type Q<P extends keyof paths> = NonNullable<paths[P] extends {
|
|
4
|
+
get: {
|
|
5
|
+
parameters: {
|
|
6
|
+
query?: infer Query;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
} ? Query : never>;
|
|
10
|
+
export type PatientSearchParams = Q<'/v1/{workspace_id}/fhir/patients'>;
|
|
11
|
+
/** Spec-defined query params for `/fhir/resources/{resource_type}` (FHIR-style search). */
|
|
12
|
+
export type FhirSearchParams = Q<'/v1/{workspace_id}/fhir/resources/{resource_type}'>;
|
|
13
|
+
export type SyncFailuresParams = Q<'/v1/{workspace_id}/fhir/sync-failures'>;
|
|
14
|
+
export type FhirPatientsViewParams = Q<'/v1/{workspace_id}/fhir/views/patients'>;
|
|
15
|
+
export type FhirAppointmentsViewParams = Q<'/v1/{workspace_id}/fhir/views/appointments'>;
|
|
16
|
+
export type FhirPractitionersViewParams = Q<'/v1/{workspace_id}/fhir/views/practitioners'>;
|
|
17
|
+
export type FhirOrganizationsViewParams = Q<'/v1/{workspace_id}/fhir/views/organizations'>;
|
|
18
|
+
export type FhirLocationsViewParams = Q<'/v1/{workspace_id}/fhir/views/locations'>;
|
|
19
|
+
export type FhirSlotsViewParams = Q<'/v1/{workspace_id}/fhir/views/slots'>;
|
|
20
|
+
/**
|
|
21
|
+
* FHIR — healthcare data interop surface for connected EHR integrations.
|
|
22
|
+
*
|
|
23
|
+
* @beta New in this release; surface may evolve as the EHR adapters stabilize.
|
|
24
|
+
*
|
|
25
|
+
* Provides:
|
|
26
|
+
* - Sync status + failure visibility (`status`, `syncFailures`)
|
|
27
|
+
* - Bulk imports (`import`)
|
|
28
|
+
* - FHIR-shaped CRUD on resources (`resources.*`)
|
|
29
|
+
* - Patient-centric views (`patients`, `patientSummary`, `patientTimeline`)
|
|
30
|
+
* - Pre-aggregated typed views per resource type (`views.*`)
|
|
31
|
+
*
|
|
32
|
+
* All operations are workspace-scoped; the FHIR server identity is determined
|
|
33
|
+
* by the workspace's connected EHR integration.
|
|
34
|
+
*/
|
|
35
|
+
export declare class FhirResource extends WorkspaceScopedResource {
|
|
36
|
+
/** Get current FHIR sync status (server identity, last sync, counts) */
|
|
37
|
+
getStatus(): Promise<{
|
|
38
|
+
configured: boolean;
|
|
39
|
+
connector_type?: string | null | undefined;
|
|
40
|
+
entity_count: number;
|
|
41
|
+
entity_type_counts?: {
|
|
42
|
+
[x: string]: number;
|
|
43
|
+
} | undefined;
|
|
44
|
+
event_count: number;
|
|
45
|
+
last_change_at?: string | null | undefined;
|
|
46
|
+
last_poll_at?: string | null | undefined;
|
|
47
|
+
resource_type_counts?: {
|
|
48
|
+
[x: string]: number;
|
|
49
|
+
} | undefined;
|
|
50
|
+
sync_failure_count?: number | undefined;
|
|
51
|
+
sync_healthy?: boolean | null | undefined;
|
|
52
|
+
} & import("../index.js").ResponseMetadata>;
|
|
53
|
+
/** List recent FHIR sync failures (for triage) */
|
|
54
|
+
getSyncFailures(params?: SyncFailuresParams): Promise<{
|
|
55
|
+
failures: {
|
|
56
|
+
created_at?: string | null | undefined;
|
|
57
|
+
data?: {
|
|
58
|
+
[x: string]: unknown;
|
|
59
|
+
} | undefined;
|
|
60
|
+
entity_id?: string | null | undefined;
|
|
61
|
+
event_id: string;
|
|
62
|
+
event_type: string;
|
|
63
|
+
fhir_resource_id?: string | null | undefined;
|
|
64
|
+
fhir_resource_type?: string | null | undefined;
|
|
65
|
+
sync_error: string;
|
|
66
|
+
synced_at?: string | null | undefined;
|
|
67
|
+
}[];
|
|
68
|
+
total: number;
|
|
69
|
+
} & import("../index.js").ResponseMetadata>;
|
|
70
|
+
/** Trigger a FHIR import (full or partial, depending on request) */
|
|
71
|
+
import(body: components['schemas']['FhirImportRequest']): Promise<{
|
|
72
|
+
entities_created: number;
|
|
73
|
+
entities_updated: number;
|
|
74
|
+
errors?: string[] | undefined;
|
|
75
|
+
events_created: number;
|
|
76
|
+
events_skipped?: number | undefined;
|
|
77
|
+
events_updated?: number | undefined;
|
|
78
|
+
} & import("../index.js").ResponseMetadata>;
|
|
79
|
+
/** Search patients by demographics or identifiers */
|
|
80
|
+
searchPatients(params?: PatientSearchParams): Promise<{
|
|
81
|
+
has_more?: boolean | undefined;
|
|
82
|
+
next_offset?: number | null | undefined;
|
|
83
|
+
patients: {
|
|
84
|
+
birth_date?: string | null | undefined;
|
|
85
|
+
email?: string | null | undefined;
|
|
86
|
+
entity_id: string;
|
|
87
|
+
event_count?: number | undefined;
|
|
88
|
+
gender?: string | null | undefined;
|
|
89
|
+
last_event_at?: string | null | undefined;
|
|
90
|
+
mrn?: string | null | undefined;
|
|
91
|
+
name?: string | null | undefined;
|
|
92
|
+
phone?: string | null | undefined;
|
|
93
|
+
}[];
|
|
94
|
+
total: number;
|
|
95
|
+
} & import("../index.js").ResponseMetadata>;
|
|
96
|
+
/** Get a patient summary (canonical demographics + active conditions/meds) */
|
|
97
|
+
getPatientSummary(patientId: string): Promise<{
|
|
98
|
+
birth_date?: string | null | undefined;
|
|
99
|
+
display_name: string | null;
|
|
100
|
+
email?: string | null | undefined;
|
|
101
|
+
entity_id: string;
|
|
102
|
+
entity_type: string;
|
|
103
|
+
event_count: number;
|
|
104
|
+
gender?: string | null | undefined;
|
|
105
|
+
last_event_at: string | null;
|
|
106
|
+
mrn?: string | null | undefined;
|
|
107
|
+
name?: string | null | undefined;
|
|
108
|
+
phone?: string | null | undefined;
|
|
109
|
+
state?: {
|
|
110
|
+
[x: string]: unknown;
|
|
111
|
+
} | undefined;
|
|
112
|
+
} & import("../index.js").ResponseMetadata>;
|
|
113
|
+
/** Get a patient's longitudinal clinical timeline */
|
|
114
|
+
getPatientTimeline(patientId: string): Promise<{
|
|
115
|
+
entity_id: string;
|
|
116
|
+
events: {
|
|
117
|
+
[x: string]: unknown;
|
|
118
|
+
}[];
|
|
119
|
+
total: number;
|
|
120
|
+
} & import("../index.js").ResponseMetadata>;
|
|
121
|
+
readonly resources: {
|
|
122
|
+
/** Search FHIR resources of a given type (passes search params through to FHIR) */
|
|
123
|
+
search: (resourceType: string, params?: FhirSearchParams) => Promise<{
|
|
124
|
+
entries: {
|
|
125
|
+
[x: string]: unknown;
|
|
126
|
+
}[];
|
|
127
|
+
next_url?: string | null | undefined;
|
|
128
|
+
resource_type: string;
|
|
129
|
+
total: number | null;
|
|
130
|
+
} & import("../index.js").ResponseMetadata>;
|
|
131
|
+
/** Create a FHIR resource of the given type */
|
|
132
|
+
create: (resourceType: string, body: components["schemas"]["FhirWriteRequest"]) => Promise<{
|
|
133
|
+
data: {
|
|
134
|
+
[x: string]: unknown;
|
|
135
|
+
};
|
|
136
|
+
entity_id?: string | null | undefined;
|
|
137
|
+
resource_id: string;
|
|
138
|
+
resource_type: string;
|
|
139
|
+
} & import("../index.js").ResponseMetadata>;
|
|
140
|
+
/** Get a single FHIR resource by type + id */
|
|
141
|
+
get: (resourceType: string, resourceId: string) => Promise<{
|
|
142
|
+
data: {
|
|
143
|
+
[x: string]: unknown;
|
|
144
|
+
};
|
|
145
|
+
entity_id?: string | null | undefined;
|
|
146
|
+
resource_id: string;
|
|
147
|
+
resource_type: string;
|
|
148
|
+
} & import("../index.js").ResponseMetadata>;
|
|
149
|
+
/** Update a FHIR resource by type + id */
|
|
150
|
+
update: (resourceType: string, resourceId: string, body: components["schemas"]["FhirWriteRequest"]) => Promise<{
|
|
151
|
+
data: {
|
|
152
|
+
[x: string]: unknown;
|
|
153
|
+
};
|
|
154
|
+
entity_id?: string | null | undefined;
|
|
155
|
+
resource_id: string;
|
|
156
|
+
resource_type: string;
|
|
157
|
+
} & import("../index.js").ResponseMetadata>;
|
|
158
|
+
/** Get the version history for a FHIR resource */
|
|
159
|
+
getHistory: (resourceType: string, resourceId: string) => Promise<{
|
|
160
|
+
entries: {
|
|
161
|
+
confidence?: number | null | undefined;
|
|
162
|
+
created_at?: string | null | undefined;
|
|
163
|
+
data?: {
|
|
164
|
+
[x: string]: unknown;
|
|
165
|
+
} | undefined;
|
|
166
|
+
data_source_id?: string | null | undefined;
|
|
167
|
+
effective_at?: string | null | undefined;
|
|
168
|
+
entity_id?: string | null | undefined;
|
|
169
|
+
event_id: string;
|
|
170
|
+
event_type: string;
|
|
171
|
+
fields_affected?: string[] | undefined;
|
|
172
|
+
is_current: boolean;
|
|
173
|
+
source?: string | null | undefined;
|
|
174
|
+
source_system?: string | null | undefined;
|
|
175
|
+
sync_error?: string | null | undefined;
|
|
176
|
+
synced_at?: string | null | undefined;
|
|
177
|
+
}[];
|
|
178
|
+
has_more?: boolean | undefined;
|
|
179
|
+
next_offset?: number | null | undefined;
|
|
180
|
+
resource_id: string;
|
|
181
|
+
resource_type: string;
|
|
182
|
+
total: number;
|
|
183
|
+
} & import("../index.js").ResponseMetadata>;
|
|
184
|
+
};
|
|
185
|
+
readonly views: {
|
|
186
|
+
/** List patients (typed view with computed display fields) */
|
|
187
|
+
patients: (params?: FhirPatientsViewParams) => Promise<{
|
|
188
|
+
has_more?: boolean | undefined;
|
|
189
|
+
next_offset?: number | null | undefined;
|
|
190
|
+
patients: {
|
|
191
|
+
active_conditions?: string[] | undefined;
|
|
192
|
+
active_medications?: string[] | undefined;
|
|
193
|
+
address?: {
|
|
194
|
+
[x: string]: unknown;
|
|
195
|
+
} | null | undefined;
|
|
196
|
+
address_city?: string | null | undefined;
|
|
197
|
+
address_postal_code?: string | null | undefined;
|
|
198
|
+
address_state?: string | null | undefined;
|
|
199
|
+
allergies?: string[] | undefined;
|
|
200
|
+
birth_date?: string | null | undefined;
|
|
201
|
+
canonical_id?: string | null | undefined;
|
|
202
|
+
confidence?: number | undefined;
|
|
203
|
+
created_at?: string | null | undefined;
|
|
204
|
+
email?: string | null | undefined;
|
|
205
|
+
entity_id: string;
|
|
206
|
+
event_count?: number | undefined;
|
|
207
|
+
first_name?: string | null | undefined;
|
|
208
|
+
gender?: string | null | undefined;
|
|
209
|
+
insurance?: {
|
|
210
|
+
[x: string]: unknown;
|
|
211
|
+
}[] | undefined;
|
|
212
|
+
last_event_at?: string | null | undefined;
|
|
213
|
+
last_name?: string | null | undefined;
|
|
214
|
+
member_id?: string | null | undefined;
|
|
215
|
+
mrn?: string | null | undefined;
|
|
216
|
+
name?: string | null | undefined;
|
|
217
|
+
phone?: string | null | undefined;
|
|
218
|
+
policyholder_dob?: string | null | undefined;
|
|
219
|
+
policyholder_name?: string | null | undefined;
|
|
220
|
+
policyholder_relationship?: string | null | undefined;
|
|
221
|
+
practice_payer_id?: string | null | undefined;
|
|
222
|
+
primary_payer_name?: string | null | undefined;
|
|
223
|
+
source_system?: string | null | undefined;
|
|
224
|
+
}[];
|
|
225
|
+
total: number;
|
|
226
|
+
} & import("../index.js").ResponseMetadata>;
|
|
227
|
+
/** List appointments */
|
|
228
|
+
appointments: (params?: FhirAppointmentsViewParams) => Promise<{
|
|
229
|
+
appointments: {
|
|
230
|
+
appointment_type?: string | null | undefined;
|
|
231
|
+
cancel_reason?: string | null | undefined;
|
|
232
|
+
canonical_id?: string | null | undefined;
|
|
233
|
+
duration_minutes?: number | null | undefined;
|
|
234
|
+
end?: string | null | undefined;
|
|
235
|
+
entity_id: string;
|
|
236
|
+
event_count?: number | undefined;
|
|
237
|
+
last_event_at?: string | null | undefined;
|
|
238
|
+
location_name?: string | null | undefined;
|
|
239
|
+
modality?: string | null | undefined;
|
|
240
|
+
patient_name?: string | null | undefined;
|
|
241
|
+
practitioner_name?: string | null | undefined;
|
|
242
|
+
reason?: string | null | undefined;
|
|
243
|
+
source_system?: string | null | undefined;
|
|
244
|
+
start?: string | null | undefined;
|
|
245
|
+
status?: string | null | undefined;
|
|
246
|
+
}[];
|
|
247
|
+
has_more?: boolean | undefined;
|
|
248
|
+
next_offset?: number | null | undefined;
|
|
249
|
+
total: number;
|
|
250
|
+
} & import("../index.js").ResponseMetadata>;
|
|
251
|
+
/** List practitioners */
|
|
252
|
+
practitioners: (params?: FhirPractitionersViewParams) => Promise<{
|
|
253
|
+
has_more?: boolean | undefined;
|
|
254
|
+
next_offset?: number | null | undefined;
|
|
255
|
+
practitioners: {
|
|
256
|
+
canonical_id?: string | null | undefined;
|
|
257
|
+
email?: string | null | undefined;
|
|
258
|
+
entity_id: string;
|
|
259
|
+
event_count?: number | undefined;
|
|
260
|
+
last_event_at?: string | null | undefined;
|
|
261
|
+
member_id?: string | null | undefined;
|
|
262
|
+
name?: string | null | undefined;
|
|
263
|
+
npi?: string | null | undefined;
|
|
264
|
+
phone?: string | null | undefined;
|
|
265
|
+
scheduling_eligible?: boolean | null | undefined;
|
|
266
|
+
source_system?: string | null | undefined;
|
|
267
|
+
specialty?: string | null | undefined;
|
|
268
|
+
}[];
|
|
269
|
+
total: number;
|
|
270
|
+
} & import("../index.js").ResponseMetadata>;
|
|
271
|
+
/** List organizations */
|
|
272
|
+
organizations: (params?: FhirOrganizationsViewParams) => Promise<{
|
|
273
|
+
has_more?: boolean | undefined;
|
|
274
|
+
next_offset?: number | null | undefined;
|
|
275
|
+
organizations: {
|
|
276
|
+
address?: {
|
|
277
|
+
[x: string]: unknown;
|
|
278
|
+
} | null | undefined;
|
|
279
|
+
canonical_id?: string | null | undefined;
|
|
280
|
+
domain?: string | null | undefined;
|
|
281
|
+
entity_id: string;
|
|
282
|
+
event_count?: number | undefined;
|
|
283
|
+
industry?: string | null | undefined;
|
|
284
|
+
last_event_at?: string | null | undefined;
|
|
285
|
+
name?: string | null | undefined;
|
|
286
|
+
phone?: string | null | undefined;
|
|
287
|
+
source_system?: string | null | undefined;
|
|
288
|
+
}[];
|
|
289
|
+
total: number;
|
|
290
|
+
} & import("../index.js").ResponseMetadata>;
|
|
291
|
+
/** List locations */
|
|
292
|
+
locations: (params?: FhirLocationsViewParams) => Promise<{
|
|
293
|
+
has_more?: boolean | undefined;
|
|
294
|
+
locations: {
|
|
295
|
+
address?: {
|
|
296
|
+
[x: string]: unknown;
|
|
297
|
+
} | null | undefined;
|
|
298
|
+
address_line?: string | null | undefined;
|
|
299
|
+
canonical_id?: string | null | undefined;
|
|
300
|
+
city?: string | null | undefined;
|
|
301
|
+
country?: string | null | undefined;
|
|
302
|
+
entity_id: string;
|
|
303
|
+
event_count?: number | undefined;
|
|
304
|
+
facility_id?: string | null | undefined;
|
|
305
|
+
hours?: {
|
|
306
|
+
[x: string]: unknown;
|
|
307
|
+
} | null | undefined;
|
|
308
|
+
last_event_at?: string | null | undefined;
|
|
309
|
+
latitude?: number | null | undefined;
|
|
310
|
+
longitude?: number | null | undefined;
|
|
311
|
+
name?: string | null | undefined;
|
|
312
|
+
phone?: string | null | undefined;
|
|
313
|
+
postal_code?: string | null | undefined;
|
|
314
|
+
source_system?: string | null | undefined;
|
|
315
|
+
state?: string | null | undefined;
|
|
316
|
+
timezone?: string | null | undefined;
|
|
317
|
+
}[];
|
|
318
|
+
next_offset?: number | null | undefined;
|
|
319
|
+
total: number;
|
|
320
|
+
} & import("../index.js").ResponseMetadata>;
|
|
321
|
+
/**
|
|
322
|
+
* List schedule slots — supports richer filtering than the other views
|
|
323
|
+
* (status, date window, provider, specialty, service_type, facility_id).
|
|
324
|
+
*/
|
|
325
|
+
slots: (params?: FhirSlotsViewParams) => Promise<{
|
|
326
|
+
has_more?: boolean | undefined;
|
|
327
|
+
next_offset?: number | null | undefined;
|
|
328
|
+
slots: {
|
|
329
|
+
canonical_id?: string | null | undefined;
|
|
330
|
+
end?: string | null | undefined;
|
|
331
|
+
entity_id: string;
|
|
332
|
+
event_count?: number | undefined;
|
|
333
|
+
facility_id?: string | null | undefined;
|
|
334
|
+
last_event_at?: string | null | undefined;
|
|
335
|
+
provider_id?: string | null | undefined;
|
|
336
|
+
provider_name?: string | null | undefined;
|
|
337
|
+
schedule_ref?: string | null | undefined;
|
|
338
|
+
source_system?: string | null | undefined;
|
|
339
|
+
specialty?: string | null | undefined;
|
|
340
|
+
start?: string | null | undefined;
|
|
341
|
+
status?: string | null | undefined;
|
|
342
|
+
visit_type_ids?: string | null | undefined;
|
|
343
|
+
visit_type_names?: string | null | undefined;
|
|
344
|
+
}[];
|
|
345
|
+
total: number;
|
|
346
|
+
} & import("../index.js").ResponseMetadata>;
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
export {};
|
|
350
|
+
//# sourceMappingURL=fhir.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fhir.d.ts","sourceRoot":"","sources":["../../../src/resources/fhir.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE,KAAK,CAAC,CAAC,CAAC,SAAS,MAAM,KAAK,IAAI,WAAW,CACzC,KAAK,CAAC,CAAC,CAAC,SAAS;IAAE,GAAG,EAAE;QAAE,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AAQ,CAAC,SAAS;QAChB,mFAAmF;+BACtD,MAAM,WAAW,gBAAgB;;;;;;;;QAU9D,+CAA+C;+BAClB,MAAM,QAAQ,UAAU,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC;;;;;;;;QAQpF,8CAA8C;4BACpB,MAAM,cAAc,MAAM;;;;;;;;QAgBpD,0CAA0C;+BAE1B,MAAM,cACR,MAAM,QACZ,UAAU,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC;;;;;;;;QAkBjD,kDAAkD;mCACjB,MAAM,cAAc,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;MAe5D;IAED,QAAQ,CAAC,KAAK;QACZ,8DAA8D;4BACpC,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAOhD,wBAAwB;gCACM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;QAOxD,yBAAyB;iCACM,2BAA2B;;;;;;;;;;;;;;;;;;;QAO1D,yBAAyB;iCACM,2BAA2B;;;;;;;;;;;;;;;;;;;QAO1D,qBAAqB;6BACM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAOlD;;;WAGG;yBACoB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;MAM3C;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/resources/functions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE,qBAAa,iBAAkB,SAAQ,uBAAuB;IACtD,IAAI;;;;
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/resources/functions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE,qBAAa,iBAAkB,SAAQ,uBAAuB;IACtD,IAAI;;;;0BAyDgq+e,qBAAsB;;;;;;kBAAic,qBAAsB;;;;;IAjDjp/e,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,uBAAuB,CAAC;;sBAiDym+e,qBAAsB;;;;;;cAAic,qBAAsB;;;;IAxCjp/e,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAM3C,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC;;;;;;IAS7E,UAAU;;;;;;;;;;;IAQV,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,cAAc,CAAC;;;;;;;;IASjD,IAAI;;;;0BAQgq+e,qBAAsB;;;;;;kBAAic,qBAAsB;;;;;CADxp/e"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { components } from '../generated/api.js';
|
|
2
|
+
import { WorkspaceScopedResource } from './base.js';
|
|
3
|
+
/**
|
|
4
|
+
* Insights — natural-language analytics on workspace data.
|
|
5
|
+
*
|
|
6
|
+
* Surfaces the schema browser, suggestion catalog, ad-hoc SQL execution,
|
|
7
|
+
* and chat sessions that reason over call/world data. Used by the
|
|
8
|
+
* developer console's Insights tab.
|
|
9
|
+
*
|
|
10
|
+
* @beta New in this release; surface may evolve.
|
|
11
|
+
*/
|
|
12
|
+
export declare class InsightsResource extends WorkspaceScopedResource {
|
|
13
|
+
/** Get the periodic insights digest for the workspace */
|
|
14
|
+
getDigest(): Promise<{
|
|
15
|
+
[x: string]: unknown;
|
|
16
|
+
} & import("../index.js").ResponseMetadata>;
|
|
17
|
+
/** Fetch the queryable schema (tables, columns, joins) the assistant uses */
|
|
18
|
+
getSchema(): Promise<{
|
|
19
|
+
ai_functions: string[];
|
|
20
|
+
databricks_catalogs: string[];
|
|
21
|
+
lakebase_tables: {
|
|
22
|
+
[x: string]: {
|
|
23
|
+
[x: string]: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
uc_functions: {
|
|
27
|
+
[x: string]: string;
|
|
28
|
+
}[];
|
|
29
|
+
} & import("../index.js").ResponseMetadata>;
|
|
30
|
+
/** Get curated query suggestions for the workspace */
|
|
31
|
+
getSuggestions(): Promise<{
|
|
32
|
+
suggestions: string[];
|
|
33
|
+
} & import("../index.js").ResponseMetadata>;
|
|
34
|
+
/** Run an ad-hoc SQL query against the insights warehouse */
|
|
35
|
+
runSql(body: components['schemas']['SqlQueryRequest']): Promise<{
|
|
36
|
+
count?: number | null | undefined;
|
|
37
|
+
error?: string | null | undefined;
|
|
38
|
+
results?: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
}[] | null | undefined;
|
|
41
|
+
} & import("../index.js").ResponseMetadata>;
|
|
42
|
+
readonly sessions: {
|
|
43
|
+
/** Start a new insights chat session */
|
|
44
|
+
create: () => Promise<{
|
|
45
|
+
created_at?: string | null | undefined;
|
|
46
|
+
id: string;
|
|
47
|
+
} & import("../index.js").ResponseMetadata>;
|
|
48
|
+
/** Get a session and its full history */
|
|
49
|
+
get: (sessionId: string) => Promise<{
|
|
50
|
+
[x: string]: unknown;
|
|
51
|
+
} & import("../index.js").ResponseMetadata>;
|
|
52
|
+
/** Send a chat message and get the assistant's response (with any generated SQL/results) */
|
|
53
|
+
chat: (sessionId: string, body: components["schemas"]["ChatRequest"]) => Promise<unknown>;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=insights.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insights.d.ts","sourceRoot":"","sources":["../../../src/resources/insights.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE;;;;;;;;GAQG;AACH,qBAAa,gBAAiB,SAAQ,uBAAuB;IAC3D,yDAAyD;IACnD,SAAS;;;IAQf,6EAA6E;IACvE,SAAS;;;;;;;;;;;;IAQf,sDAAsD;IAChD,cAAc;;;IAQpB,6DAA6D;IACvD,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,iBAAiB,CAAC;;;;;;;IAS3D,QAAQ,CAAC,QAAQ;QACf,wCAAwC;;;;;QAQxC,yCAAyC;yBAClB,MAAM;;;QAO7B,4FAA4F;0BACpE,MAAM,QAAQ,UAAU,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC;MAO3E;CACF"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { components, paths } from '../generated/api.js';
|
|
2
|
+
import { WorkspaceScopedResource } from './base.js';
|
|
3
|
+
export type ListIntakeLinksParams = NonNullable<paths['/v1/{workspace_id}/intake/links']['get']['parameters']['query']>;
|
|
4
|
+
/**
|
|
5
|
+
* Intake — short-lived signed links the workspace shares with patients to
|
|
6
|
+
* collect documents (insurance cards, ID, referrals). Each link can receive
|
|
7
|
+
* multiple uploads; uploads are downloadable for audit/review.
|
|
8
|
+
*
|
|
9
|
+
* @beta New in this release; surface may evolve.
|
|
10
|
+
*/
|
|
11
|
+
export declare class IntakeResource extends WorkspaceScopedResource {
|
|
12
|
+
readonly links: {
|
|
13
|
+
list: (params?: ListIntakeLinksParams) => Promise<{
|
|
14
|
+
created_at: string;
|
|
15
|
+
customer_slug: components["schemas"]["SlugString"];
|
|
16
|
+
display_name: components["schemas"]["NameString"] | null;
|
|
17
|
+
expires_at: string;
|
|
18
|
+
id: string;
|
|
19
|
+
last_upload_at: string | null;
|
|
20
|
+
link_token: string;
|
|
21
|
+
max_uploads: number;
|
|
22
|
+
revoked_at: string | null;
|
|
23
|
+
status: "active" | "expired" | "revoked" | "exhausted";
|
|
24
|
+
upload_count: number;
|
|
25
|
+
upload_url: string;
|
|
26
|
+
workspace_id: string;
|
|
27
|
+
}[] & import("../index.js").ResponseMetadata>;
|
|
28
|
+
create: (body: components["schemas"]["CreateLinkRequest"]) => Promise<{
|
|
29
|
+
created_at: string;
|
|
30
|
+
customer_slug: components["schemas"]["SlugString"];
|
|
31
|
+
display_name: components["schemas"]["NameString"] | null;
|
|
32
|
+
expires_at: string;
|
|
33
|
+
id: string;
|
|
34
|
+
last_upload_at: string | null;
|
|
35
|
+
link_token: string;
|
|
36
|
+
max_uploads: number;
|
|
37
|
+
revoked_at: string | null;
|
|
38
|
+
status: "active" | "expired" | "revoked" | "exhausted";
|
|
39
|
+
upload_count: number;
|
|
40
|
+
upload_url: string;
|
|
41
|
+
workspace_id: string;
|
|
42
|
+
} & import("../index.js").ResponseMetadata>;
|
|
43
|
+
delete: (linkId: string) => Promise<undefined>;
|
|
44
|
+
/** List uploads received against a link */
|
|
45
|
+
listUploads: (linkId: string) => Promise<{
|
|
46
|
+
content_type: string;
|
|
47
|
+
customer_slug: components["schemas"]["SlugString"];
|
|
48
|
+
filename: components["schemas"]["NameString"];
|
|
49
|
+
id: string;
|
|
50
|
+
received_at: string;
|
|
51
|
+
scan_status: "skipped" | "pending" | "clean" | "infected";
|
|
52
|
+
sha256: string;
|
|
53
|
+
size_bytes: number;
|
|
54
|
+
}[] & import("../index.js").ResponseMetadata>;
|
|
55
|
+
/** Get a download URL/payload for a single upload */
|
|
56
|
+
downloadUpload: (linkId: string, uploadId: string) => Promise<string>;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=intake.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intake.d.ts","sourceRoot":"","sources":["../../../src/resources/intake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAC7C,KAAK,CAAC,iCAAiC,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CACvE,CAAA;AAED;;;;;;GAMG;AACH,qBAAa,cAAe,SAAQ,uBAAuB;IACzD,QAAQ,CAAC,KAAK;wBACU,qBAAqB;;2BAuDm+3f,qBAAsB;0BAAyC,qBAAsB;;;;;;;;;;;;uBAhD9k4f,UAAU,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC;;2BAgD+83f,qBAAsB;0BAAyC,qBAAsB;;;;;;;;;;;;yBAxC5k4f,MAAM;QAO7B,2CAA2C;8BACf,MAAM;;2BAgCso6f,qBAAsB;sBAAqC,qBAAsB;;;;;;;QAzBzv6f,qDAAqD;iCACtB,MAAM,YAAY,MAAM;MAexD;CAEF"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { components } from '../generated/api.js';
|
|
2
|
+
import { WorkspaceScopedResource } from './base.js';
|
|
3
|
+
/**
|
|
4
|
+
* Account-scoped operations for the authenticated identity.
|
|
5
|
+
*
|
|
6
|
+
* "Me" is the SDK-side mirror of platform-api's ``/v1/me/...``
|
|
7
|
+
* namespace — operations that act on the caller's own account
|
|
8
|
+
* (workspaces they own, profile info, …) rather than on a specific
|
|
9
|
+
* workspace they're inside of.
|
|
10
|
+
*
|
|
11
|
+
* Workspace creation lives here, NOT on ``client.workspaces``. The
|
|
12
|
+
* legacy ``client.workspaces.createSelfService`` (which posted to
|
|
13
|
+
* ``/v1/workspaces/self-service``) was removed in SDK 0.28.0 because
|
|
14
|
+
* the route shape confused URL-parsing consumers — the developer-console
|
|
15
|
+
* BFF proxy treated the literal ``self-service`` as a workspace_id
|
|
16
|
+
* and sent identity a JWT-refresh request scoped to that string,
|
|
17
|
+
* which 4xx'd before the call ever reached platform-api.
|
|
18
|
+
*
|
|
19
|
+
* Even though the underlying call is account-scoped, this resource
|
|
20
|
+
* extends ``WorkspaceScopedResource`` to inherit ``withOptions`` /
|
|
21
|
+
* iteration helpers / scoped-client wiring. The bound
|
|
22
|
+
* ``workspaceId`` is unused for the routes here — typically a
|
|
23
|
+
* placeholder like ``"_account"`` from the AmigoClient construction.
|
|
24
|
+
*
|
|
25
|
+
* **No workspace context is injected into the HTTP request.** The
|
|
26
|
+
* shared ``PlatformFetch`` middleware does not auto-prefix paths or
|
|
27
|
+
* inject ``X-Workspace-Id``-style headers based on the resource's
|
|
28
|
+
* ``workspaceId`` slot — the URL each method writes is the URL that
|
|
29
|
+
* leaves the client. Pinned by ``tests/resources/me.test.ts``'s
|
|
30
|
+
* exact-URL assertion.
|
|
31
|
+
*/
|
|
32
|
+
export declare class MeResource extends WorkspaceScopedResource {
|
|
33
|
+
/**
|
|
34
|
+
* Create a workspace owned by the authenticated identity.
|
|
35
|
+
*
|
|
36
|
+
* The caller is bootstrapped as the workspace's owner. Use this
|
|
37
|
+
* method anywhere that previously called
|
|
38
|
+
* ``client.workspaces.createSelfService(body)`` — the request body
|
|
39
|
+
* shape and response are unchanged; only the URL moved.
|
|
40
|
+
*/
|
|
41
|
+
createWorkspace(body: components['schemas']['CreateWorkspaceRequest']): Promise<{
|
|
42
|
+
backend_org_id: string | null;
|
|
43
|
+
connector_type: string | null;
|
|
44
|
+
created_at: string;
|
|
45
|
+
environment: string;
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
provisioned_at: string | null;
|
|
49
|
+
region: string;
|
|
50
|
+
slug: string;
|
|
51
|
+
updated_at: string;
|
|
52
|
+
} & import("../index.js").ResponseMetadata>;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=me.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"me.d.ts","sourceRoot":"","sources":["../../../src/resources/me.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAA;AAElG;;GAEG;AACH,qBAAa,eAAgB,SAAQ,uBAAuB;IAC1D,6DAA6D;IACvD,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQhB,4DAA4D;IACtD,UAAU;;;;;;;iBAgCorhiB,qBAAsB;;;kBAA2X,qBAAsB;;;;IAxB3miiB,6EAA6E;IACvE,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAW9D,wDAAwD;IAClD,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAU7D"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type { components, paths } from '../generated/api.js';
|
|
2
|
+
import { WorkspaceScopedResource } from './base.js';
|
|
3
|
+
export type ListMonitorConceptsParams = NonNullable<paths['/v1/{workspace_id}/monitor-concepts']['get']['parameters']['query']>;
|
|
4
|
+
/**
|
|
5
|
+
* Manage workspace monitor concepts — semantic patterns the platform watches
|
|
6
|
+
* across calls to surface emerging behavior. Each concept holds a name,
|
|
7
|
+
* description, and detection rules; the platform indexes them and lights
|
|
8
|
+
* them up against live and historical traffic.
|
|
9
|
+
*
|
|
10
|
+
* @beta New in this release; surface may evolve.
|
|
11
|
+
*/
|
|
12
|
+
export declare class MonitorConceptsResource extends WorkspaceScopedResource {
|
|
13
|
+
/** Create a new monitor concept */
|
|
14
|
+
create(body: components['schemas']['CreateMonitorConceptRequest']): Promise<{
|
|
15
|
+
agent_config: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
};
|
|
18
|
+
created_at: string;
|
|
19
|
+
description: string;
|
|
20
|
+
escalation: {
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
};
|
|
23
|
+
has_embedding: boolean;
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
standalone_threshold: number;
|
|
27
|
+
tags: string[];
|
|
28
|
+
threshold: number;
|
|
29
|
+
updated_at: string;
|
|
30
|
+
workspace_id: string;
|
|
31
|
+
} & import("../index.js").ResponseMetadata>;
|
|
32
|
+
/** List monitor concepts in the workspace */
|
|
33
|
+
list(params?: ListMonitorConceptsParams): Promise<{
|
|
34
|
+
continuation_token?: number | null | undefined;
|
|
35
|
+
has_more: boolean;
|
|
36
|
+
items: {
|
|
37
|
+
agent_config: {
|
|
38
|
+
[x: string]: unknown;
|
|
39
|
+
};
|
|
40
|
+
created_at: string;
|
|
41
|
+
description: string;
|
|
42
|
+
escalation: {
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
has_embedding: boolean;
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
standalone_threshold: number;
|
|
49
|
+
tags: string[];
|
|
50
|
+
threshold: number;
|
|
51
|
+
updated_at: string;
|
|
52
|
+
workspace_id: string;
|
|
53
|
+
}[];
|
|
54
|
+
total?: number | null | undefined;
|
|
55
|
+
} & import("../index.js").ResponseMetadata>;
|
|
56
|
+
listAutoPaging(params?: ListMonitorConceptsParams): AsyncGenerator<{
|
|
57
|
+
agent_config: {
|
|
58
|
+
[x: string]: unknown;
|
|
59
|
+
};
|
|
60
|
+
created_at: string;
|
|
61
|
+
description: string;
|
|
62
|
+
escalation: {
|
|
63
|
+
[x: string]: unknown;
|
|
64
|
+
};
|
|
65
|
+
has_embedding: boolean;
|
|
66
|
+
id: string;
|
|
67
|
+
name: string;
|
|
68
|
+
standalone_threshold: number;
|
|
69
|
+
tags: string[];
|
|
70
|
+
threshold: number;
|
|
71
|
+
updated_at: string;
|
|
72
|
+
workspace_id: string;
|
|
73
|
+
}, any, any>;
|
|
74
|
+
/** Get a single monitor concept */
|
|
75
|
+
get(conceptId: string): Promise<{
|
|
76
|
+
agent_config: {
|
|
77
|
+
[x: string]: unknown;
|
|
78
|
+
};
|
|
79
|
+
created_at: string;
|
|
80
|
+
description: string;
|
|
81
|
+
escalation: {
|
|
82
|
+
[x: string]: unknown;
|
|
83
|
+
};
|
|
84
|
+
has_embedding: boolean;
|
|
85
|
+
id: string;
|
|
86
|
+
name: string;
|
|
87
|
+
standalone_threshold: number;
|
|
88
|
+
tags: string[];
|
|
89
|
+
threshold: number;
|
|
90
|
+
updated_at: string;
|
|
91
|
+
workspace_id: string;
|
|
92
|
+
} & import("../index.js").ResponseMetadata>;
|
|
93
|
+
/** Update a monitor concept */
|
|
94
|
+
update(conceptId: string, body: components['schemas']['UpdateMonitorConceptRequest']): Promise<{
|
|
95
|
+
agent_config: {
|
|
96
|
+
[x: string]: unknown;
|
|
97
|
+
};
|
|
98
|
+
created_at: string;
|
|
99
|
+
description: string;
|
|
100
|
+
escalation: {
|
|
101
|
+
[x: string]: unknown;
|
|
102
|
+
};
|
|
103
|
+
has_embedding: boolean;
|
|
104
|
+
id: string;
|
|
105
|
+
name: string;
|
|
106
|
+
standalone_threshold: number;
|
|
107
|
+
tags: string[];
|
|
108
|
+
threshold: number;
|
|
109
|
+
updated_at: string;
|
|
110
|
+
workspace_id: string;
|
|
111
|
+
} & import("../index.js").ResponseMetadata>;
|
|
112
|
+
/** Delete a monitor concept */
|
|
113
|
+
delete(conceptId: string): Promise<undefined>;
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=monitor-concepts.d.ts.map
|