@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
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amigo-ai/platform-sdk",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Official TypeScript SDK for the Amigo Platform API",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -37,6 +37,7 @@
37
37
  "types": "./dist/types/index.d.ts",
38
38
  "files": [
39
39
  "dist/",
40
+ "api.md",
40
41
  "README.md",
41
42
  "LICENSE"
42
43
  ],
@@ -46,8 +47,8 @@
46
47
  "openapi:sync": "node scripts/sync-openapi.mjs",
47
48
  "build": "npm run clean && npm run gen-types && npm run esbuild && tsc --project tsconfig.build.json",
48
49
  "esbuild": "node scripts/build.mjs",
49
- "lint": "eslint 'src/**/*.{ts,tsx}' 'tests/**/*.{ts,tsx}' 'scripts/**/*.{js,mjs}' --max-warnings 0",
50
- "lint:fix": "eslint 'src/**/*.{ts,tsx}' 'tests/**/*.{ts,tsx}' 'scripts/**/*.{js,mjs}' --fix",
50
+ "lint": "eslint 'src/**/*.{ts,tsx}' 'tests/**/*.{ts,tsx}' 'examples/**/*.ts' 'scripts/**/*.{js,mjs}' --max-warnings 0",
51
+ "lint:fix": "eslint 'src/**/*.{ts,tsx}' 'tests/**/*.{ts,tsx}' 'examples/**/*.ts' 'scripts/**/*.{js,mjs}' --fix",
51
52
  "format": "prettier --check .",
52
53
  "format:write": "prettier --write .",
53
54
  "test": "vitest run --project unit",
@@ -57,7 +58,8 @@
57
58
  "test:watch": "vitest",
58
59
  "test:coverage": "vitest run --coverage --project unit",
59
60
  "typecheck": "tsc --noEmit",
60
- "prepublishOnly": "npm run build && npm test && npm run test:dist && npm run typecheck"
61
+ "typecheck:examples": "tsc --project examples/tsconfig.json --noEmit",
62
+ "prepublishOnly": "npm run build && npm test && npm run test:dist && npm run typecheck && npm run typecheck:examples"
61
63
  },
62
64
  "sideEffects": false,
63
65
  "dependencies": {
@@ -90,6 +92,10 @@
90
92
  "eslint --fix --max-warnings 0",
91
93
  "prettier --write"
92
94
  ],
95
+ "examples/**/*.ts": [
96
+ "eslint --fix --max-warnings 0",
97
+ "prettier --write"
98
+ ],
93
99
  "scripts/**/*.{js,mjs}": [
94
100
  "eslint --fix --max-warnings 0",
95
101
  "prettier --write"