@amigo-ai/platform-sdk 0.4.1 → 0.4.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.
Files changed (65) hide show
  1. package/README.md +111 -0
  2. package/api.md +347 -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 +164 -28
  6. package/dist/core/openapi-client.js.map +1 -1
  7. package/dist/core/request-options.js +80 -0
  8. package/dist/core/request-options.js.map +1 -0
  9. package/dist/core/retry.js +5 -2
  10. package/dist/core/retry.js.map +1 -1
  11. package/dist/core/utils.js +48 -2
  12. package/dist/core/utils.js.map +1 -1
  13. package/dist/core/webhooks.js +9 -0
  14. package/dist/core/webhooks.js.map +1 -1
  15. package/dist/index.cjs +538 -84
  16. package/dist/index.cjs.map +4 -4
  17. package/dist/index.js +113 -30
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +538 -84
  20. package/dist/index.mjs.map +4 -4
  21. package/dist/resources/base.js +33 -0
  22. package/dist/resources/base.js.map +1 -1
  23. package/dist/types/core/errors.d.ts +6 -0
  24. package/dist/types/core/errors.d.ts.map +1 -1
  25. package/dist/types/core/openapi-client.d.ts +26 -1
  26. package/dist/types/core/openapi-client.d.ts.map +1 -1
  27. package/dist/types/core/request-options.d.ts +66 -0
  28. package/dist/types/core/request-options.d.ts.map +1 -0
  29. package/dist/types/core/retry.d.ts +1 -1
  30. package/dist/types/core/retry.d.ts.map +1 -1
  31. package/dist/types/core/utils.d.ts +27 -1
  32. package/dist/types/core/utils.d.ts.map +1 -1
  33. package/dist/types/core/webhooks.d.ts.map +1 -1
  34. package/dist/types/index.d.ts +31 -2
  35. package/dist/types/index.d.ts.map +1 -1
  36. package/dist/types/resources/actions.d.ts +5 -5
  37. package/dist/types/resources/agents.d.ts +7 -7
  38. package/dist/types/resources/analytics.d.ts +11 -11
  39. package/dist/types/resources/api-keys.d.ts +4 -4
  40. package/dist/types/resources/audit.d.ts +6 -6
  41. package/dist/types/resources/base.d.ts +8 -3
  42. package/dist/types/resources/base.d.ts.map +1 -1
  43. package/dist/types/resources/billing.d.ts +6 -6
  44. package/dist/types/resources/calls.d.ts +6 -6
  45. package/dist/types/resources/compliance.d.ts +3 -3
  46. package/dist/types/resources/context-graphs.d.ts +7 -7
  47. package/dist/types/resources/data-sources.d.ts +6 -6
  48. package/dist/types/resources/functions.d.ts +6 -6
  49. package/dist/types/resources/integrations.d.ts +6 -6
  50. package/dist/types/resources/memory.d.ts +3 -3
  51. package/dist/types/resources/operators.d.ts +18 -18
  52. package/dist/types/resources/personas.d.ts +4 -4
  53. package/dist/types/resources/phone-numbers.d.ts +5 -5
  54. package/dist/types/resources/recordings.d.ts +2 -2
  55. package/dist/types/resources/review-queue.d.ts +17 -17
  56. package/dist/types/resources/safety.d.ts +5 -5
  57. package/dist/types/resources/services.d.ts +4 -4
  58. package/dist/types/resources/settings.d.ts +14 -14
  59. package/dist/types/resources/simulations.d.ts +6 -6
  60. package/dist/types/resources/skills.d.ts +5 -5
  61. package/dist/types/resources/triggers.d.ts +8 -8
  62. package/dist/types/resources/webhook-destinations.d.ts +6 -6
  63. package/dist/types/resources/workspaces.d.ts +5 -5
  64. package/dist/types/resources/world.d.ts +18 -18
  65. package/package.json +6 -2
@@ -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
@@ -37,13 +37,13 @@ export declare class ServicesResource extends WorkspaceScopedResource {
37
37
  };
38
38
  voice_config?: components["schemas"]["ServiceVoiceConfig"] | null;
39
39
  workspace_id: string;
40
- }>;
40
+ } & import("../index.js").ResponseMetadata>;
41
41
  list(params?: ListServicesParams): Promise<{
42
42
  continuation_token?: number | null;
43
43
  has_more: boolean;
44
44
  items: components["schemas"]["ServiceResponse"][];
45
45
  total?: number | null;
46
- }>;
46
+ } & import("../index.js").ResponseMetadata>;
47
47
  get(serviceId: ServiceId | string): Promise<{
48
48
  agent_id: string;
49
49
  agent_name?: string | null;
@@ -69,7 +69,7 @@ export declare class ServicesResource extends WorkspaceScopedResource {
69
69
  };
70
70
  voice_config?: components["schemas"]["ServiceVoiceConfig"] | null;
71
71
  workspace_id: string;
72
- }>;
72
+ } & import("../index.js").ResponseMetadata>;
73
73
  update(serviceId: ServiceId | string, body: components['schemas']['UpdateServiceRequest']): Promise<{
74
74
  agent_id: string;
75
75
  agent_name?: string | null;
@@ -95,7 +95,7 @@ export declare class ServicesResource extends WorkspaceScopedResource {
95
95
  };
96
96
  voice_config?: components["schemas"]["ServiceVoiceConfig"] | null;
97
97
  workspace_id: string;
98
- }>;
98
+ } & import("../index.js").ResponseMetadata>;
99
99
  delete(serviceId: ServiceId | string): Promise<void>;
100
100
  }
101
101
  //# sourceMappingURL=services.d.ts.map
@@ -20,7 +20,7 @@ export declare class SettingsResource extends WorkspaceScopedResource {
20
20
  transcript_correction_enabled: boolean;
21
21
  voice_id: string | null;
22
22
  volume: number | null;
23
- }>;
23
+ } & import("../index.js").ResponseMetadata>;
24
24
  update: (body: components["schemas"]["VoiceSettingsRequest"]) => Promise<{
25
25
  correction_categories: string[];
26
26
  keyterms: string[];
@@ -33,43 +33,43 @@ export declare class SettingsResource extends WorkspaceScopedResource {
33
33
  transcript_correction_enabled: boolean;
34
34
  voice_id: string | null;
35
35
  volume: number | null;
36
- }>;
36
+ } & import("../index.js").ResponseMetadata>;
37
37
  };
38
38
  readonly branding: {
39
39
  get: () => Promise<{
40
40
  branding: components["schemas"]["BrandingConfig"];
41
- }>;
41
+ } & import("../index.js").ResponseMetadata>;
42
42
  update: (body: components["schemas"]["BrandingSettingsRequest"]) => Promise<{
43
43
  branding: components["schemas"]["BrandingConfig"];
44
- }>;
44
+ } & import("../index.js").ResponseMetadata>;
45
45
  };
46
46
  readonly outreach: {
47
47
  get: () => Promise<{
48
48
  data_templates: components["schemas"]["DataTemplate-Output"][];
49
49
  rules: components["schemas"]["OutreachRule"][];
50
- }>;
50
+ } & import("../index.js").ResponseMetadata>;
51
51
  update: (body: components["schemas"]["OutreachSettingsRequest"]) => Promise<{
52
52
  data_templates: components["schemas"]["DataTemplate-Output"][];
53
53
  rules: components["schemas"]["OutreachRule"][];
54
- }>;
54
+ } & import("../index.js").ResponseMetadata>;
55
55
  };
56
56
  readonly memory: {
57
57
  get: () => Promise<{
58
58
  backfill_requested: boolean;
59
59
  dimensions: components["schemas"]["MemoryDimension"][];
60
- }>;
60
+ } & import("../index.js").ResponseMetadata>;
61
61
  update: (body: components["schemas"]["MemorySettingsRequest"]) => Promise<{
62
62
  backfill_requested: boolean;
63
63
  dimensions: components["schemas"]["MemoryDimension"][];
64
- }>;
64
+ } & import("../index.js").ResponseMetadata>;
65
65
  };
66
66
  readonly security: {
67
67
  get: () => Promise<{
68
68
  voice_auth_enabled?: boolean;
69
- }>;
69
+ } & import("../index.js").ResponseMetadata>;
70
70
  update: (body: components["schemas"]["SecuritySettingsRequest"]) => Promise<{
71
71
  voice_auth_enabled?: boolean;
72
- }>;
72
+ } & import("../index.js").ResponseMetadata>;
73
73
  };
74
74
  readonly retention: {
75
75
  get: () => Promise<{
@@ -80,7 +80,7 @@ export declare class SettingsResource extends WorkspaceScopedResource {
80
80
  legal_hold_reason?: string | null;
81
81
  phi_data_days: number;
82
82
  world_events_days: number;
83
- }>;
83
+ } & import("../index.js").ResponseMetadata>;
84
84
  update: (body: components["schemas"]["RetentionPolicyRequest"]) => Promise<{
85
85
  audit_log_days: number;
86
86
  call_recordings_days: number;
@@ -89,15 +89,15 @@ export declare class SettingsResource extends WorkspaceScopedResource {
89
89
  legal_hold_reason?: string | null;
90
90
  phi_data_days: number;
91
91
  world_events_days: number;
92
- }>;
92
+ } & import("../index.js").ResponseMetadata>;
93
93
  };
94
94
  readonly workflows: {
95
95
  get: () => Promise<{
96
96
  workflows?: components["schemas"]["WorkflowSpec-Output"][];
97
- }>;
97
+ } & import("../index.js").ResponseMetadata>;
98
98
  update: (body: components["schemas"]["WorkflowSettingsRequest"]) => Promise<{
99
99
  workflows?: components["schemas"]["WorkflowSpec-Output"][];
100
- }>;
100
+ } & import("../index.js").ResponseMetadata>;
101
101
  };
102
102
  }
103
103
  //# sourceMappingURL=settings.d.ts.map
@@ -15,7 +15,7 @@ export declare class SimulationsResource extends WorkspaceScopedResource {
15
15
  is_terminal: boolean;
16
16
  session_id: string;
17
17
  snapshot: components["schemas"]["SimulationSnapshotResponse"];
18
- }>;
18
+ } & import("../index.js").ResponseMetadata>;
19
19
  /** Get the current snapshot of a session */
20
20
  getSession(sessionId: SimulationSessionId | string): Promise<{
21
21
  context_graph_topology?: {
@@ -37,11 +37,11 @@ export declare class SimulationsResource extends WorkspaceScopedResource {
37
37
  turn_policy?: components["schemas"]["SimulationTurnPolicyResponse"];
38
38
  } & {
39
39
  [key: string]: unknown;
40
- }>;
40
+ } & import("../index.js").ResponseMetadata>;
41
41
  /** Delete a simulation session */
42
42
  deleteSession(sessionId: SimulationSessionId | string): Promise<{
43
43
  [key: string]: string;
44
- }>;
44
+ } & import("../index.js").ResponseMetadata>;
45
45
  /**
46
46
  * Send a caller utterance and advance the session by one turn.
47
47
  * Returns the agent's response observation and updated snapshot.
@@ -49,20 +49,20 @@ export declare class SimulationsResource extends WorkspaceScopedResource {
49
49
  step(body: components['schemas']['StepRequest']): Promise<{
50
50
  observation: components["schemas"]["SimulationObservation"];
51
51
  snapshot: components["schemas"]["SimulationSnapshotResponse"];
52
- }>;
52
+ } & import("../index.js").ResponseMetadata>;
53
53
  /**
54
54
  * Get LLM-generated caller message suggestions for the current session state.
55
55
  * Helps exploratory testing by suggesting realistic next caller turns.
56
56
  */
57
57
  recommend(body: components['schemas']['RecommendRequest']): Promise<{
58
58
  [key: string]: unknown;
59
- }>;
59
+ } & import("../index.js").ResponseMetadata>;
60
60
  /** Get AI-generated call intelligence for a completed session */
61
61
  getIntelligence(sessionId: SimulationSessionId | string): Promise<{
62
62
  intelligence: {
63
63
  [key: string]: unknown;
64
64
  };
65
65
  session_id: string;
66
- }>;
66
+ } & import("../index.js").ResponseMetadata>;
67
67
  }
68
68
  //# sourceMappingURL=simulations.d.ts.map
@@ -50,14 +50,14 @@ export declare class SkillsResource extends WorkspaceScopedResource {
50
50
  use_structured_output: boolean;
51
51
  version: number;
52
52
  workspace_id: string;
53
- }>;
53
+ } & import("../index.js").ResponseMetadata>;
54
54
  /** List skills in the workspace */
55
55
  list(params?: ListSkillsParams): Promise<{
56
56
  continuation_token?: number | null;
57
57
  has_more: boolean;
58
58
  items: components["schemas"]["SkillResponse"][];
59
59
  total?: number | null;
60
- }>;
60
+ } & import("../index.js").ResponseMetadata>;
61
61
  /** Get a single skill */
62
62
  get(skillId: SkillId | string): Promise<{
63
63
  approval_required: boolean;
@@ -96,7 +96,7 @@ export declare class SkillsResource extends WorkspaceScopedResource {
96
96
  use_structured_output: boolean;
97
97
  version: number;
98
98
  workspace_id: string;
99
- }>;
99
+ } & import("../index.js").ResponseMetadata>;
100
100
  /** Update a skill */
101
101
  update(skillId: SkillId | string, body: components['schemas']['UpdateSkillRequest']): Promise<{
102
102
  approval_required: boolean;
@@ -135,7 +135,7 @@ export declare class SkillsResource extends WorkspaceScopedResource {
135
135
  use_structured_output: boolean;
136
136
  version: number;
137
137
  workspace_id: string;
138
- }>;
138
+ } & import("../index.js").ResponseMetadata>;
139
139
  /** Delete a skill */
140
140
  delete(skillId: SkillId | string): Promise<void>;
141
141
  /**
@@ -151,6 +151,6 @@ export declare class SkillsResource extends WorkspaceScopedResource {
151
151
  result: string;
152
152
  rounds: number;
153
153
  sub_tool_logs: components["schemas"]["SubToolLog"][];
154
- }>;
154
+ } & import("../index.js").ResponseMetadata>;
155
155
  }
156
156
  //# sourceMappingURL=skills.d.ts.map
@@ -7,7 +7,7 @@ export declare class TriggersResource extends WorkspaceScopedResource {
7
7
  has_more: boolean;
8
8
  items: components["schemas"]["TriggerResponse"][];
9
9
  total?: number | null;
10
- }>;
10
+ } & import("../index.js").ResponseMetadata>;
11
11
  create(body: components['schemas']['CreateTriggerRequest']): Promise<{
12
12
  action_id: string;
13
13
  created_at: string;
@@ -28,7 +28,7 @@ export declare class TriggersResource extends WorkspaceScopedResource {
28
28
  timezone: string;
29
29
  updated_at: string;
30
30
  workspace_id: string;
31
- }>;
31
+ } & import("../index.js").ResponseMetadata>;
32
32
  get(triggerId: string): Promise<{
33
33
  action_id: string;
34
34
  created_at: string;
@@ -49,7 +49,7 @@ export declare class TriggersResource extends WorkspaceScopedResource {
49
49
  timezone: string;
50
50
  updated_at: string;
51
51
  workspace_id: string;
52
- }>;
52
+ } & import("../index.js").ResponseMetadata>;
53
53
  update(triggerId: string, body: components['schemas']['UpdateTriggerRequest']): Promise<{
54
54
  action_id: string;
55
55
  created_at: string;
@@ -70,13 +70,13 @@ export declare class TriggersResource extends WorkspaceScopedResource {
70
70
  timezone: string;
71
71
  updated_at: string;
72
72
  workspace_id: string;
73
- }>;
73
+ } & import("../index.js").ResponseMetadata>;
74
74
  delete(triggerId: string): Promise<void>;
75
75
  fire(triggerId: string): Promise<{
76
76
  fired_event_id: string;
77
77
  status?: "fired";
78
78
  trigger_id: string;
79
- }>;
79
+ } & import("../index.js").ResponseMetadata>;
80
80
  pause(triggerId: string): Promise<{
81
81
  action_id: string;
82
82
  created_at: string;
@@ -97,7 +97,7 @@ export declare class TriggersResource extends WorkspaceScopedResource {
97
97
  timezone: string;
98
98
  updated_at: string;
99
99
  workspace_id: string;
100
- }>;
100
+ } & import("../index.js").ResponseMetadata>;
101
101
  resume(triggerId: string): Promise<{
102
102
  action_id: string;
103
103
  created_at: string;
@@ -118,12 +118,12 @@ export declare class TriggersResource extends WorkspaceScopedResource {
118
118
  timezone: string;
119
119
  updated_at: string;
120
120
  workspace_id: string;
121
- }>;
121
+ } & import("../index.js").ResponseMetadata>;
122
122
  listRuns(triggerId: string, params?: ListParams): Promise<{
123
123
  continuation_token?: number | null;
124
124
  has_more: boolean;
125
125
  items: components["schemas"]["TriggerRunResponse"][];
126
126
  total?: number | null;
127
- }>;
127
+ } & import("../index.js").ResponseMetadata>;
128
128
  }
129
129
  //# sourceMappingURL=triggers.d.ts.map
@@ -7,7 +7,7 @@ export declare class WebhookDestinationsResource extends WorkspaceScopedResource
7
7
  has_more: boolean;
8
8
  items: components["schemas"]["WebhookDestinationResponse"][];
9
9
  total?: number | null;
10
- }>;
10
+ } & import("../index.js").ResponseMetadata>;
11
11
  create(body: components['schemas']['CreateWebhookDestinationRequest']): Promise<{
12
12
  accepted_event_types: string[];
13
13
  created_at: string;
@@ -25,7 +25,7 @@ export declare class WebhookDestinationsResource extends WorkspaceScopedResource
25
25
  updated_at: string;
26
26
  url: string;
27
27
  workspace_id: string;
28
- }>;
28
+ } & import("../index.js").ResponseMetadata>;
29
29
  get(destinationId: string): Promise<{
30
30
  accepted_event_types: string[];
31
31
  created_at: string;
@@ -42,7 +42,7 @@ export declare class WebhookDestinationsResource extends WorkspaceScopedResource
42
42
  updated_at: string;
43
43
  url: string;
44
44
  workspace_id: string;
45
- }>;
45
+ } & import("../index.js").ResponseMetadata>;
46
46
  update(destinationId: string, body: components['schemas']['UpdateWebhookDestinationRequest']): Promise<{
47
47
  accepted_event_types: string[];
48
48
  created_at: string;
@@ -59,17 +59,17 @@ export declare class WebhookDestinationsResource extends WorkspaceScopedResource
59
59
  updated_at: string;
60
60
  url: string;
61
61
  workspace_id: string;
62
- }>;
62
+ } & import("../index.js").ResponseMetadata>;
63
63
  delete(destinationId: string): Promise<void>;
64
64
  listDeliveries(destinationId: string, params?: ListParams): Promise<{
65
65
  continuation_token?: number | null;
66
66
  has_more: boolean;
67
67
  items: components["schemas"]["DeliveryResponse"][];
68
68
  total?: number | null;
69
- }>;
69
+ } & import("../index.js").ResponseMetadata>;
70
70
  rotateSecret(destinationId: string): Promise<{
71
71
  rotation_expires_at: string;
72
72
  secret: string;
73
- }>;
73
+ } & import("../index.js").ResponseMetadata>;
74
74
  }
75
75
  //# sourceMappingURL=webhook-destinations.d.ts.map
@@ -22,14 +22,14 @@ export declare class WorkspacesResource extends WorkspaceScopedResource {
22
22
  region: string;
23
23
  slug: string;
24
24
  updated_at: string;
25
- }>;
25
+ } & import("../index.js").ResponseMetadata>;
26
26
  /** List workspaces accessible to the current API key */
27
27
  list(params?: ListParams): Promise<{
28
28
  continuation_token?: number | null;
29
29
  has_more: boolean;
30
30
  items: components["schemas"]["WorkspaceResponse"][];
31
31
  total?: number | null;
32
- }>;
32
+ } & import("../index.js").ResponseMetadata>;
33
33
  /** Get a single workspace by ID */
34
34
  get(id?: WorkspaceId | string): Promise<{
35
35
  backend_org_id: string | null;
@@ -42,7 +42,7 @@ export declare class WorkspacesResource extends WorkspaceScopedResource {
42
42
  region: string;
43
43
  slug: string;
44
44
  updated_at: string;
45
- }>;
45
+ } & import("../index.js").ResponseMetadata>;
46
46
  /** Update workspace metadata */
47
47
  update(body: components['schemas']['UpdateWorkspaceRequest'], id?: WorkspaceId | string): Promise<{
48
48
  backend_org_id: string | null;
@@ -55,7 +55,7 @@ export declare class WorkspacesResource extends WorkspaceScopedResource {
55
55
  region: string;
56
56
  slug: string;
57
57
  updated_at: string;
58
- }>;
58
+ } & import("../index.js").ResponseMetadata>;
59
59
  /** Archive (soft-delete) a workspace */
60
60
  archive(body: components['schemas']['ArchiveWorkspaceRequest'], id?: WorkspaceId | string): Promise<{
61
61
  backend_org_id: string | null;
@@ -68,6 +68,6 @@ export declare class WorkspacesResource extends WorkspaceScopedResource {
68
68
  region: string;
69
69
  slug: string;
70
70
  updated_at: string;
71
- }>;
71
+ } & import("../index.js").ResponseMetadata>;
72
72
  }
73
73
  //# sourceMappingURL=workspaces.d.ts.map
@@ -24,7 +24,7 @@ export declare class WorldResource extends WorkspaceScopedResource {
24
24
  has_more: boolean;
25
25
  next_offset?: number | null;
26
26
  total: number;
27
- }>;
27
+ } & import("../index.js").ResponseMetadata>;
28
28
  /** Get a single entity */
29
29
  getEntity(entityId: EntityId | string): Promise<{
30
30
  appointment_end?: string | null;
@@ -65,43 +65,43 @@ export declare class WorldResource extends WorkspaceScopedResource {
65
65
  tags?: string[] | null;
66
66
  updated_at?: string | null;
67
67
  workspace_id: string;
68
- }>;
68
+ } & import("../index.js").ResponseMetadata>;
69
69
  /** Get all relationships for an entity */
70
70
  getRelationships(entityId: EntityId | string): Promise<{
71
71
  entity_id: string;
72
72
  relationships: import("../index.js").components["schemas"]["EntityRelationshipResponse"][];
73
73
  total: number;
74
- }>;
74
+ } & import("../index.js").ResponseMetadata>;
75
75
  /** Get the knowledge graph centered on an entity (entity + neighbors + edges) */
76
76
  getGraph(entityId: EntityId | string): Promise<{
77
77
  [key: string]: unknown;
78
- }>;
78
+ } & import("../index.js").ResponseMetadata>;
79
79
  /** Get provenance — which source systems contributed data for an entity */
80
80
  getProvenance(entityId: EntityId | string): Promise<{
81
81
  [key: string]: unknown;
82
- }>;
82
+ } & import("../index.js").ResponseMetadata>;
83
83
  /** Get lineage — merge history and canonical identity for an entity */
84
84
  getLineage(entityId: EntityId | string): Promise<{
85
85
  [key: string]: unknown;
86
- }>;
86
+ } & import("../index.js").ResponseMetadata>;
87
87
  /** Get merged entities for a canonical entity */
88
88
  getMerged(entityId: EntityId | string): Promise<{
89
89
  entity_id: string;
90
90
  linked_entities: import("../index.js").components["schemas"]["EntityResponse"][];
91
91
  total: number;
92
- }>;
92
+ } & import("../index.js").ResponseMetadata>;
93
93
  /** List registered entity types with counts and schemas */
94
94
  listEntityTypes(): Promise<{
95
95
  entity_types: import("../index.js").components["schemas"]["EntityTypeSummary"][];
96
96
  total_entities: number;
97
- }>;
97
+ } & import("../index.js").ResponseMetadata>;
98
98
  /** List potential duplicate entity pairs for review or merging */
99
99
  listDuplicates(params?: {
100
100
  entity_type?: string | null;
101
101
  confidence_max?: number;
102
102
  }): Promise<{
103
103
  [key: string]: unknown;
104
- }[]>;
104
+ }[] & import("../index.js").ResponseMetadata>;
105
105
  /** Semantic (vector) search over entities */
106
106
  search(params: {
107
107
  q: string;
@@ -112,7 +112,7 @@ export declare class WorldResource extends WorkspaceScopedResource {
112
112
  offset?: number;
113
113
  }): Promise<{
114
114
  [key: string]: unknown;
115
- }>;
115
+ } & import("../index.js").ResponseMetadata>;
116
116
  /** Get the event timeline for an entity (reverse-chronological) */
117
117
  getTimeline(entityId: EntityId | string, params?: {
118
118
  domain?: string | null;
@@ -124,11 +124,11 @@ export declare class WorldResource extends WorkspaceScopedResource {
124
124
  has_more: boolean;
125
125
  next_offset?: number | null;
126
126
  total: number;
127
- }>;
127
+ } & import("../index.js").ResponseMetadata>;
128
128
  /** Get sync status grouped by sink (Lakebase, Delta, etc.) */
129
129
  getSyncStatusBySink(): Promise<{
130
130
  sinks: import("../index.js").components["schemas"]["SinkSyncStatus"][];
131
- }>;
131
+ } & import("../index.js").ResponseMetadata>;
132
132
  /** List sync events with status filtering */
133
133
  listSyncEvents(params: {
134
134
  status: 'pending' | 'failed';
@@ -143,7 +143,7 @@ export declare class WorldResource extends WorkspaceScopedResource {
143
143
  has_more: boolean;
144
144
  next_offset?: number | null;
145
145
  total: number;
146
- }>;
146
+ } & import("../index.js").ResponseMetadata>;
147
147
  /** Get current sync queue depth */
148
148
  getSyncQueueDepth(): Promise<{
149
149
  by_resource_type?: {
@@ -155,17 +155,17 @@ export declare class WorldResource extends WorkspaceScopedResource {
155
155
  last_sync_success_at?: string | null;
156
156
  oldest_pending_at?: string | null;
157
157
  pending_count: number;
158
- }>;
158
+ } & import("../index.js").ResponseMetadata>;
159
159
  /** Retry a single failed sync event */
160
160
  retrySyncEvent(eventId: string): Promise<{
161
161
  event_id: string;
162
162
  status: string;
163
- }>;
163
+ } & import("../index.js").ResponseMetadata>;
164
164
  /** Retry all failed sync events */
165
165
  retryAllSyncEvents(): Promise<{
166
166
  failed_to_publish: number;
167
167
  retried: number;
168
- }>;
168
+ } & import("../index.js").ResponseMetadata>;
169
169
  /** Get aggregate entity and event statistics */
170
170
  getStats(): Promise<{
171
171
  by_event_type?: {
@@ -176,11 +176,11 @@ export declare class WorldResource extends WorkspaceScopedResource {
176
176
  sync_synced: number;
177
177
  total_entities: number;
178
178
  total_events: number;
179
- }>;
179
+ } & import("../index.js").ResponseMetadata>;
180
180
  /** Get entity counts broken down by source system */
181
181
  getSourceBreakdown(): Promise<{
182
182
  breakdown: import("../index.js").components["schemas"]["SourceBreakdownItem"][];
183
183
  total: number;
184
- }>;
184
+ } & import("../index.js").ResponseMetadata>;
185
185
  }
186
186
  //# sourceMappingURL=world.d.ts.map