@ycodium-ai/plugin-api 0.2.3018 → 0.2.3020
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 +334 -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,146 @@ 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 "textOffset"?: number;
|
|
771
|
+
readonly "textLimit"?: number;
|
|
772
|
+
};
|
|
773
|
+
export type ThreadsMessagesListOutput = {
|
|
774
|
+
readonly "items": ReadonlyArray<{
|
|
775
|
+
readonly "id": string;
|
|
776
|
+
readonly "role": "user" | "assistant" | "system";
|
|
777
|
+
readonly "text": string;
|
|
778
|
+
readonly "attachments"?: ReadonlyArray<{
|
|
779
|
+
readonly "type": "image";
|
|
780
|
+
readonly "id": string;
|
|
781
|
+
readonly "name": string;
|
|
782
|
+
readonly "mimeType": string;
|
|
783
|
+
readonly "sizeBytes": number;
|
|
784
|
+
} | {
|
|
785
|
+
readonly "type": "file";
|
|
786
|
+
readonly "id": string;
|
|
787
|
+
readonly "name": string;
|
|
788
|
+
readonly "mimeType": string;
|
|
789
|
+
readonly "sizeBytes": number;
|
|
790
|
+
}> | undefined;
|
|
791
|
+
readonly "turnId": string | null;
|
|
792
|
+
readonly "streaming": boolean;
|
|
793
|
+
readonly "author"?: Union_1;
|
|
794
|
+
readonly "recordId"?: string | undefined;
|
|
795
|
+
readonly "modelSelection"?: Union_2;
|
|
796
|
+
readonly "source"?: Union_3;
|
|
797
|
+
readonly "createdAt": string;
|
|
798
|
+
readonly "updatedAt": string;
|
|
799
|
+
readonly "textWindow"?: Objects_14;
|
|
800
|
+
}>;
|
|
801
|
+
readonly "nextCursor": string | null;
|
|
802
|
+
readonly "snapshotSequence": number;
|
|
803
|
+
readonly "total"?: number;
|
|
804
|
+
};
|
|
805
|
+
export type ThreadsActivitiesListInput = {
|
|
806
|
+
readonly "threadId": string;
|
|
807
|
+
readonly "kinds": ReadonlyArray<string>;
|
|
808
|
+
readonly "inTurn"?: "any" | "none";
|
|
809
|
+
readonly "cursor"?: string | null;
|
|
810
|
+
readonly "limit"?: number;
|
|
811
|
+
readonly "maxPayloadBytes"?: number;
|
|
812
|
+
readonly "maxPageBytes"?: number;
|
|
813
|
+
};
|
|
814
|
+
export type ThreadsActivitiesListOutput = {
|
|
815
|
+
readonly "items": ReadonlyArray<{
|
|
816
|
+
readonly "id": string;
|
|
817
|
+
readonly "tone": "info" | "tool" | "approval" | "error";
|
|
818
|
+
readonly "kind": string;
|
|
819
|
+
readonly "summary": string;
|
|
820
|
+
readonly "turnId": string | null;
|
|
821
|
+
readonly "sequence"?: number | undefined;
|
|
822
|
+
readonly "createdAt": string;
|
|
823
|
+
readonly "payload": unknown;
|
|
824
|
+
readonly "payloadOmitted"?: undefined;
|
|
825
|
+
readonly "toolCallId"?: undefined;
|
|
826
|
+
} | {
|
|
827
|
+
readonly "id": string;
|
|
828
|
+
readonly "tone": "info" | "tool" | "approval" | "error";
|
|
829
|
+
readonly "kind": string;
|
|
830
|
+
readonly "summary": string;
|
|
831
|
+
readonly "turnId": string | null;
|
|
832
|
+
readonly "sequence"?: number | undefined;
|
|
833
|
+
readonly "createdAt": string;
|
|
834
|
+
readonly "payload"?: undefined;
|
|
835
|
+
readonly "payloadOmitted": {
|
|
836
|
+
readonly "bytes": number;
|
|
837
|
+
};
|
|
838
|
+
readonly "toolCallId"?: string;
|
|
839
|
+
}>;
|
|
840
|
+
readonly "nextCursor": string | null;
|
|
841
|
+
readonly "snapshotSequence": number;
|
|
842
|
+
};
|
|
703
843
|
export type ProjectsListInput = {
|
|
704
844
|
readonly "archived"?: "exclude" | "include" | "only";
|
|
705
845
|
readonly "repositoryIdentity"?: "resolve" | "skip";
|
|
706
846
|
};
|
|
707
|
-
export type ProjectsListOutput = ReadonlyArray<
|
|
847
|
+
export type ProjectsListOutput = ReadonlyArray<Objects_15>;
|
|
708
848
|
export type ProjectsGetInput = {
|
|
709
849
|
readonly "projectId": string;
|
|
710
850
|
};
|
|
711
|
-
export type ProjectsGetOutput =
|
|
851
|
+
export type ProjectsGetOutput = Objects_15;
|
|
712
852
|
export type CommunicationRecordsGetInput = {
|
|
713
853
|
readonly "recordIds": ReadonlyArray<string>;
|
|
714
854
|
readonly "textOffset"?: number;
|
|
@@ -716,22 +856,22 @@ export type CommunicationRecordsGetInput = {
|
|
|
716
856
|
};
|
|
717
857
|
export type CommunicationRecordsGetOutput = ReadonlyArray<{
|
|
718
858
|
readonly "recordId": string;
|
|
719
|
-
readonly "from":
|
|
720
|
-
readonly "to":
|
|
859
|
+
readonly "from": Union_4;
|
|
860
|
+
readonly "to": Union_5;
|
|
721
861
|
readonly "replyTo": string | null;
|
|
722
862
|
readonly "text": string | null;
|
|
723
863
|
readonly "delivery": "quiet" | "wake" | "steer";
|
|
724
864
|
readonly "createdAt": string;
|
|
725
|
-
readonly "stages":
|
|
865
|
+
readonly "stages": Objects_16;
|
|
726
866
|
readonly "idempotencyKey"?: string | undefined;
|
|
727
867
|
readonly "runId"?: string | undefined;
|
|
728
868
|
readonly "toRole"?: string | undefined;
|
|
729
|
-
readonly "attachments"?:
|
|
869
|
+
readonly "attachments"?: Union_6;
|
|
730
870
|
readonly "bodyState": "present" | "withdrawn" | "deleted" | "unavailable";
|
|
731
871
|
readonly "projectId": string | null;
|
|
732
872
|
readonly "sequence": number;
|
|
733
|
-
readonly "claim":
|
|
734
|
-
readonly "textWindow"?:
|
|
873
|
+
readonly "claim": Union_7;
|
|
874
|
+
readonly "textWindow"?: Objects_14;
|
|
735
875
|
}>;
|
|
736
876
|
export type CommunicationRecordsListInput = {
|
|
737
877
|
readonly "projectId": string;
|
|
@@ -752,16 +892,16 @@ export type CommunicationRecordsListInput = {
|
|
|
752
892
|
readonly "until"?: string | null;
|
|
753
893
|
readonly "cursor"?: string | null;
|
|
754
894
|
readonly "limit"?: number;
|
|
755
|
-
readonly "person":
|
|
895
|
+
readonly "person": Union_8;
|
|
756
896
|
};
|
|
757
|
-
export type CommunicationRecordsListOutput =
|
|
897
|
+
export type CommunicationRecordsListOutput = Objects_17;
|
|
758
898
|
export type CommunicationInboxListInput = {
|
|
759
899
|
readonly "projectId": string;
|
|
760
900
|
readonly "pendingOnly"?: boolean;
|
|
761
901
|
readonly "cursor"?: string | null;
|
|
762
902
|
readonly "limit"?: number;
|
|
763
903
|
};
|
|
764
|
-
export type CommunicationInboxListOutput =
|
|
904
|
+
export type CommunicationInboxListOutput = Objects_17;
|
|
765
905
|
export type CommunicationPeopleListInput = {
|
|
766
906
|
readonly "projectId": string;
|
|
767
907
|
readonly "cursor"?: string | null;
|
|
@@ -769,7 +909,7 @@ export type CommunicationPeopleListInput = {
|
|
|
769
909
|
};
|
|
770
910
|
export type CommunicationPeopleListOutput = {
|
|
771
911
|
readonly "items": ReadonlyArray<{
|
|
772
|
-
readonly "person":
|
|
912
|
+
readonly "person": Union_9;
|
|
773
913
|
readonly "displayName": string;
|
|
774
914
|
}>;
|
|
775
915
|
readonly "nextCursor": string | null;
|
|
@@ -781,7 +921,7 @@ export type CommunicationRecordsSendInput = {
|
|
|
781
921
|
readonly "to": {
|
|
782
922
|
readonly "threadId": string;
|
|
783
923
|
} | {
|
|
784
|
-
readonly "person":
|
|
924
|
+
readonly "person": Union_8;
|
|
785
925
|
};
|
|
786
926
|
readonly "text": string;
|
|
787
927
|
readonly "replyTo"?: string;
|
|
@@ -799,45 +939,20 @@ export type CommunicationRecordsSendOutput = {
|
|
|
799
939
|
}>;
|
|
800
940
|
};
|
|
801
941
|
};
|
|
802
|
-
export type CommunicationRecordsWithdrawInput =
|
|
942
|
+
export type CommunicationRecordsWithdrawInput = Objects_18;
|
|
803
943
|
export type CommunicationRecordsWithdrawOutput = {
|
|
804
944
|
readonly "sequence": number;
|
|
805
945
|
readonly "result": {
|
|
806
946
|
readonly "recordId": string;
|
|
807
947
|
};
|
|
808
948
|
};
|
|
809
|
-
export type CommunicationRecordsDeleteInput =
|
|
949
|
+
export type CommunicationRecordsDeleteInput = Objects_18;
|
|
810
950
|
export type CommunicationRecordsDeleteOutput = {
|
|
811
951
|
readonly "sequence": number;
|
|
812
952
|
readonly "result": {
|
|
813
953
|
readonly "recordId": string;
|
|
814
954
|
};
|
|
815
955
|
};
|
|
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
956
|
export type ApprovalsPendingListInput = {
|
|
842
957
|
readonly "threadId": string;
|
|
843
958
|
};
|
|
@@ -864,7 +979,7 @@ export type MemoryExperiencesListOutput = {
|
|
|
864
979
|
readonly "items": ReadonlyArray<{
|
|
865
980
|
readonly "experienceId": string;
|
|
866
981
|
readonly "status": "active" | "forgotten" | "erased";
|
|
867
|
-
readonly "author":
|
|
982
|
+
readonly "author": Union_10;
|
|
868
983
|
readonly "sourceThreadId": string | null;
|
|
869
984
|
readonly "sourceTurnId": string | null;
|
|
870
985
|
readonly "currentRevision": number;
|
|
@@ -885,7 +1000,7 @@ export type MemoryExperiencesGetInput = {
|
|
|
885
1000
|
export type MemoryExperiencesGetOutput = {
|
|
886
1001
|
readonly "experienceId": string;
|
|
887
1002
|
readonly "status": "active" | "forgotten" | "erased";
|
|
888
|
-
readonly "author":
|
|
1003
|
+
readonly "author": Union_10;
|
|
889
1004
|
readonly "sourceThreadId": string | null;
|
|
890
1005
|
readonly "sourceTurnId": string | null;
|
|
891
1006
|
readonly "currentRevision": number;
|
|
@@ -894,11 +1009,11 @@ export type MemoryExperiencesGetOutput = {
|
|
|
894
1009
|
readonly "supersedes": Arrays_3;
|
|
895
1010
|
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
896
1011
|
readonly "body": string | null;
|
|
897
|
-
readonly "bodyWindow"?:
|
|
1012
|
+
readonly "bodyWindow"?: Objects_14;
|
|
898
1013
|
readonly "forgottenAt": string | null;
|
|
899
|
-
readonly "forgottenBy":
|
|
1014
|
+
readonly "forgottenBy": Union_10 | null;
|
|
900
1015
|
readonly "erasedAt": string | null;
|
|
901
|
-
readonly "erasedBy":
|
|
1016
|
+
readonly "erasedBy": Union_10 | null;
|
|
902
1017
|
};
|
|
903
1018
|
export type MemoryExperiencesHistoryInput = {
|
|
904
1019
|
readonly "projectId": string;
|
|
@@ -909,7 +1024,7 @@ export type MemoryExperiencesHistoryInput = {
|
|
|
909
1024
|
readonly "textLimit"?: number;
|
|
910
1025
|
};
|
|
911
1026
|
export type MemoryExperiencesHistoryOutput = {
|
|
912
|
-
readonly "items": ReadonlyArray<
|
|
1027
|
+
readonly "items": ReadonlyArray<Objects_21>;
|
|
913
1028
|
readonly "nextCursor": string | null;
|
|
914
1029
|
};
|
|
915
1030
|
export type MemoryRevisionsGetInput = {
|
|
@@ -919,7 +1034,7 @@ export type MemoryRevisionsGetInput = {
|
|
|
919
1034
|
readonly "textOffset"?: number;
|
|
920
1035
|
readonly "textLimit"?: number;
|
|
921
1036
|
};
|
|
922
|
-
export type MemoryRevisionsGetOutput =
|
|
1037
|
+
export type MemoryRevisionsGetOutput = Objects_21;
|
|
923
1038
|
export type MemorySearchInput = {
|
|
924
1039
|
readonly "projectId": string;
|
|
925
1040
|
readonly "text": string;
|
|
@@ -954,7 +1069,7 @@ export type MemoryExperiencesRecordInput = {
|
|
|
954
1069
|
};
|
|
955
1070
|
export type MemoryExperiencesRecordOutput = {
|
|
956
1071
|
readonly "sequence": number;
|
|
957
|
-
readonly "result":
|
|
1072
|
+
readonly "result": Objects_22;
|
|
958
1073
|
};
|
|
959
1074
|
export type MemoryExperiencesReviseInput = {
|
|
960
1075
|
readonly "projectId": string;
|
|
@@ -965,13 +1080,13 @@ export type MemoryExperiencesReviseInput = {
|
|
|
965
1080
|
};
|
|
966
1081
|
export type MemoryExperiencesReviseOutput = {
|
|
967
1082
|
readonly "sequence": number;
|
|
968
|
-
readonly "result":
|
|
1083
|
+
readonly "result": Objects_22;
|
|
969
1084
|
};
|
|
970
|
-
export type MemoryExperiencesForgetInput =
|
|
971
|
-
export type MemoryExperiencesForgetOutput =
|
|
972
|
-
export type MemoryExperiencesRestoreInput =
|
|
973
|
-
export type MemoryExperiencesRestoreOutput =
|
|
974
|
-
export type MemoryExperiencesEraseInput =
|
|
1085
|
+
export type MemoryExperiencesForgetInput = Objects_23;
|
|
1086
|
+
export type MemoryExperiencesForgetOutput = Objects_24;
|
|
1087
|
+
export type MemoryExperiencesRestoreInput = Objects_23;
|
|
1088
|
+
export type MemoryExperiencesRestoreOutput = Objects_24;
|
|
1089
|
+
export type MemoryExperiencesEraseInput = Objects_23;
|
|
975
1090
|
export type MemoryExperiencesEraseOutput = {
|
|
976
1091
|
readonly "sequence": number;
|
|
977
1092
|
readonly "result": {
|
|
@@ -998,7 +1113,7 @@ export type WorkItemsListInput = {
|
|
|
998
1113
|
readonly "projectId": string;
|
|
999
1114
|
readonly "stateIds"?: ReadonlyArray<string>;
|
|
1000
1115
|
readonly "stateGroups"?: ReadonlyArray<"backlog" | "unstarted" | "started" | "completed" | "cancelled">;
|
|
1001
|
-
readonly "assignees"?: ReadonlyArray<
|
|
1116
|
+
readonly "assignees"?: ReadonlyArray<Union_11 | "me" | "none">;
|
|
1002
1117
|
readonly "orderBy"?: "created" | "updated";
|
|
1003
1118
|
readonly "cursor"?: string | null;
|
|
1004
1119
|
readonly "limit"?: number;
|
|
@@ -1010,7 +1125,7 @@ export type WorkItemsListOutput = {
|
|
|
1010
1125
|
readonly "sequenceId": number;
|
|
1011
1126
|
readonly "title": string | null;
|
|
1012
1127
|
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
1013
|
-
readonly "state":
|
|
1128
|
+
readonly "state": Objects_25;
|
|
1014
1129
|
readonly "priority": "urgent" | "high" | "medium" | "low" | "none";
|
|
1015
1130
|
readonly "assignees": Arrays_4;
|
|
1016
1131
|
readonly "labelIds": Arrays_5;
|
|
@@ -1024,8 +1139,8 @@ export type WorkItemsListOutput = {
|
|
|
1024
1139
|
readonly "revision": number;
|
|
1025
1140
|
readonly "blockedBy": Arrays_6;
|
|
1026
1141
|
readonly "blockedByTotal": number;
|
|
1027
|
-
readonly "childCounts":
|
|
1028
|
-
readonly "createdBy":
|
|
1142
|
+
readonly "childCounts": Objects_26;
|
|
1143
|
+
readonly "createdBy": Union_10;
|
|
1029
1144
|
readonly "createdAt": string;
|
|
1030
1145
|
readonly "updatedAt": string;
|
|
1031
1146
|
}>;
|
|
@@ -1052,7 +1167,7 @@ export type WorkItemsGetOutput = {
|
|
|
1052
1167
|
readonly "sequenceId": number;
|
|
1053
1168
|
readonly "title": string | null;
|
|
1054
1169
|
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
1055
|
-
readonly "state":
|
|
1170
|
+
readonly "state": Objects_25;
|
|
1056
1171
|
readonly "priority": "urgent" | "high" | "medium" | "low" | "none";
|
|
1057
1172
|
readonly "assignees": Arrays_4;
|
|
1058
1173
|
readonly "labelIds": Arrays_5;
|
|
@@ -1066,12 +1181,12 @@ export type WorkItemsGetOutput = {
|
|
|
1066
1181
|
readonly "revision": number;
|
|
1067
1182
|
readonly "blockedBy": Arrays_6;
|
|
1068
1183
|
readonly "blockedByTotal": number;
|
|
1069
|
-
readonly "childCounts":
|
|
1070
|
-
readonly "createdBy":
|
|
1184
|
+
readonly "childCounts": Objects_26;
|
|
1185
|
+
readonly "createdBy": Union_10;
|
|
1071
1186
|
readonly "createdAt": string;
|
|
1072
1187
|
readonly "updatedAt": string;
|
|
1073
1188
|
readonly "description": string | null;
|
|
1074
|
-
readonly "descriptionWindow"?:
|
|
1189
|
+
readonly "descriptionWindow"?: Objects_14;
|
|
1075
1190
|
}>;
|
|
1076
1191
|
readonly "missingWorkItemIds": ReadonlyArray<string>;
|
|
1077
1192
|
readonly "missingSequenceIds": ReadonlyArray<number>;
|
|
@@ -1110,7 +1225,7 @@ export type WorkCommentsListInput = {
|
|
|
1110
1225
|
readonly "textLimit"?: number;
|
|
1111
1226
|
};
|
|
1112
1227
|
export type WorkCommentsListOutput = {
|
|
1113
|
-
readonly "items": ReadonlyArray<
|
|
1228
|
+
readonly "items": ReadonlyArray<Objects_27>;
|
|
1114
1229
|
readonly "nextCursor": string | null;
|
|
1115
1230
|
readonly "snapshotSequence": number;
|
|
1116
1231
|
};
|
|
@@ -1121,7 +1236,7 @@ export type WorkCommentsGetInput = {
|
|
|
1121
1236
|
readonly "textLimit"?: number;
|
|
1122
1237
|
};
|
|
1123
1238
|
export type WorkCommentsGetOutput = {
|
|
1124
|
-
readonly "comment":
|
|
1239
|
+
readonly "comment": Objects_27;
|
|
1125
1240
|
readonly "snapshotSequence": number;
|
|
1126
1241
|
};
|
|
1127
1242
|
export type WorkHistoryListInput = {
|
|
@@ -1135,7 +1250,7 @@ export type WorkHistoryListOutput = {
|
|
|
1135
1250
|
readonly "items": ReadonlyArray<{
|
|
1136
1251
|
readonly "sequence": number;
|
|
1137
1252
|
readonly "workItemId": string | null;
|
|
1138
|
-
readonly "actor":
|
|
1253
|
+
readonly "actor": Union_10;
|
|
1139
1254
|
readonly "at": string;
|
|
1140
1255
|
readonly "target": {
|
|
1141
1256
|
readonly "kind": "item" | "comment" | "state" | "label" | "relation";
|
|
@@ -1148,12 +1263,12 @@ export type WorkHistoryListOutput = {
|
|
|
1148
1263
|
readonly "newRevision": number | null;
|
|
1149
1264
|
} | {
|
|
1150
1265
|
readonly "field": "state";
|
|
1151
|
-
readonly "old":
|
|
1152
|
-
readonly "new":
|
|
1266
|
+
readonly "old": Objects_28 | null;
|
|
1267
|
+
readonly "new": Objects_28 | null;
|
|
1153
1268
|
} | {
|
|
1154
1269
|
readonly "field": "assignees" | "mentions";
|
|
1155
|
-
readonly "old": ReadonlyArray<
|
|
1156
|
-
readonly "new": ReadonlyArray<
|
|
1270
|
+
readonly "old": ReadonlyArray<Union_12>;
|
|
1271
|
+
readonly "new": ReadonlyArray<Union_12>;
|
|
1157
1272
|
} | {
|
|
1158
1273
|
readonly "field": "completedAt";
|
|
1159
1274
|
readonly "old": string | null;
|
|
@@ -1170,7 +1285,7 @@ export type WorkItemsCreateInput = {
|
|
|
1170
1285
|
readonly "title": string;
|
|
1171
1286
|
readonly "description"?: string;
|
|
1172
1287
|
readonly "stateId"?: string;
|
|
1173
|
-
readonly "assignees"?: ReadonlyArray<
|
|
1288
|
+
readonly "assignees"?: ReadonlyArray<Union_11>;
|
|
1174
1289
|
};
|
|
1175
1290
|
export type WorkItemsCreateOutput = {
|
|
1176
1291
|
readonly "sequence": number;
|
|
@@ -1189,7 +1304,7 @@ export type WorkItemsUpdateInput = {
|
|
|
1189
1304
|
readonly "title"?: string;
|
|
1190
1305
|
readonly "description"?: string;
|
|
1191
1306
|
readonly "stateId"?: string;
|
|
1192
|
-
readonly "assignees"?: ReadonlyArray<
|
|
1307
|
+
readonly "assignees"?: ReadonlyArray<Union_11>;
|
|
1193
1308
|
};
|
|
1194
1309
|
export type WorkItemsUpdateOutput = {
|
|
1195
1310
|
readonly "sequence": number;
|
|
@@ -1213,15 +1328,15 @@ export type WorkItemsClaimOutput = {
|
|
|
1213
1328
|
readonly "version": number;
|
|
1214
1329
|
};
|
|
1215
1330
|
};
|
|
1216
|
-
export type WorkRelationsAddInput =
|
|
1331
|
+
export type WorkRelationsAddInput = Objects_29;
|
|
1217
1332
|
export type WorkRelationsAddOutput = {
|
|
1218
1333
|
readonly "sequence": number;
|
|
1219
|
-
readonly "result":
|
|
1334
|
+
readonly "result": Objects_30;
|
|
1220
1335
|
};
|
|
1221
|
-
export type WorkRelationsRemoveInput =
|
|
1336
|
+
export type WorkRelationsRemoveInput = Objects_29;
|
|
1222
1337
|
export type WorkRelationsRemoveOutput = {
|
|
1223
1338
|
readonly "sequence": number;
|
|
1224
|
-
readonly "result":
|
|
1339
|
+
readonly "result": Objects_30;
|
|
1225
1340
|
};
|
|
1226
1341
|
export type WorkCommentsPostInput = {
|
|
1227
1342
|
readonly "projectId": string;
|
|
@@ -1229,7 +1344,7 @@ export type WorkCommentsPostInput = {
|
|
|
1229
1344
|
readonly "commentId"?: string;
|
|
1230
1345
|
readonly "workItemId": string;
|
|
1231
1346
|
readonly "body": string;
|
|
1232
|
-
readonly "mentions"?: ReadonlyArray<
|
|
1347
|
+
readonly "mentions"?: ReadonlyArray<Union_11>;
|
|
1233
1348
|
readonly "parentId"?: string;
|
|
1234
1349
|
};
|
|
1235
1350
|
export type WorkCommentsPostOutput = {
|
|
@@ -1240,6 +1355,8 @@ export type WorkCommentsPostOutput = {
|
|
|
1240
1355
|
};
|
|
1241
1356
|
};
|
|
1242
1357
|
export declare const COMMUNICATION_RECORDS_READ_LIMIT = 100;
|
|
1358
|
+
export declare const THREAD_ACTIVITIES_LIST_LIMIT = 200;
|
|
1359
|
+
export declare const THREAD_MESSAGES_LIST_LIMIT = 100;
|
|
1243
1360
|
/**
|
|
1244
1361
|
* 由登记表组装的数据端口:成员路径就是能力号(`ctx.threads.list` = 能力 `threads.list`)。输入按公共契约
|
|
1245
1362
|
* 校验,不合契约即拒;返回值是契约输出。准入照能力登记:要声明的没声明即拒 `undeclared`。
|
|
@@ -1248,6 +1365,13 @@ export interface PluginDataPorts {
|
|
|
1248
1365
|
readonly threads: {
|
|
1249
1366
|
readonly list: (input: ThreadsListInput) => Promise<ThreadsListOutput>;
|
|
1250
1367
|
readonly history: (input: ThreadsHistoryInput) => Promise<ThreadsHistoryOutput>;
|
|
1368
|
+
readonly get: (input: ThreadsGetInput) => Promise<ThreadsGetOutput>;
|
|
1369
|
+
readonly messages: {
|
|
1370
|
+
readonly list: (input: ThreadsMessagesListInput) => Promise<ThreadsMessagesListOutput>;
|
|
1371
|
+
};
|
|
1372
|
+
readonly activities: {
|
|
1373
|
+
readonly list: (input: ThreadsActivitiesListInput) => Promise<ThreadsActivitiesListOutput>;
|
|
1374
|
+
};
|
|
1251
1375
|
};
|
|
1252
1376
|
readonly projects: {
|
|
1253
1377
|
readonly list: (input: ProjectsListInput) => Promise<ProjectsListOutput>;
|
|
@@ -1263,7 +1387,6 @@ export interface PluginDataPorts {
|
|
|
1263
1387
|
};
|
|
1264
1388
|
readonly inbox: {
|
|
1265
1389
|
readonly list: (input: CommunicationInboxListInput) => Promise<CommunicationInboxListOutput>;
|
|
1266
|
-
readonly read: (input: CommunicationInboxReadInput) => Promise<CommunicationInboxReadOutput>;
|
|
1267
1390
|
};
|
|
1268
1391
|
readonly people: {
|
|
1269
1392
|
readonly list: (input: CommunicationPeopleListInput) => Promise<CommunicationPeopleListOutput>;
|