@amigo-ai/platform-sdk 0.9.0 → 0.9.1
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/api.md +1 -0
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +2 -2
- package/dist/resources/calls.js +6 -0
- package/dist/resources/calls.js.map +1 -1
- package/dist/types/generated/api.d.ts +258 -5
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/calls.d.ts +73 -0
- package/dist/types/resources/calls.d.ts.map +1 -1
- package/dist/types/resources/functions.d.ts.map +1 -1
- package/dist/types/resources/metrics.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/resources/calls.js
CHANGED
|
@@ -19,6 +19,12 @@ export class CallsResource extends WorkspaceScopedResource {
|
|
|
19
19
|
params: { path: { workspace_id: this.workspaceId, call_id: callId } },
|
|
20
20
|
}));
|
|
21
21
|
}
|
|
22
|
+
/** Get the canonical playback timeline for a call */
|
|
23
|
+
async getTimeline(callId) {
|
|
24
|
+
return extractData(await this.client.GET('/v1/{workspace_id}/calls/{call_id}/timeline', {
|
|
25
|
+
params: { path: { workspace_id: this.workspaceId, call_id: callId } },
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
22
28
|
/** Get AI intelligence for a call */
|
|
23
29
|
async getIntelligence(callId) {
|
|
24
30
|
return extractData(await this.client.GET('/v1/{workspace_id}/calls/{call_id}/intelligence', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calls.js","sourceRoot":"","sources":["../../src/resources/calls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAiBhE;;;GAGG;AACH,MAAM,OAAO,aAAc,SAAQ,uBAAuB;IACxD,yCAAyC;IACzC,KAAK,CAAC,IAAI,CAAC,MAAwB;QACj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,mDAAmD;IACnD,KAAK,CAAC,aAAa,CAAC,MAA0B;QAC5C,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,qCAAqC,EAAE;YAC3D,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;SACpE,CAAC,CACH,CAAA;IACH,CAAC;IAED,6CAA6C;IAC7C,KAAK,CAAC,cAAc,CAAC,MAA0B;QAC7C,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,uCAAuC,EAAE;YAC7D,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;SACpE,CAAC,CACH,CAAA;IACH,CAAC;IAED,mCAAmC;IACnC,KAAK,CAAC,gBAAgB,CAAC,MAAc;QACnC,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,mDAAmD,EAAE;YACzE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;SACtE,CAAC,CACH,CAAA;IACH,CAAC;CACF"}
|
|
@@ -1662,6 +1662,46 @@ export interface paths {
|
|
|
1662
1662
|
patch?: never;
|
|
1663
1663
|
trace?: never;
|
|
1664
1664
|
};
|
|
1665
|
+
"/v1/{workspace_id}/calls/{call_id}/metrics": {
|
|
1666
|
+
parameters: {
|
|
1667
|
+
query?: never;
|
|
1668
|
+
header?: never;
|
|
1669
|
+
path?: never;
|
|
1670
|
+
cookie?: never;
|
|
1671
|
+
};
|
|
1672
|
+
/**
|
|
1673
|
+
* Call metric values
|
|
1674
|
+
* @description Latest per-call Universal Metric Store values for the call detail sidebar.
|
|
1675
|
+
*/
|
|
1676
|
+
get: operations["list-call-metric-values"];
|
|
1677
|
+
put?: never;
|
|
1678
|
+
post?: never;
|
|
1679
|
+
delete?: never;
|
|
1680
|
+
options?: never;
|
|
1681
|
+
head?: never;
|
|
1682
|
+
patch?: never;
|
|
1683
|
+
trace?: never;
|
|
1684
|
+
};
|
|
1685
|
+
"/v1/{workspace_id}/calls/{call_id}/timeline": {
|
|
1686
|
+
parameters: {
|
|
1687
|
+
query?: never;
|
|
1688
|
+
header?: never;
|
|
1689
|
+
path?: never;
|
|
1690
|
+
cookie?: never;
|
|
1691
|
+
};
|
|
1692
|
+
/**
|
|
1693
|
+
* Call playback timeline
|
|
1694
|
+
* @description Canonical playback timeline for the call detail visualization. This is the same strongly typed timeline model embedded in the call detail response, exposed directly for timeline-only consumers.
|
|
1695
|
+
*/
|
|
1696
|
+
get: operations["get-call-timeline"];
|
|
1697
|
+
put?: never;
|
|
1698
|
+
post?: never;
|
|
1699
|
+
delete?: never;
|
|
1700
|
+
options?: never;
|
|
1701
|
+
head?: never;
|
|
1702
|
+
patch?: never;
|
|
1703
|
+
trace?: never;
|
|
1704
|
+
};
|
|
1665
1705
|
"/v1/{workspace_id}/calls/{call_id}/trace-analysis": {
|
|
1666
1706
|
parameters: {
|
|
1667
1707
|
query?: never;
|
|
@@ -3916,6 +3956,26 @@ export interface paths {
|
|
|
3916
3956
|
patch?: never;
|
|
3917
3957
|
trace?: never;
|
|
3918
3958
|
};
|
|
3959
|
+
"/v1/{workspace_id}/metrics/{metric_key}/evaluate": {
|
|
3960
|
+
parameters: {
|
|
3961
|
+
query?: never;
|
|
3962
|
+
header?: never;
|
|
3963
|
+
path?: never;
|
|
3964
|
+
cookie?: never;
|
|
3965
|
+
};
|
|
3966
|
+
get?: never;
|
|
3967
|
+
put?: never;
|
|
3968
|
+
/**
|
|
3969
|
+
* Evaluate a metric once without storing it
|
|
3970
|
+
* @description Execute one metric definition without persisting to UMS.
|
|
3971
|
+
*/
|
|
3972
|
+
post: operations["evaluate-metric"];
|
|
3973
|
+
delete?: never;
|
|
3974
|
+
options?: never;
|
|
3975
|
+
head?: never;
|
|
3976
|
+
patch?: never;
|
|
3977
|
+
trace?: never;
|
|
3978
|
+
};
|
|
3919
3979
|
"/v1/{workspace_id}/metrics/{metric_key}/trend": {
|
|
3920
3980
|
parameters: {
|
|
3921
3981
|
query?: never;
|
|
@@ -10912,7 +10972,7 @@ export interface components {
|
|
|
10912
10972
|
[key: string]: unknown;
|
|
10913
10973
|
}[];
|
|
10914
10974
|
/** Page Context */
|
|
10915
|
-
page_context?: ("home" | "patients" | "calls" | "analytics" | "pipeline" | "operators" | "surfaces" | "compliance" | "custom") | null;
|
|
10975
|
+
page_context?: ("home" | "patients" | "calls" | "data" | "analytics" | "pipeline" | "operators" | "surfaces" | "compliance" | "custom") | null;
|
|
10916
10976
|
/** Panels */
|
|
10917
10977
|
panels?: {
|
|
10918
10978
|
[key: string]: unknown;
|
|
@@ -14262,8 +14322,14 @@ export interface components {
|
|
|
14262
14322
|
address?: {
|
|
14263
14323
|
[key: string]: unknown;
|
|
14264
14324
|
} | null;
|
|
14325
|
+
/** Address Line */
|
|
14326
|
+
address_line?: string | null;
|
|
14265
14327
|
/** Canonical Id */
|
|
14266
14328
|
canonical_id?: string | null;
|
|
14329
|
+
/** City */
|
|
14330
|
+
city?: string | null;
|
|
14331
|
+
/** Country */
|
|
14332
|
+
country?: string | null;
|
|
14267
14333
|
/** Entity Id */
|
|
14268
14334
|
entity_id: string;
|
|
14269
14335
|
/**
|
|
@@ -14271,18 +14337,30 @@ export interface components {
|
|
|
14271
14337
|
* @default 0
|
|
14272
14338
|
*/
|
|
14273
14339
|
event_count?: number;
|
|
14340
|
+
/** Facility Id */
|
|
14341
|
+
facility_id?: string | null;
|
|
14274
14342
|
/** Hours */
|
|
14275
14343
|
hours?: {
|
|
14276
14344
|
[key: string]: unknown;
|
|
14277
14345
|
} | null;
|
|
14278
14346
|
/** Last Event At */
|
|
14279
14347
|
last_event_at?: string | null;
|
|
14348
|
+
/** Latitude */
|
|
14349
|
+
latitude?: number | null;
|
|
14350
|
+
/** Longitude */
|
|
14351
|
+
longitude?: number | null;
|
|
14280
14352
|
/** Name */
|
|
14281
14353
|
name?: string | null;
|
|
14282
14354
|
/** Phone */
|
|
14283
14355
|
phone?: string | null;
|
|
14356
|
+
/** Postal Code */
|
|
14357
|
+
postal_code?: string | null;
|
|
14284
14358
|
/** Source System */
|
|
14285
14359
|
source_system?: string | null;
|
|
14360
|
+
/** State */
|
|
14361
|
+
state?: string | null;
|
|
14362
|
+
/** Timezone */
|
|
14363
|
+
timezone?: string | null;
|
|
14286
14364
|
};
|
|
14287
14365
|
/** FhirOrganizationListResponse */
|
|
14288
14366
|
FhirOrganizationListResponse: {
|
|
@@ -16661,6 +16739,42 @@ export interface components {
|
|
|
16661
16739
|
*/
|
|
16662
16740
|
valid_range_min?: number | null;
|
|
16663
16741
|
};
|
|
16742
|
+
/** MetricEvaluateRequest */
|
|
16743
|
+
MetricEvaluateRequest: {
|
|
16744
|
+
/**
|
|
16745
|
+
* As Of
|
|
16746
|
+
* @description Optional point-in-time cutoff for selecting the call intelligence snapshot.
|
|
16747
|
+
*/
|
|
16748
|
+
as_of?: string | null;
|
|
16749
|
+
/**
|
|
16750
|
+
* Persist
|
|
16751
|
+
* @description On-demand metric evaluation never writes to metrics.metric_values.
|
|
16752
|
+
* @default false
|
|
16753
|
+
* @constant
|
|
16754
|
+
*/
|
|
16755
|
+
persist?: false;
|
|
16756
|
+
/**
|
|
16757
|
+
* Subject Id
|
|
16758
|
+
* @description CallSid, call UUID, or simulation session id
|
|
16759
|
+
*/
|
|
16760
|
+
subject_id: string;
|
|
16761
|
+
};
|
|
16762
|
+
/** MetricEvaluateResponse */
|
|
16763
|
+
MetricEvaluateResponse: {
|
|
16764
|
+
/**
|
|
16765
|
+
* Evaluated At
|
|
16766
|
+
* Format: date-time
|
|
16767
|
+
*/
|
|
16768
|
+
evaluated_at: string;
|
|
16769
|
+
/** Metric */
|
|
16770
|
+
metric: components["schemas"]["NumericalMetricValueResponse"] | components["schemas"]["CategoricalMetricValueResponse"] | components["schemas"]["BooleanMetricValueResponse"];
|
|
16771
|
+
/**
|
|
16772
|
+
* Persisted
|
|
16773
|
+
* @default false
|
|
16774
|
+
* @constant
|
|
16775
|
+
*/
|
|
16776
|
+
persisted?: false;
|
|
16777
|
+
};
|
|
16664
16778
|
/** MetricListResponse */
|
|
16665
16779
|
MetricListResponse: {
|
|
16666
16780
|
/** Metrics */
|
|
@@ -23090,7 +23204,7 @@ export interface components {
|
|
|
23090
23204
|
[key: string]: unknown;
|
|
23091
23205
|
}[] | null;
|
|
23092
23206
|
/** Page Context */
|
|
23093
|
-
page_context?: ("home" | "patients" | "calls" | "analytics" | "pipeline" | "operators" | "surfaces" | "compliance" | "custom") | null;
|
|
23207
|
+
page_context?: ("home" | "patients" | "calls" | "data" | "analytics" | "pipeline" | "operators" | "surfaces" | "compliance" | "custom") | null;
|
|
23094
23208
|
/** Panels */
|
|
23095
23209
|
panels?: {
|
|
23096
23210
|
[key: string]: unknown;
|
|
@@ -28618,6 +28732,80 @@ export interface operations {
|
|
|
28618
28732
|
};
|
|
28619
28733
|
};
|
|
28620
28734
|
};
|
|
28735
|
+
"list-call-metric-values": {
|
|
28736
|
+
parameters: {
|
|
28737
|
+
query?: {
|
|
28738
|
+
/** @description Max metric values to return */
|
|
28739
|
+
limit?: number;
|
|
28740
|
+
};
|
|
28741
|
+
header?: never;
|
|
28742
|
+
path: {
|
|
28743
|
+
call_id: string;
|
|
28744
|
+
workspace_id: string;
|
|
28745
|
+
};
|
|
28746
|
+
cookie?: never;
|
|
28747
|
+
};
|
|
28748
|
+
requestBody?: never;
|
|
28749
|
+
responses: {
|
|
28750
|
+
/** @description Successful Response */
|
|
28751
|
+
200: {
|
|
28752
|
+
headers: {
|
|
28753
|
+
[name: string]: unknown;
|
|
28754
|
+
};
|
|
28755
|
+
content: {
|
|
28756
|
+
"application/json": components["schemas"]["MetricListResponse"];
|
|
28757
|
+
};
|
|
28758
|
+
};
|
|
28759
|
+
/** @description Validation Error */
|
|
28760
|
+
422: {
|
|
28761
|
+
headers: {
|
|
28762
|
+
[name: string]: unknown;
|
|
28763
|
+
};
|
|
28764
|
+
content: {
|
|
28765
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
28766
|
+
};
|
|
28767
|
+
};
|
|
28768
|
+
};
|
|
28769
|
+
};
|
|
28770
|
+
"get-call-timeline": {
|
|
28771
|
+
parameters: {
|
|
28772
|
+
query?: never;
|
|
28773
|
+
header?: never;
|
|
28774
|
+
path: {
|
|
28775
|
+
call_id: string;
|
|
28776
|
+
workspace_id: string;
|
|
28777
|
+
};
|
|
28778
|
+
cookie?: never;
|
|
28779
|
+
};
|
|
28780
|
+
requestBody?: never;
|
|
28781
|
+
responses: {
|
|
28782
|
+
/** @description Successful Response */
|
|
28783
|
+
200: {
|
|
28784
|
+
headers: {
|
|
28785
|
+
[name: string]: unknown;
|
|
28786
|
+
};
|
|
28787
|
+
content: {
|
|
28788
|
+
"application/json": components["schemas"]["PlaybackTimeline"];
|
|
28789
|
+
};
|
|
28790
|
+
};
|
|
28791
|
+
/** @description Call not found */
|
|
28792
|
+
404: {
|
|
28793
|
+
headers: {
|
|
28794
|
+
[name: string]: unknown;
|
|
28795
|
+
};
|
|
28796
|
+
content?: never;
|
|
28797
|
+
};
|
|
28798
|
+
/** @description Validation Error */
|
|
28799
|
+
422: {
|
|
28800
|
+
headers: {
|
|
28801
|
+
[name: string]: unknown;
|
|
28802
|
+
};
|
|
28803
|
+
content: {
|
|
28804
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
28805
|
+
};
|
|
28806
|
+
};
|
|
28807
|
+
};
|
|
28808
|
+
};
|
|
28621
28809
|
"get-call-trace-analysis": {
|
|
28622
28810
|
parameters: {
|
|
28623
28811
|
query?: never;
|
|
@@ -29600,7 +29788,7 @@ export interface operations {
|
|
|
29600
29788
|
list_dashboards_v1__workspace_id__dashboards_get: {
|
|
29601
29789
|
parameters: {
|
|
29602
29790
|
query?: {
|
|
29603
|
-
page_context?: ("home" | "patients" | "calls" | "analytics" | "pipeline" | "operators" | "surfaces" | "compliance" | "custom") | null;
|
|
29791
|
+
page_context?: ("home" | "patients" | "calls" | "data" | "analytics" | "pipeline" | "operators" | "surfaces" | "compliance" | "custom") | null;
|
|
29604
29792
|
limit?: number;
|
|
29605
29793
|
continuation_token?: number;
|
|
29606
29794
|
};
|
|
@@ -33376,7 +33564,8 @@ export interface operations {
|
|
|
33376
33564
|
};
|
|
33377
33565
|
header?: never;
|
|
33378
33566
|
path: {
|
|
33379
|
-
|
|
33567
|
+
/** @description Metric key */
|
|
33568
|
+
metric_key: components["schemas"]["SlugString"];
|
|
33380
33569
|
workspace_id: string;
|
|
33381
33570
|
};
|
|
33382
33571
|
cookie?: never;
|
|
@@ -33410,6 +33599,69 @@ export interface operations {
|
|
|
33410
33599
|
};
|
|
33411
33600
|
};
|
|
33412
33601
|
};
|
|
33602
|
+
"evaluate-metric": {
|
|
33603
|
+
parameters: {
|
|
33604
|
+
query?: never;
|
|
33605
|
+
header?: never;
|
|
33606
|
+
path: {
|
|
33607
|
+
/** @description Metric key */
|
|
33608
|
+
metric_key: components["schemas"]["SlugString"];
|
|
33609
|
+
workspace_id: string;
|
|
33610
|
+
};
|
|
33611
|
+
cookie?: never;
|
|
33612
|
+
};
|
|
33613
|
+
requestBody: {
|
|
33614
|
+
content: {
|
|
33615
|
+
"application/json": components["schemas"]["MetricEvaluateRequest"];
|
|
33616
|
+
};
|
|
33617
|
+
};
|
|
33618
|
+
responses: {
|
|
33619
|
+
/** @description Successful Response */
|
|
33620
|
+
200: {
|
|
33621
|
+
headers: {
|
|
33622
|
+
[name: string]: unknown;
|
|
33623
|
+
};
|
|
33624
|
+
content: {
|
|
33625
|
+
"application/json": components["schemas"]["MetricEvaluateResponse"];
|
|
33626
|
+
};
|
|
33627
|
+
};
|
|
33628
|
+
/** @description Metric or call intelligence not found */
|
|
33629
|
+
404: {
|
|
33630
|
+
headers: {
|
|
33631
|
+
[name: string]: unknown;
|
|
33632
|
+
};
|
|
33633
|
+
content?: never;
|
|
33634
|
+
};
|
|
33635
|
+
/** @description Metric cannot be evaluated on demand */
|
|
33636
|
+
422: {
|
|
33637
|
+
headers: {
|
|
33638
|
+
[name: string]: unknown;
|
|
33639
|
+
};
|
|
33640
|
+
content?: never;
|
|
33641
|
+
};
|
|
33642
|
+
/** @description Rate limited */
|
|
33643
|
+
429: {
|
|
33644
|
+
headers: {
|
|
33645
|
+
[name: string]: unknown;
|
|
33646
|
+
};
|
|
33647
|
+
content?: never;
|
|
33648
|
+
};
|
|
33649
|
+
/** @description Metric preview query failed */
|
|
33650
|
+
502: {
|
|
33651
|
+
headers: {
|
|
33652
|
+
[name: string]: unknown;
|
|
33653
|
+
};
|
|
33654
|
+
content?: never;
|
|
33655
|
+
};
|
|
33656
|
+
/** @description Analytics warehouse not configured */
|
|
33657
|
+
503: {
|
|
33658
|
+
headers: {
|
|
33659
|
+
[name: string]: unknown;
|
|
33660
|
+
};
|
|
33661
|
+
content?: never;
|
|
33662
|
+
};
|
|
33663
|
+
};
|
|
33664
|
+
};
|
|
33413
33665
|
"get-metric-trend": {
|
|
33414
33666
|
parameters: {
|
|
33415
33667
|
query?: {
|
|
@@ -33424,7 +33676,8 @@ export interface operations {
|
|
|
33424
33676
|
};
|
|
33425
33677
|
header?: never;
|
|
33426
33678
|
path: {
|
|
33427
|
-
|
|
33679
|
+
/** @description Metric key */
|
|
33680
|
+
metric_key: components["schemas"]["SlugString"];
|
|
33428
33681
|
workspace_id: string;
|
|
33429
33682
|
};
|
|
33430
33683
|
cookie?: never;
|