sim 2.2.13-preview.231.1 → 2.2.13
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/generated/v2-api.d.ts +90 -0
- package/dist/index.js +57 -0
- package/dist/runtime.js +57 -0
- package/package.json +1 -1
|
@@ -4903,6 +4903,26 @@ type GetProjectFileMetadataResponseRef0 = {
|
|
|
4903
4903
|
export type GetProjectFileMetadataResponse = {
|
|
4904
4904
|
data: GetProjectFileMetadataResponseRef0;
|
|
4905
4905
|
};
|
|
4906
|
+
/** `GET /api/v2/projects/[projectId]/files/[fileId]/share` */
|
|
4907
|
+
export type GetProjectFileShareParams = {
|
|
4908
|
+
projectId: string;
|
|
4909
|
+
fileId: string;
|
|
4910
|
+
};
|
|
4911
|
+
export type GetProjectFileShareQuery = Record<string, unknown>;
|
|
4912
|
+
type GetProjectFileShareResponseRef0 = {
|
|
4913
|
+
id: string;
|
|
4914
|
+
token: string;
|
|
4915
|
+
url: string;
|
|
4916
|
+
isActive: boolean;
|
|
4917
|
+
resourceType: 'file' | 'folder';
|
|
4918
|
+
resourceId: string;
|
|
4919
|
+
authType: 'public' | 'password' | 'email' | 'sso';
|
|
4920
|
+
hasPassword: boolean;
|
|
4921
|
+
allowedEmails: Array<string>;
|
|
4922
|
+
};
|
|
4923
|
+
export type GetProjectFileShareResponse = {
|
|
4924
|
+
data: GetProjectFileShareResponseRef0 | null;
|
|
4925
|
+
};
|
|
4906
4926
|
/** `GET /api/v2/projects/[projectId]/files/uploads/[uploadId]` */
|
|
4907
4927
|
export type GetProjectFileUploadParams = {
|
|
4908
4928
|
projectId: string;
|
|
@@ -10843,6 +10863,32 @@ export type UpdateProjectFileFolderResponse = {
|
|
|
10843
10863
|
};
|
|
10844
10864
|
};
|
|
10845
10865
|
};
|
|
10866
|
+
/** `PATCH /api/v2/projects/[projectId]/files/[fileId]/share` */
|
|
10867
|
+
export type UpdateProjectFileShareParams = {
|
|
10868
|
+
projectId: string;
|
|
10869
|
+
fileId: string;
|
|
10870
|
+
};
|
|
10871
|
+
export type UpdateProjectFileShareQuery = Record<string, unknown>;
|
|
10872
|
+
export type UpdateProjectFileShareBody = {
|
|
10873
|
+
isActive: boolean;
|
|
10874
|
+
authType?: 'public' | 'password' | 'email' | 'sso';
|
|
10875
|
+
password?: string;
|
|
10876
|
+
allowedEmails?: Array<string>;
|
|
10877
|
+
};
|
|
10878
|
+
type UpdateProjectFileShareResponseRef0 = {
|
|
10879
|
+
id: string;
|
|
10880
|
+
token: string;
|
|
10881
|
+
url: string;
|
|
10882
|
+
isActive: boolean;
|
|
10883
|
+
resourceType: 'file' | 'folder';
|
|
10884
|
+
resourceId: string;
|
|
10885
|
+
authType: 'public' | 'password' | 'email' | 'sso';
|
|
10886
|
+
hasPassword: boolean;
|
|
10887
|
+
allowedEmails: Array<string>;
|
|
10888
|
+
};
|
|
10889
|
+
export type UpdateProjectFileShareResponse = {
|
|
10890
|
+
data: UpdateProjectFileShareResponseRef0;
|
|
10891
|
+
};
|
|
10846
10892
|
/** `PATCH /api/v2/tables/[tableId]/rows` */
|
|
10847
10893
|
export type UpdateRowsByFilterParams = {
|
|
10848
10894
|
tableId: string;
|
|
@@ -14880,6 +14926,18 @@ export declare const V2_OPERATIONS: {
|
|
|
14880
14926
|
readonly summary: 'Get Project File Metadata';
|
|
14881
14927
|
readonly workspaceKeyUnsupported: true;
|
|
14882
14928
|
};
|
|
14929
|
+
readonly getProjectFileShare: {
|
|
14930
|
+
readonly method: 'GET';
|
|
14931
|
+
readonly path: '/api/v2/projects/[projectId]/files/[fileId]/share';
|
|
14932
|
+
readonly pathParams: readonly ['projectId', 'fileId'];
|
|
14933
|
+
readonly pathParamDocs: {
|
|
14934
|
+
readonly projectId: 'Project identifier.';
|
|
14935
|
+
readonly fileId: 'File identifier within the Project.';
|
|
14936
|
+
};
|
|
14937
|
+
readonly responseMode: 'json';
|
|
14938
|
+
readonly summary: 'Get Project File Share';
|
|
14939
|
+
readonly workspaceKeyUnsupported: true;
|
|
14940
|
+
};
|
|
14883
14941
|
readonly getProjectFileUpload: {
|
|
14884
14942
|
readonly method: 'GET';
|
|
14885
14943
|
readonly path: '/api/v2/projects/[projectId]/files/uploads/[uploadId]';
|
|
@@ -20207,6 +20265,38 @@ export declare const V2_OPERATIONS: {
|
|
|
20207
20265
|
};
|
|
20208
20266
|
};
|
|
20209
20267
|
};
|
|
20268
|
+
readonly updateProjectFileShare: {
|
|
20269
|
+
readonly method: 'PATCH';
|
|
20270
|
+
readonly path: '/api/v2/projects/[projectId]/files/[fileId]/share';
|
|
20271
|
+
readonly pathParams: readonly ['projectId', 'fileId'];
|
|
20272
|
+
readonly pathParamDocs: {
|
|
20273
|
+
readonly projectId: 'Project identifier.';
|
|
20274
|
+
readonly fileId: 'File identifier within the Project.';
|
|
20275
|
+
};
|
|
20276
|
+
readonly responseMode: 'json';
|
|
20277
|
+
readonly summary: 'Update Project File Share';
|
|
20278
|
+
readonly workspaceKeyUnsupported: true;
|
|
20279
|
+
readonly body: {
|
|
20280
|
+
readonly isActive: {
|
|
20281
|
+
readonly kind: 'boolean';
|
|
20282
|
+
readonly required: true;
|
|
20283
|
+
readonly describe: 'Whether the share should resolve. Disabling preserves the token and the whole access configuration, so re-enabling restores the share as it was; enabling rewrites the credentials the resulting mode does not use.';
|
|
20284
|
+
};
|
|
20285
|
+
readonly authType: {
|
|
20286
|
+
readonly kind: 'enum';
|
|
20287
|
+
readonly values: readonly ['public', 'password', 'email', 'sso'];
|
|
20288
|
+
readonly describe: 'How access to the share is gated. The stored mode is kept when omitted. Enabling `public` clears the stored password and empties `allowedEmails`; `password` empties `allowedEmails`; `email` and `sso` clear the stored password.';
|
|
20289
|
+
};
|
|
20290
|
+
readonly password: {
|
|
20291
|
+
readonly kind: 'string';
|
|
20292
|
+
readonly describe: 'Literal password of 15 to 1024 characters. Kept when omitted; enabling password access without a supplied or stored password is rejected.';
|
|
20293
|
+
};
|
|
20294
|
+
readonly allowedEmails: {
|
|
20295
|
+
readonly kind: 'array';
|
|
20296
|
+
readonly describe: 'Allowed addresses or `@domain` patterns for email and SSO shares. Kept when omitted; enabling `email` or `sso` with an empty resulting list is a 400.';
|
|
20297
|
+
};
|
|
20298
|
+
};
|
|
20299
|
+
};
|
|
20210
20300
|
readonly updateRowsByFilter: {
|
|
20211
20301
|
readonly method: 'PATCH';
|
|
20212
20302
|
readonly path: '/api/v2/tables/[tableId]/rows';
|
package/dist/index.js
CHANGED
|
@@ -12465,6 +12465,18 @@ var V2_OPERATIONS = {
|
|
|
12465
12465
|
summary: "Get Project File Metadata",
|
|
12466
12466
|
workspaceKeyUnsupported: true
|
|
12467
12467
|
},
|
|
12468
|
+
getProjectFileShare: {
|
|
12469
|
+
method: "GET",
|
|
12470
|
+
path: "/api/v2/projects/[projectId]/files/[fileId]/share",
|
|
12471
|
+
pathParams: ["projectId", "fileId"],
|
|
12472
|
+
pathParamDocs: {
|
|
12473
|
+
projectId: "Project identifier.",
|
|
12474
|
+
fileId: "File identifier within the Project."
|
|
12475
|
+
},
|
|
12476
|
+
responseMode: "json",
|
|
12477
|
+
summary: "Get Project File Share",
|
|
12478
|
+
workspaceKeyUnsupported: true
|
|
12479
|
+
},
|
|
12468
12480
|
getProjectFileUpload: {
|
|
12469
12481
|
method: "GET",
|
|
12470
12482
|
path: "/api/v2/projects/[projectId]/files/uploads/[uploadId]",
|
|
@@ -17536,6 +17548,38 @@ var V2_OPERATIONS = {
|
|
|
17536
17548
|
sortOrder: { kind: "integer", describe: "New manual position; omit to leave unchanged." }
|
|
17537
17549
|
}
|
|
17538
17550
|
},
|
|
17551
|
+
updateProjectFileShare: {
|
|
17552
|
+
method: "PATCH",
|
|
17553
|
+
path: "/api/v2/projects/[projectId]/files/[fileId]/share",
|
|
17554
|
+
pathParams: ["projectId", "fileId"],
|
|
17555
|
+
pathParamDocs: {
|
|
17556
|
+
projectId: "Project identifier.",
|
|
17557
|
+
fileId: "File identifier within the Project."
|
|
17558
|
+
},
|
|
17559
|
+
responseMode: "json",
|
|
17560
|
+
summary: "Update Project File Share",
|
|
17561
|
+
workspaceKeyUnsupported: true,
|
|
17562
|
+
body: {
|
|
17563
|
+
isActive: {
|
|
17564
|
+
kind: "boolean",
|
|
17565
|
+
required: true,
|
|
17566
|
+
describe: "Whether the share should resolve. Disabling preserves the token and the whole access configuration, so re-enabling restores the share as it was; enabling rewrites the credentials the resulting mode does not use."
|
|
17567
|
+
},
|
|
17568
|
+
authType: {
|
|
17569
|
+
kind: "enum",
|
|
17570
|
+
values: ["public", "password", "email", "sso"],
|
|
17571
|
+
describe: "How access to the share is gated. The stored mode is kept when omitted. Enabling `public` clears the stored password and empties `allowedEmails`; `password` empties `allowedEmails`; `email` and `sso` clear the stored password."
|
|
17572
|
+
},
|
|
17573
|
+
password: {
|
|
17574
|
+
kind: "string",
|
|
17575
|
+
describe: "Literal password of 15 to 1024 characters. Kept when omitted; enabling password access without a supplied or stored password is rejected."
|
|
17576
|
+
},
|
|
17577
|
+
allowedEmails: {
|
|
17578
|
+
kind: "array",
|
|
17579
|
+
describe: "Allowed addresses or `@domain` patterns for email and SSO shares. Kept when omitted; enabling `email` or `sso` with an empty resulting list is a 400."
|
|
17580
|
+
}
|
|
17581
|
+
}
|
|
17582
|
+
},
|
|
17539
17583
|
updateRowsByFilter: {
|
|
17540
17584
|
method: "PATCH",
|
|
17541
17585
|
path: "/api/v2/tables/[tableId]/rows",
|
|
@@ -20257,6 +20301,11 @@ var CLI_CONTRACT = {
|
|
|
20257
20301
|
describe: "Show a file’s share settings",
|
|
20258
20302
|
fields: FILE_SHARE_FIELDS
|
|
20259
20303
|
},
|
|
20304
|
+
getProjectFileShare: {
|
|
20305
|
+
command: "projects files share get",
|
|
20306
|
+
describe: "Show a Project file’s share settings",
|
|
20307
|
+
fields: FILE_SHARE_FIELDS
|
|
20308
|
+
},
|
|
20260
20309
|
upsertFileShare: {
|
|
20261
20310
|
command: "files share set",
|
|
20262
20311
|
describe: "Enable or disable sharing for a file",
|
|
@@ -20265,6 +20314,14 @@ var CLI_CONTRACT = {
|
|
|
20265
20314
|
},
|
|
20266
20315
|
fields: FILE_SHARE_FIELDS
|
|
20267
20316
|
},
|
|
20317
|
+
updateProjectFileShare: {
|
|
20318
|
+
command: "projects files share set",
|
|
20319
|
+
describe: "Enable or disable sharing for a Project file",
|
|
20320
|
+
flags: {
|
|
20321
|
+
allowedEmails: { list: true }
|
|
20322
|
+
},
|
|
20323
|
+
fields: FILE_SHARE_FIELDS
|
|
20324
|
+
},
|
|
20268
20325
|
listFileFolders: {
|
|
20269
20326
|
describe: "List folders",
|
|
20270
20327
|
aliases: ["ls"],
|
package/dist/runtime.js
CHANGED
|
@@ -12514,6 +12514,18 @@ var V2_OPERATIONS = {
|
|
|
12514
12514
|
summary: "Get Project File Metadata",
|
|
12515
12515
|
workspaceKeyUnsupported: true
|
|
12516
12516
|
},
|
|
12517
|
+
getProjectFileShare: {
|
|
12518
|
+
method: "GET",
|
|
12519
|
+
path: "/api/v2/projects/[projectId]/files/[fileId]/share",
|
|
12520
|
+
pathParams: ["projectId", "fileId"],
|
|
12521
|
+
pathParamDocs: {
|
|
12522
|
+
projectId: "Project identifier.",
|
|
12523
|
+
fileId: "File identifier within the Project."
|
|
12524
|
+
},
|
|
12525
|
+
responseMode: "json",
|
|
12526
|
+
summary: "Get Project File Share",
|
|
12527
|
+
workspaceKeyUnsupported: true
|
|
12528
|
+
},
|
|
12517
12529
|
getProjectFileUpload: {
|
|
12518
12530
|
method: "GET",
|
|
12519
12531
|
path: "/api/v2/projects/[projectId]/files/uploads/[uploadId]",
|
|
@@ -17585,6 +17597,38 @@ var V2_OPERATIONS = {
|
|
|
17585
17597
|
sortOrder: { kind: "integer", describe: "New manual position; omit to leave unchanged." }
|
|
17586
17598
|
}
|
|
17587
17599
|
},
|
|
17600
|
+
updateProjectFileShare: {
|
|
17601
|
+
method: "PATCH",
|
|
17602
|
+
path: "/api/v2/projects/[projectId]/files/[fileId]/share",
|
|
17603
|
+
pathParams: ["projectId", "fileId"],
|
|
17604
|
+
pathParamDocs: {
|
|
17605
|
+
projectId: "Project identifier.",
|
|
17606
|
+
fileId: "File identifier within the Project."
|
|
17607
|
+
},
|
|
17608
|
+
responseMode: "json",
|
|
17609
|
+
summary: "Update Project File Share",
|
|
17610
|
+
workspaceKeyUnsupported: true,
|
|
17611
|
+
body: {
|
|
17612
|
+
isActive: {
|
|
17613
|
+
kind: "boolean",
|
|
17614
|
+
required: true,
|
|
17615
|
+
describe: "Whether the share should resolve. Disabling preserves the token and the whole access configuration, so re-enabling restores the share as it was; enabling rewrites the credentials the resulting mode does not use."
|
|
17616
|
+
},
|
|
17617
|
+
authType: {
|
|
17618
|
+
kind: "enum",
|
|
17619
|
+
values: ["public", "password", "email", "sso"],
|
|
17620
|
+
describe: "How access to the share is gated. The stored mode is kept when omitted. Enabling `public` clears the stored password and empties `allowedEmails`; `password` empties `allowedEmails`; `email` and `sso` clear the stored password."
|
|
17621
|
+
},
|
|
17622
|
+
password: {
|
|
17623
|
+
kind: "string",
|
|
17624
|
+
describe: "Literal password of 15 to 1024 characters. Kept when omitted; enabling password access without a supplied or stored password is rejected."
|
|
17625
|
+
},
|
|
17626
|
+
allowedEmails: {
|
|
17627
|
+
kind: "array",
|
|
17628
|
+
describe: "Allowed addresses or `@domain` patterns for email and SSO shares. Kept when omitted; enabling `email` or `sso` with an empty resulting list is a 400."
|
|
17629
|
+
}
|
|
17630
|
+
}
|
|
17631
|
+
},
|
|
17588
17632
|
updateRowsByFilter: {
|
|
17589
17633
|
method: "PATCH",
|
|
17590
17634
|
path: "/api/v2/tables/[tableId]/rows",
|
|
@@ -20306,6 +20350,11 @@ var CLI_CONTRACT = {
|
|
|
20306
20350
|
describe: "Show a file’s share settings",
|
|
20307
20351
|
fields: FILE_SHARE_FIELDS
|
|
20308
20352
|
},
|
|
20353
|
+
getProjectFileShare: {
|
|
20354
|
+
command: "projects files share get",
|
|
20355
|
+
describe: "Show a Project file’s share settings",
|
|
20356
|
+
fields: FILE_SHARE_FIELDS
|
|
20357
|
+
},
|
|
20309
20358
|
upsertFileShare: {
|
|
20310
20359
|
command: "files share set",
|
|
20311
20360
|
describe: "Enable or disable sharing for a file",
|
|
@@ -20314,6 +20363,14 @@ var CLI_CONTRACT = {
|
|
|
20314
20363
|
},
|
|
20315
20364
|
fields: FILE_SHARE_FIELDS
|
|
20316
20365
|
},
|
|
20366
|
+
updateProjectFileShare: {
|
|
20367
|
+
command: "projects files share set",
|
|
20368
|
+
describe: "Enable or disable sharing for a Project file",
|
|
20369
|
+
flags: {
|
|
20370
|
+
allowedEmails: { list: true }
|
|
20371
|
+
},
|
|
20372
|
+
fields: FILE_SHARE_FIELDS
|
|
20373
|
+
},
|
|
20317
20374
|
listFileFolders: {
|
|
20318
20375
|
describe: "List folders",
|
|
20319
20376
|
aliases: ["ls"],
|