sim 2.2.30 → 2.2.31
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 +129 -0
- package/dist/index.js +79 -0
- package/dist/runtime.js +79 -0
- package/package.json +1 -1
|
@@ -1363,6 +1363,19 @@ type CompleteProjectFileUploadResponseRef1 = {
|
|
|
1363
1363
|
export type CompleteProjectFileUploadResponse = {
|
|
1364
1364
|
data: CompleteProjectFileUploadResponseRef1;
|
|
1365
1365
|
};
|
|
1366
|
+
/** `POST /api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions/imports/[importId]/complete` */
|
|
1367
|
+
export type CompleteSourcePermissionImportParams = {
|
|
1368
|
+
organizationId: string;
|
|
1369
|
+
sourceId: string;
|
|
1370
|
+
importId: string;
|
|
1371
|
+
};
|
|
1372
|
+
export type CompleteSourcePermissionImportQuery = Record<string, unknown>;
|
|
1373
|
+
export type CompleteSourcePermissionImportBody = Record<string, unknown>;
|
|
1374
|
+
export type CompleteSourcePermissionImportResponse = {
|
|
1375
|
+
data: {
|
|
1376
|
+
revision: number;
|
|
1377
|
+
};
|
|
1378
|
+
};
|
|
1366
1379
|
/** `POST /api/v2/tables/imports/[importId]/complete` */
|
|
1367
1380
|
export type CompleteTableImportParams = {
|
|
1368
1381
|
importId: string;
|
|
@@ -2484,6 +2497,32 @@ type CreateSkillResponseRef0 = {
|
|
|
2484
2497
|
export type CreateSkillResponse = {
|
|
2485
2498
|
data: CreateSkillResponseRef0;
|
|
2486
2499
|
};
|
|
2500
|
+
/** `POST /api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions/imports` */
|
|
2501
|
+
export type CreateSourcePermissionImportParams = {
|
|
2502
|
+
organizationId: string;
|
|
2503
|
+
sourceId: string;
|
|
2504
|
+
};
|
|
2505
|
+
export type CreateSourcePermissionImportQuery = Record<string, unknown>;
|
|
2506
|
+
export type CreateSourcePermissionImportBody = {
|
|
2507
|
+
provider: 'gitlab';
|
|
2508
|
+
expectedRevision: number;
|
|
2509
|
+
userMapping: {
|
|
2510
|
+
filename: string;
|
|
2511
|
+
parts: number;
|
|
2512
|
+
rowCount: number;
|
|
2513
|
+
};
|
|
2514
|
+
projectPermissions: {
|
|
2515
|
+
filename: string;
|
|
2516
|
+
parts: number;
|
|
2517
|
+
rowCount: number;
|
|
2518
|
+
};
|
|
2519
|
+
};
|
|
2520
|
+
export type CreateSourcePermissionImportResponse = {
|
|
2521
|
+
data: {
|
|
2522
|
+
id: string;
|
|
2523
|
+
expiresAt: string;
|
|
2524
|
+
};
|
|
2525
|
+
};
|
|
2487
2526
|
/** `POST /api/v2/tables` */
|
|
2488
2527
|
export type CreateTableQuery = Record<string, unknown>;
|
|
2489
2528
|
type CreateTableBodyRef0 = string;
|
|
@@ -9148,6 +9187,23 @@ type PushWorkspaceResponseRef0 = {
|
|
|
9148
9187
|
export type PushWorkspaceResponse = {
|
|
9149
9188
|
data: PushWorkspaceResponseRef0;
|
|
9150
9189
|
};
|
|
9190
|
+
/** `PUT /api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions/imports/[importId]/parts/[partNumber]` */
|
|
9191
|
+
export type PutSourcePermissionImportPartParams = {
|
|
9192
|
+
organizationId: string;
|
|
9193
|
+
sourceId: string;
|
|
9194
|
+
importId: string;
|
|
9195
|
+
partNumber: number;
|
|
9196
|
+
};
|
|
9197
|
+
export type PutSourcePermissionImportPartQuery = Record<string, unknown>;
|
|
9198
|
+
export type PutSourcePermissionImportPartBody = {
|
|
9199
|
+
field: 'userMapping' | 'projectPermissions';
|
|
9200
|
+
content: string;
|
|
9201
|
+
};
|
|
9202
|
+
export type PutSourcePermissionImportPartResponse = {
|
|
9203
|
+
data: {
|
|
9204
|
+
nextPart: number;
|
|
9205
|
+
};
|
|
9206
|
+
};
|
|
9151
9207
|
/** `POST /api/v2/tables/[tableId]/query` */
|
|
9152
9208
|
export type QueryRowsParams = {
|
|
9153
9209
|
tableId: string;
|
|
@@ -12860,6 +12916,19 @@ export declare const V2_OPERATIONS: {
|
|
|
12860
12916
|
};
|
|
12861
12917
|
};
|
|
12862
12918
|
};
|
|
12919
|
+
readonly completeSourcePermissionImport: {
|
|
12920
|
+
readonly method: 'POST';
|
|
12921
|
+
readonly path: '/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions/imports/[importId]/complete';
|
|
12922
|
+
readonly pathParams: readonly ['organizationId', 'sourceId', 'importId'];
|
|
12923
|
+
readonly pathParamDocs: {
|
|
12924
|
+
readonly organizationId: 'Organization identifier.';
|
|
12925
|
+
readonly sourceId: 'Search source identifier.';
|
|
12926
|
+
readonly importId: 'Permission import identifier.';
|
|
12927
|
+
};
|
|
12928
|
+
readonly responseMode: 'json';
|
|
12929
|
+
readonly summary: 'Complete source permission import';
|
|
12930
|
+
readonly body: {};
|
|
12931
|
+
};
|
|
12863
12932
|
readonly completeTableImport: {
|
|
12864
12933
|
readonly method: 'POST';
|
|
12865
12934
|
readonly path: '/api/v2/tables/imports/[importId]/complete';
|
|
@@ -13753,6 +13822,40 @@ export declare const V2_OPERATIONS: {
|
|
|
13753
13822
|
};
|
|
13754
13823
|
};
|
|
13755
13824
|
};
|
|
13825
|
+
readonly createSourcePermissionImport: {
|
|
13826
|
+
readonly method: 'POST';
|
|
13827
|
+
readonly path: '/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions/imports';
|
|
13828
|
+
readonly pathParams: readonly ['organizationId', 'sourceId'];
|
|
13829
|
+
readonly pathParamDocs: {
|
|
13830
|
+
readonly organizationId: 'Organization identifier.';
|
|
13831
|
+
readonly sourceId: 'Search source identifier.';
|
|
13832
|
+
};
|
|
13833
|
+
readonly responseMode: 'json';
|
|
13834
|
+
readonly summary: 'Create source permission import';
|
|
13835
|
+
readonly body: {
|
|
13836
|
+
readonly provider: {
|
|
13837
|
+
readonly kind: 'string';
|
|
13838
|
+
readonly required: true;
|
|
13839
|
+
readonly describe: 'Provider of the configured source.';
|
|
13840
|
+
};
|
|
13841
|
+
readonly expectedRevision: {
|
|
13842
|
+
readonly kind: 'integer';
|
|
13843
|
+
readonly required: true;
|
|
13844
|
+
readonly maximum: 2147483646;
|
|
13845
|
+
readonly describe: 'Permission revision pinned before exporting the CSVs.';
|
|
13846
|
+
};
|
|
13847
|
+
readonly userMapping: {
|
|
13848
|
+
readonly kind: 'object';
|
|
13849
|
+
readonly required: true;
|
|
13850
|
+
readonly describe: 'Complete user identity mapping.';
|
|
13851
|
+
};
|
|
13852
|
+
readonly projectPermissions: {
|
|
13853
|
+
readonly kind: 'object';
|
|
13854
|
+
readonly required: true;
|
|
13855
|
+
readonly describe: 'Complete project membership snapshot.';
|
|
13856
|
+
};
|
|
13857
|
+
};
|
|
13858
|
+
};
|
|
13756
13859
|
readonly createTable: {
|
|
13757
13860
|
readonly method: 'POST';
|
|
13758
13861
|
readonly path: '/api/v2/tables';
|
|
@@ -19109,6 +19212,32 @@ export declare const V2_OPERATIONS: {
|
|
|
19109
19212
|
};
|
|
19110
19213
|
};
|
|
19111
19214
|
};
|
|
19215
|
+
readonly putSourcePermissionImportPart: {
|
|
19216
|
+
readonly method: 'PUT';
|
|
19217
|
+
readonly path: '/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions/imports/[importId]/parts/[partNumber]';
|
|
19218
|
+
readonly pathParams: readonly ['organizationId', 'sourceId', 'importId', 'partNumber'];
|
|
19219
|
+
readonly pathParamDocs: {
|
|
19220
|
+
readonly organizationId: 'Organization identifier.';
|
|
19221
|
+
readonly sourceId: 'Search source identifier.';
|
|
19222
|
+
readonly importId: 'Permission import identifier.';
|
|
19223
|
+
readonly partNumber: 'Zero-based part number across both files; user mapping comes first.';
|
|
19224
|
+
};
|
|
19225
|
+
readonly responseMode: 'json';
|
|
19226
|
+
readonly summary: 'Upload source permission import part';
|
|
19227
|
+
readonly body: {
|
|
19228
|
+
readonly field: {
|
|
19229
|
+
readonly kind: 'enum';
|
|
19230
|
+
readonly required: true;
|
|
19231
|
+
readonly values: readonly ['userMapping', 'projectPermissions'];
|
|
19232
|
+
readonly describe: 'CSV file this part belongs to.';
|
|
19233
|
+
};
|
|
19234
|
+
readonly content: {
|
|
19235
|
+
readonly kind: 'string';
|
|
19236
|
+
readonly required: true;
|
|
19237
|
+
readonly describe: 'Complete CSV records, at most 5,000 rows and 1 MiB of UTF-8; an optional header may appear in each part.';
|
|
19238
|
+
};
|
|
19239
|
+
};
|
|
19240
|
+
};
|
|
19112
19241
|
readonly queryRows: {
|
|
19113
19242
|
readonly method: 'POST';
|
|
19114
19243
|
readonly path: '/api/v2/tables/[tableId]/query';
|
package/dist/index.js
CHANGED
|
@@ -10189,6 +10189,19 @@ var V2_OPERATIONS = {
|
|
|
10189
10189
|
}
|
|
10190
10190
|
}
|
|
10191
10191
|
},
|
|
10192
|
+
completeSourcePermissionImport: {
|
|
10193
|
+
method: "POST",
|
|
10194
|
+
path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions/imports/[importId]/complete",
|
|
10195
|
+
pathParams: ["organizationId", "sourceId", "importId"],
|
|
10196
|
+
pathParamDocs: {
|
|
10197
|
+
organizationId: "Organization identifier.",
|
|
10198
|
+
sourceId: "Search source identifier.",
|
|
10199
|
+
importId: "Permission import identifier."
|
|
10200
|
+
},
|
|
10201
|
+
responseMode: "json",
|
|
10202
|
+
summary: "Complete source permission import",
|
|
10203
|
+
body: {}
|
|
10204
|
+
},
|
|
10192
10205
|
completeTableImport: {
|
|
10193
10206
|
method: "POST",
|
|
10194
10207
|
path: "/api/v2/tables/imports/[importId]/complete",
|
|
@@ -10994,6 +11007,32 @@ var V2_OPERATIONS = {
|
|
|
10994
11007
|
}
|
|
10995
11008
|
}
|
|
10996
11009
|
},
|
|
11010
|
+
createSourcePermissionImport: {
|
|
11011
|
+
method: "POST",
|
|
11012
|
+
path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions/imports",
|
|
11013
|
+
pathParams: ["organizationId", "sourceId"],
|
|
11014
|
+
pathParamDocs: {
|
|
11015
|
+
organizationId: "Organization identifier.",
|
|
11016
|
+
sourceId: "Search source identifier."
|
|
11017
|
+
},
|
|
11018
|
+
responseMode: "json",
|
|
11019
|
+
summary: "Create source permission import",
|
|
11020
|
+
body: {
|
|
11021
|
+
provider: { kind: "string", required: true, describe: "Provider of the configured source." },
|
|
11022
|
+
expectedRevision: {
|
|
11023
|
+
kind: "integer",
|
|
11024
|
+
required: true,
|
|
11025
|
+
maximum: 2147483646,
|
|
11026
|
+
describe: "Permission revision pinned before exporting the CSVs."
|
|
11027
|
+
},
|
|
11028
|
+
userMapping: { kind: "object", required: true, describe: "Complete user identity mapping." },
|
|
11029
|
+
projectPermissions: {
|
|
11030
|
+
kind: "object",
|
|
11031
|
+
required: true,
|
|
11032
|
+
describe: "Complete project membership snapshot."
|
|
11033
|
+
}
|
|
11034
|
+
}
|
|
11035
|
+
},
|
|
10997
11036
|
createTable: {
|
|
10998
11037
|
method: "POST",
|
|
10999
11038
|
path: "/api/v2/tables",
|
|
@@ -16231,6 +16270,32 @@ var V2_OPERATIONS = {
|
|
|
16231
16270
|
}
|
|
16232
16271
|
}
|
|
16233
16272
|
},
|
|
16273
|
+
putSourcePermissionImportPart: {
|
|
16274
|
+
method: "PUT",
|
|
16275
|
+
path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions/imports/[importId]/parts/[partNumber]",
|
|
16276
|
+
pathParams: ["organizationId", "sourceId", "importId", "partNumber"],
|
|
16277
|
+
pathParamDocs: {
|
|
16278
|
+
organizationId: "Organization identifier.",
|
|
16279
|
+
sourceId: "Search source identifier.",
|
|
16280
|
+
importId: "Permission import identifier.",
|
|
16281
|
+
partNumber: "Zero-based part number across both files; user mapping comes first."
|
|
16282
|
+
},
|
|
16283
|
+
responseMode: "json",
|
|
16284
|
+
summary: "Upload source permission import part",
|
|
16285
|
+
body: {
|
|
16286
|
+
field: {
|
|
16287
|
+
kind: "enum",
|
|
16288
|
+
required: true,
|
|
16289
|
+
values: ["userMapping", "projectPermissions"],
|
|
16290
|
+
describe: "CSV file this part belongs to."
|
|
16291
|
+
},
|
|
16292
|
+
content: {
|
|
16293
|
+
kind: "string",
|
|
16294
|
+
required: true,
|
|
16295
|
+
describe: "Complete CSV records, at most 5,000 rows and 1 MiB of UTF-8; an optional header may appear in each part."
|
|
16296
|
+
}
|
|
16297
|
+
}
|
|
16298
|
+
},
|
|
16234
16299
|
queryRows: {
|
|
16235
16300
|
method: "POST",
|
|
16236
16301
|
path: "/api/v2/tables/[tableId]/query",
|
|
@@ -20453,6 +20518,20 @@ var CLI_CONTRACT = {
|
|
|
20453
20518
|
command: "organizations search sources permissions get",
|
|
20454
20519
|
pathFlags: ORGANIZATION_FLAG
|
|
20455
20520
|
},
|
|
20521
|
+
createSourcePermissionImport: {
|
|
20522
|
+
command: "organizations search sources permissions imports create",
|
|
20523
|
+
pathFlags: ORGANIZATION_FLAG
|
|
20524
|
+
},
|
|
20525
|
+
putSourcePermissionImportPart: {
|
|
20526
|
+
command: "organizations search sources permissions imports put-part",
|
|
20527
|
+
pathFlags: ORGANIZATION_FLAG,
|
|
20528
|
+
flags: { content: { textSource: true } }
|
|
20529
|
+
},
|
|
20530
|
+
completeSourcePermissionImport: {
|
|
20531
|
+
command: "organizations search sources permissions imports complete",
|
|
20532
|
+
pathFlags: ORGANIZATION_FLAG,
|
|
20533
|
+
confirm: "This replaces the source’s permission grants. Readers omitted from the new grants lose access."
|
|
20534
|
+
},
|
|
20456
20535
|
replaceSearchSourcePermissions: {
|
|
20457
20536
|
command: "organizations search sources permissions replace",
|
|
20458
20537
|
pathFlags: ORGANIZATION_FLAG,
|
package/dist/runtime.js
CHANGED
|
@@ -10238,6 +10238,19 @@ var V2_OPERATIONS = {
|
|
|
10238
10238
|
}
|
|
10239
10239
|
}
|
|
10240
10240
|
},
|
|
10241
|
+
completeSourcePermissionImport: {
|
|
10242
|
+
method: "POST",
|
|
10243
|
+
path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions/imports/[importId]/complete",
|
|
10244
|
+
pathParams: ["organizationId", "sourceId", "importId"],
|
|
10245
|
+
pathParamDocs: {
|
|
10246
|
+
organizationId: "Organization identifier.",
|
|
10247
|
+
sourceId: "Search source identifier.",
|
|
10248
|
+
importId: "Permission import identifier."
|
|
10249
|
+
},
|
|
10250
|
+
responseMode: "json",
|
|
10251
|
+
summary: "Complete source permission import",
|
|
10252
|
+
body: {}
|
|
10253
|
+
},
|
|
10241
10254
|
completeTableImport: {
|
|
10242
10255
|
method: "POST",
|
|
10243
10256
|
path: "/api/v2/tables/imports/[importId]/complete",
|
|
@@ -11043,6 +11056,32 @@ var V2_OPERATIONS = {
|
|
|
11043
11056
|
}
|
|
11044
11057
|
}
|
|
11045
11058
|
},
|
|
11059
|
+
createSourcePermissionImport: {
|
|
11060
|
+
method: "POST",
|
|
11061
|
+
path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions/imports",
|
|
11062
|
+
pathParams: ["organizationId", "sourceId"],
|
|
11063
|
+
pathParamDocs: {
|
|
11064
|
+
organizationId: "Organization identifier.",
|
|
11065
|
+
sourceId: "Search source identifier."
|
|
11066
|
+
},
|
|
11067
|
+
responseMode: "json",
|
|
11068
|
+
summary: "Create source permission import",
|
|
11069
|
+
body: {
|
|
11070
|
+
provider: { kind: "string", required: true, describe: "Provider of the configured source." },
|
|
11071
|
+
expectedRevision: {
|
|
11072
|
+
kind: "integer",
|
|
11073
|
+
required: true,
|
|
11074
|
+
maximum: 2147483646,
|
|
11075
|
+
describe: "Permission revision pinned before exporting the CSVs."
|
|
11076
|
+
},
|
|
11077
|
+
userMapping: { kind: "object", required: true, describe: "Complete user identity mapping." },
|
|
11078
|
+
projectPermissions: {
|
|
11079
|
+
kind: "object",
|
|
11080
|
+
required: true,
|
|
11081
|
+
describe: "Complete project membership snapshot."
|
|
11082
|
+
}
|
|
11083
|
+
}
|
|
11084
|
+
},
|
|
11046
11085
|
createTable: {
|
|
11047
11086
|
method: "POST",
|
|
11048
11087
|
path: "/api/v2/tables",
|
|
@@ -16280,6 +16319,32 @@ var V2_OPERATIONS = {
|
|
|
16280
16319
|
}
|
|
16281
16320
|
}
|
|
16282
16321
|
},
|
|
16322
|
+
putSourcePermissionImportPart: {
|
|
16323
|
+
method: "PUT",
|
|
16324
|
+
path: "/api/v2/organizations/[organizationId]/search/sources/[sourceId]/permissions/imports/[importId]/parts/[partNumber]",
|
|
16325
|
+
pathParams: ["organizationId", "sourceId", "importId", "partNumber"],
|
|
16326
|
+
pathParamDocs: {
|
|
16327
|
+
organizationId: "Organization identifier.",
|
|
16328
|
+
sourceId: "Search source identifier.",
|
|
16329
|
+
importId: "Permission import identifier.",
|
|
16330
|
+
partNumber: "Zero-based part number across both files; user mapping comes first."
|
|
16331
|
+
},
|
|
16332
|
+
responseMode: "json",
|
|
16333
|
+
summary: "Upload source permission import part",
|
|
16334
|
+
body: {
|
|
16335
|
+
field: {
|
|
16336
|
+
kind: "enum",
|
|
16337
|
+
required: true,
|
|
16338
|
+
values: ["userMapping", "projectPermissions"],
|
|
16339
|
+
describe: "CSV file this part belongs to."
|
|
16340
|
+
},
|
|
16341
|
+
content: {
|
|
16342
|
+
kind: "string",
|
|
16343
|
+
required: true,
|
|
16344
|
+
describe: "Complete CSV records, at most 5,000 rows and 1 MiB of UTF-8; an optional header may appear in each part."
|
|
16345
|
+
}
|
|
16346
|
+
}
|
|
16347
|
+
},
|
|
16283
16348
|
queryRows: {
|
|
16284
16349
|
method: "POST",
|
|
16285
16350
|
path: "/api/v2/tables/[tableId]/query",
|
|
@@ -20502,6 +20567,20 @@ var CLI_CONTRACT = {
|
|
|
20502
20567
|
command: "organizations search sources permissions get",
|
|
20503
20568
|
pathFlags: ORGANIZATION_FLAG
|
|
20504
20569
|
},
|
|
20570
|
+
createSourcePermissionImport: {
|
|
20571
|
+
command: "organizations search sources permissions imports create",
|
|
20572
|
+
pathFlags: ORGANIZATION_FLAG
|
|
20573
|
+
},
|
|
20574
|
+
putSourcePermissionImportPart: {
|
|
20575
|
+
command: "organizations search sources permissions imports put-part",
|
|
20576
|
+
pathFlags: ORGANIZATION_FLAG,
|
|
20577
|
+
flags: { content: { textSource: true } }
|
|
20578
|
+
},
|
|
20579
|
+
completeSourcePermissionImport: {
|
|
20580
|
+
command: "organizations search sources permissions imports complete",
|
|
20581
|
+
pathFlags: ORGANIZATION_FLAG,
|
|
20582
|
+
confirm: "This replaces the source’s permission grants. Readers omitted from the new grants lose access."
|
|
20583
|
+
},
|
|
20505
20584
|
replaceSearchSourcePermissions: {
|
|
20506
20585
|
command: "organizations search sources permissions replace",
|
|
20507
20586
|
pathFlags: ORGANIZATION_FLAG,
|