@kmlckj/aios-agent-server-sdk 0.0.0-stage → 0.0.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 (141) hide show
  1. package/EVENTS.md +88 -0
  2. package/README.md +656 -2
  3. package/capabilities.json +2398 -0
  4. package/dist/cli/daemon/preferences.d.ts +67 -0
  5. package/dist/cli/daemon/protocol.d.ts +26 -0
  6. package/dist/cli/daemon/resource-limits.d.ts +39 -0
  7. package/dist/core/auth/platform-client.d.ts +65 -0
  8. package/dist/core/host/runtime-dependencies.d.ts +26 -0
  9. package/dist/core/skills/skill-bindings.d.ts +19 -0
  10. package/dist/core/skills/skill-versions.d.ts +31 -0
  11. package/dist/electron/main/bundled-runtime-tools.d.ts +24 -0
  12. package/dist/events.js +1 -0
  13. package/dist/index.js +55 -0
  14. package/dist/sdk/src/auth.d.ts +43 -0
  15. package/dist/sdk/src/authorization-events.d.ts +16 -0
  16. package/dist/sdk/src/authorization.d.ts +10 -0
  17. package/dist/sdk/src/communication.d.ts +9 -0
  18. package/dist/sdk/src/diagnostics.d.ts +24 -0
  19. package/dist/sdk/src/errors.d.ts +4 -0
  20. package/dist/sdk/src/events.d.ts +4 -0
  21. package/dist/sdk/src/file-api.d.ts +29 -0
  22. package/dist/sdk/src/file-storage.d.ts +34 -0
  23. package/dist/sdk/src/index.d.ts +260 -0
  24. package/dist/sdk/src/local-connection.d.ts +9 -0
  25. package/dist/sdk/src/managed-host.d.ts +32 -0
  26. package/dist/sdk/src/native-status.d.ts +59 -0
  27. package/dist/sdk/src/platform.d.ts +39 -0
  28. package/dist/sdk/src/runtime-control.d.ts +111 -0
  29. package/dist/sdk/src/runtime-integrity.d.ts +10 -0
  30. package/dist/sdk/src/tool-reference.d.ts +11 -0
  31. package/dist/sdk/src/tool-result.d.ts +36 -0
  32. package/dist/sdk/src/tool-server.d.ts +14 -0
  33. package/dist/sdk/src/transport.d.ts +25 -0
  34. package/dist/sdk/src/types.d.ts +405 -0
  35. package/dist/shared/account-context-api.d.ts +47 -0
  36. package/dist/shared/account-schedules-api.d.ts +110 -0
  37. package/dist/shared/action-center-api.d.ts +50 -0
  38. package/dist/shared/agent-capabilities.d.ts +42 -0
  39. package/dist/shared/agent-hooks.d.ts +10 -0
  40. package/dist/shared/agent-team.d.ts +19 -0
  41. package/dist/shared/artifact-evidence.d.ts +18 -0
  42. package/dist/shared/automation-api.d.ts +112 -0
  43. package/dist/shared/client-downloads-api.d.ts +20 -0
  44. package/dist/shared/cloud-assistant-api.d.ts +532 -0
  45. package/dist/shared/cloud-task-resources.d.ts +24 -0
  46. package/dist/shared/cloud-task-runtime-api.d.ts +253 -0
  47. package/dist/shared/collaboration-api.d.ts +17 -0
  48. package/dist/shared/collaboration-automation-api.d.ts +55 -0
  49. package/dist/shared/collaboration-deep-link.d.ts +15 -0
  50. package/dist/shared/collaboration-event-api.d.ts +19 -0
  51. package/dist/shared/collaboration-plan-api.d.ts +159 -0
  52. package/dist/shared/collaboration-project-api.d.ts +206 -0
  53. package/dist/shared/collaboration-resource-api.d.ts +41 -0
  54. package/dist/shared/collaboration-task-api.d.ts +276 -0
  55. package/dist/shared/collaboration-task-execution.d.ts +39 -0
  56. package/dist/shared/computer-use-api.d.ts +80 -0
  57. package/dist/shared/computer-use-handshake.d.ts +19 -0
  58. package/dist/shared/computer-use-protocol.d.ts +488 -0
  59. package/dist/shared/context-usage.d.ts +15 -0
  60. package/dist/shared/desktop-api.d.ts +450 -0
  61. package/dist/shared/desktop-diagnostics-api.d.ts +56 -0
  62. package/dist/shared/desktop-language.d.ts +3 -0
  63. package/dist/shared/desktop-mcp-service-api.d.ts +157 -0
  64. package/dist/shared/document-session-api.d.ts +91 -0
  65. package/dist/shared/enterprise-knowledge-api.d.ts +103 -0
  66. package/dist/shared/enterprise-project-api.d.ts +26 -0
  67. package/dist/shared/execution-activity.d.ts +3 -0
  68. package/dist/shared/execution-context.d.ts +62 -0
  69. package/dist/shared/execution-identity.d.ts +7 -0
  70. package/dist/shared/execution-profile.d.ts +6 -0
  71. package/dist/shared/execution-target.d.ts +71 -0
  72. package/dist/shared/expert-selection.d.ts +22 -0
  73. package/dist/shared/expert-team-api.d.ts +54 -0
  74. package/dist/shared/feedback-api.d.ts +20 -0
  75. package/dist/shared/git-api.d.ts +227 -0
  76. package/dist/shared/git-http-api.d.ts +12 -0
  77. package/dist/shared/hosted-git-api.d.ts +132 -0
  78. package/dist/shared/js-agent-hooks.d.ts +23 -0
  79. package/dist/shared/local-custom-model-api.d.ts +55 -0
  80. package/dist/shared/local-environment-api.d.ts +110 -0
  81. package/dist/shared/local-mcp-server-api.d.ts +91 -0
  82. package/dist/shared/local-memory.d.ts +165 -0
  83. package/dist/shared/local-plugin-api.d.ts +26 -0
  84. package/dist/shared/local-runtime-api.d.ts +32 -0
  85. package/dist/shared/local-skill-api.d.ts +42 -0
  86. package/dist/shared/local-task-api.d.ts +658 -0
  87. package/dist/shared/local-task-command-client.d.ts +55 -0
  88. package/dist/shared/local-task-command.d.ts +93 -0
  89. package/dist/shared/local-task-event-projection.d.ts +29 -0
  90. package/dist/shared/local-task-projection.d.ts +29 -0
  91. package/dist/shared/local-workspace.d.ts +9 -0
  92. package/dist/shared/managed-authorization.d.ts +72 -0
  93. package/dist/shared/memory-customization.d.ts +32 -0
  94. package/dist/shared/model-routing.d.ts +31 -0
  95. package/dist/shared/model-selection.d.ts +11 -0
  96. package/dist/shared/my-expert-api.d.ts +119 -0
  97. package/dist/shared/navigation-api.d.ts +20 -0
  98. package/dist/shared/office-window-api.d.ts +81 -0
  99. package/dist/shared/platform-branding-api.d.ts +66 -0
  100. package/dist/shared/plugin-market-api.d.ts +120 -0
  101. package/dist/shared/profession-market-api.d.ts +96 -0
  102. package/dist/shared/project-local-skill-api.d.ts +8 -0
  103. package/dist/shared/remote-connection-api.d.ts +97 -0
  104. package/dist/shared/remote-connection.d.ts +62 -0
  105. package/dist/shared/remote-installation-api.d.ts +50 -0
  106. package/dist/shared/remote-tasks-api.d.ts +118 -0
  107. package/dist/shared/runtime-tuning.d.ts +44 -0
  108. package/dist/shared/scene-case-api.d.ts +42 -0
  109. package/dist/shared/sdk-session-contract.d.ts +96 -0
  110. package/dist/shared/security-center-api.d.ts +74 -0
  111. package/dist/shared/sensitive-protection-api.d.ts +71 -0
  112. package/dist/shared/session-policy.d.ts +26 -0
  113. package/dist/shared/shortcut-api.d.ts +7 -0
  114. package/dist/shared/skill-activation-api.d.ts +8 -0
  115. package/dist/shared/skill-asset-api.d.ts +12 -0
  116. package/dist/shared/skill-market-api.d.ts +119 -0
  117. package/dist/shared/skill-upload.d.ts +16 -0
  118. package/dist/shared/speech-recognition-api.d.ts +12 -0
  119. package/dist/shared/storage-integrity.d.ts +15 -0
  120. package/dist/shared/target-bridge-protocol.d.ts +67 -0
  121. package/dist/shared/target-environments.d.ts +15 -0
  122. package/dist/shared/target-resources.d.ts +105 -0
  123. package/dist/shared/task-enterprise-project-api.d.ts +75 -0
  124. package/dist/shared/task-execution-api.d.ts +35 -0
  125. package/dist/shared/task-initialization-api.d.ts +44 -0
  126. package/dist/shared/task-menu-api.d.ts +27 -0
  127. package/dist/shared/task-operation.d.ts +19 -0
  128. package/dist/shared/task-path-policy.d.ts +14 -0
  129. package/dist/shared/task-resource-manifest.d.ts +33 -0
  130. package/dist/shared/task-storage-recovery.d.ts +33 -0
  131. package/dist/shared/task-terminal-api.d.ts +48 -0
  132. package/dist/shared/team-control.d.ts +60 -0
  133. package/dist/shared/tool-activity.d.ts +18 -0
  134. package/dist/shared/update-api.d.ts +65 -0
  135. package/dist/shared/usage-statistics-api.d.ts +18 -0
  136. package/dist/shared/worktree-api.d.ts +188 -0
  137. package/examples/business-assistant.mjs +19 -0
  138. package/examples/common.mjs +51 -0
  139. package/examples/platform-assistant.mjs +9 -0
  140. package/examples/standalone-assistant.mjs +16 -0
  141. package/package.json +40 -4
@@ -0,0 +1,532 @@
1
+ import type { AccountSchedulesApi } from './account-schedules-api.js';
2
+ import type { ModelReasoningConfig } from './model-selection.js';
3
+ import type { ContextUsageSnapshot } from './context-usage.js';
4
+ import type { EnterpriseProjectCapabilityPage, EnterpriseProjectSearchRequest } from './enterprise-project-api.js';
5
+ export type { ScheduleTriggerType, WorkbenchSchedule, WorkbenchScheduleRun, SaveScheduleRequest, ScheduleListQuery, ScheduleRunQuery } from './account-schedules-api.js';
6
+ export interface PersonalAgentSkill {
7
+ id: string;
8
+ profileKey: string;
9
+ skillId: string;
10
+ tenantId?: string | null;
11
+ sourceType: string;
12
+ sourcePath: string | null;
13
+ enabled: boolean;
14
+ sortOrder: number;
15
+ name: string;
16
+ description: string | null;
17
+ iconUrl: string | null;
18
+ mySkillEnabled: boolean;
19
+ }
20
+ export interface CollaborationProject {
21
+ id: string;
22
+ ownerUserId: string;
23
+ name: string;
24
+ description: string | null;
25
+ status: string;
26
+ pinned: boolean;
27
+ sortOrder: number;
28
+ memberCount: number;
29
+ viewerRole: CollaborationMemberRole;
30
+ lastMessagePreview: string | null;
31
+ lastMessageAt: string | null;
32
+ createdAt: string | null;
33
+ updatedAt: string | null;
34
+ }
35
+ export interface CollaborationProjectList {
36
+ items: CollaborationProject[];
37
+ total: number;
38
+ }
39
+ export type CollaborationMemberRole = 'OWNER' | 'ADMIN' | 'MEMBER' | 'VIEWER' | string;
40
+ export interface CollaborationMember {
41
+ id: string;
42
+ projectId: string;
43
+ userId: string;
44
+ displayName: string | null;
45
+ username: string | null;
46
+ avatarUrl: string | null;
47
+ role: CollaborationMemberRole;
48
+ pinned: boolean;
49
+ sortOrder: number;
50
+ createdAt: string | null;
51
+ updatedAt: string | null;
52
+ }
53
+ export type CollaborationSenderType = 'USER' | 'AGENT' | 'SYSTEM' | 'TOOL' | string;
54
+ export interface CollaborationMessage {
55
+ id: string;
56
+ executionTaskId?: string;
57
+ executionCommandId?: string;
58
+ projectId: string;
59
+ sessionId: string;
60
+ turnId: string | null;
61
+ senderType: CollaborationSenderType;
62
+ senderUserId: string | null;
63
+ senderProfileKey: string | null;
64
+ senderName: string | null;
65
+ senderAvatarUrl: string | null;
66
+ content: string;
67
+ status: string;
68
+ createdAt: string;
69
+ updatedAt: string | null;
70
+ richContent?: CloudChatRichContent;
71
+ attachments?: CloudChatAttachment[];
72
+ skillReferences?: CloudChatSkillReference[];
73
+ conversationReference?: CloudChatConversationReference;
74
+ }
75
+ export interface CollaborationMessageList {
76
+ items: CollaborationMessage[];
77
+ total: number;
78
+ }
79
+ export interface UpdateCollaborationProjectRequest {
80
+ projectId: string;
81
+ name?: string;
82
+ description?: string;
83
+ status?: string;
84
+ }
85
+ export interface UpdateProjectPinRequest {
86
+ projectId: string;
87
+ pinned: boolean;
88
+ }
89
+ export interface ProjectMessageQuery {
90
+ projectId: string;
91
+ sessionId?: string;
92
+ limit?: number;
93
+ offset?: number;
94
+ }
95
+ export interface ProjectSendMessageRequest {
96
+ projectId: string;
97
+ sessionId: string;
98
+ content: string;
99
+ attachments?: CloudUploadedAttachment[];
100
+ references?: CloudMessageReference[];
101
+ richContent?: CloudChatRichContent;
102
+ }
103
+ export type CloudFileSource = 'agent' | 'project';
104
+ export interface CloudFileListQuery {
105
+ directory?: string;
106
+ keyword?: string;
107
+ }
108
+ export interface CloudFileEntry {
109
+ id: string;
110
+ source: CloudFileSource;
111
+ name: string;
112
+ path: string;
113
+ directory: boolean;
114
+ sizeBytes: number;
115
+ mediaType: string | null;
116
+ createdAt: string | null;
117
+ updatedAt?: string | null;
118
+ createdBy?: string | null;
119
+ updatedBy?: string | null;
120
+ children?: CloudFileEntry[];
121
+ }
122
+ export interface CloudFileList {
123
+ items: CloudFileEntry[];
124
+ total: number;
125
+ usedBytes: number | null;
126
+ totalBytes: number | null;
127
+ }
128
+ export type CloudFileTarget = {
129
+ source: 'project';
130
+ projectId: string;
131
+ artifactId: string;
132
+ };
133
+ export type CloudFileContainer = {
134
+ source: 'project';
135
+ projectId: string;
136
+ directory: string;
137
+ };
138
+ export interface UploadCloudFileRequest {
139
+ container: CloudFileContainer;
140
+ fileName: string;
141
+ mediaType: string;
142
+ data: ArrayBuffer;
143
+ }
144
+ export interface CreateCloudDirectoryRequest {
145
+ container: CloudFileContainer;
146
+ name: string;
147
+ }
148
+ export interface RenameCloudFileRequest {
149
+ target: CloudFileTarget;
150
+ directory: boolean;
151
+ currentPath: string;
152
+ newName: string;
153
+ }
154
+ export interface SaveCloudFileRequest {
155
+ target: CloudFileTarget;
156
+ fileName: string;
157
+ mediaType: string;
158
+ data: ArrayBuffer;
159
+ }
160
+ export type CloudFileDataSource = CloudFileTarget | {
161
+ source: 'url';
162
+ url: string;
163
+ };
164
+ export interface CloudFileContent {
165
+ mediaType: string;
166
+ text: string | null;
167
+ dataUrl: string | null;
168
+ truncated: boolean;
169
+ }
170
+ export interface DownloadCloudFileRequest {
171
+ target: CloudFileDataSource;
172
+ fileName: string;
173
+ }
174
+ export interface HistorySearchItem {
175
+ sessionId: string;
176
+ sessionTitle: string | null;
177
+ isMain: boolean;
178
+ preview: string;
179
+ message: CloudChatMessage;
180
+ }
181
+ export interface CreateChatShareRequest {
182
+ sourceType: 'COLLABORATION_PROJECT';
183
+ projectId: string;
184
+ sessionId: string;
185
+ messageIds: string[];
186
+ allowFileAccess: boolean;
187
+ }
188
+ export interface ChatShare {
189
+ shareId: string;
190
+ shareUrl: string;
191
+ title: string;
192
+ allowFileAccess: boolean;
193
+ messageCount: number;
194
+ createdAt: string | null;
195
+ }
196
+ export interface CreateCollaborationProjectRequest {
197
+ name: string;
198
+ description?: string;
199
+ idempotencyKey?: string;
200
+ }
201
+ export type CloudChatRole = 'system' | 'user' | 'assistant' | 'tool';
202
+ export type CloudChatMessageStatus = 'complete' | 'streaming' | 'failed';
203
+ export type CloudChatRichTokenType = 'agent' | 'member' | 'skill' | 'enterprise_project' | 'collection' | 'attachment';
204
+ export type CloudChatRichSegment = {
205
+ type: 'text';
206
+ text: string;
207
+ } | {
208
+ type: CloudChatRichTokenType;
209
+ id: string;
210
+ name: string;
211
+ avatarUrl?: string | null;
212
+ source?: string | null;
213
+ tenantId?: string | null;
214
+ profileKey?: string | null;
215
+ agentId?: string | null;
216
+ ownerUserId?: string | null;
217
+ previewUrl?: string | null;
218
+ downloadUrl?: string | null;
219
+ mediaType?: string | null;
220
+ sizeBytes?: number | null;
221
+ reference?: Record<string, unknown> | null;
222
+ };
223
+ export interface CloudChatRichContent {
224
+ version: 1;
225
+ segments: CloudChatRichSegment[];
226
+ }
227
+ export type CloudMessageReference = {
228
+ type: 'conversation';
229
+ message_ids: string[];
230
+ } | {
231
+ type: 'platform_skill';
232
+ skill_id: string;
233
+ tenant_id?: string;
234
+ } | {
235
+ type: 'system_skill';
236
+ skill_id: string;
237
+ } | {
238
+ type: 'local_skill';
239
+ path: string;
240
+ } | {
241
+ type: 'remote_file';
242
+ url: string;
243
+ name: string;
244
+ mime_type?: string;
245
+ size?: number;
246
+ source: 'enterprise_knowledge';
247
+ knowledge_base_id: string;
248
+ document_id: string;
249
+ } | {
250
+ type: 'url';
251
+ url: string;
252
+ };
253
+ export interface AvailableChatModel {
254
+ reasoningConfig?: ModelReasoningConfig | null;
255
+ modelId: string;
256
+ modelCode: string;
257
+ displayName: string;
258
+ avatarUrl: string | null;
259
+ providerCode: string | null;
260
+ description: string | null;
261
+ categoryCode: string | null;
262
+ categoryName: string | null;
263
+ capabilityCode: string | null;
264
+ callMode: string | null;
265
+ async: boolean;
266
+ requiredHeaders: string[];
267
+ tagText: string | null;
268
+ tagNameText: string | null;
269
+ sourceTagCode: string | null;
270
+ sourceTagName: string | null;
271
+ sourceTagColor: string | null;
272
+ tools: string | null;
273
+ inputCapabilities: string | null;
274
+ outputCapabilities: string | null;
275
+ generalScore?: number | null;
276
+ codingScore?: number | null;
277
+ webScore?: number | null;
278
+ officeScore?: number | null;
279
+ researchScore?: number | null;
280
+ multimodalScore?: number | null;
281
+ standardInputPrice?: number | null;
282
+ standardOutputPrice?: number | null;
283
+ priceUnit?: string | null;
284
+ priceCurrency?: string | null;
285
+ modelExperience: boolean;
286
+ functionCalling: boolean;
287
+ structuredOutput: boolean;
288
+ webSearch: boolean;
289
+ prefixCompletion: boolean;
290
+ cacheContext: boolean;
291
+ batchInference: boolean;
292
+ modelFinetune: boolean;
293
+ maxInputLength: string | null;
294
+ maxOutputLength: string | null;
295
+ maxInputLengthThinking: string | null;
296
+ maxOutputLengthThinking: string | null;
297
+ contextLength: string | null;
298
+ rpmLimit: number | null;
299
+ tpmLimit: number | null;
300
+ platformEnabled: boolean;
301
+ comingOffline: boolean;
302
+ availableEnabled: boolean;
303
+ recommended: boolean;
304
+ reason: string | null;
305
+ sortOrder: number;
306
+ updatedAt: string | null;
307
+ }
308
+ export interface CloudChatAttachment {
309
+ id: string;
310
+ name: string;
311
+ mediaType: string;
312
+ sizeBytes: number;
313
+ sourcePath?: string;
314
+ previewUrl?: string;
315
+ downloadUrl?: string;
316
+ }
317
+ export interface CloudChatSkillReference {
318
+ tenantId?: string | null;
319
+ id: string;
320
+ name: string;
321
+ iconUrl?: string | null;
322
+ }
323
+ export interface CloudChatConversationReference {
324
+ id: string;
325
+ messageIds: string[];
326
+ senderName: string;
327
+ summary: string;
328
+ createdAt?: string;
329
+ role?: 'user' | 'assistant';
330
+ }
331
+ export interface CloudChatMessage {
332
+ id: string;
333
+ executionTaskId?: string;
334
+ executionCommandId?: string;
335
+ role: CloudChatRole;
336
+ content: string;
337
+ thinkingContent?: string;
338
+ thinkingComplete?: boolean;
339
+ historyInteraction?: {
340
+ kind: 'approval' | 'user_input' | 'elicitation';
341
+ title: string;
342
+ request: string;
343
+ response: string;
344
+ status: 'approved' | 'denied' | 'submitted' | 'cancelled' | 'timed_out';
345
+ };
346
+ createdAt: string;
347
+ status: CloudChatMessageStatus;
348
+ turnId?: string;
349
+ senderName?: string;
350
+ senderAvatarUrl?: string | null;
351
+ senderProfileKey?: string | null;
352
+ richContent?: CloudChatRichContent;
353
+ attachments?: CloudChatAttachment[];
354
+ skillReferences?: CloudChatSkillReference[];
355
+ conversationReference?: CloudChatConversationReference;
356
+ }
357
+ export interface CloudUploadedAttachment {
358
+ artifactId?: string;
359
+ projectId?: string;
360
+ accessUrl?: string;
361
+ fileName: string;
362
+ filePath: string;
363
+ fileUrl: string;
364
+ previewUrl: string;
365
+ downloadUrl: string;
366
+ mediaType: string;
367
+ sizeBytes: number;
368
+ createdAt: string;
369
+ expiresAt: number;
370
+ expiresInSeconds: number;
371
+ }
372
+ export interface UploadAgentAttachmentRequest {
373
+ profileKey: string;
374
+ sessionId: string;
375
+ fileName: string;
376
+ mediaType: string;
377
+ data: ArrayBuffer;
378
+ }
379
+ export interface UploadProjectAttachmentRequest {
380
+ projectId: string;
381
+ fileName: string;
382
+ mediaType: string;
383
+ data: ArrayBuffer;
384
+ }
385
+ export type CloudChatStreamPayload = {
386
+ type: 'text-delta';
387
+ text: string;
388
+ } | {
389
+ type: 'thinking-delta';
390
+ text: string;
391
+ } | {
392
+ type: 'thinking-complete';
393
+ } | {
394
+ type: 'state';
395
+ state: string;
396
+ } | {
397
+ type: 'status';
398
+ message: string;
399
+ } | {
400
+ type: 'context-usage';
401
+ usage: ContextUsageSnapshot;
402
+ } | {
403
+ type: 'tool-start';
404
+ name: string;
405
+ } | {
406
+ type: 'tool-result';
407
+ name: string;
408
+ output: string;
409
+ failed: boolean;
410
+ } | {
411
+ type: 'interaction-changed';
412
+ interaction?: PersonalAgentInteraction;
413
+ interactionId: string;
414
+ status: PersonalAgentInteractionStatus;
415
+ } | {
416
+ type: 'complete';
417
+ finalText: string;
418
+ } | {
419
+ type: 'message-upsert';
420
+ message: CloudChatMessage;
421
+ clientMessageId?: string;
422
+ } | {
423
+ type: 'error';
424
+ message: string;
425
+ retryable: boolean;
426
+ };
427
+ export type PersonalAgentInteractionStatus = 'pending' | 'resolving' | 'resolved';
428
+ export type PersonalAgentInteractionKind = 'approval' | 'user_input';
429
+ export interface PersonalAgentInteractionOption {
430
+ id: string;
431
+ label: string;
432
+ description?: string;
433
+ decision?: 'approve' | 'deny';
434
+ }
435
+ export interface PersonalAgentInteraction {
436
+ id: string;
437
+ profileKey: string;
438
+ sessionId: string;
439
+ kind: PersonalAgentInteractionKind;
440
+ status: PersonalAgentInteractionStatus;
441
+ title: string;
442
+ description?: string;
443
+ toolCallId?: string;
444
+ requestId?: string;
445
+ interactionType?: 'question' | 'elicitation';
446
+ options?: PersonalAgentInteractionOption[];
447
+ allowOther?: boolean;
448
+ secret?: boolean;
449
+ formSchema?: Record<string, unknown> | unknown[];
450
+ mode?: string;
451
+ serverName?: string;
452
+ url?: string;
453
+ cancelable?: boolean;
454
+ createdAt?: string;
455
+ }
456
+ export interface ListPersonalAgentInteractionsRequest {
457
+ profileKey: string;
458
+ sessionId: string;
459
+ }
460
+ export interface ResolvePersonalAgentInteractionRequest extends ListPersonalAgentInteractionsRequest {
461
+ interactionId: string;
462
+ kind: PersonalAgentInteractionKind;
463
+ decision?: 'approve' | 'deny' | 'submit' | 'cancel';
464
+ toolCallId?: string;
465
+ requestId?: string;
466
+ interactionType?: 'question' | 'elicitation';
467
+ optionId?: string;
468
+ response?: string | Record<string, unknown>;
469
+ }
470
+ export interface ProjectEventSubscriptionRequest {
471
+ projectId: string;
472
+ sessionId: string;
473
+ objectKey: string;
474
+ }
475
+ export type CloudAssistantEventSubscriptionRequest = ProjectEventSubscriptionRequest;
476
+ export interface CloudChatStreamEvent {
477
+ subscriptionId: string;
478
+ objectKey: string;
479
+ sessionId: string;
480
+ sequence: number;
481
+ streamKey?: string;
482
+ senderName?: string;
483
+ senderAvatarUrl?: string | null;
484
+ payload: CloudChatStreamPayload;
485
+ }
486
+ export interface CloudAssistantApi {
487
+ enterpriseProjects: {
488
+ search: (request: EnterpriseProjectSearchRequest) => Promise<EnterpriseProjectCapabilityPage>;
489
+ };
490
+ projects: {
491
+ list: () => Promise<CollaborationProjectList>;
492
+ get: (projectId: string) => Promise<CollaborationProject>;
493
+ create: (request: CreateCollaborationProjectRequest) => Promise<CollaborationProject>;
494
+ update: (request: UpdateCollaborationProjectRequest) => Promise<CollaborationProject>;
495
+ delete: (projectId: string) => Promise<void>;
496
+ listMembers: (projectId: string) => Promise<CollaborationMember[]>;
497
+ updatePin: (request: UpdateProjectPinRequest) => Promise<CollaborationMember>;
498
+ listMessages: (query: ProjectMessageQuery) => Promise<CollaborationMessageList>;
499
+ sendMessage: (request: ProjectSendMessageRequest) => Promise<CollaborationMessage>;
500
+ };
501
+ files: {
502
+ listProject: (projectId: string, query?: CloudFileListQuery) => Promise<CloudFileList>;
503
+ readContent: (target: CloudFileTarget) => Promise<CloudFileContent>;
504
+ readBinary: (source: CloudFileDataSource) => Promise<ArrayBuffer>;
505
+ getDownloadUrl: (target: CloudFileTarget) => Promise<string>;
506
+ upload: (request: UploadCloudFileRequest) => Promise<void>;
507
+ createDirectory: (request: CreateCloudDirectoryRequest) => Promise<void>;
508
+ rename: (request: RenameCloudFileRequest) => Promise<void>;
509
+ delete: (target: CloudFileTarget & {
510
+ directory: boolean;
511
+ }) => Promise<void>;
512
+ save: (request: SaveCloudFileRequest) => Promise<void>;
513
+ uploadProjectAttachment: (request: UploadProjectAttachmentRequest) => Promise<CloudUploadedAttachment>;
514
+ download: (request: DownloadCloudFileRequest) => Promise<{
515
+ canceled: boolean;
516
+ path?: string;
517
+ }>;
518
+ };
519
+ models: {
520
+ listText: () => Promise<AvailableChatModel[]>;
521
+ listLocalAgentText: () => Promise<AvailableChatModel[]>;
522
+ };
523
+ schedules: AccountSchedulesApi;
524
+ chatShares: {
525
+ create: (request: CreateChatShareRequest) => Promise<ChatShare>;
526
+ };
527
+ events: {
528
+ subscribe: (request: CloudAssistantEventSubscriptionRequest) => Promise<string>;
529
+ unsubscribe: (subscriptionId: string) => Promise<void>;
530
+ onEvent: (listener: (event: CloudChatStreamEvent) => void) => () => void;
531
+ };
532
+ }
@@ -0,0 +1,24 @@
1
+ import type { LocalTaskArtifact } from './local-task-api.js';
2
+ import type { TaskOperationSnapshot } from './task-operation.js';
3
+ import type { TeamState } from './team-control.js';
4
+ export type CloudSessionArtifact = LocalTaskArtifact & {
5
+ source: {
6
+ kind: 'execution' | 'workspace';
7
+ eventId?: string;
8
+ runId?: string;
9
+ threadId?: string;
10
+ tool?: string;
11
+ at?: string;
12
+ };
13
+ };
14
+ export interface CloudSessionResources {
15
+ metadata: {
16
+ id: string;
17
+ name: string;
18
+ workspacePath: string;
19
+ [key: string]: unknown;
20
+ };
21
+ artifacts: CloudSessionArtifact[];
22
+ operations: TaskOperationSnapshot[];
23
+ team: TeamState | null;
24
+ }