@ycodium-ai/plugin-api 0.2.3000 → 0.2.3008
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 +11 -4
- package/dist/communication.d.ts +1 -1
- package/dist/dataPorts.gen.d.ts +277 -125
- package/dist/dataPorts.gen.d.ts.map +1 -1
- package/dist/dataPorts.gen.js.map +1 -1
- package/dist/executor.d.ts +15 -767
- package/dist/executor.d.ts.map +1 -1
- package/dist/executor.js +5 -129
- package/dist/executor.js.map +1 -1
- package/dist/executorCard.d.ts +279 -0
- package/dist/executorCard.d.ts.map +1 -0
- package/dist/executorCard.js +48 -0
- package/dist/executorCard.js.map +1 -0
- package/dist/executorEvents.d.ts +170 -0
- package/dist/executorEvents.d.ts.map +1 -0
- package/dist/executorEvents.js +8 -0
- package/dist/executorEvents.js.map +1 -0
- package/dist/executorSession.d.ts +301 -0
- package/dist/executorSession.d.ts.map +1 -0
- package/dist/executorSession.js +3 -0
- package/dist/executorSession.js.map +1 -0
- package/dist/executorSpawn.d.ts +48 -0
- package/dist/executorSpawn.d.ts.map +1 -0
- package/dist/executorSpawn.js +87 -0
- package/dist/executorSpawn.js.map +1 -0
- package/dist/index.d.ts +17 -614
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/pluginContextCommands.d.ts +152 -0
- package/dist/pluginContextCommands.d.ts.map +1 -0
- package/dist/pluginContextCommands.js +2 -0
- package/dist/pluginContextCommands.js.map +1 -0
- package/dist/pluginContextProviders.d.ts +203 -0
- package/dist/pluginContextProviders.d.ts.map +1 -0
- package/dist/pluginContextProviders.js +2 -0
- package/dist/pluginContextProviders.js.map +1 -0
- package/dist/pluginContextThreads.d.ts +206 -0
- package/dist/pluginContextThreads.d.ts.map +1 -0
- package/dist/pluginContextThreads.js +2 -0
- package/dist/pluginContextThreads.js.map +1 -0
- package/dist/pluginContextWorkspace.d.ts +76 -0
- package/dist/pluginContextWorkspace.d.ts.map +1 -0
- package/dist/pluginContextWorkspace.js +2 -0
- package/dist/pluginContextWorkspace.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ import { definePlugin } from "@ycodium-ai/plugin-api";
|
|
|
56
56
|
|
|
57
57
|
export default definePlugin({
|
|
58
58
|
id: "my-plugin",
|
|
59
|
-
apiVersion:
|
|
59
|
+
apiVersion: 7,
|
|
60
60
|
activate: (ctx) => {
|
|
61
61
|
ctx.log.info("hello");
|
|
62
62
|
|
|
@@ -230,12 +230,19 @@ shows up there without anyone registering it.
|
|
|
230
230
|
|
|
231
231
|
## THERE WILL BE COMPATIBILITY-BREAKING CHANGES
|
|
232
232
|
|
|
233
|
-
The definition's `apiVersion` is a closed window: the host loads
|
|
233
|
+
The definition's `apiVersion` is a closed window: the host loads 7, and refuses every other
|
|
234
234
|
value. Declare the version your plugin targets as a literal; do not read the host's
|
|
235
|
-
`PLUGIN_API_VERSION` to make the declaration automatically match. The current API is
|
|
235
|
+
`PLUGIN_API_VERSION` to make the declaration automatically match. The current API is 7. Plugins
|
|
236
236
|
targeting an older API are refused before activation; the message names the version the plugin
|
|
237
237
|
declared and the one this Ycodium loads, and the plugin card offers an update. A plugin that
|
|
238
|
-
declares a version newer than
|
|
238
|
+
declares a version newer than 7 is refused until Ycodium itself is updated, with no update button.
|
|
239
|
+
|
|
240
|
+
API 7 changed the communication reads. `ctx.communication.records.get` returns record views:
|
|
241
|
+
`text` is `null` once a message was withdrawn or deleted (see `bodyState`), and each view carries
|
|
242
|
+
`projectId`, `sequence` and `claim`. `ctx.communication.records.list` takes `{ projectId }` plus an
|
|
243
|
+
optional scope (`threadIds` or `person`), returns summaries (`textPreview`, not the full text) newest
|
|
244
|
+
first with `nextCursor`, and no longer takes `before`; read full texts with `records.get`. Both need
|
|
245
|
+
the `communication.read` permission.
|
|
239
246
|
|
|
240
247
|
API 6 removed `ctx.projections.getProject` and `listProjects`: read projects with
|
|
241
248
|
`ctx.projects.get({ projectId })` (rejects when the project is missing or deleted, where the old
|
package/dist/communication.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* (收件方取件了)、已回。从包根导出。
|
|
4
4
|
*
|
|
5
5
|
* 读走登记表组装的端口 `ctx.communication.records.get` / `ctx.communication.records.list`(见
|
|
6
|
-
* `PluginDataPorts
|
|
6
|
+
* `PluginDataPorts`);这里的两个名字是它们返回的那份记录。只读:发信走消息工具组的 `send_message`。
|
|
7
7
|
*
|
|
8
8
|
* @module @ycodium-ai/plugin-api/communication
|
|
9
9
|
*/
|
package/dist/dataPorts.gen.d.ts
CHANGED
|
@@ -39,80 +39,91 @@ type Union_1 = {
|
|
|
39
39
|
readonly "environmentId": string;
|
|
40
40
|
readonly "displayName": string;
|
|
41
41
|
};
|
|
42
|
-
type
|
|
43
|
-
readonly "
|
|
44
|
-
readonly "
|
|
45
|
-
readonly "
|
|
46
|
-
readonly "
|
|
47
|
-
|
|
48
|
-
readonly "
|
|
49
|
-
readonly "
|
|
42
|
+
type Objects_9 = {
|
|
43
|
+
readonly "persisted": string;
|
|
44
|
+
readonly "handedOff": {
|
|
45
|
+
readonly "certainty": "not-dispatched" | "confirmed" | "unknown";
|
|
46
|
+
readonly "evidence"?: "pickup" | undefined;
|
|
47
|
+
readonly "intentId"?: string | undefined;
|
|
48
|
+
readonly "turnId"?: string | undefined;
|
|
49
|
+
readonly "at"?: string | undefined;
|
|
50
50
|
};
|
|
51
|
+
readonly "replied": {
|
|
52
|
+
readonly "recordId"?: string | undefined;
|
|
53
|
+
readonly "turnId"?: string | undefined;
|
|
54
|
+
readonly "at": string;
|
|
55
|
+
} | null;
|
|
51
56
|
};
|
|
52
|
-
type
|
|
57
|
+
type Objects_10 = {
|
|
58
|
+
readonly "offset": number;
|
|
59
|
+
readonly "returned": number;
|
|
60
|
+
readonly "total": number;
|
|
61
|
+
readonly "nextOffset": number | null;
|
|
62
|
+
};
|
|
63
|
+
type Union_5 = {
|
|
64
|
+
readonly "kind": "account";
|
|
65
|
+
readonly "userId": string;
|
|
66
|
+
} | {
|
|
67
|
+
readonly "kind": "local-owner";
|
|
68
|
+
readonly "environmentId": string;
|
|
69
|
+
};
|
|
70
|
+
type Union_6 = {
|
|
71
|
+
readonly "kind": "account";
|
|
72
|
+
readonly "userId": string;
|
|
73
|
+
} | {
|
|
74
|
+
readonly "kind": "local-owner";
|
|
75
|
+
readonly "environmentId": string;
|
|
76
|
+
};
|
|
77
|
+
type Objects_12 = {
|
|
78
|
+
readonly "projectId": string;
|
|
79
|
+
readonly "requestId"?: string;
|
|
80
|
+
readonly "recordId": string;
|
|
81
|
+
};
|
|
82
|
+
type Objects_14 = {
|
|
53
83
|
readonly "kind": "agent";
|
|
54
84
|
readonly "threadId": string;
|
|
55
85
|
};
|
|
56
86
|
type Arrays_3 = ReadonlyArray<string>;
|
|
57
|
-
type
|
|
87
|
+
type Objects_15 = {
|
|
58
88
|
readonly "experienceId": string;
|
|
59
89
|
readonly "revision": number;
|
|
60
90
|
};
|
|
61
|
-
type
|
|
91
|
+
type Objects_16 = {
|
|
62
92
|
readonly "projectId": string;
|
|
63
93
|
readonly "requestId"?: string;
|
|
64
94
|
readonly "experienceId": string;
|
|
65
95
|
};
|
|
66
|
-
type
|
|
96
|
+
type Objects_17 = {
|
|
67
97
|
readonly "sequence": number;
|
|
68
98
|
readonly "result": {
|
|
69
99
|
readonly "experienceId": string;
|
|
70
100
|
readonly "status": "active" | "forgotten";
|
|
71
101
|
};
|
|
72
102
|
};
|
|
73
|
-
type
|
|
74
|
-
readonly "kind": "human";
|
|
75
|
-
readonly "principal": {
|
|
76
|
-
readonly "kind": "account";
|
|
77
|
-
readonly "userId": string;
|
|
78
|
-
} | {
|
|
79
|
-
readonly "kind": "local-owner";
|
|
80
|
-
readonly "environmentId": string;
|
|
81
|
-
};
|
|
82
|
-
} | {
|
|
83
|
-
readonly "kind": "agent";
|
|
84
|
-
readonly "threadId": string;
|
|
85
|
-
};
|
|
86
|
-
type Objects_15 = {
|
|
103
|
+
type Objects_18 = {
|
|
87
104
|
readonly "stateId": string;
|
|
88
105
|
readonly "group": "backlog" | "unstarted" | "started" | "completed" | "cancelled";
|
|
89
106
|
readonly "name": string;
|
|
90
107
|
};
|
|
91
108
|
type Arrays_5 = ReadonlyArray<string>;
|
|
92
109
|
type Arrays_6 = ReadonlyArray<string>;
|
|
93
|
-
type
|
|
110
|
+
type Objects_19 = {
|
|
94
111
|
readonly "total": number;
|
|
95
112
|
readonly "completed": number;
|
|
96
113
|
readonly "cancelled": number;
|
|
97
114
|
};
|
|
98
|
-
type
|
|
99
|
-
readonly "offset": number;
|
|
100
|
-
readonly "returned": number;
|
|
101
|
-
readonly "total": number;
|
|
102
|
-
readonly "nextOffset": number | null;
|
|
103
|
-
};
|
|
104
|
-
type Objects_19 = {
|
|
115
|
+
type Objects_21 = {
|
|
105
116
|
readonly "stateId": string;
|
|
106
117
|
readonly "group": "backlog" | "unstarted" | "started" | "completed" | "cancelled";
|
|
107
118
|
};
|
|
108
|
-
type
|
|
119
|
+
type Objects_22 = {
|
|
109
120
|
readonly "projectId": string;
|
|
110
121
|
readonly "requestId"?: string;
|
|
111
122
|
readonly "workItemId": string;
|
|
112
123
|
readonly "type": "blocked_by" | "relates_to" | "duplicate" | "start_before" | "finish_before" | "implemented_by" | "blocking" | "start_after" | "finish_after" | "implements";
|
|
113
124
|
readonly "relatedWorkItemId": string;
|
|
114
125
|
};
|
|
115
|
-
type
|
|
126
|
+
type Objects_23 = {
|
|
116
127
|
readonly "workItemId": string;
|
|
117
128
|
readonly "type": "blocked_by" | "relates_to" | "duplicate" | "start_before" | "finish_before" | "implemented_by" | "blocking" | "start_after" | "finish_after" | "implements";
|
|
118
129
|
readonly "relatedWorkItemId": string;
|
|
@@ -171,68 +182,43 @@ type Union_ = {
|
|
|
171
182
|
readonly "threadId": string;
|
|
172
183
|
} | undefined;
|
|
173
184
|
};
|
|
174
|
-
type Union_2 =
|
|
185
|
+
type Union_2 = Union_1 | null;
|
|
186
|
+
type Union_4 = {
|
|
187
|
+
readonly "claimId": string;
|
|
188
|
+
readonly "claimedBy": Union_1;
|
|
189
|
+
readonly "turnId"?: string | undefined;
|
|
190
|
+
readonly "at": string;
|
|
191
|
+
} | null;
|
|
192
|
+
type Union_8 = {
|
|
193
|
+
readonly "kind": "human";
|
|
194
|
+
readonly "principal": Union_5;
|
|
195
|
+
} | {
|
|
196
|
+
readonly "kind": "agent";
|
|
197
|
+
readonly "threadId": string;
|
|
198
|
+
};
|
|
199
|
+
type Objects_13 = {
|
|
200
|
+
readonly "kind": "human";
|
|
201
|
+
readonly "principal": Union_6;
|
|
202
|
+
};
|
|
203
|
+
type Objects_1 = {
|
|
204
|
+
readonly "instanceId": string;
|
|
205
|
+
readonly "model": string;
|
|
206
|
+
readonly "options"?: Arrays_ | Arrays_1;
|
|
207
|
+
};
|
|
208
|
+
type Union_3 = ReadonlyArray<Union_> | undefined;
|
|
209
|
+
type Union_7 = Objects_13 | {
|
|
175
210
|
readonly "kind": "local-cli";
|
|
176
211
|
readonly "environmentId": string;
|
|
177
212
|
} | {
|
|
178
213
|
readonly "kind": "seat";
|
|
179
214
|
readonly "seatId": string;
|
|
180
|
-
} |
|
|
215
|
+
} | Objects_14 | {
|
|
181
216
|
readonly "kind": "plugin";
|
|
182
217
|
readonly "pluginId": string;
|
|
183
218
|
} | {
|
|
184
219
|
readonly "kind": "system";
|
|
185
220
|
};
|
|
186
|
-
type
|
|
187
|
-
type Objects_1 = {
|
|
188
|
-
readonly "instanceId": string;
|
|
189
|
-
readonly "model": string;
|
|
190
|
-
readonly "options"?: Arrays_ | Arrays_1;
|
|
191
|
-
};
|
|
192
|
-
type Objects_9 = {
|
|
193
|
-
readonly "recordId": string;
|
|
194
|
-
readonly "from": Union_1;
|
|
195
|
-
readonly "to": Union_1 | null;
|
|
196
|
-
readonly "replyTo": string | null;
|
|
197
|
-
readonly "text": string;
|
|
198
|
-
readonly "delivery": "quiet" | "wake" | "steer";
|
|
199
|
-
readonly "createdAt": string;
|
|
200
|
-
readonly "stages": {
|
|
201
|
-
readonly "persisted": string;
|
|
202
|
-
readonly "handedOff": {
|
|
203
|
-
readonly "certainty": "not-dispatched" | "confirmed" | "unknown";
|
|
204
|
-
readonly "evidence"?: "pickup" | undefined;
|
|
205
|
-
readonly "intentId"?: string | undefined;
|
|
206
|
-
readonly "turnId"?: string | undefined;
|
|
207
|
-
readonly "at"?: string | undefined;
|
|
208
|
-
};
|
|
209
|
-
readonly "replied": {
|
|
210
|
-
readonly "recordId"?: string | undefined;
|
|
211
|
-
readonly "turnId"?: string | undefined;
|
|
212
|
-
readonly "at": string;
|
|
213
|
-
} | null;
|
|
214
|
-
};
|
|
215
|
-
readonly "idempotencyKey"?: string | undefined;
|
|
216
|
-
readonly "runId"?: string | undefined;
|
|
217
|
-
readonly "toRole"?: string | undefined;
|
|
218
|
-
readonly "attachments"?: ReadonlyArray<Union_> | undefined;
|
|
219
|
-
};
|
|
220
|
-
type Arrays_4 = ReadonlyArray<Union_4>;
|
|
221
|
-
type Objects_18 = {
|
|
222
|
-
readonly "commentId": string;
|
|
223
|
-
readonly "workItemId": string;
|
|
224
|
-
readonly "projectId": string;
|
|
225
|
-
readonly "sequence": number;
|
|
226
|
-
readonly "revision": number;
|
|
227
|
-
readonly "author": Union_2;
|
|
228
|
-
readonly "body": string | null;
|
|
229
|
-
readonly "bodyWindow"?: Objects_17;
|
|
230
|
-
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
231
|
-
readonly "mentions": ReadonlyArray<Union_4>;
|
|
232
|
-
readonly "parentId": string | null;
|
|
233
|
-
readonly "createdAt": string;
|
|
234
|
-
readonly "editedAt": string | null;
|
|
235
|
-
};
|
|
221
|
+
type Union_9 = Objects_13 | Objects_14;
|
|
236
222
|
type Objects_8 = {
|
|
237
223
|
readonly "id": string;
|
|
238
224
|
readonly "title": string;
|
|
@@ -293,6 +279,45 @@ type Objects_8 = {
|
|
|
293
279
|
readonly "updatedAt": string;
|
|
294
280
|
readonly "archivedAt"?: string | null | undefined;
|
|
295
281
|
};
|
|
282
|
+
type Objects_11 = {
|
|
283
|
+
readonly "items": ReadonlyArray<{
|
|
284
|
+
readonly "recordId": string;
|
|
285
|
+
readonly "from": Union_1;
|
|
286
|
+
readonly "to": Union_2;
|
|
287
|
+
readonly "replyTo": string | null;
|
|
288
|
+
readonly "delivery": "quiet" | "wake" | "steer";
|
|
289
|
+
readonly "createdAt": string;
|
|
290
|
+
readonly "stages": Objects_9;
|
|
291
|
+
readonly "idempotencyKey"?: string | undefined;
|
|
292
|
+
readonly "runId"?: string | undefined;
|
|
293
|
+
readonly "toRole"?: string | undefined;
|
|
294
|
+
readonly "attachments"?: Union_3;
|
|
295
|
+
readonly "bodyState": "present" | "withdrawn" | "deleted" | "unavailable";
|
|
296
|
+
readonly "projectId": string | null;
|
|
297
|
+
readonly "sequence": number;
|
|
298
|
+
readonly "claim": Union_4;
|
|
299
|
+
readonly "textPreview": string | null;
|
|
300
|
+
readonly "textTruncated": boolean;
|
|
301
|
+
}>;
|
|
302
|
+
readonly "nextCursor": string | null;
|
|
303
|
+
readonly "snapshotSequence": number;
|
|
304
|
+
};
|
|
305
|
+
type Arrays_4 = ReadonlyArray<Union_9>;
|
|
306
|
+
type Objects_20 = {
|
|
307
|
+
readonly "commentId": string;
|
|
308
|
+
readonly "workItemId": string;
|
|
309
|
+
readonly "projectId": string;
|
|
310
|
+
readonly "sequence": number;
|
|
311
|
+
readonly "revision": number;
|
|
312
|
+
readonly "author": Union_7;
|
|
313
|
+
readonly "body": string | null;
|
|
314
|
+
readonly "bodyWindow"?: Objects_10;
|
|
315
|
+
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
316
|
+
readonly "mentions": ReadonlyArray<Union_9>;
|
|
317
|
+
readonly "parentId": string | null;
|
|
318
|
+
readonly "createdAt": string;
|
|
319
|
+
readonly "editedAt": string | null;
|
|
320
|
+
};
|
|
296
321
|
type Objects_6 = {
|
|
297
322
|
readonly "role": string;
|
|
298
323
|
readonly "name"?: string;
|
|
@@ -676,16 +701,133 @@ export type ProjectsGetInput = {
|
|
|
676
701
|
export type ProjectsGetOutput = Objects_8;
|
|
677
702
|
export type CommunicationRecordsGetInput = {
|
|
678
703
|
readonly "recordIds": ReadonlyArray<string>;
|
|
704
|
+
readonly "textOffset"?: number;
|
|
705
|
+
readonly "textLimit"?: number;
|
|
679
706
|
};
|
|
680
|
-
export type CommunicationRecordsGetOutput = ReadonlyArray<
|
|
707
|
+
export type CommunicationRecordsGetOutput = ReadonlyArray<{
|
|
708
|
+
readonly "recordId": string;
|
|
709
|
+
readonly "from": Union_1;
|
|
710
|
+
readonly "to": Union_2;
|
|
711
|
+
readonly "replyTo": string | null;
|
|
712
|
+
readonly "text": string | null;
|
|
713
|
+
readonly "delivery": "quiet" | "wake" | "steer";
|
|
714
|
+
readonly "createdAt": string;
|
|
715
|
+
readonly "stages": Objects_9;
|
|
716
|
+
readonly "idempotencyKey"?: string | undefined;
|
|
717
|
+
readonly "runId"?: string | undefined;
|
|
718
|
+
readonly "toRole"?: string | undefined;
|
|
719
|
+
readonly "attachments"?: Union_3;
|
|
720
|
+
readonly "bodyState": "present" | "withdrawn" | "deleted" | "unavailable";
|
|
721
|
+
readonly "projectId": string | null;
|
|
722
|
+
readonly "sequence": number;
|
|
723
|
+
readonly "claim": Union_4;
|
|
724
|
+
readonly "textWindow"?: Objects_10;
|
|
725
|
+
}>;
|
|
681
726
|
export type CommunicationRecordsListInput = {
|
|
727
|
+
readonly "projectId": string;
|
|
728
|
+
readonly "since"?: string | null;
|
|
729
|
+
readonly "until"?: string | null;
|
|
730
|
+
readonly "cursor"?: string | null;
|
|
731
|
+
readonly "limit"?: number;
|
|
732
|
+
} | {
|
|
733
|
+
readonly "projectId": string;
|
|
734
|
+
readonly "since"?: string | null;
|
|
735
|
+
readonly "until"?: string | null;
|
|
736
|
+
readonly "cursor"?: string | null;
|
|
737
|
+
readonly "limit"?: number;
|
|
682
738
|
readonly "threadIds": ReadonlyArray<string>;
|
|
739
|
+
} | {
|
|
740
|
+
readonly "projectId": string;
|
|
683
741
|
readonly "since"?: string | null;
|
|
684
742
|
readonly "until"?: string | null;
|
|
685
|
-
readonly "
|
|
743
|
+
readonly "cursor"?: string | null;
|
|
686
744
|
readonly "limit"?: number;
|
|
745
|
+
readonly "person": Union_5;
|
|
746
|
+
};
|
|
747
|
+
export type CommunicationRecordsListOutput = Objects_11;
|
|
748
|
+
export type CommunicationInboxListInput = {
|
|
749
|
+
readonly "projectId": string;
|
|
750
|
+
readonly "pendingOnly"?: boolean;
|
|
751
|
+
readonly "cursor"?: string | null;
|
|
752
|
+
readonly "limit"?: number;
|
|
753
|
+
};
|
|
754
|
+
export type CommunicationInboxListOutput = Objects_11;
|
|
755
|
+
export type CommunicationPeopleListInput = {
|
|
756
|
+
readonly "projectId": string;
|
|
757
|
+
readonly "cursor"?: string | null;
|
|
758
|
+
readonly "limit"?: number;
|
|
759
|
+
};
|
|
760
|
+
export type CommunicationPeopleListOutput = {
|
|
761
|
+
readonly "items": ReadonlyArray<{
|
|
762
|
+
readonly "person": Union_6;
|
|
763
|
+
readonly "displayName": string;
|
|
764
|
+
}>;
|
|
765
|
+
readonly "nextCursor": string | null;
|
|
766
|
+
readonly "snapshotSequence": number;
|
|
767
|
+
};
|
|
768
|
+
export type CommunicationRecordsSendInput = {
|
|
769
|
+
readonly "projectId": string;
|
|
770
|
+
readonly "requestId"?: string;
|
|
771
|
+
readonly "to": {
|
|
772
|
+
readonly "threadId": string;
|
|
773
|
+
} | {
|
|
774
|
+
readonly "person": Union_5;
|
|
775
|
+
};
|
|
776
|
+
readonly "text": string;
|
|
777
|
+
readonly "replyTo"?: string;
|
|
778
|
+
readonly "delivery"?: "quiet" | "wake" | "steer";
|
|
779
|
+
};
|
|
780
|
+
export type CommunicationRecordsSendOutput = {
|
|
781
|
+
readonly "sequence": number;
|
|
782
|
+
readonly "result": {
|
|
783
|
+
readonly "recordId": string;
|
|
784
|
+
readonly "recordSequence": number | null;
|
|
785
|
+
readonly "recipientWarnings"?: ReadonlyArray<{
|
|
786
|
+
readonly "code": "recipient-read-only" | "recipient-continued" | "recipient-not-running";
|
|
787
|
+
readonly "detail": string;
|
|
788
|
+
readonly "threadId"?: string;
|
|
789
|
+
}>;
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
export type CommunicationRecordsWithdrawInput = Objects_12;
|
|
793
|
+
export type CommunicationRecordsWithdrawOutput = {
|
|
794
|
+
readonly "sequence": number;
|
|
795
|
+
readonly "result": {
|
|
796
|
+
readonly "recordId": string;
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
export type CommunicationRecordsDeleteInput = Objects_12;
|
|
800
|
+
export type CommunicationRecordsDeleteOutput = {
|
|
801
|
+
readonly "sequence": number;
|
|
802
|
+
readonly "result": {
|
|
803
|
+
readonly "recordId": string;
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
export type CommunicationInboxReadInput = {
|
|
807
|
+
readonly "projectId": string;
|
|
808
|
+
readonly "requestId"?: string;
|
|
809
|
+
readonly "limit"?: number;
|
|
810
|
+
};
|
|
811
|
+
export type CommunicationInboxReadOutput = {
|
|
812
|
+
readonly "sequence": number;
|
|
813
|
+
readonly "result": {
|
|
814
|
+
readonly "claimId": string | null;
|
|
815
|
+
readonly "records": ReadonlyArray<{
|
|
816
|
+
readonly "recordId": string;
|
|
817
|
+
readonly "from": Union_1;
|
|
818
|
+
readonly "to": Union_1 | null;
|
|
819
|
+
readonly "replyTo": string | null;
|
|
820
|
+
readonly "createdAt": string;
|
|
821
|
+
readonly "sequence": number;
|
|
822
|
+
readonly "text": string;
|
|
823
|
+
readonly "textWindow"?: Objects_10;
|
|
824
|
+
} | {
|
|
825
|
+
readonly "recordId": string;
|
|
826
|
+
readonly "gone": "withdrawn" | "deleted";
|
|
827
|
+
}>;
|
|
828
|
+
readonly "hasMore": boolean;
|
|
829
|
+
};
|
|
687
830
|
};
|
|
688
|
-
export type CommunicationRecordsListOutput = ReadonlyArray<Objects_9>;
|
|
689
831
|
export type ApprovalsPendingListInput = {
|
|
690
832
|
readonly "threadId": string;
|
|
691
833
|
};
|
|
@@ -712,7 +854,7 @@ export type MemoryExperiencesListOutput = {
|
|
|
712
854
|
readonly "items": ReadonlyArray<{
|
|
713
855
|
readonly "experienceId": string;
|
|
714
856
|
readonly "status": "active" | "forgotten" | "erased";
|
|
715
|
-
readonly "author":
|
|
857
|
+
readonly "author": Union_7;
|
|
716
858
|
readonly "sourceThreadId": string | null;
|
|
717
859
|
readonly "sourceTurnId": string | null;
|
|
718
860
|
readonly "currentRevision": number;
|
|
@@ -731,7 +873,7 @@ export type MemoryExperiencesGetInput = {
|
|
|
731
873
|
export type MemoryExperiencesGetOutput = {
|
|
732
874
|
readonly "experienceId": string;
|
|
733
875
|
readonly "status": "active" | "forgotten" | "erased";
|
|
734
|
-
readonly "author":
|
|
876
|
+
readonly "author": Union_7;
|
|
735
877
|
readonly "sourceThreadId": string | null;
|
|
736
878
|
readonly "sourceTurnId": string | null;
|
|
737
879
|
readonly "currentRevision": number;
|
|
@@ -741,9 +883,9 @@ export type MemoryExperiencesGetOutput = {
|
|
|
741
883
|
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
742
884
|
readonly "body": string | null;
|
|
743
885
|
readonly "forgottenAt": string | null;
|
|
744
|
-
readonly "forgottenBy":
|
|
886
|
+
readonly "forgottenBy": Union_7 | null;
|
|
745
887
|
readonly "erasedAt": string | null;
|
|
746
|
-
readonly "erasedBy":
|
|
888
|
+
readonly "erasedBy": Union_7 | null;
|
|
747
889
|
};
|
|
748
890
|
export type MemoryExperiencesHistoryInput = {
|
|
749
891
|
readonly "projectId": string;
|
|
@@ -756,7 +898,7 @@ export type MemoryExperiencesHistoryOutput = {
|
|
|
756
898
|
readonly "experienceId": string;
|
|
757
899
|
readonly "revision": number;
|
|
758
900
|
readonly "baseRevision": number | null;
|
|
759
|
-
readonly "author":
|
|
901
|
+
readonly "author": Union_7;
|
|
760
902
|
readonly "createdAt": string;
|
|
761
903
|
readonly "body": string | null;
|
|
762
904
|
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
@@ -797,7 +939,7 @@ export type MemoryExperiencesRecordInput = {
|
|
|
797
939
|
};
|
|
798
940
|
export type MemoryExperiencesRecordOutput = {
|
|
799
941
|
readonly "sequence": number;
|
|
800
|
-
readonly "result":
|
|
942
|
+
readonly "result": Objects_15;
|
|
801
943
|
};
|
|
802
944
|
export type MemoryExperiencesReviseInput = {
|
|
803
945
|
readonly "projectId": string;
|
|
@@ -808,13 +950,13 @@ export type MemoryExperiencesReviseInput = {
|
|
|
808
950
|
};
|
|
809
951
|
export type MemoryExperiencesReviseOutput = {
|
|
810
952
|
readonly "sequence": number;
|
|
811
|
-
readonly "result":
|
|
953
|
+
readonly "result": Objects_15;
|
|
812
954
|
};
|
|
813
|
-
export type MemoryExperiencesForgetInput =
|
|
814
|
-
export type MemoryExperiencesForgetOutput =
|
|
815
|
-
export type MemoryExperiencesRestoreInput =
|
|
816
|
-
export type MemoryExperiencesRestoreOutput =
|
|
817
|
-
export type MemoryExperiencesEraseInput =
|
|
955
|
+
export type MemoryExperiencesForgetInput = Objects_16;
|
|
956
|
+
export type MemoryExperiencesForgetOutput = Objects_17;
|
|
957
|
+
export type MemoryExperiencesRestoreInput = Objects_16;
|
|
958
|
+
export type MemoryExperiencesRestoreOutput = Objects_17;
|
|
959
|
+
export type MemoryExperiencesEraseInput = Objects_16;
|
|
818
960
|
export type MemoryExperiencesEraseOutput = {
|
|
819
961
|
readonly "sequence": number;
|
|
820
962
|
readonly "result": {
|
|
@@ -841,7 +983,7 @@ export type WorkItemsListInput = {
|
|
|
841
983
|
readonly "projectId": string;
|
|
842
984
|
readonly "stateIds"?: ReadonlyArray<string>;
|
|
843
985
|
readonly "stateGroups"?: ReadonlyArray<"backlog" | "unstarted" | "started" | "completed" | "cancelled">;
|
|
844
|
-
readonly "assignees"?: ReadonlyArray<
|
|
986
|
+
readonly "assignees"?: ReadonlyArray<Union_8 | "me" | "none">;
|
|
845
987
|
readonly "orderBy"?: "created" | "updated";
|
|
846
988
|
readonly "cursor"?: string | null;
|
|
847
989
|
readonly "limit"?: number;
|
|
@@ -853,7 +995,7 @@ export type WorkItemsListOutput = {
|
|
|
853
995
|
readonly "sequenceId": number;
|
|
854
996
|
readonly "title": string | null;
|
|
855
997
|
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
856
|
-
readonly "state":
|
|
998
|
+
readonly "state": Objects_18;
|
|
857
999
|
readonly "priority": "urgent" | "high" | "medium" | "low" | "none";
|
|
858
1000
|
readonly "assignees": Arrays_4;
|
|
859
1001
|
readonly "labelIds": Arrays_5;
|
|
@@ -867,8 +1009,8 @@ export type WorkItemsListOutput = {
|
|
|
867
1009
|
readonly "revision": number;
|
|
868
1010
|
readonly "blockedBy": Arrays_6;
|
|
869
1011
|
readonly "blockedByTotal": number;
|
|
870
|
-
readonly "childCounts":
|
|
871
|
-
readonly "createdBy":
|
|
1012
|
+
readonly "childCounts": Objects_19;
|
|
1013
|
+
readonly "createdBy": Union_7;
|
|
872
1014
|
readonly "createdAt": string;
|
|
873
1015
|
readonly "updatedAt": string;
|
|
874
1016
|
}>;
|
|
@@ -895,7 +1037,7 @@ export type WorkItemsGetOutput = {
|
|
|
895
1037
|
readonly "sequenceId": number;
|
|
896
1038
|
readonly "title": string | null;
|
|
897
1039
|
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
898
|
-
readonly "state":
|
|
1040
|
+
readonly "state": Objects_18;
|
|
899
1041
|
readonly "priority": "urgent" | "high" | "medium" | "low" | "none";
|
|
900
1042
|
readonly "assignees": Arrays_4;
|
|
901
1043
|
readonly "labelIds": Arrays_5;
|
|
@@ -909,12 +1051,12 @@ export type WorkItemsGetOutput = {
|
|
|
909
1051
|
readonly "revision": number;
|
|
910
1052
|
readonly "blockedBy": Arrays_6;
|
|
911
1053
|
readonly "blockedByTotal": number;
|
|
912
|
-
readonly "childCounts":
|
|
913
|
-
readonly "createdBy":
|
|
1054
|
+
readonly "childCounts": Objects_19;
|
|
1055
|
+
readonly "createdBy": Union_7;
|
|
914
1056
|
readonly "createdAt": string;
|
|
915
1057
|
readonly "updatedAt": string;
|
|
916
1058
|
readonly "description": string | null;
|
|
917
|
-
readonly "descriptionWindow"?:
|
|
1059
|
+
readonly "descriptionWindow"?: Objects_10;
|
|
918
1060
|
}>;
|
|
919
1061
|
readonly "missingWorkItemIds": ReadonlyArray<string>;
|
|
920
1062
|
readonly "missingSequenceIds": ReadonlyArray<number>;
|
|
@@ -953,7 +1095,7 @@ export type WorkCommentsListInput = {
|
|
|
953
1095
|
readonly "textLimit"?: number;
|
|
954
1096
|
};
|
|
955
1097
|
export type WorkCommentsListOutput = {
|
|
956
|
-
readonly "items": ReadonlyArray<
|
|
1098
|
+
readonly "items": ReadonlyArray<Objects_20>;
|
|
957
1099
|
readonly "nextCursor": string | null;
|
|
958
1100
|
readonly "snapshotSequence": number;
|
|
959
1101
|
};
|
|
@@ -964,7 +1106,7 @@ export type WorkCommentsGetInput = {
|
|
|
964
1106
|
readonly "textLimit"?: number;
|
|
965
1107
|
};
|
|
966
1108
|
export type WorkCommentsGetOutput = {
|
|
967
|
-
readonly "comment":
|
|
1109
|
+
readonly "comment": Objects_20;
|
|
968
1110
|
readonly "snapshotSequence": number;
|
|
969
1111
|
};
|
|
970
1112
|
export type WorkHistoryListInput = {
|
|
@@ -978,7 +1120,7 @@ export type WorkHistoryListOutput = {
|
|
|
978
1120
|
readonly "items": ReadonlyArray<{
|
|
979
1121
|
readonly "sequence": number;
|
|
980
1122
|
readonly "workItemId": string | null;
|
|
981
|
-
readonly "actor":
|
|
1123
|
+
readonly "actor": Union_7;
|
|
982
1124
|
readonly "at": string;
|
|
983
1125
|
readonly "target": {
|
|
984
1126
|
readonly "kind": "item" | "comment" | "state" | "label" | "relation";
|
|
@@ -991,12 +1133,12 @@ export type WorkHistoryListOutput = {
|
|
|
991
1133
|
readonly "newRevision": number | null;
|
|
992
1134
|
} | {
|
|
993
1135
|
readonly "field": "state";
|
|
994
|
-
readonly "old":
|
|
995
|
-
readonly "new":
|
|
1136
|
+
readonly "old": Objects_21 | null;
|
|
1137
|
+
readonly "new": Objects_21 | null;
|
|
996
1138
|
} | {
|
|
997
1139
|
readonly "field": "assignees" | "mentions";
|
|
998
|
-
readonly "old": ReadonlyArray<
|
|
999
|
-
readonly "new": ReadonlyArray<
|
|
1140
|
+
readonly "old": ReadonlyArray<Union_9>;
|
|
1141
|
+
readonly "new": ReadonlyArray<Union_9>;
|
|
1000
1142
|
} | {
|
|
1001
1143
|
readonly "field": "completedAt";
|
|
1002
1144
|
readonly "old": string | null;
|
|
@@ -1013,7 +1155,7 @@ export type WorkItemsCreateInput = {
|
|
|
1013
1155
|
readonly "title": string;
|
|
1014
1156
|
readonly "description"?: string;
|
|
1015
1157
|
readonly "stateId"?: string;
|
|
1016
|
-
readonly "assignees"?: ReadonlyArray<
|
|
1158
|
+
readonly "assignees"?: ReadonlyArray<Union_8>;
|
|
1017
1159
|
};
|
|
1018
1160
|
export type WorkItemsCreateOutput = {
|
|
1019
1161
|
readonly "sequence": number;
|
|
@@ -1032,7 +1174,7 @@ export type WorkItemsUpdateInput = {
|
|
|
1032
1174
|
readonly "title"?: string;
|
|
1033
1175
|
readonly "description"?: string;
|
|
1034
1176
|
readonly "stateId"?: string;
|
|
1035
|
-
readonly "assignees"?: ReadonlyArray<
|
|
1177
|
+
readonly "assignees"?: ReadonlyArray<Union_8>;
|
|
1036
1178
|
};
|
|
1037
1179
|
export type WorkItemsUpdateOutput = {
|
|
1038
1180
|
readonly "sequence": number;
|
|
@@ -1056,15 +1198,15 @@ export type WorkItemsClaimOutput = {
|
|
|
1056
1198
|
readonly "version": number;
|
|
1057
1199
|
};
|
|
1058
1200
|
};
|
|
1059
|
-
export type WorkRelationsAddInput =
|
|
1201
|
+
export type WorkRelationsAddInput = Objects_22;
|
|
1060
1202
|
export type WorkRelationsAddOutput = {
|
|
1061
1203
|
readonly "sequence": number;
|
|
1062
|
-
readonly "result":
|
|
1204
|
+
readonly "result": Objects_23;
|
|
1063
1205
|
};
|
|
1064
|
-
export type WorkRelationsRemoveInput =
|
|
1206
|
+
export type WorkRelationsRemoveInput = Objects_22;
|
|
1065
1207
|
export type WorkRelationsRemoveOutput = {
|
|
1066
1208
|
readonly "sequence": number;
|
|
1067
|
-
readonly "result":
|
|
1209
|
+
readonly "result": Objects_23;
|
|
1068
1210
|
};
|
|
1069
1211
|
export type WorkCommentsPostInput = {
|
|
1070
1212
|
readonly "projectId": string;
|
|
@@ -1072,7 +1214,7 @@ export type WorkCommentsPostInput = {
|
|
|
1072
1214
|
readonly "commentId"?: string;
|
|
1073
1215
|
readonly "workItemId": string;
|
|
1074
1216
|
readonly "body": string;
|
|
1075
|
-
readonly "mentions"?: ReadonlyArray<
|
|
1217
|
+
readonly "mentions"?: ReadonlyArray<Union_8>;
|
|
1076
1218
|
readonly "parentId"?: string;
|
|
1077
1219
|
};
|
|
1078
1220
|
export type WorkCommentsPostOutput = {
|
|
@@ -1100,6 +1242,16 @@ export interface PluginDataPorts {
|
|
|
1100
1242
|
readonly records: {
|
|
1101
1243
|
readonly get: (input: CommunicationRecordsGetInput) => Promise<CommunicationRecordsGetOutput>;
|
|
1102
1244
|
readonly list: (input: CommunicationRecordsListInput) => Promise<CommunicationRecordsListOutput>;
|
|
1245
|
+
readonly send: (input: CommunicationRecordsSendInput) => Promise<CommunicationRecordsSendOutput>;
|
|
1246
|
+
readonly withdraw: (input: CommunicationRecordsWithdrawInput) => Promise<CommunicationRecordsWithdrawOutput>;
|
|
1247
|
+
readonly delete: (input: CommunicationRecordsDeleteInput) => Promise<CommunicationRecordsDeleteOutput>;
|
|
1248
|
+
};
|
|
1249
|
+
readonly inbox: {
|
|
1250
|
+
readonly list: (input: CommunicationInboxListInput) => Promise<CommunicationInboxListOutput>;
|
|
1251
|
+
readonly read: (input: CommunicationInboxReadInput) => Promise<CommunicationInboxReadOutput>;
|
|
1252
|
+
};
|
|
1253
|
+
readonly people: {
|
|
1254
|
+
readonly list: (input: CommunicationPeopleListInput) => Promise<CommunicationPeopleListOutput>;
|
|
1103
1255
|
};
|
|
1104
1256
|
};
|
|
1105
1257
|
readonly approvals: {
|