@settlemint/sdk-utils 2.3.1 → 2.3.2-praf502b4c
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 +88 -287
- package/dist/environment.cjs +31 -31
- package/dist/environment.cjs.map +1 -1
- package/dist/environment.d.cts +19 -211
- package/dist/environment.d.ts +19 -211
- package/dist/environment.mjs +8 -8
- package/dist/environment.mjs.map +1 -1
- package/dist/validation.cjs +31 -31
- package/dist/validation.cjs.map +1 -1
- package/dist/validation.d.cts +22 -214
- package/dist/validation.d.ts +22 -214
- package/dist/validation.mjs +8 -8
- package/dist/validation.mjs.map +1 -1
- package/package.json +1 -1
package/dist/validation.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ZodType, ZodString, z } from 'zod/v4';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Validates a value against a given Zod schema.
|
|
@@ -13,7 +13,7 @@ import { ZodSchema, ZodString, z } from 'zod';
|
|
|
13
13
|
*
|
|
14
14
|
* const validatedId = validate(IdSchema, "550e8400-e29b-41d4-a716-446655440000");
|
|
15
15
|
*/
|
|
16
|
-
declare function validate<T extends
|
|
16
|
+
declare function validate<T extends ZodType>(schema: T, value: unknown): T["_output"];
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Schema for validating application access tokens.
|
|
@@ -40,169 +40,53 @@ type AccessToken = z.infer<typeof AccessTokenSchema>;
|
|
|
40
40
|
* access tokens, workspace names, and service endpoints.
|
|
41
41
|
*/
|
|
42
42
|
declare const DotEnvSchema: z.ZodObject<{
|
|
43
|
-
/** Base URL of the SettleMint platform instance */
|
|
44
43
|
SETTLEMINT_INSTANCE: z.ZodDefault<z.ZodString>;
|
|
45
|
-
/** Application access token for authenticating with SettleMint services */
|
|
46
44
|
SETTLEMINT_ACCESS_TOKEN: z.ZodOptional<z.ZodString>;
|
|
47
|
-
/** @internal */
|
|
48
45
|
SETTLEMINT_PERSONAL_ACCESS_TOKEN: z.ZodOptional<z.ZodString>;
|
|
49
|
-
/** Unique name of the workspace */
|
|
50
46
|
SETTLEMINT_WORKSPACE: z.ZodOptional<z.ZodString>;
|
|
51
|
-
/** Unique name of the application */
|
|
52
47
|
SETTLEMINT_APPLICATION: z.ZodOptional<z.ZodString>;
|
|
53
|
-
/** Unique name of the blockchain network */
|
|
54
48
|
SETTLEMINT_BLOCKCHAIN_NETWORK: z.ZodOptional<z.ZodString>;
|
|
55
|
-
/** Chain ID of the blockchain network */
|
|
56
49
|
SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID: z.ZodOptional<z.ZodString>;
|
|
57
|
-
/** Unique name of the blockchain node (should have a private key for signing transactions) */
|
|
58
50
|
SETTLEMINT_BLOCKCHAIN_NODE: z.ZodOptional<z.ZodString>;
|
|
59
|
-
/** JSON RPC endpoint for the blockchain node */
|
|
60
51
|
SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
61
|
-
/** Unique name of the blockchain node or load balancer */
|
|
62
52
|
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER: z.ZodOptional<z.ZodString>;
|
|
63
|
-
/** JSON RPC endpoint for the blockchain node or load balancer */
|
|
64
53
|
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
65
|
-
/** Unique name of the Hasura instance */
|
|
66
54
|
SETTLEMINT_HASURA: z.ZodOptional<z.ZodString>;
|
|
67
|
-
/** Endpoint URL for the Hasura GraphQL API */
|
|
68
55
|
SETTLEMINT_HASURA_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
69
|
-
/** Admin secret for authenticating with Hasura */
|
|
70
56
|
SETTLEMINT_HASURA_ADMIN_SECRET: z.ZodOptional<z.ZodString>;
|
|
71
|
-
/** Database connection URL for Hasura */
|
|
72
57
|
SETTLEMINT_HASURA_DATABASE_URL: z.ZodOptional<z.ZodString>;
|
|
73
|
-
/** Unique name of The Graph instance */
|
|
74
58
|
SETTLEMINT_THEGRAPH: z.ZodOptional<z.ZodString>;
|
|
75
|
-
|
|
76
|
-
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>;
|
|
77
|
-
/** Default The Graph subgraph to use */
|
|
59
|
+
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: z.ZodPipe<z.ZodTransform<never[] | null, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
78
60
|
SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH: z.ZodOptional<z.ZodString>;
|
|
79
|
-
/** Unique name of the Smart Contract Portal instance */
|
|
80
61
|
SETTLEMINT_PORTAL: z.ZodOptional<z.ZodString>;
|
|
81
|
-
/** GraphQL endpoint URL for the Portal */
|
|
82
62
|
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
83
|
-
/** REST endpoint URL for the Portal */
|
|
84
63
|
SETTLEMINT_PORTAL_REST_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
85
|
-
/** WebSocket endpoint URL for the Portal */
|
|
86
64
|
SETTLEMINT_PORTAL_WS_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
87
|
-
/** Unique name of the HD private key */
|
|
88
65
|
SETTLEMINT_HD_PRIVATE_KEY: z.ZodOptional<z.ZodString>;
|
|
89
|
-
/** Address of the HD private key forwarder */
|
|
90
66
|
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS: z.ZodOptional<z.ZodString>;
|
|
91
|
-
/** Unique name of the accessible private key */
|
|
92
67
|
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY: z.ZodOptional<z.ZodString>;
|
|
93
|
-
/** Unique name of the MinIO instance */
|
|
94
68
|
SETTLEMINT_MINIO: z.ZodOptional<z.ZodString>;
|
|
95
|
-
/** Endpoint URL for MinIO */
|
|
96
69
|
SETTLEMINT_MINIO_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
97
|
-
/** Access key for MinIO authentication */
|
|
98
70
|
SETTLEMINT_MINIO_ACCESS_KEY: z.ZodOptional<z.ZodString>;
|
|
99
|
-
/** Secret key for MinIO authentication */
|
|
100
71
|
SETTLEMINT_MINIO_SECRET_KEY: z.ZodOptional<z.ZodString>;
|
|
101
|
-
/** Unique name of the IPFS instance */
|
|
102
72
|
SETTLEMINT_IPFS: z.ZodOptional<z.ZodString>;
|
|
103
|
-
/** API endpoint URL for IPFS */
|
|
104
73
|
SETTLEMINT_IPFS_API_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
105
|
-
/** Pinning service endpoint URL for IPFS */
|
|
106
74
|
SETTLEMINT_IPFS_PINNING_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
107
|
-
/** Gateway endpoint URL for IPFS */
|
|
108
75
|
SETTLEMINT_IPFS_GATEWAY_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
109
|
-
/** Unique name of the custom deployment */
|
|
110
76
|
SETTLEMINT_CUSTOM_DEPLOYMENT: z.ZodOptional<z.ZodString>;
|
|
111
|
-
/** Endpoint URL for the custom deployment */
|
|
112
77
|
SETTLEMINT_CUSTOM_DEPLOYMENT_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
113
|
-
/** Unique name of the Blockscout instance */
|
|
114
78
|
SETTLEMINT_BLOCKSCOUT: z.ZodOptional<z.ZodString>;
|
|
115
|
-
/** GraphQL endpoint URL for Blockscout */
|
|
116
79
|
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
117
|
-
/** UI endpoint URL for Blockscout */
|
|
118
80
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
119
|
-
/** Name of the new project being created */
|
|
120
81
|
SETTLEMINT_NEW_PROJECT_NAME: z.ZodOptional<z.ZodString>;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
SETTLEMINT_APPLICATION?: string | undefined;
|
|
130
|
-
SETTLEMINT_BLOCKCHAIN_NETWORK?: string | undefined;
|
|
131
|
-
SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID?: string | undefined;
|
|
132
|
-
SETTLEMINT_BLOCKCHAIN_NODE?: string | undefined;
|
|
133
|
-
SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT?: string | undefined;
|
|
134
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER?: string | undefined;
|
|
135
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT?: string | undefined;
|
|
136
|
-
SETTLEMINT_HASURA?: string | undefined;
|
|
137
|
-
SETTLEMINT_HASURA_ENDPOINT?: string | undefined;
|
|
138
|
-
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined;
|
|
139
|
-
SETTLEMINT_HASURA_DATABASE_URL?: string | undefined;
|
|
140
|
-
SETTLEMINT_THEGRAPH?: string | undefined;
|
|
141
|
-
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: string[] | undefined;
|
|
142
|
-
SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH?: string | undefined;
|
|
143
|
-
SETTLEMINT_PORTAL?: string | undefined;
|
|
144
|
-
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined;
|
|
145
|
-
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
|
|
146
|
-
SETTLEMINT_PORTAL_WS_ENDPOINT?: string | undefined;
|
|
147
|
-
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
|
|
148
|
-
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?: string | undefined;
|
|
149
|
-
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?: string | undefined;
|
|
150
|
-
SETTLEMINT_MINIO?: string | undefined;
|
|
151
|
-
SETTLEMINT_MINIO_ENDPOINT?: string | undefined;
|
|
152
|
-
SETTLEMINT_MINIO_ACCESS_KEY?: string | undefined;
|
|
153
|
-
SETTLEMINT_MINIO_SECRET_KEY?: string | undefined;
|
|
154
|
-
SETTLEMINT_IPFS?: string | undefined;
|
|
155
|
-
SETTLEMINT_IPFS_API_ENDPOINT?: string | undefined;
|
|
156
|
-
SETTLEMINT_IPFS_PINNING_ENDPOINT?: string | undefined;
|
|
157
|
-
SETTLEMINT_IPFS_GATEWAY_ENDPOINT?: string | undefined;
|
|
158
|
-
SETTLEMINT_CUSTOM_DEPLOYMENT?: string | undefined;
|
|
159
|
-
SETTLEMINT_CUSTOM_DEPLOYMENT_ENDPOINT?: string | undefined;
|
|
160
|
-
SETTLEMINT_BLOCKSCOUT?: string | undefined;
|
|
161
|
-
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT?: string | undefined;
|
|
162
|
-
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT?: string | undefined;
|
|
163
|
-
SETTLEMINT_NEW_PROJECT_NAME?: string | undefined;
|
|
164
|
-
}, {
|
|
165
|
-
SETTLEMINT_INSTANCE?: string | undefined;
|
|
166
|
-
SETTLEMINT_ACCESS_TOKEN?: string | undefined;
|
|
167
|
-
SETTLEMINT_PERSONAL_ACCESS_TOKEN?: string | undefined;
|
|
168
|
-
SETTLEMINT_WORKSPACE?: string | undefined;
|
|
169
|
-
SETTLEMINT_APPLICATION?: string | undefined;
|
|
170
|
-
SETTLEMINT_BLOCKCHAIN_NETWORK?: string | undefined;
|
|
171
|
-
SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID?: string | undefined;
|
|
172
|
-
SETTLEMINT_BLOCKCHAIN_NODE?: string | undefined;
|
|
173
|
-
SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT?: string | undefined;
|
|
174
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER?: string | undefined;
|
|
175
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT?: string | undefined;
|
|
176
|
-
SETTLEMINT_HASURA?: string | undefined;
|
|
177
|
-
SETTLEMINT_HASURA_ENDPOINT?: string | undefined;
|
|
178
|
-
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined;
|
|
179
|
-
SETTLEMINT_HASURA_DATABASE_URL?: string | undefined;
|
|
180
|
-
SETTLEMINT_THEGRAPH?: string | undefined;
|
|
181
|
-
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: unknown;
|
|
182
|
-
SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH?: string | undefined;
|
|
183
|
-
SETTLEMINT_PORTAL?: string | undefined;
|
|
184
|
-
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined;
|
|
185
|
-
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
|
|
186
|
-
SETTLEMINT_PORTAL_WS_ENDPOINT?: string | undefined;
|
|
187
|
-
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
|
|
188
|
-
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?: string | undefined;
|
|
189
|
-
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?: string | undefined;
|
|
190
|
-
SETTLEMINT_MINIO?: string | undefined;
|
|
191
|
-
SETTLEMINT_MINIO_ENDPOINT?: string | undefined;
|
|
192
|
-
SETTLEMINT_MINIO_ACCESS_KEY?: string | undefined;
|
|
193
|
-
SETTLEMINT_MINIO_SECRET_KEY?: string | undefined;
|
|
194
|
-
SETTLEMINT_IPFS?: string | undefined;
|
|
195
|
-
SETTLEMINT_IPFS_API_ENDPOINT?: string | undefined;
|
|
196
|
-
SETTLEMINT_IPFS_PINNING_ENDPOINT?: string | undefined;
|
|
197
|
-
SETTLEMINT_IPFS_GATEWAY_ENDPOINT?: string | undefined;
|
|
198
|
-
SETTLEMINT_CUSTOM_DEPLOYMENT?: string | undefined;
|
|
199
|
-
SETTLEMINT_CUSTOM_DEPLOYMENT_ENDPOINT?: string | undefined;
|
|
200
|
-
SETTLEMINT_BLOCKSCOUT?: string | undefined;
|
|
201
|
-
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT?: string | undefined;
|
|
202
|
-
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT?: string | undefined;
|
|
203
|
-
SETTLEMINT_NEW_PROJECT_NAME?: string | undefined;
|
|
204
|
-
SETTLEMINT_LOG_LEVEL?: "debug" | "info" | "warn" | "error" | "none" | undefined;
|
|
205
|
-
}>;
|
|
82
|
+
SETTLEMINT_LOG_LEVEL: z.ZodDefault<z.ZodEnum<{
|
|
83
|
+
error: "error";
|
|
84
|
+
debug: "debug";
|
|
85
|
+
info: "info";
|
|
86
|
+
warn: "warn";
|
|
87
|
+
none: "none";
|
|
88
|
+
}>>;
|
|
89
|
+
}, z.core.$strip>;
|
|
206
90
|
/**
|
|
207
91
|
* Type definition for the environment variables schema.
|
|
208
92
|
*/
|
|
@@ -228,7 +112,7 @@ declare const DotEnvSchemaPartial: z.ZodObject<{
|
|
|
228
112
|
SETTLEMINT_HASURA_ADMIN_SECRET: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
229
113
|
SETTLEMINT_HASURA_DATABASE_URL: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
230
114
|
SETTLEMINT_THEGRAPH: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
231
|
-
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: z.ZodOptional<z.
|
|
115
|
+
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: z.ZodOptional<z.ZodPipe<z.ZodTransform<never[] | null, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
232
116
|
SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
233
117
|
SETTLEMINT_PORTAL: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
234
118
|
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -251,90 +135,14 @@ declare const DotEnvSchemaPartial: z.ZodObject<{
|
|
|
251
135
|
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
252
136
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
253
137
|
SETTLEMINT_NEW_PROJECT_NAME: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
254
|
-
SETTLEMINT_LOG_LEVEL: z.ZodOptional<z.ZodDefault<z.ZodEnum<
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID?: string | undefined;
|
|
263
|
-
SETTLEMINT_BLOCKCHAIN_NODE?: string | undefined;
|
|
264
|
-
SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT?: string | undefined;
|
|
265
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER?: string | undefined;
|
|
266
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT?: string | undefined;
|
|
267
|
-
SETTLEMINT_HASURA?: string | undefined;
|
|
268
|
-
SETTLEMINT_HASURA_ENDPOINT?: string | undefined;
|
|
269
|
-
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined;
|
|
270
|
-
SETTLEMINT_HASURA_DATABASE_URL?: string | undefined;
|
|
271
|
-
SETTLEMINT_THEGRAPH?: string | undefined;
|
|
272
|
-
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: string[] | undefined;
|
|
273
|
-
SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH?: string | undefined;
|
|
274
|
-
SETTLEMINT_PORTAL?: string | undefined;
|
|
275
|
-
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined;
|
|
276
|
-
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
|
|
277
|
-
SETTLEMINT_PORTAL_WS_ENDPOINT?: string | undefined;
|
|
278
|
-
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
|
|
279
|
-
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?: string | undefined;
|
|
280
|
-
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?: string | undefined;
|
|
281
|
-
SETTLEMINT_MINIO?: string | undefined;
|
|
282
|
-
SETTLEMINT_MINIO_ENDPOINT?: string | undefined;
|
|
283
|
-
SETTLEMINT_MINIO_ACCESS_KEY?: string | undefined;
|
|
284
|
-
SETTLEMINT_MINIO_SECRET_KEY?: string | undefined;
|
|
285
|
-
SETTLEMINT_IPFS?: string | undefined;
|
|
286
|
-
SETTLEMINT_IPFS_API_ENDPOINT?: string | undefined;
|
|
287
|
-
SETTLEMINT_IPFS_PINNING_ENDPOINT?: string | undefined;
|
|
288
|
-
SETTLEMINT_IPFS_GATEWAY_ENDPOINT?: string | undefined;
|
|
289
|
-
SETTLEMINT_CUSTOM_DEPLOYMENT?: string | undefined;
|
|
290
|
-
SETTLEMINT_CUSTOM_DEPLOYMENT_ENDPOINT?: string | undefined;
|
|
291
|
-
SETTLEMINT_BLOCKSCOUT?: string | undefined;
|
|
292
|
-
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT?: string | undefined;
|
|
293
|
-
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT?: string | undefined;
|
|
294
|
-
SETTLEMINT_NEW_PROJECT_NAME?: string | undefined;
|
|
295
|
-
SETTLEMINT_LOG_LEVEL?: "debug" | "info" | "warn" | "error" | "none" | undefined;
|
|
296
|
-
}, {
|
|
297
|
-
SETTLEMINT_INSTANCE?: string | undefined;
|
|
298
|
-
SETTLEMINT_ACCESS_TOKEN?: string | undefined;
|
|
299
|
-
SETTLEMINT_PERSONAL_ACCESS_TOKEN?: string | undefined;
|
|
300
|
-
SETTLEMINT_WORKSPACE?: string | undefined;
|
|
301
|
-
SETTLEMINT_APPLICATION?: string | undefined;
|
|
302
|
-
SETTLEMINT_BLOCKCHAIN_NETWORK?: string | undefined;
|
|
303
|
-
SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID?: string | undefined;
|
|
304
|
-
SETTLEMINT_BLOCKCHAIN_NODE?: string | undefined;
|
|
305
|
-
SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT?: string | undefined;
|
|
306
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER?: string | undefined;
|
|
307
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT?: string | undefined;
|
|
308
|
-
SETTLEMINT_HASURA?: string | undefined;
|
|
309
|
-
SETTLEMINT_HASURA_ENDPOINT?: string | undefined;
|
|
310
|
-
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined;
|
|
311
|
-
SETTLEMINT_HASURA_DATABASE_URL?: string | undefined;
|
|
312
|
-
SETTLEMINT_THEGRAPH?: string | undefined;
|
|
313
|
-
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: unknown;
|
|
314
|
-
SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH?: string | undefined;
|
|
315
|
-
SETTLEMINT_PORTAL?: string | undefined;
|
|
316
|
-
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined;
|
|
317
|
-
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
|
|
318
|
-
SETTLEMINT_PORTAL_WS_ENDPOINT?: string | undefined;
|
|
319
|
-
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
|
|
320
|
-
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?: string | undefined;
|
|
321
|
-
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?: string | undefined;
|
|
322
|
-
SETTLEMINT_MINIO?: string | undefined;
|
|
323
|
-
SETTLEMINT_MINIO_ENDPOINT?: string | undefined;
|
|
324
|
-
SETTLEMINT_MINIO_ACCESS_KEY?: string | undefined;
|
|
325
|
-
SETTLEMINT_MINIO_SECRET_KEY?: string | undefined;
|
|
326
|
-
SETTLEMINT_IPFS?: string | undefined;
|
|
327
|
-
SETTLEMINT_IPFS_API_ENDPOINT?: string | undefined;
|
|
328
|
-
SETTLEMINT_IPFS_PINNING_ENDPOINT?: string | undefined;
|
|
329
|
-
SETTLEMINT_IPFS_GATEWAY_ENDPOINT?: string | undefined;
|
|
330
|
-
SETTLEMINT_CUSTOM_DEPLOYMENT?: string | undefined;
|
|
331
|
-
SETTLEMINT_CUSTOM_DEPLOYMENT_ENDPOINT?: string | undefined;
|
|
332
|
-
SETTLEMINT_BLOCKSCOUT?: string | undefined;
|
|
333
|
-
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT?: string | undefined;
|
|
334
|
-
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT?: string | undefined;
|
|
335
|
-
SETTLEMINT_NEW_PROJECT_NAME?: string | undefined;
|
|
336
|
-
SETTLEMINT_LOG_LEVEL?: "debug" | "info" | "warn" | "error" | "none" | undefined;
|
|
337
|
-
}>;
|
|
138
|
+
SETTLEMINT_LOG_LEVEL: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
139
|
+
error: "error";
|
|
140
|
+
debug: "debug";
|
|
141
|
+
info: "info";
|
|
142
|
+
warn: "warn";
|
|
143
|
+
none: "none";
|
|
144
|
+
}>>>;
|
|
145
|
+
}, z.core.$strip>;
|
|
338
146
|
/**
|
|
339
147
|
* Type definition for the partial environment variables schema.
|
|
340
148
|
*/
|
|
@@ -354,7 +162,7 @@ type DotEnvPartial = z.infer<typeof DotEnvSchemaPartial>;
|
|
|
354
162
|
* // Validate MongoDB ObjectID
|
|
355
163
|
* const isValidObjectId = IdSchema.safeParse("507f1f77bcf86cd799439011").success;
|
|
356
164
|
*/
|
|
357
|
-
declare const IdSchema: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
165
|
+
declare const IdSchema: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
358
166
|
/**
|
|
359
167
|
* Type definition for database IDs, inferred from IdSchema.
|
|
360
168
|
* Can be either a PostgreSQL UUID string or MongoDB ObjectID string.
|
|
@@ -425,7 +233,7 @@ type UrlPath = z.infer<typeof UrlPathSchema>;
|
|
|
425
233
|
* const isValidPath = UrlOrPathSchema.safeParse("/api/v1/users").success;
|
|
426
234
|
* // true
|
|
427
235
|
*/
|
|
428
|
-
declare const UrlOrPathSchema: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
236
|
+
declare const UrlOrPathSchema: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
429
237
|
type UrlOrPath = z.infer<typeof UrlOrPathSchema>;
|
|
430
238
|
|
|
431
239
|
export { type AccessToken, AccessTokenSchema, type ApplicationAccessToken, ApplicationAccessTokenSchema, type DotEnv, type DotEnvPartial, DotEnvSchema, DotEnvSchemaPartial, type Id, IdSchema, type PersonalAccessToken, PersonalAccessTokenSchema, UniqueNameSchema, type Url, type UrlOrPath, UrlOrPathSchema, type UrlPath, UrlPathSchema, UrlSchema, validate };
|
package/dist/validation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ZodType, ZodString, z } from 'zod/v4';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Validates a value against a given Zod schema.
|
|
@@ -13,7 +13,7 @@ import { ZodSchema, ZodString, z } from 'zod';
|
|
|
13
13
|
*
|
|
14
14
|
* const validatedId = validate(IdSchema, "550e8400-e29b-41d4-a716-446655440000");
|
|
15
15
|
*/
|
|
16
|
-
declare function validate<T extends
|
|
16
|
+
declare function validate<T extends ZodType>(schema: T, value: unknown): T["_output"];
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Schema for validating application access tokens.
|
|
@@ -40,169 +40,53 @@ type AccessToken = z.infer<typeof AccessTokenSchema>;
|
|
|
40
40
|
* access tokens, workspace names, and service endpoints.
|
|
41
41
|
*/
|
|
42
42
|
declare const DotEnvSchema: z.ZodObject<{
|
|
43
|
-
/** Base URL of the SettleMint platform instance */
|
|
44
43
|
SETTLEMINT_INSTANCE: z.ZodDefault<z.ZodString>;
|
|
45
|
-
/** Application access token for authenticating with SettleMint services */
|
|
46
44
|
SETTLEMINT_ACCESS_TOKEN: z.ZodOptional<z.ZodString>;
|
|
47
|
-
/** @internal */
|
|
48
45
|
SETTLEMINT_PERSONAL_ACCESS_TOKEN: z.ZodOptional<z.ZodString>;
|
|
49
|
-
/** Unique name of the workspace */
|
|
50
46
|
SETTLEMINT_WORKSPACE: z.ZodOptional<z.ZodString>;
|
|
51
|
-
/** Unique name of the application */
|
|
52
47
|
SETTLEMINT_APPLICATION: z.ZodOptional<z.ZodString>;
|
|
53
|
-
/** Unique name of the blockchain network */
|
|
54
48
|
SETTLEMINT_BLOCKCHAIN_NETWORK: z.ZodOptional<z.ZodString>;
|
|
55
|
-
/** Chain ID of the blockchain network */
|
|
56
49
|
SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID: z.ZodOptional<z.ZodString>;
|
|
57
|
-
/** Unique name of the blockchain node (should have a private key for signing transactions) */
|
|
58
50
|
SETTLEMINT_BLOCKCHAIN_NODE: z.ZodOptional<z.ZodString>;
|
|
59
|
-
/** JSON RPC endpoint for the blockchain node */
|
|
60
51
|
SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
61
|
-
/** Unique name of the blockchain node or load balancer */
|
|
62
52
|
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER: z.ZodOptional<z.ZodString>;
|
|
63
|
-
/** JSON RPC endpoint for the blockchain node or load balancer */
|
|
64
53
|
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
65
|
-
/** Unique name of the Hasura instance */
|
|
66
54
|
SETTLEMINT_HASURA: z.ZodOptional<z.ZodString>;
|
|
67
|
-
/** Endpoint URL for the Hasura GraphQL API */
|
|
68
55
|
SETTLEMINT_HASURA_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
69
|
-
/** Admin secret for authenticating with Hasura */
|
|
70
56
|
SETTLEMINT_HASURA_ADMIN_SECRET: z.ZodOptional<z.ZodString>;
|
|
71
|
-
/** Database connection URL for Hasura */
|
|
72
57
|
SETTLEMINT_HASURA_DATABASE_URL: z.ZodOptional<z.ZodString>;
|
|
73
|
-
/** Unique name of The Graph instance */
|
|
74
58
|
SETTLEMINT_THEGRAPH: z.ZodOptional<z.ZodString>;
|
|
75
|
-
|
|
76
|
-
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>;
|
|
77
|
-
/** Default The Graph subgraph to use */
|
|
59
|
+
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: z.ZodPipe<z.ZodTransform<never[] | null, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
78
60
|
SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH: z.ZodOptional<z.ZodString>;
|
|
79
|
-
/** Unique name of the Smart Contract Portal instance */
|
|
80
61
|
SETTLEMINT_PORTAL: z.ZodOptional<z.ZodString>;
|
|
81
|
-
/** GraphQL endpoint URL for the Portal */
|
|
82
62
|
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
83
|
-
/** REST endpoint URL for the Portal */
|
|
84
63
|
SETTLEMINT_PORTAL_REST_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
85
|
-
/** WebSocket endpoint URL for the Portal */
|
|
86
64
|
SETTLEMINT_PORTAL_WS_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
87
|
-
/** Unique name of the HD private key */
|
|
88
65
|
SETTLEMINT_HD_PRIVATE_KEY: z.ZodOptional<z.ZodString>;
|
|
89
|
-
/** Address of the HD private key forwarder */
|
|
90
66
|
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS: z.ZodOptional<z.ZodString>;
|
|
91
|
-
/** Unique name of the accessible private key */
|
|
92
67
|
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY: z.ZodOptional<z.ZodString>;
|
|
93
|
-
/** Unique name of the MinIO instance */
|
|
94
68
|
SETTLEMINT_MINIO: z.ZodOptional<z.ZodString>;
|
|
95
|
-
/** Endpoint URL for MinIO */
|
|
96
69
|
SETTLEMINT_MINIO_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
97
|
-
/** Access key for MinIO authentication */
|
|
98
70
|
SETTLEMINT_MINIO_ACCESS_KEY: z.ZodOptional<z.ZodString>;
|
|
99
|
-
/** Secret key for MinIO authentication */
|
|
100
71
|
SETTLEMINT_MINIO_SECRET_KEY: z.ZodOptional<z.ZodString>;
|
|
101
|
-
/** Unique name of the IPFS instance */
|
|
102
72
|
SETTLEMINT_IPFS: z.ZodOptional<z.ZodString>;
|
|
103
|
-
/** API endpoint URL for IPFS */
|
|
104
73
|
SETTLEMINT_IPFS_API_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
105
|
-
/** Pinning service endpoint URL for IPFS */
|
|
106
74
|
SETTLEMINT_IPFS_PINNING_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
107
|
-
/** Gateway endpoint URL for IPFS */
|
|
108
75
|
SETTLEMINT_IPFS_GATEWAY_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
109
|
-
/** Unique name of the custom deployment */
|
|
110
76
|
SETTLEMINT_CUSTOM_DEPLOYMENT: z.ZodOptional<z.ZodString>;
|
|
111
|
-
/** Endpoint URL for the custom deployment */
|
|
112
77
|
SETTLEMINT_CUSTOM_DEPLOYMENT_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
113
|
-
/** Unique name of the Blockscout instance */
|
|
114
78
|
SETTLEMINT_BLOCKSCOUT: z.ZodOptional<z.ZodString>;
|
|
115
|
-
/** GraphQL endpoint URL for Blockscout */
|
|
116
79
|
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
117
|
-
/** UI endpoint URL for Blockscout */
|
|
118
80
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: z.ZodOptional<z.ZodString>;
|
|
119
|
-
/** Name of the new project being created */
|
|
120
81
|
SETTLEMINT_NEW_PROJECT_NAME: z.ZodOptional<z.ZodString>;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
SETTLEMINT_APPLICATION?: string | undefined;
|
|
130
|
-
SETTLEMINT_BLOCKCHAIN_NETWORK?: string | undefined;
|
|
131
|
-
SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID?: string | undefined;
|
|
132
|
-
SETTLEMINT_BLOCKCHAIN_NODE?: string | undefined;
|
|
133
|
-
SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT?: string | undefined;
|
|
134
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER?: string | undefined;
|
|
135
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT?: string | undefined;
|
|
136
|
-
SETTLEMINT_HASURA?: string | undefined;
|
|
137
|
-
SETTLEMINT_HASURA_ENDPOINT?: string | undefined;
|
|
138
|
-
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined;
|
|
139
|
-
SETTLEMINT_HASURA_DATABASE_URL?: string | undefined;
|
|
140
|
-
SETTLEMINT_THEGRAPH?: string | undefined;
|
|
141
|
-
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: string[] | undefined;
|
|
142
|
-
SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH?: string | undefined;
|
|
143
|
-
SETTLEMINT_PORTAL?: string | undefined;
|
|
144
|
-
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined;
|
|
145
|
-
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
|
|
146
|
-
SETTLEMINT_PORTAL_WS_ENDPOINT?: string | undefined;
|
|
147
|
-
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
|
|
148
|
-
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?: string | undefined;
|
|
149
|
-
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?: string | undefined;
|
|
150
|
-
SETTLEMINT_MINIO?: string | undefined;
|
|
151
|
-
SETTLEMINT_MINIO_ENDPOINT?: string | undefined;
|
|
152
|
-
SETTLEMINT_MINIO_ACCESS_KEY?: string | undefined;
|
|
153
|
-
SETTLEMINT_MINIO_SECRET_KEY?: string | undefined;
|
|
154
|
-
SETTLEMINT_IPFS?: string | undefined;
|
|
155
|
-
SETTLEMINT_IPFS_API_ENDPOINT?: string | undefined;
|
|
156
|
-
SETTLEMINT_IPFS_PINNING_ENDPOINT?: string | undefined;
|
|
157
|
-
SETTLEMINT_IPFS_GATEWAY_ENDPOINT?: string | undefined;
|
|
158
|
-
SETTLEMINT_CUSTOM_DEPLOYMENT?: string | undefined;
|
|
159
|
-
SETTLEMINT_CUSTOM_DEPLOYMENT_ENDPOINT?: string | undefined;
|
|
160
|
-
SETTLEMINT_BLOCKSCOUT?: string | undefined;
|
|
161
|
-
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT?: string | undefined;
|
|
162
|
-
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT?: string | undefined;
|
|
163
|
-
SETTLEMINT_NEW_PROJECT_NAME?: string | undefined;
|
|
164
|
-
}, {
|
|
165
|
-
SETTLEMINT_INSTANCE?: string | undefined;
|
|
166
|
-
SETTLEMINT_ACCESS_TOKEN?: string | undefined;
|
|
167
|
-
SETTLEMINT_PERSONAL_ACCESS_TOKEN?: string | undefined;
|
|
168
|
-
SETTLEMINT_WORKSPACE?: string | undefined;
|
|
169
|
-
SETTLEMINT_APPLICATION?: string | undefined;
|
|
170
|
-
SETTLEMINT_BLOCKCHAIN_NETWORK?: string | undefined;
|
|
171
|
-
SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID?: string | undefined;
|
|
172
|
-
SETTLEMINT_BLOCKCHAIN_NODE?: string | undefined;
|
|
173
|
-
SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT?: string | undefined;
|
|
174
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER?: string | undefined;
|
|
175
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT?: string | undefined;
|
|
176
|
-
SETTLEMINT_HASURA?: string | undefined;
|
|
177
|
-
SETTLEMINT_HASURA_ENDPOINT?: string | undefined;
|
|
178
|
-
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined;
|
|
179
|
-
SETTLEMINT_HASURA_DATABASE_URL?: string | undefined;
|
|
180
|
-
SETTLEMINT_THEGRAPH?: string | undefined;
|
|
181
|
-
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: unknown;
|
|
182
|
-
SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH?: string | undefined;
|
|
183
|
-
SETTLEMINT_PORTAL?: string | undefined;
|
|
184
|
-
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined;
|
|
185
|
-
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
|
|
186
|
-
SETTLEMINT_PORTAL_WS_ENDPOINT?: string | undefined;
|
|
187
|
-
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
|
|
188
|
-
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?: string | undefined;
|
|
189
|
-
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?: string | undefined;
|
|
190
|
-
SETTLEMINT_MINIO?: string | undefined;
|
|
191
|
-
SETTLEMINT_MINIO_ENDPOINT?: string | undefined;
|
|
192
|
-
SETTLEMINT_MINIO_ACCESS_KEY?: string | undefined;
|
|
193
|
-
SETTLEMINT_MINIO_SECRET_KEY?: string | undefined;
|
|
194
|
-
SETTLEMINT_IPFS?: string | undefined;
|
|
195
|
-
SETTLEMINT_IPFS_API_ENDPOINT?: string | undefined;
|
|
196
|
-
SETTLEMINT_IPFS_PINNING_ENDPOINT?: string | undefined;
|
|
197
|
-
SETTLEMINT_IPFS_GATEWAY_ENDPOINT?: string | undefined;
|
|
198
|
-
SETTLEMINT_CUSTOM_DEPLOYMENT?: string | undefined;
|
|
199
|
-
SETTLEMINT_CUSTOM_DEPLOYMENT_ENDPOINT?: string | undefined;
|
|
200
|
-
SETTLEMINT_BLOCKSCOUT?: string | undefined;
|
|
201
|
-
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT?: string | undefined;
|
|
202
|
-
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT?: string | undefined;
|
|
203
|
-
SETTLEMINT_NEW_PROJECT_NAME?: string | undefined;
|
|
204
|
-
SETTLEMINT_LOG_LEVEL?: "debug" | "info" | "warn" | "error" | "none" | undefined;
|
|
205
|
-
}>;
|
|
82
|
+
SETTLEMINT_LOG_LEVEL: z.ZodDefault<z.ZodEnum<{
|
|
83
|
+
error: "error";
|
|
84
|
+
debug: "debug";
|
|
85
|
+
info: "info";
|
|
86
|
+
warn: "warn";
|
|
87
|
+
none: "none";
|
|
88
|
+
}>>;
|
|
89
|
+
}, z.core.$strip>;
|
|
206
90
|
/**
|
|
207
91
|
* Type definition for the environment variables schema.
|
|
208
92
|
*/
|
|
@@ -228,7 +112,7 @@ declare const DotEnvSchemaPartial: z.ZodObject<{
|
|
|
228
112
|
SETTLEMINT_HASURA_ADMIN_SECRET: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
229
113
|
SETTLEMINT_HASURA_DATABASE_URL: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
230
114
|
SETTLEMINT_THEGRAPH: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
231
|
-
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: z.ZodOptional<z.
|
|
115
|
+
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: z.ZodOptional<z.ZodPipe<z.ZodTransform<never[] | null, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
232
116
|
SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
233
117
|
SETTLEMINT_PORTAL: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
234
118
|
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -251,90 +135,14 @@ declare const DotEnvSchemaPartial: z.ZodObject<{
|
|
|
251
135
|
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
252
136
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
253
137
|
SETTLEMINT_NEW_PROJECT_NAME: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
254
|
-
SETTLEMINT_LOG_LEVEL: z.ZodOptional<z.ZodDefault<z.ZodEnum<
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID?: string | undefined;
|
|
263
|
-
SETTLEMINT_BLOCKCHAIN_NODE?: string | undefined;
|
|
264
|
-
SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT?: string | undefined;
|
|
265
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER?: string | undefined;
|
|
266
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT?: string | undefined;
|
|
267
|
-
SETTLEMINT_HASURA?: string | undefined;
|
|
268
|
-
SETTLEMINT_HASURA_ENDPOINT?: string | undefined;
|
|
269
|
-
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined;
|
|
270
|
-
SETTLEMINT_HASURA_DATABASE_URL?: string | undefined;
|
|
271
|
-
SETTLEMINT_THEGRAPH?: string | undefined;
|
|
272
|
-
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: string[] | undefined;
|
|
273
|
-
SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH?: string | undefined;
|
|
274
|
-
SETTLEMINT_PORTAL?: string | undefined;
|
|
275
|
-
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined;
|
|
276
|
-
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
|
|
277
|
-
SETTLEMINT_PORTAL_WS_ENDPOINT?: string | undefined;
|
|
278
|
-
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
|
|
279
|
-
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?: string | undefined;
|
|
280
|
-
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?: string | undefined;
|
|
281
|
-
SETTLEMINT_MINIO?: string | undefined;
|
|
282
|
-
SETTLEMINT_MINIO_ENDPOINT?: string | undefined;
|
|
283
|
-
SETTLEMINT_MINIO_ACCESS_KEY?: string | undefined;
|
|
284
|
-
SETTLEMINT_MINIO_SECRET_KEY?: string | undefined;
|
|
285
|
-
SETTLEMINT_IPFS?: string | undefined;
|
|
286
|
-
SETTLEMINT_IPFS_API_ENDPOINT?: string | undefined;
|
|
287
|
-
SETTLEMINT_IPFS_PINNING_ENDPOINT?: string | undefined;
|
|
288
|
-
SETTLEMINT_IPFS_GATEWAY_ENDPOINT?: string | undefined;
|
|
289
|
-
SETTLEMINT_CUSTOM_DEPLOYMENT?: string | undefined;
|
|
290
|
-
SETTLEMINT_CUSTOM_DEPLOYMENT_ENDPOINT?: string | undefined;
|
|
291
|
-
SETTLEMINT_BLOCKSCOUT?: string | undefined;
|
|
292
|
-
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT?: string | undefined;
|
|
293
|
-
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT?: string | undefined;
|
|
294
|
-
SETTLEMINT_NEW_PROJECT_NAME?: string | undefined;
|
|
295
|
-
SETTLEMINT_LOG_LEVEL?: "debug" | "info" | "warn" | "error" | "none" | undefined;
|
|
296
|
-
}, {
|
|
297
|
-
SETTLEMINT_INSTANCE?: string | undefined;
|
|
298
|
-
SETTLEMINT_ACCESS_TOKEN?: string | undefined;
|
|
299
|
-
SETTLEMINT_PERSONAL_ACCESS_TOKEN?: string | undefined;
|
|
300
|
-
SETTLEMINT_WORKSPACE?: string | undefined;
|
|
301
|
-
SETTLEMINT_APPLICATION?: string | undefined;
|
|
302
|
-
SETTLEMINT_BLOCKCHAIN_NETWORK?: string | undefined;
|
|
303
|
-
SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID?: string | undefined;
|
|
304
|
-
SETTLEMINT_BLOCKCHAIN_NODE?: string | undefined;
|
|
305
|
-
SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT?: string | undefined;
|
|
306
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER?: string | undefined;
|
|
307
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT?: string | undefined;
|
|
308
|
-
SETTLEMINT_HASURA?: string | undefined;
|
|
309
|
-
SETTLEMINT_HASURA_ENDPOINT?: string | undefined;
|
|
310
|
-
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined;
|
|
311
|
-
SETTLEMINT_HASURA_DATABASE_URL?: string | undefined;
|
|
312
|
-
SETTLEMINT_THEGRAPH?: string | undefined;
|
|
313
|
-
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: unknown;
|
|
314
|
-
SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH?: string | undefined;
|
|
315
|
-
SETTLEMINT_PORTAL?: string | undefined;
|
|
316
|
-
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined;
|
|
317
|
-
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
|
|
318
|
-
SETTLEMINT_PORTAL_WS_ENDPOINT?: string | undefined;
|
|
319
|
-
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
|
|
320
|
-
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?: string | undefined;
|
|
321
|
-
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?: string | undefined;
|
|
322
|
-
SETTLEMINT_MINIO?: string | undefined;
|
|
323
|
-
SETTLEMINT_MINIO_ENDPOINT?: string | undefined;
|
|
324
|
-
SETTLEMINT_MINIO_ACCESS_KEY?: string | undefined;
|
|
325
|
-
SETTLEMINT_MINIO_SECRET_KEY?: string | undefined;
|
|
326
|
-
SETTLEMINT_IPFS?: string | undefined;
|
|
327
|
-
SETTLEMINT_IPFS_API_ENDPOINT?: string | undefined;
|
|
328
|
-
SETTLEMINT_IPFS_PINNING_ENDPOINT?: string | undefined;
|
|
329
|
-
SETTLEMINT_IPFS_GATEWAY_ENDPOINT?: string | undefined;
|
|
330
|
-
SETTLEMINT_CUSTOM_DEPLOYMENT?: string | undefined;
|
|
331
|
-
SETTLEMINT_CUSTOM_DEPLOYMENT_ENDPOINT?: string | undefined;
|
|
332
|
-
SETTLEMINT_BLOCKSCOUT?: string | undefined;
|
|
333
|
-
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT?: string | undefined;
|
|
334
|
-
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT?: string | undefined;
|
|
335
|
-
SETTLEMINT_NEW_PROJECT_NAME?: string | undefined;
|
|
336
|
-
SETTLEMINT_LOG_LEVEL?: "debug" | "info" | "warn" | "error" | "none" | undefined;
|
|
337
|
-
}>;
|
|
138
|
+
SETTLEMINT_LOG_LEVEL: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
139
|
+
error: "error";
|
|
140
|
+
debug: "debug";
|
|
141
|
+
info: "info";
|
|
142
|
+
warn: "warn";
|
|
143
|
+
none: "none";
|
|
144
|
+
}>>>;
|
|
145
|
+
}, z.core.$strip>;
|
|
338
146
|
/**
|
|
339
147
|
* Type definition for the partial environment variables schema.
|
|
340
148
|
*/
|
|
@@ -354,7 +162,7 @@ type DotEnvPartial = z.infer<typeof DotEnvSchemaPartial>;
|
|
|
354
162
|
* // Validate MongoDB ObjectID
|
|
355
163
|
* const isValidObjectId = IdSchema.safeParse("507f1f77bcf86cd799439011").success;
|
|
356
164
|
*/
|
|
357
|
-
declare const IdSchema: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
165
|
+
declare const IdSchema: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
358
166
|
/**
|
|
359
167
|
* Type definition for database IDs, inferred from IdSchema.
|
|
360
168
|
* Can be either a PostgreSQL UUID string or MongoDB ObjectID string.
|
|
@@ -425,7 +233,7 @@ type UrlPath = z.infer<typeof UrlPathSchema>;
|
|
|
425
233
|
* const isValidPath = UrlOrPathSchema.safeParse("/api/v1/users").success;
|
|
426
234
|
* // true
|
|
427
235
|
*/
|
|
428
|
-
declare const UrlOrPathSchema: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
236
|
+
declare const UrlOrPathSchema: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
429
237
|
type UrlOrPath = z.infer<typeof UrlOrPathSchema>;
|
|
430
238
|
|
|
431
239
|
export { type AccessToken, AccessTokenSchema, type ApplicationAccessToken, ApplicationAccessTokenSchema, type DotEnv, type DotEnvPartial, DotEnvSchema, DotEnvSchemaPartial, type Id, IdSchema, type PersonalAccessToken, PersonalAccessTokenSchema, UniqueNameSchema, type Url, type UrlOrPath, UrlOrPathSchema, type UrlPath, UrlPathSchema, UrlSchema, validate };
|