@synsci/sdk 2.0.2-test.33.1 → 2.0.2-test.35.1
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/client.d.ts +2 -0
- package/dist/client.js +7 -0
- package/dist/v2/client.d.ts +2 -0
- package/dist/v2/client.js +7 -0
- package/dist/v2/gen/sdk.gen.d.ts +42 -1
- package/dist/v2/gen/sdk.gen.js +81 -0
- package/dist/v2/gen/types.gen.d.ts +786 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -4,4 +4,6 @@ import { OpenScienceClient } from "./gen/sdk.gen.js";
|
|
|
4
4
|
export { type Config as OpenScienceClientConfig, OpenScienceClient };
|
|
5
5
|
export declare function createOpenScienceClient(config?: Config & {
|
|
6
6
|
directory?: string;
|
|
7
|
+
projectID?: string;
|
|
8
|
+
project?: string;
|
|
7
9
|
}): OpenScienceClient;
|
package/dist/client.js
CHANGED
|
@@ -20,6 +20,13 @@ export function createOpenScienceClient(config) {
|
|
|
20
20
|
"x-openscience-directory": config.directory,
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
+
const project = config?.projectID ?? config?.project;
|
|
24
|
+
if (project) {
|
|
25
|
+
config.headers = {
|
|
26
|
+
...config.headers,
|
|
27
|
+
"x-openscience-project": project,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
23
30
|
const client = createClient(config);
|
|
24
31
|
return new OpenScienceClient({ client });
|
|
25
32
|
}
|
package/dist/v2/client.d.ts
CHANGED
|
@@ -4,4 +4,6 @@ import { OpenScienceClient } from "./gen/sdk.gen.js";
|
|
|
4
4
|
export { type Config as OpenScienceClientConfig, OpenScienceClient };
|
|
5
5
|
export declare function createOpenScienceClient(config?: Config & {
|
|
6
6
|
directory?: string;
|
|
7
|
+
projectID?: string;
|
|
8
|
+
project?: string;
|
|
7
9
|
}): OpenScienceClient;
|
package/dist/v2/client.js
CHANGED
|
@@ -22,6 +22,13 @@ export function createOpenScienceClient(config) {
|
|
|
22
22
|
"x-openscience-directory": encodedDirectory,
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
+
const project = config?.projectID ?? config?.project;
|
|
26
|
+
if (project) {
|
|
27
|
+
config.headers = {
|
|
28
|
+
...config.headers,
|
|
29
|
+
"x-openscience-project": project,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
25
32
|
const client = createClient(config);
|
|
26
33
|
return new OpenScienceClient({ client });
|
|
27
34
|
}
|
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
|
|
2
|
-
import type { AccountBalanceResponses, AccountBillingModeGetResponses, AccountBillingModeSetResponses, AccountDeviceRevokeResponses, AccountDevicesResponses, AccountGetResponses, AccountLoginKeyResponses, AccountLogoutResponses, AccountSessionResponses, AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillDeleteResponses, AppSkillsResponses, AppSkillWriteResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config4, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, ExperimentalResourceListResponses, FileAnnotationsCreateResponses, FileAnnotationsDeleteResponses, FileAnnotationsHistoryResponses, FileAnnotationsListResponses, FileAnnotationsUpdateResponses, FileArtifactsResponses, FileInspectResponses, FileListResponses, FileManifestResponses, FilePartInput, FilePartSource, FileProvenanceResponses, FilePublicationCapabilitiesResponses, FilePublicationResponses, FileRawResponses, FileReadResponses, FileReproducibilityResponses, FileReviewsCurrentErrors, FileReviewsCurrentResponses, FileReviewsFinalizeErrors, FileReviewsFinalizeResponses, FileReviewsHistoryResponses, FileReviewsResolveErrors, FileReviewsResolveResponses, FileReviewsRunResponses, FileStarterResponses, FileStatusResponses, FileWriteResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigRawGetResponses, GlobalConfigRawSetErrors, GlobalConfigRawSetResponses, GlobalConfigUnsetErrors, GlobalConfigUnsetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, GlobalSyncResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConfigRemoveErrors, McpConfigRemoveResponses, McpConfigSetErrors, McpConfigSetResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PostSettingsLocalModelsResponses, PostSettingsLocalResponses, PostSettingsLocalStartResponses, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProvenanceExportResponses, ProvenanceListResponses, ProvenanceRecordErrors, ProvenanceRecordResponses, ProvenanceReviewErrors, ProvenanceReviewResponses, ProvenanceTraceErrors, ProvenanceTraceResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, PutSettingsSandboxResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUpdateErrors, SessionUpdateResponses, SettingsBillingGetResponses, SettingsBillingUpdateResponses, SettingsComputeEndpointAddErrors, SettingsComputeEndpointAddResponses, SettingsComputeEndpointRemoveResponses, SettingsComputeGetResponses, SettingsComputeJobsCancelErrors, SettingsComputeJobsCancelResponses, SettingsComputeJobsClearResponses, SettingsComputeJobsListResponses, SettingsComputeJobsLogErrors, SettingsComputeJobsLogResponses, SettingsComputeJobsStartErrors, SettingsComputeJobsStartResponses, SettingsComputeProviderConnectErrors, SettingsComputeProviderConnectResponses, SettingsComputeProviderDisconnectResponses, SettingsComputeSshAddErrors, SettingsComputeSshAddResponses, SettingsComputeSshRemoveResponses, SettingsComputeSshTestErrors, SettingsComputeSshTestResponses, SettingsCredentialsListResponses, SettingsCredentialsRemoveResponses, SettingsCredentialsSetResponses, SettingsMemoryGetResponses, SettingsMemorySetResponses, SettingsNetworkGetResponses, SettingsNetworkSetResponses, SettingsPermissionsGetResponses, SettingsPermissionsRevokeAllErrors, SettingsPermissionsRevokeAllResponses, SettingsPermissionsSetErrors, SettingsPermissionsSetResponses, SettingsPreferencesGetResponses, SettingsPreferencesUpdateResponses, SettingsSkillsInstallErrors, SettingsSkillsInstallResponses, SettingsStorageRelocateResponses, SettingsStorageResetLocationResponses, SettingsStorageUsageResponses, SettingsUsageGetResponses, SettingsWalletGetResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
|
|
2
|
+
import type { AccountBalanceResponses, AccountBillingModeGetResponses, AccountBillingModeSetResponses, AccountDeviceRevokeResponses, AccountDevicesResponses, AccountGetResponses, AccountLoginKeyResponses, AccountLogoutResponses, AccountSessionResponses, AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillDeleteResponses, AppSkillsResponses, AppSkillWriteResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config4, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, ExperimentalResourceListResponses, FileAnnotationsCreateResponses, FileAnnotationsDeleteResponses, FileAnnotationsHistoryResponses, FileAnnotationsListResponses, FileAnnotationsUpdateResponses, FileArtifactsResponses, FileInspectResponses, FileListResponses, FileManifestResponses, FilePartInput, FilePartSource, FileProvenanceResponses, FilePublicationCapabilitiesResponses, FilePublicationResponses, FileRawResponses, FileReadResponses, FileReproducibilityResponses, FileReviewsCurrentErrors, FileReviewsCurrentResponses, FileReviewsFinalizeErrors, FileReviewsFinalizeResponses, FileReviewsHistoryResponses, FileReviewsResolveErrors, FileReviewsResolveResponses, FileReviewsRunResponses, FileStarterResponses, FileStatusResponses, FileWriteResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigRawGetResponses, GlobalConfigRawSetErrors, GlobalConfigRawSetResponses, GlobalConfigUnsetErrors, GlobalConfigUnsetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, GlobalSyncResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConfigRemoveErrors, McpConfigRemoveResponses, McpConfigSetErrors, McpConfigSetResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PostSettingsLocalModelsResponses, PostSettingsLocalResponses, PostSettingsLocalStartResponses, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProvenanceExportResponses, ProvenanceListResponses, ProvenanceRecordErrors, ProvenanceRecordResponses, ProvenanceReviewErrors, ProvenanceReviewResponses, ProvenanceTraceErrors, ProvenanceTraceResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, PutSettingsSandboxResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffResponses, SessionFilesystemGrantErrors, SessionFilesystemGrantResponses, SessionFilesystemListErrors, SessionFilesystemListResponses, SessionFilesystemRevokeErrors, SessionFilesystemRevokeResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUpdateErrors, SessionUpdateResponses, SettingsBillingGetResponses, SettingsBillingUpdateResponses, SettingsComputeEndpointAddErrors, SettingsComputeEndpointAddResponses, SettingsComputeEndpointRemoveResponses, SettingsComputeGetResponses, SettingsComputeJobsCancelErrors, SettingsComputeJobsCancelResponses, SettingsComputeJobsClearResponses, SettingsComputeJobsListResponses, SettingsComputeJobsLogErrors, SettingsComputeJobsLogResponses, SettingsComputeJobsStartErrors, SettingsComputeJobsStartResponses, SettingsComputeProviderConnectErrors, SettingsComputeProviderConnectResponses, SettingsComputeProviderDisconnectResponses, SettingsComputeSshAddErrors, SettingsComputeSshAddResponses, SettingsComputeSshRemoveResponses, SettingsComputeSshTestErrors, SettingsComputeSshTestResponses, SettingsCredentialsListResponses, SettingsCredentialsRemoveResponses, SettingsCredentialsSetResponses, SettingsMemoryGetResponses, SettingsMemorySetResponses, SettingsNetworkGetResponses, SettingsNetworkSetResponses, SettingsPermissionsGetResponses, SettingsPermissionsRevokeAllErrors, SettingsPermissionsRevokeAllResponses, SettingsPermissionsSetErrors, SettingsPermissionsSetResponses, SettingsPreferencesGetResponses, SettingsPreferencesUpdateResponses, SettingsSkillsInstallErrors, SettingsSkillsInstallResponses, SettingsStorageRelocateResponses, SettingsStorageResetLocationResponses, SettingsStorageUsageResponses, SettingsUsageGetResponses, SettingsWalletGetResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -690,6 +690,39 @@ export declare class Experimental extends HeyApiClient {
|
|
|
690
690
|
private _resource?;
|
|
691
691
|
get resource(): Resource;
|
|
692
692
|
}
|
|
693
|
+
export declare class Filesystem extends HeyApiClient {
|
|
694
|
+
/**
|
|
695
|
+
* List session filesystem grants
|
|
696
|
+
*
|
|
697
|
+
* List durable read-only and read-write filesystem grants for one session.
|
|
698
|
+
*/
|
|
699
|
+
list<ThrowOnError extends boolean = false>(parameters: {
|
|
700
|
+
sessionID: string;
|
|
701
|
+
directory?: string;
|
|
702
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionFilesystemListResponses, SessionFilesystemListErrors, ThrowOnError, "fields">;
|
|
703
|
+
/**
|
|
704
|
+
* Grant session filesystem access
|
|
705
|
+
*
|
|
706
|
+
* Grant read-only or read-write access to a canonical filesystem path for one use or the session.
|
|
707
|
+
*/
|
|
708
|
+
grant<ThrowOnError extends boolean = false>(parameters: {
|
|
709
|
+
sessionID: string;
|
|
710
|
+
directory?: string;
|
|
711
|
+
path?: string;
|
|
712
|
+
access?: "read" | "write";
|
|
713
|
+
scope?: "once" | "session";
|
|
714
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionFilesystemGrantResponses, SessionFilesystemGrantErrors, ThrowOnError, "fields">;
|
|
715
|
+
/**
|
|
716
|
+
* Revoke session filesystem access
|
|
717
|
+
*
|
|
718
|
+
* Revoke a filesystem grant and stop the session kernels so stale mounts cannot survive.
|
|
719
|
+
*/
|
|
720
|
+
revoke<ThrowOnError extends boolean = false>(parameters: {
|
|
721
|
+
sessionID: string;
|
|
722
|
+
grantID: string;
|
|
723
|
+
directory?: string;
|
|
724
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionFilesystemRevokeResponses, SessionFilesystemRevokeErrors, ThrowOnError, "fields">;
|
|
725
|
+
}
|
|
693
726
|
export declare class Session extends HeyApiClient {
|
|
694
727
|
/**
|
|
695
728
|
* List sessions
|
|
@@ -949,6 +982,8 @@ export declare class Session extends HeyApiClient {
|
|
|
949
982
|
sessionID: string;
|
|
950
983
|
directory?: string;
|
|
951
984
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUnrevertResponses, SessionUnrevertErrors, ThrowOnError, "fields">;
|
|
985
|
+
private _filesystem?;
|
|
986
|
+
get filesystem(): Filesystem;
|
|
952
987
|
}
|
|
953
988
|
export declare class Part extends HeyApiClient {
|
|
954
989
|
/**
|
|
@@ -1246,6 +1281,7 @@ export declare class File extends HeyApiClient {
|
|
|
1246
1281
|
list<ThrowOnError extends boolean = false>(parameters: {
|
|
1247
1282
|
directory?: string;
|
|
1248
1283
|
path: string;
|
|
1284
|
+
sessionID?: string;
|
|
1249
1285
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileListResponses, unknown, ThrowOnError, "fields">;
|
|
1250
1286
|
/**
|
|
1251
1287
|
* Read file
|
|
@@ -1255,6 +1291,7 @@ export declare class File extends HeyApiClient {
|
|
|
1255
1291
|
read<ThrowOnError extends boolean = false>(parameters: {
|
|
1256
1292
|
directory?: string;
|
|
1257
1293
|
path: string;
|
|
1294
|
+
sessionID?: string;
|
|
1258
1295
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileReadResponses, unknown, ThrowOnError, "fields">;
|
|
1259
1296
|
/**
|
|
1260
1297
|
* Write file
|
|
@@ -1265,6 +1302,7 @@ export declare class File extends HeyApiClient {
|
|
|
1265
1302
|
directory?: string;
|
|
1266
1303
|
path?: string;
|
|
1267
1304
|
content?: string;
|
|
1305
|
+
sessionID?: string;
|
|
1268
1306
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileWriteResponses, unknown, ThrowOnError, "fields">;
|
|
1269
1307
|
/**
|
|
1270
1308
|
* Inspect a scientific binary file
|
|
@@ -1274,6 +1312,7 @@ export declare class File extends HeyApiClient {
|
|
|
1274
1312
|
inspect<ThrowOnError extends boolean = false>(parameters: {
|
|
1275
1313
|
directory?: string;
|
|
1276
1314
|
path: string;
|
|
1315
|
+
sessionID?: string;
|
|
1277
1316
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileInspectResponses, unknown, ThrowOnError, "fields">;
|
|
1278
1317
|
/**
|
|
1279
1318
|
* Download a file
|
|
@@ -1283,6 +1322,7 @@ export declare class File extends HeyApiClient {
|
|
|
1283
1322
|
raw<ThrowOnError extends boolean = false>(parameters: {
|
|
1284
1323
|
directory?: string;
|
|
1285
1324
|
path: string;
|
|
1325
|
+
sessionID?: string;
|
|
1286
1326
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileRawResponses, unknown, ThrowOnError, "fields">;
|
|
1287
1327
|
/**
|
|
1288
1328
|
* List local research artifacts
|
|
@@ -1300,6 +1340,7 @@ export declare class File extends HeyApiClient {
|
|
|
1300
1340
|
provenance<ThrowOnError extends boolean = false>(parameters: {
|
|
1301
1341
|
directory?: string;
|
|
1302
1342
|
path: string;
|
|
1343
|
+
sessionID?: string;
|
|
1303
1344
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileProvenanceResponses, unknown, ThrowOnError, "fields">;
|
|
1304
1345
|
/**
|
|
1305
1346
|
* Audit project reproducibility
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -1335,6 +1335,77 @@ export class Experimental extends HeyApiClient {
|
|
|
1335
1335
|
return (this._resource ??= new Resource({ client: this.client }));
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
|
+
export class Filesystem extends HeyApiClient {
|
|
1339
|
+
/**
|
|
1340
|
+
* List session filesystem grants
|
|
1341
|
+
*
|
|
1342
|
+
* List durable read-only and read-write filesystem grants for one session.
|
|
1343
|
+
*/
|
|
1344
|
+
list(parameters, options) {
|
|
1345
|
+
const params = buildClientParams([parameters], [
|
|
1346
|
+
{
|
|
1347
|
+
args: [
|
|
1348
|
+
{ in: "path", key: "sessionID" },
|
|
1349
|
+
{ in: "query", key: "directory" },
|
|
1350
|
+
],
|
|
1351
|
+
},
|
|
1352
|
+
]);
|
|
1353
|
+
return (options?.client ?? this.client).get({
|
|
1354
|
+
url: "/session/{sessionID}/filesystem",
|
|
1355
|
+
...options,
|
|
1356
|
+
...params,
|
|
1357
|
+
});
|
|
1358
|
+
}
|
|
1359
|
+
/**
|
|
1360
|
+
* Grant session filesystem access
|
|
1361
|
+
*
|
|
1362
|
+
* Grant read-only or read-write access to a canonical filesystem path for one use or the session.
|
|
1363
|
+
*/
|
|
1364
|
+
grant(parameters, options) {
|
|
1365
|
+
const params = buildClientParams([parameters], [
|
|
1366
|
+
{
|
|
1367
|
+
args: [
|
|
1368
|
+
{ in: "path", key: "sessionID" },
|
|
1369
|
+
{ in: "query", key: "directory" },
|
|
1370
|
+
{ in: "body", key: "path" },
|
|
1371
|
+
{ in: "body", key: "access" },
|
|
1372
|
+
{ in: "body", key: "scope" },
|
|
1373
|
+
],
|
|
1374
|
+
},
|
|
1375
|
+
]);
|
|
1376
|
+
return (options?.client ?? this.client).post({
|
|
1377
|
+
url: "/session/{sessionID}/filesystem",
|
|
1378
|
+
...options,
|
|
1379
|
+
...params,
|
|
1380
|
+
headers: {
|
|
1381
|
+
"Content-Type": "application/json",
|
|
1382
|
+
...options?.headers,
|
|
1383
|
+
...params.headers,
|
|
1384
|
+
},
|
|
1385
|
+
});
|
|
1386
|
+
}
|
|
1387
|
+
/**
|
|
1388
|
+
* Revoke session filesystem access
|
|
1389
|
+
*
|
|
1390
|
+
* Revoke a filesystem grant and stop the session kernels so stale mounts cannot survive.
|
|
1391
|
+
*/
|
|
1392
|
+
revoke(parameters, options) {
|
|
1393
|
+
const params = buildClientParams([parameters], [
|
|
1394
|
+
{
|
|
1395
|
+
args: [
|
|
1396
|
+
{ in: "path", key: "sessionID" },
|
|
1397
|
+
{ in: "path", key: "grantID" },
|
|
1398
|
+
{ in: "query", key: "directory" },
|
|
1399
|
+
],
|
|
1400
|
+
},
|
|
1401
|
+
]);
|
|
1402
|
+
return (options?.client ?? this.client).delete({
|
|
1403
|
+
url: "/session/{sessionID}/filesystem/{grantID}",
|
|
1404
|
+
...options,
|
|
1405
|
+
...params,
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1338
1409
|
export class Session extends HeyApiClient {
|
|
1339
1410
|
/**
|
|
1340
1411
|
* List sessions
|
|
@@ -1847,6 +1918,10 @@ export class Session extends HeyApiClient {
|
|
|
1847
1918
|
...params,
|
|
1848
1919
|
});
|
|
1849
1920
|
}
|
|
1921
|
+
_filesystem;
|
|
1922
|
+
get filesystem() {
|
|
1923
|
+
return (this._filesystem ??= new Filesystem({ client: this.client }));
|
|
1924
|
+
}
|
|
1850
1925
|
}
|
|
1851
1926
|
export class Part extends HeyApiClient {
|
|
1852
1927
|
/**
|
|
@@ -2434,6 +2509,7 @@ export class File extends HeyApiClient {
|
|
|
2434
2509
|
args: [
|
|
2435
2510
|
{ in: "query", key: "directory" },
|
|
2436
2511
|
{ in: "query", key: "path" },
|
|
2512
|
+
{ in: "query", key: "sessionID" },
|
|
2437
2513
|
],
|
|
2438
2514
|
},
|
|
2439
2515
|
]);
|
|
@@ -2454,6 +2530,7 @@ export class File extends HeyApiClient {
|
|
|
2454
2530
|
args: [
|
|
2455
2531
|
{ in: "query", key: "directory" },
|
|
2456
2532
|
{ in: "query", key: "path" },
|
|
2533
|
+
{ in: "query", key: "sessionID" },
|
|
2457
2534
|
],
|
|
2458
2535
|
},
|
|
2459
2536
|
]);
|
|
@@ -2475,6 +2552,7 @@ export class File extends HeyApiClient {
|
|
|
2475
2552
|
{ in: "query", key: "directory" },
|
|
2476
2553
|
{ in: "body", key: "path" },
|
|
2477
2554
|
{ in: "body", key: "content" },
|
|
2555
|
+
{ in: "body", key: "sessionID" },
|
|
2478
2556
|
],
|
|
2479
2557
|
},
|
|
2480
2558
|
]);
|
|
@@ -2500,6 +2578,7 @@ export class File extends HeyApiClient {
|
|
|
2500
2578
|
args: [
|
|
2501
2579
|
{ in: "query", key: "directory" },
|
|
2502
2580
|
{ in: "query", key: "path" },
|
|
2581
|
+
{ in: "query", key: "sessionID" },
|
|
2503
2582
|
],
|
|
2504
2583
|
},
|
|
2505
2584
|
]);
|
|
@@ -2520,6 +2599,7 @@ export class File extends HeyApiClient {
|
|
|
2520
2599
|
args: [
|
|
2521
2600
|
{ in: "query", key: "directory" },
|
|
2522
2601
|
{ in: "query", key: "path" },
|
|
2602
|
+
{ in: "query", key: "sessionID" },
|
|
2523
2603
|
],
|
|
2524
2604
|
},
|
|
2525
2605
|
]);
|
|
@@ -2553,6 +2633,7 @@ export class File extends HeyApiClient {
|
|
|
2553
2633
|
args: [
|
|
2554
2634
|
{ in: "query", key: "directory" },
|
|
2555
2635
|
{ in: "query", key: "path" },
|
|
2636
|
+
{ in: "query", key: "sessionID" },
|
|
2556
2637
|
],
|
|
2557
2638
|
},
|
|
2558
2639
|
]);
|
|
@@ -78,6 +78,24 @@ export type EventFileWatcherUpdated = {
|
|
|
78
78
|
event: "add" | "change" | "unlink";
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
|
+
export type EventSessionFilesystemChanged = {
|
|
82
|
+
type: "session.filesystem.changed";
|
|
83
|
+
properties: {
|
|
84
|
+
sessionID: string;
|
|
85
|
+
grant: {
|
|
86
|
+
id: string;
|
|
87
|
+
path: string;
|
|
88
|
+
access: "read" | "write";
|
|
89
|
+
scope: "once" | "session";
|
|
90
|
+
source: "workspace" | "permission" | "api";
|
|
91
|
+
time: {
|
|
92
|
+
created: number;
|
|
93
|
+
consumed?: number;
|
|
94
|
+
revoked?: number;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
81
99
|
export type EventFileEdited = {
|
|
82
100
|
type: "file.edited";
|
|
83
101
|
properties: {
|
|
@@ -767,7 +785,7 @@ export type EventWorktreeFailed = {
|
|
|
767
785
|
message: string;
|
|
768
786
|
};
|
|
769
787
|
};
|
|
770
|
-
export type Event = EventServerConnected | EventGlobalDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventFileWatcherUpdated | EventFileEdited | EventVcsBranchUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionContext | EventSessionCompaction | EventSessionCompacted | EventTodoUpdated | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSkillUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed;
|
|
788
|
+
export type Event = EventServerConnected | EventGlobalDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventFileWatcherUpdated | EventSessionFilesystemChanged | EventFileEdited | EventVcsBranchUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionContext | EventSessionCompaction | EventSessionCompacted | EventTodoUpdated | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSkillUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed;
|
|
771
789
|
export type GlobalEvent = {
|
|
772
790
|
directory: string;
|
|
773
791
|
payload: Event;
|
|
@@ -2899,6 +2917,7 @@ export type SettingsComputeJobsListResponses = {
|
|
|
2899
2917
|
node: string;
|
|
2900
2918
|
python?: string;
|
|
2901
2919
|
git?: {
|
|
2920
|
+
repository?: string;
|
|
2902
2921
|
branch?: string;
|
|
2903
2922
|
commit?: string;
|
|
2904
2923
|
dirty: boolean;
|
|
@@ -2917,6 +2936,214 @@ export type SettingsComputeJobsListResponses = {
|
|
|
2917
2936
|
partition?: string;
|
|
2918
2937
|
};
|
|
2919
2938
|
};
|
|
2939
|
+
provenance?: {
|
|
2940
|
+
format: "openscience.provenance.v1";
|
|
2941
|
+
kind: "kernel" | "local_compute" | "remote_compute" | "artifact_version";
|
|
2942
|
+
identity: {
|
|
2943
|
+
project_id: {
|
|
2944
|
+
status: "available";
|
|
2945
|
+
value: string;
|
|
2946
|
+
} | {
|
|
2947
|
+
status: "unavailable";
|
|
2948
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
2949
|
+
};
|
|
2950
|
+
session_id: {
|
|
2951
|
+
status: "available";
|
|
2952
|
+
value: string;
|
|
2953
|
+
} | {
|
|
2954
|
+
status: "unavailable";
|
|
2955
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
2956
|
+
};
|
|
2957
|
+
run_id: {
|
|
2958
|
+
status: "available";
|
|
2959
|
+
value: string;
|
|
2960
|
+
} | {
|
|
2961
|
+
status: "unavailable";
|
|
2962
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
2963
|
+
};
|
|
2964
|
+
};
|
|
2965
|
+
input: {
|
|
2966
|
+
code: {
|
|
2967
|
+
status: "available";
|
|
2968
|
+
value: string;
|
|
2969
|
+
} | {
|
|
2970
|
+
status: "unavailable";
|
|
2971
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
2972
|
+
};
|
|
2973
|
+
cwd: {
|
|
2974
|
+
status: "available";
|
|
2975
|
+
value: string;
|
|
2976
|
+
} | {
|
|
2977
|
+
status: "unavailable";
|
|
2978
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
2979
|
+
};
|
|
2980
|
+
code_state: {
|
|
2981
|
+
status: "available";
|
|
2982
|
+
value: {
|
|
2983
|
+
repository: {
|
|
2984
|
+
status: "available";
|
|
2985
|
+
value: string;
|
|
2986
|
+
} | {
|
|
2987
|
+
status: "unavailable";
|
|
2988
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
2989
|
+
};
|
|
2990
|
+
branch: {
|
|
2991
|
+
status: "available";
|
|
2992
|
+
value: string;
|
|
2993
|
+
} | {
|
|
2994
|
+
status: "unavailable";
|
|
2995
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
2996
|
+
};
|
|
2997
|
+
commit: {
|
|
2998
|
+
status: "available";
|
|
2999
|
+
value: string;
|
|
3000
|
+
} | {
|
|
3001
|
+
status: "unavailable";
|
|
3002
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3003
|
+
};
|
|
3004
|
+
dirty: {
|
|
3005
|
+
status: "available";
|
|
3006
|
+
value: boolean;
|
|
3007
|
+
} | {
|
|
3008
|
+
status: "unavailable";
|
|
3009
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3010
|
+
};
|
|
3011
|
+
};
|
|
3012
|
+
} | {
|
|
3013
|
+
status: "unavailable";
|
|
3014
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3015
|
+
};
|
|
3016
|
+
};
|
|
3017
|
+
environment: {
|
|
3018
|
+
host: {
|
|
3019
|
+
status: "available";
|
|
3020
|
+
value: {
|
|
3021
|
+
platform: string;
|
|
3022
|
+
arch: string;
|
|
3023
|
+
runtimes: {
|
|
3024
|
+
[key: string]: string;
|
|
3025
|
+
};
|
|
3026
|
+
};
|
|
3027
|
+
} | {
|
|
3028
|
+
status: "unavailable";
|
|
3029
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3030
|
+
};
|
|
3031
|
+
kernel: {
|
|
3032
|
+
status: "available";
|
|
3033
|
+
value: {
|
|
3034
|
+
id: string;
|
|
3035
|
+
language: string;
|
|
3036
|
+
incarnation: {
|
|
3037
|
+
status: "available";
|
|
3038
|
+
value: number;
|
|
3039
|
+
} | {
|
|
3040
|
+
status: "unavailable";
|
|
3041
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3042
|
+
};
|
|
3043
|
+
process_id: {
|
|
3044
|
+
status: "available";
|
|
3045
|
+
value: number;
|
|
3046
|
+
} | {
|
|
3047
|
+
status: "unavailable";
|
|
3048
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3049
|
+
};
|
|
3050
|
+
process_started_at: {
|
|
3051
|
+
status: "available";
|
|
3052
|
+
value: string;
|
|
3053
|
+
} | {
|
|
3054
|
+
status: "unavailable";
|
|
3055
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3056
|
+
};
|
|
3057
|
+
};
|
|
3058
|
+
} | {
|
|
3059
|
+
status: "unavailable";
|
|
3060
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3061
|
+
};
|
|
3062
|
+
};
|
|
3063
|
+
outputs: {
|
|
3064
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "interrupted" | "inconclusive";
|
|
3065
|
+
items: Array<{
|
|
3066
|
+
kind: "stream" | "display" | "result" | "error" | "artifact" | "checkpoint";
|
|
3067
|
+
label: string;
|
|
3068
|
+
artifact_id: {
|
|
3069
|
+
status: "available";
|
|
3070
|
+
value: string;
|
|
3071
|
+
} | {
|
|
3072
|
+
status: "unavailable";
|
|
3073
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3074
|
+
};
|
|
3075
|
+
path: {
|
|
3076
|
+
status: "available";
|
|
3077
|
+
value: string;
|
|
3078
|
+
} | {
|
|
3079
|
+
status: "unavailable";
|
|
3080
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3081
|
+
};
|
|
3082
|
+
sha256: string;
|
|
3083
|
+
size: number;
|
|
3084
|
+
version_id: {
|
|
3085
|
+
status: "available";
|
|
3086
|
+
value: string;
|
|
3087
|
+
} | {
|
|
3088
|
+
status: "unavailable";
|
|
3089
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3090
|
+
};
|
|
3091
|
+
version: {
|
|
3092
|
+
status: "available";
|
|
3093
|
+
value: number;
|
|
3094
|
+
} | {
|
|
3095
|
+
status: "unavailable";
|
|
3096
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3097
|
+
};
|
|
3098
|
+
created_at: {
|
|
3099
|
+
status: "available";
|
|
3100
|
+
value: string;
|
|
3101
|
+
} | {
|
|
3102
|
+
status: "unavailable";
|
|
3103
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3104
|
+
};
|
|
3105
|
+
}>;
|
|
3106
|
+
};
|
|
3107
|
+
timestamps: {
|
|
3108
|
+
created_at: {
|
|
3109
|
+
status: "available";
|
|
3110
|
+
value: string;
|
|
3111
|
+
} | {
|
|
3112
|
+
status: "unavailable";
|
|
3113
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3114
|
+
};
|
|
3115
|
+
started_at: {
|
|
3116
|
+
status: "available";
|
|
3117
|
+
value: string;
|
|
3118
|
+
} | {
|
|
3119
|
+
status: "unavailable";
|
|
3120
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3121
|
+
};
|
|
3122
|
+
completed_at: {
|
|
3123
|
+
status: "available";
|
|
3124
|
+
value: string;
|
|
3125
|
+
} | {
|
|
3126
|
+
status: "unavailable";
|
|
3127
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3128
|
+
};
|
|
3129
|
+
};
|
|
3130
|
+
handoff: {
|
|
3131
|
+
atlas_compute_id: {
|
|
3132
|
+
status: "available";
|
|
3133
|
+
value: string;
|
|
3134
|
+
} | {
|
|
3135
|
+
status: "unavailable";
|
|
3136
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3137
|
+
};
|
|
3138
|
+
atlas_run_id: {
|
|
3139
|
+
status: "available";
|
|
3140
|
+
value: string;
|
|
3141
|
+
} | {
|
|
3142
|
+
status: "unavailable";
|
|
3143
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3144
|
+
};
|
|
3145
|
+
};
|
|
3146
|
+
};
|
|
2920
3147
|
capture_error?: string;
|
|
2921
3148
|
scope?: {
|
|
2922
3149
|
directory: string;
|
|
@@ -3025,6 +3252,7 @@ export type SettingsComputeJobsStartResponses = {
|
|
|
3025
3252
|
node: string;
|
|
3026
3253
|
python?: string;
|
|
3027
3254
|
git?: {
|
|
3255
|
+
repository?: string;
|
|
3028
3256
|
branch?: string;
|
|
3029
3257
|
commit?: string;
|
|
3030
3258
|
dirty: boolean;
|
|
@@ -3043,6 +3271,214 @@ export type SettingsComputeJobsStartResponses = {
|
|
|
3043
3271
|
partition?: string;
|
|
3044
3272
|
};
|
|
3045
3273
|
};
|
|
3274
|
+
provenance?: {
|
|
3275
|
+
format: "openscience.provenance.v1";
|
|
3276
|
+
kind: "kernel" | "local_compute" | "remote_compute" | "artifact_version";
|
|
3277
|
+
identity: {
|
|
3278
|
+
project_id: {
|
|
3279
|
+
status: "available";
|
|
3280
|
+
value: string;
|
|
3281
|
+
} | {
|
|
3282
|
+
status: "unavailable";
|
|
3283
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3284
|
+
};
|
|
3285
|
+
session_id: {
|
|
3286
|
+
status: "available";
|
|
3287
|
+
value: string;
|
|
3288
|
+
} | {
|
|
3289
|
+
status: "unavailable";
|
|
3290
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3291
|
+
};
|
|
3292
|
+
run_id: {
|
|
3293
|
+
status: "available";
|
|
3294
|
+
value: string;
|
|
3295
|
+
} | {
|
|
3296
|
+
status: "unavailable";
|
|
3297
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3298
|
+
};
|
|
3299
|
+
};
|
|
3300
|
+
input: {
|
|
3301
|
+
code: {
|
|
3302
|
+
status: "available";
|
|
3303
|
+
value: string;
|
|
3304
|
+
} | {
|
|
3305
|
+
status: "unavailable";
|
|
3306
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3307
|
+
};
|
|
3308
|
+
cwd: {
|
|
3309
|
+
status: "available";
|
|
3310
|
+
value: string;
|
|
3311
|
+
} | {
|
|
3312
|
+
status: "unavailable";
|
|
3313
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3314
|
+
};
|
|
3315
|
+
code_state: {
|
|
3316
|
+
status: "available";
|
|
3317
|
+
value: {
|
|
3318
|
+
repository: {
|
|
3319
|
+
status: "available";
|
|
3320
|
+
value: string;
|
|
3321
|
+
} | {
|
|
3322
|
+
status: "unavailable";
|
|
3323
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3324
|
+
};
|
|
3325
|
+
branch: {
|
|
3326
|
+
status: "available";
|
|
3327
|
+
value: string;
|
|
3328
|
+
} | {
|
|
3329
|
+
status: "unavailable";
|
|
3330
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3331
|
+
};
|
|
3332
|
+
commit: {
|
|
3333
|
+
status: "available";
|
|
3334
|
+
value: string;
|
|
3335
|
+
} | {
|
|
3336
|
+
status: "unavailable";
|
|
3337
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3338
|
+
};
|
|
3339
|
+
dirty: {
|
|
3340
|
+
status: "available";
|
|
3341
|
+
value: boolean;
|
|
3342
|
+
} | {
|
|
3343
|
+
status: "unavailable";
|
|
3344
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3345
|
+
};
|
|
3346
|
+
};
|
|
3347
|
+
} | {
|
|
3348
|
+
status: "unavailable";
|
|
3349
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3350
|
+
};
|
|
3351
|
+
};
|
|
3352
|
+
environment: {
|
|
3353
|
+
host: {
|
|
3354
|
+
status: "available";
|
|
3355
|
+
value: {
|
|
3356
|
+
platform: string;
|
|
3357
|
+
arch: string;
|
|
3358
|
+
runtimes: {
|
|
3359
|
+
[key: string]: string;
|
|
3360
|
+
};
|
|
3361
|
+
};
|
|
3362
|
+
} | {
|
|
3363
|
+
status: "unavailable";
|
|
3364
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3365
|
+
};
|
|
3366
|
+
kernel: {
|
|
3367
|
+
status: "available";
|
|
3368
|
+
value: {
|
|
3369
|
+
id: string;
|
|
3370
|
+
language: string;
|
|
3371
|
+
incarnation: {
|
|
3372
|
+
status: "available";
|
|
3373
|
+
value: number;
|
|
3374
|
+
} | {
|
|
3375
|
+
status: "unavailable";
|
|
3376
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3377
|
+
};
|
|
3378
|
+
process_id: {
|
|
3379
|
+
status: "available";
|
|
3380
|
+
value: number;
|
|
3381
|
+
} | {
|
|
3382
|
+
status: "unavailable";
|
|
3383
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3384
|
+
};
|
|
3385
|
+
process_started_at: {
|
|
3386
|
+
status: "available";
|
|
3387
|
+
value: string;
|
|
3388
|
+
} | {
|
|
3389
|
+
status: "unavailable";
|
|
3390
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3391
|
+
};
|
|
3392
|
+
};
|
|
3393
|
+
} | {
|
|
3394
|
+
status: "unavailable";
|
|
3395
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3396
|
+
};
|
|
3397
|
+
};
|
|
3398
|
+
outputs: {
|
|
3399
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "interrupted" | "inconclusive";
|
|
3400
|
+
items: Array<{
|
|
3401
|
+
kind: "stream" | "display" | "result" | "error" | "artifact" | "checkpoint";
|
|
3402
|
+
label: string;
|
|
3403
|
+
artifact_id: {
|
|
3404
|
+
status: "available";
|
|
3405
|
+
value: string;
|
|
3406
|
+
} | {
|
|
3407
|
+
status: "unavailable";
|
|
3408
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3409
|
+
};
|
|
3410
|
+
path: {
|
|
3411
|
+
status: "available";
|
|
3412
|
+
value: string;
|
|
3413
|
+
} | {
|
|
3414
|
+
status: "unavailable";
|
|
3415
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3416
|
+
};
|
|
3417
|
+
sha256: string;
|
|
3418
|
+
size: number;
|
|
3419
|
+
version_id: {
|
|
3420
|
+
status: "available";
|
|
3421
|
+
value: string;
|
|
3422
|
+
} | {
|
|
3423
|
+
status: "unavailable";
|
|
3424
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3425
|
+
};
|
|
3426
|
+
version: {
|
|
3427
|
+
status: "available";
|
|
3428
|
+
value: number;
|
|
3429
|
+
} | {
|
|
3430
|
+
status: "unavailable";
|
|
3431
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3432
|
+
};
|
|
3433
|
+
created_at: {
|
|
3434
|
+
status: "available";
|
|
3435
|
+
value: string;
|
|
3436
|
+
} | {
|
|
3437
|
+
status: "unavailable";
|
|
3438
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3439
|
+
};
|
|
3440
|
+
}>;
|
|
3441
|
+
};
|
|
3442
|
+
timestamps: {
|
|
3443
|
+
created_at: {
|
|
3444
|
+
status: "available";
|
|
3445
|
+
value: string;
|
|
3446
|
+
} | {
|
|
3447
|
+
status: "unavailable";
|
|
3448
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3449
|
+
};
|
|
3450
|
+
started_at: {
|
|
3451
|
+
status: "available";
|
|
3452
|
+
value: string;
|
|
3453
|
+
} | {
|
|
3454
|
+
status: "unavailable";
|
|
3455
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3456
|
+
};
|
|
3457
|
+
completed_at: {
|
|
3458
|
+
status: "available";
|
|
3459
|
+
value: string;
|
|
3460
|
+
} | {
|
|
3461
|
+
status: "unavailable";
|
|
3462
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3463
|
+
};
|
|
3464
|
+
};
|
|
3465
|
+
handoff: {
|
|
3466
|
+
atlas_compute_id: {
|
|
3467
|
+
status: "available";
|
|
3468
|
+
value: string;
|
|
3469
|
+
} | {
|
|
3470
|
+
status: "unavailable";
|
|
3471
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3472
|
+
};
|
|
3473
|
+
atlas_run_id: {
|
|
3474
|
+
status: "available";
|
|
3475
|
+
value: string;
|
|
3476
|
+
} | {
|
|
3477
|
+
status: "unavailable";
|
|
3478
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3479
|
+
};
|
|
3480
|
+
};
|
|
3481
|
+
};
|
|
3046
3482
|
capture_error?: string;
|
|
3047
3483
|
scope?: {
|
|
3048
3484
|
directory: string;
|
|
@@ -3175,6 +3611,7 @@ export type SettingsComputeJobsCancelResponses = {
|
|
|
3175
3611
|
node: string;
|
|
3176
3612
|
python?: string;
|
|
3177
3613
|
git?: {
|
|
3614
|
+
repository?: string;
|
|
3178
3615
|
branch?: string;
|
|
3179
3616
|
commit?: string;
|
|
3180
3617
|
dirty: boolean;
|
|
@@ -3193,6 +3630,214 @@ export type SettingsComputeJobsCancelResponses = {
|
|
|
3193
3630
|
partition?: string;
|
|
3194
3631
|
};
|
|
3195
3632
|
};
|
|
3633
|
+
provenance?: {
|
|
3634
|
+
format: "openscience.provenance.v1";
|
|
3635
|
+
kind: "kernel" | "local_compute" | "remote_compute" | "artifact_version";
|
|
3636
|
+
identity: {
|
|
3637
|
+
project_id: {
|
|
3638
|
+
status: "available";
|
|
3639
|
+
value: string;
|
|
3640
|
+
} | {
|
|
3641
|
+
status: "unavailable";
|
|
3642
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3643
|
+
};
|
|
3644
|
+
session_id: {
|
|
3645
|
+
status: "available";
|
|
3646
|
+
value: string;
|
|
3647
|
+
} | {
|
|
3648
|
+
status: "unavailable";
|
|
3649
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3650
|
+
};
|
|
3651
|
+
run_id: {
|
|
3652
|
+
status: "available";
|
|
3653
|
+
value: string;
|
|
3654
|
+
} | {
|
|
3655
|
+
status: "unavailable";
|
|
3656
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3657
|
+
};
|
|
3658
|
+
};
|
|
3659
|
+
input: {
|
|
3660
|
+
code: {
|
|
3661
|
+
status: "available";
|
|
3662
|
+
value: string;
|
|
3663
|
+
} | {
|
|
3664
|
+
status: "unavailable";
|
|
3665
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3666
|
+
};
|
|
3667
|
+
cwd: {
|
|
3668
|
+
status: "available";
|
|
3669
|
+
value: string;
|
|
3670
|
+
} | {
|
|
3671
|
+
status: "unavailable";
|
|
3672
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3673
|
+
};
|
|
3674
|
+
code_state: {
|
|
3675
|
+
status: "available";
|
|
3676
|
+
value: {
|
|
3677
|
+
repository: {
|
|
3678
|
+
status: "available";
|
|
3679
|
+
value: string;
|
|
3680
|
+
} | {
|
|
3681
|
+
status: "unavailable";
|
|
3682
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3683
|
+
};
|
|
3684
|
+
branch: {
|
|
3685
|
+
status: "available";
|
|
3686
|
+
value: string;
|
|
3687
|
+
} | {
|
|
3688
|
+
status: "unavailable";
|
|
3689
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3690
|
+
};
|
|
3691
|
+
commit: {
|
|
3692
|
+
status: "available";
|
|
3693
|
+
value: string;
|
|
3694
|
+
} | {
|
|
3695
|
+
status: "unavailable";
|
|
3696
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3697
|
+
};
|
|
3698
|
+
dirty: {
|
|
3699
|
+
status: "available";
|
|
3700
|
+
value: boolean;
|
|
3701
|
+
} | {
|
|
3702
|
+
status: "unavailable";
|
|
3703
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3704
|
+
};
|
|
3705
|
+
};
|
|
3706
|
+
} | {
|
|
3707
|
+
status: "unavailable";
|
|
3708
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3709
|
+
};
|
|
3710
|
+
};
|
|
3711
|
+
environment: {
|
|
3712
|
+
host: {
|
|
3713
|
+
status: "available";
|
|
3714
|
+
value: {
|
|
3715
|
+
platform: string;
|
|
3716
|
+
arch: string;
|
|
3717
|
+
runtimes: {
|
|
3718
|
+
[key: string]: string;
|
|
3719
|
+
};
|
|
3720
|
+
};
|
|
3721
|
+
} | {
|
|
3722
|
+
status: "unavailable";
|
|
3723
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3724
|
+
};
|
|
3725
|
+
kernel: {
|
|
3726
|
+
status: "available";
|
|
3727
|
+
value: {
|
|
3728
|
+
id: string;
|
|
3729
|
+
language: string;
|
|
3730
|
+
incarnation: {
|
|
3731
|
+
status: "available";
|
|
3732
|
+
value: number;
|
|
3733
|
+
} | {
|
|
3734
|
+
status: "unavailable";
|
|
3735
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3736
|
+
};
|
|
3737
|
+
process_id: {
|
|
3738
|
+
status: "available";
|
|
3739
|
+
value: number;
|
|
3740
|
+
} | {
|
|
3741
|
+
status: "unavailable";
|
|
3742
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3743
|
+
};
|
|
3744
|
+
process_started_at: {
|
|
3745
|
+
status: "available";
|
|
3746
|
+
value: string;
|
|
3747
|
+
} | {
|
|
3748
|
+
status: "unavailable";
|
|
3749
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3750
|
+
};
|
|
3751
|
+
};
|
|
3752
|
+
} | {
|
|
3753
|
+
status: "unavailable";
|
|
3754
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3755
|
+
};
|
|
3756
|
+
};
|
|
3757
|
+
outputs: {
|
|
3758
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "interrupted" | "inconclusive";
|
|
3759
|
+
items: Array<{
|
|
3760
|
+
kind: "stream" | "display" | "result" | "error" | "artifact" | "checkpoint";
|
|
3761
|
+
label: string;
|
|
3762
|
+
artifact_id: {
|
|
3763
|
+
status: "available";
|
|
3764
|
+
value: string;
|
|
3765
|
+
} | {
|
|
3766
|
+
status: "unavailable";
|
|
3767
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3768
|
+
};
|
|
3769
|
+
path: {
|
|
3770
|
+
status: "available";
|
|
3771
|
+
value: string;
|
|
3772
|
+
} | {
|
|
3773
|
+
status: "unavailable";
|
|
3774
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3775
|
+
};
|
|
3776
|
+
sha256: string;
|
|
3777
|
+
size: number;
|
|
3778
|
+
version_id: {
|
|
3779
|
+
status: "available";
|
|
3780
|
+
value: string;
|
|
3781
|
+
} | {
|
|
3782
|
+
status: "unavailable";
|
|
3783
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3784
|
+
};
|
|
3785
|
+
version: {
|
|
3786
|
+
status: "available";
|
|
3787
|
+
value: number;
|
|
3788
|
+
} | {
|
|
3789
|
+
status: "unavailable";
|
|
3790
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3791
|
+
};
|
|
3792
|
+
created_at: {
|
|
3793
|
+
status: "available";
|
|
3794
|
+
value: string;
|
|
3795
|
+
} | {
|
|
3796
|
+
status: "unavailable";
|
|
3797
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3798
|
+
};
|
|
3799
|
+
}>;
|
|
3800
|
+
};
|
|
3801
|
+
timestamps: {
|
|
3802
|
+
created_at: {
|
|
3803
|
+
status: "available";
|
|
3804
|
+
value: string;
|
|
3805
|
+
} | {
|
|
3806
|
+
status: "unavailable";
|
|
3807
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3808
|
+
};
|
|
3809
|
+
started_at: {
|
|
3810
|
+
status: "available";
|
|
3811
|
+
value: string;
|
|
3812
|
+
} | {
|
|
3813
|
+
status: "unavailable";
|
|
3814
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3815
|
+
};
|
|
3816
|
+
completed_at: {
|
|
3817
|
+
status: "available";
|
|
3818
|
+
value: string;
|
|
3819
|
+
} | {
|
|
3820
|
+
status: "unavailable";
|
|
3821
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3822
|
+
};
|
|
3823
|
+
};
|
|
3824
|
+
handoff: {
|
|
3825
|
+
atlas_compute_id: {
|
|
3826
|
+
status: "available";
|
|
3827
|
+
value: string;
|
|
3828
|
+
} | {
|
|
3829
|
+
status: "unavailable";
|
|
3830
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3831
|
+
};
|
|
3832
|
+
atlas_run_id: {
|
|
3833
|
+
status: "available";
|
|
3834
|
+
value: string;
|
|
3835
|
+
} | {
|
|
3836
|
+
status: "unavailable";
|
|
3837
|
+
reason: "not_applicable" | "not_captured" | "not_implemented" | "not_published" | "not_versioned" | "remote_unverified";
|
|
3838
|
+
};
|
|
3839
|
+
};
|
|
3840
|
+
};
|
|
3196
3841
|
capture_error?: string;
|
|
3197
3842
|
scope?: {
|
|
3198
3843
|
directory: string;
|
|
@@ -4118,6 +4763,140 @@ export type SessionChildrenResponses = {
|
|
|
4118
4763
|
200: Array<Session>;
|
|
4119
4764
|
};
|
|
4120
4765
|
export type SessionChildrenResponse = SessionChildrenResponses[keyof SessionChildrenResponses];
|
|
4766
|
+
export type SessionFilesystemListData = {
|
|
4767
|
+
body?: never;
|
|
4768
|
+
path: {
|
|
4769
|
+
sessionID: string;
|
|
4770
|
+
};
|
|
4771
|
+
query?: {
|
|
4772
|
+
directory?: string;
|
|
4773
|
+
};
|
|
4774
|
+
url: "/session/{sessionID}/filesystem";
|
|
4775
|
+
};
|
|
4776
|
+
export type SessionFilesystemListErrors = {
|
|
4777
|
+
/**
|
|
4778
|
+
* Bad request
|
|
4779
|
+
*/
|
|
4780
|
+
400: BadRequestError;
|
|
4781
|
+
/**
|
|
4782
|
+
* Not found
|
|
4783
|
+
*/
|
|
4784
|
+
404: NotFoundError;
|
|
4785
|
+
};
|
|
4786
|
+
export type SessionFilesystemListError = SessionFilesystemListErrors[keyof SessionFilesystemListErrors];
|
|
4787
|
+
export type SessionFilesystemListResponses = {
|
|
4788
|
+
/**
|
|
4789
|
+
* Versioned filesystem grant state
|
|
4790
|
+
*/
|
|
4791
|
+
200: {
|
|
4792
|
+
version: 1;
|
|
4793
|
+
revision: number;
|
|
4794
|
+
sessionID: string;
|
|
4795
|
+
projectID: string;
|
|
4796
|
+
directory: string;
|
|
4797
|
+
grants: Array<{
|
|
4798
|
+
id: string;
|
|
4799
|
+
path: string;
|
|
4800
|
+
access: "read" | "write";
|
|
4801
|
+
scope: "once" | "session";
|
|
4802
|
+
source: "workspace" | "permission" | "api";
|
|
4803
|
+
time: {
|
|
4804
|
+
created: number;
|
|
4805
|
+
consumed?: number;
|
|
4806
|
+
revoked?: number;
|
|
4807
|
+
};
|
|
4808
|
+
}>;
|
|
4809
|
+
enforcement: {
|
|
4810
|
+
broker: "enforced";
|
|
4811
|
+
processWrite: "workspace_only";
|
|
4812
|
+
processRead: "policy_only";
|
|
4813
|
+
};
|
|
4814
|
+
};
|
|
4815
|
+
};
|
|
4816
|
+
export type SessionFilesystemListResponse = SessionFilesystemListResponses[keyof SessionFilesystemListResponses];
|
|
4817
|
+
export type SessionFilesystemGrantData = {
|
|
4818
|
+
body?: {
|
|
4819
|
+
path: string;
|
|
4820
|
+
access: "read" | "write";
|
|
4821
|
+
scope?: "once" | "session";
|
|
4822
|
+
};
|
|
4823
|
+
path: {
|
|
4824
|
+
sessionID: string;
|
|
4825
|
+
};
|
|
4826
|
+
query?: {
|
|
4827
|
+
directory?: string;
|
|
4828
|
+
};
|
|
4829
|
+
url: "/session/{sessionID}/filesystem";
|
|
4830
|
+
};
|
|
4831
|
+
export type SessionFilesystemGrantErrors = {
|
|
4832
|
+
/**
|
|
4833
|
+
* Bad request
|
|
4834
|
+
*/
|
|
4835
|
+
400: BadRequestError;
|
|
4836
|
+
/**
|
|
4837
|
+
* Not found
|
|
4838
|
+
*/
|
|
4839
|
+
404: NotFoundError;
|
|
4840
|
+
};
|
|
4841
|
+
export type SessionFilesystemGrantError = SessionFilesystemGrantErrors[keyof SessionFilesystemGrantErrors];
|
|
4842
|
+
export type SessionFilesystemGrantResponses = {
|
|
4843
|
+
/**
|
|
4844
|
+
* Created filesystem grant
|
|
4845
|
+
*/
|
|
4846
|
+
200: {
|
|
4847
|
+
id: string;
|
|
4848
|
+
path: string;
|
|
4849
|
+
access: "read" | "write";
|
|
4850
|
+
scope: "once" | "session";
|
|
4851
|
+
source: "workspace" | "permission" | "api";
|
|
4852
|
+
time: {
|
|
4853
|
+
created: number;
|
|
4854
|
+
consumed?: number;
|
|
4855
|
+
revoked?: number;
|
|
4856
|
+
};
|
|
4857
|
+
};
|
|
4858
|
+
};
|
|
4859
|
+
export type SessionFilesystemGrantResponse = SessionFilesystemGrantResponses[keyof SessionFilesystemGrantResponses];
|
|
4860
|
+
export type SessionFilesystemRevokeData = {
|
|
4861
|
+
body?: never;
|
|
4862
|
+
path: {
|
|
4863
|
+
sessionID: string;
|
|
4864
|
+
grantID: string;
|
|
4865
|
+
};
|
|
4866
|
+
query?: {
|
|
4867
|
+
directory?: string;
|
|
4868
|
+
};
|
|
4869
|
+
url: "/session/{sessionID}/filesystem/{grantID}";
|
|
4870
|
+
};
|
|
4871
|
+
export type SessionFilesystemRevokeErrors = {
|
|
4872
|
+
/**
|
|
4873
|
+
* Bad request
|
|
4874
|
+
*/
|
|
4875
|
+
400: BadRequestError;
|
|
4876
|
+
/**
|
|
4877
|
+
* Not found
|
|
4878
|
+
*/
|
|
4879
|
+
404: NotFoundError;
|
|
4880
|
+
};
|
|
4881
|
+
export type SessionFilesystemRevokeError = SessionFilesystemRevokeErrors[keyof SessionFilesystemRevokeErrors];
|
|
4882
|
+
export type SessionFilesystemRevokeResponses = {
|
|
4883
|
+
/**
|
|
4884
|
+
* Revoked filesystem grant
|
|
4885
|
+
*/
|
|
4886
|
+
200: {
|
|
4887
|
+
id: string;
|
|
4888
|
+
path: string;
|
|
4889
|
+
access: "read" | "write";
|
|
4890
|
+
scope: "once" | "session";
|
|
4891
|
+
source: "workspace" | "permission" | "api";
|
|
4892
|
+
time: {
|
|
4893
|
+
created: number;
|
|
4894
|
+
consumed?: number;
|
|
4895
|
+
revoked?: number;
|
|
4896
|
+
};
|
|
4897
|
+
};
|
|
4898
|
+
};
|
|
4899
|
+
export type SessionFilesystemRevokeResponse = SessionFilesystemRevokeResponses[keyof SessionFilesystemRevokeResponses];
|
|
4121
4900
|
export type SessionTodoData = {
|
|
4122
4901
|
body?: never;
|
|
4123
4902
|
path: {
|
|
@@ -5015,6 +5794,7 @@ export type FileListData = {
|
|
|
5015
5794
|
query: {
|
|
5016
5795
|
directory?: string;
|
|
5017
5796
|
path: string;
|
|
5797
|
+
sessionID?: string;
|
|
5018
5798
|
};
|
|
5019
5799
|
url: "/file";
|
|
5020
5800
|
};
|
|
@@ -5031,6 +5811,7 @@ export type FileReadData = {
|
|
|
5031
5811
|
query: {
|
|
5032
5812
|
directory?: string;
|
|
5033
5813
|
path: string;
|
|
5814
|
+
sessionID?: string;
|
|
5034
5815
|
};
|
|
5035
5816
|
url: "/file/content";
|
|
5036
5817
|
};
|
|
@@ -5045,6 +5826,7 @@ export type FileWriteData = {
|
|
|
5045
5826
|
body?: {
|
|
5046
5827
|
path: string;
|
|
5047
5828
|
content: string;
|
|
5829
|
+
sessionID: string;
|
|
5048
5830
|
};
|
|
5049
5831
|
path?: never;
|
|
5050
5832
|
query?: {
|
|
@@ -5065,6 +5847,7 @@ export type FileInspectData = {
|
|
|
5065
5847
|
query: {
|
|
5066
5848
|
directory?: string;
|
|
5067
5849
|
path: string;
|
|
5850
|
+
sessionID?: string;
|
|
5068
5851
|
};
|
|
5069
5852
|
url: "/file/inspect";
|
|
5070
5853
|
};
|
|
@@ -5096,6 +5879,7 @@ export type FileRawData = {
|
|
|
5096
5879
|
query: {
|
|
5097
5880
|
directory?: string;
|
|
5098
5881
|
path: string;
|
|
5882
|
+
sessionID?: string;
|
|
5099
5883
|
};
|
|
5100
5884
|
url: "/file/raw";
|
|
5101
5885
|
};
|
|
@@ -5133,6 +5917,7 @@ export type FileProvenanceData = {
|
|
|
5133
5917
|
query: {
|
|
5134
5918
|
directory?: string;
|
|
5135
5919
|
path: string;
|
|
5920
|
+
sessionID?: string;
|
|
5136
5921
|
};
|
|
5137
5922
|
url: "/file/provenance";
|
|
5138
5923
|
};
|