@ycodium-ai/plugin-api 0.2.3018 → 0.2.3024
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 +18 -4
- package/dist/dataPorts.gen.d.ts +336 -211
- package/dist/dataPorts.gen.d.ts.map +1 -1
- package/dist/dataPorts.gen.js +2 -0
- package/dist/dataPorts.gen.js.map +1 -1
- package/dist/index.d.ts +15 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/pluginContextThreads.d.ts +0 -31
- package/dist/pluginContextThreads.d.ts.map +1 -1
- package/dist/threads.d.ts +27 -0
- package/dist/threads.d.ts.map +1 -0
- package/dist/threads.js +34 -0
- package/dist/threads.js.map +1 -0
- package/package.json +1 -1
package/dist/dataPorts.gen.d.ts
CHANGED
|
@@ -7,6 +7,18 @@ type Objects_2 = {
|
|
|
7
7
|
readonly "value": string | boolean;
|
|
8
8
|
};
|
|
9
9
|
type Objects_3 = {
|
|
10
|
+
readonly "projectId": string;
|
|
11
|
+
readonly "repository": string;
|
|
12
|
+
readonly "number": number;
|
|
13
|
+
readonly "url": string;
|
|
14
|
+
};
|
|
15
|
+
type Objects_4 = {
|
|
16
|
+
readonly "parentThreadId": string;
|
|
17
|
+
readonly "delegationDepth": number;
|
|
18
|
+
readonly "requestedBy": "agent" | "continuation";
|
|
19
|
+
readonly "notificationPolicy"?: "wake" | "activity-only" | undefined;
|
|
20
|
+
};
|
|
21
|
+
type Objects_5 = {
|
|
10
22
|
readonly "userId": string;
|
|
11
23
|
readonly "displayName": string;
|
|
12
24
|
};
|
|
@@ -14,19 +26,66 @@ type Arrays_2 = ReadonlyArray<{
|
|
|
14
26
|
readonly "id": string;
|
|
15
27
|
readonly "value": string | boolean;
|
|
16
28
|
}>;
|
|
17
|
-
type
|
|
29
|
+
type Objects_8 = {
|
|
18
30
|
readonly "runtime": number;
|
|
19
31
|
readonly "source": number;
|
|
20
32
|
readonly "profile": number;
|
|
21
33
|
readonly "endpoint"?: number;
|
|
22
34
|
};
|
|
23
|
-
type
|
|
35
|
+
type Objects_9 = {
|
|
36
|
+
readonly "requestId": string;
|
|
37
|
+
readonly "startedAt": string;
|
|
38
|
+
};
|
|
39
|
+
type Objects_10 = {
|
|
40
|
+
readonly "source": "manual" | "generated";
|
|
41
|
+
readonly "version": string;
|
|
42
|
+
readonly "needsRefinement": boolean;
|
|
43
|
+
};
|
|
44
|
+
type Objects_12 = {
|
|
24
45
|
readonly "_tag": "agent-artifact";
|
|
25
46
|
readonly "sourcePath": string;
|
|
26
47
|
readonly "linkBase"?: string | undefined;
|
|
27
48
|
readonly "toolCallId"?: string | undefined;
|
|
28
49
|
};
|
|
29
|
-
type
|
|
50
|
+
type Union_3 = {
|
|
51
|
+
readonly "kind": "native-session";
|
|
52
|
+
readonly "provider": "claude" | "codex";
|
|
53
|
+
readonly "sessionId": string;
|
|
54
|
+
readonly "messageId": string;
|
|
55
|
+
readonly "turnId"?: string | undefined;
|
|
56
|
+
readonly "order": number;
|
|
57
|
+
} | undefined;
|
|
58
|
+
type Objects_13 = {
|
|
59
|
+
readonly "threadId": string;
|
|
60
|
+
readonly "status": "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error";
|
|
61
|
+
readonly "providerName": string | null;
|
|
62
|
+
readonly "providerInstanceId"?: string | undefined;
|
|
63
|
+
readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access";
|
|
64
|
+
readonly "nativeModeId"?: string | undefined;
|
|
65
|
+
readonly "activeTurnId": string | null;
|
|
66
|
+
readonly "lastError": string | null;
|
|
67
|
+
readonly "retry"?: {
|
|
68
|
+
readonly "source"?: "provider" | undefined;
|
|
69
|
+
readonly "attempt": number;
|
|
70
|
+
readonly "maxAttempts": number;
|
|
71
|
+
readonly "retryDelayMs": number;
|
|
72
|
+
readonly "httpStatus"?: number | undefined;
|
|
73
|
+
} | {
|
|
74
|
+
readonly "source": "http-observer";
|
|
75
|
+
readonly "consecutiveFailures": number;
|
|
76
|
+
readonly "failureKind": "http" | "transport";
|
|
77
|
+
readonly "httpStatus"?: number | undefined;
|
|
78
|
+
} | null | undefined;
|
|
79
|
+
readonly "endReason"?: "server-restart" | undefined;
|
|
80
|
+
readonly "updatedAt": string;
|
|
81
|
+
};
|
|
82
|
+
type Objects_14 = {
|
|
83
|
+
readonly "offset": number;
|
|
84
|
+
readonly "returned": number;
|
|
85
|
+
readonly "total": number;
|
|
86
|
+
readonly "nextOffset": number | null;
|
|
87
|
+
};
|
|
88
|
+
type Union_4 = {
|
|
30
89
|
readonly "kind": "thread";
|
|
31
90
|
readonly "environmentId"?: string | undefined;
|
|
32
91
|
readonly "threadId": string;
|
|
@@ -39,7 +98,7 @@ type Union_1 = {
|
|
|
39
98
|
readonly "environmentId": string;
|
|
40
99
|
readonly "displayName": string;
|
|
41
100
|
};
|
|
42
|
-
type
|
|
101
|
+
type Objects_16 = {
|
|
43
102
|
readonly "persisted": string;
|
|
44
103
|
readonly "handedOff": {
|
|
45
104
|
readonly "certainty": "not-dispatched" | "confirmed" | "unknown";
|
|
@@ -54,90 +113,85 @@ type Objects_9 = {
|
|
|
54
113
|
readonly "at": string;
|
|
55
114
|
} | null;
|
|
56
115
|
};
|
|
57
|
-
type
|
|
58
|
-
readonly "offset": number;
|
|
59
|
-
readonly "returned": number;
|
|
60
|
-
readonly "total": number;
|
|
61
|
-
readonly "nextOffset": number | null;
|
|
62
|
-
};
|
|
63
|
-
type Union_5 = {
|
|
116
|
+
type Union_8 = {
|
|
64
117
|
readonly "kind": "account";
|
|
65
118
|
readonly "userId": string;
|
|
66
119
|
} | {
|
|
67
120
|
readonly "kind": "local-owner";
|
|
68
121
|
readonly "environmentId": string;
|
|
69
122
|
};
|
|
70
|
-
type
|
|
123
|
+
type Union_9 = {
|
|
71
124
|
readonly "kind": "account";
|
|
72
125
|
readonly "userId": string;
|
|
73
126
|
} | {
|
|
74
127
|
readonly "kind": "local-owner";
|
|
75
128
|
readonly "environmentId": string;
|
|
76
129
|
};
|
|
77
|
-
type
|
|
130
|
+
type Objects_18 = {
|
|
78
131
|
readonly "projectId": string;
|
|
79
132
|
readonly "requestId"?: string;
|
|
80
133
|
readonly "recordId": string;
|
|
81
134
|
};
|
|
82
|
-
type
|
|
135
|
+
type Objects_20 = {
|
|
83
136
|
readonly "kind": "agent";
|
|
84
137
|
readonly "threadId": string;
|
|
85
138
|
};
|
|
86
139
|
type Arrays_3 = ReadonlyArray<string>;
|
|
87
|
-
type
|
|
140
|
+
type Objects_22 = {
|
|
88
141
|
readonly "experienceId": string;
|
|
89
142
|
readonly "revision": number;
|
|
90
143
|
};
|
|
91
|
-
type
|
|
144
|
+
type Objects_23 = {
|
|
92
145
|
readonly "projectId": string;
|
|
93
146
|
readonly "requestId"?: string;
|
|
94
147
|
readonly "experienceId": string;
|
|
95
148
|
};
|
|
96
|
-
type
|
|
149
|
+
type Objects_24 = {
|
|
97
150
|
readonly "sequence": number;
|
|
98
151
|
readonly "result": {
|
|
99
152
|
readonly "experienceId": string;
|
|
100
153
|
readonly "status": "active" | "forgotten";
|
|
101
154
|
};
|
|
102
155
|
};
|
|
103
|
-
type
|
|
156
|
+
type Objects_25 = {
|
|
104
157
|
readonly "stateId": string;
|
|
105
158
|
readonly "group": "backlog" | "unstarted" | "started" | "completed" | "cancelled";
|
|
106
159
|
readonly "name": string;
|
|
107
160
|
};
|
|
108
161
|
type Arrays_5 = ReadonlyArray<string>;
|
|
109
162
|
type Arrays_6 = ReadonlyArray<string>;
|
|
110
|
-
type
|
|
163
|
+
type Objects_26 = {
|
|
111
164
|
readonly "total": number;
|
|
112
165
|
readonly "completed": number;
|
|
113
166
|
readonly "cancelled": number;
|
|
114
167
|
};
|
|
115
|
-
type
|
|
168
|
+
type Objects_28 = {
|
|
116
169
|
readonly "stateId": string;
|
|
117
170
|
readonly "group": "backlog" | "unstarted" | "started" | "completed" | "cancelled";
|
|
118
171
|
};
|
|
119
|
-
type
|
|
172
|
+
type Objects_29 = {
|
|
120
173
|
readonly "projectId": string;
|
|
121
174
|
readonly "requestId"?: string;
|
|
122
175
|
readonly "workItemId": string;
|
|
123
176
|
readonly "type": "blocked_by" | "relates_to" | "duplicate" | "start_before" | "finish_before" | "implemented_by" | "blocking" | "start_after" | "finish_after" | "implements";
|
|
124
177
|
readonly "relatedWorkItemId": string;
|
|
125
178
|
};
|
|
126
|
-
type
|
|
179
|
+
type Objects_30 = {
|
|
127
180
|
readonly "workItemId": string;
|
|
128
181
|
readonly "type": "blocked_by" | "relates_to" | "duplicate" | "start_before" | "finish_before" | "implemented_by" | "blocking" | "start_after" | "finish_after" | "implements";
|
|
129
182
|
readonly "relatedWorkItemId": string;
|
|
130
183
|
};
|
|
131
184
|
type Arrays_ = ReadonlyArray<Objects_2>;
|
|
132
185
|
type Arrays_1 = ReadonlyArray<Objects_2>;
|
|
133
|
-
type
|
|
186
|
+
type Union_1 = Objects_5 | null | undefined;
|
|
187
|
+
type Objects_7 = {
|
|
134
188
|
readonly "environmentId": string;
|
|
135
189
|
readonly "runtimeId": string;
|
|
136
190
|
readonly "sourceId": string;
|
|
137
191
|
readonly "profileId": string;
|
|
138
192
|
readonly "endpointId"?: string;
|
|
139
193
|
readonly "optionOverrides": Arrays_2;
|
|
140
|
-
readonly "expectedRevisions":
|
|
194
|
+
readonly "expectedRevisions": Objects_8;
|
|
141
195
|
};
|
|
142
196
|
type Union_ = {
|
|
143
197
|
readonly "type": "image";
|
|
@@ -163,11 +217,11 @@ type Union_ = {
|
|
|
163
217
|
readonly "height": number;
|
|
164
218
|
};
|
|
165
219
|
readonly "truncated": boolean;
|
|
166
|
-
readonly "root":
|
|
220
|
+
readonly "root": Objects_11;
|
|
167
221
|
} | undefined;
|
|
168
222
|
readonly "appIdentifier"?: string | undefined;
|
|
169
223
|
readonly "appIconDataUrl"?: string | undefined;
|
|
170
|
-
} |
|
|
224
|
+
} | Objects_12 | undefined;
|
|
171
225
|
} | {
|
|
172
226
|
readonly "type": "file";
|
|
173
227
|
readonly "id": string;
|
|
@@ -176,50 +230,71 @@ type Union_ = {
|
|
|
176
230
|
readonly "sizeBytes": number;
|
|
177
231
|
readonly "source"?: {
|
|
178
232
|
readonly "_tag": "pasted-text";
|
|
179
|
-
} |
|
|
233
|
+
} | Objects_12 | {
|
|
180
234
|
readonly "_tag": "thread-reference";
|
|
181
235
|
readonly "environmentId": string;
|
|
182
236
|
readonly "threadId": string;
|
|
183
237
|
} | undefined;
|
|
184
238
|
};
|
|
185
|
-
type
|
|
186
|
-
type
|
|
239
|
+
type Union_5 = Union_4 | null;
|
|
240
|
+
type Union_7 = {
|
|
187
241
|
readonly "claimId": string;
|
|
188
|
-
readonly "claimedBy":
|
|
242
|
+
readonly "claimedBy": Union_4;
|
|
189
243
|
readonly "turnId"?: string | undefined;
|
|
190
244
|
readonly "at": string;
|
|
191
245
|
} | null;
|
|
192
|
-
type
|
|
246
|
+
type Union_11 = {
|
|
193
247
|
readonly "kind": "human";
|
|
194
|
-
readonly "principal":
|
|
248
|
+
readonly "principal": Union_8;
|
|
195
249
|
} | {
|
|
196
250
|
readonly "kind": "agent";
|
|
197
251
|
readonly "threadId": string;
|
|
198
252
|
};
|
|
199
|
-
type
|
|
253
|
+
type Objects_19 = {
|
|
200
254
|
readonly "kind": "human";
|
|
201
|
-
readonly "principal":
|
|
255
|
+
readonly "principal": Union_9;
|
|
202
256
|
};
|
|
203
257
|
type Objects_1 = {
|
|
204
258
|
readonly "instanceId": string;
|
|
205
259
|
readonly "model": string;
|
|
206
260
|
readonly "options"?: Arrays_ | Arrays_1;
|
|
207
261
|
};
|
|
208
|
-
type
|
|
209
|
-
type
|
|
262
|
+
type Union_6 = ReadonlyArray<Union_> | undefined;
|
|
263
|
+
type Union_10 = Objects_19 | {
|
|
210
264
|
readonly "kind": "local-cli";
|
|
211
265
|
readonly "environmentId": string;
|
|
212
266
|
} | {
|
|
213
267
|
readonly "kind": "seat";
|
|
214
268
|
readonly "seatId": string;
|
|
215
|
-
} |
|
|
269
|
+
} | Objects_20 | {
|
|
216
270
|
readonly "kind": "plugin";
|
|
217
271
|
readonly "pluginId": string;
|
|
218
272
|
} | {
|
|
219
273
|
readonly "kind": "system";
|
|
220
274
|
};
|
|
221
|
-
type
|
|
222
|
-
type
|
|
275
|
+
type Union_12 = Objects_19 | Objects_20;
|
|
276
|
+
type Objects_6 = {
|
|
277
|
+
readonly "turnId": string;
|
|
278
|
+
readonly "state": "running" | "interrupted" | "completed" | "error";
|
|
279
|
+
readonly "requestedAt": string;
|
|
280
|
+
readonly "startedAt": string | null;
|
|
281
|
+
readonly "completedAt": string | null;
|
|
282
|
+
readonly "assistantMessageId": string | null;
|
|
283
|
+
readonly "userMessageId"?: string | undefined;
|
|
284
|
+
readonly "modelSelection"?: Objects_1 | undefined;
|
|
285
|
+
readonly "sourceProposedPlan"?: {
|
|
286
|
+
readonly "threadId": string;
|
|
287
|
+
readonly "planId": string;
|
|
288
|
+
} | undefined;
|
|
289
|
+
readonly "waitSpans"?: ReadonlyArray<{
|
|
290
|
+
readonly "kind": "approval" | "userInput";
|
|
291
|
+
readonly "requestId": string;
|
|
292
|
+
readonly "startedAt": string;
|
|
293
|
+
readonly "completedAt": string | null;
|
|
294
|
+
}> | undefined;
|
|
295
|
+
};
|
|
296
|
+
type Union_2 = Objects_1 | undefined;
|
|
297
|
+
type Objects_15 = {
|
|
223
298
|
readonly "id": string;
|
|
224
299
|
readonly "title": string;
|
|
225
300
|
readonly "workspaceRoot": string;
|
|
@@ -279,56 +354,56 @@ type Objects_8 = {
|
|
|
279
354
|
readonly "updatedAt": string;
|
|
280
355
|
readonly "archivedAt"?: string | null | undefined;
|
|
281
356
|
};
|
|
282
|
-
type
|
|
357
|
+
type Objects_17 = {
|
|
283
358
|
readonly "items": ReadonlyArray<{
|
|
284
359
|
readonly "recordId": string;
|
|
285
|
-
readonly "from":
|
|
286
|
-
readonly "to":
|
|
360
|
+
readonly "from": Union_4;
|
|
361
|
+
readonly "to": Union_5;
|
|
287
362
|
readonly "replyTo": string | null;
|
|
288
363
|
readonly "delivery": "quiet" | "wake" | "steer";
|
|
289
364
|
readonly "createdAt": string;
|
|
290
|
-
readonly "stages":
|
|
365
|
+
readonly "stages": Objects_16;
|
|
291
366
|
readonly "idempotencyKey"?: string | undefined;
|
|
292
367
|
readonly "runId"?: string | undefined;
|
|
293
368
|
readonly "toRole"?: string | undefined;
|
|
294
|
-
readonly "attachments"?:
|
|
369
|
+
readonly "attachments"?: Union_6;
|
|
295
370
|
readonly "bodyState": "present" | "withdrawn" | "deleted" | "unavailable";
|
|
296
371
|
readonly "projectId": string | null;
|
|
297
372
|
readonly "sequence": number;
|
|
298
|
-
readonly "claim":
|
|
373
|
+
readonly "claim": Union_7;
|
|
299
374
|
readonly "textPreview": string | null;
|
|
300
375
|
readonly "textTruncated": boolean;
|
|
301
376
|
}>;
|
|
302
377
|
readonly "nextCursor": string | null;
|
|
303
378
|
readonly "snapshotSequence": number;
|
|
304
379
|
};
|
|
305
|
-
type
|
|
380
|
+
type Objects_21 = {
|
|
306
381
|
readonly "experienceId": string;
|
|
307
382
|
readonly "revision": number;
|
|
308
383
|
readonly "baseRevision": number | null;
|
|
309
|
-
readonly "author":
|
|
384
|
+
readonly "author": Union_10;
|
|
310
385
|
readonly "createdAt": string;
|
|
311
386
|
readonly "body": string | null;
|
|
312
387
|
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
313
|
-
readonly "bodyWindow"?:
|
|
388
|
+
readonly "bodyWindow"?: Objects_14;
|
|
314
389
|
};
|
|
315
|
-
type Arrays_4 = ReadonlyArray<
|
|
316
|
-
type
|
|
390
|
+
type Arrays_4 = ReadonlyArray<Union_12>;
|
|
391
|
+
type Objects_27 = {
|
|
317
392
|
readonly "commentId": string;
|
|
318
393
|
readonly "workItemId": string;
|
|
319
394
|
readonly "projectId": string;
|
|
320
395
|
readonly "sequence": number;
|
|
321
396
|
readonly "revision": number;
|
|
322
|
-
readonly "author":
|
|
397
|
+
readonly "author": Union_10;
|
|
323
398
|
readonly "body": string | null;
|
|
324
|
-
readonly "bodyWindow"?:
|
|
399
|
+
readonly "bodyWindow"?: Objects_14;
|
|
325
400
|
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
326
|
-
readonly "mentions": ReadonlyArray<
|
|
401
|
+
readonly "mentions": ReadonlyArray<Union_12>;
|
|
327
402
|
readonly "parentId": string | null;
|
|
328
403
|
readonly "createdAt": string;
|
|
329
404
|
readonly "editedAt": string | null;
|
|
330
405
|
};
|
|
331
|
-
type
|
|
406
|
+
type Objects_11 = {
|
|
332
407
|
readonly "role": string;
|
|
333
408
|
readonly "name"?: string;
|
|
334
409
|
readonly "value"?: string;
|
|
@@ -351,7 +426,7 @@ type Objects_6 = {
|
|
|
351
426
|
readonly "visible"?: boolean | undefined;
|
|
352
427
|
};
|
|
353
428
|
readonly "actions"?: ReadonlyArray<string>;
|
|
354
|
-
readonly "children": ReadonlyArray<
|
|
429
|
+
readonly "children": ReadonlyArray<Objects_11>;
|
|
355
430
|
};
|
|
356
431
|
export type ThreadsListInput = {
|
|
357
432
|
readonly "projectId"?: string;
|
|
@@ -404,41 +479,12 @@ export type ThreadsHistoryOutput = {
|
|
|
404
479
|
readonly "worktreePath": string | null;
|
|
405
480
|
readonly "startFolderId"?: string | null | undefined;
|
|
406
481
|
readonly "folderIds"?: ReadonlyArray<string> | undefined;
|
|
407
|
-
readonly "linkedPullRequest"?:
|
|
408
|
-
|
|
409
|
-
readonly "repository": string;
|
|
410
|
-
readonly "number": number;
|
|
411
|
-
readonly "url": string;
|
|
412
|
-
} | null | undefined;
|
|
413
|
-
readonly "origin"?: {
|
|
414
|
-
readonly "parentThreadId": string;
|
|
415
|
-
readonly "delegationDepth": number;
|
|
416
|
-
readonly "requestedBy": "agent" | "continuation";
|
|
417
|
-
readonly "notificationPolicy"?: "wake" | "activity-only" | undefined;
|
|
418
|
-
} | null | undefined;
|
|
482
|
+
readonly "linkedPullRequest"?: Objects_3 | null | undefined;
|
|
483
|
+
readonly "origin"?: Objects_4 | null | undefined;
|
|
419
484
|
readonly "forkedFrom"?: Objects_ | null | undefined;
|
|
420
485
|
readonly "presetId"?: string | null | undefined;
|
|
421
|
-
readonly "createdBy"?:
|
|
422
|
-
readonly "latestTurn":
|
|
423
|
-
readonly "turnId": string;
|
|
424
|
-
readonly "state": "running" | "interrupted" | "completed" | "error";
|
|
425
|
-
readonly "requestedAt": string;
|
|
426
|
-
readonly "startedAt": string | null;
|
|
427
|
-
readonly "completedAt": string | null;
|
|
428
|
-
readonly "assistantMessageId": string | null;
|
|
429
|
-
readonly "userMessageId"?: string | undefined;
|
|
430
|
-
readonly "modelSelection"?: Objects_1 | undefined;
|
|
431
|
-
readonly "sourceProposedPlan"?: {
|
|
432
|
-
readonly "threadId": string;
|
|
433
|
-
readonly "planId": string;
|
|
434
|
-
} | undefined;
|
|
435
|
-
readonly "waitSpans"?: ReadonlyArray<{
|
|
436
|
-
readonly "kind": "approval" | "userInput";
|
|
437
|
-
readonly "requestId": string;
|
|
438
|
-
readonly "startedAt": string;
|
|
439
|
-
readonly "completedAt": string | null;
|
|
440
|
-
}> | undefined;
|
|
441
|
-
} | null;
|
|
486
|
+
readonly "createdBy"?: Objects_5 | null | undefined;
|
|
487
|
+
readonly "latestTurn": Objects_6 | null;
|
|
442
488
|
readonly "stopRequestedAt"?: string | null;
|
|
443
489
|
readonly "createdAt": string;
|
|
444
490
|
readonly "updatedAt": string;
|
|
@@ -462,7 +508,7 @@ export type ThreadsHistoryOutput = {
|
|
|
462
508
|
};
|
|
463
509
|
readonly "queuedAt": string;
|
|
464
510
|
}> | undefined;
|
|
465
|
-
readonly "executionSelection"?:
|
|
511
|
+
readonly "executionSelection"?: Objects_7 | undefined;
|
|
466
512
|
readonly "turnIntents"?: ReadonlyArray<{
|
|
467
513
|
readonly "intentId": string;
|
|
468
514
|
readonly "threadId": string;
|
|
@@ -483,7 +529,7 @@ export type ThreadsHistoryOutput = {
|
|
|
483
529
|
readonly "profileId": string;
|
|
484
530
|
readonly "endpointId"?: string;
|
|
485
531
|
readonly "optionOverrides": Arrays_2;
|
|
486
|
-
readonly "expectedRevisions":
|
|
532
|
+
readonly "expectedRevisions": Objects_8;
|
|
487
533
|
};
|
|
488
534
|
readonly "legacyModelSelection": {
|
|
489
535
|
readonly "instanceId": string;
|
|
@@ -498,7 +544,7 @@ export type ThreadsHistoryOutput = {
|
|
|
498
544
|
readonly "binding"?: {
|
|
499
545
|
readonly "bindingId": string;
|
|
500
546
|
readonly "generation": number;
|
|
501
|
-
readonly "selection":
|
|
547
|
+
readonly "selection": Objects_7;
|
|
502
548
|
readonly "compatibility": {
|
|
503
549
|
readonly "match": "native" | "via-adapter" | "unsupported" | "unknown";
|
|
504
550
|
readonly "reasonCode": "native-protocol" | "native-source" | "protocol-conversion" | "wrong-environment" | "resource-missing" | "resource-disabled" | "revision-conflict" | "source-mismatch" | "endpoint-mismatch" | "model-mapping-missing" | "driver-missing" | "driver-unknown" | "driver-identity-mismatch" | "external-endpoint-unsupported" | "protocol-unknown" | "protocol-unsupported" | "auth-unsupported" | "source-ownership-mismatch" | "platform-unsupported" | "version-unknown" | "version-unsupported" | "feature-unsupported" | "feature-unknown" | "capability-validation-failed" | "invalid-options" | "endpoint-invalid";
|
|
@@ -593,15 +639,8 @@ export type ThreadsHistoryOutput = {
|
|
|
593
639
|
}> | undefined;
|
|
594
640
|
readonly "turnQueuePaused"?: boolean | undefined;
|
|
595
641
|
readonly "acceptedInteractionRequestIds"?: ReadonlyArray<string> | undefined;
|
|
596
|
-
readonly "titleRegeneration"?:
|
|
597
|
-
|
|
598
|
-
readonly "startedAt": string;
|
|
599
|
-
} | null | undefined;
|
|
600
|
-
readonly "titleState"?: {
|
|
601
|
-
readonly "source": "manual" | "generated";
|
|
602
|
-
readonly "version": string;
|
|
603
|
-
readonly "needsRefinement": boolean;
|
|
604
|
-
} | null | undefined;
|
|
642
|
+
readonly "titleRegeneration"?: Objects_9 | null | undefined;
|
|
643
|
+
readonly "titleState"?: Objects_10 | null | undefined;
|
|
605
644
|
readonly "deletedAt": string | null;
|
|
606
645
|
readonly "messages": ReadonlyArray<{
|
|
607
646
|
readonly "id": string;
|
|
@@ -610,17 +649,10 @@ export type ThreadsHistoryOutput = {
|
|
|
610
649
|
readonly "attachments"?: ReadonlyArray<Union_> | undefined;
|
|
611
650
|
readonly "turnId": string | null;
|
|
612
651
|
readonly "streaming": boolean;
|
|
613
|
-
readonly "author"?:
|
|
652
|
+
readonly "author"?: Union_1;
|
|
614
653
|
readonly "recordId"?: string | undefined;
|
|
615
|
-
readonly "modelSelection"?:
|
|
616
|
-
readonly "source"?:
|
|
617
|
-
readonly "kind": "native-session";
|
|
618
|
-
readonly "provider": "claude" | "codex";
|
|
619
|
-
readonly "sessionId": string;
|
|
620
|
-
readonly "messageId": string;
|
|
621
|
-
readonly "turnId"?: string | undefined;
|
|
622
|
-
readonly "order": number;
|
|
623
|
-
} | undefined;
|
|
654
|
+
readonly "modelSelection"?: Union_2;
|
|
655
|
+
readonly "source"?: Union_3;
|
|
624
656
|
readonly "createdAt": string;
|
|
625
657
|
readonly "updatedAt": string;
|
|
626
658
|
}>;
|
|
@@ -657,30 +689,7 @@ export type ThreadsHistoryOutput = {
|
|
|
657
689
|
readonly "assistantMessageId": string | null;
|
|
658
690
|
readonly "completedAt": string;
|
|
659
691
|
}>;
|
|
660
|
-
readonly "session":
|
|
661
|
-
readonly "threadId": string;
|
|
662
|
-
readonly "status": "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error";
|
|
663
|
-
readonly "providerName": string | null;
|
|
664
|
-
readonly "providerInstanceId"?: string | undefined;
|
|
665
|
-
readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access";
|
|
666
|
-
readonly "nativeModeId"?: string | undefined;
|
|
667
|
-
readonly "activeTurnId": string | null;
|
|
668
|
-
readonly "lastError": string | null;
|
|
669
|
-
readonly "retry"?: {
|
|
670
|
-
readonly "source"?: "provider" | undefined;
|
|
671
|
-
readonly "attempt": number;
|
|
672
|
-
readonly "maxAttempts": number;
|
|
673
|
-
readonly "retryDelayMs": number;
|
|
674
|
-
readonly "httpStatus"?: number | undefined;
|
|
675
|
-
} | {
|
|
676
|
-
readonly "source": "http-observer";
|
|
677
|
-
readonly "consecutiveFailures": number;
|
|
678
|
-
readonly "failureKind": "http" | "transport";
|
|
679
|
-
readonly "httpStatus"?: number | undefined;
|
|
680
|
-
} | null | undefined;
|
|
681
|
-
readonly "endReason"?: "server-restart" | undefined;
|
|
682
|
-
readonly "updatedAt": string;
|
|
683
|
-
} | null;
|
|
692
|
+
readonly "session": Objects_13 | null;
|
|
684
693
|
};
|
|
685
694
|
readonly "page"?: {
|
|
686
695
|
readonly "beforeCursor": string | null;
|
|
@@ -700,15 +709,148 @@ export type ThreadsHistoryOutput = {
|
|
|
700
709
|
readonly "threadSequence"?: number;
|
|
701
710
|
} | undefined;
|
|
702
711
|
};
|
|
712
|
+
export type ThreadsGetInput = {
|
|
713
|
+
readonly "threadId": string;
|
|
714
|
+
};
|
|
715
|
+
export type ThreadsGetOutput = {
|
|
716
|
+
readonly "id": string;
|
|
717
|
+
readonly "projectId": string;
|
|
718
|
+
readonly "title": string;
|
|
719
|
+
readonly "modelSelection": Objects_1;
|
|
720
|
+
readonly "executionSelection"?: Objects_7 | undefined;
|
|
721
|
+
readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access";
|
|
722
|
+
readonly "nativeModeId"?: string | null | undefined;
|
|
723
|
+
readonly "interactionMode": "default" | "plan";
|
|
724
|
+
readonly "branch": string | null;
|
|
725
|
+
readonly "worktreePath": string | null;
|
|
726
|
+
readonly "startFolderId"?: string | null | undefined;
|
|
727
|
+
readonly "folderIds"?: ReadonlyArray<string> | undefined;
|
|
728
|
+
readonly "linkedPullRequest"?: Objects_3 | null | undefined;
|
|
729
|
+
readonly "origin"?: Objects_4 | null | undefined;
|
|
730
|
+
readonly "forkedFrom"?: Objects_ | null | undefined;
|
|
731
|
+
readonly "presetId"?: string | null | undefined;
|
|
732
|
+
readonly "createdBy"?: Objects_5 | null | undefined;
|
|
733
|
+
readonly "latestTurn": Objects_6 | null;
|
|
734
|
+
readonly "stopRequestedAt"?: string | null;
|
|
735
|
+
readonly "createdAt": string;
|
|
736
|
+
readonly "updatedAt": string;
|
|
737
|
+
readonly "archivedAt": string | null;
|
|
738
|
+
readonly "settledOverride": "settled" | "active" | null;
|
|
739
|
+
readonly "settledAt": string | null;
|
|
740
|
+
readonly "unsettledAt"?: string | null | undefined;
|
|
741
|
+
readonly "snoozedUntil"?: string | null | undefined;
|
|
742
|
+
readonly "snoozedAt"?: string | null | undefined;
|
|
743
|
+
readonly "pinnedAt"?: string | null | undefined;
|
|
744
|
+
readonly "pinOrderKey"?: string | null | undefined;
|
|
745
|
+
readonly "sortOrderKey"?: string | null | undefined;
|
|
746
|
+
readonly "titleRegeneration"?: Objects_9 | null | undefined;
|
|
747
|
+
readonly "titleState"?: Objects_10 | null | undefined;
|
|
748
|
+
readonly "session": Objects_13 | null;
|
|
749
|
+
readonly "latestUserMessageAt": string | null;
|
|
750
|
+
readonly "userTurnCount"?: number | undefined;
|
|
751
|
+
readonly "queuedMessageCount"?: number | undefined;
|
|
752
|
+
readonly "preview"?: string | null | undefined;
|
|
753
|
+
readonly "hasPendingApprovals": boolean;
|
|
754
|
+
readonly "hasPendingUserInput": boolean;
|
|
755
|
+
readonly "hasActionableProposedPlan": boolean;
|
|
756
|
+
readonly "status"?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined;
|
|
757
|
+
readonly "backgroundLiveness"?: "working" | "monitoring" | null | undefined;
|
|
758
|
+
readonly "planProgress"?: {
|
|
759
|
+
readonly "step": string;
|
|
760
|
+
readonly "completedSteps": number;
|
|
761
|
+
readonly "totalSteps": number;
|
|
762
|
+
} | null | undefined;
|
|
763
|
+
};
|
|
764
|
+
export type ThreadsMessagesListInput = {
|
|
765
|
+
readonly "threadId": string;
|
|
766
|
+
readonly "messageId"?: string;
|
|
767
|
+
readonly "cursor"?: string | null;
|
|
768
|
+
readonly "limit"?: number;
|
|
769
|
+
readonly "includeTotal"?: boolean;
|
|
770
|
+
readonly "attachmentOffset"?: number;
|
|
771
|
+
readonly "textOffset"?: number;
|
|
772
|
+
readonly "textLimit"?: number;
|
|
773
|
+
};
|
|
774
|
+
export type ThreadsMessagesListOutput = {
|
|
775
|
+
readonly "items": ReadonlyArray<{
|
|
776
|
+
readonly "id": string;
|
|
777
|
+
readonly "role": "user" | "assistant" | "system";
|
|
778
|
+
readonly "text": string;
|
|
779
|
+
readonly "attachments"?: ReadonlyArray<{
|
|
780
|
+
readonly "type": "image";
|
|
781
|
+
readonly "id": string;
|
|
782
|
+
readonly "name": string;
|
|
783
|
+
readonly "mimeType": string;
|
|
784
|
+
readonly "sizeBytes": number;
|
|
785
|
+
} | {
|
|
786
|
+
readonly "type": "file";
|
|
787
|
+
readonly "id": string;
|
|
788
|
+
readonly "name": string;
|
|
789
|
+
readonly "mimeType": string;
|
|
790
|
+
readonly "sizeBytes": number;
|
|
791
|
+
}> | undefined;
|
|
792
|
+
readonly "turnId": string | null;
|
|
793
|
+
readonly "streaming": boolean;
|
|
794
|
+
readonly "author"?: Union_1;
|
|
795
|
+
readonly "recordId"?: string | undefined;
|
|
796
|
+
readonly "modelSelection"?: Union_2;
|
|
797
|
+
readonly "source"?: Union_3;
|
|
798
|
+
readonly "createdAt": string;
|
|
799
|
+
readonly "updatedAt": string;
|
|
800
|
+
readonly "attachmentsTotal"?: number;
|
|
801
|
+
readonly "textWindow"?: Objects_14;
|
|
802
|
+
}>;
|
|
803
|
+
readonly "nextCursor": string | null;
|
|
804
|
+
readonly "snapshotSequence": number;
|
|
805
|
+
readonly "total"?: number;
|
|
806
|
+
};
|
|
807
|
+
export type ThreadsActivitiesListInput = {
|
|
808
|
+
readonly "threadId": string;
|
|
809
|
+
readonly "kinds": ReadonlyArray<string>;
|
|
810
|
+
readonly "inTurn"?: "any" | "none";
|
|
811
|
+
readonly "cursor"?: string | null;
|
|
812
|
+
readonly "limit"?: number;
|
|
813
|
+
readonly "maxPayloadBytes"?: number;
|
|
814
|
+
readonly "maxPageBytes"?: number;
|
|
815
|
+
};
|
|
816
|
+
export type ThreadsActivitiesListOutput = {
|
|
817
|
+
readonly "items": ReadonlyArray<{
|
|
818
|
+
readonly "id": string;
|
|
819
|
+
readonly "tone": "info" | "tool" | "approval" | "error";
|
|
820
|
+
readonly "kind": string;
|
|
821
|
+
readonly "summary": string;
|
|
822
|
+
readonly "turnId": string | null;
|
|
823
|
+
readonly "sequence"?: number | undefined;
|
|
824
|
+
readonly "createdAt": string;
|
|
825
|
+
readonly "payload": unknown;
|
|
826
|
+
readonly "payloadOmitted"?: undefined;
|
|
827
|
+
readonly "toolCallId"?: undefined;
|
|
828
|
+
} | {
|
|
829
|
+
readonly "id": string;
|
|
830
|
+
readonly "tone": "info" | "tool" | "approval" | "error";
|
|
831
|
+
readonly "kind": string;
|
|
832
|
+
readonly "summary": string;
|
|
833
|
+
readonly "turnId": string | null;
|
|
834
|
+
readonly "sequence"?: number | undefined;
|
|
835
|
+
readonly "createdAt": string;
|
|
836
|
+
readonly "payload"?: undefined;
|
|
837
|
+
readonly "payloadOmitted": {
|
|
838
|
+
readonly "bytes": number;
|
|
839
|
+
};
|
|
840
|
+
readonly "toolCallId"?: string;
|
|
841
|
+
}>;
|
|
842
|
+
readonly "nextCursor": string | null;
|
|
843
|
+
readonly "snapshotSequence": number;
|
|
844
|
+
};
|
|
703
845
|
export type ProjectsListInput = {
|
|
704
846
|
readonly "archived"?: "exclude" | "include" | "only";
|
|
705
847
|
readonly "repositoryIdentity"?: "resolve" | "skip";
|
|
706
848
|
};
|
|
707
|
-
export type ProjectsListOutput = ReadonlyArray<
|
|
849
|
+
export type ProjectsListOutput = ReadonlyArray<Objects_15>;
|
|
708
850
|
export type ProjectsGetInput = {
|
|
709
851
|
readonly "projectId": string;
|
|
710
852
|
};
|
|
711
|
-
export type ProjectsGetOutput =
|
|
853
|
+
export type ProjectsGetOutput = Objects_15;
|
|
712
854
|
export type CommunicationRecordsGetInput = {
|
|
713
855
|
readonly "recordIds": ReadonlyArray<string>;
|
|
714
856
|
readonly "textOffset"?: number;
|
|
@@ -716,22 +858,22 @@ export type CommunicationRecordsGetInput = {
|
|
|
716
858
|
};
|
|
717
859
|
export type CommunicationRecordsGetOutput = ReadonlyArray<{
|
|
718
860
|
readonly "recordId": string;
|
|
719
|
-
readonly "from":
|
|
720
|
-
readonly "to":
|
|
861
|
+
readonly "from": Union_4;
|
|
862
|
+
readonly "to": Union_5;
|
|
721
863
|
readonly "replyTo": string | null;
|
|
722
864
|
readonly "text": string | null;
|
|
723
865
|
readonly "delivery": "quiet" | "wake" | "steer";
|
|
724
866
|
readonly "createdAt": string;
|
|
725
|
-
readonly "stages":
|
|
867
|
+
readonly "stages": Objects_16;
|
|
726
868
|
readonly "idempotencyKey"?: string | undefined;
|
|
727
869
|
readonly "runId"?: string | undefined;
|
|
728
870
|
readonly "toRole"?: string | undefined;
|
|
729
|
-
readonly "attachments"?:
|
|
871
|
+
readonly "attachments"?: Union_6;
|
|
730
872
|
readonly "bodyState": "present" | "withdrawn" | "deleted" | "unavailable";
|
|
731
873
|
readonly "projectId": string | null;
|
|
732
874
|
readonly "sequence": number;
|
|
733
|
-
readonly "claim":
|
|
734
|
-
readonly "textWindow"?:
|
|
875
|
+
readonly "claim": Union_7;
|
|
876
|
+
readonly "textWindow"?: Objects_14;
|
|
735
877
|
}>;
|
|
736
878
|
export type CommunicationRecordsListInput = {
|
|
737
879
|
readonly "projectId": string;
|
|
@@ -752,16 +894,16 @@ export type CommunicationRecordsListInput = {
|
|
|
752
894
|
readonly "until"?: string | null;
|
|
753
895
|
readonly "cursor"?: string | null;
|
|
754
896
|
readonly "limit"?: number;
|
|
755
|
-
readonly "person":
|
|
897
|
+
readonly "person": Union_8;
|
|
756
898
|
};
|
|
757
|
-
export type CommunicationRecordsListOutput =
|
|
899
|
+
export type CommunicationRecordsListOutput = Objects_17;
|
|
758
900
|
export type CommunicationInboxListInput = {
|
|
759
901
|
readonly "projectId": string;
|
|
760
902
|
readonly "pendingOnly"?: boolean;
|
|
761
903
|
readonly "cursor"?: string | null;
|
|
762
904
|
readonly "limit"?: number;
|
|
763
905
|
};
|
|
764
|
-
export type CommunicationInboxListOutput =
|
|
906
|
+
export type CommunicationInboxListOutput = Objects_17;
|
|
765
907
|
export type CommunicationPeopleListInput = {
|
|
766
908
|
readonly "projectId": string;
|
|
767
909
|
readonly "cursor"?: string | null;
|
|
@@ -769,7 +911,7 @@ export type CommunicationPeopleListInput = {
|
|
|
769
911
|
};
|
|
770
912
|
export type CommunicationPeopleListOutput = {
|
|
771
913
|
readonly "items": ReadonlyArray<{
|
|
772
|
-
readonly "person":
|
|
914
|
+
readonly "person": Union_9;
|
|
773
915
|
readonly "displayName": string;
|
|
774
916
|
}>;
|
|
775
917
|
readonly "nextCursor": string | null;
|
|
@@ -781,7 +923,7 @@ export type CommunicationRecordsSendInput = {
|
|
|
781
923
|
readonly "to": {
|
|
782
924
|
readonly "threadId": string;
|
|
783
925
|
} | {
|
|
784
|
-
readonly "person":
|
|
926
|
+
readonly "person": Union_8;
|
|
785
927
|
};
|
|
786
928
|
readonly "text": string;
|
|
787
929
|
readonly "replyTo"?: string;
|
|
@@ -799,45 +941,20 @@ export type CommunicationRecordsSendOutput = {
|
|
|
799
941
|
}>;
|
|
800
942
|
};
|
|
801
943
|
};
|
|
802
|
-
export type CommunicationRecordsWithdrawInput =
|
|
944
|
+
export type CommunicationRecordsWithdrawInput = Objects_18;
|
|
803
945
|
export type CommunicationRecordsWithdrawOutput = {
|
|
804
946
|
readonly "sequence": number;
|
|
805
947
|
readonly "result": {
|
|
806
948
|
readonly "recordId": string;
|
|
807
949
|
};
|
|
808
950
|
};
|
|
809
|
-
export type CommunicationRecordsDeleteInput =
|
|
951
|
+
export type CommunicationRecordsDeleteInput = Objects_18;
|
|
810
952
|
export type CommunicationRecordsDeleteOutput = {
|
|
811
953
|
readonly "sequence": number;
|
|
812
954
|
readonly "result": {
|
|
813
955
|
readonly "recordId": string;
|
|
814
956
|
};
|
|
815
957
|
};
|
|
816
|
-
export type CommunicationInboxReadInput = {
|
|
817
|
-
readonly "projectId": string;
|
|
818
|
-
readonly "requestId"?: string;
|
|
819
|
-
readonly "limit"?: number;
|
|
820
|
-
};
|
|
821
|
-
export type CommunicationInboxReadOutput = {
|
|
822
|
-
readonly "sequence": number;
|
|
823
|
-
readonly "result": {
|
|
824
|
-
readonly "claimId": string | null;
|
|
825
|
-
readonly "records": ReadonlyArray<{
|
|
826
|
-
readonly "recordId": string;
|
|
827
|
-
readonly "from": Union_1;
|
|
828
|
-
readonly "to": Union_1 | null;
|
|
829
|
-
readonly "replyTo": string | null;
|
|
830
|
-
readonly "createdAt": string;
|
|
831
|
-
readonly "sequence": number;
|
|
832
|
-
readonly "text": string;
|
|
833
|
-
readonly "textWindow"?: Objects_10;
|
|
834
|
-
} | {
|
|
835
|
-
readonly "recordId": string;
|
|
836
|
-
readonly "gone": "withdrawn" | "deleted";
|
|
837
|
-
}>;
|
|
838
|
-
readonly "hasMore": boolean;
|
|
839
|
-
};
|
|
840
|
-
};
|
|
841
958
|
export type ApprovalsPendingListInput = {
|
|
842
959
|
readonly "threadId": string;
|
|
843
960
|
};
|
|
@@ -864,7 +981,7 @@ export type MemoryExperiencesListOutput = {
|
|
|
864
981
|
readonly "items": ReadonlyArray<{
|
|
865
982
|
readonly "experienceId": string;
|
|
866
983
|
readonly "status": "active" | "forgotten" | "erased";
|
|
867
|
-
readonly "author":
|
|
984
|
+
readonly "author": Union_10;
|
|
868
985
|
readonly "sourceThreadId": string | null;
|
|
869
986
|
readonly "sourceTurnId": string | null;
|
|
870
987
|
readonly "currentRevision": number;
|
|
@@ -885,7 +1002,7 @@ export type MemoryExperiencesGetInput = {
|
|
|
885
1002
|
export type MemoryExperiencesGetOutput = {
|
|
886
1003
|
readonly "experienceId": string;
|
|
887
1004
|
readonly "status": "active" | "forgotten" | "erased";
|
|
888
|
-
readonly "author":
|
|
1005
|
+
readonly "author": Union_10;
|
|
889
1006
|
readonly "sourceThreadId": string | null;
|
|
890
1007
|
readonly "sourceTurnId": string | null;
|
|
891
1008
|
readonly "currentRevision": number;
|
|
@@ -894,11 +1011,11 @@ export type MemoryExperiencesGetOutput = {
|
|
|
894
1011
|
readonly "supersedes": Arrays_3;
|
|
895
1012
|
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
896
1013
|
readonly "body": string | null;
|
|
897
|
-
readonly "bodyWindow"?:
|
|
1014
|
+
readonly "bodyWindow"?: Objects_14;
|
|
898
1015
|
readonly "forgottenAt": string | null;
|
|
899
|
-
readonly "forgottenBy":
|
|
1016
|
+
readonly "forgottenBy": Union_10 | null;
|
|
900
1017
|
readonly "erasedAt": string | null;
|
|
901
|
-
readonly "erasedBy":
|
|
1018
|
+
readonly "erasedBy": Union_10 | null;
|
|
902
1019
|
};
|
|
903
1020
|
export type MemoryExperiencesHistoryInput = {
|
|
904
1021
|
readonly "projectId": string;
|
|
@@ -909,7 +1026,7 @@ export type MemoryExperiencesHistoryInput = {
|
|
|
909
1026
|
readonly "textLimit"?: number;
|
|
910
1027
|
};
|
|
911
1028
|
export type MemoryExperiencesHistoryOutput = {
|
|
912
|
-
readonly "items": ReadonlyArray<
|
|
1029
|
+
readonly "items": ReadonlyArray<Objects_21>;
|
|
913
1030
|
readonly "nextCursor": string | null;
|
|
914
1031
|
};
|
|
915
1032
|
export type MemoryRevisionsGetInput = {
|
|
@@ -919,7 +1036,7 @@ export type MemoryRevisionsGetInput = {
|
|
|
919
1036
|
readonly "textOffset"?: number;
|
|
920
1037
|
readonly "textLimit"?: number;
|
|
921
1038
|
};
|
|
922
|
-
export type MemoryRevisionsGetOutput =
|
|
1039
|
+
export type MemoryRevisionsGetOutput = Objects_21;
|
|
923
1040
|
export type MemorySearchInput = {
|
|
924
1041
|
readonly "projectId": string;
|
|
925
1042
|
readonly "text": string;
|
|
@@ -954,7 +1071,7 @@ export type MemoryExperiencesRecordInput = {
|
|
|
954
1071
|
};
|
|
955
1072
|
export type MemoryExperiencesRecordOutput = {
|
|
956
1073
|
readonly "sequence": number;
|
|
957
|
-
readonly "result":
|
|
1074
|
+
readonly "result": Objects_22;
|
|
958
1075
|
};
|
|
959
1076
|
export type MemoryExperiencesReviseInput = {
|
|
960
1077
|
readonly "projectId": string;
|
|
@@ -965,13 +1082,13 @@ export type MemoryExperiencesReviseInput = {
|
|
|
965
1082
|
};
|
|
966
1083
|
export type MemoryExperiencesReviseOutput = {
|
|
967
1084
|
readonly "sequence": number;
|
|
968
|
-
readonly "result":
|
|
1085
|
+
readonly "result": Objects_22;
|
|
969
1086
|
};
|
|
970
|
-
export type MemoryExperiencesForgetInput =
|
|
971
|
-
export type MemoryExperiencesForgetOutput =
|
|
972
|
-
export type MemoryExperiencesRestoreInput =
|
|
973
|
-
export type MemoryExperiencesRestoreOutput =
|
|
974
|
-
export type MemoryExperiencesEraseInput =
|
|
1087
|
+
export type MemoryExperiencesForgetInput = Objects_23;
|
|
1088
|
+
export type MemoryExperiencesForgetOutput = Objects_24;
|
|
1089
|
+
export type MemoryExperiencesRestoreInput = Objects_23;
|
|
1090
|
+
export type MemoryExperiencesRestoreOutput = Objects_24;
|
|
1091
|
+
export type MemoryExperiencesEraseInput = Objects_23;
|
|
975
1092
|
export type MemoryExperiencesEraseOutput = {
|
|
976
1093
|
readonly "sequence": number;
|
|
977
1094
|
readonly "result": {
|
|
@@ -998,7 +1115,7 @@ export type WorkItemsListInput = {
|
|
|
998
1115
|
readonly "projectId": string;
|
|
999
1116
|
readonly "stateIds"?: ReadonlyArray<string>;
|
|
1000
1117
|
readonly "stateGroups"?: ReadonlyArray<"backlog" | "unstarted" | "started" | "completed" | "cancelled">;
|
|
1001
|
-
readonly "assignees"?: ReadonlyArray<
|
|
1118
|
+
readonly "assignees"?: ReadonlyArray<Union_11 | "me" | "none">;
|
|
1002
1119
|
readonly "orderBy"?: "created" | "updated";
|
|
1003
1120
|
readonly "cursor"?: string | null;
|
|
1004
1121
|
readonly "limit"?: number;
|
|
@@ -1010,7 +1127,7 @@ export type WorkItemsListOutput = {
|
|
|
1010
1127
|
readonly "sequenceId": number;
|
|
1011
1128
|
readonly "title": string | null;
|
|
1012
1129
|
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
1013
|
-
readonly "state":
|
|
1130
|
+
readonly "state": Objects_25;
|
|
1014
1131
|
readonly "priority": "urgent" | "high" | "medium" | "low" | "none";
|
|
1015
1132
|
readonly "assignees": Arrays_4;
|
|
1016
1133
|
readonly "labelIds": Arrays_5;
|
|
@@ -1024,8 +1141,8 @@ export type WorkItemsListOutput = {
|
|
|
1024
1141
|
readonly "revision": number;
|
|
1025
1142
|
readonly "blockedBy": Arrays_6;
|
|
1026
1143
|
readonly "blockedByTotal": number;
|
|
1027
|
-
readonly "childCounts":
|
|
1028
|
-
readonly "createdBy":
|
|
1144
|
+
readonly "childCounts": Objects_26;
|
|
1145
|
+
readonly "createdBy": Union_10;
|
|
1029
1146
|
readonly "createdAt": string;
|
|
1030
1147
|
readonly "updatedAt": string;
|
|
1031
1148
|
}>;
|
|
@@ -1052,7 +1169,7 @@ export type WorkItemsGetOutput = {
|
|
|
1052
1169
|
readonly "sequenceId": number;
|
|
1053
1170
|
readonly "title": string | null;
|
|
1054
1171
|
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
1055
|
-
readonly "state":
|
|
1172
|
+
readonly "state": Objects_25;
|
|
1056
1173
|
readonly "priority": "urgent" | "high" | "medium" | "low" | "none";
|
|
1057
1174
|
readonly "assignees": Arrays_4;
|
|
1058
1175
|
readonly "labelIds": Arrays_5;
|
|
@@ -1066,12 +1183,12 @@ export type WorkItemsGetOutput = {
|
|
|
1066
1183
|
readonly "revision": number;
|
|
1067
1184
|
readonly "blockedBy": Arrays_6;
|
|
1068
1185
|
readonly "blockedByTotal": number;
|
|
1069
|
-
readonly "childCounts":
|
|
1070
|
-
readonly "createdBy":
|
|
1186
|
+
readonly "childCounts": Objects_26;
|
|
1187
|
+
readonly "createdBy": Union_10;
|
|
1071
1188
|
readonly "createdAt": string;
|
|
1072
1189
|
readonly "updatedAt": string;
|
|
1073
1190
|
readonly "description": string | null;
|
|
1074
|
-
readonly "descriptionWindow"?:
|
|
1191
|
+
readonly "descriptionWindow"?: Objects_14;
|
|
1075
1192
|
}>;
|
|
1076
1193
|
readonly "missingWorkItemIds": ReadonlyArray<string>;
|
|
1077
1194
|
readonly "missingSequenceIds": ReadonlyArray<number>;
|
|
@@ -1110,7 +1227,7 @@ export type WorkCommentsListInput = {
|
|
|
1110
1227
|
readonly "textLimit"?: number;
|
|
1111
1228
|
};
|
|
1112
1229
|
export type WorkCommentsListOutput = {
|
|
1113
|
-
readonly "items": ReadonlyArray<
|
|
1230
|
+
readonly "items": ReadonlyArray<Objects_27>;
|
|
1114
1231
|
readonly "nextCursor": string | null;
|
|
1115
1232
|
readonly "snapshotSequence": number;
|
|
1116
1233
|
};
|
|
@@ -1121,7 +1238,7 @@ export type WorkCommentsGetInput = {
|
|
|
1121
1238
|
readonly "textLimit"?: number;
|
|
1122
1239
|
};
|
|
1123
1240
|
export type WorkCommentsGetOutput = {
|
|
1124
|
-
readonly "comment":
|
|
1241
|
+
readonly "comment": Objects_27;
|
|
1125
1242
|
readonly "snapshotSequence": number;
|
|
1126
1243
|
};
|
|
1127
1244
|
export type WorkHistoryListInput = {
|
|
@@ -1135,7 +1252,7 @@ export type WorkHistoryListOutput = {
|
|
|
1135
1252
|
readonly "items": ReadonlyArray<{
|
|
1136
1253
|
readonly "sequence": number;
|
|
1137
1254
|
readonly "workItemId": string | null;
|
|
1138
|
-
readonly "actor":
|
|
1255
|
+
readonly "actor": Union_10;
|
|
1139
1256
|
readonly "at": string;
|
|
1140
1257
|
readonly "target": {
|
|
1141
1258
|
readonly "kind": "item" | "comment" | "state" | "label" | "relation";
|
|
@@ -1148,12 +1265,12 @@ export type WorkHistoryListOutput = {
|
|
|
1148
1265
|
readonly "newRevision": number | null;
|
|
1149
1266
|
} | {
|
|
1150
1267
|
readonly "field": "state";
|
|
1151
|
-
readonly "old":
|
|
1152
|
-
readonly "new":
|
|
1268
|
+
readonly "old": Objects_28 | null;
|
|
1269
|
+
readonly "new": Objects_28 | null;
|
|
1153
1270
|
} | {
|
|
1154
1271
|
readonly "field": "assignees" | "mentions";
|
|
1155
|
-
readonly "old": ReadonlyArray<
|
|
1156
|
-
readonly "new": ReadonlyArray<
|
|
1272
|
+
readonly "old": ReadonlyArray<Union_12>;
|
|
1273
|
+
readonly "new": ReadonlyArray<Union_12>;
|
|
1157
1274
|
} | {
|
|
1158
1275
|
readonly "field": "completedAt";
|
|
1159
1276
|
readonly "old": string | null;
|
|
@@ -1170,7 +1287,7 @@ export type WorkItemsCreateInput = {
|
|
|
1170
1287
|
readonly "title": string;
|
|
1171
1288
|
readonly "description"?: string;
|
|
1172
1289
|
readonly "stateId"?: string;
|
|
1173
|
-
readonly "assignees"?: ReadonlyArray<
|
|
1290
|
+
readonly "assignees"?: ReadonlyArray<Union_11>;
|
|
1174
1291
|
};
|
|
1175
1292
|
export type WorkItemsCreateOutput = {
|
|
1176
1293
|
readonly "sequence": number;
|
|
@@ -1189,7 +1306,7 @@ export type WorkItemsUpdateInput = {
|
|
|
1189
1306
|
readonly "title"?: string;
|
|
1190
1307
|
readonly "description"?: string;
|
|
1191
1308
|
readonly "stateId"?: string;
|
|
1192
|
-
readonly "assignees"?: ReadonlyArray<
|
|
1309
|
+
readonly "assignees"?: ReadonlyArray<Union_11>;
|
|
1193
1310
|
};
|
|
1194
1311
|
export type WorkItemsUpdateOutput = {
|
|
1195
1312
|
readonly "sequence": number;
|
|
@@ -1213,15 +1330,15 @@ export type WorkItemsClaimOutput = {
|
|
|
1213
1330
|
readonly "version": number;
|
|
1214
1331
|
};
|
|
1215
1332
|
};
|
|
1216
|
-
export type WorkRelationsAddInput =
|
|
1333
|
+
export type WorkRelationsAddInput = Objects_29;
|
|
1217
1334
|
export type WorkRelationsAddOutput = {
|
|
1218
1335
|
readonly "sequence": number;
|
|
1219
|
-
readonly "result":
|
|
1336
|
+
readonly "result": Objects_30;
|
|
1220
1337
|
};
|
|
1221
|
-
export type WorkRelationsRemoveInput =
|
|
1338
|
+
export type WorkRelationsRemoveInput = Objects_29;
|
|
1222
1339
|
export type WorkRelationsRemoveOutput = {
|
|
1223
1340
|
readonly "sequence": number;
|
|
1224
|
-
readonly "result":
|
|
1341
|
+
readonly "result": Objects_30;
|
|
1225
1342
|
};
|
|
1226
1343
|
export type WorkCommentsPostInput = {
|
|
1227
1344
|
readonly "projectId": string;
|
|
@@ -1229,7 +1346,7 @@ export type WorkCommentsPostInput = {
|
|
|
1229
1346
|
readonly "commentId"?: string;
|
|
1230
1347
|
readonly "workItemId": string;
|
|
1231
1348
|
readonly "body": string;
|
|
1232
|
-
readonly "mentions"?: ReadonlyArray<
|
|
1349
|
+
readonly "mentions"?: ReadonlyArray<Union_11>;
|
|
1233
1350
|
readonly "parentId"?: string;
|
|
1234
1351
|
};
|
|
1235
1352
|
export type WorkCommentsPostOutput = {
|
|
@@ -1240,6 +1357,8 @@ export type WorkCommentsPostOutput = {
|
|
|
1240
1357
|
};
|
|
1241
1358
|
};
|
|
1242
1359
|
export declare const COMMUNICATION_RECORDS_READ_LIMIT = 100;
|
|
1360
|
+
export declare const THREAD_ACTIVITIES_LIST_LIMIT = 200;
|
|
1361
|
+
export declare const THREAD_MESSAGES_LIST_LIMIT = 100;
|
|
1243
1362
|
/**
|
|
1244
1363
|
* 由登记表组装的数据端口:成员路径就是能力号(`ctx.threads.list` = 能力 `threads.list`)。输入按公共契约
|
|
1245
1364
|
* 校验,不合契约即拒;返回值是契约输出。准入照能力登记:要声明的没声明即拒 `undeclared`。
|
|
@@ -1248,6 +1367,13 @@ export interface PluginDataPorts {
|
|
|
1248
1367
|
readonly threads: {
|
|
1249
1368
|
readonly list: (input: ThreadsListInput) => Promise<ThreadsListOutput>;
|
|
1250
1369
|
readonly history: (input: ThreadsHistoryInput) => Promise<ThreadsHistoryOutput>;
|
|
1370
|
+
readonly get: (input: ThreadsGetInput) => Promise<ThreadsGetOutput>;
|
|
1371
|
+
readonly messages: {
|
|
1372
|
+
readonly list: (input: ThreadsMessagesListInput) => Promise<ThreadsMessagesListOutput>;
|
|
1373
|
+
};
|
|
1374
|
+
readonly activities: {
|
|
1375
|
+
readonly list: (input: ThreadsActivitiesListInput) => Promise<ThreadsActivitiesListOutput>;
|
|
1376
|
+
};
|
|
1251
1377
|
};
|
|
1252
1378
|
readonly projects: {
|
|
1253
1379
|
readonly list: (input: ProjectsListInput) => Promise<ProjectsListOutput>;
|
|
@@ -1263,7 +1389,6 @@ export interface PluginDataPorts {
|
|
|
1263
1389
|
};
|
|
1264
1390
|
readonly inbox: {
|
|
1265
1391
|
readonly list: (input: CommunicationInboxListInput) => Promise<CommunicationInboxListOutput>;
|
|
1266
|
-
readonly read: (input: CommunicationInboxReadInput) => Promise<CommunicationInboxReadOutput>;
|
|
1267
1392
|
};
|
|
1268
1393
|
readonly people: {
|
|
1269
1394
|
readonly list: (input: CommunicationPeopleListInput) => Promise<CommunicationPeopleListOutput>;
|