@amigo-ai/platform-sdk 0.5.3 → 0.5.4

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 +13860 -13131
  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 +258 -258
  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
@@ -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;
11
13
  items: {
12
- id: string;
13
- workspace_id: string;
14
- name: string;
15
- role: string;
16
- developed_by: string;
14
+ background: string;
17
15
  communication_style: {
18
16
  [x: string]: unknown;
19
17
  };
20
- default_language: string;
21
- background: string;
22
18
  created_at: string;
19
+ default_language: string;
20
+ developed_by: string;
21
+ id: string;
22
+ name: string;
23
+ role: string;
23
24
  updated_at: string;
25
+ workspace_id: string;
24
26
  }[];
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
- id: string;
31
- workspace_id: string;
32
- name: string;
33
- role: string;
34
- developed_by: string;
30
+ background: string;
35
31
  communication_style: {
36
32
  [x: string]: unknown;
37
33
  };
38
- default_language: string;
39
- background: string;
40
34
  created_at: string;
41
- updated_at: string;
42
- }, any, any>;
43
- create(body: components['schemas']['CreatePersonaRequest']): Promise<{
35
+ default_language: string;
36
+ developed_by: string;
44
37
  id: string;
45
- workspace_id: string;
46
38
  name: string;
47
39
  role: string;
48
- developed_by: string;
40
+ updated_at: string;
41
+ workspace_id: string;
42
+ }, any, any>;
43
+ create(body: components['schemas']['CreatePersonaRequest']): Promise<{
44
+ background: string;
49
45
  communication_style: {
50
46
  [x: string]: unknown;
51
47
  };
52
- default_language: string;
53
- background: string;
54
48
  created_at: string;
55
- updated_at: string;
56
- } & import("../index.js").ResponseMetadata>;
57
- get(personaId: PersonaId | string): Promise<{
49
+ default_language: string;
50
+ developed_by: string;
58
51
  id: string;
59
- workspace_id: string;
60
52
  name: string;
61
53
  role: string;
62
- developed_by: string;
54
+ updated_at: string;
55
+ workspace_id: string;
56
+ } & import("../index.js").ResponseMetadata>;
57
+ get(personaId: PersonaId | string): Promise<{
58
+ background: string;
63
59
  communication_style: {
64
60
  [x: string]: unknown;
65
61
  };
66
- default_language: string;
67
- background: string;
68
62
  created_at: string;
69
- updated_at: string;
70
- } & import("../index.js").ResponseMetadata>;
71
- update(personaId: PersonaId | string, body: components['schemas']['UpdatePersonaRequest']): Promise<{
63
+ default_language: string;
64
+ developed_by: string;
72
65
  id: string;
73
- workspace_id: string;
74
66
  name: string;
75
67
  role: string;
76
- developed_by: string;
68
+ updated_at: string;
69
+ workspace_id: string;
70
+ } & import("../index.js").ResponseMetadata>;
71
+ update(personaId: PersonaId | string, body: components['schemas']['UpdatePersonaRequest']): Promise<{
72
+ background: string;
77
73
  communication_style: {
78
74
  [x: string]: unknown;
79
75
  };
80
- default_language: string;
81
- background: string;
82
76
  created_at: string;
77
+ default_language: string;
78
+ developed_by: string;
79
+ id: string;
80
+ name: string;
81
+ role: string;
83
82
  updated_at: string;
83
+ workspace_id: string;
84
84
  } & import("../index.js").ResponseMetadata>;
85
85
  delete(personaId: PersonaId | string): Promise<void>;
86
86
  }
@@ -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
- id: string;
13
- workspace_id: string;
14
- phone_number: string;
15
- display_name: string;
16
- provider: string;
17
12
  capabilities: string[];
18
- status: string;
19
- inbound_service_id: string | null;
20
- provider_phone_sid: string | null;
21
- notes: string;
13
+ created_at: string;
14
+ display_name: string;
22
15
  forwarding: {
23
16
  enabled: boolean;
24
17
  forward_to: string;
25
18
  should_disconnect: boolean;
26
19
  } | null;
27
- created_at: string;
20
+ id: string;
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;
28
27
  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;
32
34
  items: {
33
- id: string;
34
- workspace_id: string;
35
- phone_number: string;
36
- display_name: string;
37
- provider: string;
38
35
  capabilities: string[];
39
- status: string;
40
- inbound_service_id: string | null;
41
- provider_phone_sid: string | null;
42
- notes: string;
36
+ created_at: string;
37
+ display_name: string;
43
38
  forwarding: {
44
39
  enabled: boolean;
45
40
  forward_to: string;
46
41
  should_disconnect: boolean;
47
42
  } | null;
48
- created_at: string;
43
+ id: string;
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;
49
50
  updated_at: string;
51
+ workspace_id: string;
50
52
  }[];
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
- id: string;
57
- workspace_id: string;
58
- phone_number: string;
59
- display_name: string;
60
- provider: string;
61
56
  capabilities: string[];
62
- status: string;
63
- inbound_service_id: string | null;
64
- provider_phone_sid: string | null;
65
- notes: string;
57
+ created_at: string;
58
+ display_name: string;
66
59
  forwarding: {
67
60
  enabled: boolean;
68
61
  forward_to: string;
69
62
  should_disconnect: boolean;
70
63
  } | null;
71
- created_at: string;
64
+ id: string;
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;
72
71
  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
- id: string;
77
- workspace_id: string;
78
- phone_number: string;
79
- display_name: string;
80
- provider: string;
81
76
  capabilities: string[];
82
- status: string;
83
- inbound_service_id: string | null;
84
- provider_phone_sid: string | null;
85
- notes: string;
77
+ created_at: string;
78
+ display_name: string;
86
79
  forwarding: {
87
80
  enabled: boolean;
88
81
  forward_to: string;
89
82
  should_disconnect: boolean;
90
83
  } | null;
91
- created_at: string;
84
+ id: string;
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;
92
91
  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
- id: string;
97
- workspace_id: string;
98
- phone_number: string;
99
- display_name: string;
100
- provider: string;
101
96
  capabilities: string[];
102
- status: string;
103
- inbound_service_id: string | null;
104
- provider_phone_sid: string | null;
105
- notes: string;
97
+ created_at: string;
98
+ display_name: string;
106
99
  forwarding: {
107
100
  enabled: boolean;
108
101
  forward_to: string;
109
102
  should_disconnect: boolean;
110
103
  } | null;
111
- created_at: string;
104
+ id: string;
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;
112
111
  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
- id: string;
119
- workspace_id: string;
120
- phone_number: string;
121
- display_name: string;
122
- provider: string;
123
118
  capabilities: string[];
124
- status: string;
125
- inbound_service_id: string | null;
126
- provider_phone_sid: string | null;
127
- notes: string;
119
+ created_at: string;
120
+ display_name: string;
128
121
  forwarding: {
129
122
  enabled: boolean;
130
123
  forward_to: string;
131
124
  should_disconnect: boolean;
132
125
  } | null;
133
- created_at: string;
126
+ id: string;
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;
134
133
  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;
6
5
  inbound_url?: string | null | undefined;
7
- outbound_url?: string | null | undefined;
8
6
  metadata_url?: string | null | undefined;
7
+ outbound_url?: string | null | undefined;
8
+ status?: "available" | undefined;
9
9
  } & import("../index.js").ResponseMetadata>;
10
10
  getMetadata(callSid: string): Promise<{
11
+ call_end_iso: string;
11
12
  call_sid: string;
12
- workspace_id: string;
13
- service_id: string;
13
+ call_start_iso: 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;
18
20
  outbound_format: string;
19
21
  outbound_sample_rate: number;
20
- tts_provider: string;
21
- call_start_iso: string;
22
- call_end_iso: string;
23
- inbound_size_bytes: number;
24
22
  outbound_size_bytes: number;
25
- media_start_epoch_ms: number;
23
+ service_id: string;
24
+ tts_provider: string;
25
+ workspace_id: string;
26
26
  } & import("../index.js").ResponseMetadata>;
27
27
  download(callSid: string, filename: string): Promise<unknown>;
28
28
  }