sim 2.2.20-preview.255.1 → 2.2.20-preview.257.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/contract/types.d.ts +5 -0
- package/dist/generated/v2-api.d.ts +3 -3
- package/dist/index.js +17 -5
- package/dist/runtime.js +17 -5
- package/package.json +1 -1
package/dist/contract/types.d.ts
CHANGED
|
@@ -237,6 +237,11 @@ export interface CommandSpec {
|
|
|
237
237
|
command?: string;
|
|
238
238
|
/** Run this operation when its top-level group is invoked without a subcommand. */
|
|
239
239
|
groupDefault?: boolean;
|
|
240
|
+
/**
|
|
241
|
+
* Run this leaf when its group is named without a subcommand, as the group's default. The group
|
|
242
|
+
* keeps no options of its own, so the leaf parses its options in either spelling.
|
|
243
|
+
*/
|
|
244
|
+
defaultSubcommand?: true;
|
|
240
245
|
/** Alternate leaf command names, such as `ls` for `list`. */
|
|
241
246
|
aliases?: readonly string[];
|
|
242
247
|
/**
|
|
@@ -13753,7 +13753,7 @@ export declare const V2_OPERATIONS: {
|
|
|
13753
13753
|
readonly path: '/api/v2/files/[fileId]';
|
|
13754
13754
|
readonly pathParams: readonly ['fileId'];
|
|
13755
13755
|
readonly pathParamDocs: {
|
|
13756
|
-
readonly fileId: 'File identifier, or the
|
|
13756
|
+
readonly fileId: 'File identifier, or the VFS path of a live file: `files/<folder>/<name>`. Pass the id when two files in a folder have names that display alike.';
|
|
13757
13757
|
};
|
|
13758
13758
|
readonly responseMode: 'json';
|
|
13759
13759
|
readonly summary: 'Delete file';
|
|
@@ -14796,7 +14796,7 @@ export declare const V2_OPERATIONS: {
|
|
|
14796
14796
|
readonly path: '/api/v2/files/[fileId]/metadata';
|
|
14797
14797
|
readonly pathParams: readonly ['fileId'];
|
|
14798
14798
|
readonly pathParamDocs: {
|
|
14799
|
-
readonly fileId: 'File identifier, or the
|
|
14799
|
+
readonly fileId: 'File identifier, or the VFS path of a live file: `files/<folder>/<name>`. Pass the id when two files in a folder have names that display alike.';
|
|
14800
14800
|
};
|
|
14801
14801
|
readonly responseMode: 'json';
|
|
14802
14802
|
readonly summary: 'Get file metadata';
|
|
@@ -18837,7 +18837,7 @@ export declare const V2_OPERATIONS: {
|
|
|
18837
18837
|
readonly path: '/api/v2/files/[fileId]';
|
|
18838
18838
|
readonly pathParams: readonly ['fileId'];
|
|
18839
18839
|
readonly pathParamDocs: {
|
|
18840
|
-
readonly fileId: 'File identifier, or the
|
|
18840
|
+
readonly fileId: 'File identifier, or the VFS path of a live file: `files/<folder>/<name>`. Pass the id when two files in a folder have names that display alike.';
|
|
18841
18841
|
};
|
|
18842
18842
|
readonly responseMode: 'json';
|
|
18843
18843
|
readonly summary: 'Rename file';
|
package/dist/index.js
CHANGED
|
@@ -11208,7 +11208,9 @@ var V2_OPERATIONS = {
|
|
|
11208
11208
|
method: "DELETE",
|
|
11209
11209
|
path: "/api/v2/files/[fileId]",
|
|
11210
11210
|
pathParams: ["fileId"],
|
|
11211
|
-
pathParamDocs: {
|
|
11211
|
+
pathParamDocs: {
|
|
11212
|
+
fileId: "File identifier, or the VFS path of a live file: `files/<folder>/<name>`. Pass the id when two files in a folder have names that display alike."
|
|
11213
|
+
},
|
|
11212
11214
|
responseMode: "json",
|
|
11213
11215
|
summary: "Delete file",
|
|
11214
11216
|
query: {
|
|
@@ -12153,7 +12155,9 @@ var V2_OPERATIONS = {
|
|
|
12153
12155
|
method: "GET",
|
|
12154
12156
|
path: "/api/v2/files/[fileId]/metadata",
|
|
12155
12157
|
pathParams: ["fileId"],
|
|
12156
|
-
pathParamDocs: {
|
|
12158
|
+
pathParamDocs: {
|
|
12159
|
+
fileId: "File identifier, or the VFS path of a live file: `files/<folder>/<name>`. Pass the id when two files in a folder have names that display alike."
|
|
12160
|
+
},
|
|
12157
12161
|
responseMode: "json",
|
|
12158
12162
|
summary: "Get file metadata",
|
|
12159
12163
|
query: {
|
|
@@ -16182,7 +16186,9 @@ var V2_OPERATIONS = {
|
|
|
16182
16186
|
method: "PATCH",
|
|
16183
16187
|
path: "/api/v2/files/[fileId]",
|
|
16184
16188
|
pathParams: ["fileId"],
|
|
16185
|
-
pathParamDocs: {
|
|
16189
|
+
pathParamDocs: {
|
|
16190
|
+
fileId: "File identifier, or the VFS path of a live file: `files/<folder>/<name>`. Pass the id when two files in a folder have names that display alike."
|
|
16191
|
+
},
|
|
16186
16192
|
responseMode: "json",
|
|
16187
16193
|
summary: "Rename file",
|
|
16188
16194
|
body: {
|
|
@@ -20138,6 +20144,7 @@ var CLI_CONTRACT = {
|
|
|
20138
20144
|
]
|
|
20139
20145
|
},
|
|
20140
20146
|
listCredentialProviders: {
|
|
20147
|
+
defaultSubcommand: true,
|
|
20141
20148
|
columns: [
|
|
20142
20149
|
{ header: "type" },
|
|
20143
20150
|
{ header: "service", path: "serviceId" },
|
|
@@ -22551,16 +22558,21 @@ function addLeafCommand(groups, operation, spec, segments) {
|
|
|
22551
22558
|
for (const segment of rest.slice(0, -1)) {
|
|
22552
22559
|
parent = nestedGroup(parent, segment);
|
|
22553
22560
|
}
|
|
22554
|
-
parent.addCommand(buildLeaf(operation, spec, rest[rest.length - 1])
|
|
22561
|
+
parent.addCommand(buildLeaf(operation, spec, rest[rest.length - 1]), {
|
|
22562
|
+
isDefault: spec.defaultSubcommand === true
|
|
22563
|
+
});
|
|
22555
22564
|
return;
|
|
22556
22565
|
}
|
|
22557
|
-
group.addCommand(buildLeaf(operation, spec, rest[0])
|
|
22566
|
+
group.addCommand(buildLeaf(operation, spec, rest[0]), {
|
|
22567
|
+
isDefault: spec.defaultSubcommand === true
|
|
22568
|
+
});
|
|
22558
22569
|
}
|
|
22559
22570
|
function variantCommandSpec(spec, variant) {
|
|
22560
22571
|
return {
|
|
22561
22572
|
...spec,
|
|
22562
22573
|
command: variant.command,
|
|
22563
22574
|
groupDefault: false,
|
|
22575
|
+
defaultSubcommand: undefined,
|
|
22564
22576
|
aliases: [],
|
|
22565
22577
|
positionals: variant.positionals,
|
|
22566
22578
|
requestFields: variant.requestFields,
|
package/dist/runtime.js
CHANGED
|
@@ -11257,7 +11257,9 @@ var V2_OPERATIONS = {
|
|
|
11257
11257
|
method: "DELETE",
|
|
11258
11258
|
path: "/api/v2/files/[fileId]",
|
|
11259
11259
|
pathParams: ["fileId"],
|
|
11260
|
-
pathParamDocs: {
|
|
11260
|
+
pathParamDocs: {
|
|
11261
|
+
fileId: "File identifier, or the VFS path of a live file: `files/<folder>/<name>`. Pass the id when two files in a folder have names that display alike."
|
|
11262
|
+
},
|
|
11261
11263
|
responseMode: "json",
|
|
11262
11264
|
summary: "Delete file",
|
|
11263
11265
|
query: {
|
|
@@ -12202,7 +12204,9 @@ var V2_OPERATIONS = {
|
|
|
12202
12204
|
method: "GET",
|
|
12203
12205
|
path: "/api/v2/files/[fileId]/metadata",
|
|
12204
12206
|
pathParams: ["fileId"],
|
|
12205
|
-
pathParamDocs: {
|
|
12207
|
+
pathParamDocs: {
|
|
12208
|
+
fileId: "File identifier, or the VFS path of a live file: `files/<folder>/<name>`. Pass the id when two files in a folder have names that display alike."
|
|
12209
|
+
},
|
|
12206
12210
|
responseMode: "json",
|
|
12207
12211
|
summary: "Get file metadata",
|
|
12208
12212
|
query: {
|
|
@@ -16231,7 +16235,9 @@ var V2_OPERATIONS = {
|
|
|
16231
16235
|
method: "PATCH",
|
|
16232
16236
|
path: "/api/v2/files/[fileId]",
|
|
16233
16237
|
pathParams: ["fileId"],
|
|
16234
|
-
pathParamDocs: {
|
|
16238
|
+
pathParamDocs: {
|
|
16239
|
+
fileId: "File identifier, or the VFS path of a live file: `files/<folder>/<name>`. Pass the id when two files in a folder have names that display alike."
|
|
16240
|
+
},
|
|
16235
16241
|
responseMode: "json",
|
|
16236
16242
|
summary: "Rename file",
|
|
16237
16243
|
body: {
|
|
@@ -20187,6 +20193,7 @@ var CLI_CONTRACT = {
|
|
|
20187
20193
|
]
|
|
20188
20194
|
},
|
|
20189
20195
|
listCredentialProviders: {
|
|
20196
|
+
defaultSubcommand: true,
|
|
20190
20197
|
columns: [
|
|
20191
20198
|
{ header: "type" },
|
|
20192
20199
|
{ header: "service", path: "serviceId" },
|
|
@@ -22600,16 +22607,21 @@ function addLeafCommand(groups, operation, spec, segments) {
|
|
|
22600
22607
|
for (const segment of rest.slice(0, -1)) {
|
|
22601
22608
|
parent = nestedGroup(parent, segment);
|
|
22602
22609
|
}
|
|
22603
|
-
parent.addCommand(buildLeaf(operation, spec, rest[rest.length - 1])
|
|
22610
|
+
parent.addCommand(buildLeaf(operation, spec, rest[rest.length - 1]), {
|
|
22611
|
+
isDefault: spec.defaultSubcommand === true
|
|
22612
|
+
});
|
|
22604
22613
|
return;
|
|
22605
22614
|
}
|
|
22606
|
-
group.addCommand(buildLeaf(operation, spec, rest[0])
|
|
22615
|
+
group.addCommand(buildLeaf(operation, spec, rest[0]), {
|
|
22616
|
+
isDefault: spec.defaultSubcommand === true
|
|
22617
|
+
});
|
|
22607
22618
|
}
|
|
22608
22619
|
function variantCommandSpec(spec, variant) {
|
|
22609
22620
|
return {
|
|
22610
22621
|
...spec,
|
|
22611
22622
|
command: variant.command,
|
|
22612
22623
|
groupDefault: false,
|
|
22624
|
+
defaultSubcommand: undefined,
|
|
22613
22625
|
aliases: [],
|
|
22614
22626
|
positionals: variant.positionals,
|
|
22615
22627
|
requestFields: variant.requestFields,
|