@synsci/sdk 2.0.2-test.48.1 → 2.0.2-test.49.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.
|
@@ -732,7 +732,7 @@ export declare class Filesystem extends HeyApiClient {
|
|
|
732
732
|
/**
|
|
733
733
|
* List filesystem grants
|
|
734
734
|
*
|
|
735
|
-
* List durable read-only and read-write filesystem grants for the session and
|
|
735
|
+
* List durable read-only and read-write filesystem grants for the session, project, and installation.
|
|
736
736
|
*/
|
|
737
737
|
list<ThrowOnError extends boolean = false>(parameters: {
|
|
738
738
|
sessionID: string;
|
|
@@ -741,14 +741,14 @@ export declare class Filesystem extends HeyApiClient {
|
|
|
741
741
|
/**
|
|
742
742
|
* Grant filesystem access
|
|
743
743
|
*
|
|
744
|
-
* Grant read-only or read-write access to a canonical filesystem path for one use, the session, or every session in
|
|
744
|
+
* Grant read-only or read-write access to a canonical filesystem path for one use, the session, every project session, or every session in this installation.
|
|
745
745
|
*/
|
|
746
746
|
grant<ThrowOnError extends boolean = false>(parameters: {
|
|
747
747
|
sessionID: string;
|
|
748
748
|
directory?: string;
|
|
749
749
|
path?: string;
|
|
750
750
|
access?: "read" | "write";
|
|
751
|
-
scope?: "once" | "session" | "project";
|
|
751
|
+
scope?: "once" | "session" | "project" | "installation";
|
|
752
752
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionFilesystemGrantResponses, SessionFilesystemGrantErrors, ThrowOnError, "fields">;
|
|
753
753
|
/**
|
|
754
754
|
* Revoke filesystem access
|
|
@@ -1393,7 +1393,7 @@ export class Filesystem extends HeyApiClient {
|
|
|
1393
1393
|
/**
|
|
1394
1394
|
* List filesystem grants
|
|
1395
1395
|
*
|
|
1396
|
-
* List durable read-only and read-write filesystem grants for the session and
|
|
1396
|
+
* List durable read-only and read-write filesystem grants for the session, project, and installation.
|
|
1397
1397
|
*/
|
|
1398
1398
|
list(parameters, options) {
|
|
1399
1399
|
const params = buildClientParams([parameters], [
|
|
@@ -1413,7 +1413,7 @@ export class Filesystem extends HeyApiClient {
|
|
|
1413
1413
|
/**
|
|
1414
1414
|
* Grant filesystem access
|
|
1415
1415
|
*
|
|
1416
|
-
* Grant read-only or read-write access to a canonical filesystem path for one use, the session, or every session in
|
|
1416
|
+
* Grant read-only or read-write access to a canonical filesystem path for one use, the session, every project session, or every session in this installation.
|
|
1417
1417
|
*/
|
|
1418
1418
|
grant(parameters, options) {
|
|
1419
1419
|
const params = buildClientParams([parameters], [
|
|
@@ -117,11 +117,12 @@ export type EventSessionFilesystemChanged = {
|
|
|
117
117
|
type: "session.filesystem.changed";
|
|
118
118
|
properties: {
|
|
119
119
|
sessionID: string;
|
|
120
|
+
projectID: string;
|
|
120
121
|
grant: {
|
|
121
122
|
id: string;
|
|
122
123
|
path: string;
|
|
123
124
|
access: "read" | "write";
|
|
124
|
-
scope: "once" | "session" | "project";
|
|
125
|
+
scope: "once" | "session" | "project" | "installation";
|
|
125
126
|
source: "workspace" | "permission" | "api";
|
|
126
127
|
time: {
|
|
127
128
|
created: number;
|
|
@@ -5009,7 +5010,7 @@ export type SessionFilesystemListResponses = {
|
|
|
5009
5010
|
id: string;
|
|
5010
5011
|
path: string;
|
|
5011
5012
|
access: "read" | "write";
|
|
5012
|
-
scope: "once" | "session" | "project";
|
|
5013
|
+
scope: "once" | "session" | "project" | "installation";
|
|
5013
5014
|
source: "workspace" | "permission" | "api";
|
|
5014
5015
|
time: {
|
|
5015
5016
|
created: number;
|
|
@@ -5017,6 +5018,21 @@ export type SessionFilesystemListResponses = {
|
|
|
5017
5018
|
revoked?: number;
|
|
5018
5019
|
};
|
|
5019
5020
|
}>;
|
|
5021
|
+
workspace: {
|
|
5022
|
+
schemaVersion: 1;
|
|
5023
|
+
workspaceID: string;
|
|
5024
|
+
projectID: string;
|
|
5025
|
+
sessionID: string;
|
|
5026
|
+
scratchRoot: string;
|
|
5027
|
+
mode: "isolated" | "legacy";
|
|
5028
|
+
state: "active" | "stopped" | "trash";
|
|
5029
|
+
grantRevision: number;
|
|
5030
|
+
createdAt: number;
|
|
5031
|
+
lastUsedAt: number;
|
|
5032
|
+
trashedAt?: number;
|
|
5033
|
+
trashRoot?: string;
|
|
5034
|
+
size: number;
|
|
5035
|
+
};
|
|
5020
5036
|
enforcement: {
|
|
5021
5037
|
broker: "enforced";
|
|
5022
5038
|
processWrite: "workspace_only";
|
|
@@ -5029,7 +5045,7 @@ export type SessionFilesystemGrantData = {
|
|
|
5029
5045
|
body?: {
|
|
5030
5046
|
path: string;
|
|
5031
5047
|
access: "read" | "write";
|
|
5032
|
-
scope?: "once" | "session" | "project";
|
|
5048
|
+
scope?: "once" | "session" | "project" | "installation";
|
|
5033
5049
|
};
|
|
5034
5050
|
path: {
|
|
5035
5051
|
sessionID: string;
|
|
@@ -5058,7 +5074,7 @@ export type SessionFilesystemGrantResponses = {
|
|
|
5058
5074
|
id: string;
|
|
5059
5075
|
path: string;
|
|
5060
5076
|
access: "read" | "write";
|
|
5061
|
-
scope: "once" | "session" | "project";
|
|
5077
|
+
scope: "once" | "session" | "project" | "installation";
|
|
5062
5078
|
source: "workspace" | "permission" | "api";
|
|
5063
5079
|
time: {
|
|
5064
5080
|
created: number;
|
|
@@ -5098,7 +5114,7 @@ export type SessionFilesystemRevokeResponses = {
|
|
|
5098
5114
|
id: string;
|
|
5099
5115
|
path: string;
|
|
5100
5116
|
access: "read" | "write";
|
|
5101
|
-
scope: "once" | "session" | "project";
|
|
5117
|
+
scope: "once" | "session" | "project" | "installation";
|
|
5102
5118
|
source: "workspace" | "permission" | "api";
|
|
5103
5119
|
time: {
|
|
5104
5120
|
created: number;
|