@settlemint/sdk-utils 2.3.0 → 2.3.1-pr9c56c214
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/README.md +159 -159
- package/dist/environment.mjs +8 -8
- package/dist/filesystem.mjs +4 -4
- package/dist/package-manager.mjs +7 -7
- package/dist/terminal.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -116,7 +116,7 @@ The SettleMint Utils SDK provides a collection of shared utilities and helper fu
|
|
|
116
116
|
|
|
117
117
|
> **ascii**(): `void`
|
|
118
118
|
|
|
119
|
-
Defined in: [sdk/utils/src/terminal/ascii.ts:14](https://github.com/settlemint/sdk/blob/v2.3.
|
|
119
|
+
Defined in: [sdk/utils/src/terminal/ascii.ts:14](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/ascii.ts#L14)
|
|
120
120
|
|
|
121
121
|
Prints the SettleMint ASCII art logo to the console in magenta color.
|
|
122
122
|
Used for CLI branding and visual identification.
|
|
@@ -140,7 +140,7 @@ ascii();
|
|
|
140
140
|
|
|
141
141
|
> **camelCaseToWords**(`s`): `string`
|
|
142
142
|
|
|
143
|
-
Defined in: [sdk/utils/src/string.ts:29](https://github.com/settlemint/sdk/blob/v2.3.
|
|
143
|
+
Defined in: [sdk/utils/src/string.ts:29](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/string.ts#L29)
|
|
144
144
|
|
|
145
145
|
Converts a camelCase string to a human-readable string.
|
|
146
146
|
|
|
@@ -171,7 +171,7 @@ const words = camelCaseToWords("camelCaseString");
|
|
|
171
171
|
|
|
172
172
|
> **cancel**(`msg`): `never`
|
|
173
173
|
|
|
174
|
-
Defined in: [sdk/utils/src/terminal/cancel.ts:23](https://github.com/settlemint/sdk/blob/v2.3.
|
|
174
|
+
Defined in: [sdk/utils/src/terminal/cancel.ts:23](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/cancel.ts#L23)
|
|
175
175
|
|
|
176
176
|
Displays an error message in red inverse text and throws a CancelError.
|
|
177
177
|
Used to terminate execution with a visible error message.
|
|
@@ -204,7 +204,7 @@ cancel("An error occurred");
|
|
|
204
204
|
|
|
205
205
|
> **capitalizeFirstLetter**(`val`): `string`
|
|
206
206
|
|
|
207
|
-
Defined in: [sdk/utils/src/string.ts:13](https://github.com/settlemint/sdk/blob/v2.3.
|
|
207
|
+
Defined in: [sdk/utils/src/string.ts:13](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/string.ts#L13)
|
|
208
208
|
|
|
209
209
|
Capitalizes the first letter of a string.
|
|
210
210
|
|
|
@@ -235,7 +235,7 @@ const capitalized = capitalizeFirstLetter("hello");
|
|
|
235
235
|
|
|
236
236
|
> **createLogger**(`options`): [`Logger`](#logger)
|
|
237
237
|
|
|
238
|
-
Defined in: [sdk/utils/src/logging/logger.ts:50](https://github.com/settlemint/sdk/blob/v2.3.
|
|
238
|
+
Defined in: [sdk/utils/src/logging/logger.ts:50](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/logging/logger.ts#L50)
|
|
239
239
|
|
|
240
240
|
Creates a simple logger with configurable log level
|
|
241
241
|
|
|
@@ -268,7 +268,7 @@ logger.error('Operation failed', new Error('Connection timeout'));
|
|
|
268
268
|
|
|
269
269
|
> **emptyDir**(`dir`): `Promise`\<`void`\>
|
|
270
270
|
|
|
271
|
-
Defined in: [sdk/utils/src/package-manager/download-and-extract.ts:45](https://github.com/settlemint/sdk/blob/v2.3.
|
|
271
|
+
Defined in: [sdk/utils/src/package-manager/download-and-extract.ts:45](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/package-manager/download-and-extract.ts#L45)
|
|
272
272
|
|
|
273
273
|
Removes all contents of a directory except the .git folder
|
|
274
274
|
|
|
@@ -296,7 +296,7 @@ await emptyDir("/path/to/dir"); // Removes all contents except .git
|
|
|
296
296
|
|
|
297
297
|
> **ensureBrowser**(): `void`
|
|
298
298
|
|
|
299
|
-
Defined in: [sdk/utils/src/runtime/ensure-server.ts:31](https://github.com/settlemint/sdk/blob/v2.3.
|
|
299
|
+
Defined in: [sdk/utils/src/runtime/ensure-server.ts:31](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/runtime/ensure-server.ts#L31)
|
|
300
300
|
|
|
301
301
|
Ensures that code is running in a browser environment and not on the server.
|
|
302
302
|
|
|
@@ -323,7 +323,7 @@ ensureBrowser();
|
|
|
323
323
|
|
|
324
324
|
> **ensureServer**(): `void`
|
|
325
325
|
|
|
326
|
-
Defined in: [sdk/utils/src/runtime/ensure-server.ts:13](https://github.com/settlemint/sdk/blob/v2.3.
|
|
326
|
+
Defined in: [sdk/utils/src/runtime/ensure-server.ts:13](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/runtime/ensure-server.ts#L13)
|
|
327
327
|
|
|
328
328
|
Ensures that code is running on the server and not in a browser environment.
|
|
329
329
|
|
|
@@ -350,7 +350,7 @@ ensureServer();
|
|
|
350
350
|
|
|
351
351
|
> **executeCommand**(`command`, `args`, `options?`): `Promise`\<`string`[]\>
|
|
352
352
|
|
|
353
|
-
Defined in: [sdk/utils/src/terminal/execute-command.ts:51](https://github.com/settlemint/sdk/blob/v2.3.
|
|
353
|
+
Defined in: [sdk/utils/src/terminal/execute-command.ts:51](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/execute-command.ts#L51)
|
|
354
354
|
|
|
355
355
|
Executes a command with the given arguments in a child process.
|
|
356
356
|
Pipes stdin to the child process and captures stdout/stderr output.
|
|
@@ -392,7 +392,7 @@ await executeCommand("npm", ["install"], { silent: true });
|
|
|
392
392
|
|
|
393
393
|
> **exists**(`path`): `Promise`\<`boolean`\>
|
|
394
394
|
|
|
395
|
-
Defined in: [sdk/utils/src/filesystem/exists.ts:17](https://github.com/settlemint/sdk/blob/v2.3.
|
|
395
|
+
Defined in: [sdk/utils/src/filesystem/exists.ts:17](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/filesystem/exists.ts#L17)
|
|
396
396
|
|
|
397
397
|
Checks if a file or directory exists at the given path
|
|
398
398
|
|
|
@@ -425,7 +425,7 @@ if (await exists('/path/to/file.txt')) {
|
|
|
425
425
|
|
|
426
426
|
> **extractJsonObject**\<`T`\>(`value`): `null` \| `T`
|
|
427
427
|
|
|
428
|
-
Defined in: [sdk/utils/src/json.ts:50](https://github.com/settlemint/sdk/blob/v2.3.
|
|
428
|
+
Defined in: [sdk/utils/src/json.ts:50](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/json.ts#L50)
|
|
429
429
|
|
|
430
430
|
Extracts a JSON object from a string.
|
|
431
431
|
|
|
@@ -468,7 +468,7 @@ const json = extractJsonObject<{ port: number }>(
|
|
|
468
468
|
|
|
469
469
|
> **fetchWithRetry**(`input`, `init?`, `maxRetries?`, `initialSleepTime?`): `Promise`\<`Response`\>
|
|
470
470
|
|
|
471
|
-
Defined in: [sdk/utils/src/http/fetch-with-retry.ts:18](https://github.com/settlemint/sdk/blob/v2.3.
|
|
471
|
+
Defined in: [sdk/utils/src/http/fetch-with-retry.ts:18](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/http/fetch-with-retry.ts#L18)
|
|
472
472
|
|
|
473
473
|
Retry an HTTP request with exponential backoff and jitter.
|
|
474
474
|
Only retries on server errors (5xx), rate limits (429), timeouts (408), and network errors.
|
|
@@ -506,7 +506,7 @@ const response = await fetchWithRetry("https://api.example.com/data");
|
|
|
506
506
|
|
|
507
507
|
> **findMonoRepoPackages**(`projectDir`): `Promise`\<`string`[]\>
|
|
508
508
|
|
|
509
|
-
Defined in: [sdk/utils/src/filesystem/mono-repo.ts:59](https://github.com/settlemint/sdk/blob/v2.3.
|
|
509
|
+
Defined in: [sdk/utils/src/filesystem/mono-repo.ts:59](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/filesystem/mono-repo.ts#L59)
|
|
510
510
|
|
|
511
511
|
Finds all packages in a monorepo
|
|
512
512
|
|
|
@@ -537,7 +537,7 @@ console.log(packages); // Output: ["/path/to/your/project/packages/core", "/path
|
|
|
537
537
|
|
|
538
538
|
> **findMonoRepoRoot**(`startDir`): `Promise`\<`null` \| `string`\>
|
|
539
539
|
|
|
540
|
-
Defined in: [sdk/utils/src/filesystem/mono-repo.ts:19](https://github.com/settlemint/sdk/blob/v2.3.
|
|
540
|
+
Defined in: [sdk/utils/src/filesystem/mono-repo.ts:19](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/filesystem/mono-repo.ts#L19)
|
|
541
541
|
|
|
542
542
|
Finds the root directory of a monorepo
|
|
543
543
|
|
|
@@ -568,7 +568,7 @@ console.log(root); // Output: /path/to/your/project/packages/core
|
|
|
568
568
|
|
|
569
569
|
> **formatTargetDir**(`targetDir`): `string`
|
|
570
570
|
|
|
571
|
-
Defined in: [sdk/utils/src/package-manager/download-and-extract.ts:15](https://github.com/settlemint/sdk/blob/v2.3.
|
|
571
|
+
Defined in: [sdk/utils/src/package-manager/download-and-extract.ts:15](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/package-manager/download-and-extract.ts#L15)
|
|
572
572
|
|
|
573
573
|
Formats a directory path by removing trailing slashes and whitespace
|
|
574
574
|
|
|
@@ -598,7 +598,7 @@ const formatted = formatTargetDir("/path/to/dir/ "); // "/path/to/dir"
|
|
|
598
598
|
|
|
599
599
|
> **getPackageManager**(`targetDir?`): `Promise`\<`AgentName`\>
|
|
600
600
|
|
|
601
|
-
Defined in: [sdk/utils/src/package-manager/get-package-manager.ts:15](https://github.com/settlemint/sdk/blob/v2.3.
|
|
601
|
+
Defined in: [sdk/utils/src/package-manager/get-package-manager.ts:15](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/package-manager/get-package-manager.ts#L15)
|
|
602
602
|
|
|
603
603
|
Detects the package manager used in the current project
|
|
604
604
|
|
|
@@ -629,7 +629,7 @@ console.log(`Using ${packageManager}`);
|
|
|
629
629
|
|
|
630
630
|
> **getPackageManagerExecutable**(`targetDir?`): `Promise`\<\{ `args`: `string`[]; `command`: `string`; \}\>
|
|
631
631
|
|
|
632
|
-
Defined in: [sdk/utils/src/package-manager/get-package-manager-executable.ts:14](https://github.com/settlemint/sdk/blob/v2.3.
|
|
632
|
+
Defined in: [sdk/utils/src/package-manager/get-package-manager-executable.ts:14](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/package-manager/get-package-manager-executable.ts#L14)
|
|
633
633
|
|
|
634
634
|
Retrieves the executable command and arguments for the package manager
|
|
635
635
|
|
|
@@ -660,7 +660,7 @@ console.log(`Using ${command} with args: ${args.join(" ")}`);
|
|
|
660
660
|
|
|
661
661
|
> **graphqlFetchWithRetry**\<`Data`\>(`input`, `init?`, `maxRetries?`, `initialSleepTime?`): `Promise`\<`Data`\>
|
|
662
662
|
|
|
663
|
-
Defined in: [sdk/utils/src/http/graphql-fetch-with-retry.ts:34](https://github.com/settlemint/sdk/blob/v2.3.
|
|
663
|
+
Defined in: [sdk/utils/src/http/graphql-fetch-with-retry.ts:34](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/http/graphql-fetch-with-retry.ts#L34)
|
|
664
664
|
|
|
665
665
|
Executes a GraphQL request with automatic retries using exponential backoff and jitter.
|
|
666
666
|
Only retries on server errors (5xx), rate limits (429), timeouts (408), and network errors.
|
|
@@ -719,7 +719,7 @@ const data = await graphqlFetchWithRetry<{ user: { id: string } }>(
|
|
|
719
719
|
|
|
720
720
|
> **installDependencies**(`pkgs`, `cwd?`): `Promise`\<`void`\>
|
|
721
721
|
|
|
722
|
-
Defined in: [sdk/utils/src/package-manager/install-dependencies.ts:20](https://github.com/settlemint/sdk/blob/v2.3.
|
|
722
|
+
Defined in: [sdk/utils/src/package-manager/install-dependencies.ts:20](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/package-manager/install-dependencies.ts#L20)
|
|
723
723
|
|
|
724
724
|
Installs one or more packages as dependencies using the detected package manager
|
|
725
725
|
|
|
@@ -758,7 +758,7 @@ await installDependencies(["express", "cors"]);
|
|
|
758
758
|
|
|
759
759
|
> **intro**(`msg`): `void`
|
|
760
760
|
|
|
761
|
-
Defined in: [sdk/utils/src/terminal/intro.ts:16](https://github.com/settlemint/sdk/blob/v2.3.
|
|
761
|
+
Defined in: [sdk/utils/src/terminal/intro.ts:16](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/intro.ts#L16)
|
|
762
762
|
|
|
763
763
|
Displays an introductory message in magenta text with padding.
|
|
764
764
|
Any sensitive tokens in the message are masked before display.
|
|
@@ -788,7 +788,7 @@ intro("Starting deployment...");
|
|
|
788
788
|
|
|
789
789
|
> **isEmpty**(`path`): `Promise`\<`boolean`\>
|
|
790
790
|
|
|
791
|
-
Defined in: [sdk/utils/src/package-manager/download-and-extract.ts:31](https://github.com/settlemint/sdk/blob/v2.3.
|
|
791
|
+
Defined in: [sdk/utils/src/package-manager/download-and-extract.ts:31](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/package-manager/download-and-extract.ts#L31)
|
|
792
792
|
|
|
793
793
|
Checks if a directory is empty or contains only a .git folder
|
|
794
794
|
|
|
@@ -820,7 +820,7 @@ if (await isEmpty("/path/to/dir")) {
|
|
|
820
820
|
|
|
821
821
|
> **isPackageInstalled**(`name`, `path?`): `Promise`\<`boolean`\>
|
|
822
822
|
|
|
823
|
-
Defined in: [sdk/utils/src/package-manager/is-package-installed.ts:17](https://github.com/settlemint/sdk/blob/v2.3.
|
|
823
|
+
Defined in: [sdk/utils/src/package-manager/is-package-installed.ts:17](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/package-manager/is-package-installed.ts#L17)
|
|
824
824
|
|
|
825
825
|
Checks if a package is installed in the project's dependencies, devDependencies, or peerDependencies.
|
|
826
826
|
|
|
@@ -856,7 +856,7 @@ console.log(`@settlemint/sdk-utils is installed: ${isInstalled}`);
|
|
|
856
856
|
|
|
857
857
|
> **list**(`title`, `items`): `void`
|
|
858
858
|
|
|
859
|
-
Defined in: [sdk/utils/src/terminal/list.ts:23](https://github.com/settlemint/sdk/blob/v2.3.
|
|
859
|
+
Defined in: [sdk/utils/src/terminal/list.ts:23](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/list.ts#L23)
|
|
860
860
|
|
|
861
861
|
Displays a list of items in a formatted manner, supporting nested items.
|
|
862
862
|
|
|
@@ -896,7 +896,7 @@ list("Providers", [
|
|
|
896
896
|
|
|
897
897
|
> **loadEnv**\<`T`\>(`validateEnv`, `prod`, `path`): `Promise`\<`T` *extends* `true` ? `object` : `object`\>
|
|
898
898
|
|
|
899
|
-
Defined in: [sdk/utils/src/environment/load-env.ts:25](https://github.com/settlemint/sdk/blob/v2.3.
|
|
899
|
+
Defined in: [sdk/utils/src/environment/load-env.ts:25](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/environment/load-env.ts#L25)
|
|
900
900
|
|
|
901
901
|
Loads environment variables from .env files.
|
|
902
902
|
To enable encryption with dotenvx (https://www.dotenvx.com/docs) run `bunx dotenvx encrypt`
|
|
@@ -944,7 +944,7 @@ const rawEnv = await loadEnv(false, false);
|
|
|
944
944
|
|
|
945
945
|
> **makeJsonStringifiable**\<`T`\>(`value`): `T`
|
|
946
946
|
|
|
947
|
-
Defined in: [sdk/utils/src/json.ts:73](https://github.com/settlemint/sdk/blob/v2.3.
|
|
947
|
+
Defined in: [sdk/utils/src/json.ts:73](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/json.ts#L73)
|
|
948
948
|
|
|
949
949
|
Converts a value to a JSON stringifiable format.
|
|
950
950
|
|
|
@@ -981,7 +981,7 @@ const json = makeJsonStringifiable<{ amount: bigint }>({ amount: BigInt(1000) })
|
|
|
981
981
|
|
|
982
982
|
> **maskTokens**(`output`): `string`
|
|
983
983
|
|
|
984
|
-
Defined in: [sdk/utils/src/logging/mask-tokens.ts:13](https://github.com/settlemint/sdk/blob/v2.3.
|
|
984
|
+
Defined in: [sdk/utils/src/logging/mask-tokens.ts:13](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/logging/mask-tokens.ts#L13)
|
|
985
985
|
|
|
986
986
|
Masks sensitive SettleMint tokens in output text by replacing them with asterisks.
|
|
987
987
|
Handles personal access tokens (PAT), application access tokens (AAT), and service account tokens (SAT).
|
|
@@ -1013,7 +1013,7 @@ const masked = maskTokens("Token: sm_pat_****"); // "Token: ***"
|
|
|
1013
1013
|
|
|
1014
1014
|
> **note**(`message`, `level`): `void`
|
|
1015
1015
|
|
|
1016
|
-
Defined in: [sdk/utils/src/terminal/note.ts:21](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1016
|
+
Defined in: [sdk/utils/src/terminal/note.ts:21](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/note.ts#L21)
|
|
1017
1017
|
|
|
1018
1018
|
Displays a note message with optional warning level formatting.
|
|
1019
1019
|
Regular notes are displayed in normal text, while warnings are shown in yellow.
|
|
@@ -1048,7 +1048,7 @@ note("Low disk space remaining", "warn");
|
|
|
1048
1048
|
|
|
1049
1049
|
> **outro**(`msg`): `void`
|
|
1050
1050
|
|
|
1051
|
-
Defined in: [sdk/utils/src/terminal/outro.ts:16](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1051
|
+
Defined in: [sdk/utils/src/terminal/outro.ts:16](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/outro.ts#L16)
|
|
1052
1052
|
|
|
1053
1053
|
Displays a closing message in green inverted text with padding.
|
|
1054
1054
|
Any sensitive tokens in the message are masked before display.
|
|
@@ -1078,7 +1078,7 @@ outro("Deployment completed successfully!");
|
|
|
1078
1078
|
|
|
1079
1079
|
> **projectRoot**(`fallbackToCwd`, `cwd?`): `Promise`\<`string`\>
|
|
1080
1080
|
|
|
1081
|
-
Defined in: [sdk/utils/src/filesystem/project-root.ts:18](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1081
|
+
Defined in: [sdk/utils/src/filesystem/project-root.ts:18](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/filesystem/project-root.ts#L18)
|
|
1082
1082
|
|
|
1083
1083
|
Finds the root directory of the current project by locating the nearest package.json file
|
|
1084
1084
|
|
|
@@ -1115,7 +1115,7 @@ console.log(`Project root is at: ${rootDir}`);
|
|
|
1115
1115
|
|
|
1116
1116
|
> **replaceUnderscoresAndHyphensWithSpaces**(`s`): `string`
|
|
1117
1117
|
|
|
1118
|
-
Defined in: [sdk/utils/src/string.ts:48](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1118
|
+
Defined in: [sdk/utils/src/string.ts:48](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/string.ts#L48)
|
|
1119
1119
|
|
|
1120
1120
|
Replaces underscores and hyphens with spaces.
|
|
1121
1121
|
|
|
@@ -1146,7 +1146,7 @@ const result = replaceUnderscoresAndHyphensWithSpaces("Already_Spaced-Second");
|
|
|
1146
1146
|
|
|
1147
1147
|
> **requestLogger**(`logger`, `name`, `fn`): (...`args`) => `Promise`\<`Response`\>
|
|
1148
1148
|
|
|
1149
|
-
Defined in: [sdk/utils/src/logging/request-logger.ts:14](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1149
|
+
Defined in: [sdk/utils/src/logging/request-logger.ts:14](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/logging/request-logger.ts#L14)
|
|
1150
1150
|
|
|
1151
1151
|
Logs the request and duration of a fetch call (> 500ms is logged as warn, otherwise info)
|
|
1152
1152
|
|
|
@@ -1180,7 +1180,7 @@ The fetch function
|
|
|
1180
1180
|
|
|
1181
1181
|
> **retryWhenFailed**\<`T`\>(`fn`, `maxRetries`, `initialSleepTime`, `stopOnError?`): `Promise`\<`T`\>
|
|
1182
1182
|
|
|
1183
|
-
Defined in: [sdk/utils/src/retry.ts:14](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1183
|
+
Defined in: [sdk/utils/src/retry.ts:14](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/retry.ts#L14)
|
|
1184
1184
|
|
|
1185
1185
|
Retry a function when it fails.
|
|
1186
1186
|
|
|
@@ -1220,7 +1220,7 @@ const result = await retryWhenFailed(() => readFile("/path/to/file.txt"), 3, 1_0
|
|
|
1220
1220
|
|
|
1221
1221
|
> **setName**(`name`, `path?`): `Promise`\<`void`\>
|
|
1222
1222
|
|
|
1223
|
-
Defined in: [sdk/utils/src/package-manager/set-name.ts:16](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1223
|
+
Defined in: [sdk/utils/src/package-manager/set-name.ts:16](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/package-manager/set-name.ts#L16)
|
|
1224
1224
|
|
|
1225
1225
|
Sets the name field in the package.json file
|
|
1226
1226
|
|
|
@@ -1255,7 +1255,7 @@ await setName("my-new-project-name");
|
|
|
1255
1255
|
|
|
1256
1256
|
> **spinner**\<`R`\>(`options`): `Promise`\<`R`\>
|
|
1257
1257
|
|
|
1258
|
-
Defined in: [sdk/utils/src/terminal/spinner.ts:55](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1258
|
+
Defined in: [sdk/utils/src/terminal/spinner.ts:55](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/spinner.ts#L55)
|
|
1259
1259
|
|
|
1260
1260
|
Displays a loading spinner while executing an async task.
|
|
1261
1261
|
Shows progress with start/stop messages and handles errors.
|
|
@@ -1305,7 +1305,7 @@ const result = await spinner({
|
|
|
1305
1305
|
|
|
1306
1306
|
> **table**(`title`, `data`): `void`
|
|
1307
1307
|
|
|
1308
|
-
Defined in: [sdk/utils/src/terminal/table.ts:21](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1308
|
+
Defined in: [sdk/utils/src/terminal/table.ts:21](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/table.ts#L21)
|
|
1309
1309
|
|
|
1310
1310
|
Displays data in a formatted table in the terminal.
|
|
1311
1311
|
|
|
@@ -1339,7 +1339,7 @@ table("My Table", data);
|
|
|
1339
1339
|
|
|
1340
1340
|
> **truncate**(`value`, `maxLength`): `string`
|
|
1341
1341
|
|
|
1342
|
-
Defined in: [sdk/utils/src/string.ts:65](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1342
|
+
Defined in: [sdk/utils/src/string.ts:65](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/string.ts#L65)
|
|
1343
1343
|
|
|
1344
1344
|
Truncates a string to a maximum length and appends "..." if it is longer.
|
|
1345
1345
|
|
|
@@ -1371,7 +1371,7 @@ const truncated = truncate("Hello, world!", 10);
|
|
|
1371
1371
|
|
|
1372
1372
|
> **tryParseJson**\<`T`\>(`value`, `defaultValue`): `null` \| `T`
|
|
1373
1373
|
|
|
1374
|
-
Defined in: [sdk/utils/src/json.ts:23](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1374
|
+
Defined in: [sdk/utils/src/json.ts:23](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/json.ts#L23)
|
|
1375
1375
|
|
|
1376
1376
|
Attempts to parse a JSON string into a typed value, returning a default value if parsing fails.
|
|
1377
1377
|
|
|
@@ -1418,7 +1418,7 @@ const invalid = tryParseJson<string[]>(
|
|
|
1418
1418
|
|
|
1419
1419
|
> **validate**\<`T`\>(`schema`, `value`): `T`\[`"_output"`\]
|
|
1420
1420
|
|
|
1421
|
-
Defined in: [sdk/utils/src/validation/validate.ts:16](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1421
|
+
Defined in: [sdk/utils/src/validation/validate.ts:16](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/validate.ts#L16)
|
|
1422
1422
|
|
|
1423
1423
|
Validates a value against a given Zod schema.
|
|
1424
1424
|
|
|
@@ -1459,7 +1459,7 @@ const validatedId = validate(IdSchema, "550e8400-e29b-41d4-a716-446655440000");
|
|
|
1459
1459
|
|
|
1460
1460
|
> **writeEnv**(`options`): `Promise`\<`void`\>
|
|
1461
1461
|
|
|
1462
|
-
Defined in: [sdk/utils/src/environment/write-env.ts:41](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1462
|
+
Defined in: [sdk/utils/src/environment/write-env.ts:41](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/environment/write-env.ts#L41)
|
|
1463
1463
|
|
|
1464
1464
|
Writes environment variables to .env files across a project or monorepo
|
|
1465
1465
|
|
|
@@ -1511,7 +1511,7 @@ await writeEnv({
|
|
|
1511
1511
|
|
|
1512
1512
|
#### CancelError
|
|
1513
1513
|
|
|
1514
|
-
Defined in: [sdk/utils/src/terminal/cancel.ts:8](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1514
|
+
Defined in: [sdk/utils/src/terminal/cancel.ts:8](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/cancel.ts#L8)
|
|
1515
1515
|
|
|
1516
1516
|
Error class used to indicate that the operation was cancelled.
|
|
1517
1517
|
This error is used to signal that the operation should be aborted.
|
|
@@ -1524,7 +1524,7 @@ This error is used to signal that the operation should be aborted.
|
|
|
1524
1524
|
|
|
1525
1525
|
#### CommandError
|
|
1526
1526
|
|
|
1527
|
-
Defined in: [sdk/utils/src/terminal/execute-command.ts:16](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1527
|
+
Defined in: [sdk/utils/src/terminal/execute-command.ts:16](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/execute-command.ts#L16)
|
|
1528
1528
|
|
|
1529
1529
|
Error class for command execution errors
|
|
1530
1530
|
|
|
@@ -1538,7 +1538,7 @@ Error class for command execution errors
|
|
|
1538
1538
|
|
|
1539
1539
|
> **new CommandError**(`message`, `code`, `output`): [`CommandError`](#commanderror)
|
|
1540
1540
|
|
|
1541
|
-
Defined in: [sdk/utils/src/terminal/execute-command.ts:23](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1541
|
+
Defined in: [sdk/utils/src/terminal/execute-command.ts:23](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/execute-command.ts#L23)
|
|
1542
1542
|
|
|
1543
1543
|
Constructs a new CommandError
|
|
1544
1544
|
|
|
@@ -1564,7 +1564,7 @@ Constructs a new CommandError
|
|
|
1564
1564
|
|
|
1565
1565
|
> `readonly` **code**: `number`
|
|
1566
1566
|
|
|
1567
|
-
Defined in: [sdk/utils/src/terminal/execute-command.ts:25](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1567
|
+
Defined in: [sdk/utils/src/terminal/execute-command.ts:25](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/execute-command.ts#L25)
|
|
1568
1568
|
|
|
1569
1569
|
The exit code of the command
|
|
1570
1570
|
|
|
@@ -1572,7 +1572,7 @@ The exit code of the command
|
|
|
1572
1572
|
|
|
1573
1573
|
> `readonly` **output**: `string`[]
|
|
1574
1574
|
|
|
1575
|
-
Defined in: [sdk/utils/src/terminal/execute-command.ts:26](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1575
|
+
Defined in: [sdk/utils/src/terminal/execute-command.ts:26](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/execute-command.ts#L26)
|
|
1576
1576
|
|
|
1577
1577
|
The output of the command
|
|
1578
1578
|
|
|
@@ -1580,7 +1580,7 @@ The output of the command
|
|
|
1580
1580
|
|
|
1581
1581
|
#### SpinnerError
|
|
1582
1582
|
|
|
1583
|
-
Defined in: [sdk/utils/src/terminal/spinner.ts:12](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1583
|
+
Defined in: [sdk/utils/src/terminal/spinner.ts:12](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/spinner.ts#L12)
|
|
1584
1584
|
|
|
1585
1585
|
Error class used to indicate that the spinner operation failed.
|
|
1586
1586
|
This error is used to signal that the operation should be aborted.
|
|
@@ -1593,7 +1593,7 @@ This error is used to signal that the operation should be aborted.
|
|
|
1593
1593
|
|
|
1594
1594
|
#### ExecuteCommandOptions
|
|
1595
1595
|
|
|
1596
|
-
Defined in: [sdk/utils/src/terminal/execute-command.ts:7](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1596
|
+
Defined in: [sdk/utils/src/terminal/execute-command.ts:7](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/execute-command.ts#L7)
|
|
1597
1597
|
|
|
1598
1598
|
Options for executing a command, extending SpawnOptionsWithoutStdio
|
|
1599
1599
|
|
|
@@ -1605,13 +1605,13 @@ Options for executing a command, extending SpawnOptionsWithoutStdio
|
|
|
1605
1605
|
|
|
1606
1606
|
| Property | Type | Description | Defined in |
|
|
1607
1607
|
| ------ | ------ | ------ | ------ |
|
|
1608
|
-
| <a id="silent"></a> `silent?` | `boolean` | Whether to suppress output to stdout/stderr | [sdk/utils/src/terminal/execute-command.ts:9](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1608
|
+
| <a id="silent"></a> `silent?` | `boolean` | Whether to suppress output to stdout/stderr | [sdk/utils/src/terminal/execute-command.ts:9](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/execute-command.ts#L9) |
|
|
1609
1609
|
|
|
1610
1610
|
***
|
|
1611
1611
|
|
|
1612
1612
|
#### Logger
|
|
1613
1613
|
|
|
1614
|
-
Defined in: [sdk/utils/src/logging/logger.ts:23](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1614
|
+
Defined in: [sdk/utils/src/logging/logger.ts:23](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/logging/logger.ts#L23)
|
|
1615
1615
|
|
|
1616
1616
|
Simple logger interface with basic logging methods
|
|
1617
1617
|
Logger
|
|
@@ -1620,16 +1620,16 @@ Simple logger interface with basic logging methods
|
|
|
1620
1620
|
|
|
1621
1621
|
| Property | Type | Description | Defined in |
|
|
1622
1622
|
| ------ | ------ | ------ | ------ |
|
|
1623
|
-
| <a id="debug"></a> `debug` | (`message`, ...`args`) => `void` | Log debug information | [sdk/utils/src/logging/logger.ts:25](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1624
|
-
| <a id="error"></a> `error` | (`message`, ...`args`) => `void` | Log errors | [sdk/utils/src/logging/logger.ts:31](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1625
|
-
| <a id="info"></a> `info` | (`message`, ...`args`) => `void` | Log general information | [sdk/utils/src/logging/logger.ts:27](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1626
|
-
| <a id="warn"></a> `warn` | (`message`, ...`args`) => `void` | Log warnings | [sdk/utils/src/logging/logger.ts:29](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1623
|
+
| <a id="debug"></a> `debug` | (`message`, ...`args`) => `void` | Log debug information | [sdk/utils/src/logging/logger.ts:25](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/logging/logger.ts#L25) |
|
|
1624
|
+
| <a id="error"></a> `error` | (`message`, ...`args`) => `void` | Log errors | [sdk/utils/src/logging/logger.ts:31](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/logging/logger.ts#L31) |
|
|
1625
|
+
| <a id="info"></a> `info` | (`message`, ...`args`) => `void` | Log general information | [sdk/utils/src/logging/logger.ts:27](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/logging/logger.ts#L27) |
|
|
1626
|
+
| <a id="warn"></a> `warn` | (`message`, ...`args`) => `void` | Log warnings | [sdk/utils/src/logging/logger.ts:29](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/logging/logger.ts#L29) |
|
|
1627
1627
|
|
|
1628
1628
|
***
|
|
1629
1629
|
|
|
1630
1630
|
#### LoggerOptions
|
|
1631
1631
|
|
|
1632
|
-
Defined in: [sdk/utils/src/logging/logger.ts:12](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1632
|
+
Defined in: [sdk/utils/src/logging/logger.ts:12](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/logging/logger.ts#L12)
|
|
1633
1633
|
|
|
1634
1634
|
Configuration options for the logger
|
|
1635
1635
|
LoggerOptions
|
|
@@ -1638,14 +1638,14 @@ Configuration options for the logger
|
|
|
1638
1638
|
|
|
1639
1639
|
| Property | Type | Description | Defined in |
|
|
1640
1640
|
| ------ | ------ | ------ | ------ |
|
|
1641
|
-
| <a id="level"></a> `level?` | [`LogLevel`](#loglevel) | The minimum log level to output | [sdk/utils/src/logging/logger.ts:14](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1642
|
-
| <a id="prefix"></a> `prefix?` | `string` | The prefix to add to the log message | [sdk/utils/src/logging/logger.ts:16](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1641
|
+
| <a id="level"></a> `level?` | [`LogLevel`](#loglevel) | The minimum log level to output | [sdk/utils/src/logging/logger.ts:14](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/logging/logger.ts#L14) |
|
|
1642
|
+
| <a id="prefix"></a> `prefix?` | `string` | The prefix to add to the log message | [sdk/utils/src/logging/logger.ts:16](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/logging/logger.ts#L16) |
|
|
1643
1643
|
|
|
1644
1644
|
***
|
|
1645
1645
|
|
|
1646
1646
|
#### SpinnerOptions\<R\>
|
|
1647
1647
|
|
|
1648
|
-
Defined in: [sdk/utils/src/terminal/spinner.ts:25](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1648
|
+
Defined in: [sdk/utils/src/terminal/spinner.ts:25](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/spinner.ts#L25)
|
|
1649
1649
|
|
|
1650
1650
|
Options for configuring the spinner behavior
|
|
1651
1651
|
|
|
@@ -1659,9 +1659,9 @@ Options for configuring the spinner behavior
|
|
|
1659
1659
|
|
|
1660
1660
|
| Property | Type | Description | Defined in |
|
|
1661
1661
|
| ------ | ------ | ------ | ------ |
|
|
1662
|
-
| <a id="startmessage"></a> `startMessage` | `string` | Message to display when spinner starts | [sdk/utils/src/terminal/spinner.ts:27](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1663
|
-
| <a id="stopmessage"></a> `stopMessage` | `string` | Message to display when spinner completes successfully | [sdk/utils/src/terminal/spinner.ts:31](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1664
|
-
| <a id="task"></a> `task` | (`spinner?`) => `Promise`\<`R`\> | Async task to execute while spinner is active | [sdk/utils/src/terminal/spinner.ts:29](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1662
|
+
| <a id="startmessage"></a> `startMessage` | `string` | Message to display when spinner starts | [sdk/utils/src/terminal/spinner.ts:27](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/spinner.ts#L27) |
|
|
1663
|
+
| <a id="stopmessage"></a> `stopMessage` | `string` | Message to display when spinner completes successfully | [sdk/utils/src/terminal/spinner.ts:31](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/spinner.ts#L31) |
|
|
1664
|
+
| <a id="task"></a> `task` | (`spinner?`) => `Promise`\<`R`\> | Async task to execute while spinner is active | [sdk/utils/src/terminal/spinner.ts:29](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/terminal/spinner.ts#L29) |
|
|
1665
1665
|
|
|
1666
1666
|
### Type Aliases
|
|
1667
1667
|
|
|
@@ -1669,7 +1669,7 @@ Options for configuring the spinner behavior
|
|
|
1669
1669
|
|
|
1670
1670
|
> **AccessToken** = `string`
|
|
1671
1671
|
|
|
1672
|
-
Defined in: [sdk/utils/src/validation/access-token.schema.ts:22](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1672
|
+
Defined in: [sdk/utils/src/validation/access-token.schema.ts:22](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/access-token.schema.ts#L22)
|
|
1673
1673
|
|
|
1674
1674
|
Schema for validating both application and personal access tokens.
|
|
1675
1675
|
Accepts tokens starting with either 'sm_pat_' or 'sm_aat_' prefix.
|
|
@@ -1680,7 +1680,7 @@ Accepts tokens starting with either 'sm_pat_' or 'sm_aat_' prefix.
|
|
|
1680
1680
|
|
|
1681
1681
|
> **ApplicationAccessToken** = `string`
|
|
1682
1682
|
|
|
1683
|
-
Defined in: [sdk/utils/src/validation/access-token.schema.ts:8](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1683
|
+
Defined in: [sdk/utils/src/validation/access-token.schema.ts:8](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/access-token.schema.ts#L8)
|
|
1684
1684
|
|
|
1685
1685
|
Schema for validating application access tokens.
|
|
1686
1686
|
Application access tokens start with 'sm_aat_' prefix.
|
|
@@ -1691,7 +1691,7 @@ Application access tokens start with 'sm_aat_' prefix.
|
|
|
1691
1691
|
|
|
1692
1692
|
> **DotEnv** = `object`
|
|
1693
1693
|
|
|
1694
|
-
Defined in: [sdk/utils/src/validation/dot-env.schema.ts:101](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1694
|
+
Defined in: [sdk/utils/src/validation/dot-env.schema.ts:101](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L101)
|
|
1695
1695
|
|
|
1696
1696
|
Type definition for the environment variables schema.
|
|
1697
1697
|
|
|
@@ -1699,45 +1699,45 @@ Type definition for the environment variables schema.
|
|
|
1699
1699
|
|
|
1700
1700
|
| Name | Type | Description | Defined in |
|
|
1701
1701
|
| ------ | ------ | ------ | ------ |
|
|
1702
|
-
| <a id="settlemint_access_token"></a> `SETTLEMINT_ACCESS_TOKEN?` | `string` | Application access token for authenticating with SettleMint services | [sdk/utils/src/validation/dot-env.schema.ts:16](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1703
|
-
| <a id="settlemint_accessible_private_key"></a> `SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?` | `string` | Unique name of the accessible private key | [sdk/utils/src/validation/dot-env.schema.ts:65](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1704
|
-
| <a id="settlemint_application"></a> `SETTLEMINT_APPLICATION?` | `string` | Unique name of the application | [sdk/utils/src/validation/dot-env.schema.ts:22](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1705
|
-
| <a id="settlemint_blockchain_network"></a> `SETTLEMINT_BLOCKCHAIN_NETWORK?` | `string` | Unique name of the blockchain network | [sdk/utils/src/validation/dot-env.schema.ts:24](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1706
|
-
| <a id="settlemint_blockchain_network_chain_id"></a> `SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID?` | `string` | Chain ID of the blockchain network | [sdk/utils/src/validation/dot-env.schema.ts:26](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1707
|
-
| <a id="settlemint_blockchain_node"></a> `SETTLEMINT_BLOCKCHAIN_NODE?` | `string` | Unique name of the blockchain node (should have a private key for signing transactions) | [sdk/utils/src/validation/dot-env.schema.ts:28](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1708
|
-
| <a id="settlemint_blockchain_node_json_rpc_endpoint"></a> `SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT?` | `string` | JSON RPC endpoint for the blockchain node | [sdk/utils/src/validation/dot-env.schema.ts:30](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1709
|
-
| <a id="settlemint_blockchain_node_or_load_balancer"></a> `SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER?` | `string` | Unique name of the blockchain node or load balancer | [sdk/utils/src/validation/dot-env.schema.ts:32](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1710
|
-
| <a id="settlemint_blockchain_node_or_load_balancer_json_rpc_endpoint"></a> `SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT?` | `string` | JSON RPC endpoint for the blockchain node or load balancer | [sdk/utils/src/validation/dot-env.schema.ts:34](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1711
|
-
| <a id="settlemint_blockscout"></a> `SETTLEMINT_BLOCKSCOUT?` | `string` | Unique name of the Blockscout instance | [sdk/utils/src/validation/dot-env.schema.ts:87](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1712
|
-
| <a id="settlemint_blockscout_graphql_endpoint"></a> `SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT?` | `string` | GraphQL endpoint URL for Blockscout | [sdk/utils/src/validation/dot-env.schema.ts:89](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1713
|
-
| <a id="settlemint_blockscout_ui_endpoint"></a> `SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT?` | `string` | UI endpoint URL for Blockscout | [sdk/utils/src/validation/dot-env.schema.ts:91](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1714
|
-
| <a id="settlemint_custom_deployment"></a> `SETTLEMINT_CUSTOM_DEPLOYMENT?` | `string` | Unique name of the custom deployment | [sdk/utils/src/validation/dot-env.schema.ts:83](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1715
|
-
| <a id="settlemint_custom_deployment_endpoint"></a> `SETTLEMINT_CUSTOM_DEPLOYMENT_ENDPOINT?` | `string` | Endpoint URL for the custom deployment | [sdk/utils/src/validation/dot-env.schema.ts:85](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1716
|
-
| <a id="settlemint_hasura"></a> `SETTLEMINT_HASURA?` | `string` | Unique name of the Hasura instance | [sdk/utils/src/validation/dot-env.schema.ts:36](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1717
|
-
| <a id="settlemint_hasura_admin_secret"></a> `SETTLEMINT_HASURA_ADMIN_SECRET?` | `string` | Admin secret for authenticating with Hasura | [sdk/utils/src/validation/dot-env.schema.ts:40](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1718
|
-
| <a id="settlemint_hasura_database_url"></a> `SETTLEMINT_HASURA_DATABASE_URL?` | `string` | Database connection URL for Hasura | [sdk/utils/src/validation/dot-env.schema.ts:42](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1719
|
-
| <a id="settlemint_hasura_endpoint"></a> `SETTLEMINT_HASURA_ENDPOINT?` | `string` | Endpoint URL for the Hasura GraphQL API | [sdk/utils/src/validation/dot-env.schema.ts:38](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1720
|
-
| <a id="settlemint_hd_private_key"></a> `SETTLEMINT_HD_PRIVATE_KEY?` | `string` | Unique name of the HD private key | [sdk/utils/src/validation/dot-env.schema.ts:61](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1721
|
-
| <a id="settlemint_hd_private_key_forwarder_address"></a> `SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?` | `string` | Address of the HD private key forwarder | [sdk/utils/src/validation/dot-env.schema.ts:63](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1722
|
-
| <a id="settlemint_instance"></a> `SETTLEMINT_INSTANCE` | `string` | Base URL of the SettleMint platform instance | [sdk/utils/src/validation/dot-env.schema.ts:14](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1723
|
-
| <a id="settlemint_ipfs"></a> `SETTLEMINT_IPFS?` | `string` | Unique name of the IPFS instance | [sdk/utils/src/validation/dot-env.schema.ts:75](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1724
|
-
| <a id="settlemint_ipfs_api_endpoint"></a> `SETTLEMINT_IPFS_API_ENDPOINT?` | `string` | API endpoint URL for IPFS | [sdk/utils/src/validation/dot-env.schema.ts:77](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1725
|
-
| <a id="settlemint_ipfs_gateway_endpoint"></a> `SETTLEMINT_IPFS_GATEWAY_ENDPOINT?` | `string` | Gateway endpoint URL for IPFS | [sdk/utils/src/validation/dot-env.schema.ts:81](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1726
|
-
| <a id="settlemint_ipfs_pinning_endpoint"></a> `SETTLEMINT_IPFS_PINNING_ENDPOINT?` | `string` | Pinning service endpoint URL for IPFS | [sdk/utils/src/validation/dot-env.schema.ts:79](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1727
|
-
| <a id="settlemint_log_level"></a> `SETTLEMINT_LOG_LEVEL` | `"error"` \| `"info"` \| `"warn"` \| `"debug"` \| `"none"` | The log level to use | [sdk/utils/src/validation/dot-env.schema.ts:95](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1728
|
-
| <a id="settlemint_minio"></a> `SETTLEMINT_MINIO?` | `string` | Unique name of the MinIO instance | [sdk/utils/src/validation/dot-env.schema.ts:67](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1729
|
-
| <a id="settlemint_minio_access_key"></a> `SETTLEMINT_MINIO_ACCESS_KEY?` | `string` | Access key for MinIO authentication | [sdk/utils/src/validation/dot-env.schema.ts:71](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1730
|
-
| <a id="settlemint_minio_endpoint"></a> `SETTLEMINT_MINIO_ENDPOINT?` | `string` | Endpoint URL for MinIO | [sdk/utils/src/validation/dot-env.schema.ts:69](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1731
|
-
| <a id="settlemint_minio_secret_key"></a> `SETTLEMINT_MINIO_SECRET_KEY?` | `string` | Secret key for MinIO authentication | [sdk/utils/src/validation/dot-env.schema.ts:73](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1732
|
-
| <a id="settlemint_new_project_name"></a> `SETTLEMINT_NEW_PROJECT_NAME?` | `string` | Name of the new project being created | [sdk/utils/src/validation/dot-env.schema.ts:93](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1733
|
-
| <a id="settlemint_portal"></a> `SETTLEMINT_PORTAL?` | `string` | Unique name of the Smart Contract Portal instance | [sdk/utils/src/validation/dot-env.schema.ts:53](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1734
|
-
| <a id="settlemint_portal_graphql_endpoint"></a> `SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?` | `string` | GraphQL endpoint URL for the Portal | [sdk/utils/src/validation/dot-env.schema.ts:55](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1735
|
-
| <a id="settlemint_portal_rest_endpoint"></a> `SETTLEMINT_PORTAL_REST_ENDPOINT?` | `string` | REST endpoint URL for the Portal | [sdk/utils/src/validation/dot-env.schema.ts:57](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1736
|
-
| <a id="settlemint_portal_ws_endpoint"></a> `SETTLEMINT_PORTAL_WS_ENDPOINT?` | `string` | WebSocket endpoint URL for the Portal | [sdk/utils/src/validation/dot-env.schema.ts:59](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1737
|
-
| <a id="settlemint_thegraph"></a> `SETTLEMINT_THEGRAPH?` | `string` | Unique name of The Graph instance | [sdk/utils/src/validation/dot-env.schema.ts:44](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1738
|
-
| <a id="settlemint_thegraph_default_subgraph"></a> `SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH?` | `string` | Default The Graph subgraph to use | [sdk/utils/src/validation/dot-env.schema.ts:51](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1739
|
-
| <a id="settlemint_thegraph_subgraphs_endpoints"></a> `SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?` | `string`[] | Array of endpoint URLs for The Graph subgraphs | [sdk/utils/src/validation/dot-env.schema.ts:46](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1740
|
-
| <a id="settlemint_workspace"></a> `SETTLEMINT_WORKSPACE?` | `string` | Unique name of the workspace | [sdk/utils/src/validation/dot-env.schema.ts:20](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1702
|
+
| <a id="settlemint_access_token"></a> `SETTLEMINT_ACCESS_TOKEN?` | `string` | Application access token for authenticating with SettleMint services | [sdk/utils/src/validation/dot-env.schema.ts:16](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L16) |
|
|
1703
|
+
| <a id="settlemint_accessible_private_key"></a> `SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?` | `string` | Unique name of the accessible private key | [sdk/utils/src/validation/dot-env.schema.ts:65](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L65) |
|
|
1704
|
+
| <a id="settlemint_application"></a> `SETTLEMINT_APPLICATION?` | `string` | Unique name of the application | [sdk/utils/src/validation/dot-env.schema.ts:22](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L22) |
|
|
1705
|
+
| <a id="settlemint_blockchain_network"></a> `SETTLEMINT_BLOCKCHAIN_NETWORK?` | `string` | Unique name of the blockchain network | [sdk/utils/src/validation/dot-env.schema.ts:24](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L24) |
|
|
1706
|
+
| <a id="settlemint_blockchain_network_chain_id"></a> `SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID?` | `string` | Chain ID of the blockchain network | [sdk/utils/src/validation/dot-env.schema.ts:26](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L26) |
|
|
1707
|
+
| <a id="settlemint_blockchain_node"></a> `SETTLEMINT_BLOCKCHAIN_NODE?` | `string` | Unique name of the blockchain node (should have a private key for signing transactions) | [sdk/utils/src/validation/dot-env.schema.ts:28](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L28) |
|
|
1708
|
+
| <a id="settlemint_blockchain_node_json_rpc_endpoint"></a> `SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT?` | `string` | JSON RPC endpoint for the blockchain node | [sdk/utils/src/validation/dot-env.schema.ts:30](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L30) |
|
|
1709
|
+
| <a id="settlemint_blockchain_node_or_load_balancer"></a> `SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER?` | `string` | Unique name of the blockchain node or load balancer | [sdk/utils/src/validation/dot-env.schema.ts:32](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L32) |
|
|
1710
|
+
| <a id="settlemint_blockchain_node_or_load_balancer_json_rpc_endpoint"></a> `SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT?` | `string` | JSON RPC endpoint for the blockchain node or load balancer | [sdk/utils/src/validation/dot-env.schema.ts:34](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L34) |
|
|
1711
|
+
| <a id="settlemint_blockscout"></a> `SETTLEMINT_BLOCKSCOUT?` | `string` | Unique name of the Blockscout instance | [sdk/utils/src/validation/dot-env.schema.ts:87](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L87) |
|
|
1712
|
+
| <a id="settlemint_blockscout_graphql_endpoint"></a> `SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT?` | `string` | GraphQL endpoint URL for Blockscout | [sdk/utils/src/validation/dot-env.schema.ts:89](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L89) |
|
|
1713
|
+
| <a id="settlemint_blockscout_ui_endpoint"></a> `SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT?` | `string` | UI endpoint URL for Blockscout | [sdk/utils/src/validation/dot-env.schema.ts:91](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L91) |
|
|
1714
|
+
| <a id="settlemint_custom_deployment"></a> `SETTLEMINT_CUSTOM_DEPLOYMENT?` | `string` | Unique name of the custom deployment | [sdk/utils/src/validation/dot-env.schema.ts:83](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L83) |
|
|
1715
|
+
| <a id="settlemint_custom_deployment_endpoint"></a> `SETTLEMINT_CUSTOM_DEPLOYMENT_ENDPOINT?` | `string` | Endpoint URL for the custom deployment | [sdk/utils/src/validation/dot-env.schema.ts:85](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L85) |
|
|
1716
|
+
| <a id="settlemint_hasura"></a> `SETTLEMINT_HASURA?` | `string` | Unique name of the Hasura instance | [sdk/utils/src/validation/dot-env.schema.ts:36](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L36) |
|
|
1717
|
+
| <a id="settlemint_hasura_admin_secret"></a> `SETTLEMINT_HASURA_ADMIN_SECRET?` | `string` | Admin secret for authenticating with Hasura | [sdk/utils/src/validation/dot-env.schema.ts:40](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L40) |
|
|
1718
|
+
| <a id="settlemint_hasura_database_url"></a> `SETTLEMINT_HASURA_DATABASE_URL?` | `string` | Database connection URL for Hasura | [sdk/utils/src/validation/dot-env.schema.ts:42](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L42) |
|
|
1719
|
+
| <a id="settlemint_hasura_endpoint"></a> `SETTLEMINT_HASURA_ENDPOINT?` | `string` | Endpoint URL for the Hasura GraphQL API | [sdk/utils/src/validation/dot-env.schema.ts:38](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L38) |
|
|
1720
|
+
| <a id="settlemint_hd_private_key"></a> `SETTLEMINT_HD_PRIVATE_KEY?` | `string` | Unique name of the HD private key | [sdk/utils/src/validation/dot-env.schema.ts:61](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L61) |
|
|
1721
|
+
| <a id="settlemint_hd_private_key_forwarder_address"></a> `SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?` | `string` | Address of the HD private key forwarder | [sdk/utils/src/validation/dot-env.schema.ts:63](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L63) |
|
|
1722
|
+
| <a id="settlemint_instance"></a> `SETTLEMINT_INSTANCE` | `string` | Base URL of the SettleMint platform instance | [sdk/utils/src/validation/dot-env.schema.ts:14](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L14) |
|
|
1723
|
+
| <a id="settlemint_ipfs"></a> `SETTLEMINT_IPFS?` | `string` | Unique name of the IPFS instance | [sdk/utils/src/validation/dot-env.schema.ts:75](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L75) |
|
|
1724
|
+
| <a id="settlemint_ipfs_api_endpoint"></a> `SETTLEMINT_IPFS_API_ENDPOINT?` | `string` | API endpoint URL for IPFS | [sdk/utils/src/validation/dot-env.schema.ts:77](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L77) |
|
|
1725
|
+
| <a id="settlemint_ipfs_gateway_endpoint"></a> `SETTLEMINT_IPFS_GATEWAY_ENDPOINT?` | `string` | Gateway endpoint URL for IPFS | [sdk/utils/src/validation/dot-env.schema.ts:81](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L81) |
|
|
1726
|
+
| <a id="settlemint_ipfs_pinning_endpoint"></a> `SETTLEMINT_IPFS_PINNING_ENDPOINT?` | `string` | Pinning service endpoint URL for IPFS | [sdk/utils/src/validation/dot-env.schema.ts:79](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L79) |
|
|
1727
|
+
| <a id="settlemint_log_level"></a> `SETTLEMINT_LOG_LEVEL` | `"error"` \| `"info"` \| `"warn"` \| `"debug"` \| `"none"` | The log level to use | [sdk/utils/src/validation/dot-env.schema.ts:95](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L95) |
|
|
1728
|
+
| <a id="settlemint_minio"></a> `SETTLEMINT_MINIO?` | `string` | Unique name of the MinIO instance | [sdk/utils/src/validation/dot-env.schema.ts:67](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L67) |
|
|
1729
|
+
| <a id="settlemint_minio_access_key"></a> `SETTLEMINT_MINIO_ACCESS_KEY?` | `string` | Access key for MinIO authentication | [sdk/utils/src/validation/dot-env.schema.ts:71](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L71) |
|
|
1730
|
+
| <a id="settlemint_minio_endpoint"></a> `SETTLEMINT_MINIO_ENDPOINT?` | `string` | Endpoint URL for MinIO | [sdk/utils/src/validation/dot-env.schema.ts:69](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L69) |
|
|
1731
|
+
| <a id="settlemint_minio_secret_key"></a> `SETTLEMINT_MINIO_SECRET_KEY?` | `string` | Secret key for MinIO authentication | [sdk/utils/src/validation/dot-env.schema.ts:73](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L73) |
|
|
1732
|
+
| <a id="settlemint_new_project_name"></a> `SETTLEMINT_NEW_PROJECT_NAME?` | `string` | Name of the new project being created | [sdk/utils/src/validation/dot-env.schema.ts:93](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L93) |
|
|
1733
|
+
| <a id="settlemint_portal"></a> `SETTLEMINT_PORTAL?` | `string` | Unique name of the Smart Contract Portal instance | [sdk/utils/src/validation/dot-env.schema.ts:53](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L53) |
|
|
1734
|
+
| <a id="settlemint_portal_graphql_endpoint"></a> `SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?` | `string` | GraphQL endpoint URL for the Portal | [sdk/utils/src/validation/dot-env.schema.ts:55](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L55) |
|
|
1735
|
+
| <a id="settlemint_portal_rest_endpoint"></a> `SETTLEMINT_PORTAL_REST_ENDPOINT?` | `string` | REST endpoint URL for the Portal | [sdk/utils/src/validation/dot-env.schema.ts:57](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L57) |
|
|
1736
|
+
| <a id="settlemint_portal_ws_endpoint"></a> `SETTLEMINT_PORTAL_WS_ENDPOINT?` | `string` | WebSocket endpoint URL for the Portal | [sdk/utils/src/validation/dot-env.schema.ts:59](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L59) |
|
|
1737
|
+
| <a id="settlemint_thegraph"></a> `SETTLEMINT_THEGRAPH?` | `string` | Unique name of The Graph instance | [sdk/utils/src/validation/dot-env.schema.ts:44](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L44) |
|
|
1738
|
+
| <a id="settlemint_thegraph_default_subgraph"></a> `SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH?` | `string` | Default The Graph subgraph to use | [sdk/utils/src/validation/dot-env.schema.ts:51](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L51) |
|
|
1739
|
+
| <a id="settlemint_thegraph_subgraphs_endpoints"></a> `SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?` | `string`[] | Array of endpoint URLs for The Graph subgraphs | [sdk/utils/src/validation/dot-env.schema.ts:46](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L46) |
|
|
1740
|
+
| <a id="settlemint_workspace"></a> `SETTLEMINT_WORKSPACE?` | `string` | Unique name of the workspace | [sdk/utils/src/validation/dot-env.schema.ts:20](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L20) |
|
|
1741
1741
|
|
|
1742
1742
|
***
|
|
1743
1743
|
|
|
@@ -1745,7 +1745,7 @@ Type definition for the environment variables schema.
|
|
|
1745
1745
|
|
|
1746
1746
|
> **DotEnvPartial** = `object`
|
|
1747
1747
|
|
|
1748
|
-
Defined in: [sdk/utils/src/validation/dot-env.schema.ts:112](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1748
|
+
Defined in: [sdk/utils/src/validation/dot-env.schema.ts:112](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L112)
|
|
1749
1749
|
|
|
1750
1750
|
Type definition for the partial environment variables schema.
|
|
1751
1751
|
|
|
@@ -1753,45 +1753,45 @@ Type definition for the partial environment variables schema.
|
|
|
1753
1753
|
|
|
1754
1754
|
| Name | Type | Description | Defined in |
|
|
1755
1755
|
| ------ | ------ | ------ | ------ |
|
|
1756
|
-
| <a id="settlemint_access_token-1"></a> `SETTLEMINT_ACCESS_TOKEN?` | `string` | Application access token for authenticating with SettleMint services | [sdk/utils/src/validation/dot-env.schema.ts:16](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1757
|
-
| <a id="settlemint_accessible_private_key-1"></a> `SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?` | `string` | Unique name of the accessible private key | [sdk/utils/src/validation/dot-env.schema.ts:65](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1758
|
-
| <a id="settlemint_application-1"></a> `SETTLEMINT_APPLICATION?` | `string` | Unique name of the application | [sdk/utils/src/validation/dot-env.schema.ts:22](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1759
|
-
| <a id="settlemint_blockchain_network-1"></a> `SETTLEMINT_BLOCKCHAIN_NETWORK?` | `string` | Unique name of the blockchain network | [sdk/utils/src/validation/dot-env.schema.ts:24](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1760
|
-
| <a id="settlemint_blockchain_network_chain_id-1"></a> `SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID?` | `string` | Chain ID of the blockchain network | [sdk/utils/src/validation/dot-env.schema.ts:26](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1761
|
-
| <a id="settlemint_blockchain_node-1"></a> `SETTLEMINT_BLOCKCHAIN_NODE?` | `string` | Unique name of the blockchain node (should have a private key for signing transactions) | [sdk/utils/src/validation/dot-env.schema.ts:28](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1762
|
-
| <a id="settlemint_blockchain_node_json_rpc_endpoint-1"></a> `SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT?` | `string` | JSON RPC endpoint for the blockchain node | [sdk/utils/src/validation/dot-env.schema.ts:30](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1763
|
-
| <a id="settlemint_blockchain_node_or_load_balancer-1"></a> `SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER?` | `string` | Unique name of the blockchain node or load balancer | [sdk/utils/src/validation/dot-env.schema.ts:32](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1764
|
-
| <a id="settlemint_blockchain_node_or_load_balancer_json_rpc_endpoint-1"></a> `SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT?` | `string` | JSON RPC endpoint for the blockchain node or load balancer | [sdk/utils/src/validation/dot-env.schema.ts:34](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1765
|
-
| <a id="settlemint_blockscout-1"></a> `SETTLEMINT_BLOCKSCOUT?` | `string` | Unique name of the Blockscout instance | [sdk/utils/src/validation/dot-env.schema.ts:87](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1766
|
-
| <a id="settlemint_blockscout_graphql_endpoint-1"></a> `SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT?` | `string` | GraphQL endpoint URL for Blockscout | [sdk/utils/src/validation/dot-env.schema.ts:89](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1767
|
-
| <a id="settlemint_blockscout_ui_endpoint-1"></a> `SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT?` | `string` | UI endpoint URL for Blockscout | [sdk/utils/src/validation/dot-env.schema.ts:91](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1768
|
-
| <a id="settlemint_custom_deployment-1"></a> `SETTLEMINT_CUSTOM_DEPLOYMENT?` | `string` | Unique name of the custom deployment | [sdk/utils/src/validation/dot-env.schema.ts:83](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1769
|
-
| <a id="settlemint_custom_deployment_endpoint-1"></a> `SETTLEMINT_CUSTOM_DEPLOYMENT_ENDPOINT?` | `string` | Endpoint URL for the custom deployment | [sdk/utils/src/validation/dot-env.schema.ts:85](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1770
|
-
| <a id="settlemint_hasura-1"></a> `SETTLEMINT_HASURA?` | `string` | Unique name of the Hasura instance | [sdk/utils/src/validation/dot-env.schema.ts:36](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1771
|
-
| <a id="settlemint_hasura_admin_secret-1"></a> `SETTLEMINT_HASURA_ADMIN_SECRET?` | `string` | Admin secret for authenticating with Hasura | [sdk/utils/src/validation/dot-env.schema.ts:40](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1772
|
-
| <a id="settlemint_hasura_database_url-1"></a> `SETTLEMINT_HASURA_DATABASE_URL?` | `string` | Database connection URL for Hasura | [sdk/utils/src/validation/dot-env.schema.ts:42](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1773
|
-
| <a id="settlemint_hasura_endpoint-1"></a> `SETTLEMINT_HASURA_ENDPOINT?` | `string` | Endpoint URL for the Hasura GraphQL API | [sdk/utils/src/validation/dot-env.schema.ts:38](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1774
|
-
| <a id="settlemint_hd_private_key-1"></a> `SETTLEMINT_HD_PRIVATE_KEY?` | `string` | Unique name of the HD private key | [sdk/utils/src/validation/dot-env.schema.ts:61](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1775
|
-
| <a id="settlemint_hd_private_key_forwarder_address-1"></a> `SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?` | `string` | Address of the HD private key forwarder | [sdk/utils/src/validation/dot-env.schema.ts:63](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1776
|
-
| <a id="settlemint_instance-1"></a> `SETTLEMINT_INSTANCE?` | `string` | Base URL of the SettleMint platform instance | [sdk/utils/src/validation/dot-env.schema.ts:14](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1777
|
-
| <a id="settlemint_ipfs-1"></a> `SETTLEMINT_IPFS?` | `string` | Unique name of the IPFS instance | [sdk/utils/src/validation/dot-env.schema.ts:75](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1778
|
-
| <a id="settlemint_ipfs_api_endpoint-1"></a> `SETTLEMINT_IPFS_API_ENDPOINT?` | `string` | API endpoint URL for IPFS | [sdk/utils/src/validation/dot-env.schema.ts:77](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1779
|
-
| <a id="settlemint_ipfs_gateway_endpoint-1"></a> `SETTLEMINT_IPFS_GATEWAY_ENDPOINT?` | `string` | Gateway endpoint URL for IPFS | [sdk/utils/src/validation/dot-env.schema.ts:81](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1780
|
-
| <a id="settlemint_ipfs_pinning_endpoint-1"></a> `SETTLEMINT_IPFS_PINNING_ENDPOINT?` | `string` | Pinning service endpoint URL for IPFS | [sdk/utils/src/validation/dot-env.schema.ts:79](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1781
|
-
| <a id="settlemint_log_level-1"></a> `SETTLEMINT_LOG_LEVEL?` | `"error"` \| `"info"` \| `"warn"` \| `"debug"` \| `"none"` | The log level to use | [sdk/utils/src/validation/dot-env.schema.ts:95](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1782
|
-
| <a id="settlemint_minio-1"></a> `SETTLEMINT_MINIO?` | `string` | Unique name of the MinIO instance | [sdk/utils/src/validation/dot-env.schema.ts:67](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1783
|
-
| <a id="settlemint_minio_access_key-1"></a> `SETTLEMINT_MINIO_ACCESS_KEY?` | `string` | Access key for MinIO authentication | [sdk/utils/src/validation/dot-env.schema.ts:71](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1784
|
-
| <a id="settlemint_minio_endpoint-1"></a> `SETTLEMINT_MINIO_ENDPOINT?` | `string` | Endpoint URL for MinIO | [sdk/utils/src/validation/dot-env.schema.ts:69](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1785
|
-
| <a id="settlemint_minio_secret_key-1"></a> `SETTLEMINT_MINIO_SECRET_KEY?` | `string` | Secret key for MinIO authentication | [sdk/utils/src/validation/dot-env.schema.ts:73](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1786
|
-
| <a id="settlemint_new_project_name-1"></a> `SETTLEMINT_NEW_PROJECT_NAME?` | `string` | Name of the new project being created | [sdk/utils/src/validation/dot-env.schema.ts:93](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1787
|
-
| <a id="settlemint_portal-1"></a> `SETTLEMINT_PORTAL?` | `string` | Unique name of the Smart Contract Portal instance | [sdk/utils/src/validation/dot-env.schema.ts:53](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1788
|
-
| <a id="settlemint_portal_graphql_endpoint-1"></a> `SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?` | `string` | GraphQL endpoint URL for the Portal | [sdk/utils/src/validation/dot-env.schema.ts:55](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1789
|
-
| <a id="settlemint_portal_rest_endpoint-1"></a> `SETTLEMINT_PORTAL_REST_ENDPOINT?` | `string` | REST endpoint URL for the Portal | [sdk/utils/src/validation/dot-env.schema.ts:57](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1790
|
-
| <a id="settlemint_portal_ws_endpoint-1"></a> `SETTLEMINT_PORTAL_WS_ENDPOINT?` | `string` | WebSocket endpoint URL for the Portal | [sdk/utils/src/validation/dot-env.schema.ts:59](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1791
|
-
| <a id="settlemint_thegraph-1"></a> `SETTLEMINT_THEGRAPH?` | `string` | Unique name of The Graph instance | [sdk/utils/src/validation/dot-env.schema.ts:44](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1792
|
-
| <a id="settlemint_thegraph_default_subgraph-1"></a> `SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH?` | `string` | Default The Graph subgraph to use | [sdk/utils/src/validation/dot-env.schema.ts:51](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1793
|
-
| <a id="settlemint_thegraph_subgraphs_endpoints-1"></a> `SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?` | `string`[] | Array of endpoint URLs for The Graph subgraphs | [sdk/utils/src/validation/dot-env.schema.ts:46](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1794
|
-
| <a id="settlemint_workspace-1"></a> `SETTLEMINT_WORKSPACE?` | `string` | Unique name of the workspace | [sdk/utils/src/validation/dot-env.schema.ts:20](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1756
|
+
| <a id="settlemint_access_token-1"></a> `SETTLEMINT_ACCESS_TOKEN?` | `string` | Application access token for authenticating with SettleMint services | [sdk/utils/src/validation/dot-env.schema.ts:16](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L16) |
|
|
1757
|
+
| <a id="settlemint_accessible_private_key-1"></a> `SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?` | `string` | Unique name of the accessible private key | [sdk/utils/src/validation/dot-env.schema.ts:65](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L65) |
|
|
1758
|
+
| <a id="settlemint_application-1"></a> `SETTLEMINT_APPLICATION?` | `string` | Unique name of the application | [sdk/utils/src/validation/dot-env.schema.ts:22](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L22) |
|
|
1759
|
+
| <a id="settlemint_blockchain_network-1"></a> `SETTLEMINT_BLOCKCHAIN_NETWORK?` | `string` | Unique name of the blockchain network | [sdk/utils/src/validation/dot-env.schema.ts:24](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L24) |
|
|
1760
|
+
| <a id="settlemint_blockchain_network_chain_id-1"></a> `SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID?` | `string` | Chain ID of the blockchain network | [sdk/utils/src/validation/dot-env.schema.ts:26](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L26) |
|
|
1761
|
+
| <a id="settlemint_blockchain_node-1"></a> `SETTLEMINT_BLOCKCHAIN_NODE?` | `string` | Unique name of the blockchain node (should have a private key for signing transactions) | [sdk/utils/src/validation/dot-env.schema.ts:28](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L28) |
|
|
1762
|
+
| <a id="settlemint_blockchain_node_json_rpc_endpoint-1"></a> `SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT?` | `string` | JSON RPC endpoint for the blockchain node | [sdk/utils/src/validation/dot-env.schema.ts:30](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L30) |
|
|
1763
|
+
| <a id="settlemint_blockchain_node_or_load_balancer-1"></a> `SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER?` | `string` | Unique name of the blockchain node or load balancer | [sdk/utils/src/validation/dot-env.schema.ts:32](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L32) |
|
|
1764
|
+
| <a id="settlemint_blockchain_node_or_load_balancer_json_rpc_endpoint-1"></a> `SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT?` | `string` | JSON RPC endpoint for the blockchain node or load balancer | [sdk/utils/src/validation/dot-env.schema.ts:34](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L34) |
|
|
1765
|
+
| <a id="settlemint_blockscout-1"></a> `SETTLEMINT_BLOCKSCOUT?` | `string` | Unique name of the Blockscout instance | [sdk/utils/src/validation/dot-env.schema.ts:87](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L87) |
|
|
1766
|
+
| <a id="settlemint_blockscout_graphql_endpoint-1"></a> `SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT?` | `string` | GraphQL endpoint URL for Blockscout | [sdk/utils/src/validation/dot-env.schema.ts:89](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L89) |
|
|
1767
|
+
| <a id="settlemint_blockscout_ui_endpoint-1"></a> `SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT?` | `string` | UI endpoint URL for Blockscout | [sdk/utils/src/validation/dot-env.schema.ts:91](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L91) |
|
|
1768
|
+
| <a id="settlemint_custom_deployment-1"></a> `SETTLEMINT_CUSTOM_DEPLOYMENT?` | `string` | Unique name of the custom deployment | [sdk/utils/src/validation/dot-env.schema.ts:83](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L83) |
|
|
1769
|
+
| <a id="settlemint_custom_deployment_endpoint-1"></a> `SETTLEMINT_CUSTOM_DEPLOYMENT_ENDPOINT?` | `string` | Endpoint URL for the custom deployment | [sdk/utils/src/validation/dot-env.schema.ts:85](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L85) |
|
|
1770
|
+
| <a id="settlemint_hasura-1"></a> `SETTLEMINT_HASURA?` | `string` | Unique name of the Hasura instance | [sdk/utils/src/validation/dot-env.schema.ts:36](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L36) |
|
|
1771
|
+
| <a id="settlemint_hasura_admin_secret-1"></a> `SETTLEMINT_HASURA_ADMIN_SECRET?` | `string` | Admin secret for authenticating with Hasura | [sdk/utils/src/validation/dot-env.schema.ts:40](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L40) |
|
|
1772
|
+
| <a id="settlemint_hasura_database_url-1"></a> `SETTLEMINT_HASURA_DATABASE_URL?` | `string` | Database connection URL for Hasura | [sdk/utils/src/validation/dot-env.schema.ts:42](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L42) |
|
|
1773
|
+
| <a id="settlemint_hasura_endpoint-1"></a> `SETTLEMINT_HASURA_ENDPOINT?` | `string` | Endpoint URL for the Hasura GraphQL API | [sdk/utils/src/validation/dot-env.schema.ts:38](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L38) |
|
|
1774
|
+
| <a id="settlemint_hd_private_key-1"></a> `SETTLEMINT_HD_PRIVATE_KEY?` | `string` | Unique name of the HD private key | [sdk/utils/src/validation/dot-env.schema.ts:61](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L61) |
|
|
1775
|
+
| <a id="settlemint_hd_private_key_forwarder_address-1"></a> `SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?` | `string` | Address of the HD private key forwarder | [sdk/utils/src/validation/dot-env.schema.ts:63](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L63) |
|
|
1776
|
+
| <a id="settlemint_instance-1"></a> `SETTLEMINT_INSTANCE?` | `string` | Base URL of the SettleMint platform instance | [sdk/utils/src/validation/dot-env.schema.ts:14](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L14) |
|
|
1777
|
+
| <a id="settlemint_ipfs-1"></a> `SETTLEMINT_IPFS?` | `string` | Unique name of the IPFS instance | [sdk/utils/src/validation/dot-env.schema.ts:75](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L75) |
|
|
1778
|
+
| <a id="settlemint_ipfs_api_endpoint-1"></a> `SETTLEMINT_IPFS_API_ENDPOINT?` | `string` | API endpoint URL for IPFS | [sdk/utils/src/validation/dot-env.schema.ts:77](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L77) |
|
|
1779
|
+
| <a id="settlemint_ipfs_gateway_endpoint-1"></a> `SETTLEMINT_IPFS_GATEWAY_ENDPOINT?` | `string` | Gateway endpoint URL for IPFS | [sdk/utils/src/validation/dot-env.schema.ts:81](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L81) |
|
|
1780
|
+
| <a id="settlemint_ipfs_pinning_endpoint-1"></a> `SETTLEMINT_IPFS_PINNING_ENDPOINT?` | `string` | Pinning service endpoint URL for IPFS | [sdk/utils/src/validation/dot-env.schema.ts:79](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L79) |
|
|
1781
|
+
| <a id="settlemint_log_level-1"></a> `SETTLEMINT_LOG_LEVEL?` | `"error"` \| `"info"` \| `"warn"` \| `"debug"` \| `"none"` | The log level to use | [sdk/utils/src/validation/dot-env.schema.ts:95](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L95) |
|
|
1782
|
+
| <a id="settlemint_minio-1"></a> `SETTLEMINT_MINIO?` | `string` | Unique name of the MinIO instance | [sdk/utils/src/validation/dot-env.schema.ts:67](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L67) |
|
|
1783
|
+
| <a id="settlemint_minio_access_key-1"></a> `SETTLEMINT_MINIO_ACCESS_KEY?` | `string` | Access key for MinIO authentication | [sdk/utils/src/validation/dot-env.schema.ts:71](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L71) |
|
|
1784
|
+
| <a id="settlemint_minio_endpoint-1"></a> `SETTLEMINT_MINIO_ENDPOINT?` | `string` | Endpoint URL for MinIO | [sdk/utils/src/validation/dot-env.schema.ts:69](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L69) |
|
|
1785
|
+
| <a id="settlemint_minio_secret_key-1"></a> `SETTLEMINT_MINIO_SECRET_KEY?` | `string` | Secret key for MinIO authentication | [sdk/utils/src/validation/dot-env.schema.ts:73](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L73) |
|
|
1786
|
+
| <a id="settlemint_new_project_name-1"></a> `SETTLEMINT_NEW_PROJECT_NAME?` | `string` | Name of the new project being created | [sdk/utils/src/validation/dot-env.schema.ts:93](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L93) |
|
|
1787
|
+
| <a id="settlemint_portal-1"></a> `SETTLEMINT_PORTAL?` | `string` | Unique name of the Smart Contract Portal instance | [sdk/utils/src/validation/dot-env.schema.ts:53](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L53) |
|
|
1788
|
+
| <a id="settlemint_portal_graphql_endpoint-1"></a> `SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?` | `string` | GraphQL endpoint URL for the Portal | [sdk/utils/src/validation/dot-env.schema.ts:55](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L55) |
|
|
1789
|
+
| <a id="settlemint_portal_rest_endpoint-1"></a> `SETTLEMINT_PORTAL_REST_ENDPOINT?` | `string` | REST endpoint URL for the Portal | [sdk/utils/src/validation/dot-env.schema.ts:57](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L57) |
|
|
1790
|
+
| <a id="settlemint_portal_ws_endpoint-1"></a> `SETTLEMINT_PORTAL_WS_ENDPOINT?` | `string` | WebSocket endpoint URL for the Portal | [sdk/utils/src/validation/dot-env.schema.ts:59](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L59) |
|
|
1791
|
+
| <a id="settlemint_thegraph-1"></a> `SETTLEMINT_THEGRAPH?` | `string` | Unique name of The Graph instance | [sdk/utils/src/validation/dot-env.schema.ts:44](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L44) |
|
|
1792
|
+
| <a id="settlemint_thegraph_default_subgraph-1"></a> `SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH?` | `string` | Default The Graph subgraph to use | [sdk/utils/src/validation/dot-env.schema.ts:51](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L51) |
|
|
1793
|
+
| <a id="settlemint_thegraph_subgraphs_endpoints-1"></a> `SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?` | `string`[] | Array of endpoint URLs for The Graph subgraphs | [sdk/utils/src/validation/dot-env.schema.ts:46](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L46) |
|
|
1794
|
+
| <a id="settlemint_workspace-1"></a> `SETTLEMINT_WORKSPACE?` | `string` | Unique name of the workspace | [sdk/utils/src/validation/dot-env.schema.ts:20](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L20) |
|
|
1795
1795
|
|
|
1796
1796
|
***
|
|
1797
1797
|
|
|
@@ -1799,7 +1799,7 @@ Type definition for the partial environment variables schema.
|
|
|
1799
1799
|
|
|
1800
1800
|
> **Id** = `string`
|
|
1801
1801
|
|
|
1802
|
-
Defined in: [sdk/utils/src/validation/id.schema.ts:30](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1802
|
+
Defined in: [sdk/utils/src/validation/id.schema.ts:30](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/id.schema.ts#L30)
|
|
1803
1803
|
|
|
1804
1804
|
Type definition for database IDs, inferred from IdSchema.
|
|
1805
1805
|
Can be either a PostgreSQL UUID string or MongoDB ObjectID string.
|
|
@@ -1810,7 +1810,7 @@ Can be either a PostgreSQL UUID string or MongoDB ObjectID string.
|
|
|
1810
1810
|
|
|
1811
1811
|
> **LogLevel** = `"debug"` \| `"info"` \| `"warn"` \| `"error"` \| `"none"`
|
|
1812
1812
|
|
|
1813
|
-
Defined in: [sdk/utils/src/logging/logger.ts:6](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1813
|
+
Defined in: [sdk/utils/src/logging/logger.ts:6](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/logging/logger.ts#L6)
|
|
1814
1814
|
|
|
1815
1815
|
Log levels supported by the logger
|
|
1816
1816
|
|
|
@@ -1820,7 +1820,7 @@ Log levels supported by the logger
|
|
|
1820
1820
|
|
|
1821
1821
|
> **PersonalAccessToken** = `string`
|
|
1822
1822
|
|
|
1823
|
-
Defined in: [sdk/utils/src/validation/access-token.schema.ts:15](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1823
|
+
Defined in: [sdk/utils/src/validation/access-token.schema.ts:15](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/access-token.schema.ts#L15)
|
|
1824
1824
|
|
|
1825
1825
|
Schema for validating personal access tokens.
|
|
1826
1826
|
Personal access tokens start with 'sm_pat_' prefix.
|
|
@@ -1831,7 +1831,7 @@ Personal access tokens start with 'sm_pat_' prefix.
|
|
|
1831
1831
|
|
|
1832
1832
|
> **Url** = `string`
|
|
1833
1833
|
|
|
1834
|
-
Defined in: [sdk/utils/src/validation/url.schema.ts:18](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1834
|
+
Defined in: [sdk/utils/src/validation/url.schema.ts:18](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/url.schema.ts#L18)
|
|
1835
1835
|
|
|
1836
1836
|
Schema for validating URLs.
|
|
1837
1837
|
|
|
@@ -1855,7 +1855,7 @@ const isInvalidUrl = UrlSchema.safeParse("not-a-url").success;
|
|
|
1855
1855
|
|
|
1856
1856
|
> **UrlOrPath** = `string`
|
|
1857
1857
|
|
|
1858
|
-
Defined in: [sdk/utils/src/validation/url.schema.ts:55](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1858
|
+
Defined in: [sdk/utils/src/validation/url.schema.ts:55](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/url.schema.ts#L55)
|
|
1859
1859
|
|
|
1860
1860
|
Schema that accepts either a full URL or a URL path.
|
|
1861
1861
|
|
|
@@ -1879,7 +1879,7 @@ const isValidPath = UrlOrPathSchema.safeParse("/api/v1/users").success;
|
|
|
1879
1879
|
|
|
1880
1880
|
> **UrlPath** = `string`
|
|
1881
1881
|
|
|
1882
|
-
Defined in: [sdk/utils/src/validation/url.schema.ts:38](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1882
|
+
Defined in: [sdk/utils/src/validation/url.schema.ts:38](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/url.schema.ts#L38)
|
|
1883
1883
|
|
|
1884
1884
|
Schema for validating URL paths.
|
|
1885
1885
|
|
|
@@ -1903,7 +1903,7 @@ const isInvalidPath = UrlPathSchema.safeParse("not-a-path").success;
|
|
|
1903
1903
|
|
|
1904
1904
|
> `const` **AccessTokenSchema**: `ZodString`\<[`AccessToken`](#accesstoken)\>
|
|
1905
1905
|
|
|
1906
|
-
Defined in: [sdk/utils/src/validation/access-token.schema.ts:21](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1906
|
+
Defined in: [sdk/utils/src/validation/access-token.schema.ts:21](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/access-token.schema.ts#L21)
|
|
1907
1907
|
|
|
1908
1908
|
Schema for validating both application and personal access tokens.
|
|
1909
1909
|
Accepts tokens starting with either 'sm_pat_' or 'sm_aat_' prefix.
|
|
@@ -1914,7 +1914,7 @@ Accepts tokens starting with either 'sm_pat_' or 'sm_aat_' prefix.
|
|
|
1914
1914
|
|
|
1915
1915
|
> `const` **ApplicationAccessTokenSchema**: `ZodString`\<[`ApplicationAccessToken`](#applicationaccesstoken)\>
|
|
1916
1916
|
|
|
1917
|
-
Defined in: [sdk/utils/src/validation/access-token.schema.ts:7](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1917
|
+
Defined in: [sdk/utils/src/validation/access-token.schema.ts:7](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/access-token.schema.ts#L7)
|
|
1918
1918
|
|
|
1919
1919
|
Schema for validating application access tokens.
|
|
1920
1920
|
Application access tokens start with 'sm_aat_' prefix.
|
|
@@ -1925,7 +1925,7 @@ Application access tokens start with 'sm_aat_' prefix.
|
|
|
1925
1925
|
|
|
1926
1926
|
> `const` **DotEnvSchema**: `ZodObject`\<[`DotEnv`](#dotenv)\>
|
|
1927
1927
|
|
|
1928
|
-
Defined in: [sdk/utils/src/validation/dot-env.schema.ts:12](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1928
|
+
Defined in: [sdk/utils/src/validation/dot-env.schema.ts:12](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L12)
|
|
1929
1929
|
|
|
1930
1930
|
Schema for validating environment variables used by the SettleMint SDK.
|
|
1931
1931
|
Defines validation rules and types for configuration values like URLs,
|
|
@@ -1937,7 +1937,7 @@ access tokens, workspace names, and service endpoints.
|
|
|
1937
1937
|
|
|
1938
1938
|
> `const` **DotEnvSchemaPartial**: `ZodObject`\<[`DotEnvPartial`](#dotenvpartial)\>
|
|
1939
1939
|
|
|
1940
|
-
Defined in: [sdk/utils/src/validation/dot-env.schema.ts:107](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1940
|
+
Defined in: [sdk/utils/src/validation/dot-env.schema.ts:107](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/dot-env.schema.ts#L107)
|
|
1941
1941
|
|
|
1942
1942
|
Partial version of the environment variables schema where all fields are optional.
|
|
1943
1943
|
Useful for validating incomplete configurations during development or build time.
|
|
@@ -1948,7 +1948,7 @@ Useful for validating incomplete configurations during development or build time
|
|
|
1948
1948
|
|
|
1949
1949
|
> `const` **IdSchema**: `ZodUnion`\<[`Id`](#id)\>
|
|
1950
1950
|
|
|
1951
|
-
Defined in: [sdk/utils/src/validation/id.schema.ts:17](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1951
|
+
Defined in: [sdk/utils/src/validation/id.schema.ts:17](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/id.schema.ts#L17)
|
|
1952
1952
|
|
|
1953
1953
|
Schema for validating database IDs. Accepts both PostgreSQL UUIDs and MongoDB ObjectIDs.
|
|
1954
1954
|
PostgreSQL UUIDs are 32 hexadecimal characters with hyphens (e.g. 123e4567-e89b-12d3-a456-426614174000).
|
|
@@ -1972,7 +1972,7 @@ const isValidObjectId = IdSchema.safeParse("507f1f77bcf86cd799439011").success;
|
|
|
1972
1972
|
|
|
1973
1973
|
> `const` **PersonalAccessTokenSchema**: `ZodString`\<[`PersonalAccessToken`](#personalaccesstoken)\>
|
|
1974
1974
|
|
|
1975
|
-
Defined in: [sdk/utils/src/validation/access-token.schema.ts:14](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1975
|
+
Defined in: [sdk/utils/src/validation/access-token.schema.ts:14](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/access-token.schema.ts#L14)
|
|
1976
1976
|
|
|
1977
1977
|
Schema for validating personal access tokens.
|
|
1978
1978
|
Personal access tokens start with 'sm_pat_' prefix.
|
|
@@ -1983,7 +1983,7 @@ Personal access tokens start with 'sm_pat_' prefix.
|
|
|
1983
1983
|
|
|
1984
1984
|
> `const` **runsInBrowser**: `boolean` = `isBrowser`
|
|
1985
1985
|
|
|
1986
|
-
Defined in: [sdk/utils/src/runtime/ensure-server.ts:40](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1986
|
+
Defined in: [sdk/utils/src/runtime/ensure-server.ts:40](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/runtime/ensure-server.ts#L40)
|
|
1987
1987
|
|
|
1988
1988
|
Boolean indicating if code is currently running in a browser environment
|
|
1989
1989
|
|
|
@@ -1993,7 +1993,7 @@ Boolean indicating if code is currently running in a browser environment
|
|
|
1993
1993
|
|
|
1994
1994
|
> `const` **runsOnServer**: `boolean` = `!isBrowser`
|
|
1995
1995
|
|
|
1996
|
-
Defined in: [sdk/utils/src/runtime/ensure-server.ts:45](https://github.com/settlemint/sdk/blob/v2.3.
|
|
1996
|
+
Defined in: [sdk/utils/src/runtime/ensure-server.ts:45](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/runtime/ensure-server.ts#L45)
|
|
1997
1997
|
|
|
1998
1998
|
Boolean indicating if code is currently running in a server environment
|
|
1999
1999
|
|
|
@@ -2003,7 +2003,7 @@ Boolean indicating if code is currently running in a server environment
|
|
|
2003
2003
|
|
|
2004
2004
|
> `const` **UniqueNameSchema**: `ZodString`
|
|
2005
2005
|
|
|
2006
|
-
Defined in: [sdk/utils/src/validation/unique-name.schema.ts:19](https://github.com/settlemint/sdk/blob/v2.3.
|
|
2006
|
+
Defined in: [sdk/utils/src/validation/unique-name.schema.ts:19](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/unique-name.schema.ts#L19)
|
|
2007
2007
|
|
|
2008
2008
|
Schema for validating unique names used across the SettleMint platform.
|
|
2009
2009
|
Only accepts lowercase alphanumeric characters and hyphens.
|
|
@@ -2029,7 +2029,7 @@ const isInvalidName = UniqueNameSchema.safeParse("My Workspace!").success;
|
|
|
2029
2029
|
|
|
2030
2030
|
> `const` **UrlOrPathSchema**: `ZodUnion`\<[`UrlOrPath`](#urlorpath)\>
|
|
2031
2031
|
|
|
2032
|
-
Defined in: [sdk/utils/src/validation/url.schema.ts:54](https://github.com/settlemint/sdk/blob/v2.3.
|
|
2032
|
+
Defined in: [sdk/utils/src/validation/url.schema.ts:54](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/url.schema.ts#L54)
|
|
2033
2033
|
|
|
2034
2034
|
Schema that accepts either a full URL or a URL path.
|
|
2035
2035
|
|
|
@@ -2053,7 +2053,7 @@ const isValidPath = UrlOrPathSchema.safeParse("/api/v1/users").success;
|
|
|
2053
2053
|
|
|
2054
2054
|
> `const` **UrlPathSchema**: `ZodString`\<[`UrlPath`](#urlpath)\>
|
|
2055
2055
|
|
|
2056
|
-
Defined in: [sdk/utils/src/validation/url.schema.ts:34](https://github.com/settlemint/sdk/blob/v2.3.
|
|
2056
|
+
Defined in: [sdk/utils/src/validation/url.schema.ts:34](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/url.schema.ts#L34)
|
|
2057
2057
|
|
|
2058
2058
|
Schema for validating URL paths.
|
|
2059
2059
|
|
|
@@ -2077,7 +2077,7 @@ const isInvalidPath = UrlPathSchema.safeParse("not-a-path").success;
|
|
|
2077
2077
|
|
|
2078
2078
|
> `const` **UrlSchema**: `ZodString`\<[`Url`](#url)\>
|
|
2079
2079
|
|
|
2080
|
-
Defined in: [sdk/utils/src/validation/url.schema.ts:17](https://github.com/settlemint/sdk/blob/v2.3.
|
|
2080
|
+
Defined in: [sdk/utils/src/validation/url.schema.ts:17](https://github.com/settlemint/sdk/blob/v2.3.1/sdk/utils/src/validation/url.schema.ts#L17)
|
|
2081
2081
|
|
|
2082
2082
|
Schema for validating URLs.
|
|
2083
2083
|
|
package/dist/environment.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/environment/load-env.ts
|
|
2
|
-
import { join } from "
|
|
2
|
+
import { join } from "path";
|
|
3
3
|
|
|
4
4
|
// src/terminal/ascii.ts
|
|
5
5
|
import { magentaBright } from "yoctocolors";
|
|
@@ -21,7 +21,7 @@ var cancel = (msg) => {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
// src/terminal/execute-command.ts
|
|
24
|
-
import { spawn } from "
|
|
24
|
+
import { spawn } from "child_process";
|
|
25
25
|
|
|
26
26
|
// src/terminal/intro.ts
|
|
27
27
|
import { magentaBright as magentaBright2 } from "yoctocolors";
|
|
@@ -221,11 +221,11 @@ async function loadEnvironmentEnv(validateEnv, prod, path = process.cwd()) {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
// src/environment/write-env.ts
|
|
224
|
-
import { writeFile } from "
|
|
225
|
-
import { join as join3 } from "
|
|
224
|
+
import { writeFile } from "fs/promises";
|
|
225
|
+
import { join as join3 } from "path";
|
|
226
226
|
|
|
227
227
|
// src/filesystem/project-root.ts
|
|
228
|
-
import { dirname } from "
|
|
228
|
+
import { dirname } from "path";
|
|
229
229
|
import { findUp } from "find-up";
|
|
230
230
|
async function projectRoot(fallbackToCwd = false, cwd) {
|
|
231
231
|
const packageJsonPath = await findUp("package.json", { cwd });
|
|
@@ -239,7 +239,7 @@ async function projectRoot(fallbackToCwd = false, cwd) {
|
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
// src/filesystem/exists.ts
|
|
242
|
-
import { stat } from "
|
|
242
|
+
import { stat } from "fs/promises";
|
|
243
243
|
async function exists(path) {
|
|
244
244
|
try {
|
|
245
245
|
await stat(path);
|
|
@@ -250,8 +250,8 @@ async function exists(path) {
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
// src/filesystem/mono-repo.ts
|
|
253
|
-
import { readFile } from "
|
|
254
|
-
import { dirname as dirname2, join as join2 } from "
|
|
253
|
+
import { readFile } from "fs/promises";
|
|
254
|
+
import { dirname as dirname2, join as join2 } from "path";
|
|
255
255
|
import { findUp as findUp2 } from "find-up";
|
|
256
256
|
import { glob } from "glob";
|
|
257
257
|
async function findMonoRepoRoot(startDir) {
|
package/dist/filesystem.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/filesystem/project-root.ts
|
|
2
|
-
import { dirname } from "
|
|
2
|
+
import { dirname } from "path";
|
|
3
3
|
import { findUp } from "find-up";
|
|
4
4
|
async function projectRoot(fallbackToCwd = false, cwd) {
|
|
5
5
|
const packageJsonPath = await findUp("package.json", { cwd });
|
|
@@ -13,7 +13,7 @@ async function projectRoot(fallbackToCwd = false, cwd) {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
// src/filesystem/exists.ts
|
|
16
|
-
import { stat } from "
|
|
16
|
+
import { stat } from "fs/promises";
|
|
17
17
|
async function exists(path) {
|
|
18
18
|
try {
|
|
19
19
|
await stat(path);
|
|
@@ -24,8 +24,8 @@ async function exists(path) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// src/filesystem/mono-repo.ts
|
|
27
|
-
import { readFile } from "
|
|
28
|
-
import { dirname as dirname2, join } from "
|
|
27
|
+
import { readFile } from "fs/promises";
|
|
28
|
+
import { dirname as dirname2, join } from "path";
|
|
29
29
|
|
|
30
30
|
// src/json.ts
|
|
31
31
|
function tryParseJson(value, defaultValue = null) {
|
package/dist/package-manager.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// src/package-manager/download-and-extract.ts
|
|
2
|
-
import { readdir, rm } from "
|
|
3
|
-
import { resolve } from "
|
|
2
|
+
import { readdir, rm } from "fs/promises";
|
|
3
|
+
import { resolve } from "path";
|
|
4
4
|
|
|
5
5
|
// src/filesystem/project-root.ts
|
|
6
|
-
import { dirname } from "
|
|
6
|
+
import { dirname } from "path";
|
|
7
7
|
import { findUp } from "find-up";
|
|
8
8
|
async function projectRoot(fallbackToCwd = false, cwd) {
|
|
9
9
|
const packageJsonPath = await findUp("package.json", { cwd });
|
|
@@ -17,7 +17,7 @@ async function projectRoot(fallbackToCwd = false, cwd) {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
// src/filesystem/exists.ts
|
|
20
|
-
import { stat } from "
|
|
20
|
+
import { stat } from "fs/promises";
|
|
21
21
|
async function exists(path) {
|
|
22
22
|
try {
|
|
23
23
|
await stat(path);
|
|
@@ -28,8 +28,8 @@ async function exists(path) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
// src/filesystem/mono-repo.ts
|
|
31
|
-
import { readFile } from "
|
|
32
|
-
import { dirname as dirname2, join } from "
|
|
31
|
+
import { readFile } from "fs/promises";
|
|
32
|
+
import { dirname as dirname2, join } from "path";
|
|
33
33
|
import { findUp as findUp2 } from "find-up";
|
|
34
34
|
import { glob } from "glob";
|
|
35
35
|
|
|
@@ -90,7 +90,7 @@ var maskTokens = (output) => {
|
|
|
90
90
|
import { inverse, redBright } from "yoctocolors";
|
|
91
91
|
|
|
92
92
|
// src/terminal/execute-command.ts
|
|
93
|
-
import { spawn } from "
|
|
93
|
+
import { spawn } from "child_process";
|
|
94
94
|
|
|
95
95
|
// src/terminal/intro.ts
|
|
96
96
|
import { magentaBright as magentaBright2 } from "yoctocolors";
|
package/dist/terminal.mjs
CHANGED
package/package.json
CHANGED