@kmlckj/aios-agent-server-sdk 0.0.1 → 0.0.5

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.
@@ -1,56 +1,8 @@
1
- import type { ModelReasoningEffort, ModelReasoningConfig } from './model-selection.js';
1
+ import type { AccountSchedulesApi } from './account-schedules-api.js';
2
+ import type { ModelReasoningConfig } from './model-selection.js';
2
3
  import type { ContextUsageSnapshot } from './context-usage.js';
3
4
  import type { EnterpriseProjectCapabilityPage, EnterpriseProjectSearchRequest } from './enterprise-project-api.js';
4
- export type AssistantHubItemType = 'AGENT' | 'PROJECT';
5
- export type PersonalAgentRuntimeLocation = 'PLATFORM' | 'LOCAL';
6
- export interface AssistantHubItem {
7
- type: AssistantHubItemType;
8
- id: string;
9
- key: string;
10
- name: string;
11
- description: string | null;
12
- avatarUrl: string | null;
13
- status: string | null;
14
- pinned: boolean;
15
- sortOrder: number;
16
- lastPreview: string | null;
17
- lastAt: string | null;
18
- hasUnread: boolean;
19
- unreadCount: number;
20
- online: boolean;
21
- }
22
- export interface AssistantHubList {
23
- items: AssistantHubItem[];
24
- total: number;
25
- }
26
- export interface PersonalAgentProfile {
27
- id: string;
28
- ownerUserId: string;
29
- profileKey: string;
30
- name: string;
31
- description: string | null;
32
- avatarUrl: string | null;
33
- runtimeLocation: PersonalAgentRuntimeLocation;
34
- runtimeProvider: string;
35
- bridgeClientId: string | null;
36
- bridgeConnected: boolean;
37
- professionId: string | null;
38
- professionName: string | null;
39
- isDefault: boolean;
40
- pinned: boolean;
41
- status: string;
42
- sortOrder: number;
43
- lastReplyPreview: string | null;
44
- lastReplyAt: string | null;
45
- hasUnread: boolean;
46
- unreadCount: number;
47
- createdAt: string | null;
48
- updatedAt: string | null;
49
- }
50
- export interface PersonalAgentList {
51
- items: PersonalAgentProfile[];
52
- total: number;
53
- }
5
+ export type { ScheduleTriggerType, WorkbenchSchedule, WorkbenchScheduleRun, SaveScheduleRequest, ScheduleListQuery, ScheduleRunQuery } from './account-schedules-api.js';
54
6
  export interface PersonalAgentSkill {
55
7
  id: string;
56
8
  profileKey: string;
@@ -65,140 +17,6 @@ export interface PersonalAgentSkill {
65
17
  iconUrl: string | null;
66
18
  mySkillEnabled: boolean;
67
19
  }
68
- export type PersonalAgentPluginSource = 'PLATFORM' | 'ENTERPRISE';
69
- export interface PersonalAgentPluginTool {
70
- toolId: string;
71
- name: string;
72
- functionName: string;
73
- description: string;
74
- inputSchema: Record<string, unknown>;
75
- }
76
- export interface PersonalAgentPlugin {
77
- publishRecordId: string;
78
- pluginId: string;
79
- name: string;
80
- description: string;
81
- iconUrl: string | null;
82
- source: PersonalAgentPluginSource;
83
- resourceVersion: string;
84
- enabled: boolean;
85
- tools: PersonalAgentPluginTool[];
86
- }
87
- export interface PersonalAgentPluginConfig {
88
- version: number;
89
- plugins: PersonalAgentPlugin[];
90
- }
91
- export interface AvailablePersonalSkill {
92
- skillId: string;
93
- tenantId: string | null;
94
- name: string;
95
- description: string | null;
96
- iconUrl: string | null;
97
- sourceType: 'MY' | 'ENTERPRISE' | 'PLATFORM';
98
- sourceLabel: string;
99
- categoryCode: string | null;
100
- enabled: boolean;
101
- }
102
- export interface AvailablePersonalSkillCategory {
103
- code: string;
104
- name: string;
105
- }
106
- export interface AvailablePersonalSkillQuery {
107
- source?: AvailablePersonalSkill['sourceType'];
108
- keyword?: string;
109
- categoryCode?: string;
110
- pageSize?: number;
111
- }
112
- export interface AddPersonalAgentSkillRequest {
113
- skillId: string;
114
- tenantId?: string;
115
- sourceType: AvailablePersonalSkill['sourceType'];
116
- name: string;
117
- description?: string;
118
- iconUrl?: string;
119
- }
120
- export interface PersonalAgentMessageChannel {
121
- id: string;
122
- profileKey: string;
123
- channel: string;
124
- displayName: string;
125
- enabled: boolean;
126
- status: string;
127
- revision: number;
128
- }
129
- export interface PersonalAgentChannelAuthorization {
130
- sessionId: string;
131
- accountId: string;
132
- status: string;
133
- phase: string;
134
- qrUrl: string | null;
135
- qrPayload: string | null;
136
- message: string | null;
137
- }
138
- export interface UpdatePersonalAgentRequest {
139
- profileKey: string;
140
- name?: string;
141
- description?: string;
142
- pinned?: boolean;
143
- runtimeProvider?: string;
144
- }
145
- export interface ProfessionCategory {
146
- code: string;
147
- name: string;
148
- description: string | null;
149
- iconUrl: string | null;
150
- count: number;
151
- }
152
- export interface ProfessionTemplate {
153
- id: string;
154
- name: string;
155
- summary: string | null;
156
- iconUrl: string | null;
157
- categoryCode: string | null;
158
- categoryName: string | null;
159
- }
160
- export interface ProfessionSearchResult {
161
- items: ProfessionTemplate[];
162
- total: number;
163
- page: number;
164
- pageSize: number;
165
- hasNext: boolean;
166
- }
167
- export interface ProfessionSearchQuery {
168
- keyword?: string;
169
- categoryCode?: string;
170
- page?: number;
171
- pageSize?: number;
172
- }
173
- export interface CreateCloudAgentRequest {
174
- name: string;
175
- description: string;
176
- professionId: string;
177
- runtimeLocation: 'PLATFORM';
178
- runtimeProvider: string;
179
- }
180
- export interface CreateLocalAgentPairingRequest {
181
- profileKey?: string;
182
- name: string;
183
- description: string;
184
- }
185
- export interface LocalAgentPairing {
186
- pairingId: string;
187
- profileKey: string | null;
188
- profile: PersonalAgentProfile | null;
189
- pairCode: string | null;
190
- patToken?: string | null;
191
- command: string | null;
192
- handshakeUrl?: string | null;
193
- status: string;
194
- expiresAt: string;
195
- expiresInSeconds: number | null;
196
- connectedAt: string | null;
197
- lastSeenAt: string | null;
198
- runtimeProvider: string | null;
199
- deviceName: string | null;
200
- bridgeClientId?: string | null;
201
- }
202
20
  export interface CollaborationProject {
203
21
  id: string;
204
22
  ownerUserId: string;
@@ -207,7 +25,6 @@ export interface CollaborationProject {
207
25
  status: string;
208
26
  pinned: boolean;
209
27
  sortOrder: number;
210
- agentCount: number;
211
28
  memberCount: number;
212
29
  viewerRole: CollaborationMemberRole;
213
30
  lastMessagePreview: string | null;
@@ -233,41 +50,11 @@ export interface CollaborationMember {
233
50
  createdAt: string | null;
234
51
  updatedAt: string | null;
235
52
  }
236
- export interface CollaborationAgent {
237
- id: string;
238
- projectId: string;
239
- ownerUserId: string;
240
- profileKey: string;
241
- displayName: string | null;
242
- avatarUrl: string | null;
243
- agentKind: string | null;
244
- enabled: boolean;
245
- sortOrder: number;
246
- createdAt: string | null;
247
- updatedAt: string | null;
248
- }
249
- export interface CollaborationAgentSkill {
250
- tenantId?: string | null;
251
- bindingId: string;
252
- projectId: string;
253
- agentId: string;
254
- agentName: string | null;
255
- agentAvatarUrl: string | null;
256
- ownerUserId: string;
257
- profileKey: string;
258
- skillId: string;
259
- sourceType: string;
260
- sourcePath: string | null;
261
- enabled: boolean;
262
- sortOrder: number;
263
- name: string;
264
- description: string | null;
265
- iconUrl: string | null;
266
- mySkillEnabled: boolean;
267
- }
268
53
  export type CollaborationSenderType = 'USER' | 'AGENT' | 'SYSTEM' | 'TOOL' | string;
269
54
  export interface CollaborationMessage {
270
55
  id: string;
56
+ executionTaskId?: string;
57
+ executionCommandId?: string;
271
58
  projectId: string;
272
59
  sessionId: string;
273
60
  turnId: string | null;
@@ -289,21 +76,6 @@ export interface CollaborationMessageList {
289
76
  items: CollaborationMessage[];
290
77
  total: number;
291
78
  }
292
- export interface CollaborationTurn {
293
- id: string;
294
- profileKey: string;
295
- turnId: string;
296
- sourceSessionId: string | null;
297
- status: string;
298
- errorMessage: string | null;
299
- startedAt: string | null;
300
- finishedAt: string | null;
301
- createdAt: string | null;
302
- }
303
- export interface CollaborationTurnList {
304
- items: CollaborationTurn[];
305
- total: number;
306
- }
307
79
  export interface UpdateCollaborationProjectRequest {
308
80
  projectId: string;
309
81
  name?: string;
@@ -314,25 +86,6 @@ export interface UpdateProjectPinRequest {
314
86
  projectId: string;
315
87
  pinned: boolean;
316
88
  }
317
- export interface UpdateCollaborationAgentRequest {
318
- projectId: string;
319
- agentId: string;
320
- displayName?: string;
321
- enabled?: boolean;
322
- sortOrder?: number;
323
- }
324
- export interface AddCollaborationAgentRequest {
325
- projectId: string;
326
- ownerUserId: string;
327
- profileKey: string;
328
- displayName: string;
329
- agentKind: 'cloud_personal_agent' | 'local_agent';
330
- sortOrder: number;
331
- }
332
- export interface RemoveCollaborationAgentRequest {
333
- projectId: string;
334
- agentId: string;
335
- }
336
89
  export interface ProjectMessageQuery {
337
90
  projectId: string;
338
91
  sessionId?: string;
@@ -343,17 +96,10 @@ export interface ProjectSendMessageRequest {
343
96
  projectId: string;
344
97
  sessionId: string;
345
98
  content: string;
346
- model?: string;
347
- thinkingEnabled?: boolean;
348
- reasoningEffort?: ModelReasoningEffort;
349
99
  attachments?: CloudUploadedAttachment[];
350
100
  references?: CloudMessageReference[];
351
101
  richContent?: CloudChatRichContent;
352
102
  }
353
- export interface ProjectCancelTurnRequest {
354
- projectId: string;
355
- turnId: string;
356
- }
357
103
  export type CloudFileSource = 'agent' | 'project';
358
104
  export interface CloudFileListQuery {
359
105
  directory?: string;
@@ -380,19 +126,11 @@ export interface CloudFileList {
380
126
  totalBytes: number | null;
381
127
  }
382
128
  export type CloudFileTarget = {
383
- source: 'agent';
384
- profileKey: string;
385
- path: string;
386
- } | {
387
129
  source: 'project';
388
130
  projectId: string;
389
131
  artifactId: string;
390
132
  };
391
133
  export type CloudFileContainer = {
392
- source: 'agent';
393
- profileKey: string;
394
- directory: string;
395
- } | {
396
134
  source: 'project';
397
135
  projectId: string;
398
136
  directory: string;
@@ -433,59 +171,6 @@ export interface DownloadCloudFileRequest {
433
171
  target: CloudFileDataSource;
434
172
  fileName: string;
435
173
  }
436
- export type ScheduleTriggerType = 'ONCE' | 'DAILY' | 'CRON';
437
- export interface WorkbenchSchedule {
438
- scheduleId: string;
439
- userId: string;
440
- profileKey: string;
441
- content: string;
442
- triggerType: ScheduleTriggerType;
443
- triggerAt: string;
444
- timezone: string;
445
- enabled: boolean;
446
- createdAt: string | null;
447
- updatedAt: string | null;
448
- }
449
- export interface WorkbenchScheduleRun {
450
- runId: string;
451
- scheduleId: string;
452
- profileKey: string;
453
- plannedTriggerAt: string;
454
- triggerKey: string;
455
- status: string;
456
- resultContent: string | null;
457
- errorMessage: string | null;
458
- startedAt: string | null;
459
- finishedAt: string | null;
460
- createdAt: string | null;
461
- }
462
- export interface SaveScheduleRequest {
463
- scheduleId?: string;
464
- profileKey: string;
465
- content: string;
466
- triggerType: ScheduleTriggerType;
467
- triggerAt: string;
468
- timezone: string;
469
- enabled: boolean;
470
- }
471
- export type ScheduleQueryScope = {
472
- profileKey: string;
473
- allProfiles?: never;
474
- } | {
475
- allProfiles: true;
476
- profileKey?: never;
477
- };
478
- export type ScheduleListQuery = ScheduleQueryScope & {
479
- enabled?: boolean;
480
- limit?: number;
481
- offset?: number;
482
- };
483
- export type ScheduleRunQuery = ScheduleQueryScope & {
484
- from: string;
485
- before: string;
486
- limit?: number;
487
- offset?: number;
488
- };
489
174
  export interface HistorySearchItem {
490
175
  sessionId: string;
491
176
  sessionTitle: string | null;
@@ -493,22 +178,9 @@ export interface HistorySearchItem {
493
178
  preview: string;
494
179
  message: CloudChatMessage;
495
180
  }
496
- export interface HistorySearchRequest {
497
- profileKey: string;
498
- keyword: string;
499
- limit?: number;
500
- offset?: number;
501
- }
502
- export interface HistoryAroundRequest {
503
- profileKey: string;
504
- messageId: string;
505
- before?: number;
506
- after?: number;
507
- }
508
181
  export interface CreateChatShareRequest {
509
- sourceType: 'PERSONAL_AGENT' | 'COLLABORATION_PROJECT';
510
- profileKey?: string;
511
- projectId?: string;
182
+ sourceType: 'COLLABORATION_PROJECT';
183
+ projectId: string;
512
184
  sessionId: string;
513
185
  messageIds: string[];
514
186
  allowFileAccess: boolean;
@@ -521,26 +193,11 @@ export interface ChatShare {
521
193
  messageCount: number;
522
194
  createdAt: string | null;
523
195
  }
524
- export interface CreateProjectAgentRequest {
525
- ownerUserId: string;
526
- profileKey: string;
527
- displayName: string;
528
- agentKind: 'cloud_personal_agent' | 'local_agent';
529
- sortOrder: number;
530
- }
531
196
  export interface CreateCollaborationProjectRequest {
532
197
  name: string;
533
198
  description?: string;
534
- agents: CreateProjectAgentRequest[];
535
199
  idempotencyKey?: string;
536
200
  }
537
- export type CloudAssistantSelection = {
538
- type: 'agent';
539
- profileKey: string;
540
- } | {
541
- type: 'project';
542
- projectId: string;
543
- };
544
201
  export type CloudChatRole = 'system' | 'user' | 'assistant' | 'tool';
545
202
  export type CloudChatMessageStatus = 'complete' | 'streaming' | 'failed';
546
203
  export type CloudChatRichTokenType = 'agent' | 'member' | 'skill' | 'enterprise_project' | 'collection' | 'attachment';
@@ -593,25 +250,6 @@ export type CloudMessageReference = {
593
250
  type: 'url';
594
251
  url: string;
595
252
  };
596
- export interface CloudCollectionItem {
597
- id: string;
598
- title: string;
599
- type: 'link' | 'image' | 'text' | 'pdf' | 'file';
600
- source: string;
601
- sourceUrl: string | null;
602
- summary: string;
603
- sizeLabel: string | null;
604
- previewUrl: string | null;
605
- }
606
- export interface CloudCollectionList {
607
- items: CloudCollectionItem[];
608
- }
609
- export interface CreateCloudFileCollectionRequest {
610
- fileName: string;
611
- mediaType: string;
612
- sourcePath: string;
613
- data: ArrayBuffer;
614
- }
615
253
  export interface AvailableChatModel {
616
254
  reasoningConfig?: ModelReasoningConfig | null;
617
255
  modelId: string;
@@ -690,20 +328,10 @@ export interface CloudChatConversationReference {
690
328
  createdAt?: string;
691
329
  role?: 'user' | 'assistant';
692
330
  }
693
- export interface CloudChatSession {
694
- id: string;
695
- title: string;
696
- model: string;
697
- state: string;
698
- turnCount: number;
699
- isMain: boolean;
700
- createdAt: string;
701
- updatedAt: string;
702
- lastActiveAt: string;
703
- contextUsage?: ContextUsageSnapshot;
704
- }
705
331
  export interface CloudChatMessage {
706
332
  id: string;
333
+ executionTaskId?: string;
334
+ executionCommandId?: string;
707
335
  role: CloudChatRole;
708
336
  content: string;
709
337
  thinkingContent?: string;
@@ -726,32 +354,6 @@ export interface CloudChatMessage {
726
354
  skillReferences?: CloudChatSkillReference[];
727
355
  conversationReference?: CloudChatConversationReference;
728
356
  }
729
- export interface CloudChatHistoryPage {
730
- messages: CloudChatMessage[];
731
- total: number;
732
- limit: number;
733
- offset: number;
734
- }
735
- export interface AgentHistoryRequest {
736
- profileKey: string;
737
- sessionId: string;
738
- isMain: boolean;
739
- limit?: number;
740
- offset?: number;
741
- }
742
- export interface AgentSendMessageRequest {
743
- profileKey: string;
744
- sessionId: string;
745
- isMain: boolean;
746
- content: string;
747
- model?: string;
748
- thinkingEnabled?: boolean;
749
- reasoningEffort?: ModelReasoningEffort;
750
- attachments?: CloudUploadedAttachment[];
751
- references?: CloudMessageReference[];
752
- richContent?: CloudChatRichContent;
753
- clientMessageId?: string;
754
- }
755
357
  export interface CloudUploadedAttachment {
756
358
  artifactId?: string;
757
359
  projectId?: string;
@@ -780,15 +382,6 @@ export interface UploadProjectAttachmentRequest {
780
382
  mediaType: string;
781
383
  data: ArrayBuffer;
782
384
  }
783
- export interface AgentSendMessageResult {
784
- messageId: string;
785
- status: 'accepted' | 'queued';
786
- }
787
- export interface AgentCancelRequest {
788
- profileKey: string;
789
- sessionId: string;
790
- isMain: boolean;
791
- }
792
385
  export type CloudChatStreamPayload = {
793
386
  type: 'text-delta';
794
387
  text: string;
@@ -874,18 +467,12 @@ export interface ResolvePersonalAgentInteractionRequest extends ListPersonalAgen
874
467
  optionId?: string;
875
468
  response?: string | Record<string, unknown>;
876
469
  }
877
- export interface AgentEventSubscriptionRequest {
878
- profileKey: string;
879
- sessionId: string;
880
- isMain: boolean;
881
- objectKey: string;
882
- }
883
470
  export interface ProjectEventSubscriptionRequest {
884
471
  projectId: string;
885
472
  sessionId: string;
886
473
  objectKey: string;
887
474
  }
888
- export type CloudAssistantEventSubscriptionRequest = AgentEventSubscriptionRequest | ProjectEventSubscriptionRequest;
475
+ export type CloudAssistantEventSubscriptionRequest = ProjectEventSubscriptionRequest;
889
476
  export interface CloudChatStreamEvent {
890
477
  subscriptionId: string;
891
478
  objectKey: string;
@@ -900,37 +487,6 @@ export interface CloudAssistantApi {
900
487
  enterpriseProjects: {
901
488
  search: (request: EnterpriseProjectSearchRequest) => Promise<EnterpriseProjectCapabilityPage>;
902
489
  };
903
- hub: {
904
- list: () => Promise<AssistantHubList>;
905
- };
906
- agents: {
907
- list: () => Promise<PersonalAgentList>;
908
- listProfessionCategories: () => Promise<ProfessionCategory[]>;
909
- searchProfessions: (query?: ProfessionSearchQuery) => Promise<ProfessionSearchResult>;
910
- createCloud: (request: CreateCloudAgentRequest) => Promise<PersonalAgentProfile>;
911
- createPairing: (request: CreateLocalAgentPairingRequest) => Promise<LocalAgentPairing>;
912
- getPairing: (pairingId: string) => Promise<LocalAgentPairing>;
913
- cancelPairing: (pairingId: string) => Promise<void>;
914
- get: (profileKey: string) => Promise<PersonalAgentProfile>;
915
- delete: (profileKey: string) => Promise<void>;
916
- markRead: (profileKey: string) => Promise<PersonalAgentProfile>;
917
- update: (request: UpdatePersonalAgentRequest) => Promise<PersonalAgentProfile>;
918
- listSkills: (profileKey: string) => Promise<PersonalAgentSkill[]>;
919
- listAvailableSkills: (query?: AvailablePersonalSkillQuery) => Promise<AvailablePersonalSkill[]>;
920
- listAvailableSkillCategories: () => Promise<AvailablePersonalSkillCategory[]>;
921
- addSkill: (profileKey: string, request: AddPersonalAgentSkillRequest) => Promise<PersonalAgentSkill>;
922
- setSkillEnabled: (profileKey: string, bindingId: string, enabled: boolean) => Promise<PersonalAgentSkill>;
923
- deleteSkill: (profileKey: string, bindingId: string) => Promise<void>;
924
- listPlugins: (profileKey: string) => Promise<PersonalAgentPluginConfig>;
925
- addPlugin: (profileKey: string, plugin: PersonalAgentPlugin) => Promise<PersonalAgentPluginConfig>;
926
- setPluginEnabled: (profileKey: string, pluginId: string, enabled: boolean) => Promise<PersonalAgentPluginConfig>;
927
- deletePlugin: (profileKey: string, pluginId: string) => Promise<PersonalAgentPluginConfig>;
928
- listMessageChannels: (profileKey: string) => Promise<PersonalAgentMessageChannel[]>;
929
- createWeixinMessageChannel: (profileKey: string) => Promise<PersonalAgentMessageChannel>;
930
- updateMessageChannel: (profileKey: string, accountId: string, enabled: boolean, revision: number) => Promise<PersonalAgentMessageChannel>;
931
- startMessageChannelAuthorization: (profileKey: string, accountId: string) => Promise<PersonalAgentChannelAuthorization>;
932
- refreshMessageChannelAuthorization: (profileKey: string, accountId: string, sessionId: string) => Promise<PersonalAgentChannelAuthorization>;
933
- };
934
490
  projects: {
935
491
  list: () => Promise<CollaborationProjectList>;
936
492
  get: (projectId: string) => Promise<CollaborationProject>;
@@ -938,27 +494,11 @@ export interface CloudAssistantApi {
938
494
  update: (request: UpdateCollaborationProjectRequest) => Promise<CollaborationProject>;
939
495
  delete: (projectId: string) => Promise<void>;
940
496
  listMembers: (projectId: string) => Promise<CollaborationMember[]>;
941
- listAgents: (projectId: string) => Promise<CollaborationAgent[]>;
942
- listAgentSkills: (projectId: string) => Promise<CollaborationAgentSkill[]>;
943
497
  updatePin: (request: UpdateProjectPinRequest) => Promise<CollaborationMember>;
944
- updateAgent: (request: UpdateCollaborationAgentRequest) => Promise<CollaborationAgent>;
945
- addAgent: (request: AddCollaborationAgentRequest) => Promise<CollaborationAgent>;
946
- removeAgent: (request: RemoveCollaborationAgentRequest) => Promise<void>;
947
498
  listMessages: (query: ProjectMessageQuery) => Promise<CollaborationMessageList>;
948
499
  sendMessage: (request: ProjectSendMessageRequest) => Promise<CollaborationMessage>;
949
- listTurns: (query: ProjectMessageQuery) => Promise<CollaborationTurnList>;
950
- cancelTurn: (request: ProjectCancelTurnRequest) => Promise<void>;
951
- };
952
- chat: {
953
- listSessions: (profileKey: string) => Promise<CloudChatSession[]>;
954
- getHistory: (request: AgentHistoryRequest) => Promise<CloudChatHistoryPage>;
955
- send: (request: AgentSendMessageRequest) => Promise<AgentSendMessageResult>;
956
- cancel: (request: AgentCancelRequest) => Promise<void>;
957
- listInteractions: (request: ListPersonalAgentInteractionsRequest) => Promise<PersonalAgentInteraction[]>;
958
- resolveInteraction: (request: ResolvePersonalAgentInteractionRequest) => Promise<void>;
959
500
  };
960
501
  files: {
961
- listAgent: (profileKey: string, query?: CloudFileListQuery) => Promise<CloudFileList>;
962
502
  listProject: (projectId: string, query?: CloudFileListQuery) => Promise<CloudFileList>;
963
503
  readContent: (target: CloudFileTarget) => Promise<CloudFileContent>;
964
504
  readBinary: (source: CloudFileDataSource) => Promise<ArrayBuffer>;
@@ -970,45 +510,17 @@ export interface CloudAssistantApi {
970
510
  directory: boolean;
971
511
  }) => Promise<void>;
972
512
  save: (request: SaveCloudFileRequest) => Promise<void>;
973
- uploadAgentAttachment: (request: UploadAgentAttachmentRequest) => Promise<CloudUploadedAttachment>;
974
513
  uploadProjectAttachment: (request: UploadProjectAttachmentRequest) => Promise<CloudUploadedAttachment>;
975
514
  download: (request: DownloadCloudFileRequest) => Promise<{
976
515
  canceled: boolean;
977
516
  path?: string;
978
517
  }>;
979
518
  };
980
- collections: {
981
- list: () => Promise<CloudCollectionList>;
982
- createFile: (request: CreateCloudFileCollectionRequest) => Promise<CloudCollectionItem>;
983
- };
984
519
  models: {
985
520
  listText: () => Promise<AvailableChatModel[]>;
986
521
  listLocalAgentText: () => Promise<AvailableChatModel[]>;
987
522
  };
988
- schedules: {
989
- list: (query: ScheduleListQuery) => Promise<{
990
- items: WorkbenchSchedule[];
991
- total: number;
992
- }>;
993
- get: (scheduleId: string, profileKey: string) => Promise<WorkbenchSchedule>;
994
- create: (request: SaveScheduleRequest) => Promise<WorkbenchSchedule>;
995
- update: (request: SaveScheduleRequest & {
996
- scheduleId: string;
997
- }) => Promise<WorkbenchSchedule>;
998
- delete: (scheduleId: string, profileKey: string) => Promise<void>;
999
- listRuns: (scheduleId: string, profileKey: string) => Promise<WorkbenchScheduleRun[]>;
1000
- listRunsByWindow: (query: ScheduleRunQuery) => Promise<WorkbenchScheduleRun[]>;
1001
- };
1002
- historySearch: {
1003
- search: (request: HistorySearchRequest) => Promise<{
1004
- items: HistorySearchItem[];
1005
- total: number;
1006
- }>;
1007
- around: (request: HistoryAroundRequest) => Promise<{
1008
- messages: CloudChatMessage[];
1009
- anchorMessageId: string;
1010
- }>;
1011
- };
523
+ schedules: AccountSchedulesApi;
1012
524
  chatShares: {
1013
525
  create: (request: CreateChatShareRequest) => Promise<ChatShare>;
1014
526
  };
@@ -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
+ }