@pstdio/sdk 0.45.0-nightly.20261021030241 → 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 +68 -6
- package/dist/client.d.ts +3 -2
- package/dist/data.d.ts +1 -7
- package/dist/extensions/index.js +200 -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-D82SEWma.d.ts → index-DBkZvGh1.d.ts} +135 -81
- package/dist/{index-LeVI9OKi.d.ts → index-j28tAAxd.d.ts} +569 -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 +161 -16
- package/dist/testing.d.ts +20 -13
- package/package.json +1 -1
- package/dist/sessions-BdE2Wzo4.d.ts +0 -2
- package/dist/skills-BdE2Wzo4.d.ts +0 -2
|
@@ -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<{
|
|
@@ -908,6 +874,7 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
908
874
|
canClose?: boolean | undefined;
|
|
909
875
|
acceptsTabs?: boolean | undefined;
|
|
910
876
|
resizable?: boolean | undefined;
|
|
877
|
+
movable?: boolean | undefined;
|
|
911
878
|
floatable?: boolean | undefined;
|
|
912
879
|
size?: {
|
|
913
880
|
defaultPx?: number | undefined;
|
|
@@ -1059,6 +1026,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
1059
1026
|
id: string;
|
|
1060
1027
|
};
|
|
1061
1028
|
resource?: {
|
|
1029
|
+
device?: {
|
|
1030
|
+
ownerId: string;
|
|
1031
|
+
id: string;
|
|
1032
|
+
name: string;
|
|
1033
|
+
} | undefined;
|
|
1062
1034
|
shorthand?: string | undefined;
|
|
1063
1035
|
type: string;
|
|
1064
1036
|
id: string;
|
|
@@ -1086,6 +1058,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
1086
1058
|
id: string;
|
|
1087
1059
|
};
|
|
1088
1060
|
resource?: {
|
|
1061
|
+
device?: {
|
|
1062
|
+
ownerId: string;
|
|
1063
|
+
id: string;
|
|
1064
|
+
name: string;
|
|
1065
|
+
} | undefined;
|
|
1089
1066
|
shorthand?: string | undefined;
|
|
1090
1067
|
type: string;
|
|
1091
1068
|
id: string;
|
|
@@ -1701,6 +1678,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
1701
1678
|
id: string;
|
|
1702
1679
|
};
|
|
1703
1680
|
resource?: {
|
|
1681
|
+
device?: {
|
|
1682
|
+
ownerId: string;
|
|
1683
|
+
id: string;
|
|
1684
|
+
name: string;
|
|
1685
|
+
} | undefined;
|
|
1704
1686
|
shorthand?: string | undefined;
|
|
1705
1687
|
type: string;
|
|
1706
1688
|
id: string;
|
|
@@ -1728,6 +1710,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
1728
1710
|
id: string;
|
|
1729
1711
|
};
|
|
1730
1712
|
resource?: {
|
|
1713
|
+
device?: {
|
|
1714
|
+
ownerId: string;
|
|
1715
|
+
id: string;
|
|
1716
|
+
name: string;
|
|
1717
|
+
} | undefined;
|
|
1731
1718
|
shorthand?: string | undefined;
|
|
1732
1719
|
type: string;
|
|
1733
1720
|
id: string;
|
|
@@ -1858,6 +1845,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
1858
1845
|
id: string;
|
|
1859
1846
|
};
|
|
1860
1847
|
resource?: {
|
|
1848
|
+
device?: {
|
|
1849
|
+
ownerId: string;
|
|
1850
|
+
id: string;
|
|
1851
|
+
name: string;
|
|
1852
|
+
} | undefined;
|
|
1861
1853
|
shorthand?: string | undefined;
|
|
1862
1854
|
type: string;
|
|
1863
1855
|
id: string;
|
|
@@ -1885,6 +1877,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
1885
1877
|
id: string;
|
|
1886
1878
|
};
|
|
1887
1879
|
resource?: {
|
|
1880
|
+
device?: {
|
|
1881
|
+
ownerId: string;
|
|
1882
|
+
id: string;
|
|
1883
|
+
name: string;
|
|
1884
|
+
} | undefined;
|
|
1888
1885
|
shorthand?: string | undefined;
|
|
1889
1886
|
type: string;
|
|
1890
1887
|
id: string;
|
|
@@ -2050,6 +2047,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
2050
2047
|
id: string;
|
|
2051
2048
|
};
|
|
2052
2049
|
resource?: {
|
|
2050
|
+
device?: {
|
|
2051
|
+
ownerId: string;
|
|
2052
|
+
id: string;
|
|
2053
|
+
name: string;
|
|
2054
|
+
} | undefined;
|
|
2053
2055
|
shorthand?: string | undefined;
|
|
2054
2056
|
type: string;
|
|
2055
2057
|
id: string;
|
|
@@ -2077,6 +2079,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
2077
2079
|
id: string;
|
|
2078
2080
|
};
|
|
2079
2081
|
resource?: {
|
|
2082
|
+
device?: {
|
|
2083
|
+
ownerId: string;
|
|
2084
|
+
id: string;
|
|
2085
|
+
name: string;
|
|
2086
|
+
} | undefined;
|
|
2080
2087
|
shorthand?: string | undefined;
|
|
2081
2088
|
type: string;
|
|
2082
2089
|
id: string;
|
|
@@ -2341,6 +2348,7 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
2341
2348
|
canClose?: boolean | undefined;
|
|
2342
2349
|
acceptsTabs?: boolean | undefined;
|
|
2343
2350
|
resizable?: boolean | undefined;
|
|
2351
|
+
movable?: boolean | undefined;
|
|
2344
2352
|
floatable?: boolean | undefined;
|
|
2345
2353
|
size?: {
|
|
2346
2354
|
defaultPx?: number | undefined;
|
|
@@ -2492,6 +2500,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
2492
2500
|
id: string;
|
|
2493
2501
|
};
|
|
2494
2502
|
resource?: {
|
|
2503
|
+
device?: {
|
|
2504
|
+
ownerId: string;
|
|
2505
|
+
id: string;
|
|
2506
|
+
name: string;
|
|
2507
|
+
} | undefined;
|
|
2495
2508
|
shorthand?: string | undefined;
|
|
2496
2509
|
type: string;
|
|
2497
2510
|
id: string;
|
|
@@ -2519,6 +2532,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
2519
2532
|
id: string;
|
|
2520
2533
|
};
|
|
2521
2534
|
resource?: {
|
|
2535
|
+
device?: {
|
|
2536
|
+
ownerId: string;
|
|
2537
|
+
id: string;
|
|
2538
|
+
name: string;
|
|
2539
|
+
} | undefined;
|
|
2522
2540
|
shorthand?: string | undefined;
|
|
2523
2541
|
type: string;
|
|
2524
2542
|
id: string;
|
|
@@ -3134,6 +3152,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
3134
3152
|
id: string;
|
|
3135
3153
|
};
|
|
3136
3154
|
resource?: {
|
|
3155
|
+
device?: {
|
|
3156
|
+
ownerId: string;
|
|
3157
|
+
id: string;
|
|
3158
|
+
name: string;
|
|
3159
|
+
} | undefined;
|
|
3137
3160
|
shorthand?: string | undefined;
|
|
3138
3161
|
type: string;
|
|
3139
3162
|
id: string;
|
|
@@ -3161,6 +3184,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
3161
3184
|
id: string;
|
|
3162
3185
|
};
|
|
3163
3186
|
resource?: {
|
|
3187
|
+
device?: {
|
|
3188
|
+
ownerId: string;
|
|
3189
|
+
id: string;
|
|
3190
|
+
name: string;
|
|
3191
|
+
} | undefined;
|
|
3164
3192
|
shorthand?: string | undefined;
|
|
3165
3193
|
type: string;
|
|
3166
3194
|
id: string;
|
|
@@ -3291,6 +3319,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
3291
3319
|
id: string;
|
|
3292
3320
|
};
|
|
3293
3321
|
resource?: {
|
|
3322
|
+
device?: {
|
|
3323
|
+
ownerId: string;
|
|
3324
|
+
id: string;
|
|
3325
|
+
name: string;
|
|
3326
|
+
} | undefined;
|
|
3294
3327
|
shorthand?: string | undefined;
|
|
3295
3328
|
type: string;
|
|
3296
3329
|
id: string;
|
|
@@ -3318,6 +3351,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
3318
3351
|
id: string;
|
|
3319
3352
|
};
|
|
3320
3353
|
resource?: {
|
|
3354
|
+
device?: {
|
|
3355
|
+
ownerId: string;
|
|
3356
|
+
id: string;
|
|
3357
|
+
name: string;
|
|
3358
|
+
} | undefined;
|
|
3321
3359
|
shorthand?: string | undefined;
|
|
3322
3360
|
type: string;
|
|
3323
3361
|
id: string;
|
|
@@ -3483,6 +3521,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
3483
3521
|
id: string;
|
|
3484
3522
|
};
|
|
3485
3523
|
resource?: {
|
|
3524
|
+
device?: {
|
|
3525
|
+
ownerId: string;
|
|
3526
|
+
id: string;
|
|
3527
|
+
name: string;
|
|
3528
|
+
} | undefined;
|
|
3486
3529
|
shorthand?: string | undefined;
|
|
3487
3530
|
type: string;
|
|
3488
3531
|
id: string;
|
|
@@ -3510,6 +3553,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
3510
3553
|
id: string;
|
|
3511
3554
|
};
|
|
3512
3555
|
resource?: {
|
|
3556
|
+
device?: {
|
|
3557
|
+
ownerId: string;
|
|
3558
|
+
id: string;
|
|
3559
|
+
name: string;
|
|
3560
|
+
} | undefined;
|
|
3513
3561
|
shorthand?: string | undefined;
|
|
3514
3562
|
type: string;
|
|
3515
3563
|
id: string;
|
|
@@ -3774,6 +3822,7 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
3774
3822
|
canClose?: boolean | undefined;
|
|
3775
3823
|
acceptsTabs?: boolean | undefined;
|
|
3776
3824
|
resizable?: boolean | undefined;
|
|
3825
|
+
movable?: boolean | undefined;
|
|
3777
3826
|
floatable?: boolean | undefined;
|
|
3778
3827
|
size?: {
|
|
3779
3828
|
defaultPx?: number | undefined;
|
|
@@ -3925,6 +3974,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
3925
3974
|
id: string;
|
|
3926
3975
|
};
|
|
3927
3976
|
resource?: {
|
|
3977
|
+
device?: {
|
|
3978
|
+
ownerId: string;
|
|
3979
|
+
id: string;
|
|
3980
|
+
name: string;
|
|
3981
|
+
} | undefined;
|
|
3928
3982
|
shorthand?: string | undefined;
|
|
3929
3983
|
type: string;
|
|
3930
3984
|
id: string;
|
|
@@ -3952,6 +4006,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
3952
4006
|
id: string;
|
|
3953
4007
|
};
|
|
3954
4008
|
resource?: {
|
|
4009
|
+
device?: {
|
|
4010
|
+
ownerId: string;
|
|
4011
|
+
id: string;
|
|
4012
|
+
name: string;
|
|
4013
|
+
} | undefined;
|
|
3955
4014
|
shorthand?: string | undefined;
|
|
3956
4015
|
type: string;
|
|
3957
4016
|
id: string;
|
|
@@ -4567,6 +4626,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
4567
4626
|
id: string;
|
|
4568
4627
|
};
|
|
4569
4628
|
resource?: {
|
|
4629
|
+
device?: {
|
|
4630
|
+
ownerId: string;
|
|
4631
|
+
id: string;
|
|
4632
|
+
name: string;
|
|
4633
|
+
} | undefined;
|
|
4570
4634
|
shorthand?: string | undefined;
|
|
4571
4635
|
type: string;
|
|
4572
4636
|
id: string;
|
|
@@ -4594,6 +4658,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
4594
4658
|
id: string;
|
|
4595
4659
|
};
|
|
4596
4660
|
resource?: {
|
|
4661
|
+
device?: {
|
|
4662
|
+
ownerId: string;
|
|
4663
|
+
id: string;
|
|
4664
|
+
name: string;
|
|
4665
|
+
} | undefined;
|
|
4597
4666
|
shorthand?: string | undefined;
|
|
4598
4667
|
type: string;
|
|
4599
4668
|
id: string;
|
|
@@ -4724,6 +4793,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
4724
4793
|
id: string;
|
|
4725
4794
|
};
|
|
4726
4795
|
resource?: {
|
|
4796
|
+
device?: {
|
|
4797
|
+
ownerId: string;
|
|
4798
|
+
id: string;
|
|
4799
|
+
name: string;
|
|
4800
|
+
} | undefined;
|
|
4727
4801
|
shorthand?: string | undefined;
|
|
4728
4802
|
type: string;
|
|
4729
4803
|
id: string;
|
|
@@ -4751,6 +4825,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
4751
4825
|
id: string;
|
|
4752
4826
|
};
|
|
4753
4827
|
resource?: {
|
|
4828
|
+
device?: {
|
|
4829
|
+
ownerId: string;
|
|
4830
|
+
id: string;
|
|
4831
|
+
name: string;
|
|
4832
|
+
} | undefined;
|
|
4754
4833
|
shorthand?: string | undefined;
|
|
4755
4834
|
type: string;
|
|
4756
4835
|
id: string;
|
|
@@ -4916,6 +4995,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
4916
4995
|
id: string;
|
|
4917
4996
|
};
|
|
4918
4997
|
resource?: {
|
|
4998
|
+
device?: {
|
|
4999
|
+
ownerId: string;
|
|
5000
|
+
id: string;
|
|
5001
|
+
name: string;
|
|
5002
|
+
} | undefined;
|
|
4919
5003
|
shorthand?: string | undefined;
|
|
4920
5004
|
type: string;
|
|
4921
5005
|
id: string;
|
|
@@ -4943,6 +5027,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
4943
5027
|
id: string;
|
|
4944
5028
|
};
|
|
4945
5029
|
resource?: {
|
|
5030
|
+
device?: {
|
|
5031
|
+
ownerId: string;
|
|
5032
|
+
id: string;
|
|
5033
|
+
name: string;
|
|
5034
|
+
} | undefined;
|
|
4946
5035
|
shorthand?: string | undefined;
|
|
4947
5036
|
type: string;
|
|
4948
5037
|
id: string;
|
|
@@ -5160,8 +5249,6 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
|
|
|
5160
5249
|
}>;
|
|
5161
5250
|
};
|
|
5162
5251
|
};
|
|
5163
|
-
//#endregion
|
|
5164
|
-
//#region src/client/extension-stream.d.ts
|
|
5165
5252
|
/** @deprecated Use CommandStream from @pstdio/sdk/extensions for chunks and a complete final outcome. */
|
|
5166
5253
|
type CommandStreamClientEvent = {
|
|
5167
5254
|
type: "data";
|
|
@@ -5170,8 +5257,6 @@ type CommandStreamClientEvent = {
|
|
|
5170
5257
|
type: "end";
|
|
5171
5258
|
response: CommandExecuteResponse;
|
|
5172
5259
|
};
|
|
5173
|
-
//#endregion
|
|
5174
|
-
//#region src/client/extensions.d.ts
|
|
5175
5260
|
type ExtensionClient = ReturnType<typeof createExtensionControlsClient> & ReturnType<typeof createExtensionManagementClient> & {
|
|
5176
5261
|
install(projectId: string, input: InstallExtensionRequest | {
|
|
5177
5262
|
upload: FormData;
|
|
@@ -5202,8 +5287,6 @@ type ExtensionClient = ReturnType<typeof createExtensionControlsClient> & Return
|
|
|
5202
5287
|
}): Promise<CommandExecutionResult & CommandExecuteResponse>;
|
|
5203
5288
|
dispatchEvent(projectId: string, input: DispatchExtensionEventInput): Promise<void>;
|
|
5204
5289
|
};
|
|
5205
|
-
//#endregion
|
|
5206
|
-
//#region src/client/filesystem.d.ts
|
|
5207
5290
|
interface DirectoryEntry {
|
|
5208
5291
|
name: string;
|
|
5209
5292
|
path: string;
|
|
@@ -5232,16 +5315,12 @@ declare const createFilesystemClient: (request: RequestFn) => {
|
|
|
5232
5315
|
}>;
|
|
5233
5316
|
};
|
|
5234
5317
|
type FilesystemClient = ReturnType<typeof createFilesystemClient>;
|
|
5235
|
-
//#endregion
|
|
5236
|
-
//#region src/client/link-icons.d.ts
|
|
5237
5318
|
type LinkIconsClient = {
|
|
5238
5319
|
/** Returns the site icon of an http or https page. Throws a 404 `PstdioApiError` when the page has none. */
|
|
5239
5320
|
get(url: string, options?: {
|
|
5240
5321
|
signal?: AbortSignal;
|
|
5241
5322
|
}): Promise<LinkIcon>;
|
|
5242
5323
|
};
|
|
5243
|
-
//#endregion
|
|
5244
|
-
//#region src/client/notifications.d.ts
|
|
5245
5324
|
type NotificationsClient = {
|
|
5246
5325
|
query(projectId: string, input?: ListNotificationsQuery): Promise<Page<Notification>>;
|
|
5247
5326
|
/** @deprecated Use query for the required nullable cursor contract. */
|
|
@@ -5273,8 +5352,6 @@ type NotificationsClient = {
|
|
|
5273
5352
|
notifications: Notification[];
|
|
5274
5353
|
}>;
|
|
5275
5354
|
};
|
|
5276
|
-
//#endregion
|
|
5277
|
-
//#region src/client/projects.d.ts
|
|
5278
5355
|
type ProjectClient = {
|
|
5279
5356
|
query(input?: PageQuery): Promise<Page<Project & ProjectDetails>>;
|
|
5280
5357
|
/** @deprecated Use query to read one bounded page. */
|
|
@@ -5289,8 +5366,6 @@ type ProjectClient = {
|
|
|
5289
5366
|
update(projectId: string, input: ProjectUpdateRequest | UpdateProjectInput): Promise<Project & ProjectDetails>;
|
|
5290
5367
|
delete(projectId: string): Promise<void>;
|
|
5291
5368
|
};
|
|
5292
|
-
//#endregion
|
|
5293
|
-
//#region src/client/resource-anchors.d.ts
|
|
5294
5369
|
interface ResourceAnchorsClient {
|
|
5295
5370
|
addAnchors(projectId: string, resource: ResourceRef, anchors: ResourceAnchor[]): Promise<void>;
|
|
5296
5371
|
removeAnchors(projectId: string, resource: ResourceRef, refs: ResourceRef[]): Promise<void>;
|
|
@@ -5298,8 +5373,6 @@ interface ResourceAnchorsClient {
|
|
|
5298
5373
|
/** @deprecated Use queryAnchors for the required nullable cursor contract. */
|
|
5299
5374
|
listAnchors(projectId: string, input: ResourceAnchorQuery): Promise<ResourceAnchorPage>;
|
|
5300
5375
|
}
|
|
5301
|
-
//#endregion
|
|
5302
|
-
//#region src/client/runtime.d.ts
|
|
5303
5376
|
type RuntimeClient = {
|
|
5304
5377
|
ready: () => Promise<RuntimeReadyResponse>;
|
|
5305
5378
|
claimBrowserSession: (code: string) => Promise<{
|
|
@@ -5313,20 +5386,14 @@ type RuntimeClient = {
|
|
|
5313
5386
|
}>;
|
|
5314
5387
|
};
|
|
5315
5388
|
declare const createRuntimeClient: (request: RequestFn) => RuntimeClient;
|
|
5316
|
-
//#endregion
|
|
5317
|
-
//#region src/client/session-query.d.ts
|
|
5318
5389
|
declare const createSessionQueryClient: (request: RequestFn) => {
|
|
5319
5390
|
query: (projectId: string, input?: ExtensionSessionQuery, options?: Pick<RequestOptions, "signal">) => Promise<ExtensionSessionPage>;
|
|
5320
5391
|
iterate: (projectId: string, input?: ExtensionSessionQuery, options?: Pick<RequestOptions, "signal">) => AsyncGenerator<ExtensionSession & ExtensionSessionSummary, void, unknown>;
|
|
5321
5392
|
};
|
|
5322
|
-
//#endregion
|
|
5323
|
-
//#region src/client/sse.d.ts
|
|
5324
5393
|
type SseEvent = {
|
|
5325
5394
|
event: string;
|
|
5326
5395
|
data: string;
|
|
5327
5396
|
};
|
|
5328
|
-
//#endregion
|
|
5329
|
-
//#region src/client/sessions.d.ts
|
|
5330
5397
|
/** @deprecated Use ExtensionSessionQuery from @pstdio/sdk/extensions with query or iterate. */
|
|
5331
5398
|
type ListSessionsInput = {
|
|
5332
5399
|
status?: string;
|
|
@@ -5400,6 +5467,8 @@ type SessionClient = ReturnType<typeof createSessionQueryClient> & {
|
|
|
5400
5467
|
signal?: AbortSignal;
|
|
5401
5468
|
}): Promise<void>;
|
|
5402
5469
|
connectStream(sessionId: string, handlers: SessionStreamHandlers): SessionStreamConnection;
|
|
5470
|
+
/** Keep a session's idle tool resources while a tab or other consumer is open. Close to release interest. */
|
|
5471
|
+
retainResources(sessionId: string): SessionStreamConnection;
|
|
5403
5472
|
};
|
|
5404
5473
|
type SessionStreamHandlers = {
|
|
5405
5474
|
onReady?: (data: unknown) => void;
|
|
@@ -5414,14 +5483,10 @@ type SessionStreamHandlers = {
|
|
|
5414
5483
|
type SessionStreamConnection = {
|
|
5415
5484
|
close: () => void;
|
|
5416
5485
|
};
|
|
5417
|
-
//#endregion
|
|
5418
|
-
//#region src/client/settings.d.ts
|
|
5419
5486
|
type SettingsClient = {
|
|
5420
5487
|
get(): Promise<Settings>;
|
|
5421
5488
|
update(input: UpdateSettingsInput): Promise<Settings>;
|
|
5422
5489
|
};
|
|
5423
|
-
//#endregion
|
|
5424
|
-
//#region src/client/skills.d.ts
|
|
5425
5490
|
type SkillClient = {
|
|
5426
5491
|
query(projectId: string, input?: PageQuery): Promise<Page<Skill & SkillDetails>>;
|
|
5427
5492
|
/** @deprecated Use query to read one bounded page. */
|
|
@@ -5430,8 +5495,6 @@ type SkillClient = {
|
|
|
5430
5495
|
/** @deprecated No maintained client caller. Use `PUT /v1/projects/{projectId}/skills/{name}` for this operation; the convenience method is removed in 0.45. */
|
|
5431
5496
|
updatePreferences(projectId: string, skillName: string, input: UpdateSkillInput): Promise<Skill>;
|
|
5432
5497
|
};
|
|
5433
|
-
//#endregion
|
|
5434
|
-
//#region src/client/sync.d.ts
|
|
5435
5498
|
type SyncRow = {
|
|
5436
5499
|
id: string;
|
|
5437
5500
|
[key: string]: unknown;
|
|
@@ -5466,8 +5529,6 @@ declare const parseSyncDeleteEvent: (data: string) => {
|
|
|
5466
5529
|
seq: number;
|
|
5467
5530
|
};
|
|
5468
5531
|
declare const applySyncEvent: (event: string, data: string, writers: SyncWriterProvider) => number | null;
|
|
5469
|
-
//#endregion
|
|
5470
|
-
//#region src/client/workspace-diffs.d.ts
|
|
5471
5532
|
declare const createWorkspaceDiffClient: (request: RequestFn) => {
|
|
5472
5533
|
diffFiles: (id: string, mode: "current" | "fork_point", signal?: AbortSignal) => Promise<{
|
|
5473
5534
|
workspace_id: string;
|
|
@@ -5504,8 +5565,6 @@ declare const createWorkspaceDiffClient: (request: RequestFn) => {
|
|
|
5504
5565
|
file_count: number;
|
|
5505
5566
|
} | null>;
|
|
5506
5567
|
};
|
|
5507
|
-
//#endregion
|
|
5508
|
-
//#region src/client/workspaces.d.ts
|
|
5509
5568
|
type WorkspaceClient = ReturnType<typeof createWorkspaceDiffClient> & {
|
|
5510
5569
|
queryProviders(projectId: string, input?: PageQuery, options?: {
|
|
5511
5570
|
signal?: AbortSignal;
|
|
@@ -5540,8 +5599,6 @@ type WorkspaceClient = ReturnType<typeof createWorkspaceDiffClient> & {
|
|
|
5540
5599
|
removeWorktree(workspaceId: string): Promise<RemoveWorktreeResponse>;
|
|
5541
5600
|
delete(workspaceId: string): Promise<void>;
|
|
5542
5601
|
};
|
|
5543
|
-
//#endregion
|
|
5544
|
-
//#region src/client/client.d.ts
|
|
5545
5602
|
type PstdioClient = {
|
|
5546
5603
|
account: AccountClient;
|
|
5547
5604
|
assets: AssetsClient;
|
|
@@ -5562,12 +5619,9 @@ type PstdioClient = {
|
|
|
5562
5619
|
runtime: RuntimeClient;
|
|
5563
5620
|
};
|
|
5564
5621
|
declare const createClient: (options?: ClientOptions) => PstdioClient;
|
|
5565
|
-
//#endregion
|
|
5566
|
-
//#region src/client/resource-compat.d.ts
|
|
5567
5622
|
/** @deprecated Import `AssetReference` from `@pstdio/sdk/resources`. */
|
|
5568
5623
|
type AssetReference = AssetReference$1;
|
|
5569
5624
|
/** @deprecated Import `AssetTransfer` from `@pstdio/sdk/resources`. */
|
|
5570
5625
|
type AssetTransfer = AssetTransfer$1;
|
|
5571
|
-
|
|
5572
|
-
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 };
|
|
5573
5627
|
export {};
|