@amigo-ai/platform-sdk 0.26.0 → 0.29.0
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.
- package/README.md +62 -0
- package/api.md +170 -1
- package/dist/index.cjs +1081 -5
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +78 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1081 -5
- package/dist/index.mjs.map +4 -4
- package/dist/resources/analytics.js +20 -0
- package/dist/resources/analytics.js.map +1 -1
- package/dist/resources/briefs.js +34 -0
- package/dist/resources/briefs.js.map +1 -0
- package/dist/resources/calls.js +22 -0
- package/dist/resources/calls.js.map +1 -1
- package/dist/resources/command-center.js +17 -0
- package/dist/resources/command-center.js.map +1 -0
- package/dist/resources/crm.js +52 -0
- package/dist/resources/crm.js.map +1 -0
- package/dist/resources/data-query.js +22 -0
- package/dist/resources/data-query.js.map +1 -0
- package/dist/resources/desktop-sessions.js +43 -0
- package/dist/resources/desktop-sessions.js.map +1 -0
- package/dist/resources/fhir.js +130 -0
- package/dist/resources/fhir.js.map +1 -0
- package/dist/resources/insights.js +53 -0
- package/dist/resources/insights.js.map +1 -0
- package/dist/resources/intake.js +42 -0
- package/dist/resources/intake.js.map +1 -0
- package/dist/resources/me.js +46 -0
- package/dist/resources/me.js.map +1 -0
- package/dist/resources/monitor-concepts.js +47 -0
- package/dist/resources/monitor-concepts.js.map +1 -0
- package/dist/resources/network.js +17 -0
- package/dist/resources/network.js.map +1 -0
- package/dist/resources/pipeline.js +69 -0
- package/dist/resources/pipeline.js.map +1 -0
- package/dist/resources/sensorium.js +25 -0
- package/dist/resources/sensorium.js.map +1 -0
- package/dist/resources/sessions.js +29 -0
- package/dist/resources/sessions.js.map +1 -0
- package/dist/resources/settings.js +17 -0
- package/dist/resources/settings.js.map +1 -1
- package/dist/resources/simulations.js +75 -0
- package/dist/resources/simulations.js.map +1 -1
- package/dist/resources/surfaces.js +85 -0
- package/dist/resources/surfaces.js.map +1 -0
- package/dist/resources/tasks.js +23 -0
- package/dist/resources/tasks.js.map +1 -0
- package/dist/resources/tools.js +24 -0
- package/dist/resources/tools.js.map +1 -0
- package/dist/resources/unification-rules.js +46 -0
- package/dist/resources/unification-rules.js.map +1 -0
- package/dist/resources/workspaces.js +33 -10
- package/dist/resources/workspaces.js.map +1 -1
- package/dist/types/generated/api.d.ts +172 -118
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/index.d.cts +53 -0
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.ts +53 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/resources/analytics.d.ts +26 -0
- package/dist/types/resources/analytics.d.ts.map +1 -1
- package/dist/types/resources/briefs.d.ts +79 -0
- package/dist/types/resources/briefs.d.ts.map +1 -0
- package/dist/types/resources/calls.d.ts +93 -9
- package/dist/types/resources/calls.d.ts.map +1 -1
- package/dist/types/resources/command-center.d.ts +55 -0
- package/dist/types/resources/command-center.d.ts.map +1 -0
- package/dist/types/resources/crm.d.ts +207 -0
- package/dist/types/resources/crm.d.ts.map +1 -0
- package/dist/types/resources/data-query.d.ts +23 -0
- package/dist/types/resources/data-query.d.ts.map +1 -0
- package/dist/types/resources/desktop-sessions.d.ts +38 -0
- package/dist/types/resources/desktop-sessions.d.ts.map +1 -0
- package/dist/types/resources/fhir.d.ts +350 -0
- package/dist/types/resources/fhir.d.ts.map +1 -0
- package/dist/types/resources/functions.d.ts.map +1 -1
- package/dist/types/resources/insights.d.ts +56 -0
- package/dist/types/resources/insights.d.ts.map +1 -0
- package/dist/types/resources/intake.d.ts +59 -0
- package/dist/types/resources/intake.d.ts.map +1 -0
- package/dist/types/resources/me.d.ts +54 -0
- package/dist/types/resources/me.d.ts.map +1 -0
- package/dist/types/resources/metrics.d.ts.map +1 -1
- package/dist/types/resources/monitor-concepts.d.ts +115 -0
- package/dist/types/resources/monitor-concepts.d.ts.map +1 -0
- package/dist/types/resources/network.d.ts +17 -0
- package/dist/types/resources/network.d.ts.map +1 -0
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/pipeline.d.ts +183 -0
- package/dist/types/resources/pipeline.d.ts.map +1 -0
- package/dist/types/resources/sensorium.d.ts +40 -0
- package/dist/types/resources/sensorium.d.ts.map +1 -0
- package/dist/types/resources/sessions.d.ts +33 -0
- package/dist/types/resources/sessions.d.ts.map +1 -0
- package/dist/types/resources/settings.d.ts +16 -0
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +186 -3
- package/dist/types/resources/simulations.d.ts.map +1 -1
- package/dist/types/resources/surfaces.d.ts +240 -0
- package/dist/types/resources/surfaces.d.ts.map +1 -0
- package/dist/types/resources/tasks.d.ts +55 -0
- package/dist/types/resources/tasks.d.ts.map +1 -0
- package/dist/types/resources/tools.d.ts +53 -0
- package/dist/types/resources/tools.d.ts.map +1 -0
- package/dist/types/resources/unification-rules.d.ts +129 -0
- package/dist/types/resources/unification-rules.d.ts.map +1 -0
- package/dist/types/resources/workspaces.d.ts +32 -17
- package/dist/types/resources/workspaces.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { WorkspaceScopedResource } from './base.js';
|
|
2
|
+
/**
|
|
3
|
+
* Command Center — single rolled-up snapshot used to drive the developer
|
|
4
|
+
* console's homepage tiles (active calls, queue depth, alerting status,
|
|
5
|
+
* recent escalations, etc.). One endpoint, refreshed on demand.
|
|
6
|
+
*
|
|
7
|
+
* @beta New in this release; surface may evolve.
|
|
8
|
+
*/
|
|
9
|
+
export declare class CommandCenterResource extends WorkspaceScopedResource {
|
|
10
|
+
/** Get the current command-center snapshot */
|
|
11
|
+
get(): Promise<{
|
|
12
|
+
alerts?: {
|
|
13
|
+
code: string;
|
|
14
|
+
level: "info" | "warning" | "critical";
|
|
15
|
+
message: string;
|
|
16
|
+
section: string;
|
|
17
|
+
}[] | undefined;
|
|
18
|
+
cached?: boolean | undefined;
|
|
19
|
+
data_quality?: {
|
|
20
|
+
approval_rate_7d?: number | null | undefined;
|
|
21
|
+
avg_confidence?: number | null | undefined;
|
|
22
|
+
entities_merged_7d?: number | undefined;
|
|
23
|
+
entities_total?: number | undefined;
|
|
24
|
+
pending_reviews?: number | undefined;
|
|
25
|
+
} | undefined;
|
|
26
|
+
degraded_sections?: string[] | undefined;
|
|
27
|
+
generated_at: string;
|
|
28
|
+
identity?: {
|
|
29
|
+
active_api_keys?: number | undefined;
|
|
30
|
+
active_sessions?: number | null | undefined;
|
|
31
|
+
failed_auths_1h?: number | null | undefined;
|
|
32
|
+
locked_accounts?: number | null | undefined;
|
|
33
|
+
mfa_coverage_pct?: number | null | undefined;
|
|
34
|
+
} | undefined;
|
|
35
|
+
pipeline?: {
|
|
36
|
+
connector_status?: "healthy" | "degraded" | "unavailable" | undefined;
|
|
37
|
+
events_last_hour?: number | undefined;
|
|
38
|
+
outbound_failed?: number | undefined;
|
|
39
|
+
outbound_pending?: number | undefined;
|
|
40
|
+
sources_degraded?: number | undefined;
|
|
41
|
+
sources_failing?: number | undefined;
|
|
42
|
+
sources_healthy?: number | undefined;
|
|
43
|
+
sources_total?: number | undefined;
|
|
44
|
+
} | undefined;
|
|
45
|
+
voice?: {
|
|
46
|
+
active_calls?: number | undefined;
|
|
47
|
+
active_escalated?: number | undefined;
|
|
48
|
+
avg_quality_score_today?: number | null | undefined;
|
|
49
|
+
calls_today?: number | undefined;
|
|
50
|
+
escalation_rate_today?: number | undefined;
|
|
51
|
+
} | undefined;
|
|
52
|
+
workspace_id: string;
|
|
53
|
+
} & import("../index.js").ResponseMetadata>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=command-center.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-center.d.ts","sourceRoot":"","sources":["../../../src/resources/command-center.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE;;;;;;GAMG;AACH,qBAAa,qBAAsB,SAAQ,uBAAuB;IAChE,8CAA8C;IACxC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOV"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import type { paths } from '../generated/api.js';
|
|
2
|
+
import { WorkspaceScopedResource } from './base.js';
|
|
3
|
+
export type CrmContactSearchParams = NonNullable<paths['/v1/{workspace_id}/crm/contacts']['get']['parameters']['query']>;
|
|
4
|
+
export type CrmCompanySearchParams = NonNullable<paths['/v1/{workspace_id}/crm/companies']['get']['parameters']['query']>;
|
|
5
|
+
export type CrmDealSearchParams = NonNullable<paths['/v1/{workspace_id}/crm/deals']['get']['parameters']['query']>;
|
|
6
|
+
/**
|
|
7
|
+
* CRM — read-mostly view of contacts, companies, deals, and pipeline state
|
|
8
|
+
* sourced from the connected CRM integration (HubSpot/Salesforce/etc.).
|
|
9
|
+
*
|
|
10
|
+
* The platform refreshes this view in the background; the SDK exposes search
|
|
11
|
+
* + detail endpoints plus a per-contact activity timeline. Writes happen
|
|
12
|
+
* upstream in the CRM itself, not here.
|
|
13
|
+
*
|
|
14
|
+
* @beta New in this release; surface may evolve.
|
|
15
|
+
*/
|
|
16
|
+
export declare class CrmResource extends WorkspaceScopedResource {
|
|
17
|
+
/** Health/status of the workspace's CRM integration sync */
|
|
18
|
+
getStatus(): Promise<{
|
|
19
|
+
company_count?: number | undefined;
|
|
20
|
+
configured: boolean;
|
|
21
|
+
connector_type?: string | null | undefined;
|
|
22
|
+
contact_count?: number | undefined;
|
|
23
|
+
data_source_id?: string | null | undefined;
|
|
24
|
+
deal_count?: number | undefined;
|
|
25
|
+
last_sync_at?: string | null | undefined;
|
|
26
|
+
last_sync_status?: ("success" | "error") | null | undefined;
|
|
27
|
+
sync_failure_count?: number | undefined;
|
|
28
|
+
sync_healthy?: boolean | null | undefined;
|
|
29
|
+
} & import("../index.js").ResponseMetadata>;
|
|
30
|
+
readonly contacts: {
|
|
31
|
+
list: (params?: CrmContactSearchParams) => Promise<{
|
|
32
|
+
contacts: {
|
|
33
|
+
address?: {
|
|
34
|
+
[x: string]: unknown;
|
|
35
|
+
} | null | undefined;
|
|
36
|
+
birth_date?: string | null | undefined;
|
|
37
|
+
company?: string | null | undefined;
|
|
38
|
+
confidence?: number | undefined;
|
|
39
|
+
created_at?: string | null | undefined;
|
|
40
|
+
email?: string | null | undefined;
|
|
41
|
+
entity_id: string;
|
|
42
|
+
event_count?: number | undefined;
|
|
43
|
+
first_name?: string | null | undefined;
|
|
44
|
+
gender?: string | null | undefined;
|
|
45
|
+
hubspot_id?: string | null | undefined;
|
|
46
|
+
last_activity_at?: string | null | undefined;
|
|
47
|
+
last_name?: string | null | undefined;
|
|
48
|
+
lifecycle_stage?: string | null | undefined;
|
|
49
|
+
mrn?: string | null | undefined;
|
|
50
|
+
name?: string | null | undefined;
|
|
51
|
+
phone?: string | null | undefined;
|
|
52
|
+
source_system?: string | null | undefined;
|
|
53
|
+
}[];
|
|
54
|
+
has_more?: boolean | undefined;
|
|
55
|
+
next_offset?: number | null | undefined;
|
|
56
|
+
total: number;
|
|
57
|
+
} & import("../index.js").ResponseMetadata>;
|
|
58
|
+
get: (contactId: string) => Promise<{
|
|
59
|
+
address?: {
|
|
60
|
+
[x: string]: unknown;
|
|
61
|
+
} | null | undefined;
|
|
62
|
+
birth_date?: string | null | undefined;
|
|
63
|
+
canonical_id?: string | null | undefined;
|
|
64
|
+
clinical?: {
|
|
65
|
+
[x: string]: unknown;
|
|
66
|
+
} | undefined;
|
|
67
|
+
company?: string | null | undefined;
|
|
68
|
+
confidence?: number | undefined;
|
|
69
|
+
created_at?: string | null | undefined;
|
|
70
|
+
email?: string | null | undefined;
|
|
71
|
+
entity_id: string;
|
|
72
|
+
event_count?: number | undefined;
|
|
73
|
+
external_ids?: {
|
|
74
|
+
[x: string]: unknown;
|
|
75
|
+
} | undefined;
|
|
76
|
+
first_name?: string | null | undefined;
|
|
77
|
+
gender?: string | null | undefined;
|
|
78
|
+
hubspot_id?: string | null | undefined;
|
|
79
|
+
last_activity_at?: string | null | undefined;
|
|
80
|
+
last_name?: string | null | undefined;
|
|
81
|
+
lifecycle_stage?: string | null | undefined;
|
|
82
|
+
merged_with?: {
|
|
83
|
+
address?: {
|
|
84
|
+
[x: string]: unknown;
|
|
85
|
+
} | null | undefined;
|
|
86
|
+
birth_date?: string | null | undefined;
|
|
87
|
+
company?: string | null | undefined;
|
|
88
|
+
confidence?: number | undefined;
|
|
89
|
+
created_at?: string | null | undefined;
|
|
90
|
+
email?: string | null | undefined;
|
|
91
|
+
entity_id: string;
|
|
92
|
+
event_count?: number | undefined;
|
|
93
|
+
first_name?: string | null | undefined;
|
|
94
|
+
gender?: string | null | undefined;
|
|
95
|
+
hubspot_id?: string | null | undefined;
|
|
96
|
+
last_activity_at?: string | null | undefined;
|
|
97
|
+
last_name?: string | null | undefined;
|
|
98
|
+
lifecycle_stage?: string | null | undefined;
|
|
99
|
+
mrn?: string | null | undefined;
|
|
100
|
+
name?: string | null | undefined;
|
|
101
|
+
phone?: string | null | undefined;
|
|
102
|
+
source_system?: string | null | undefined;
|
|
103
|
+
}[] | undefined;
|
|
104
|
+
mrn?: string | null | undefined;
|
|
105
|
+
name?: string | null | undefined;
|
|
106
|
+
operational?: {
|
|
107
|
+
[x: string]: unknown;
|
|
108
|
+
} | undefined;
|
|
109
|
+
phone?: string | null | undefined;
|
|
110
|
+
source_system?: string | null | undefined;
|
|
111
|
+
} & import("../index.js").ResponseMetadata>;
|
|
112
|
+
/** Per-contact activity timeline (calls, emails, deal events) */
|
|
113
|
+
getTimeline: (contactId: string) => Promise<{
|
|
114
|
+
activities: {
|
|
115
|
+
activity_type: string;
|
|
116
|
+
confidence?: number | undefined;
|
|
117
|
+
data?: {
|
|
118
|
+
[x: string]: unknown;
|
|
119
|
+
} | undefined;
|
|
120
|
+
description?: string | null | undefined;
|
|
121
|
+
direction?: string | null | undefined;
|
|
122
|
+
id: string;
|
|
123
|
+
occurred_at?: string | null | undefined;
|
|
124
|
+
source?: string | undefined;
|
|
125
|
+
source_system?: string | null | undefined;
|
|
126
|
+
}[];
|
|
127
|
+
entity_id: string;
|
|
128
|
+
has_more?: boolean | undefined;
|
|
129
|
+
total: number;
|
|
130
|
+
} & import("../index.js").ResponseMetadata>;
|
|
131
|
+
};
|
|
132
|
+
readonly companies: {
|
|
133
|
+
list: (params?: CrmCompanySearchParams) => Promise<{
|
|
134
|
+
companies: {
|
|
135
|
+
address?: {
|
|
136
|
+
[x: string]: unknown;
|
|
137
|
+
} | null | undefined;
|
|
138
|
+
created_at?: string | null | undefined;
|
|
139
|
+
domain?: string | null | undefined;
|
|
140
|
+
entity_id: string;
|
|
141
|
+
event_count?: number | undefined;
|
|
142
|
+
hubspot_id?: string | null | undefined;
|
|
143
|
+
industry?: string | null | undefined;
|
|
144
|
+
last_activity_at?: string | null | undefined;
|
|
145
|
+
name?: string | null | undefined;
|
|
146
|
+
phone?: string | null | undefined;
|
|
147
|
+
source_system?: string | null | undefined;
|
|
148
|
+
}[];
|
|
149
|
+
has_more?: boolean | undefined;
|
|
150
|
+
next_offset?: number | null | undefined;
|
|
151
|
+
total: number;
|
|
152
|
+
} & import("../index.js").ResponseMetadata>;
|
|
153
|
+
get: (companyId: string) => Promise<{
|
|
154
|
+
address?: {
|
|
155
|
+
[x: string]: unknown;
|
|
156
|
+
} | null | undefined;
|
|
157
|
+
created_at?: string | null | undefined;
|
|
158
|
+
domain?: string | null | undefined;
|
|
159
|
+
entity_id: string;
|
|
160
|
+
event_count?: number | undefined;
|
|
161
|
+
hubspot_id?: string | null | undefined;
|
|
162
|
+
industry?: string | null | undefined;
|
|
163
|
+
last_activity_at?: string | null | undefined;
|
|
164
|
+
name?: string | null | undefined;
|
|
165
|
+
phone?: string | null | undefined;
|
|
166
|
+
source_system?: string | null | undefined;
|
|
167
|
+
} & import("../index.js").ResponseMetadata>;
|
|
168
|
+
};
|
|
169
|
+
readonly deals: {
|
|
170
|
+
list: (params?: CrmDealSearchParams) => Promise<{
|
|
171
|
+
deals: {
|
|
172
|
+
amount?: number | null | undefined;
|
|
173
|
+
close_date?: string | null | undefined;
|
|
174
|
+
created_at?: string | null | undefined;
|
|
175
|
+
deal_type?: string | null | undefined;
|
|
176
|
+
entity_id: string;
|
|
177
|
+
event_count?: number | undefined;
|
|
178
|
+
hubspot_id?: string | null | undefined;
|
|
179
|
+
last_activity_at?: string | null | undefined;
|
|
180
|
+
name?: string | null | undefined;
|
|
181
|
+
pipeline?: string | null | undefined;
|
|
182
|
+
stage?: string | null | undefined;
|
|
183
|
+
}[];
|
|
184
|
+
has_more?: boolean | undefined;
|
|
185
|
+
next_offset?: number | null | undefined;
|
|
186
|
+
total: number;
|
|
187
|
+
} & import("../index.js").ResponseMetadata>;
|
|
188
|
+
get: (dealId: string) => Promise<{
|
|
189
|
+
amount?: number | null | undefined;
|
|
190
|
+
close_date?: string | null | undefined;
|
|
191
|
+
created_at?: string | null | undefined;
|
|
192
|
+
deal_type?: string | null | undefined;
|
|
193
|
+
entity_id: string;
|
|
194
|
+
event_count?: number | undefined;
|
|
195
|
+
hubspot_id?: string | null | undefined;
|
|
196
|
+
last_activity_at?: string | null | undefined;
|
|
197
|
+
name?: string | null | undefined;
|
|
198
|
+
pipeline?: string | null | undefined;
|
|
199
|
+
stage?: string | null | undefined;
|
|
200
|
+
} & import("../index.js").ResponseMetadata>;
|
|
201
|
+
/** Aggregated pipeline view: deals grouped by stage with rolled-up totals */
|
|
202
|
+
getPipeline: () => Promise<{
|
|
203
|
+
[x: string]: unknown;
|
|
204
|
+
} & import("../index.js").ResponseMetadata>;
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
//# sourceMappingURL=crm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crm.d.ts","sourceRoot":"","sources":["../../../src/resources/crm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAC9C,KAAK,CAAC,iCAAiC,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CACvE,CAAA;AACD,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAC9C,KAAK,CAAC,kCAAkC,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CACxE,CAAA;AACD,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAC3C,KAAK,CAAC,8BAA8B,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CACpE,CAAA;AAED;;;;;;;;;GASG;AACH,qBAAa,WAAY,SAAQ,uBAAuB;IACtD,4DAA4D;IACtD,SAAS;;;;;;;;;;;;IAQf,QAAQ,CAAC,QAAQ;wBACO,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAOrB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAO7B,iEAAiE;iCAClC,MAAM;;;;;;;;;;;;;;;;;;MAMtC;IAED,QAAQ,CAAC,SAAS;wBACM,sBAAsB;;;;;;;;;;;;;;;;;;;;yBAOrB,MAAM;;;;;;;;;;;;;;;MAM9B;IAED,QAAQ,CAAC,KAAK;wBACU,mBAAmB;;;;;;;;;;;;;;;;;;sBAOrB,MAAM;;;;;;;;;;;;;QAO1B,6EAA6E;;;;MAO9E;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { paths } from '../generated/api.js';
|
|
2
|
+
import { WorkspaceScopedResource } from './base.js';
|
|
3
|
+
export type DataQueryParams = NonNullable<paths['/v1/{workspace_id}/query/{schema}/{table}']['get']['parameters']['query']>;
|
|
4
|
+
/**
|
|
5
|
+
* Generic typed data query — read rows from any whitelisted schema/table the
|
|
6
|
+
* workspace exposes. Backed by the platform's catalog of analytics-grade
|
|
7
|
+
* datasets; the schema and table are validated server-side.
|
|
8
|
+
*
|
|
9
|
+
* Used by the developer console's data-explorer surface.
|
|
10
|
+
*
|
|
11
|
+
* @beta New in this release; surface may evolve.
|
|
12
|
+
*/
|
|
13
|
+
export declare class DataQueryResource extends WorkspaceScopedResource {
|
|
14
|
+
/** Run a tabular query against a workspace dataset */
|
|
15
|
+
run(schema: string, table: string, params?: DataQueryParams): Promise<{
|
|
16
|
+
count: number;
|
|
17
|
+
has_more: boolean;
|
|
18
|
+
items: {
|
|
19
|
+
[x: string]: unknown;
|
|
20
|
+
}[];
|
|
21
|
+
} & import("../index.js").ResponseMetadata>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=data-query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-query.d.ts","sourceRoot":"","sources":["../../../src/resources/data-query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE,MAAM,MAAM,eAAe,GAAG,WAAW,CACvC,KAAK,CAAC,2CAA2C,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CACjF,CAAA;AAED;;;;;;;;GAQG;AACH,qBAAa,iBAAkB,SAAQ,uBAAuB;IAC5D,sDAAsD;IAChD,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,eAAe;;;;;;;CAUlE"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { components } from '../generated/api.js';
|
|
2
|
+
import { WorkspaceScopedResource } from './base.js';
|
|
3
|
+
type CreateDesktopSessionRequest = components['schemas']['src__routes__desktop_sessions__CreateSessionRequest'];
|
|
4
|
+
/**
|
|
5
|
+
* Desktop sessions — remote-controlled desktop instances the agent can use
|
|
6
|
+
* to drive third-party apps (EHRs, CRMs) that lack APIs. Created on demand
|
|
7
|
+
* and torn down when the agent finishes the workflow.
|
|
8
|
+
*
|
|
9
|
+
* @beta New in this release; surface may evolve.
|
|
10
|
+
*/
|
|
11
|
+
export declare class DesktopSessionsResource extends WorkspaceScopedResource {
|
|
12
|
+
/** Spin up a new desktop session */
|
|
13
|
+
create(body: CreateDesktopSessionRequest): Promise<{
|
|
14
|
+
connected: boolean;
|
|
15
|
+
display_size: number[];
|
|
16
|
+
session_id: string;
|
|
17
|
+
} & import("../index.js").ResponseMetadata>;
|
|
18
|
+
/** Disconnect / tear down a desktop session */
|
|
19
|
+
disconnect(sessionId: string): Promise<{
|
|
20
|
+
ok: boolean;
|
|
21
|
+
} & import("../index.js").ResponseMetadata>;
|
|
22
|
+
/** Drive a click / type / scroll action against the session */
|
|
23
|
+
sendAction(sessionId: string, body: components['schemas']['ActionRequest']): Promise<{
|
|
24
|
+
ok: boolean;
|
|
25
|
+
} & import("../index.js").ResponseMetadata>;
|
|
26
|
+
/** Get the latest screenshot for a session */
|
|
27
|
+
getScreenshot(sessionId: string): Promise<unknown>;
|
|
28
|
+
/** Get the session's current connection + activity status */
|
|
29
|
+
getStatus(sessionId: string): Promise<{
|
|
30
|
+
connected: boolean;
|
|
31
|
+
created_at: number;
|
|
32
|
+
healthy: boolean;
|
|
33
|
+
idle_seconds: number;
|
|
34
|
+
session_id: string;
|
|
35
|
+
} & import("../index.js").ResponseMetadata>;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=desktop-sessions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"desktop-sessions.d.ts","sourceRoot":"","sources":["../../../src/resources/desktop-sessions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAUhE,KAAK,2BAA2B,GAC9B,UAAU,CAAC,SAAS,CAAC,CAAC,qDAAqD,CAAC,CAAA;AAE9E;;;;;;GAMG;AACH,qBAAa,uBAAwB,SAAQ,uBAAuB;IAClE,oCAAoC;IAC9B,MAAM,CAAC,IAAI,EAAE,2BAA2B;;;;;IAS9C,+CAA+C;IACzC,UAAU,CAAC,SAAS,EAAE,MAAM;;;IAQlC,+DAA+D;IACzD,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC;;;IAShF,8CAA8C;IACxC,aAAa,CAAC,SAAS,EAAE,MAAM;IAQrC,6DAA6D;IACvD,SAAS,CAAC,SAAS,EAAE,MAAM;;;;;;;CAOlC"}
|