@amigo-ai/platform-sdk 0.4.0 → 0.4.2

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 (57) hide show
  1. package/README.md +147 -55
  2. package/api.md +354 -0
  3. package/dist/core/errors.js +26 -4
  4. package/dist/core/errors.js.map +1 -1
  5. package/dist/core/openapi-client.js +108 -6
  6. package/dist/core/openapi-client.js.map +1 -1
  7. package/dist/core/retry.js +5 -2
  8. package/dist/core/retry.js.map +1 -1
  9. package/dist/core/utils.js +48 -2
  10. package/dist/core/utils.js.map +1 -1
  11. package/dist/core/webhooks.js +8 -2
  12. package/dist/core/webhooks.js.map +1 -1
  13. package/dist/index.cjs +268 -40
  14. package/dist/index.cjs.map +4 -4
  15. package/dist/index.js +50 -1
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.mjs +268 -40
  18. package/dist/index.mjs.map +4 -4
  19. package/dist/types/core/errors.d.ts +6 -0
  20. package/dist/types/core/errors.d.ts.map +1 -1
  21. package/dist/types/core/openapi-client.d.ts +24 -1
  22. package/dist/types/core/openapi-client.d.ts.map +1 -1
  23. package/dist/types/core/retry.d.ts +1 -1
  24. package/dist/types/core/retry.d.ts.map +1 -1
  25. package/dist/types/core/utils.d.ts +27 -1
  26. package/dist/types/core/utils.d.ts.map +1 -1
  27. package/dist/types/core/webhooks.d.ts.map +1 -1
  28. package/dist/types/index.d.ts +40 -2
  29. package/dist/types/index.d.ts.map +1 -1
  30. package/dist/types/resources/actions.d.ts +5 -5
  31. package/dist/types/resources/agents.d.ts +7 -7
  32. package/dist/types/resources/analytics.d.ts +11 -11
  33. package/dist/types/resources/api-keys.d.ts +4 -4
  34. package/dist/types/resources/audit.d.ts +6 -6
  35. package/dist/types/resources/billing.d.ts +6 -6
  36. package/dist/types/resources/calls.d.ts +6 -6
  37. package/dist/types/resources/compliance.d.ts +3 -3
  38. package/dist/types/resources/context-graphs.d.ts +7 -7
  39. package/dist/types/resources/data-sources.d.ts +6 -6
  40. package/dist/types/resources/functions.d.ts +6 -6
  41. package/dist/types/resources/integrations.d.ts +6 -6
  42. package/dist/types/resources/memory.d.ts +3 -3
  43. package/dist/types/resources/operators.d.ts +18 -18
  44. package/dist/types/resources/personas.d.ts +4 -4
  45. package/dist/types/resources/phone-numbers.d.ts +5 -5
  46. package/dist/types/resources/recordings.d.ts +2 -2
  47. package/dist/types/resources/review-queue.d.ts +17 -17
  48. package/dist/types/resources/safety.d.ts +5 -5
  49. package/dist/types/resources/services.d.ts +4 -4
  50. package/dist/types/resources/settings.d.ts +14 -14
  51. package/dist/types/resources/simulations.d.ts +6 -6
  52. package/dist/types/resources/skills.d.ts +5 -5
  53. package/dist/types/resources/triggers.d.ts +8 -8
  54. package/dist/types/resources/webhook-destinations.d.ts +6 -6
  55. package/dist/types/resources/workspaces.d.ts +5 -5
  56. package/dist/types/resources/world.d.ts +18 -18
  57. package/package.json +10 -4
@@ -8,7 +8,7 @@ export declare class ComplianceResource extends WorkspaceScopedResource {
8
8
  legal_hold: boolean;
9
9
  retention_days: number | null;
10
10
  total_credentials: number;
11
- }>;
11
+ } & import("../index.js").ResponseMetadata>;
12
12
  getHipaa(params?: {
13
13
  report_period_days?: number;
14
14
  }): Promise<{
@@ -31,7 +31,7 @@ export declare class ComplianceResource extends WorkspaceScopedResource {
31
31
  [key: string]: unknown;
32
32
  };
33
33
  workspace_id: string;
34
- }>;
34
+ } & import("../index.js").ResponseMetadata>;
35
35
  getAccessReview(): Promise<{
36
36
  credentials: {
37
37
  [key: string]: unknown;
@@ -40,6 +40,6 @@ export declare class ComplianceResource extends WorkspaceScopedResource {
40
40
  jwt_credentials_note: string;
41
41
  total_credentials: number;
42
42
  workspace_id: string;
43
- }>;
43
+ } & import("../index.js").ResponseMetadata>;
44
44
  }
45
45
  //# sourceMappingURL=compliance.d.ts.map
@@ -20,13 +20,13 @@ export declare class ContextGraphsResource extends WorkspaceScopedResource {
20
20
  state_count?: number;
21
21
  updated_at: string;
22
22
  workspace_id: string;
23
- }>;
23
+ } & import("../index.js").ResponseMetadata>;
24
24
  list(params?: ListContextGraphsParams): Promise<{
25
25
  continuation_token?: number | null;
26
26
  has_more: boolean;
27
27
  items: components["schemas"]["ContextGraphResponse"][];
28
28
  total?: number | null;
29
- }>;
29
+ } & import("../index.js").ResponseMetadata>;
30
30
  get(contextGraphId: ContextGraphId | string): Promise<{
31
31
  created_at: string;
32
32
  description: string;
@@ -36,7 +36,7 @@ export declare class ContextGraphsResource extends WorkspaceScopedResource {
36
36
  state_count?: number;
37
37
  updated_at: string;
38
38
  workspace_id: string;
39
- }>;
39
+ } & import("../index.js").ResponseMetadata>;
40
40
  update(contextGraphId: ContextGraphId | string, body: components['schemas']['UpdateContextGraphRequest']): Promise<{
41
41
  created_at: string;
42
42
  description: string;
@@ -46,7 +46,7 @@ export declare class ContextGraphsResource extends WorkspaceScopedResource {
46
46
  state_count?: number;
47
47
  updated_at: string;
48
48
  workspace_id: string;
49
- }>;
49
+ } & import("../index.js").ResponseMetadata>;
50
50
  delete(contextGraphId: ContextGraphId | string): Promise<void>;
51
51
  /** Create a version snapshot of the current context graph */
52
52
  createVersion(contextGraphId: ContextGraphId | string, body: components['schemas']['CreateContextGraphVersionRequest']): Promise<{
@@ -65,14 +65,14 @@ export declare class ContextGraphsResource extends WorkspaceScopedResource {
65
65
  updated_at: string;
66
66
  version: number;
67
67
  workspace_id: string;
68
- }>;
68
+ } & import("../index.js").ResponseMetadata>;
69
69
  /** List all versions of a context graph */
70
70
  listVersions(contextGraphId: ContextGraphId | string, params?: ListParams): Promise<{
71
71
  continuation_token?: number | null;
72
72
  has_more: boolean;
73
73
  items: components["schemas"]["ContextGraphVersionResponse"][];
74
74
  total?: number | null;
75
- }>;
75
+ } & import("../index.js").ResponseMetadata>;
76
76
  /** Get a specific version */
77
77
  getVersion(contextGraphId: ContextGraphId | string, version: number): Promise<{
78
78
  context_graph_id: string;
@@ -90,6 +90,6 @@ export declare class ContextGraphsResource extends WorkspaceScopedResource {
90
90
  updated_at: string;
91
91
  version: number;
92
92
  workspace_id: string;
93
- }>;
93
+ } & import("../index.js").ResponseMetadata>;
94
94
  }
95
95
  //# sourceMappingURL=context-graphs.d.ts.map
@@ -36,13 +36,13 @@ export declare class DataSourcesResource extends WorkspaceScopedResource {
36
36
  sync_strategy: string;
37
37
  updated_at: string;
38
38
  workspace_id: string;
39
- }>;
39
+ } & import("../index.js").ResponseMetadata>;
40
40
  list(params?: ListDataSourcesParams): Promise<{
41
41
  continuation_token?: number | null;
42
42
  has_more: boolean;
43
43
  items: components["schemas"]["DataSourceResponse"][];
44
44
  total?: number | null;
45
- }>;
45
+ } & import("../index.js").ResponseMetadata>;
46
46
  get(dataSourceId: DataSourceId | string): Promise<{
47
47
  connection_config: {
48
48
  [key: string]: unknown;
@@ -68,7 +68,7 @@ export declare class DataSourcesResource extends WorkspaceScopedResource {
68
68
  sync_strategy: string;
69
69
  updated_at: string;
70
70
  workspace_id: string;
71
- }>;
71
+ } & import("../index.js").ResponseMetadata>;
72
72
  update(dataSourceId: DataSourceId | string, body: components['schemas']['UpdateDataSourceRequest']): Promise<{
73
73
  connection_config: {
74
74
  [key: string]: unknown;
@@ -94,7 +94,7 @@ export declare class DataSourcesResource extends WorkspaceScopedResource {
94
94
  sync_strategy: string;
95
95
  updated_at: string;
96
96
  workspace_id: string;
97
- }>;
97
+ } & import("../index.js").ResponseMetadata>;
98
98
  delete(dataSourceId: DataSourceId | string): Promise<void>;
99
99
  /** Get event counts, sync status, and health for a data source */
100
100
  getStatus(dataSourceId: DataSourceId | string): Promise<{
@@ -108,13 +108,13 @@ export declare class DataSourcesResource extends WorkspaceScopedResource {
108
108
  last_sync_status: string | null;
109
109
  name: string;
110
110
  synced_count: number;
111
- }>;
111
+ } & import("../index.js").ResponseMetadata>;
112
112
  /** Get daily event timeline + recent sync failures for a data source */
113
113
  getSyncHistory(dataSourceId: DataSourceId | string): Promise<{
114
114
  data_source_id: string;
115
115
  name: string;
116
116
  recent_failures: components["schemas"]["SyncFailureEntry"][];
117
117
  timeline: components["schemas"]["SyncHistoryEntry"][];
118
- }>;
118
+ } & import("../index.js").ResponseMetadata>;
119
119
  }
120
120
  //# sourceMappingURL=data-sources.d.ts.map
@@ -4,7 +4,7 @@ export declare class FunctionsResource extends WorkspaceScopedResource {
4
4
  list(): Promise<{
5
5
  count: number;
6
6
  items: components["schemas"]["FunctionDef"][];
7
- }>;
7
+ } & import("../index.js").ResponseMetadata>;
8
8
  create(body: components['schemas']['FunctionCreateRequest']): Promise<{
9
9
  catalog?: string;
10
10
  description?: components["schemas"]["DescriptionString"];
@@ -16,20 +16,20 @@ export declare class FunctionsResource extends WorkspaceScopedResource {
16
16
  name: components["schemas"]["NameString"];
17
17
  returns_table?: boolean;
18
18
  schema?: string;
19
- }>;
19
+ } & import("../index.js").ResponseMetadata>;
20
20
  delete(functionName: string): Promise<void>;
21
21
  test(functionName: string, body: components['schemas']['FunctionTestRequest']): Promise<{
22
22
  duration_ms?: number;
23
23
  error?: string | null;
24
24
  function_name?: string;
25
25
  result?: unknown;
26
- }>;
26
+ } & import("../index.js").ResponseMetadata>;
27
27
  getCatalog(): Promise<{
28
28
  catalog?: string;
29
29
  count?: number;
30
30
  functions: components["schemas"]["CatalogFunctionDef"][];
31
31
  schema?: string;
32
- }>;
32
+ } & import("../index.js").ResponseMetadata>;
33
33
  query(body: components['schemas']['QueryRequest']): Promise<{
34
34
  count?: number;
35
35
  duration_ms?: number;
@@ -37,10 +37,10 @@ export declare class FunctionsResource extends WorkspaceScopedResource {
37
37
  results?: {
38
38
  [key: string]: unknown;
39
39
  }[];
40
- }>;
40
+ } & import("../index.js").ResponseMetadata>;
41
41
  sync(): Promise<{
42
42
  count: number;
43
43
  items: components["schemas"]["FunctionDef"][];
44
- }>;
44
+ } & import("../index.js").ResponseMetadata>;
45
45
  }
46
46
  //# sourceMappingURL=functions.d.ts.map
@@ -33,14 +33,14 @@ export declare class IntegrationsResource extends WorkspaceScopedResource {
33
33
  protocol: "rest" | "fhir" | "mcp";
34
34
  updated_at: string;
35
35
  workspace_id: string;
36
- }>;
36
+ } & import("../index.js").ResponseMetadata>;
37
37
  /** List integrations */
38
38
  list(params?: ListIntegrationsParams): Promise<{
39
39
  continuation_token?: number | null;
40
40
  has_more: boolean;
41
41
  items: components["schemas"]["IntegrationResponse"][];
42
42
  total?: number | null;
43
- }>;
43
+ } & import("../index.js").ResponseMetadata>;
44
44
  /** Get a single integration */
45
45
  get(integrationId: IntegrationId | string): Promise<{
46
46
  auth?: components["schemas"]["AuthConfig"] | null;
@@ -62,7 +62,7 @@ export declare class IntegrationsResource extends WorkspaceScopedResource {
62
62
  protocol: "rest" | "fhir" | "mcp";
63
63
  updated_at: string;
64
64
  workspace_id: string;
65
- }>;
65
+ } & import("../index.js").ResponseMetadata>;
66
66
  /** Update integration configuration */
67
67
  update(integrationId: IntegrationId | string, body: components['schemas']['UpdateIntegrationRequest']): Promise<{
68
68
  auth?: components["schemas"]["AuthConfig"] | null;
@@ -84,7 +84,7 @@ export declare class IntegrationsResource extends WorkspaceScopedResource {
84
84
  protocol: "rest" | "fhir" | "mcp";
85
85
  updated_at: string;
86
86
  workspace_id: string;
87
- }>;
87
+ } & import("../index.js").ResponseMetadata>;
88
88
  /** Delete an integration */
89
89
  delete(integrationId: IntegrationId | string): Promise<void>;
90
90
  /**
@@ -100,10 +100,10 @@ export declare class IntegrationsResource extends WorkspaceScopedResource {
100
100
  raw_response?: unknown;
101
101
  retries?: number;
102
102
  status_code?: number | null;
103
- }>;
103
+ } & import("../index.js").ResponseMetadata>;
104
104
  /** Check health of all integrations in the workspace */
105
105
  getHealthCheck(): Promise<{
106
106
  [key: string]: unknown;
107
- }>;
107
+ } & import("../index.js").ResponseMetadata>;
108
108
  }
109
109
  //# sourceMappingURL=integrations.d.ts.map
@@ -16,7 +16,7 @@ export declare class MemoryResource extends WorkspaceScopedResource {
16
16
  dimensions: import("../index.js").components["schemas"]["DimensionScore"][];
17
17
  entity_id: string;
18
18
  total_facts: number;
19
- }>;
19
+ } & import("../index.js").ResponseMetadata>;
20
20
  /**
21
21
  * Get individual memory facts for an entity, optionally filtered by dimension.
22
22
  */
@@ -28,7 +28,7 @@ export declare class MemoryResource extends WorkspaceScopedResource {
28
28
  entity_id: string;
29
29
  facts: import("../index.js").components["schemas"]["MemoryFact"][];
30
30
  total: number;
31
- }>;
31
+ } & import("../index.js").ResponseMetadata>;
32
32
  /**
33
33
  * Get workspace-level memory analytics — coverage rates, dimension health,
34
34
  * and fact ingestion trends.
@@ -47,6 +47,6 @@ export declare class MemoryResource extends WorkspaceScopedResource {
47
47
  total_entities_in_workspace: number;
48
48
  total_entities_with_memory: number;
49
49
  total_facts: number;
50
- }>;
50
+ } & import("../index.js").ResponseMetadata>;
51
51
  }
52
52
  //# sourceMappingURL=memory.d.ts.map
@@ -10,7 +10,7 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
10
10
  has_more: boolean;
11
11
  items: components["schemas"]["OperatorResponse"][];
12
12
  total?: number | null;
13
- }>;
13
+ } & import("../index.js").ResponseMetadata>;
14
14
  create(body: components['schemas']['CreateOperatorRequest']): Promise<{
15
15
  active_call_sid: string | null;
16
16
  avg_handle_time_seconds: number;
@@ -29,7 +29,7 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
29
29
  type: ("clinical" | "administrative" | "crisis_counselor") | null;
30
30
  updated_at: string;
31
31
  workspace_id: string;
32
- }>;
32
+ } & import("../index.js").ResponseMetadata>;
33
33
  get(operatorId: string): Promise<{
34
34
  active_call_sid: string | null;
35
35
  avg_handle_time_seconds: number;
@@ -48,19 +48,19 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
48
48
  type: ("clinical" | "administrative" | "crisis_counselor") | null;
49
49
  updated_at: string;
50
50
  workspace_id: string;
51
- }>;
51
+ } & import("../index.js").ResponseMetadata>;
52
52
  getDashboard(): Promise<{
53
53
  active_escalations: number;
54
54
  escalations_today: components["schemas"]["EscalationDailyStats"];
55
55
  operators: components["schemas"]["OperatorStatusCounts"];
56
56
  recent_escalations: components["schemas"]["ActiveEscalationItem"][];
57
57
  workspace_id: string;
58
- }>;
58
+ } & import("../index.js").ResponseMetadata>;
59
59
  getQueue(): Promise<{
60
60
  queue: components["schemas"]["PriorityQueueItem"][];
61
61
  total_active: number;
62
62
  workspace_id: string;
63
- }>;
63
+ } & import("../index.js").ResponseMetadata>;
64
64
  getEscalations(params?: {
65
65
  status?: string;
66
66
  limit?: number;
@@ -70,13 +70,13 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
70
70
  has_more: boolean;
71
71
  items: components["schemas"]["EscalationEventResponse"][];
72
72
  total?: number | null;
73
- }>;
73
+ } & import("../index.js").ResponseMetadata>;
74
74
  getActiveEscalations(): Promise<{
75
75
  continuation_token?: number | null;
76
76
  has_more: boolean;
77
77
  items: components["schemas"]["ActiveEscalationItem"][];
78
78
  total?: number | null;
79
- }>;
79
+ } & import("../index.js").ResponseMetadata>;
80
80
  getEscalationStats(params?: {
81
81
  period?: string;
82
82
  group_by?: string;
@@ -86,7 +86,7 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
86
86
  period: string;
87
87
  total: number;
88
88
  workspace_id: string;
89
- }>;
89
+ } & import("../index.js").ResponseMetadata>;
90
90
  getPerformance(params?: {
91
91
  days?: number;
92
92
  date_from?: string | null;
@@ -102,7 +102,7 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
102
102
  total_escalations_handled: number;
103
103
  total_operators: number;
104
104
  workspace_id: string;
105
- }>;
105
+ } & import("../index.js").ResponseMetadata>;
106
106
  getAccessToken(operatorId: string, body: components['schemas']['AccessTokenRequest']): Promise<{
107
107
  conference_sid: string;
108
108
  connect_params?: {
@@ -110,23 +110,23 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
110
110
  };
111
111
  identity: string;
112
112
  token: string;
113
- }>;
113
+ } & import("../index.js").ResponseMetadata>;
114
114
  joinCall(operatorId: string, body: components['schemas']['JoinCallRequest']): Promise<{
115
115
  conference_sid: string;
116
116
  mode: "listen" | "takeover";
117
117
  operator_entity_id: string;
118
118
  participant_call_sid: string;
119
- }>;
119
+ } & import("../index.js").ResponseMetadata>;
120
120
  leaveCall(operatorId: string, body: components['schemas']['LeaveCallRequest']): Promise<{
121
121
  success: boolean;
122
- }>;
122
+ } & import("../index.js").ResponseMetadata>;
123
123
  switchMode(operatorId: string, body: components['schemas']['SwitchModeRequest']): Promise<{
124
124
  mode: "listen" | "takeover";
125
- }>;
125
+ } & import("../index.js").ResponseMetadata>;
126
126
  sendGuidance(operatorId: string, body: components['schemas']['SendGuidanceRequest']): Promise<{
127
127
  call_sid: string;
128
128
  status: "delivered" | "failed";
129
- }>;
129
+ } & import("../index.js").ResponseMetadata>;
130
130
  createBriefing(operatorId: string, body: {
131
131
  call_sid: string;
132
132
  }): Promise<{
@@ -134,16 +134,16 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
134
134
  generated_at: string;
135
135
  operator_id: string;
136
136
  sections: components["schemas"]["BriefingSection"][];
137
- }>;
137
+ } & import("../index.js").ResponseMetadata>;
138
138
  wrapUp(operatorId: string, body: components['schemas']['WrapUpRequest']): Promise<{
139
139
  success: boolean;
140
- }>;
140
+ } & import("../index.js").ResponseMetadata>;
141
141
  getCallTranscript(callSid: string): Promise<{
142
142
  call_entity_id: string;
143
143
  call_sid: string | null;
144
144
  segments: components["schemas"]["TranscriptSegment"][];
145
145
  total_segments: number;
146
- }>;
146
+ } & import("../index.js").ResponseMetadata>;
147
147
  getAuditLog(params?: {
148
148
  limit?: number;
149
149
  offset?: number;
@@ -152,6 +152,6 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
152
152
  has_more: boolean;
153
153
  items: components["schemas"]["src__routes__operators_models__AuditEventResponse"][];
154
154
  total?: number | null;
155
- }>;
155
+ } & import("../index.js").ResponseMetadata>;
156
156
  }
157
157
  //# sourceMappingURL=operators.d.ts.map
@@ -12,7 +12,7 @@ export declare class PersonasResource extends WorkspaceScopedResource {
12
12
  has_more: boolean;
13
13
  items: components["schemas"]["PersonaResponse"][];
14
14
  total?: number | null;
15
- }>;
15
+ } & import("../index.js").ResponseMetadata>;
16
16
  create(body: components['schemas']['CreatePersonaRequest']): Promise<{
17
17
  background: string;
18
18
  communication_style: {
@@ -26,7 +26,7 @@ export declare class PersonasResource extends WorkspaceScopedResource {
26
26
  role: string;
27
27
  updated_at: string;
28
28
  workspace_id: string;
29
- }>;
29
+ } & import("../index.js").ResponseMetadata>;
30
30
  get(personaId: PersonaId | string): Promise<{
31
31
  background: string;
32
32
  communication_style: {
@@ -40,7 +40,7 @@ export declare class PersonasResource extends WorkspaceScopedResource {
40
40
  role: string;
41
41
  updated_at: string;
42
42
  workspace_id: string;
43
- }>;
43
+ } & import("../index.js").ResponseMetadata>;
44
44
  update(personaId: PersonaId | string, body: components['schemas']['UpdatePersonaRequest']): Promise<{
45
45
  background: string;
46
46
  communication_style: {
@@ -54,7 +54,7 @@ export declare class PersonasResource extends WorkspaceScopedResource {
54
54
  role: string;
55
55
  updated_at: string;
56
56
  workspace_id: string;
57
- }>;
57
+ } & import("../index.js").ResponseMetadata>;
58
58
  delete(personaId: PersonaId | string): Promise<void>;
59
59
  }
60
60
  //# sourceMappingURL=personas.d.ts.map
@@ -22,14 +22,14 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
22
22
  status: "active" | "inactive";
23
23
  updated_at: string;
24
24
  workspace_id: string;
25
- }>;
25
+ } & import("../index.js").ResponseMetadata>;
26
26
  /** List phone numbers in the workspace */
27
27
  list(params?: ListParams): Promise<{
28
28
  continuation_token?: number | null;
29
29
  has_more: boolean;
30
30
  items: components["schemas"]["PhoneNumberResponse"][];
31
31
  total?: number | null;
32
- }>;
32
+ } & import("../index.js").ResponseMetadata>;
33
33
  /** Get a phone number */
34
34
  get(phoneNumberId: PhoneNumberId | string): Promise<{
35
35
  capabilities: string[];
@@ -45,7 +45,7 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
45
45
  status: "active" | "inactive";
46
46
  updated_at: string;
47
47
  workspace_id: string;
48
- }>;
48
+ } & import("../index.js").ResponseMetadata>;
49
49
  /** Update a phone number (assign to agent, rename) */
50
50
  update(phoneNumberId: PhoneNumberId | string, body: components['schemas']['UpdatePhoneNumberRequest']): Promise<{
51
51
  capabilities: string[];
@@ -61,7 +61,7 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
61
61
  status: "active" | "inactive";
62
62
  updated_at: string;
63
63
  workspace_id: string;
64
- }>;
64
+ } & import("../index.js").ResponseMetadata>;
65
65
  /** Release a phone number back to the carrier */
66
66
  release(phoneNumberId: PhoneNumberId | string): Promise<void>;
67
67
  /** Set call forwarding for a phone number */
@@ -79,7 +79,7 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
79
79
  status: "active" | "inactive";
80
80
  updated_at: string;
81
81
  workspace_id: string;
82
- }>;
82
+ } & import("../index.js").ResponseMetadata>;
83
83
  /** Clear call forwarding for a phone number */
84
84
  clearForwarding(phoneNumberId: PhoneNumberId | string): Promise<void>;
85
85
  }
@@ -6,7 +6,7 @@ export declare class RecordingsResource extends WorkspaceScopedResource {
6
6
  metadata_url?: string | null;
7
7
  outbound_url?: string | null;
8
8
  status?: "available";
9
- }>;
9
+ } & import("../index.js").ResponseMetadata>;
10
10
  getMetadata(callSid: string): Promise<{
11
11
  call_end_iso: string;
12
12
  call_sid: string;
@@ -23,7 +23,7 @@ export declare class RecordingsResource extends WorkspaceScopedResource {
23
23
  service_id: string;
24
24
  tts_provider: string;
25
25
  workspace_id: string;
26
- }>;
26
+ } & import("../index.js").ResponseMetadata>;
27
27
  download(callSid: string, filename: string): Promise<unknown>;
28
28
  }
29
29
  //# sourceMappingURL=recordings.d.ts.map
@@ -24,7 +24,7 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
24
24
  has_more: boolean;
25
25
  items: components["schemas"]["ReviewItemResponse"][];
26
26
  total?: number | null;
27
- }>;
27
+ } & import("../index.js").ResponseMetadata>;
28
28
  get(itemId: string): Promise<{
29
29
  assigned_to: string | null;
30
30
  completed_action: ("approved" | "rejected" | "corrected") | null;
@@ -44,13 +44,13 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
44
44
  session_id: string;
45
45
  status: "pending" | "in_progress" | "completed" | "rejected";
46
46
  workspace_id: string;
47
- }>;
47
+ } & import("../index.js").ResponseMetadata>;
48
48
  getStats(): Promise<{
49
49
  avg_review_minutes: number | null;
50
50
  completed: number;
51
51
  pending: number;
52
52
  rejected: number;
53
- }>;
53
+ } & import("../index.js").ResponseMetadata>;
54
54
  getDashboard(): Promise<{
55
55
  completion_rate_24h: number | null;
56
56
  pending_by_priority: {
@@ -61,13 +61,13 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
61
61
  }[];
62
62
  recent_completed: components["schemas"]["ReviewItemResponse"][];
63
63
  stats: components["schemas"]["ReviewStatsResponse"];
64
- }>;
64
+ } & import("../index.js").ResponseMetadata>;
65
65
  getMyQueue(params?: ListParams): Promise<{
66
66
  continuation_token?: number | null;
67
67
  has_more: boolean;
68
68
  items: components["schemas"]["ReviewItemResponse"][];
69
69
  total?: number | null;
70
- }>;
70
+ } & import("../index.js").ResponseMetadata>;
71
71
  approve(itemId: string, body: components['schemas']['ApproveRequest']): Promise<{
72
72
  assigned_to: string | null;
73
73
  completed_action: ("approved" | "rejected" | "corrected") | null;
@@ -87,7 +87,7 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
87
87
  session_id: string;
88
88
  status: "pending" | "in_progress" | "completed" | "rejected";
89
89
  workspace_id: string;
90
- }>;
90
+ } & import("../index.js").ResponseMetadata>;
91
91
  reject(itemId: string, body: components['schemas']['RejectRequest']): Promise<{
92
92
  assigned_to: string | null;
93
93
  completed_action: ("approved" | "rejected" | "corrected") | null;
@@ -107,17 +107,17 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
107
107
  session_id: string;
108
108
  status: "pending" | "in_progress" | "completed" | "rejected";
109
109
  workspace_id: string;
110
- }>;
110
+ } & import("../index.js").ResponseMetadata>;
111
111
  claim(itemId: string): Promise<{
112
112
  assigned_to: string;
113
113
  id: string;
114
114
  status: "pending" | "in_progress" | "completed" | "rejected";
115
- }>;
115
+ } & import("../index.js").ResponseMetadata>;
116
116
  unclaim(itemId: string): Promise<{
117
117
  assigned_to: string;
118
118
  id: string;
119
119
  status: "pending" | "in_progress" | "completed" | "rejected";
120
- }>;
120
+ } & import("../index.js").ResponseMetadata>;
121
121
  correct(itemId: string, body: components['schemas']['CorrectRequest']): Promise<{
122
122
  assigned_to: string | null;
123
123
  completed_action: ("approved" | "rejected" | "corrected") | null;
@@ -137,35 +137,35 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
137
137
  session_id: string;
138
138
  status: "pending" | "in_progress" | "completed" | "rejected";
139
139
  workspace_id: string;
140
- }>;
140
+ } & import("../index.js").ResponseMetadata>;
141
141
  batchApprove(body: components['schemas']['BatchApproveRequest']): Promise<{
142
142
  failed: {
143
143
  [key: string]: string;
144
144
  }[];
145
145
  succeeded: string[];
146
- }>;
146
+ } & import("../index.js").ResponseMetadata>;
147
147
  batchReject(body: components['schemas']['BatchRejectRequest']): Promise<{
148
148
  failed: {
149
149
  [key: string]: string;
150
150
  }[];
151
151
  succeeded: string[];
152
- }>;
152
+ } & import("../index.js").ResponseMetadata>;
153
153
  getHistory(params?: ReviewHistoryParams): Promise<{
154
154
  continuation_token?: number | null;
155
155
  has_more: boolean;
156
156
  items: components["schemas"]["ReviewItemResponse"][];
157
157
  total?: number | null;
158
- }>;
158
+ } & import("../index.js").ResponseMetadata>;
159
159
  getTrends(params?: {
160
160
  days?: number;
161
161
  }): Promise<{
162
162
  [key: string]: unknown;
163
- }>;
163
+ } & import("../index.js").ResponseMetadata>;
164
164
  getPerformance(params?: {
165
165
  days?: number;
166
166
  }): Promise<{
167
167
  [key: string]: unknown;
168
- }>;
168
+ } & import("../index.js").ResponseMetadata>;
169
169
  getCorrectionSchema(itemId: string): Promise<{
170
170
  current_values: {
171
171
  [key: string]: unknown;
@@ -174,11 +174,11 @@ export declare class ReviewQueueResource extends WorkspaceScopedResource {
174
174
  fields: {
175
175
  [key: string]: unknown;
176
176
  };
177
- }>;
177
+ } & import("../index.js").ResponseMetadata>;
178
178
  getDiff(itemId: string): Promise<{
179
179
  corrected_events: components["schemas"]["EventSummary"][];
180
180
  item_id: string;
181
181
  original_events: components["schemas"]["EventSummary"][];
182
- }>;
182
+ } & import("../index.js").ResponseMetadata>;
183
183
  }
184
184
  //# sourceMappingURL=review-queue.d.ts.map
@@ -13,7 +13,7 @@ export declare class SafetyResource extends WorkspaceScopedResource {
13
13
  triage_max_history_turns: number;
14
14
  triage_model: string;
15
15
  triage_timeout_s: number;
16
- }>;
16
+ } & import("../index.js").ResponseMetadata>;
17
17
  updateConfig(body: components['schemas']['UpdateSafetyConfigRequest']): Promise<{
18
18
  accumulation_cumulative_count: number;
19
19
  accumulation_enabled: boolean;
@@ -26,7 +26,7 @@ export declare class SafetyResource extends WorkspaceScopedResource {
26
26
  triage_max_history_turns: number;
27
27
  triage_model: string;
28
28
  triage_timeout_s: number;
29
- }>;
29
+ } & import("../index.js").ResponseMetadata>;
30
30
  listTemplates(): Promise<{
31
31
  category: string;
32
32
  description: string;
@@ -37,7 +37,7 @@ export declare class SafetyResource extends WorkspaceScopedResource {
37
37
  rules: components["schemas"]["SafetyRuleResponse"][];
38
38
  template_ids?: string[];
39
39
  version: string;
40
- }[]>;
40
+ }[] & import("../index.js").ResponseMetadata>;
41
41
  getTemplate(templateId: string): Promise<{
42
42
  category: string;
43
43
  description: string;
@@ -48,10 +48,10 @@ export declare class SafetyResource extends WorkspaceScopedResource {
48
48
  rules: components["schemas"]["SafetyRuleResponse"][];
49
49
  template_ids?: string[];
50
50
  version: string;
51
- }>;
51
+ } & import("../index.js").ResponseMetadata>;
52
52
  applyTemplate(templateId: string, body: components['schemas']['ApplyTemplateRequest']): Promise<{
53
53
  created_concepts: string[];
54
54
  skipped: string[];
55
- }>;
55
+ } & import("../index.js").ResponseMetadata>;
56
56
  }
57
57
  //# sourceMappingURL=safety.d.ts.map