sim 2.2.12 → 2.2.13-preview.230.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/generated/v2-api.d.ts +69 -0
- package/dist/index.js +58 -0
- package/dist/runtime.js +58 -0
- package/package.json +1 -1
|
@@ -9910,6 +9910,37 @@ type SearchKnowledgeResponseRef1 = {
|
|
|
9910
9910
|
export type SearchKnowledgeResponse = {
|
|
9911
9911
|
data: SearchKnowledgeResponseRef1;
|
|
9912
9912
|
};
|
|
9913
|
+
/** `GET /api/v2/projects/[projectId]/files/search` */
|
|
9914
|
+
export type SearchProjectFileContentParams = {
|
|
9915
|
+
projectId: string;
|
|
9916
|
+
};
|
|
9917
|
+
export type SearchProjectFileContentQuery = {
|
|
9918
|
+
query: string;
|
|
9919
|
+
mode?: 'exact' | 'regex';
|
|
9920
|
+
maxResults?: number;
|
|
9921
|
+
folderPaths?: string;
|
|
9922
|
+
includeSubfolders?: 'true' | '1' | 'yes' | 'on' | 'y' | 'enabled' | 'false' | '0' | 'no' | 'off' | 'n' | 'disabled';
|
|
9923
|
+
};
|
|
9924
|
+
type SearchProjectFileContentResponseRef0 = {
|
|
9925
|
+
results: Array<{
|
|
9926
|
+
fileId: string;
|
|
9927
|
+
lineNumber: number;
|
|
9928
|
+
text: string;
|
|
9929
|
+
}>;
|
|
9930
|
+
count: number;
|
|
9931
|
+
truncated: boolean;
|
|
9932
|
+
complete: boolean;
|
|
9933
|
+
indexStatus: {
|
|
9934
|
+
readyFiles: number;
|
|
9935
|
+
pendingFiles: number;
|
|
9936
|
+
failedFiles: number;
|
|
9937
|
+
skippedFiles: number;
|
|
9938
|
+
partialFiles: number;
|
|
9939
|
+
};
|
|
9940
|
+
};
|
|
9941
|
+
export type SearchProjectFileContentResponse = {
|
|
9942
|
+
data: SearchProjectFileContentResponseRef0;
|
|
9943
|
+
};
|
|
9913
9944
|
/** `POST /api/v2/tables/[tableId]/rows/search` */
|
|
9914
9945
|
export type SearchTableRowsParams = {
|
|
9915
9946
|
tableId: string;
|
|
@@ -19160,6 +19191,44 @@ export declare const V2_OPERATIONS: {
|
|
|
19160
19191
|
};
|
|
19161
19192
|
};
|
|
19162
19193
|
};
|
|
19194
|
+
readonly searchProjectFileContent: {
|
|
19195
|
+
readonly method: 'GET';
|
|
19196
|
+
readonly path: '/api/v2/projects/[projectId]/files/search';
|
|
19197
|
+
readonly pathParams: readonly ['projectId'];
|
|
19198
|
+
readonly pathParamDocs: {
|
|
19199
|
+
readonly projectId: 'Project identifier.';
|
|
19200
|
+
};
|
|
19201
|
+
readonly responseMode: 'json';
|
|
19202
|
+
readonly summary: 'Search Project File Content';
|
|
19203
|
+
readonly workspaceKeyUnsupported: true;
|
|
19204
|
+
readonly query: {
|
|
19205
|
+
readonly query: {
|
|
19206
|
+
readonly kind: 'string';
|
|
19207
|
+
readonly required: true;
|
|
19208
|
+
readonly describe: 'Regular expression, or exact text when `mode` is `exact`.';
|
|
19209
|
+
};
|
|
19210
|
+
readonly mode: {
|
|
19211
|
+
readonly kind: 'enum';
|
|
19212
|
+
readonly values: readonly ['exact', 'regex'];
|
|
19213
|
+
readonly default: 'regex';
|
|
19214
|
+
readonly describe: 'How `query` is read.';
|
|
19215
|
+
};
|
|
19216
|
+
readonly maxResults: {
|
|
19217
|
+
readonly kind: 'integer';
|
|
19218
|
+
readonly default: 50;
|
|
19219
|
+
readonly describe: 'Maximum matching lines to return.';
|
|
19220
|
+
};
|
|
19221
|
+
readonly folderPaths: {
|
|
19222
|
+
readonly kind: 'string';
|
|
19223
|
+
readonly describe: 'Comma-separated folder paths within the Project. Omit to search the entire Project; index coverage applies to the selected folders.';
|
|
19224
|
+
};
|
|
19225
|
+
readonly includeSubfolders: {
|
|
19226
|
+
readonly kind: 'enum';
|
|
19227
|
+
readonly values: readonly ['true', '1', 'yes', 'on', 'y', 'enabled', 'false', '0', 'no', 'off', 'n', 'disabled'];
|
|
19228
|
+
readonly describe: 'Whether the scope descends into nested folders. Absent means yes. The listed spellings are the whole accepted vocabulary and are case-sensitive; any other value is rejected.';
|
|
19229
|
+
};
|
|
19230
|
+
};
|
|
19231
|
+
};
|
|
19163
19232
|
readonly searchTableRows: {
|
|
19164
19233
|
readonly method: 'POST';
|
|
19165
19234
|
readonly path: '/api/v2/tables/[tableId]/rows/search';
|
package/dist/index.js
CHANGED
|
@@ -16797,6 +16797,51 @@ var V2_OPERATIONS = {
|
|
|
16797
16797
|
}
|
|
16798
16798
|
}
|
|
16799
16799
|
},
|
|
16800
|
+
searchProjectFileContent: {
|
|
16801
|
+
method: "GET",
|
|
16802
|
+
path: "/api/v2/projects/[projectId]/files/search",
|
|
16803
|
+
pathParams: ["projectId"],
|
|
16804
|
+
pathParamDocs: { projectId: "Project identifier." },
|
|
16805
|
+
responseMode: "json",
|
|
16806
|
+
summary: "Search Project File Content",
|
|
16807
|
+
workspaceKeyUnsupported: true,
|
|
16808
|
+
query: {
|
|
16809
|
+
query: {
|
|
16810
|
+
kind: "string",
|
|
16811
|
+
required: true,
|
|
16812
|
+
describe: "Regular expression, or exact text when `mode` is `exact`."
|
|
16813
|
+
},
|
|
16814
|
+
mode: {
|
|
16815
|
+
kind: "enum",
|
|
16816
|
+
values: ["exact", "regex"],
|
|
16817
|
+
default: "regex",
|
|
16818
|
+
describe: "How `query` is read."
|
|
16819
|
+
},
|
|
16820
|
+
maxResults: { kind: "integer", default: 50, describe: "Maximum matching lines to return." },
|
|
16821
|
+
folderPaths: {
|
|
16822
|
+
kind: "string",
|
|
16823
|
+
describe: "Comma-separated folder paths within the Project. Omit to search the entire Project; index coverage applies to the selected folders."
|
|
16824
|
+
},
|
|
16825
|
+
includeSubfolders: {
|
|
16826
|
+
kind: "enum",
|
|
16827
|
+
values: [
|
|
16828
|
+
"true",
|
|
16829
|
+
"1",
|
|
16830
|
+
"yes",
|
|
16831
|
+
"on",
|
|
16832
|
+
"y",
|
|
16833
|
+
"enabled",
|
|
16834
|
+
"false",
|
|
16835
|
+
"0",
|
|
16836
|
+
"no",
|
|
16837
|
+
"off",
|
|
16838
|
+
"n",
|
|
16839
|
+
"disabled"
|
|
16840
|
+
],
|
|
16841
|
+
describe: "Whether the scope descends into nested folders. Absent means yes. The listed spellings are the whole accepted vocabulary and are case-sensitive; any other value is rejected."
|
|
16842
|
+
}
|
|
16843
|
+
}
|
|
16844
|
+
},
|
|
16800
16845
|
searchTableRows: {
|
|
16801
16846
|
method: "POST",
|
|
16802
16847
|
path: "/api/v2/tables/[tableId]/rows/search",
|
|
@@ -19264,6 +19309,19 @@ var CLI_CONTRACT = {
|
|
|
19264
19309
|
createProjectFileFolder: { command: "projects files folders create" },
|
|
19265
19310
|
updateProjectFileFolder: { command: "projects files folders update" },
|
|
19266
19311
|
restoreProjectFileFolder: { command: "projects files folders restore" },
|
|
19312
|
+
searchProjectFileContent: {
|
|
19313
|
+
command: "projects files search",
|
|
19314
|
+
flags: {
|
|
19315
|
+
folderPaths: FOLDER_PATHS_FLAG,
|
|
19316
|
+
includeSubfolders: { boolean: true, negatable: true }
|
|
19317
|
+
},
|
|
19318
|
+
itemsPath: "results",
|
|
19319
|
+
columns: [
|
|
19320
|
+
{ header: "file", path: "fileId" },
|
|
19321
|
+
{ header: "line", path: "lineNumber" },
|
|
19322
|
+
{ header: "text" }
|
|
19323
|
+
]
|
|
19324
|
+
},
|
|
19267
19325
|
moveProjectFileItems: {
|
|
19268
19326
|
command: "projects files move",
|
|
19269
19327
|
flags: {
|
package/dist/runtime.js
CHANGED
|
@@ -16846,6 +16846,51 @@ var V2_OPERATIONS = {
|
|
|
16846
16846
|
}
|
|
16847
16847
|
}
|
|
16848
16848
|
},
|
|
16849
|
+
searchProjectFileContent: {
|
|
16850
|
+
method: "GET",
|
|
16851
|
+
path: "/api/v2/projects/[projectId]/files/search",
|
|
16852
|
+
pathParams: ["projectId"],
|
|
16853
|
+
pathParamDocs: { projectId: "Project identifier." },
|
|
16854
|
+
responseMode: "json",
|
|
16855
|
+
summary: "Search Project File Content",
|
|
16856
|
+
workspaceKeyUnsupported: true,
|
|
16857
|
+
query: {
|
|
16858
|
+
query: {
|
|
16859
|
+
kind: "string",
|
|
16860
|
+
required: true,
|
|
16861
|
+
describe: "Regular expression, or exact text when `mode` is `exact`."
|
|
16862
|
+
},
|
|
16863
|
+
mode: {
|
|
16864
|
+
kind: "enum",
|
|
16865
|
+
values: ["exact", "regex"],
|
|
16866
|
+
default: "regex",
|
|
16867
|
+
describe: "How `query` is read."
|
|
16868
|
+
},
|
|
16869
|
+
maxResults: { kind: "integer", default: 50, describe: "Maximum matching lines to return." },
|
|
16870
|
+
folderPaths: {
|
|
16871
|
+
kind: "string",
|
|
16872
|
+
describe: "Comma-separated folder paths within the Project. Omit to search the entire Project; index coverage applies to the selected folders."
|
|
16873
|
+
},
|
|
16874
|
+
includeSubfolders: {
|
|
16875
|
+
kind: "enum",
|
|
16876
|
+
values: [
|
|
16877
|
+
"true",
|
|
16878
|
+
"1",
|
|
16879
|
+
"yes",
|
|
16880
|
+
"on",
|
|
16881
|
+
"y",
|
|
16882
|
+
"enabled",
|
|
16883
|
+
"false",
|
|
16884
|
+
"0",
|
|
16885
|
+
"no",
|
|
16886
|
+
"off",
|
|
16887
|
+
"n",
|
|
16888
|
+
"disabled"
|
|
16889
|
+
],
|
|
16890
|
+
describe: "Whether the scope descends into nested folders. Absent means yes. The listed spellings are the whole accepted vocabulary and are case-sensitive; any other value is rejected."
|
|
16891
|
+
}
|
|
16892
|
+
}
|
|
16893
|
+
},
|
|
16849
16894
|
searchTableRows: {
|
|
16850
16895
|
method: "POST",
|
|
16851
16896
|
path: "/api/v2/tables/[tableId]/rows/search",
|
|
@@ -19313,6 +19358,19 @@ var CLI_CONTRACT = {
|
|
|
19313
19358
|
createProjectFileFolder: { command: "projects files folders create" },
|
|
19314
19359
|
updateProjectFileFolder: { command: "projects files folders update" },
|
|
19315
19360
|
restoreProjectFileFolder: { command: "projects files folders restore" },
|
|
19361
|
+
searchProjectFileContent: {
|
|
19362
|
+
command: "projects files search",
|
|
19363
|
+
flags: {
|
|
19364
|
+
folderPaths: FOLDER_PATHS_FLAG,
|
|
19365
|
+
includeSubfolders: { boolean: true, negatable: true }
|
|
19366
|
+
},
|
|
19367
|
+
itemsPath: "results",
|
|
19368
|
+
columns: [
|
|
19369
|
+
{ header: "file", path: "fileId" },
|
|
19370
|
+
{ header: "line", path: "lineNumber" },
|
|
19371
|
+
{ header: "text" }
|
|
19372
|
+
]
|
|
19373
|
+
},
|
|
19316
19374
|
moveProjectFileItems: {
|
|
19317
19375
|
command: "projects files move",
|
|
19318
19376
|
flags: {
|