@amigo-ai/platform-sdk 0.1.0 → 0.2.1

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 (149) hide show
  1. package/README.md +114 -2
  2. package/dist/core/branded-types.js +1 -0
  3. package/dist/core/branded-types.js.map +1 -1
  4. package/dist/core/errors.js +43 -3
  5. package/dist/core/errors.js.map +1 -1
  6. package/dist/core/openapi-client.js +60 -48
  7. package/dist/core/openapi-client.js.map +1 -1
  8. package/dist/core/rate-limit.js +13 -0
  9. package/dist/core/rate-limit.js.map +1 -0
  10. package/dist/core/webhooks.js +17 -0
  11. package/dist/core/webhooks.js.map +1 -0
  12. package/dist/generated/api.js +2 -0
  13. package/dist/{types → generated}/api.js.map +1 -1
  14. package/dist/index.cjs +1668 -371
  15. package/dist/index.cjs.map +4 -4
  16. package/dist/index.js +59 -43
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.mjs +1658 -371
  19. package/dist/index.mjs.map +4 -4
  20. package/dist/resources/actions.js +52 -0
  21. package/dist/resources/actions.js.map +1 -0
  22. package/dist/resources/agents.js +30 -30
  23. package/dist/resources/agents.js.map +1 -1
  24. package/dist/resources/analytics.js +34 -15
  25. package/dist/resources/analytics.js.map +1 -1
  26. package/dist/resources/api-keys.js +17 -19
  27. package/dist/resources/api-keys.js.map +1 -1
  28. package/dist/resources/audit.js +35 -0
  29. package/dist/resources/audit.js.map +1 -0
  30. package/dist/resources/base.js +12 -44
  31. package/dist/resources/base.js.map +1 -1
  32. package/dist/resources/billing.js +35 -7
  33. package/dist/resources/billing.js.map +1 -1
  34. package/dist/resources/calls.js +25 -9
  35. package/dist/resources/calls.js.map +1 -1
  36. package/dist/resources/compliance.js +19 -0
  37. package/dist/resources/compliance.js.map +1 -0
  38. package/dist/resources/context-graphs.js +46 -18
  39. package/dist/resources/context-graphs.js.map +1 -1
  40. package/dist/resources/data-sources.js +30 -12
  41. package/dist/resources/data-sources.js.map +1 -1
  42. package/dist/resources/functions.js +42 -0
  43. package/dist/resources/functions.js.map +1 -0
  44. package/dist/resources/integrations.js +32 -15
  45. package/dist/resources/integrations.js.map +1 -1
  46. package/dist/resources/memory.js +13 -4
  47. package/dist/resources/memory.js.map +1 -1
  48. package/dist/resources/operators.js +102 -0
  49. package/dist/resources/operators.js.map +1 -0
  50. package/dist/resources/personas.js +31 -0
  51. package/dist/resources/personas.js.map +1 -0
  52. package/dist/resources/phone-numbers.js +31 -16
  53. package/dist/resources/phone-numbers.js.map +1 -1
  54. package/dist/resources/recordings.js +19 -0
  55. package/dist/resources/recordings.js.map +1 -0
  56. package/dist/resources/review-queue.js +94 -0
  57. package/dist/resources/review-queue.js.map +1 -0
  58. package/dist/resources/safety.js +31 -0
  59. package/dist/resources/safety.js.map +1 -0
  60. package/dist/resources/services.js +18 -12
  61. package/dist/resources/services.js.map +1 -1
  62. package/dist/resources/settings.js +50 -24
  63. package/dist/resources/settings.js.map +1 -1
  64. package/dist/resources/simulations.js +23 -17
  65. package/dist/resources/simulations.js.map +1 -1
  66. package/dist/resources/skills.js +22 -16
  67. package/dist/resources/skills.js.map +1 -1
  68. package/dist/resources/triggers.js +51 -0
  69. package/dist/resources/triggers.js.map +1 -0
  70. package/dist/resources/webhook-destinations.js +44 -0
  71. package/dist/resources/webhook-destinations.js.map +1 -0
  72. package/dist/resources/workspaces.js +24 -38
  73. package/dist/resources/workspaces.js.map +1 -1
  74. package/dist/resources/world.js +58 -60
  75. package/dist/resources/world.js.map +1 -1
  76. package/dist/types/core/branded-types.d.ts +3 -0
  77. package/dist/types/core/branded-types.d.ts.map +1 -1
  78. package/dist/types/core/errors.d.ts +3 -0
  79. package/dist/types/core/errors.d.ts.map +1 -1
  80. package/dist/types/core/openapi-client.d.ts +13 -5
  81. package/dist/types/core/openapi-client.d.ts.map +1 -1
  82. package/dist/types/core/rate-limit.d.ts +8 -0
  83. package/dist/types/core/rate-limit.d.ts.map +1 -0
  84. package/dist/types/core/webhooks.d.ts +9 -0
  85. package/dist/types/core/webhooks.d.ts.map +1 -0
  86. package/dist/types/generated/api.d.ts +35120 -0
  87. package/dist/types/generated/api.d.ts.map +1 -0
  88. package/dist/types/index.d.ts +45 -43
  89. package/dist/types/index.d.ts.map +1 -1
  90. package/dist/types/resources/actions.d.ts +158 -0
  91. package/dist/types/resources/actions.d.ts.map +1 -0
  92. package/dist/types/resources/agents.d.ts +70 -22
  93. package/dist/types/resources/agents.d.ts.map +1 -1
  94. package/dist/types/resources/analytics.d.ts +100 -118
  95. package/dist/types/resources/analytics.d.ts.map +1 -1
  96. package/dist/types/resources/api-keys.d.ts +36 -7
  97. package/dist/types/resources/api-keys.d.ts.map +1 -1
  98. package/dist/types/resources/audit.d.ts +70 -0
  99. package/dist/types/resources/audit.d.ts.map +1 -0
  100. package/dist/types/resources/base.d.ts +13 -13
  101. package/dist/types/resources/base.d.ts.map +1 -1
  102. package/dist/types/resources/billing.d.ts +52 -12
  103. package/dist/types/resources/billing.d.ts.map +1 -1
  104. package/dist/types/resources/calls.d.ts +89 -35
  105. package/dist/types/resources/calls.d.ts.map +1 -1
  106. package/dist/types/resources/compliance.d.ts +45 -0
  107. package/dist/types/resources/compliance.d.ts.map +1 -0
  108. package/dist/types/resources/context-graphs.d.ts +77 -14
  109. package/dist/types/resources/context-graphs.d.ts.map +1 -1
  110. package/dist/types/resources/data-sources.d.ts +105 -9
  111. package/dist/types/resources/data-sources.d.ts.map +1 -1
  112. package/dist/types/resources/functions.d.ts +46 -0
  113. package/dist/types/resources/functions.d.ts.map +1 -0
  114. package/dist/types/resources/integrations.d.ts +83 -12
  115. package/dist/types/resources/integrations.d.ts.map +1 -1
  116. package/dist/types/resources/memory.d.ts +26 -73
  117. package/dist/types/resources/memory.d.ts.map +1 -1
  118. package/dist/types/resources/operators.d.ts +157 -0
  119. package/dist/types/resources/operators.d.ts.map +1 -0
  120. package/dist/types/resources/personas.d.ts +60 -0
  121. package/dist/types/resources/personas.d.ts.map +1 -0
  122. package/dist/types/resources/phone-numbers.d.ts +70 -10
  123. package/dist/types/resources/phone-numbers.d.ts.map +1 -1
  124. package/dist/types/resources/recordings.d.ts +29 -0
  125. package/dist/types/resources/recordings.d.ts.map +1 -0
  126. package/dist/types/resources/review-queue.d.ts +184 -0
  127. package/dist/types/resources/review-queue.d.ts.map +1 -0
  128. package/dist/types/resources/safety.d.ts +57 -0
  129. package/dist/types/resources/safety.d.ts.map +1 -0
  130. package/dist/types/resources/services.d.ts +85 -5
  131. package/dist/types/resources/services.d.ts.map +1 -1
  132. package/dist/types/resources/settings.d.ts +79 -78
  133. package/dist/types/resources/settings.d.ts.map +1 -1
  134. package/dist/types/resources/simulations.d.ts +41 -12
  135. package/dist/types/resources/simulations.d.ts.map +1 -1
  136. package/dist/types/resources/skills.d.ts +131 -6
  137. package/dist/types/resources/skills.d.ts.map +1 -1
  138. package/dist/types/resources/triggers.d.ts +129 -0
  139. package/dist/types/resources/triggers.d.ts.map +1 -0
  140. package/dist/types/resources/webhook-destinations.d.ts +75 -0
  141. package/dist/types/resources/webhook-destinations.d.ts.map +1 -0
  142. package/dist/types/resources/workspaces.d.ts +60 -15
  143. package/dist/types/resources/workspaces.d.ts.map +1 -1
  144. package/dist/types/resources/world.d.ts +152 -143
  145. package/dist/types/resources/world.d.ts.map +1 -1
  146. package/package.json +6 -3
  147. package/dist/types/api.js +0 -12
  148. package/dist/types/types/api.d.ts +0 -739
  149. package/dist/types/types/api.d.ts.map +0 -1
@@ -0,0 +1,129 @@
1
+ import type { components } from '../generated/api.js';
2
+ import { WorkspaceScopedResource } from './base.js';
3
+ import type { ListParams } from '../core/utils.js';
4
+ export declare class TriggersResource extends WorkspaceScopedResource {
5
+ list(params?: ListParams): Promise<{
6
+ items: components["schemas"]["TriggerResponse"][];
7
+ has_more: boolean;
8
+ continuation_token?: number | null;
9
+ total?: number | null;
10
+ }>;
11
+ create(body: components['schemas']['CreateTriggerRequest']): Promise<{
12
+ id: string;
13
+ workspace_id: string;
14
+ name: string;
15
+ description: string | null;
16
+ event_type: string;
17
+ event_filter: {
18
+ [key: string]: unknown;
19
+ } | null;
20
+ action_id: string;
21
+ input_template: {
22
+ [key: string]: unknown;
23
+ };
24
+ schedule: string | null;
25
+ timezone: string;
26
+ next_fire_at: string | null;
27
+ is_active: boolean;
28
+ created_by: string | null;
29
+ created_at: string | null;
30
+ updated_at: string | null;
31
+ }>;
32
+ get(triggerId: string): Promise<{
33
+ id: string;
34
+ workspace_id: string;
35
+ name: string;
36
+ description: string | null;
37
+ event_type: string;
38
+ event_filter: {
39
+ [key: string]: unknown;
40
+ } | null;
41
+ action_id: string;
42
+ input_template: {
43
+ [key: string]: unknown;
44
+ };
45
+ schedule: string | null;
46
+ timezone: string;
47
+ next_fire_at: string | null;
48
+ is_active: boolean;
49
+ created_by: string | null;
50
+ created_at: string | null;
51
+ updated_at: string | null;
52
+ }>;
53
+ update(triggerId: string, body: components['schemas']['UpdateTriggerRequest']): Promise<{
54
+ id: string;
55
+ workspace_id: string;
56
+ name: string;
57
+ description: string | null;
58
+ event_type: string;
59
+ event_filter: {
60
+ [key: string]: unknown;
61
+ } | null;
62
+ action_id: string;
63
+ input_template: {
64
+ [key: string]: unknown;
65
+ };
66
+ schedule: string | null;
67
+ timezone: string;
68
+ next_fire_at: string | null;
69
+ is_active: boolean;
70
+ created_by: string | null;
71
+ created_at: string | null;
72
+ updated_at: string | null;
73
+ }>;
74
+ delete(triggerId: string): Promise<void>;
75
+ fire(triggerId: string): Promise<{
76
+ fired_event_id: string;
77
+ trigger_id: string;
78
+ status?: string;
79
+ }>;
80
+ pause(triggerId: string): Promise<{
81
+ id: string;
82
+ workspace_id: string;
83
+ name: string;
84
+ description: string | null;
85
+ event_type: string;
86
+ event_filter: {
87
+ [key: string]: unknown;
88
+ } | null;
89
+ action_id: string;
90
+ input_template: {
91
+ [key: string]: unknown;
92
+ };
93
+ schedule: string | null;
94
+ timezone: string;
95
+ next_fire_at: string | null;
96
+ is_active: boolean;
97
+ created_by: string | null;
98
+ created_at: string | null;
99
+ updated_at: string | null;
100
+ }>;
101
+ resume(triggerId: string): Promise<{
102
+ id: string;
103
+ workspace_id: string;
104
+ name: string;
105
+ description: string | null;
106
+ event_type: string;
107
+ event_filter: {
108
+ [key: string]: unknown;
109
+ } | null;
110
+ action_id: string;
111
+ input_template: {
112
+ [key: string]: unknown;
113
+ };
114
+ schedule: string | null;
115
+ timezone: string;
116
+ next_fire_at: string | null;
117
+ is_active: boolean;
118
+ created_by: string | null;
119
+ created_at: string | null;
120
+ updated_at: string | null;
121
+ }>;
122
+ listRuns(triggerId: string, params?: ListParams): Promise<{
123
+ items: components["schemas"]["TriggerRunResponse"][];
124
+ has_more: boolean;
125
+ continuation_token?: number | null;
126
+ total?: number | null;
127
+ }>;
128
+ }
129
+ //# sourceMappingURL=triggers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/resources/triggers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,qBAAa,gBAAiB,SAAQ,uBAAuB;IACrD,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU;eAwEsmva,qBAAsB;;;;;IAhEppva,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;;;;;;;;;IAS1D,GAAG,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;IAQrB,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;;;;;;;;;IAS7E,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMxC,IAAI,CAAC,SAAS,EAAE,MAAM;;;;;IAQtB,KAAK,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;IAQvB,MAAM,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;IAQxB,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU;eAQq+va,qBAAsB;;;;;CADjjwa"}
@@ -0,0 +1,75 @@
1
+ import type { components } from '../generated/api.js';
2
+ import { WorkspaceScopedResource } from './base.js';
3
+ import type { ListParams } from '../core/utils.js';
4
+ export declare class WebhookDestinationsResource extends WorkspaceScopedResource {
5
+ list(params?: ListParams): Promise<{
6
+ items: components["schemas"]["WebhookDestinationResponse"][];
7
+ has_more: boolean;
8
+ continuation_token?: number | null;
9
+ total?: number | null;
10
+ }>;
11
+ create(body: components['schemas']['CreateWebhookDestinationRequest']): Promise<{
12
+ id: string;
13
+ workspace_id: string;
14
+ name: string;
15
+ description: string | null;
16
+ trigger_id: string;
17
+ url: string;
18
+ field_mapping: {
19
+ [key: string]: unknown;
20
+ } | null;
21
+ accepted_event_types: string[];
22
+ retry_attempts: number;
23
+ is_active: boolean;
24
+ created_by: string | null;
25
+ created_at: string | null;
26
+ updated_at: string | null;
27
+ secret: string;
28
+ }>;
29
+ get(destinationId: string): Promise<{
30
+ id: string;
31
+ workspace_id: string;
32
+ name: string;
33
+ description: string | null;
34
+ trigger_id: string;
35
+ url: string;
36
+ field_mapping: {
37
+ [key: string]: unknown;
38
+ } | null;
39
+ accepted_event_types: string[];
40
+ retry_attempts: number;
41
+ is_active: boolean;
42
+ created_by: string | null;
43
+ created_at: string | null;
44
+ updated_at: string | null;
45
+ }>;
46
+ update(destinationId: string, body: components['schemas']['UpdateWebhookDestinationRequest']): Promise<{
47
+ id: string;
48
+ workspace_id: string;
49
+ name: string;
50
+ description: string | null;
51
+ trigger_id: string;
52
+ url: string;
53
+ field_mapping: {
54
+ [key: string]: unknown;
55
+ } | null;
56
+ accepted_event_types: string[];
57
+ retry_attempts: number;
58
+ is_active: boolean;
59
+ created_by: string | null;
60
+ created_at: string | null;
61
+ updated_at: string | null;
62
+ }>;
63
+ delete(destinationId: string): Promise<void>;
64
+ listDeliveries(destinationId: string, params?: ListParams): Promise<{
65
+ items: components["schemas"]["DeliveryResponse"][];
66
+ has_more: boolean;
67
+ continuation_token?: number | null;
68
+ total?: number | null;
69
+ }>;
70
+ rotateSecret(destinationId: string): Promise<{
71
+ secret: string;
72
+ rotation_expires_at: string;
73
+ }>;
74
+ }
75
+ //# sourceMappingURL=webhook-destinations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook-destinations.d.ts","sourceRoot":"","sources":["../../../src/resources/webhook-destinations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,qBAAa,2BAA4B,SAAQ,uBAAuB;IAChE,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU;eAoE++xa,qBAAsB;;;;;IA5D7hya,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,iCAAiC,CAAC;;;;;;;;;;;;;;;;;;IASrE,GAAG,CAAC,aAAa,EAAE,MAAM;;;;;;;;;;;;;;;;;IAQzB,MAAM,CACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,iCAAiC,CAAC;;;;;;;;;;;;;;;;;IAU1D,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAM5C,cAAc,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU;eAyB0zja,qBAAsB;;;;;IAXz4ja,YAAY,CAAC,aAAa,EAAE,MAAM;;;;CAUzC"}
@@ -1,28 +1,73 @@
1
- import type { Workspace, CreateWorkspaceRequest, UpdateWorkspaceRequest, PaginatedResponse } from '../types/api.js';
1
+ import type { components } from '../generated/api.js';
2
2
  import type { WorkspaceId } from '../core/branded-types.js';
3
+ import { WorkspaceScopedResource } from './base.js';
3
4
  import type { ListParams } from '../core/utils.js';
4
- export interface WorkspacesConfig {
5
- apiKey: string;
6
- baseUrl: string;
7
- }
8
5
  /**
9
6
  * Manage Amigo Platform workspaces.
10
7
  * Workspaces are the top-level tenancy boundary for all resources.
8
+ *
9
+ * Note: list and create operate at account level (/v1/workspaces),
10
+ * while get, update, and archive operate on a specific workspace.
11
11
  */
12
- export declare class WorkspacesResource {
13
- private readonly config;
14
- constructor(config: WorkspacesConfig);
15
- private get headers();
16
- private request;
12
+ export declare class WorkspacesResource extends WorkspaceScopedResource {
17
13
  /** Create a new workspace */
18
- create(body: CreateWorkspaceRequest): Promise<Workspace>;
14
+ create(body: components['schemas']['CreateWorkspaceRequest']): Promise<{
15
+ id: string;
16
+ slug: string;
17
+ name: string;
18
+ environment: string;
19
+ backend_org_id: string | null;
20
+ region: string;
21
+ connector_type: string | null;
22
+ provisioned_at: string | null;
23
+ created_at: string;
24
+ updated_at: string;
25
+ }>;
19
26
  /** List workspaces accessible to the current API key */
20
- list(params?: ListParams): Promise<PaginatedResponse<Workspace>>;
27
+ list(params?: ListParams): Promise<{
28
+ items: components["schemas"]["WorkspaceResponse"][];
29
+ has_more: boolean;
30
+ continuation_token?: number | null;
31
+ total?: number | null;
32
+ }>;
21
33
  /** Get a single workspace by ID */
22
- get(id: WorkspaceId | string): Promise<Workspace>;
34
+ get(id?: WorkspaceId | string): Promise<{
35
+ id: string;
36
+ slug: string;
37
+ name: string;
38
+ environment: string;
39
+ backend_org_id: string | null;
40
+ region: string;
41
+ connector_type: string | null;
42
+ provisioned_at: string | null;
43
+ created_at: string;
44
+ updated_at: string;
45
+ }>;
23
46
  /** Update workspace metadata */
24
- update(id: WorkspaceId | string, body: UpdateWorkspaceRequest): Promise<Workspace>;
47
+ update(body: components['schemas']['UpdateWorkspaceRequest'], id?: WorkspaceId | string): Promise<{
48
+ id: string;
49
+ slug: string;
50
+ name: string;
51
+ environment: string;
52
+ backend_org_id: string | null;
53
+ region: string;
54
+ connector_type: string | null;
55
+ provisioned_at: string | null;
56
+ created_at: string;
57
+ updated_at: string;
58
+ }>;
25
59
  /** Archive (soft-delete) a workspace */
26
- delete(id: WorkspaceId | string): Promise<void>;
60
+ archive(body: components['schemas']['ArchiveWorkspaceRequest'], id?: WorkspaceId | string): Promise<{
61
+ id: string;
62
+ slug: string;
63
+ name: string;
64
+ environment: string;
65
+ backend_org_id: string | null;
66
+ region: string;
67
+ connector_type: string | null;
68
+ provisioned_at: string | null;
69
+ created_at: string;
70
+ updated_at: string;
71
+ }>;
27
72
  }
28
73
  //# sourceMappingURL=workspaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../../src/resources/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAG3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;GAGG;AACH,qBAAa,kBAAkB;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,gBAAgB;IAErD,OAAO,KAAK,OAAO,GAKlB;YAEa,OAAO;IAWrB,6BAA6B;IACvB,MAAM,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,SAAS,CAAC;IAO9D,wDAAwD;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,iB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WAAW,GAAG,MAAM;;;;;;;;;;;;CAS5B"}
@@ -1,107 +1,5 @@
1
- import type { Entity, WorldEvent, TimelineEntry, SimilarEntitiesResponse, CreateEntityRequest, UpdateEntityRequest, EmitEventRequest, MergeEntitiesRequest, PaginatedResponse, EntityType } from '../types/api.js';
2
1
  import type { EntityId } from '../core/branded-types.js';
3
2
  import { WorkspaceScopedResource } from './base.js';
4
- import type { ListParams } from '../core/utils.js';
5
- export interface ListEntitiesParams extends ListParams {
6
- entity_type?: EntityType;
7
- canonical_id?: string;
8
- search?: string;
9
- source_system?: string;
10
- tags?: string;
11
- }
12
- export interface TimelineParams {
13
- limit?: number;
14
- event_type?: string;
15
- start_date?: string;
16
- end_date?: string;
17
- }
18
- export interface EntityRelationship {
19
- id: string;
20
- source_entity_id: string;
21
- target_entity_id: string;
22
- relationship_type: string;
23
- confidence: number;
24
- properties: Record<string, unknown>;
25
- created_at: string;
26
- }
27
- export interface EntityType_ {
28
- type: string;
29
- count: number;
30
- schema: Record<string, unknown> | null;
31
- }
32
- export interface EntityGraph {
33
- nodes: Array<{
34
- entity: Entity;
35
- depth: number;
36
- }>;
37
- edges: Array<EntityRelationship>;
38
- }
39
- export interface EntityProvenance {
40
- entity_id: string;
41
- sources: Array<{
42
- system: string;
43
- external_id: string | null;
44
- first_seen_at: string;
45
- last_seen_at: string;
46
- event_count: number;
47
- }>;
48
- }
49
- export interface EntityLineage {
50
- entity_id: string;
51
- merged_into: string | null;
52
- merged_from: string[];
53
- canonical_id: string | null;
54
- }
55
- export interface SyncEvent {
56
- id: string;
57
- entity_id: string;
58
- sink: string;
59
- status: 'pending' | 'synced' | 'failed' | 'retrying';
60
- error: string | null;
61
- attempts: number;
62
- created_at: string;
63
- synced_at: string | null;
64
- }
65
- export interface SyncStatusBySink {
66
- sink: string;
67
- pending: number;
68
- synced: number;
69
- failed: number;
70
- last_synced_at: string | null;
71
- }
72
- export interface SourceBreakdown {
73
- source: string;
74
- entity_count: number;
75
- event_count: number;
76
- last_seen_at: string | null;
77
- }
78
- export interface EntityStats {
79
- total_entities: number;
80
- total_events: number;
81
- entity_types: Array<{
82
- type: string;
83
- count: number;
84
- }>;
85
- sources: Array<{
86
- source: string;
87
- count: number;
88
- }>;
89
- }
90
- export interface SearchEntitiesParams {
91
- q: string;
92
- entity_type?: EntityType;
93
- limit?: number;
94
- }
95
- export interface ListSyncEventsParams extends ListParams {
96
- sink?: string;
97
- status?: string;
98
- start_date?: string;
99
- end_date?: string;
100
- }
101
- export interface DuplicatesParams extends ListParams {
102
- entity_type?: EntityType;
103
- min_confidence?: number;
104
- }
105
3
  /**
106
4
  * World Model — entities, events, relationships, and the entity timeline.
107
5
  *
@@ -110,68 +8,179 @@ export interface DuplicatesParams extends ListParams {
110
8
  * observations about entities over time.
111
9
  */
112
10
  export declare class WorldResource extends WorkspaceScopedResource {
113
- /** Create a new entity */
114
- createEntity(body: CreateEntityRequest): Promise<Entity>;
115
11
  /** List entities with optional filtering */
116
- listEntities(params?: ListEntitiesParams): Promise<PaginatedResponse<Entity>>;
12
+ listEntities(params?: {
13
+ entity_type?: string[] | null;
14
+ q?: string | null;
15
+ limit?: number;
16
+ offset?: number;
17
+ has_projection?: boolean | null;
18
+ source?: string | null;
19
+ source_system?: string | null;
20
+ semantic?: string | null;
21
+ tags?: string[] | null;
22
+ }): Promise<{
23
+ entities: import("../index.js").components["schemas"]["EntityResponse"][];
24
+ total: number;
25
+ has_more: boolean;
26
+ next_offset?: number | null;
27
+ }>;
117
28
  /** Get a single entity */
118
- getEntity(entityId: EntityId | string): Promise<Entity>;
119
- /** Update entity properties */
120
- updateEntity(entityId: EntityId | string, body: UpdateEntityRequest): Promise<Entity>;
29
+ getEntity(entityId: EntityId | string): Promise<{
30
+ id: string;
31
+ workspace_id: string;
32
+ entity_type: string;
33
+ display_name?: string | null;
34
+ canonical_id?: string | null;
35
+ external_ids?: {
36
+ [key: string]: unknown;
37
+ };
38
+ state?: {
39
+ [key: string]: unknown;
40
+ };
41
+ has_projection?: boolean;
42
+ name?: string | null;
43
+ phone?: string | null;
44
+ email?: string | null;
45
+ birth_date?: string | null;
46
+ gender?: string | null;
47
+ mrn?: string | null;
48
+ appointment_status?: string | null;
49
+ appointment_start?: string | null;
50
+ appointment_end?: string | null;
51
+ appointment_type?: string | null;
52
+ domain?: string | null;
53
+ industry?: string | null;
54
+ deal_stage?: string | null;
55
+ deal_amount?: number | null;
56
+ call_sid?: string | null;
57
+ direction?: string | null;
58
+ duration_seconds?: number | null;
59
+ status?: string | null;
60
+ source?: string | null;
61
+ first_seen_at?: string | null;
62
+ last_event_at?: string | null;
63
+ event_count?: number;
64
+ confidence?: number;
65
+ tags?: string[] | null;
66
+ created_at?: string | null;
67
+ updated_at?: string | null;
68
+ }>;
121
69
  /** Get all relationships for an entity */
122
- getRelationships(entityId: EntityId | string): Promise<EntityRelationship[]>;
70
+ getRelationships(entityId: EntityId | string): Promise<{
71
+ entity_id: string;
72
+ relationships: import("../index.js").components["schemas"]["EntityRelationshipResponse"][];
73
+ total: number;
74
+ }>;
123
75
  /** Get the knowledge graph centered on an entity (entity + neighbors + edges) */
124
- getGraph(entityId: EntityId | string): Promise<EntityGraph>;
76
+ getGraph(entityId: EntityId | string): Promise<{
77
+ [key: string]: unknown;
78
+ }>;
125
79
  /** Get provenance — which source systems contributed data for an entity */
126
- getProvenance(entityId: EntityId | string): Promise<EntityProvenance>;
80
+ getProvenance(entityId: EntityId | string): Promise<{
81
+ [key: string]: unknown;
82
+ }>;
127
83
  /** Get lineage — merge history and canonical identity for an entity */
128
- getLineage(entityId: EntityId | string): Promise<EntityLineage>;
84
+ getLineage(entityId: EntityId | string): Promise<{
85
+ [key: string]: unknown;
86
+ }>;
129
87
  /** Get merged entities for a canonical entity */
130
- getMerged(entityId: EntityId | string): Promise<Entity[]>;
88
+ getMerged(entityId: EntityId | string): Promise<{
89
+ entity_id: string;
90
+ linked_entities: import("../index.js").components["schemas"]["EntityResponse"][];
91
+ total: number;
92
+ }>;
131
93
  /** List registered entity types with counts and schemas */
132
- listEntityTypes(): Promise<EntityType_[]>;
94
+ listEntityTypes(): Promise<{
95
+ entity_types: import("../index.js").components["schemas"]["EntityTypeSummary"][];
96
+ total_entities: number;
97
+ }>;
133
98
  /** List potential duplicate entity pairs for review or merging */
134
- listDuplicates(params?: DuplicatesParams): Promise<PaginatedResponse<{
135
- entity_a: Entity;
136
- entity_b: Entity;
137
- confidence: number;
138
- }>>;
99
+ listDuplicates(params?: {
100
+ entity_type?: string | null;
101
+ confidence_max?: number;
102
+ }): Promise<{
103
+ [key: string]: unknown;
104
+ }[]>;
139
105
  /** Semantic (vector) search over entities */
140
- search(params: SearchEntitiesParams): Promise<Array<{
141
- entity: Entity;
142
- score: number;
143
- }>>;
144
- /**
145
- * Emit an event for an entity.
146
- * Events flow to Delta via ZeroBus for downstream analytics.
147
- */
148
- emitEvent(body: EmitEventRequest): Promise<WorldEvent>;
106
+ search(params: {
107
+ q: string;
108
+ entity_type?: string | null;
109
+ source?: string | null;
110
+ confidence_min?: number | null;
111
+ limit?: number;
112
+ offset?: number;
113
+ }): Promise<{
114
+ [key: string]: unknown;
115
+ }>;
149
116
  /** Get the event timeline for an entity (reverse-chronological) */
150
- getTimeline(entityId: EntityId | string, params?: TimelineParams): Promise<TimelineEntry[]>;
151
- /** Get AI-derived intelligence for an entity */
152
- getIntelligence(entityId: EntityId | string): Promise<Record<string, unknown>>;
153
- /** Find entities similar to a given entity using vector similarity */
154
- getSimilar(entityId: EntityId | string, limit?: number): Promise<SimilarEntitiesResponse>;
155
- /** Merge multiple entities into one canonical entity */
156
- merge(body: MergeEntitiesRequest): Promise<Entity>;
117
+ getTimeline(entityId: EntityId | string, params?: {
118
+ domain?: string | null;
119
+ limit?: number;
120
+ offset?: number;
121
+ }): Promise<{
122
+ entity_id: string;
123
+ events: import("../index.js").components["schemas"]["EntityEventResponse"][];
124
+ total: number;
125
+ has_more: boolean;
126
+ next_offset?: number | null;
127
+ }>;
157
128
  /** Get sync status grouped by sink (Lakebase, Delta, etc.) */
158
- getSyncStatusBySink(): Promise<SyncStatusBySink[]>;
129
+ getSyncStatusBySink(): Promise<{
130
+ sinks: import("../index.js").components["schemas"]["SinkSyncStatus"][];
131
+ }>;
159
132
  /** List sync events with status filtering */
160
- listSyncEvents(params?: ListSyncEventsParams): Promise<PaginatedResponse<SyncEvent>>;
133
+ listSyncEvents(params: {
134
+ status: 'pending' | 'failed';
135
+ data_source_id?: string | null;
136
+ source_system?: string | null;
137
+ fhir_resource_type?: string | null;
138
+ fhir_resource_id?: string | null;
139
+ limit?: number;
140
+ offset?: number;
141
+ }): Promise<{
142
+ events: import("../index.js").components["schemas"]["SyncEventItem"][];
143
+ total: number;
144
+ has_more: boolean;
145
+ next_offset?: number | null;
146
+ }>;
161
147
  /** Get current sync queue depth */
162
148
  getSyncQueueDepth(): Promise<{
163
- depth: number;
164
- oldest_pending_at: string | null;
149
+ pending_count: number;
150
+ failed_count: number;
151
+ oldest_pending_at?: string | null;
152
+ last_sync_success_at?: string | null;
153
+ by_resource_type?: {
154
+ [key: string]: {
155
+ [key: string]: number;
156
+ };
157
+ };
165
158
  }>;
166
159
  /** Retry a single failed sync event */
167
- retrySyncEvent(eventId: string): Promise<SyncEvent>;
160
+ retrySyncEvent(eventId: string): Promise<{
161
+ event_id: string;
162
+ status: string;
163
+ }>;
168
164
  /** Retry all failed sync events */
169
165
  retryAllSyncEvents(): Promise<{
170
- queued: number;
166
+ retried: number;
167
+ failed_to_publish: number;
171
168
  }>;
172
169
  /** Get aggregate entity and event statistics */
173
- getStats(): Promise<EntityStats>;
170
+ getStats(): Promise<{
171
+ total_entities: number;
172
+ total_events: number;
173
+ sync_pending: number;
174
+ sync_synced: number;
175
+ sync_failed: number;
176
+ by_event_type?: {
177
+ [key: string]: number;
178
+ };
179
+ }>;
174
180
  /** Get entity counts broken down by source system */
175
- getSourceBreakdown(): Promise<SourceBreakdown[]>;
181
+ getSourceBreakdown(): Promise<{
182
+ breakdown: import("../index.js").components["schemas"]["SourceBreakdownItem"][];
183
+ total: number;
184
+ }>;
176
185
  }
177
186
  //# sourceMappingURL=world.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"world.d.ts","sourceRoot":"","sources":["../../../src/resources/world.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,aAAa,EACb,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EACX,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,uBAAuB,EAAc,MAAM,WAAW,CAAA;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,WAAW,CAAC,EAAE,UAAU,CAAA;IACxB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,gBAAgB,EAAE,MAAM,CAAA;IACxB,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACnC,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;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