@pstdio/sdk 0.45.0-nightly.20261021143541 → 0.45.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/dist/api.d.ts +3 -7
- package/dist/client/index.js +20 -7
- package/dist/client.d.ts +3 -2
- package/dist/data.d.ts +1 -7
- package/dist/extensions/index.js +196 -3
- package/dist/extensions-react.d.ts +1 -3
- package/dist/extensions.d.ts +2 -2
- package/dist/hooks.d.ts +3 -11
- package/dist/{index-BlEzv0uV.d.ts → index-DBkZvGh1.d.ts} +130 -81
- package/dist/{index-DTqJS-fZ.d.ts → index-j28tAAxd.d.ts} +528 -260
- package/dist/prompts.d.ts +0 -2
- package/dist/resources.d.ts +1 -1
- package/dist/sessions-BWTUYUnW.d.ts +2 -0
- package/dist/skills-BWTUYUnW.d.ts +2 -0
- package/dist/testing/index.js +14 -0
- package/dist/testing.d.ts +2 -14
- package/package.json +1 -1
- package/dist/sessions-DYS6U-5G.d.ts +0 -2
- package/dist/skills-DYS6U-5G.d.ts +0 -2
package/dist/hooks.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./sessions-
|
|
3
|
-
import { r as PstdioClient } from "./index-
|
|
4
|
-
//#region src/hooks/base.d.ts
|
|
1
|
+
import { Pf as Session, Wt as Workspace, kf as FollowUpInput } from "./index-j28tAAxd.js";
|
|
2
|
+
import "./sessions-BWTUYUnW.js";
|
|
3
|
+
import { r as PstdioClient } from "./index-DBkZvGh1.js";
|
|
5
4
|
/** @deprecated Use typed extension hook contexts from `@pstdio/sdk/extensions`. Removed in 0.45. */
|
|
6
5
|
type SessionFollowupInput = Omit<FollowUpInput, "template" | "vars">;
|
|
7
6
|
type HookSessionClient = {
|
|
@@ -22,8 +21,6 @@ type BaseHookContext = {
|
|
|
22
21
|
/** @deprecated Use the typed extension hook context directly; the raw payload mirror is removed in 0.45. */
|
|
23
22
|
payload?: HookPayload;
|
|
24
23
|
};
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region src/hooks/entities.d.ts
|
|
27
24
|
/** @deprecated Use typed extension hook contexts from `@pstdio/sdk/extensions`. Removed in 0.45. */
|
|
28
25
|
type HookResourceAnchor = {
|
|
29
26
|
type: string;
|
|
@@ -33,8 +30,6 @@ type HookResourceAnchor = {
|
|
|
33
30
|
};
|
|
34
31
|
/** @deprecated Use typed extension hook contexts from `@pstdio/sdk/extensions`. Removed in 0.45. */
|
|
35
32
|
type HookWorkspace = Workspace;
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region src/hooks/session.d.ts
|
|
38
33
|
/** @deprecated Use typed extension hook contexts from `@pstdio/sdk/extensions`. Removed in 0.45. */
|
|
39
34
|
type SessionHookContext = BaseHookContext & {
|
|
40
35
|
sessionId: string;
|
|
@@ -46,8 +41,6 @@ type SessionHookContext = BaseHookContext & {
|
|
|
46
41
|
branch?: string;
|
|
47
42
|
anchors?: HookResourceAnchor[];
|
|
48
43
|
};
|
|
49
|
-
//#endregion
|
|
50
|
-
//#region src/hooks/worktree.d.ts
|
|
51
44
|
/** @deprecated Use typed extension hook contexts from `@pstdio/sdk/extensions`. Removed in 0.45. */
|
|
52
45
|
type WorktreeCreateContext = BaseHookContext & {
|
|
53
46
|
repoPath: string;
|
|
@@ -106,6 +99,5 @@ type WorktreeRemoveContext = {
|
|
|
106
99
|
anchors?: HookResourceAnchor[];
|
|
107
100
|
projectId: string;
|
|
108
101
|
};
|
|
109
|
-
//#endregion
|
|
110
102
|
export type { BaseHookContext, CommitContext, ConflictContext, HookClient, HookPayload, MergeContext, RebaseContext, SessionFollowupInput, SessionHookContext, WorktreeContext, WorktreeCreateContext, WorktreeRemoveContext };
|
|
111
103
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { $ as ListExtensionConnectionsResponse,
|
|
2
|
-
import "./skills-
|
|
3
|
-
//#region src/client/request.d.ts
|
|
1
|
+
import { $ as ListExtensionConnectionsResponse, $f as SteerQueuedFollowUpInput, $s as UpdateSkillInput, Af as ListSessionActivityInput, B as EnableInstalledExtensionResponse, Bf as SessionCreateRequest, C as UpdateProjectInput, Cs as EnvironmentIdentity, Ct as CreateAutomationRunInput, D as ExtensionSettingValueRecord, Dc as ResourceRef, Df as ApprovalInput, Dt as ListAutomationTokensResponse, Et as ListAutomationRunEventsResponse, F as InstallExtensionRequest, Ff as SessionAttachment, G as UpgradeProjectExtensionResponse, Gf as SessionFollowUpResponse, Gt as WorkspaceListItem, H as ListProjectExtensionsResponse, Hf as SessionDetails, I as InstallExtensionResponse, If as SessionAttachmentDetails, J as CommandExecuteResponse, Jf as CombineQueuedFollowUpsInput, Js as Skill, K as CommandExecuteBody, Kf as SessionQueuedMessagesResponse, Lo as HarnessCommandState, Mf as ResolveSessionIdInput, Nc as Page, Nf as ResolveSessionIdResponse, Of as CreateSessionInput, P as ExtensionDiagnosticsResponse, Pc as PageQuery, Pf as Session, Po as DraftHarnessCommandInput, Q as ExtensionConnectionRecord, Qf as QueuedSteeringResult, Qp as JsonObject, Qs as SkillWithContentDetails, Rd as WebviewArtifactFile, Rf as SessionConversationResponse, Ro as HarnessOperation, Rs as BoardViewCreate, S as ProjectUpdateRequest, Sc as ResourceAnchorQuery, Tt as IssueAutomationTokenResponse, Vf as SessionCreateResponse, Wf as SessionFollowUpRequest, Wt as Workspace, X as DispatchExtensionEventInput, Xa as ExtensionWorkspaceCreateInput, Xd as WebviewFilesUploadParams, Y as CommandExecutionResult, Ya as ExtensionWorkspace, Yd as WebviewFilesListParams, Yf as PendingQueuedFollowUpsResponse, Ys as SkillDetails, Z as ConfigureExtensionConnectionInput, Zf as QueuedFollowUpUpdateResponse, Zo as HarnessParams, Zs as SkillWithContent, _ as CreateProjectInput, _f as ExtensionSession, _t as EnvironmentBinding, a as RemoveWorktreeResponse, ah as AgentDetails, ap as AccountLogin, b as ProjectCreateRequest, c as WorkspaceFileContent, cf as WebviewPreferencesGetParams, d as WorkspaceProviderDescriptor, dc as SetNotificationStatusInput, ec as CreateNotificationInput, em as JsonValue, ep as UpdateQueuedFollowUpInput, f as WriteWorkspaceFileInput, fc as UpdateNotificationInput, fh as ActivityPage, fn as CommandStream, g as RuntimeReadyResponse, gt as BindEnvironmentInput, hs as ExtensionBlobRef, ht as MetadataPageTarget, i as ListWorkspaceFilesInput, ip as AccountDevice, jf as ListSessionActivityResponse, kf as FollowUpInput, l as WorkspaceFileEntry, lf as WebviewPreferencesSetParams, lh as HarnessParamsInfo, lt as ListExtensionAppearanceResponse, m as UpdateSettingsInput, n as ListWorkspaceActivityInput, nc as ListNotificationsResponse, nh as AssetReference$1, o as RenameWorkspaceInput, oh as AgentInfo, op as AccountLoginStatus, p as Settings, q as CommandExecuteRequest, r as ListWorkspaceActivityResponse, rc as Notification, rh as AssetTransfer$1, rp as ProjectSyncStatus, sh as AgentModel, sp as AccountStatus, t as CreateWorkspaceInput, tc as ListNotificationsQuery, u as WorkspaceFilesResponse, uc as NotificationStatus, ut as ListExtensionCommandsResponse, v as InitialWorkspaceRequest, vf as ExtensionSessionPage, vt as AutomationRun, w as LinkIcon, ws as EnvironmentTarget, wt as IssueAutomationTokenInput, x as ProjectDetails, xc as ResourceAnchorPage, xf as ExtensionSessionSummary, y as Project, yc as ResourceAnchor, yf as ExtensionSessionQuery, z as EnableInstalledExtensionRequest, zf as SessionConversationSources, zs as BoardViewUpdate } from "./index-j28tAAxd.js";
|
|
2
|
+
import "./skills-BWTUYUnW.js";
|
|
4
3
|
type ClientOptions = {
|
|
5
4
|
baseUrl?: string;
|
|
6
5
|
token?: string;
|
|
@@ -24,40 +23,19 @@ type RequestOptions = {
|
|
|
24
23
|
};
|
|
25
24
|
type RequestFn = <T>(path: string, options?: RequestOptions) => Promise<T>;
|
|
26
25
|
declare const createRequest: (options: ClientOptions) => RequestFn;
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region src/client/account.d.ts
|
|
29
|
-
/** This device's cloud login. The device credential stays in the native host. */
|
|
30
|
-
interface DeviceLogin {
|
|
31
|
-
managerOrigin: string;
|
|
32
|
-
relayOrigin: string;
|
|
33
|
-
accountId: string;
|
|
34
|
-
deviceId: string;
|
|
35
|
-
}
|
|
36
|
-
interface AccountStatus {
|
|
37
|
-
login: DeviceLogin | null;
|
|
38
|
-
/** Cloud projects of the account. This device syncs the ones that exist on it. */
|
|
39
|
-
cloudProjects: string[];
|
|
40
|
-
}
|
|
41
|
-
interface AccountDevice {
|
|
42
|
-
id: string;
|
|
43
|
-
name: string;
|
|
44
|
-
platform: string;
|
|
45
|
-
createdAt: string;
|
|
46
|
-
lastSeenAt: string;
|
|
47
|
-
/** True for the device that answered the request. */
|
|
48
|
-
current: boolean;
|
|
49
|
-
}
|
|
50
26
|
type Ok = {
|
|
51
27
|
ok: boolean;
|
|
52
28
|
};
|
|
53
29
|
declare const createAccountClient: (request: RequestFn) => {
|
|
54
|
-
login: (managerOrigin: string) => Promise<
|
|
55
|
-
id: string;
|
|
56
|
-
url: string;
|
|
57
|
-
}>;
|
|
30
|
+
login: (managerOrigin: string) => Promise<AccountLogin>;
|
|
58
31
|
loginStatus: (id: string) => Promise<{
|
|
59
|
-
status:
|
|
32
|
+
status: AccountLoginStatus;
|
|
33
|
+
}>;
|
|
34
|
+
/** Cancels a pending sign-in. A sign-in that already completed stays complete. */
|
|
35
|
+
cancelLogin: (id: string) => Promise<Ok & {
|
|
36
|
+
status: Exclude<AccountLoginStatus, "pending">;
|
|
60
37
|
}>;
|
|
38
|
+
projectSyncStatus: (projectId: string) => Promise<ProjectSyncStatus>;
|
|
61
39
|
status: () => Promise<AccountStatus>;
|
|
62
40
|
/** `removed` is false when the account service could not be reached; remove the device from another one. */
|
|
63
41
|
logout: () => Promise<Ok & {
|
|
@@ -72,8 +50,6 @@ declare const createAccountClient: (request: RequestFn) => {
|
|
|
72
50
|
stopProjectSync: (projectId: string) => Promise<Ok>;
|
|
73
51
|
};
|
|
74
52
|
type AccountClient = ReturnType<typeof createAccountClient>;
|
|
75
|
-
//#endregion
|
|
76
|
-
//#region src/client/agents.d.ts
|
|
77
53
|
type AgentClient = {
|
|
78
54
|
getParamDefaults(projectId: string, agentId: string, model?: string): Promise<{
|
|
79
55
|
schema: HarnessParamsInfo | null;
|
|
@@ -92,8 +68,6 @@ type AgentClient = {
|
|
|
92
68
|
/** @deprecated Use queryModels with projectId first. */
|
|
93
69
|
models(agentId: string, projectId?: string): Promise<AgentModel[]>;
|
|
94
70
|
};
|
|
95
|
-
//#endregion
|
|
96
|
-
//#region src/client/assets.d.ts
|
|
97
71
|
interface AssetClientOwner {
|
|
98
72
|
projectId: string;
|
|
99
73
|
extensionInstanceId: string;
|
|
@@ -202,8 +176,6 @@ declare const createAssetsClient: (request: RequestFn) => {
|
|
|
202
176
|
read: (input: AssetReadInput) => Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>;
|
|
203
177
|
};
|
|
204
178
|
type AssetsClient = ReturnType<typeof createAssetsClient>;
|
|
205
|
-
//#endregion
|
|
206
|
-
//#region src/client/automation.d.ts
|
|
207
179
|
type AutomationClient = {
|
|
208
180
|
issueToken(input: IssueAutomationTokenInput): Promise<IssueAutomationTokenResponse>;
|
|
209
181
|
listTokens(projectId: string): Promise<ListAutomationTokensResponse>;
|
|
@@ -213,8 +185,6 @@ type AutomationClient = {
|
|
|
213
185
|
listRunEvents(projectId: string, runId: string, after?: number): Promise<ListAutomationRunEventsResponse>;
|
|
214
186
|
cancelRun(projectId: string, runId: string): Promise<AutomationRun>;
|
|
215
187
|
};
|
|
216
|
-
//#endregion
|
|
217
|
-
//#region src/client/board-views.d.ts
|
|
218
188
|
declare const createBoardViewsClient: (request: RequestFn) => {
|
|
219
189
|
board: (projectId: string, boardId: string) => Promise<{
|
|
220
190
|
id: string;
|
|
@@ -649,8 +619,6 @@ declare const createBoardViewsClient: (request: RequestFn) => {
|
|
|
649
619
|
}>;
|
|
650
620
|
};
|
|
651
621
|
type BoardViewsClient = ReturnType<typeof createBoardViewsClient>;
|
|
652
|
-
//#endregion
|
|
653
|
-
//#region src/client/extension-controls.d.ts
|
|
654
622
|
declare const createExtensionControlsClient: (request: RequestFn) => {
|
|
655
623
|
projectSettings: {
|
|
656
624
|
all: (projectId: string, instanceId: string) => Promise<{
|
|
@@ -786,8 +754,6 @@ declare const createExtensionControlsClient: (request: RequestFn) => {
|
|
|
786
754
|
delete: (projectId: string, instanceId: string, id: string) => Promise<void>;
|
|
787
755
|
};
|
|
788
756
|
};
|
|
789
|
-
//#endregion
|
|
790
|
-
//#region src/client/extension-management.d.ts
|
|
791
757
|
declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
792
758
|
createNotification: (projectId: string, extensionId: string, body: Omit<CreateNotificationInput, "projectId">) => Promise<Notification>;
|
|
793
759
|
metadata: (projectId: string) => Promise<{
|
|
@@ -1060,6 +1026,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
1060
1026
|
id: string;
|
|
1061
1027
|
};
|
|
1062
1028
|
resource?: {
|
|
1029
|
+
device?: {
|
|
1030
|
+
ownerId: string;
|
|
1031
|
+
id: string;
|
|
1032
|
+
name: string;
|
|
1033
|
+
} | undefined;
|
|
1063
1034
|
shorthand?: string | undefined;
|
|
1064
1035
|
type: string;
|
|
1065
1036
|
id: string;
|
|
@@ -1087,6 +1058,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
1087
1058
|
id: string;
|
|
1088
1059
|
};
|
|
1089
1060
|
resource?: {
|
|
1061
|
+
device?: {
|
|
1062
|
+
ownerId: string;
|
|
1063
|
+
id: string;
|
|
1064
|
+
name: string;
|
|
1065
|
+
} | undefined;
|
|
1090
1066
|
shorthand?: string | undefined;
|
|
1091
1067
|
type: string;
|
|
1092
1068
|
id: string;
|
|
@@ -1702,6 +1678,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
1702
1678
|
id: string;
|
|
1703
1679
|
};
|
|
1704
1680
|
resource?: {
|
|
1681
|
+
device?: {
|
|
1682
|
+
ownerId: string;
|
|
1683
|
+
id: string;
|
|
1684
|
+
name: string;
|
|
1685
|
+
} | undefined;
|
|
1705
1686
|
shorthand?: string | undefined;
|
|
1706
1687
|
type: string;
|
|
1707
1688
|
id: string;
|
|
@@ -1729,6 +1710,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
1729
1710
|
id: string;
|
|
1730
1711
|
};
|
|
1731
1712
|
resource?: {
|
|
1713
|
+
device?: {
|
|
1714
|
+
ownerId: string;
|
|
1715
|
+
id: string;
|
|
1716
|
+
name: string;
|
|
1717
|
+
} | undefined;
|
|
1732
1718
|
shorthand?: string | undefined;
|
|
1733
1719
|
type: string;
|
|
1734
1720
|
id: string;
|
|
@@ -1859,6 +1845,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
1859
1845
|
id: string;
|
|
1860
1846
|
};
|
|
1861
1847
|
resource?: {
|
|
1848
|
+
device?: {
|
|
1849
|
+
ownerId: string;
|
|
1850
|
+
id: string;
|
|
1851
|
+
name: string;
|
|
1852
|
+
} | undefined;
|
|
1862
1853
|
shorthand?: string | undefined;
|
|
1863
1854
|
type: string;
|
|
1864
1855
|
id: string;
|
|
@@ -1886,6 +1877,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
1886
1877
|
id: string;
|
|
1887
1878
|
};
|
|
1888
1879
|
resource?: {
|
|
1880
|
+
device?: {
|
|
1881
|
+
ownerId: string;
|
|
1882
|
+
id: string;
|
|
1883
|
+
name: string;
|
|
1884
|
+
} | undefined;
|
|
1889
1885
|
shorthand?: string | undefined;
|
|
1890
1886
|
type: string;
|
|
1891
1887
|
id: string;
|
|
@@ -2051,6 +2047,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
2051
2047
|
id: string;
|
|
2052
2048
|
};
|
|
2053
2049
|
resource?: {
|
|
2050
|
+
device?: {
|
|
2051
|
+
ownerId: string;
|
|
2052
|
+
id: string;
|
|
2053
|
+
name: string;
|
|
2054
|
+
} | undefined;
|
|
2054
2055
|
shorthand?: string | undefined;
|
|
2055
2056
|
type: string;
|
|
2056
2057
|
id: string;
|
|
@@ -2078,6 +2079,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
2078
2079
|
id: string;
|
|
2079
2080
|
};
|
|
2080
2081
|
resource?: {
|
|
2082
|
+
device?: {
|
|
2083
|
+
ownerId: string;
|
|
2084
|
+
id: string;
|
|
2085
|
+
name: string;
|
|
2086
|
+
} | undefined;
|
|
2081
2087
|
shorthand?: string | undefined;
|
|
2082
2088
|
type: string;
|
|
2083
2089
|
id: string;
|
|
@@ -2494,6 +2500,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
2494
2500
|
id: string;
|
|
2495
2501
|
};
|
|
2496
2502
|
resource?: {
|
|
2503
|
+
device?: {
|
|
2504
|
+
ownerId: string;
|
|
2505
|
+
id: string;
|
|
2506
|
+
name: string;
|
|
2507
|
+
} | undefined;
|
|
2497
2508
|
shorthand?: string | undefined;
|
|
2498
2509
|
type: string;
|
|
2499
2510
|
id: string;
|
|
@@ -2521,6 +2532,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
2521
2532
|
id: string;
|
|
2522
2533
|
};
|
|
2523
2534
|
resource?: {
|
|
2535
|
+
device?: {
|
|
2536
|
+
ownerId: string;
|
|
2537
|
+
id: string;
|
|
2538
|
+
name: string;
|
|
2539
|
+
} | undefined;
|
|
2524
2540
|
shorthand?: string | undefined;
|
|
2525
2541
|
type: string;
|
|
2526
2542
|
id: string;
|
|
@@ -3136,6 +3152,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
3136
3152
|
id: string;
|
|
3137
3153
|
};
|
|
3138
3154
|
resource?: {
|
|
3155
|
+
device?: {
|
|
3156
|
+
ownerId: string;
|
|
3157
|
+
id: string;
|
|
3158
|
+
name: string;
|
|
3159
|
+
} | undefined;
|
|
3139
3160
|
shorthand?: string | undefined;
|
|
3140
3161
|
type: string;
|
|
3141
3162
|
id: string;
|
|
@@ -3163,6 +3184,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
3163
3184
|
id: string;
|
|
3164
3185
|
};
|
|
3165
3186
|
resource?: {
|
|
3187
|
+
device?: {
|
|
3188
|
+
ownerId: string;
|
|
3189
|
+
id: string;
|
|
3190
|
+
name: string;
|
|
3191
|
+
} | undefined;
|
|
3166
3192
|
shorthand?: string | undefined;
|
|
3167
3193
|
type: string;
|
|
3168
3194
|
id: string;
|
|
@@ -3293,6 +3319,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
3293
3319
|
id: string;
|
|
3294
3320
|
};
|
|
3295
3321
|
resource?: {
|
|
3322
|
+
device?: {
|
|
3323
|
+
ownerId: string;
|
|
3324
|
+
id: string;
|
|
3325
|
+
name: string;
|
|
3326
|
+
} | undefined;
|
|
3296
3327
|
shorthand?: string | undefined;
|
|
3297
3328
|
type: string;
|
|
3298
3329
|
id: string;
|
|
@@ -3320,6 +3351,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
3320
3351
|
id: string;
|
|
3321
3352
|
};
|
|
3322
3353
|
resource?: {
|
|
3354
|
+
device?: {
|
|
3355
|
+
ownerId: string;
|
|
3356
|
+
id: string;
|
|
3357
|
+
name: string;
|
|
3358
|
+
} | undefined;
|
|
3323
3359
|
shorthand?: string | undefined;
|
|
3324
3360
|
type: string;
|
|
3325
3361
|
id: string;
|
|
@@ -3485,6 +3521,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
3485
3521
|
id: string;
|
|
3486
3522
|
};
|
|
3487
3523
|
resource?: {
|
|
3524
|
+
device?: {
|
|
3525
|
+
ownerId: string;
|
|
3526
|
+
id: string;
|
|
3527
|
+
name: string;
|
|
3528
|
+
} | undefined;
|
|
3488
3529
|
shorthand?: string | undefined;
|
|
3489
3530
|
type: string;
|
|
3490
3531
|
id: string;
|
|
@@ -3512,6 +3553,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
3512
3553
|
id: string;
|
|
3513
3554
|
};
|
|
3514
3555
|
resource?: {
|
|
3556
|
+
device?: {
|
|
3557
|
+
ownerId: string;
|
|
3558
|
+
id: string;
|
|
3559
|
+
name: string;
|
|
3560
|
+
} | undefined;
|
|
3515
3561
|
shorthand?: string | undefined;
|
|
3516
3562
|
type: string;
|
|
3517
3563
|
id: string;
|
|
@@ -3928,6 +3974,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
3928
3974
|
id: string;
|
|
3929
3975
|
};
|
|
3930
3976
|
resource?: {
|
|
3977
|
+
device?: {
|
|
3978
|
+
ownerId: string;
|
|
3979
|
+
id: string;
|
|
3980
|
+
name: string;
|
|
3981
|
+
} | undefined;
|
|
3931
3982
|
shorthand?: string | undefined;
|
|
3932
3983
|
type: string;
|
|
3933
3984
|
id: string;
|
|
@@ -3955,6 +4006,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
3955
4006
|
id: string;
|
|
3956
4007
|
};
|
|
3957
4008
|
resource?: {
|
|
4009
|
+
device?: {
|
|
4010
|
+
ownerId: string;
|
|
4011
|
+
id: string;
|
|
4012
|
+
name: string;
|
|
4013
|
+
} | undefined;
|
|
3958
4014
|
shorthand?: string | undefined;
|
|
3959
4015
|
type: string;
|
|
3960
4016
|
id: string;
|
|
@@ -4570,6 +4626,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
4570
4626
|
id: string;
|
|
4571
4627
|
};
|
|
4572
4628
|
resource?: {
|
|
4629
|
+
device?: {
|
|
4630
|
+
ownerId: string;
|
|
4631
|
+
id: string;
|
|
4632
|
+
name: string;
|
|
4633
|
+
} | undefined;
|
|
4573
4634
|
shorthand?: string | undefined;
|
|
4574
4635
|
type: string;
|
|
4575
4636
|
id: string;
|
|
@@ -4597,6 +4658,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
4597
4658
|
id: string;
|
|
4598
4659
|
};
|
|
4599
4660
|
resource?: {
|
|
4661
|
+
device?: {
|
|
4662
|
+
ownerId: string;
|
|
4663
|
+
id: string;
|
|
4664
|
+
name: string;
|
|
4665
|
+
} | undefined;
|
|
4600
4666
|
shorthand?: string | undefined;
|
|
4601
4667
|
type: string;
|
|
4602
4668
|
id: string;
|
|
@@ -4727,6 +4793,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
4727
4793
|
id: string;
|
|
4728
4794
|
};
|
|
4729
4795
|
resource?: {
|
|
4796
|
+
device?: {
|
|
4797
|
+
ownerId: string;
|
|
4798
|
+
id: string;
|
|
4799
|
+
name: string;
|
|
4800
|
+
} | undefined;
|
|
4730
4801
|
shorthand?: string | undefined;
|
|
4731
4802
|
type: string;
|
|
4732
4803
|
id: string;
|
|
@@ -4754,6 +4825,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
4754
4825
|
id: string;
|
|
4755
4826
|
};
|
|
4756
4827
|
resource?: {
|
|
4828
|
+
device?: {
|
|
4829
|
+
ownerId: string;
|
|
4830
|
+
id: string;
|
|
4831
|
+
name: string;
|
|
4832
|
+
} | undefined;
|
|
4757
4833
|
shorthand?: string | undefined;
|
|
4758
4834
|
type: string;
|
|
4759
4835
|
id: string;
|
|
@@ -4919,6 +4995,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
4919
4995
|
id: string;
|
|
4920
4996
|
};
|
|
4921
4997
|
resource?: {
|
|
4998
|
+
device?: {
|
|
4999
|
+
ownerId: string;
|
|
5000
|
+
id: string;
|
|
5001
|
+
name: string;
|
|
5002
|
+
} | undefined;
|
|
4922
5003
|
shorthand?: string | undefined;
|
|
4923
5004
|
type: string;
|
|
4924
5005
|
id: string;
|
|
@@ -4946,6 +5027,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
4946
5027
|
id: string;
|
|
4947
5028
|
};
|
|
4948
5029
|
resource?: {
|
|
5030
|
+
device?: {
|
|
5031
|
+
ownerId: string;
|
|
5032
|
+
id: string;
|
|
5033
|
+
name: string;
|
|
5034
|
+
} | undefined;
|
|
4949
5035
|
shorthand?: string | undefined;
|
|
4950
5036
|
type: string;
|
|
4951
5037
|
id: string;
|
|
@@ -5163,8 +5249,6 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
5163
5249
|
}>;
|
|
5164
5250
|
};
|
|
5165
5251
|
};
|
|
5166
|
-
//#endregion
|
|
5167
|
-
//#region src/client/extension-stream.d.ts
|
|
5168
5252
|
/** @deprecated Use CommandStream from @pstdio/sdk/extensions for chunks and a complete final outcome. */
|
|
5169
5253
|
type CommandStreamClientEvent = {
|
|
5170
5254
|
type: "data";
|
|
@@ -5173,8 +5257,6 @@ type CommandStreamClientEvent = {
|
|
|
5173
5257
|
type: "end";
|
|
5174
5258
|
response: CommandExecuteResponse;
|
|
5175
5259
|
};
|
|
5176
|
-
//#endregion
|
|
5177
|
-
//#region src/client/extensions.d.ts
|
|
5178
5260
|
type ExtensionClient = ReturnType<typeof createExtensionControlsClient> & ReturnType<typeof createExtensionManagementClient> & {
|
|
5179
5261
|
install(projectId: string, input: InstallExtensionRequest | {
|
|
5180
5262
|
upload: FormData;
|
|
@@ -5205,8 +5287,6 @@ type ExtensionClient = ReturnType<typeof createExtensionControlsClient> & Return
|
|
|
5205
5287
|
}): Promise<CommandExecutionResult & CommandExecuteResponse>;
|
|
5206
5288
|
dispatchEvent(projectId: string, input: DispatchExtensionEventInput): Promise<void>;
|
|
5207
5289
|
};
|
|
5208
|
-
//#endregion
|
|
5209
|
-
//#region src/client/filesystem.d.ts
|
|
5210
5290
|
interface DirectoryEntry {
|
|
5211
5291
|
name: string;
|
|
5212
5292
|
path: string;
|
|
@@ -5235,16 +5315,12 @@ declare const createFilesystemClient: (request: RequestFn) => {
|
|
|
5235
5315
|
}>;
|
|
5236
5316
|
};
|
|
5237
5317
|
type FilesystemClient = ReturnType<typeof createFilesystemClient>;
|
|
5238
|
-
//#endregion
|
|
5239
|
-
//#region src/client/link-icons.d.ts
|
|
5240
5318
|
type LinkIconsClient = {
|
|
5241
5319
|
/** Returns the site icon of an http or https page. Throws a 404 `PstdioApiError` when the page has none. */
|
|
5242
5320
|
get(url: string, options?: {
|
|
5243
5321
|
signal?: AbortSignal;
|
|
5244
5322
|
}): Promise<LinkIcon>;
|
|
5245
5323
|
};
|
|
5246
|
-
//#endregion
|
|
5247
|
-
//#region src/client/notifications.d.ts
|
|
5248
5324
|
type NotificationsClient = {
|
|
5249
5325
|
query(projectId: string, input?: ListNotificationsQuery): Promise<Page<Notification>>;
|
|
5250
5326
|
/** @deprecated Use query for the required nullable cursor contract. */
|
|
@@ -5276,8 +5352,6 @@ type NotificationsClient = {
|
|
|
5276
5352
|
notifications: Notification[];
|
|
5277
5353
|
}>;
|
|
5278
5354
|
};
|
|
5279
|
-
//#endregion
|
|
5280
|
-
//#region src/client/projects.d.ts
|
|
5281
5355
|
type ProjectClient = {
|
|
5282
5356
|
query(input?: PageQuery): Promise<Page<Project & ProjectDetails>>;
|
|
5283
5357
|
/** @deprecated Use query to read one bounded page. */
|
|
@@ -5292,8 +5366,6 @@ type ProjectClient = {
|
|
|
5292
5366
|
update(projectId: string, input: ProjectUpdateRequest | UpdateProjectInput): Promise<Project & ProjectDetails>;
|
|
5293
5367
|
delete(projectId: string): Promise<void>;
|
|
5294
5368
|
};
|
|
5295
|
-
//#endregion
|
|
5296
|
-
//#region src/client/resource-anchors.d.ts
|
|
5297
5369
|
interface ResourceAnchorsClient {
|
|
5298
5370
|
addAnchors(projectId: string, resource: ResourceRef, anchors: ResourceAnchor[]): Promise<void>;
|
|
5299
5371
|
removeAnchors(projectId: string, resource: ResourceRef, refs: ResourceRef[]): Promise<void>;
|
|
@@ -5301,8 +5373,6 @@ interface ResourceAnchorsClient {
|
|
|
5301
5373
|
/** @deprecated Use queryAnchors for the required nullable cursor contract. */
|
|
5302
5374
|
listAnchors(projectId: string, input: ResourceAnchorQuery): Promise<ResourceAnchorPage>;
|
|
5303
5375
|
}
|
|
5304
|
-
//#endregion
|
|
5305
|
-
//#region src/client/runtime.d.ts
|
|
5306
5376
|
type RuntimeClient = {
|
|
5307
5377
|
ready: () => Promise<RuntimeReadyResponse>;
|
|
5308
5378
|
claimBrowserSession: (code: string) => Promise<{
|
|
@@ -5316,20 +5386,14 @@ type RuntimeClient = {
|
|
|
5316
5386
|
}>;
|
|
5317
5387
|
};
|
|
5318
5388
|
declare const createRuntimeClient: (request: RequestFn) => RuntimeClient;
|
|
5319
|
-
//#endregion
|
|
5320
|
-
//#region src/client/session-query.d.ts
|
|
5321
5389
|
declare const createSessionQueryClient: (request: RequestFn) => {
|
|
5322
5390
|
query: (projectId: string, input?: ExtensionSessionQuery, options?: Pick<RequestOptions, "signal">) => Promise<ExtensionSessionPage>;
|
|
5323
5391
|
iterate: (projectId: string, input?: ExtensionSessionQuery, options?: Pick<RequestOptions, "signal">) => AsyncGenerator<ExtensionSession & ExtensionSessionSummary, void, unknown>;
|
|
5324
5392
|
};
|
|
5325
|
-
//#endregion
|
|
5326
|
-
//#region src/client/sse.d.ts
|
|
5327
5393
|
type SseEvent = {
|
|
5328
5394
|
event: string;
|
|
5329
5395
|
data: string;
|
|
5330
5396
|
};
|
|
5331
|
-
//#endregion
|
|
5332
|
-
//#region src/client/sessions.d.ts
|
|
5333
5397
|
/** @deprecated Use ExtensionSessionQuery from @pstdio/sdk/extensions with query or iterate. */
|
|
5334
5398
|
type ListSessionsInput = {
|
|
5335
5399
|
status?: string;
|
|
@@ -5419,14 +5483,10 @@ type SessionStreamHandlers = {
|
|
|
5419
5483
|
type SessionStreamConnection = {
|
|
5420
5484
|
close: () => void;
|
|
5421
5485
|
};
|
|
5422
|
-
//#endregion
|
|
5423
|
-
//#region src/client/settings.d.ts
|
|
5424
5486
|
type SettingsClient = {
|
|
5425
5487
|
get(): Promise<Settings>;
|
|
5426
5488
|
update(input: UpdateSettingsInput): Promise<Settings>;
|
|
5427
5489
|
};
|
|
5428
|
-
//#endregion
|
|
5429
|
-
//#region src/client/skills.d.ts
|
|
5430
5490
|
type SkillClient = {
|
|
5431
5491
|
query(projectId: string, input?: PageQuery): Promise<Page<Skill & SkillDetails>>;
|
|
5432
5492
|
/** @deprecated Use query to read one bounded page. */
|
|
@@ -5435,8 +5495,6 @@ type SkillClient = {
|
|
|
5435
5495
|
/** @deprecated No maintained client caller. Use `PUT /v1/projects/{projectId}/skills/{name}` for this operation; the convenience method is removed in 0.45. */
|
|
5436
5496
|
updatePreferences(projectId: string, skillName: string, input: UpdateSkillInput): Promise<Skill>;
|
|
5437
5497
|
};
|
|
5438
|
-
//#endregion
|
|
5439
|
-
//#region src/client/sync.d.ts
|
|
5440
5498
|
type SyncRow = {
|
|
5441
5499
|
id: string;
|
|
5442
5500
|
[key: string]: unknown;
|
|
@@ -5471,8 +5529,6 @@ declare const parseSyncDeleteEvent: (data: string) => {
|
|
|
5471
5529
|
seq: number;
|
|
5472
5530
|
};
|
|
5473
5531
|
declare const applySyncEvent: (event: string, data: string, writers: SyncWriterProvider) => number | null;
|
|
5474
|
-
//#endregion
|
|
5475
|
-
//#region src/client/workspace-diffs.d.ts
|
|
5476
5532
|
declare const createWorkspaceDiffClient: (request: RequestFn) => {
|
|
5477
5533
|
diffFiles: (id: string, mode: "current" | "fork_point", signal?: AbortSignal) => Promise<{
|
|
5478
5534
|
workspace_id: string;
|
|
@@ -5509,8 +5565,6 @@ declare const createWorkspaceDiffClient: (request: RequestFn) => {
|
|
|
5509
5565
|
file_count: number;
|
|
5510
5566
|
} | null>;
|
|
5511
5567
|
};
|
|
5512
|
-
//#endregion
|
|
5513
|
-
//#region src/client/workspaces.d.ts
|
|
5514
5568
|
type WorkspaceClient = ReturnType<typeof createWorkspaceDiffClient> & {
|
|
5515
5569
|
queryProviders(projectId: string, input?: PageQuery, options?: {
|
|
5516
5570
|
signal?: AbortSignal;
|
|
@@ -5545,8 +5599,6 @@ type WorkspaceClient = ReturnType<typeof createWorkspaceDiffClient> & {
|
|
|
5545
5599
|
removeWorktree(workspaceId: string): Promise<RemoveWorktreeResponse>;
|
|
5546
5600
|
delete(workspaceId: string): Promise<void>;
|
|
5547
5601
|
};
|
|
5548
|
-
//#endregion
|
|
5549
|
-
//#region src/client/client.d.ts
|
|
5550
5602
|
type PstdioClient = {
|
|
5551
5603
|
account: AccountClient;
|
|
5552
5604
|
assets: AssetsClient;
|
|
@@ -5567,12 +5619,9 @@ type PstdioClient = {
|
|
|
5567
5619
|
runtime: RuntimeClient;
|
|
5568
5620
|
};
|
|
5569
5621
|
declare const createClient: (options?: ClientOptions) => PstdioClient;
|
|
5570
|
-
//#endregion
|
|
5571
|
-
//#region src/client/resource-compat.d.ts
|
|
5572
5622
|
/** @deprecated Import `AssetReference` from `@pstdio/sdk/resources`. */
|
|
5573
5623
|
type AssetReference = AssetReference$1;
|
|
5574
5624
|
/** @deprecated Import `AssetTransfer` from `@pstdio/sdk/resources`. */
|
|
5575
5625
|
type AssetTransfer = AssetTransfer$1;
|
|
5576
|
-
|
|
5577
|
-
export { ExtensionClient as A, AccountStatus as B, ResourceAnchorsClient as C, DirectoryEntry as D, LinkIconsClient as E, AssetUploadInput as F, RequestFn as G, ClientOptions as H, AssetsClient as I, RequestOptions as K, AgentClient as L, BoardViewsClient as M, AutomationClient as N, FilesystemClient as O, AssetClientOwner as P, AccountClient as R, createRuntimeClient as S, NotificationsClient as T, PstdioApiError as U, DeviceLogin as V, PstdioConnectionError as W, SessionClient as _, WorkspaceClient as a, SseEvent as b, SyncConnection as c, SyncWriterProvider as d, applySyncEvent as f, ListSessionsInput as g, SettingsClient as h, createClient as i, CommandStreamClientEvent as j, FilesystemDrive as k, SyncRow as l, SkillClient as m, AssetTransfer as n, StartSyncInput as o, parseSyncDeleteEvent as p, createRequest as q, PstdioClient as r, SyncClient as s, AssetReference as t, SyncWriter as u, SessionStreamConnection as v, ProjectClient as w, RuntimeClient as x, SessionStreamHandlers as y, AccountDevice as z };
|
|
5626
|
+
export { ExtensionClient as A, PstdioApiError as B, ResourceAnchorsClient as C, DirectoryEntry as D, LinkIconsClient as E, AssetUploadInput as F, RequestFn as H, AssetsClient as I, AgentClient as L, BoardViewsClient as M, AutomationClient as N, FilesystemClient as O, AssetClientOwner as P, AccountClient as R, createRuntimeClient as S, NotificationsClient as T, RequestOptions as U, PstdioConnectionError as V, createRequest as W, SessionClient as _, WorkspaceClient as a, SseEvent as b, SyncConnection as c, SyncWriterProvider as d, applySyncEvent as f, ListSessionsInput as g, SettingsClient as h, createClient as i, CommandStreamClientEvent as j, FilesystemDrive as k, SyncRow as l, SkillClient as m, AssetTransfer as n, StartSyncInput as o, parseSyncDeleteEvent as p, PstdioClient as r, SyncClient as s, AssetReference as t, SyncWriter as u, SessionStreamConnection as v, ProjectClient as w, RuntimeClient as x, SessionStreamHandlers as y, ClientOptions as z };
|
|
5578
5627
|
export {};
|