@amigo-ai/platform-sdk 0.5.1 → 0.5.3
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 +81 -7
- package/api.md +5 -0
- package/dist/index.cjs +43 -10
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -10
- package/dist/index.mjs.map +2 -2
- package/dist/resources/base.js +7 -2
- package/dist/resources/base.js.map +1 -1
- package/dist/resources/operators.js.map +1 -1
- package/dist/resources/personas.js.map +1 -1
- package/dist/resources/webhook-destinations.js.map +1 -1
- package/dist/resources/workspaces.js +22 -0
- package/dist/resources/workspaces.js.map +1 -1
- package/dist/resources/world.js.map +1 -1
- package/dist/types/generated/api.d.ts +13373 -13213
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/resources/actions.d.ts +166 -166
- package/dist/types/resources/agents.d.ts +88 -88
- package/dist/types/resources/analytics.d.ts +39 -39
- package/dist/types/resources/api-keys.d.ts +29 -29
- package/dist/types/resources/audit.d.ts +73 -73
- package/dist/types/resources/base.d.ts.map +1 -1
- package/dist/types/resources/billing.d.ts +36 -36
- package/dist/types/resources/calls.d.ts +106 -106
- package/dist/types/resources/compliance.d.ts +17 -17
- package/dist/types/resources/context-graphs.d.ts +643 -643
- package/dist/types/resources/data-sources.d.ts +81 -81
- package/dist/types/resources/functions.d.ts +22 -22
- package/dist/types/resources/functions.d.ts.map +1 -1
- package/dist/types/resources/integrations.d.ts +258 -258
- package/dist/types/resources/memory.d.ts +35 -35
- package/dist/types/resources/operators.d.ts +147 -147
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/personas.d.ts +37 -37
- package/dist/types/resources/personas.d.ts.map +1 -1
- package/dist/types/resources/phone-numbers.d.ts +62 -62
- package/dist/types/resources/recordings.d.ts +9 -9
- package/dist/types/resources/review-queue.d.ts +331 -331
- package/dist/types/resources/safety.d.ts +33 -33
- package/dist/types/resources/services.d.ts +142 -142
- package/dist/types/resources/settings.d.ts +254 -254
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +73 -73
- package/dist/types/resources/skills.d.ts +163 -163
- package/dist/types/resources/triggers.d.ts +74 -74
- package/dist/types/resources/webhook-destinations.d.ts +57 -57
- package/dist/types/resources/webhook-destinations.d.ts.map +1 -1
- package/dist/types/resources/workspaces.d.ts +69 -35
- package/dist/types/resources/workspaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts +216 -216
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -8,79 +8,79 @@ export interface ListPersonasParams extends ListParams {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class PersonasResource extends WorkspaceScopedResource {
|
|
10
10
|
list(params?: ListPersonasParams): Promise<{
|
|
11
|
-
continuation_token?: number | null | undefined;
|
|
12
|
-
has_more: boolean;
|
|
13
11
|
items: {
|
|
14
|
-
|
|
12
|
+
id: string;
|
|
13
|
+
workspace_id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
role: string;
|
|
16
|
+
developed_by: string;
|
|
15
17
|
communication_style: {
|
|
16
18
|
[x: string]: unknown;
|
|
17
19
|
};
|
|
18
|
-
created_at: string;
|
|
19
20
|
default_language: string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
name: string;
|
|
23
|
-
role: string;
|
|
21
|
+
background: string;
|
|
22
|
+
created_at: string;
|
|
24
23
|
updated_at: string;
|
|
25
|
-
workspace_id: string;
|
|
26
24
|
}[];
|
|
25
|
+
has_more: boolean;
|
|
26
|
+
continuation_token?: number | null | undefined;
|
|
27
27
|
total?: number | null | undefined;
|
|
28
28
|
} & import("../index.js").ResponseMetadata>;
|
|
29
29
|
listAutoPaging(params?: ListPersonasParams): AsyncGenerator<{
|
|
30
|
-
|
|
30
|
+
id: string;
|
|
31
|
+
workspace_id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
role: string;
|
|
34
|
+
developed_by: string;
|
|
31
35
|
communication_style: {
|
|
32
36
|
[x: string]: unknown;
|
|
33
37
|
};
|
|
34
|
-
created_at: string;
|
|
35
38
|
default_language: string;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
name: string;
|
|
39
|
-
role: string;
|
|
39
|
+
background: string;
|
|
40
|
+
created_at: string;
|
|
40
41
|
updated_at: string;
|
|
41
|
-
workspace_id: string;
|
|
42
42
|
}, any, any>;
|
|
43
43
|
create(body: components['schemas']['CreatePersonaRequest']): Promise<{
|
|
44
|
-
|
|
44
|
+
id: string;
|
|
45
|
+
workspace_id: string;
|
|
46
|
+
name: string;
|
|
47
|
+
role: string;
|
|
48
|
+
developed_by: string;
|
|
45
49
|
communication_style: {
|
|
46
50
|
[x: string]: unknown;
|
|
47
51
|
};
|
|
48
|
-
created_at: string;
|
|
49
52
|
default_language: string;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
name: string;
|
|
53
|
-
role: string;
|
|
53
|
+
background: string;
|
|
54
|
+
created_at: string;
|
|
54
55
|
updated_at: string;
|
|
55
|
-
workspace_id: string;
|
|
56
56
|
} & import("../index.js").ResponseMetadata>;
|
|
57
57
|
get(personaId: PersonaId | string): Promise<{
|
|
58
|
-
|
|
58
|
+
id: string;
|
|
59
|
+
workspace_id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
role: string;
|
|
62
|
+
developed_by: string;
|
|
59
63
|
communication_style: {
|
|
60
64
|
[x: string]: unknown;
|
|
61
65
|
};
|
|
62
|
-
created_at: string;
|
|
63
66
|
default_language: string;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
name: string;
|
|
67
|
-
role: string;
|
|
67
|
+
background: string;
|
|
68
|
+
created_at: string;
|
|
68
69
|
updated_at: string;
|
|
69
|
-
workspace_id: string;
|
|
70
70
|
} & import("../index.js").ResponseMetadata>;
|
|
71
71
|
update(personaId: PersonaId | string, body: components['schemas']['UpdatePersonaRequest']): Promise<{
|
|
72
|
-
|
|
72
|
+
id: string;
|
|
73
|
+
workspace_id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
role: string;
|
|
76
|
+
developed_by: string;
|
|
73
77
|
communication_style: {
|
|
74
78
|
[x: string]: unknown;
|
|
75
79
|
};
|
|
76
|
-
created_at: string;
|
|
77
80
|
default_language: string;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
name: string;
|
|
81
|
-
role: string;
|
|
81
|
+
background: string;
|
|
82
|
+
created_at: string;
|
|
82
83
|
updated_at: string;
|
|
83
|
-
workspace_id: string;
|
|
84
84
|
} & import("../index.js").ResponseMetadata>;
|
|
85
85
|
delete(personaId: PersonaId | string): Promise<void>;
|
|
86
86
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"personas.d.ts","sourceRoot":"","sources":["../../../src/resources/personas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED,qBAAa,gBAAiB,SAAQ,uBAAuB;IACrD,IAAI,CAAC,MAAM,CAAC,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;;IAQtC,cAAc,CAAC,MAAM,CAAC,EAAE,kBAAkB;;;;;;;;;;;;;;IAIpC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;;IAS1D,GAAG,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM;;;;;;;;;;;;;;IAQjC,MAAM,
|
|
1
|
+
{"version":3,"file":"personas.d.ts","sourceRoot":"","sources":["../../../src/resources/personas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED,qBAAa,gBAAiB,SAAQ,uBAAuB;IACrD,IAAI,CAAC,MAAM,CAAC,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;;IAQtC,cAAc,CAAC,MAAM,CAAC,EAAE,kBAAkB;;;;;;;;;;;;;;IAIpC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;;IAS1D,GAAG,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM;;;;;;;;;;;;;;IAQjC,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;;IASzF,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAK3D"}
|
|
@@ -9,129 +9,129 @@ import type { ListParams } from '../core/utils.js';
|
|
|
9
9
|
export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
10
10
|
/** Create a new phone number */
|
|
11
11
|
provision(body: components['schemas']['CreatePhoneNumberRequest']): Promise<{
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
id: string;
|
|
13
|
+
workspace_id: string;
|
|
14
|
+
phone_number: string;
|
|
14
15
|
display_name: string;
|
|
16
|
+
provider: string;
|
|
17
|
+
capabilities: string[];
|
|
18
|
+
status: string;
|
|
19
|
+
inbound_service_id: string | null;
|
|
20
|
+
provider_phone_sid: string | null;
|
|
21
|
+
notes: string;
|
|
15
22
|
forwarding: {
|
|
16
23
|
enabled: boolean;
|
|
17
24
|
forward_to: string;
|
|
18
25
|
should_disconnect: boolean;
|
|
19
26
|
} | null;
|
|
20
|
-
|
|
21
|
-
inbound_service_id: string | null;
|
|
22
|
-
notes: string;
|
|
23
|
-
phone_number: string;
|
|
24
|
-
provider: string;
|
|
25
|
-
provider_phone_sid: string | null;
|
|
26
|
-
status: string;
|
|
27
|
+
created_at: string;
|
|
27
28
|
updated_at: string;
|
|
28
|
-
workspace_id: string;
|
|
29
29
|
} & import("../index.js").ResponseMetadata>;
|
|
30
30
|
/** List phone numbers in the workspace */
|
|
31
31
|
list(params?: ListParams): Promise<{
|
|
32
|
-
continuation_token?: number | null | undefined;
|
|
33
|
-
has_more: boolean;
|
|
34
32
|
items: {
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
id: string;
|
|
34
|
+
workspace_id: string;
|
|
35
|
+
phone_number: string;
|
|
37
36
|
display_name: string;
|
|
37
|
+
provider: string;
|
|
38
|
+
capabilities: string[];
|
|
39
|
+
status: string;
|
|
40
|
+
inbound_service_id: string | null;
|
|
41
|
+
provider_phone_sid: string | null;
|
|
42
|
+
notes: string;
|
|
38
43
|
forwarding: {
|
|
39
44
|
enabled: boolean;
|
|
40
45
|
forward_to: string;
|
|
41
46
|
should_disconnect: boolean;
|
|
42
47
|
} | null;
|
|
43
|
-
|
|
44
|
-
inbound_service_id: string | null;
|
|
45
|
-
notes: string;
|
|
46
|
-
phone_number: string;
|
|
47
|
-
provider: string;
|
|
48
|
-
provider_phone_sid: string | null;
|
|
49
|
-
status: string;
|
|
48
|
+
created_at: string;
|
|
50
49
|
updated_at: string;
|
|
51
|
-
workspace_id: string;
|
|
52
50
|
}[];
|
|
51
|
+
has_more: boolean;
|
|
52
|
+
continuation_token?: number | null | undefined;
|
|
53
53
|
total?: number | null | undefined;
|
|
54
54
|
} & import("../index.js").ResponseMetadata>;
|
|
55
55
|
listAutoPaging(params?: ListParams): AsyncGenerator<{
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
id: string;
|
|
57
|
+
workspace_id: string;
|
|
58
|
+
phone_number: string;
|
|
58
59
|
display_name: string;
|
|
60
|
+
provider: string;
|
|
61
|
+
capabilities: string[];
|
|
62
|
+
status: string;
|
|
63
|
+
inbound_service_id: string | null;
|
|
64
|
+
provider_phone_sid: string | null;
|
|
65
|
+
notes: string;
|
|
59
66
|
forwarding: {
|
|
60
67
|
enabled: boolean;
|
|
61
68
|
forward_to: string;
|
|
62
69
|
should_disconnect: boolean;
|
|
63
70
|
} | null;
|
|
64
|
-
|
|
65
|
-
inbound_service_id: string | null;
|
|
66
|
-
notes: string;
|
|
67
|
-
phone_number: string;
|
|
68
|
-
provider: string;
|
|
69
|
-
provider_phone_sid: string | null;
|
|
70
|
-
status: string;
|
|
71
|
+
created_at: string;
|
|
71
72
|
updated_at: string;
|
|
72
|
-
workspace_id: string;
|
|
73
73
|
}, any, any>;
|
|
74
74
|
/** Get a phone number */
|
|
75
75
|
get(phoneNumberId: PhoneNumberId | string): Promise<{
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
id: string;
|
|
77
|
+
workspace_id: string;
|
|
78
|
+
phone_number: string;
|
|
78
79
|
display_name: string;
|
|
80
|
+
provider: string;
|
|
81
|
+
capabilities: string[];
|
|
82
|
+
status: string;
|
|
83
|
+
inbound_service_id: string | null;
|
|
84
|
+
provider_phone_sid: string | null;
|
|
85
|
+
notes: string;
|
|
79
86
|
forwarding: {
|
|
80
87
|
enabled: boolean;
|
|
81
88
|
forward_to: string;
|
|
82
89
|
should_disconnect: boolean;
|
|
83
90
|
} | null;
|
|
84
|
-
|
|
85
|
-
inbound_service_id: string | null;
|
|
86
|
-
notes: string;
|
|
87
|
-
phone_number: string;
|
|
88
|
-
provider: string;
|
|
89
|
-
provider_phone_sid: string | null;
|
|
90
|
-
status: string;
|
|
91
|
+
created_at: string;
|
|
91
92
|
updated_at: string;
|
|
92
|
-
workspace_id: string;
|
|
93
93
|
} & import("../index.js").ResponseMetadata>;
|
|
94
94
|
/** Update a phone number (assign to agent, rename) */
|
|
95
95
|
update(phoneNumberId: PhoneNumberId | string, body: components['schemas']['UpdatePhoneNumberRequest']): Promise<{
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
id: string;
|
|
97
|
+
workspace_id: string;
|
|
98
|
+
phone_number: string;
|
|
98
99
|
display_name: string;
|
|
100
|
+
provider: string;
|
|
101
|
+
capabilities: string[];
|
|
102
|
+
status: string;
|
|
103
|
+
inbound_service_id: string | null;
|
|
104
|
+
provider_phone_sid: string | null;
|
|
105
|
+
notes: string;
|
|
99
106
|
forwarding: {
|
|
100
107
|
enabled: boolean;
|
|
101
108
|
forward_to: string;
|
|
102
109
|
should_disconnect: boolean;
|
|
103
110
|
} | null;
|
|
104
|
-
|
|
105
|
-
inbound_service_id: string | null;
|
|
106
|
-
notes: string;
|
|
107
|
-
phone_number: string;
|
|
108
|
-
provider: string;
|
|
109
|
-
provider_phone_sid: string | null;
|
|
110
|
-
status: string;
|
|
111
|
+
created_at: string;
|
|
111
112
|
updated_at: string;
|
|
112
|
-
workspace_id: string;
|
|
113
113
|
} & import("../index.js").ResponseMetadata>;
|
|
114
114
|
/** Release a phone number back to the carrier */
|
|
115
115
|
release(phoneNumberId: PhoneNumberId | string): Promise<void>;
|
|
116
116
|
/** Set call forwarding for a phone number */
|
|
117
117
|
setForwarding(phoneNumberId: PhoneNumberId | string, body: components['schemas']['ForwardingConfigRequest']): Promise<{
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
id: string;
|
|
119
|
+
workspace_id: string;
|
|
120
|
+
phone_number: string;
|
|
120
121
|
display_name: string;
|
|
122
|
+
provider: string;
|
|
123
|
+
capabilities: string[];
|
|
124
|
+
status: string;
|
|
125
|
+
inbound_service_id: string | null;
|
|
126
|
+
provider_phone_sid: string | null;
|
|
127
|
+
notes: string;
|
|
121
128
|
forwarding: {
|
|
122
129
|
enabled: boolean;
|
|
123
130
|
forward_to: string;
|
|
124
131
|
should_disconnect: boolean;
|
|
125
132
|
} | null;
|
|
126
|
-
|
|
127
|
-
inbound_service_id: string | null;
|
|
128
|
-
notes: string;
|
|
129
|
-
phone_number: string;
|
|
130
|
-
provider: string;
|
|
131
|
-
provider_phone_sid: string | null;
|
|
132
|
-
status: string;
|
|
133
|
+
created_at: string;
|
|
133
134
|
updated_at: string;
|
|
134
|
-
workspace_id: string;
|
|
135
135
|
} & import("../index.js").ResponseMetadata>;
|
|
136
136
|
/** Clear call forwarding for a phone number */
|
|
137
137
|
clearForwarding(phoneNumberId: PhoneNumberId | string): Promise<void>;
|
|
@@ -2,27 +2,27 @@ import { WorkspaceScopedResource } from './base.js';
|
|
|
2
2
|
export declare class RecordingsResource extends WorkspaceScopedResource {
|
|
3
3
|
getUrls(callSid: string): Promise<{
|
|
4
4
|
call_sid: string;
|
|
5
|
+
status?: "available" | undefined;
|
|
5
6
|
inbound_url?: string | null | undefined;
|
|
6
|
-
metadata_url?: string | null | undefined;
|
|
7
7
|
outbound_url?: string | null | undefined;
|
|
8
|
-
|
|
8
|
+
metadata_url?: string | null | undefined;
|
|
9
9
|
} & import("../index.js").ResponseMetadata>;
|
|
10
10
|
getMetadata(callSid: string): Promise<{
|
|
11
|
-
call_end_iso: string;
|
|
12
11
|
call_sid: string;
|
|
13
|
-
|
|
12
|
+
workspace_id: string;
|
|
13
|
+
service_id: string;
|
|
14
14
|
direction: "inbound" | "outbound";
|
|
15
15
|
duration_seconds: number;
|
|
16
16
|
inbound_format: string;
|
|
17
17
|
inbound_sample_rate: number;
|
|
18
|
-
inbound_size_bytes: number;
|
|
19
|
-
media_start_epoch_ms: number;
|
|
20
18
|
outbound_format: string;
|
|
21
19
|
outbound_sample_rate: number;
|
|
22
|
-
outbound_size_bytes: number;
|
|
23
|
-
service_id: string;
|
|
24
20
|
tts_provider: string;
|
|
25
|
-
|
|
21
|
+
call_start_iso: string;
|
|
22
|
+
call_end_iso: string;
|
|
23
|
+
inbound_size_bytes: number;
|
|
24
|
+
outbound_size_bytes: number;
|
|
25
|
+
media_start_epoch_ms: number;
|
|
26
26
|
} & import("../index.js").ResponseMetadata>;
|
|
27
27
|
download(callSid: string, filename: string): Promise<unknown>;
|
|
28
28
|
}
|