sim 2.2.31 → 2.2.32-preview.312.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/THIRD_PARTY_LICENSES +3 -0
- package/dist/commands/source-permissions.d.ts +3 -0
- package/dist/generated/v2-api.d.ts +353 -0
- package/dist/http/client.d.ts +9 -0
- package/dist/index.js +1943 -1
- package/dist/runtime.js +1943 -1
- package/dist/transfer/permission-csv.d.ts +30 -0
- package/package.json +2 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const CSV_PROVIDERS: {
|
|
2
|
+
readonly gitlab: {
|
|
3
|
+
readonly userMapping: {
|
|
4
|
+
readonly header: readonly ['user_id', 'email'];
|
|
5
|
+
readonly maxRows: 500000;
|
|
6
|
+
};
|
|
7
|
+
readonly projectPermissions: {
|
|
8
|
+
readonly header: readonly ['project_path', 'user_id'];
|
|
9
|
+
readonly maxRows: 5000000;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
/** Providers with a supported CSV permission format and bounded upload manifest. */
|
|
14
|
+
export type PermissionCsvProvider = keyof typeof CSV_PROVIDERS;
|
|
15
|
+
type CsvField = keyof (typeof CSV_PROVIDERS)['gitlab'];
|
|
16
|
+
interface CsvManifest {
|
|
17
|
+
filename: string;
|
|
18
|
+
rowCount: number;
|
|
19
|
+
parts: number;
|
|
20
|
+
}
|
|
21
|
+
/** Freezes CSV records into private, bounded parts before declaring the import manifest. */
|
|
22
|
+
export declare function stagePermissionCsvs(provider: PermissionCsvProvider, paths: Record<CsvField, string>, signal?: AbortSignal): Promise<{
|
|
23
|
+
manifest: Record<"projectPermissions" | "userMapping", CsvManifest>;
|
|
24
|
+
parts: {
|
|
25
|
+
field: CsvField;
|
|
26
|
+
path: string;
|
|
27
|
+
}[];
|
|
28
|
+
dispose: () => Promise<void>;
|
|
29
|
+
}>;
|
|
30
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sim",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.32-preview.312.1",
|
|
4
4
|
"description": "Sim CLI - talk to the Sim API from your terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"chalk": "5.6.2",
|
|
51
51
|
"commander": "^11.1.0",
|
|
52
|
+
"csv-parse": "7.0.3",
|
|
52
53
|
"js-yaml": "4.3.2",
|
|
53
54
|
"minisearch": "7.2.0",
|
|
54
55
|
"proper-lockfile": "4.1.2"
|