@amigo-ai/platform-sdk 0.5.3 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/types/generated/api.d.ts +14655 -13144
  2. package/dist/types/generated/api.d.ts.map +1 -1
  3. package/dist/types/resources/actions.d.ts +166 -166
  4. package/dist/types/resources/agents.d.ts +88 -88
  5. package/dist/types/resources/analytics.d.ts +39 -39
  6. package/dist/types/resources/api-keys.d.ts +29 -29
  7. package/dist/types/resources/audit.d.ts +73 -73
  8. package/dist/types/resources/billing.d.ts +36 -36
  9. package/dist/types/resources/calls.d.ts +106 -106
  10. package/dist/types/resources/compliance.d.ts +17 -17
  11. package/dist/types/resources/context-graphs.d.ts +633 -633
  12. package/dist/types/resources/data-sources.d.ts +81 -81
  13. package/dist/types/resources/functions.d.ts +22 -22
  14. package/dist/types/resources/functions.d.ts.map +1 -1
  15. package/dist/types/resources/integrations.d.ts +257 -257
  16. package/dist/types/resources/memory.d.ts +35 -35
  17. package/dist/types/resources/operators.d.ts +147 -147
  18. package/dist/types/resources/personas.d.ts +37 -37
  19. package/dist/types/resources/phone-numbers.d.ts +62 -62
  20. package/dist/types/resources/recordings.d.ts +9 -9
  21. package/dist/types/resources/review-queue.d.ts +331 -331
  22. package/dist/types/resources/safety.d.ts +33 -33
  23. package/dist/types/resources/services.d.ts +142 -142
  24. package/dist/types/resources/settings.d.ts +254 -254
  25. package/dist/types/resources/settings.d.ts.map +1 -1
  26. package/dist/types/resources/simulations.d.ts +73 -73
  27. package/dist/types/resources/skills.d.ts +163 -163
  28. package/dist/types/resources/triggers.d.ts +74 -74
  29. package/dist/types/resources/webhook-destinations.d.ts +57 -57
  30. package/dist/types/resources/workspaces.d.ts +50 -50
  31. package/dist/types/resources/world.d.ts +216 -216
  32. package/package.json +1 -1
@@ -7,184 +7,184 @@ export interface ListAgentsParams extends ListParams {
7
7
  }
8
8
  export declare class AgentsResource extends WorkspaceScopedResource {
9
9
  create(body: components['schemas']['CreateAgentRequest']): Promise<{
10
- id: string;
11
- workspace_id: string;
12
- name: string;
10
+ created_at: string;
13
11
  description: string;
12
+ id: string;
14
13
  latest_version?: number | undefined;
15
- created_at: string;
14
+ name: string;
16
15
  updated_at: string;
16
+ workspace_id: string;
17
17
  } & import("../index.js").ResponseMetadata>;
18
18
  list(params?: ListAgentsParams): Promise<{
19
+ continuation_token?: number | null | undefined;
20
+ has_more: boolean;
19
21
  items: {
20
- id: string;
21
- workspace_id: string;
22
- name: string;
22
+ created_at: string;
23
23
  description: string;
24
+ id: string;
24
25
  latest_version?: number | undefined;
25
- created_at: string;
26
+ name: string;
26
27
  updated_at: string;
28
+ workspace_id: string;
27
29
  }[];
28
- has_more: boolean;
29
- continuation_token?: number | null | undefined;
30
30
  total?: number | null | undefined;
31
31
  } & import("../index.js").ResponseMetadata>;
32
32
  listAutoPaging(params?: ListAgentsParams): AsyncGenerator<{
33
- id: string;
34
- workspace_id: string;
35
- name: string;
33
+ created_at: string;
36
34
  description: string;
35
+ id: string;
37
36
  latest_version?: number | undefined;
38
- created_at: string;
37
+ name: string;
39
38
  updated_at: string;
39
+ workspace_id: string;
40
40
  }, any, any>;
41
41
  get(agentId: AgentId | string): Promise<{
42
- id: string;
43
- workspace_id: string;
44
- name: string;
42
+ created_at: string;
45
43
  description: string;
44
+ id: string;
46
45
  latest_version?: number | undefined;
47
- created_at: string;
46
+ name: string;
48
47
  updated_at: string;
48
+ workspace_id: string;
49
49
  } & import("../index.js").ResponseMetadata>;
50
50
  update(agentId: AgentId | string, body: components['schemas']['UpdateAgentRequest']): Promise<{
51
- id: string;
52
- workspace_id: string;
53
- name: string;
51
+ created_at: string;
54
52
  description: string;
53
+ id: string;
55
54
  latest_version?: number | undefined;
56
- created_at: string;
55
+ name: string;
57
56
  updated_at: string;
57
+ workspace_id: string;
58
58
  } & import("../index.js").ResponseMetadata>;
59
59
  delete(agentId: AgentId | string): Promise<void>;
60
60
  listVersions(agentId: AgentId | string, params?: ListParams): Promise<{
61
+ continuation_token?: number | null | undefined;
62
+ has_more: boolean;
61
63
  items: {
62
- id: string;
63
- workspace_id: string;
64
64
  agent_id: string;
65
- version: number;
66
- name: string;
67
- initials: string;
65
+ background: string;
66
+ behaviors: string[];
67
+ communication_patterns: string[];
68
+ created_at: string;
69
+ id: string;
68
70
  identity: {
69
- name: string;
70
- role: string;
71
- developed_by: string;
72
71
  default_spoken_language: string;
72
+ developed_by: string;
73
+ name: string;
73
74
  relationship_to_developer?: {
74
- ownership: string;
75
- type: string;
76
75
  conversation_visibility: string;
76
+ ownership: string;
77
77
  thought_visibility: string;
78
+ type: string;
78
79
  } | undefined;
80
+ role: string;
79
81
  };
82
+ initials: string;
83
+ name: string;
84
+ updated_at: string;
85
+ version: number;
80
86
  voice_config: {
81
- voice_id: string;
82
- stability?: number | undefined;
83
87
  similarity_boost?: number | undefined;
88
+ stability?: number | undefined;
84
89
  style?: number | undefined;
90
+ voice_id: string;
85
91
  } | null;
86
- background: string;
87
- behaviors: string[];
88
- communication_patterns: string[];
89
- created_at: string;
90
- updated_at: string;
92
+ workspace_id: string;
91
93
  }[];
92
- has_more: boolean;
93
- continuation_token?: number | null | undefined;
94
94
  total?: number | null | undefined;
95
95
  } & import("../index.js").ResponseMetadata>;
96
96
  listVersionsAutoPaging(agentId: AgentId | string, params?: ListParams): AsyncGenerator<{
97
- id: string;
98
- workspace_id: string;
99
97
  agent_id: string;
100
- version: number;
101
- name: string;
102
- initials: string;
98
+ background: string;
99
+ behaviors: string[];
100
+ communication_patterns: string[];
101
+ created_at: string;
102
+ id: string;
103
103
  identity: {
104
- name: string;
105
- role: string;
106
- developed_by: string;
107
104
  default_spoken_language: string;
105
+ developed_by: string;
106
+ name: string;
108
107
  relationship_to_developer?: {
109
- ownership: string;
110
- type: string;
111
108
  conversation_visibility: string;
109
+ ownership: string;
112
110
  thought_visibility: string;
111
+ type: string;
113
112
  } | undefined;
113
+ role: string;
114
114
  };
115
+ initials: string;
116
+ name: string;
117
+ updated_at: string;
118
+ version: number;
115
119
  voice_config: {
116
- voice_id: string;
117
- stability?: number | undefined;
118
120
  similarity_boost?: number | undefined;
121
+ stability?: number | undefined;
119
122
  style?: number | undefined;
123
+ voice_id: string;
120
124
  } | null;
125
+ workspace_id: string;
126
+ }, any, any>;
127
+ getVersion(agentId: AgentId | string, version: number | 'latest'): Promise<{
128
+ agent_id: string;
121
129
  background: string;
122
130
  behaviors: string[];
123
131
  communication_patterns: string[];
124
132
  created_at: string;
125
- updated_at: string;
126
- }, any, any>;
127
- getVersion(agentId: AgentId | string, version: number | 'latest'): Promise<{
128
133
  id: string;
129
- workspace_id: string;
130
- agent_id: string;
131
- version: number;
132
- name: string;
133
- initials: string;
134
134
  identity: {
135
- name: string;
136
- role: string;
137
- developed_by: string;
138
135
  default_spoken_language: string;
136
+ developed_by: string;
137
+ name: string;
139
138
  relationship_to_developer?: {
140
- ownership: string;
141
- type: string;
142
139
  conversation_visibility: string;
140
+ ownership: string;
143
141
  thought_visibility: string;
142
+ type: string;
144
143
  } | undefined;
144
+ role: string;
145
145
  };
146
+ initials: string;
147
+ name: string;
148
+ updated_at: string;
149
+ version: number;
146
150
  voice_config: {
147
- voice_id: string;
148
- stability?: number | undefined;
149
151
  similarity_boost?: number | undefined;
152
+ stability?: number | undefined;
150
153
  style?: number | undefined;
154
+ voice_id: string;
151
155
  } | null;
156
+ workspace_id: string;
157
+ } & import("../index.js").ResponseMetadata>;
158
+ createVersion(agentId: AgentId | string, body: components['schemas']['CreateAgentVersionRequest']): Promise<{
159
+ agent_id: string;
152
160
  background: string;
153
161
  behaviors: string[];
154
162
  communication_patterns: string[];
155
163
  created_at: string;
156
- updated_at: string;
157
- } & import("../index.js").ResponseMetadata>;
158
- createVersion(agentId: AgentId | string, body: components['schemas']['CreateAgentVersionRequest']): Promise<{
159
164
  id: string;
160
- workspace_id: string;
161
- agent_id: string;
162
- version: number;
163
- name: string;
164
- initials: string;
165
165
  identity: {
166
- name: string;
167
- role: string;
168
- developed_by: string;
169
166
  default_spoken_language: string;
167
+ developed_by: string;
168
+ name: string;
170
169
  relationship_to_developer?: {
171
- ownership: string;
172
- type: string;
173
170
  conversation_visibility: string;
171
+ ownership: string;
174
172
  thought_visibility: string;
173
+ type: string;
175
174
  } | undefined;
175
+ role: string;
176
176
  };
177
+ initials: string;
178
+ name: string;
179
+ updated_at: string;
180
+ version: number;
177
181
  voice_config: {
178
- voice_id: string;
179
- stability?: number | undefined;
180
182
  similarity_boost?: number | undefined;
183
+ stability?: number | undefined;
181
184
  style?: number | undefined;
185
+ voice_id: string;
182
186
  } | null;
183
- background: string;
184
- behaviors: string[];
185
- communication_patterns: string[];
186
- created_at: string;
187
- updated_at: string;
187
+ workspace_id: string;
188
188
  } & import("../index.js").ResponseMetadata>;
189
189
  }
190
190
  //# sourceMappingURL=agents.d.ts.map
@@ -17,17 +17,17 @@ export declare class AnalyticsResource extends WorkspaceScopedResource {
17
17
  interval?: '1h' | '1d' | '1w';
18
18
  service_id?: string | null;
19
19
  }): Promise<{
20
- workspace_id: string;
21
- period_start: string;
22
- period_end: string;
23
- total_calls: number;
24
- total_duration_seconds: number;
25
20
  avg_duration_seconds: number;
26
21
  calls_by_date: {
27
- date: string;
28
- count: number;
29
22
  avg_duration_seconds?: number | null | undefined;
23
+ count: number;
24
+ date: string;
30
25
  }[];
26
+ period_end: string;
27
+ period_start: string;
28
+ total_calls: number;
29
+ total_duration_seconds: number;
30
+ workspace_id: string;
31
31
  } & import("../index.js").ResponseMetadata>;
32
32
  /** Per-agent performance breakdown */
33
33
  getAgents(params?: {
@@ -36,10 +36,10 @@ export declare class AnalyticsResource extends WorkspaceScopedResource {
36
36
  agents: {
37
37
  agent_id: string;
38
38
  agent_name: string;
39
- total_calls: number;
40
- completed_calls: number;
41
39
  avg_duration_seconds: number;
40
+ completed_calls: number;
42
41
  completion_rate: number;
42
+ total_calls: number;
43
43
  }[];
44
44
  period?: string | null | undefined;
45
45
  } & import("../index.js").ResponseMetadata>;
@@ -83,19 +83,18 @@ export declare class AnalyticsResource extends WorkspaceScopedResource {
83
83
  getDataQuality(params?: {
84
84
  days?: number;
85
85
  }): Promise<{
86
- workspace_id: string;
87
- period_start: string;
88
- period_end: string;
89
- confidence_distribution: {
90
- confidence_range: string;
91
- count: number;
92
- }[];
93
86
  confidence_by_source: {
94
87
  [x: string]: {
95
88
  confidence_range: string;
96
89
  count: number;
97
90
  }[];
98
91
  };
92
+ confidence_distribution: {
93
+ confidence_range: string;
94
+ count: number;
95
+ }[];
96
+ period_end: string;
97
+ period_start: string;
99
98
  review_pipeline: {
100
99
  [x: string]: unknown;
101
100
  };
@@ -103,6 +102,7 @@ export declare class AnalyticsResource extends WorkspaceScopedResource {
103
102
  [x: string]: unknown;
104
103
  }[];
105
104
  total_events: number;
105
+ workspace_id: string;
106
106
  } & import("../index.js").ResponseMetadata>;
107
107
  /** Usage summary — API requests, call minutes, storage */
108
108
  getUsage(params?: {
@@ -113,34 +113,34 @@ export declare class AnalyticsResource extends WorkspaceScopedResource {
113
113
  service_id?: string | null;
114
114
  direction?: string | null;
115
115
  }): Promise<{
116
- workspace_id: string;
117
- period_start: string;
118
- period_end: string;
119
116
  buckets: {
120
- event_type: string;
121
- event_date: string;
122
- count: number;
123
117
  avg_duration_seconds?: number | null | undefined;
118
+ count: number;
119
+ event_date: string;
120
+ event_type: string;
124
121
  total_duration_seconds?: number | null | undefined;
125
122
  }[];
123
+ period_end: string;
124
+ period_start: string;
126
125
  total_events: number;
126
+ workspace_id: string;
127
127
  } & import("../index.js").ResponseMetadata>;
128
128
  /** Event type breakdown — counts and trends per event type */
129
129
  getEventBreakdown(params?: {
130
130
  days?: number;
131
131
  }): Promise<{
132
- workspace_id: string;
133
- period_start: string;
134
- period_end: string;
135
- by_type: {
136
- key: string;
137
- count: number;
138
- }[];
139
132
  by_source: {
133
+ count: number;
140
134
  key: string;
135
+ }[];
136
+ by_type: {
141
137
  count: number;
138
+ key: string;
142
139
  }[];
140
+ period_end: string;
141
+ period_start: string;
143
142
  total_events: number;
143
+ workspace_id: string;
144
144
  } & import("../index.js").ResponseMetadata>;
145
145
  /** Safety and escalation trends — risk distribution and time-series data */
146
146
  getSafetyTrends(params?: {
@@ -150,21 +150,21 @@ export declare class AnalyticsResource extends WorkspaceScopedResource {
150
150
  interval?: '1h' | '1d' | '1w';
151
151
  service_id?: string | null;
152
152
  }): Promise<{
153
+ risk_distribution: {
154
+ [x: string]: number;
155
+ };
153
156
  summary: {
157
+ escalation_rate: number;
154
158
  total_calls: number;
155
159
  total_escalations: number;
156
- escalation_rate: number;
157
160
  total_safety_flagged: number;
158
161
  total_safety_matches: number;
159
162
  };
160
- risk_distribution: {
161
- [x: string]: number;
162
- };
163
163
  trend: {
164
164
  date: string;
165
- total_calls: number;
166
165
  escalated_count: number;
167
166
  safety_flagged: number;
167
+ total_calls: number;
168
168
  }[];
169
169
  } & import("../index.js").ResponseMetadata>;
170
170
  /** Operator escalation performance and quality comparison */
@@ -176,18 +176,18 @@ export declare class AnalyticsResource extends WorkspaceScopedResource {
176
176
  service_id?: string | null;
177
177
  }): Promise<{
178
178
  summary: {
179
- total_calls: number;
180
- escalated_count: number;
181
- escalation_rate: number;
182
- operator_handled_count: number;
183
179
  avg_escalated_duration_seconds?: number | null | undefined;
184
180
  avg_escalated_quality_score?: number | null | undefined;
185
181
  avg_non_escalated_quality_score?: number | null | undefined;
182
+ escalated_count: number;
183
+ escalation_rate: number;
184
+ operator_handled_count: number;
185
+ total_calls: number;
186
186
  };
187
187
  trend: {
188
188
  date: string;
189
- total_calls: number;
190
189
  escalated_count: number;
190
+ total_calls: number;
191
191
  }[];
192
192
  } & import("../index.js").ResponseMetadata>;
193
193
  /** Advanced call statistics (abandonment, transfers, silence, hour-of-day) */
@@ -14,73 +14,73 @@ export declare class ApiKeysResource extends WorkspaceScopedResource {
14
14
  * Does not require a workspace ID in the path.
15
15
  */
16
16
  me(): Promise<{
17
- workspace_id: string;
18
- key_id: string;
19
- name: string | null;
20
17
  expires_at: string;
21
18
  expires_in_seconds: number;
19
+ key_id: string;
20
+ name: string | null;
21
+ workspace_id: string;
22
22
  } & import("../index.js").ResponseMetadata>;
23
23
  /** Create a new API key */
24
24
  create(body: components['schemas']['CreateApiKeyRequest']): Promise<{
25
- key_id: string;
26
25
  api_key: string;
26
+ created_by_credential_id: string | null;
27
+ created_by_entity_id: string | null;
28
+ expires_at: string;
29
+ key_id: string;
27
30
  name: string | null;
28
- role: string;
29
31
  permissions: string[];
30
- expires_at: string;
31
- created_by_entity_id: string | null;
32
- created_by_credential_id: string | null;
32
+ role: string;
33
33
  } & import("../index.js").ResponseMetadata>;
34
34
  /** List API keys in the workspace */
35
35
  list(params?: ListParams & {
36
36
  mine_only?: boolean;
37
37
  }): Promise<{
38
+ continuation_token?: number | null | undefined;
39
+ has_more: boolean;
38
40
  items: {
39
- id: string;
40
- workspace_id: string;
41
- created_by_entity_id: string | null;
41
+ created_at: string;
42
42
  created_by_credential_id: string | null;
43
+ created_by_entity_id: string | null;
44
+ expires_at: string;
45
+ id: string;
43
46
  key_id: string;
47
+ last_used_at: string | null;
44
48
  name: string | null;
45
- role: string;
46
49
  permissions: string[];
47
- expires_at: string;
48
- last_used_at: string | null;
49
- created_at: string;
50
+ role: string;
50
51
  updated_at: string;
52
+ workspace_id: string;
51
53
  }[];
52
- has_more: boolean;
53
- continuation_token?: number | null | undefined;
54
54
  total?: number | null | undefined;
55
55
  } & import("../index.js").ResponseMetadata>;
56
56
  listAutoPaging(params?: ListParams & {
57
57
  mine_only?: boolean;
58
58
  }): AsyncGenerator<{
59
- id: string;
60
- workspace_id: string;
61
- created_by_entity_id: string | null;
59
+ created_at: string;
62
60
  created_by_credential_id: string | null;
61
+ created_by_entity_id: string | null;
62
+ expires_at: string;
63
+ id: string;
63
64
  key_id: string;
65
+ last_used_at: string | null;
64
66
  name: string | null;
65
- role: string;
66
67
  permissions: string[];
67
- expires_at: string;
68
- last_used_at: string | null;
69
- created_at: string;
68
+ role: string;
70
69
  updated_at: string;
70
+ workspace_id: string;
71
71
  }, any, any>;
72
72
  /** Revoke an API key */
73
73
  revoke(keyId: ApiKeyId | string): Promise<void>;
74
74
  /** Rotate an API key — invalidates the old key and issues a new one */
75
75
  rotate(keyId: ApiKeyId | string, body: components['schemas']['RotateApiKeyRequest']): Promise<{
76
- key_id: string;
77
76
  api_key: string;
77
+ created_by_credential_id: string | null;
78
+ created_by_entity_id: string | null;
79
+ expires_at: string;
80
+ key_id: string;
78
81
  name: string | null;
79
- role: string;
80
82
  permissions: string[];
81
- expires_at: string;
82
- created_by_entity_id: string | null;
83
- created_by_credential_id: string | null;
83
+ role: string;
84
84
  } & import("../index.js").ResponseMetadata>;
85
85
  }
86
86
  //# sourceMappingURL=api-keys.d.ts.map