@pstdio/sdk 0.40.0 → 0.41.0
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 +1 -1
- package/dist/api/index.js +329 -25
- package/dist/api.d.ts +4 -4
- package/dist/client/index.js +58 -14
- package/dist/client.d.ts +2 -2
- package/dist/data.d.ts +1 -1
- package/dist/extensions/index.js +167 -17
- package/dist/extensions.d.ts +2 -2
- package/dist/hooks.d.ts +4 -4
- package/dist/{index-1twOhV2h.d.ts → index-B8kqMxoR.d.ts} +230 -45
- package/dist/{index-Cbt2YiR-.d.ts → index-BvsVU-eX.d.ts} +1943 -330
- package/dist/{index-BU8PNmuX.d.ts → index-CJNVNXEP.d.ts} +1 -1
- package/dist/resources/index.js +326 -24
- package/dist/resources.d.ts +2 -2
- package/dist/sessions-BtOnRpZy.d.ts +2 -0
- package/dist/skills-BtOnRpZy.d.ts +2 -0
- package/dist/testing/index.js +60 -3
- package/dist/testing.d.ts +13 -2
- package/package.json +1 -1
- package/dist/sessions-46B897Gi.d.ts +0 -2
- package/dist/skills-46B897Gi.d.ts +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import "./skills-
|
|
3
|
-
import { n as WorkspaceListItem, t as Workspace } from "./index-
|
|
1
|
+
import { $ as ListExtensionCommandsResponse, $u as ApprovalInput, A as EnableInstalledExtensionRequest, Ad as ResourceAnchor, B as ConfigureExtensionConnectionInput, Ff as ListActivityResponse, H as ListExtensionConnectionsResponse, I as UpgradeProjectExtensionResponse, Id as ResourceRef, If as ListProjectActivityInput, L as CommandExecuteRequest, Md as ResourceAnchorPage, Mf as AgentModel, N as ListProjectExtensionsResponse, Nd as ResourceAnchorQuery, Q as ListExtensionAppearanceResponse, Qu as UpdateSkillInput, R as CommandExecuteResponse, Td as UpdateNotificationInput, V as ExtensionConnectionRecord, Xs as HarnessCommandState, Yu as Skill, Zs as HarnessOperation, Zu as SkillWithContent, _ as CreateProjectInput, _d as ListNotificationsResponse, _t as IssueAutomationTokenResponse, a as RemoveWorktreeResponse, ad as ListSessionActivityResponse, c as WorkspaceFileContent, cd as Session, ct as BoardViewUpdate, dd as SessionConversationResponse, ed as CreateSessionInput, f as WorkspaceProviderDescriptor, fd as SessionConversationSources, gd as ListNotificationsQuery, gt as IssueAutomationTokenInput, h as UpdateSettingsInput, hd as CreateNotificationInput, ht as CreateAutomationRunInput, i as ListWorkspaceFilesInput, id as ListSessionActivityInput, j as EnableInstalledExtensionResponse, jf as AgentInfo, l as WorkspaceFileEntry, ld as SessionAttachment, m as Settings, n as ListWorkspaceActivityInput, nd as FollowUpInput, o as RenameWorkspaceInput, od as ResolveSessionIdInput, p as WriteWorkspaceFileInput, pd as SessionQueuedMessagesResponse, qs as DraftHarnessCommandInput, r as ListWorkspaceActivityResponse, rd as FollowUpResponse, sd as ResolveSessionIdResponse, st as BoardViewCreate, t as CreateWorkspaceInput, td as CreateSessionResponse, u as WorkspaceFilesResponse, ut as AutomationRun, v as Project, vd as Notification, vt as ListAutomationRunEventsResponse, wd as NotificationStatus, y as UpdateProjectInput, yt as ListAutomationTokensResponse, z as DispatchExtensionEventInput } from "./index-BvsVU-eX.js";
|
|
2
|
+
import "./skills-BtOnRpZy.js";
|
|
3
|
+
import { n as WorkspaceListItem, t as Workspace } from "./index-CJNVNXEP.js";
|
|
4
4
|
//#region src/client/request.d.ts
|
|
5
5
|
type ClientOptions = {
|
|
6
6
|
baseUrl?: string;
|
|
@@ -11,6 +11,9 @@ declare class PstdioApiError extends Error {
|
|
|
11
11
|
status: number;
|
|
12
12
|
constructor(message: string, status: number);
|
|
13
13
|
}
|
|
14
|
+
declare class PstdioConnectionError extends Error {
|
|
15
|
+
constructor(cause: unknown);
|
|
16
|
+
}
|
|
14
17
|
type RequestOptions = {
|
|
15
18
|
method?: string;
|
|
16
19
|
body?: unknown;
|
|
@@ -45,15 +48,18 @@ declare const createBoardViewsClient: (request: RequestFn) => {
|
|
|
45
48
|
board: (projectId: string, boardId: string) => Promise<{
|
|
46
49
|
id: string;
|
|
47
50
|
title: string;
|
|
48
|
-
|
|
51
|
+
kind: "kanban" | "dataTable";
|
|
52
|
+
extensionId: string | null;
|
|
49
53
|
fields: {
|
|
50
54
|
id: string;
|
|
51
55
|
label: string;
|
|
52
|
-
kind: "string" | "number" | "status" | "date" | "enum" | "enum-multi" | "user";
|
|
56
|
+
kind: "string" | "number" | "boolean" | "status" | "date" | "enum" | "enum-multi" | "user";
|
|
57
|
+
conditions: ("contains" | "does-not-contain" | "is" | "is-not" | "gt" | "gte" | "lt" | "lte" | "is-before" | "is-after" | "is-on-or-before" | "is-on-or-after" | "is-any-of" | "is-none-of" | "has-any-of" | "has-all-of" | "has-none-of" | "is-empty" | "is-not-empty")[];
|
|
53
58
|
filterable: boolean;
|
|
54
59
|
groupable: boolean;
|
|
55
60
|
sortable: boolean;
|
|
56
61
|
displayable: boolean;
|
|
62
|
+
legacyValues?: Record<string, boolean> | undefined;
|
|
57
63
|
options?: {
|
|
58
64
|
value: string;
|
|
59
65
|
label: string;
|
|
@@ -68,27 +74,52 @@ declare const createBoardViewsClient: (request: RequestFn) => {
|
|
|
68
74
|
viewMode: "board" | "list";
|
|
69
75
|
columnGrouping: string;
|
|
70
76
|
rowGrouping: string;
|
|
71
|
-
ordering: {
|
|
72
|
-
attributeId: string;
|
|
73
|
-
direction: "asc" | "desc";
|
|
74
|
-
};
|
|
75
77
|
displayProperties: string[];
|
|
78
|
+
} | {
|
|
79
|
+
grouping: string;
|
|
80
|
+
rowNumbers: boolean;
|
|
81
|
+
wrapRows: boolean;
|
|
82
|
+
showStats: boolean;
|
|
83
|
+
hiddenColumns: string[];
|
|
84
|
+
columnOrder: string[];
|
|
85
|
+
};
|
|
86
|
+
filter: {
|
|
87
|
+
conjunction: "and" | "or";
|
|
88
|
+
rules: {
|
|
89
|
+
attributeId: string;
|
|
90
|
+
condition: "contains" | "does-not-contain" | "is" | "is-not" | "gt" | "gte" | "lt" | "lte" | "is-before" | "is-after" | "is-on-or-before" | "is-on-or-after" | "is-any-of" | "is-none-of" | "has-any-of" | "has-all-of" | "has-none-of" | "is-empty" | "is-not-empty";
|
|
91
|
+
value?: string | number | boolean | string[] | undefined;
|
|
92
|
+
}[];
|
|
93
|
+
groups?: {
|
|
94
|
+
conjunction: "and" | "or";
|
|
95
|
+
rules: {
|
|
96
|
+
attributeId: string;
|
|
97
|
+
condition: "contains" | "does-not-contain" | "is" | "is-not" | "gt" | "gte" | "lt" | "lte" | "is-before" | "is-after" | "is-on-or-before" | "is-on-or-after" | "is-any-of" | "is-none-of" | "has-any-of" | "has-all-of" | "has-none-of" | "is-empty" | "is-not-empty";
|
|
98
|
+
value?: string | number | boolean | string[] | undefined;
|
|
99
|
+
}[];
|
|
100
|
+
}[] | undefined;
|
|
76
101
|
};
|
|
77
|
-
|
|
102
|
+
sorts: {
|
|
103
|
+
attributeId: string;
|
|
104
|
+
direction: "asc" | "desc";
|
|
105
|
+
}[];
|
|
78
106
|
builtIn: boolean;
|
|
79
107
|
}>;
|
|
80
108
|
boards: (projectId: string) => Promise<{
|
|
81
109
|
id: string;
|
|
82
110
|
title: string;
|
|
83
|
-
|
|
111
|
+
kind: "kanban" | "dataTable";
|
|
112
|
+
extensionId: string | null;
|
|
84
113
|
fields: {
|
|
85
114
|
id: string;
|
|
86
115
|
label: string;
|
|
87
|
-
kind: "string" | "number" | "status" | "date" | "enum" | "enum-multi" | "user";
|
|
116
|
+
kind: "string" | "number" | "boolean" | "status" | "date" | "enum" | "enum-multi" | "user";
|
|
117
|
+
conditions: ("contains" | "does-not-contain" | "is" | "is-not" | "gt" | "gte" | "lt" | "lte" | "is-before" | "is-after" | "is-on-or-before" | "is-on-or-after" | "is-any-of" | "is-none-of" | "has-any-of" | "has-all-of" | "has-none-of" | "is-empty" | "is-not-empty")[];
|
|
88
118
|
filterable: boolean;
|
|
89
119
|
groupable: boolean;
|
|
90
120
|
sortable: boolean;
|
|
91
121
|
displayable: boolean;
|
|
122
|
+
legacyValues?: Record<string, boolean> | undefined;
|
|
92
123
|
options?: {
|
|
93
124
|
value: string;
|
|
94
125
|
label: string;
|
|
@@ -104,13 +135,35 @@ declare const createBoardViewsClient: (request: RequestFn) => {
|
|
|
104
135
|
viewMode: "board" | "list";
|
|
105
136
|
columnGrouping: string;
|
|
106
137
|
rowGrouping: string;
|
|
107
|
-
ordering: {
|
|
108
|
-
attributeId: string;
|
|
109
|
-
direction: "asc" | "desc";
|
|
110
|
-
};
|
|
111
138
|
displayProperties: string[];
|
|
139
|
+
} | {
|
|
140
|
+
grouping: string;
|
|
141
|
+
rowNumbers: boolean;
|
|
142
|
+
wrapRows: boolean;
|
|
143
|
+
showStats: boolean;
|
|
144
|
+
hiddenColumns: string[];
|
|
145
|
+
columnOrder: string[];
|
|
112
146
|
};
|
|
113
|
-
|
|
147
|
+
filter: {
|
|
148
|
+
conjunction: "and" | "or";
|
|
149
|
+
rules: {
|
|
150
|
+
attributeId: string;
|
|
151
|
+
condition: "contains" | "does-not-contain" | "is" | "is-not" | "gt" | "gte" | "lt" | "lte" | "is-before" | "is-after" | "is-on-or-before" | "is-on-or-after" | "is-any-of" | "is-none-of" | "has-any-of" | "has-all-of" | "has-none-of" | "is-empty" | "is-not-empty";
|
|
152
|
+
value?: string | number | boolean | string[] | undefined;
|
|
153
|
+
}[];
|
|
154
|
+
groups?: {
|
|
155
|
+
conjunction: "and" | "or";
|
|
156
|
+
rules: {
|
|
157
|
+
attributeId: string;
|
|
158
|
+
condition: "contains" | "does-not-contain" | "is" | "is-not" | "gt" | "gte" | "lt" | "lte" | "is-before" | "is-after" | "is-on-or-before" | "is-on-or-after" | "is-any-of" | "is-none-of" | "has-any-of" | "has-all-of" | "has-none-of" | "is-empty" | "is-not-empty";
|
|
159
|
+
value?: string | number | boolean | string[] | undefined;
|
|
160
|
+
}[];
|
|
161
|
+
}[] | undefined;
|
|
162
|
+
};
|
|
163
|
+
sorts: {
|
|
164
|
+
attributeId: string;
|
|
165
|
+
direction: "asc" | "desc";
|
|
166
|
+
}[];
|
|
114
167
|
builtIn: boolean;
|
|
115
168
|
}[];
|
|
116
169
|
defaultViewId: string;
|
|
@@ -123,13 +176,35 @@ declare const createBoardViewsClient: (request: RequestFn) => {
|
|
|
123
176
|
viewMode: "board" | "list";
|
|
124
177
|
columnGrouping: string;
|
|
125
178
|
rowGrouping: string;
|
|
126
|
-
ordering: {
|
|
127
|
-
attributeId: string;
|
|
128
|
-
direction: "asc" | "desc";
|
|
129
|
-
};
|
|
130
179
|
displayProperties: string[];
|
|
180
|
+
} | {
|
|
181
|
+
grouping: string;
|
|
182
|
+
rowNumbers: boolean;
|
|
183
|
+
wrapRows: boolean;
|
|
184
|
+
showStats: boolean;
|
|
185
|
+
hiddenColumns: string[];
|
|
186
|
+
columnOrder: string[];
|
|
187
|
+
};
|
|
188
|
+
filter: {
|
|
189
|
+
conjunction: "and" | "or";
|
|
190
|
+
rules: {
|
|
191
|
+
attributeId: string;
|
|
192
|
+
condition: "contains" | "does-not-contain" | "is" | "is-not" | "gt" | "gte" | "lt" | "lte" | "is-before" | "is-after" | "is-on-or-before" | "is-on-or-after" | "is-any-of" | "is-none-of" | "has-any-of" | "has-all-of" | "has-none-of" | "is-empty" | "is-not-empty";
|
|
193
|
+
value?: string | number | boolean | string[] | undefined;
|
|
194
|
+
}[];
|
|
195
|
+
groups?: {
|
|
196
|
+
conjunction: "and" | "or";
|
|
197
|
+
rules: {
|
|
198
|
+
attributeId: string;
|
|
199
|
+
condition: "contains" | "does-not-contain" | "is" | "is-not" | "gt" | "gte" | "lt" | "lte" | "is-before" | "is-after" | "is-on-or-before" | "is-on-or-after" | "is-any-of" | "is-none-of" | "has-any-of" | "has-all-of" | "has-none-of" | "is-empty" | "is-not-empty";
|
|
200
|
+
value?: string | number | boolean | string[] | undefined;
|
|
201
|
+
}[];
|
|
202
|
+
}[] | undefined;
|
|
131
203
|
};
|
|
132
|
-
|
|
204
|
+
sorts: {
|
|
205
|
+
attributeId: string;
|
|
206
|
+
direction: "asc" | "desc";
|
|
207
|
+
}[];
|
|
133
208
|
builtIn: boolean;
|
|
134
209
|
}[]>;
|
|
135
210
|
create: (projectId: string, boardId: string, input: BoardViewCreate) => Promise<{
|
|
@@ -140,13 +215,35 @@ declare const createBoardViewsClient: (request: RequestFn) => {
|
|
|
140
215
|
viewMode: "board" | "list";
|
|
141
216
|
columnGrouping: string;
|
|
142
217
|
rowGrouping: string;
|
|
143
|
-
ordering: {
|
|
144
|
-
attributeId: string;
|
|
145
|
-
direction: "asc" | "desc";
|
|
146
|
-
};
|
|
147
218
|
displayProperties: string[];
|
|
219
|
+
} | {
|
|
220
|
+
grouping: string;
|
|
221
|
+
rowNumbers: boolean;
|
|
222
|
+
wrapRows: boolean;
|
|
223
|
+
showStats: boolean;
|
|
224
|
+
hiddenColumns: string[];
|
|
225
|
+
columnOrder: string[];
|
|
226
|
+
};
|
|
227
|
+
filter: {
|
|
228
|
+
conjunction: "and" | "or";
|
|
229
|
+
rules: {
|
|
230
|
+
attributeId: string;
|
|
231
|
+
condition: "contains" | "does-not-contain" | "is" | "is-not" | "gt" | "gte" | "lt" | "lte" | "is-before" | "is-after" | "is-on-or-before" | "is-on-or-after" | "is-any-of" | "is-none-of" | "has-any-of" | "has-all-of" | "has-none-of" | "is-empty" | "is-not-empty";
|
|
232
|
+
value?: string | number | boolean | string[] | undefined;
|
|
233
|
+
}[];
|
|
234
|
+
groups?: {
|
|
235
|
+
conjunction: "and" | "or";
|
|
236
|
+
rules: {
|
|
237
|
+
attributeId: string;
|
|
238
|
+
condition: "contains" | "does-not-contain" | "is" | "is-not" | "gt" | "gte" | "lt" | "lte" | "is-before" | "is-after" | "is-on-or-before" | "is-on-or-after" | "is-any-of" | "is-none-of" | "has-any-of" | "has-all-of" | "has-none-of" | "is-empty" | "is-not-empty";
|
|
239
|
+
value?: string | number | boolean | string[] | undefined;
|
|
240
|
+
}[];
|
|
241
|
+
}[] | undefined;
|
|
148
242
|
};
|
|
149
|
-
|
|
243
|
+
sorts: {
|
|
244
|
+
attributeId: string;
|
|
245
|
+
direction: "asc" | "desc";
|
|
246
|
+
}[];
|
|
150
247
|
builtIn: boolean;
|
|
151
248
|
}>;
|
|
152
249
|
update: (projectId: string, id: string, input: BoardViewUpdate) => Promise<{
|
|
@@ -157,13 +254,35 @@ declare const createBoardViewsClient: (request: RequestFn) => {
|
|
|
157
254
|
viewMode: "board" | "list";
|
|
158
255
|
columnGrouping: string;
|
|
159
256
|
rowGrouping: string;
|
|
160
|
-
ordering: {
|
|
161
|
-
attributeId: string;
|
|
162
|
-
direction: "asc" | "desc";
|
|
163
|
-
};
|
|
164
257
|
displayProperties: string[];
|
|
258
|
+
} | {
|
|
259
|
+
grouping: string;
|
|
260
|
+
rowNumbers: boolean;
|
|
261
|
+
wrapRows: boolean;
|
|
262
|
+
showStats: boolean;
|
|
263
|
+
hiddenColumns: string[];
|
|
264
|
+
columnOrder: string[];
|
|
265
|
+
};
|
|
266
|
+
filter: {
|
|
267
|
+
conjunction: "and" | "or";
|
|
268
|
+
rules: {
|
|
269
|
+
attributeId: string;
|
|
270
|
+
condition: "contains" | "does-not-contain" | "is" | "is-not" | "gt" | "gte" | "lt" | "lte" | "is-before" | "is-after" | "is-on-or-before" | "is-on-or-after" | "is-any-of" | "is-none-of" | "has-any-of" | "has-all-of" | "has-none-of" | "is-empty" | "is-not-empty";
|
|
271
|
+
value?: string | number | boolean | string[] | undefined;
|
|
272
|
+
}[];
|
|
273
|
+
groups?: {
|
|
274
|
+
conjunction: "and" | "or";
|
|
275
|
+
rules: {
|
|
276
|
+
attributeId: string;
|
|
277
|
+
condition: "contains" | "does-not-contain" | "is" | "is-not" | "gt" | "gte" | "lt" | "lte" | "is-before" | "is-after" | "is-on-or-before" | "is-on-or-after" | "is-any-of" | "is-none-of" | "has-any-of" | "has-all-of" | "has-none-of" | "is-empty" | "is-not-empty";
|
|
278
|
+
value?: string | number | boolean | string[] | undefined;
|
|
279
|
+
}[];
|
|
280
|
+
}[] | undefined;
|
|
165
281
|
};
|
|
166
|
-
|
|
282
|
+
sorts: {
|
|
283
|
+
attributeId: string;
|
|
284
|
+
direction: "asc" | "desc";
|
|
285
|
+
}[];
|
|
167
286
|
builtIn: boolean;
|
|
168
287
|
}>;
|
|
169
288
|
delete: (projectId: string, id: string) => Promise<{
|
|
@@ -178,13 +297,35 @@ declare const createBoardViewsClient: (request: RequestFn) => {
|
|
|
178
297
|
viewMode: "board" | "list";
|
|
179
298
|
columnGrouping: string;
|
|
180
299
|
rowGrouping: string;
|
|
181
|
-
ordering: {
|
|
182
|
-
attributeId: string;
|
|
183
|
-
direction: "asc" | "desc";
|
|
184
|
-
};
|
|
185
300
|
displayProperties: string[];
|
|
301
|
+
} | {
|
|
302
|
+
grouping: string;
|
|
303
|
+
rowNumbers: boolean;
|
|
304
|
+
wrapRows: boolean;
|
|
305
|
+
showStats: boolean;
|
|
306
|
+
hiddenColumns: string[];
|
|
307
|
+
columnOrder: string[];
|
|
308
|
+
};
|
|
309
|
+
filter: {
|
|
310
|
+
conjunction: "and" | "or";
|
|
311
|
+
rules: {
|
|
312
|
+
attributeId: string;
|
|
313
|
+
condition: "contains" | "does-not-contain" | "is" | "is-not" | "gt" | "gte" | "lt" | "lte" | "is-before" | "is-after" | "is-on-or-before" | "is-on-or-after" | "is-any-of" | "is-none-of" | "has-any-of" | "has-all-of" | "has-none-of" | "is-empty" | "is-not-empty";
|
|
314
|
+
value?: string | number | boolean | string[] | undefined;
|
|
315
|
+
}[];
|
|
316
|
+
groups?: {
|
|
317
|
+
conjunction: "and" | "or";
|
|
318
|
+
rules: {
|
|
319
|
+
attributeId: string;
|
|
320
|
+
condition: "contains" | "does-not-contain" | "is" | "is-not" | "gt" | "gte" | "lt" | "lte" | "is-before" | "is-after" | "is-on-or-before" | "is-on-or-after" | "is-any-of" | "is-none-of" | "has-any-of" | "has-all-of" | "has-none-of" | "is-empty" | "is-not-empty";
|
|
321
|
+
value?: string | number | boolean | string[] | undefined;
|
|
322
|
+
}[];
|
|
323
|
+
}[] | undefined;
|
|
186
324
|
};
|
|
187
|
-
|
|
325
|
+
sorts: {
|
|
326
|
+
attributeId: string;
|
|
327
|
+
direction: "asc" | "desc";
|
|
328
|
+
}[];
|
|
188
329
|
builtIn: boolean;
|
|
189
330
|
}[];
|
|
190
331
|
defaultViewId: string;
|
|
@@ -198,13 +339,35 @@ declare const createBoardViewsClient: (request: RequestFn) => {
|
|
|
198
339
|
viewMode: "board" | "list";
|
|
199
340
|
columnGrouping: string;
|
|
200
341
|
rowGrouping: string;
|
|
201
|
-
ordering: {
|
|
202
|
-
attributeId: string;
|
|
203
|
-
direction: "asc" | "desc";
|
|
204
|
-
};
|
|
205
342
|
displayProperties: string[];
|
|
343
|
+
} | {
|
|
344
|
+
grouping: string;
|
|
345
|
+
rowNumbers: boolean;
|
|
346
|
+
wrapRows: boolean;
|
|
347
|
+
showStats: boolean;
|
|
348
|
+
hiddenColumns: string[];
|
|
349
|
+
columnOrder: string[];
|
|
206
350
|
};
|
|
207
|
-
|
|
351
|
+
filter: {
|
|
352
|
+
conjunction: "and" | "or";
|
|
353
|
+
rules: {
|
|
354
|
+
attributeId: string;
|
|
355
|
+
condition: "contains" | "does-not-contain" | "is" | "is-not" | "gt" | "gte" | "lt" | "lte" | "is-before" | "is-after" | "is-on-or-before" | "is-on-or-after" | "is-any-of" | "is-none-of" | "has-any-of" | "has-all-of" | "has-none-of" | "is-empty" | "is-not-empty";
|
|
356
|
+
value?: string | number | boolean | string[] | undefined;
|
|
357
|
+
}[];
|
|
358
|
+
groups?: {
|
|
359
|
+
conjunction: "and" | "or";
|
|
360
|
+
rules: {
|
|
361
|
+
attributeId: string;
|
|
362
|
+
condition: "contains" | "does-not-contain" | "is" | "is-not" | "gt" | "gte" | "lt" | "lte" | "is-before" | "is-after" | "is-on-or-before" | "is-on-or-after" | "is-any-of" | "is-none-of" | "has-any-of" | "has-all-of" | "has-none-of" | "is-empty" | "is-not-empty";
|
|
363
|
+
value?: string | number | boolean | string[] | undefined;
|
|
364
|
+
}[];
|
|
365
|
+
}[] | undefined;
|
|
366
|
+
};
|
|
367
|
+
sorts: {
|
|
368
|
+
attributeId: string;
|
|
369
|
+
direction: "asc" | "desc";
|
|
370
|
+
}[];
|
|
208
371
|
builtIn: boolean;
|
|
209
372
|
}[];
|
|
210
373
|
defaultViewId: string;
|
|
@@ -281,9 +444,19 @@ type ProjectClient = {
|
|
|
281
444
|
listActivity(projectId: string, input?: ListProjectActivityInput): Promise<ListActivityResponse>;
|
|
282
445
|
};
|
|
283
446
|
//#endregion
|
|
447
|
+
//#region src/client/resource-anchors.d.ts
|
|
448
|
+
interface ResourceAnchorsClient {
|
|
449
|
+
addAnchors(projectId: string, resource: ResourceRef, anchors: ResourceAnchor[]): Promise<void>;
|
|
450
|
+
removeAnchors(projectId: string, resource: ResourceRef, refs: ResourceRef[]): Promise<void>;
|
|
451
|
+
listAnchors(projectId: string, input: ResourceAnchorQuery): Promise<ResourceAnchorPage>;
|
|
452
|
+
}
|
|
453
|
+
//#endregion
|
|
284
454
|
//#region src/client/runtime.d.ts
|
|
285
455
|
type RuntimeClient = {
|
|
286
|
-
|
|
456
|
+
/** Creates a single-use browser login link. Needs the runtime token. */
|
|
457
|
+
createBrowserLogin: () => Promise<{
|
|
458
|
+
url: string;
|
|
459
|
+
}>;
|
|
287
460
|
};
|
|
288
461
|
declare const createRuntimeClient: (request: RequestFn) => RuntimeClient;
|
|
289
462
|
//#endregion
|
|
@@ -301,15 +474,25 @@ type ListSessionsInput = {
|
|
|
301
474
|
archived?: boolean;
|
|
302
475
|
};
|
|
303
476
|
type SessionClient = {
|
|
477
|
+
getDraftHarnessCommands(input: DraftHarnessCommandInput, signal?: AbortSignal): Promise<HarnessCommandState & {
|
|
478
|
+
harnessId: string;
|
|
479
|
+
}>;
|
|
304
480
|
list(projectId: string, input?: ListSessionsInput): Promise<Session[]>;
|
|
305
481
|
get(sessionId: string): Promise<Session>;
|
|
482
|
+
getHarnessCommands(sessionId: string, signal?: AbortSignal): Promise<HarnessCommandState & {
|
|
483
|
+
harnessId: string;
|
|
484
|
+
}>;
|
|
485
|
+
invokeHarnessOperation(sessionId: string, operation: HarnessOperation, harnessId?: string): Promise<{
|
|
486
|
+
status: "completed" | "started";
|
|
487
|
+
message?: string;
|
|
488
|
+
}>;
|
|
306
489
|
uploadAttachment(projectId: string, input: {
|
|
307
490
|
name: string;
|
|
308
491
|
data: Uint8Array | ArrayBuffer;
|
|
309
492
|
mimeType?: string | null;
|
|
310
493
|
}): Promise<SessionAttachment>;
|
|
311
494
|
deleteAttachment(projectId: string, fileId: string): Promise<void>;
|
|
312
|
-
create(input: CreateSessionInput): Promise<
|
|
495
|
+
create(input: CreateSessionInput): Promise<CreateSessionResponse>;
|
|
313
496
|
archive(sessionId: string): Promise<void>;
|
|
314
497
|
followUp(sessionId: string, input: FollowUpInput): Promise<FollowUpResponse>;
|
|
315
498
|
approve(sessionId: string, input: ApprovalInput): Promise<void>;
|
|
@@ -320,6 +503,7 @@ type SessionClient = {
|
|
|
320
503
|
}): Promise<SessionQueuedMessagesResponse>;
|
|
321
504
|
resolveSessionId(input: ResolveSessionIdInput): Promise<ResolveSessionIdResponse>;
|
|
322
505
|
updateStatus(sessionId: string, status: string): Promise<Session>;
|
|
506
|
+
rename(sessionId: string, title: string): Promise<Session>;
|
|
323
507
|
listActivity(sessionId: string, input?: ListSessionActivityInput): Promise<ListSessionActivityResponse>;
|
|
324
508
|
stream(sessionId: string, onEvent: (event: SseEvent) => void, options?: {
|
|
325
509
|
signal?: AbortSignal;
|
|
@@ -414,6 +598,7 @@ type WorkspaceClient = {
|
|
|
414
598
|
//#endregion
|
|
415
599
|
//#region src/client/client.d.ts
|
|
416
600
|
type PstdioClient = {
|
|
601
|
+
resources: ResourceAnchorsClient;
|
|
417
602
|
views: BoardViewsClient;
|
|
418
603
|
projects: ProjectClient;
|
|
419
604
|
filesystem: FilesystemClient;
|
|
@@ -430,5 +615,5 @@ type PstdioClient = {
|
|
|
430
615
|
};
|
|
431
616
|
declare const createClient: (options?: ClientOptions) => PstdioClient;
|
|
432
617
|
//#endregion
|
|
433
|
-
export {
|
|
618
|
+
export { ClientOptions as A, NotificationsClient as C, BoardViewsClient as D, ExtensionClient as E, createRequest as F, PstdioConnectionError as M, RequestFn as N, AutomationClient as O, RequestOptions as P, ProjectClient as S, FilesystemClient as T, SessionStreamHandlers as _, SyncClient as a, createRuntimeClient as b, SyncWriter as c, parseSyncDeleteEvent as d, SkillClient as f, SessionStreamConnection as g, SessionClient as h, StartSyncInput as i, PstdioApiError as j, AgentClient as k, SyncWriterProvider as l, ListSessionsInput as m, createClient as n, SyncConnection as o, SettingsClient as p, WorkspaceClient as r, SyncRow as s, PstdioClient as t, applySyncEvent as u, SseEvent as v, DirectoryEntry as w, ResourceAnchorsClient as x, RuntimeClient as y };
|
|
434
619
|
export {};
|