@xyo-network/xl1-protocol-sdk 1.26.35 → 1.26.37

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.
@@ -1,4 +1,15 @@
1
1
  import { z } from 'zod';
2
+ /**
3
+ * BIP-32 derivation path for an actor wallet.
4
+ *
5
+ * - Absolute form: starts with `m/` (e.g. `m/44'/60'/0'/0/0`). The full path is used as-is,
6
+ * giving the caller complete control over coin type, account, and hardening.
7
+ * - Relative form: a segment list without the `m/` prefix (e.g. `0`, `0/1`, `44'/60'/0'/0/0`).
8
+ * The consumer appends this to its configured root base path.
9
+ *
10
+ * Each segment is a non-negative integer, optionally suffixed with `'` to mark it as hardened.
11
+ */
12
+ export declare const AccountPathZod: z.ZodString;
2
13
  /** ActorConfigZod constant. */
3
14
  export declare const ActorConfigZod: z.ZodObject<{
4
15
  chain: z.ZodDefault<z.ZodObject<{
@@ -81,7 +92,7 @@ export declare const ActorConfigZod: z.ZodObject<{
81
92
  backoffMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
82
93
  }, z.core.$strip>>;
83
94
  name: z.ZodString;
84
- mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
95
+ accountPath: z.ZodOptional<z.ZodString>;
85
96
  healthCheckPort: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
86
97
  }, z.core.$strip>;
87
98
  /** ActorConfig type. */
@@ -162,7 +173,7 @@ export declare const isActorConfig: <T>(value: T) => value is T & {
162
173
  };
163
174
  name: string;
164
175
  dataLake?: import("./index.ts").DataLakeConfig | undefined;
165
- mnemonic?: string | undefined;
176
+ accountPath?: string | undefined;
166
177
  healthCheckPort?: number | undefined;
167
178
  };
168
179
  /** Converts a value to ActorConfig, throwing if invalid. */
@@ -242,7 +253,7 @@ export declare const asActorConfig: {
242
253
  };
243
254
  name: string;
244
255
  dataLake?: import("./index.ts").DataLakeConfig | undefined;
245
- mnemonic?: string | undefined;
256
+ accountPath?: string | undefined;
246
257
  healthCheckPort?: number | undefined;
247
258
  }) | undefined;
248
259
  <T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
@@ -320,7 +331,7 @@ export declare const asActorConfig: {
320
331
  };
321
332
  name: string;
322
333
  dataLake?: import("./index.ts").DataLakeConfig | undefined;
323
- mnemonic?: string | undefined;
334
+ accountPath?: string | undefined;
324
335
  healthCheckPort?: number | undefined;
325
336
  };
326
337
  };
@@ -401,7 +412,7 @@ export declare const toActorConfig: {
401
412
  };
402
413
  name: string;
403
414
  dataLake?: import("./index.ts").DataLakeConfig | undefined;
404
- mnemonic?: string | undefined;
415
+ accountPath?: string | undefined;
405
416
  healthCheckPort?: number | undefined;
406
417
  }) | undefined;
407
418
  <T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
@@ -479,7 +490,7 @@ export declare const toActorConfig: {
479
490
  };
480
491
  name: string;
481
492
  dataLake?: import("./index.ts").DataLakeConfig | undefined;
482
- mnemonic?: string | undefined;
493
+ accountPath?: string | undefined;
483
494
  healthCheckPort?: number | undefined;
484
495
  };
485
496
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Actor.d.ts","sourceRoot":"","sources":["../../../src/config/Actor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvC,+BAA+B;AAC/B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYzB,CAAA;AAEF,wBAAwB;AACxB,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAExD,gEAAgE;AAChE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA+B,CAAA;AACzD,4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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAgD,CAAA;AAC1E,8BAA8B;AAC9B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAgD,CAAA"}
@@ -81,7 +81,7 @@ export declare const ActorsConfigZod: z.ZodDefault<z.ZodArray<z.ZodObject<{
81
81
  backoffMs: z.ZodDefault<z.z.ZodCoercedNumber<unknown>>;
82
82
  }, z.z.core.$strip>>;
83
83
  name: z.ZodString;
84
- mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
84
+ accountPath: z.ZodOptional<z.ZodString>;
85
85
  healthCheckPort: z.ZodOptional<z.z.ZodCoercedNumber<unknown>>;
86
86
  }, z.z.core.$loose>>>;
87
87
  /** ActorsConfig type. */
@@ -162,7 +162,7 @@ export declare const ConfigZod: z.ZodObject<{
162
162
  backoffMs: z.ZodDefault<z.z.ZodCoercedNumber<unknown>>;
163
163
  }, z.z.core.$strip>>;
164
164
  name: z.ZodString;
165
- mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
165
+ accountPath: z.ZodOptional<z.ZodString>;
166
166
  healthCheckPort: z.ZodOptional<z.z.ZodCoercedNumber<unknown>>;
167
167
  }, z.z.core.$loose>>>;
168
168
  }, z.z.core.$strip>;
@@ -318,7 +318,7 @@ export declare function resolveConfig(config: DeepPartial<Config>): {
318
318
  };
319
319
  name: string;
320
320
  dataLake?: import("./index.ts").DataLakeConfig | undefined;
321
- mnemonic?: string | undefined;
321
+ accountPath?: string | undefined;
322
322
  healthCheckPort?: number | undefined;
323
323
  }[];
324
324
  dataLake?: import("./index.ts").DataLakeConfig | undefined;
@@ -81,7 +81,7 @@ export declare const HostActorConfigZod: z.ZodObject<{
81
81
  backoffMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
82
82
  }, z.core.$strip>>;
83
83
  name: z.ZodString;
84
- mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
84
+ accountPath: z.ZodOptional<z.ZodString>;
85
85
  healthCheckPort: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
86
86
  host: z.ZodDefault<z.ZodString>;
87
87
  port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -166,7 +166,7 @@ export declare const isHostActorConfig: <T>(value: T) => value is T & {
166
166
  host: string;
167
167
  port: number;
168
168
  dataLake?: import("./index.ts").DataLakeConfig | undefined;
169
- mnemonic?: string | undefined;
169
+ accountPath?: string | undefined;
170
170
  healthCheckPort?: number | undefined;
171
171
  };
172
172
  /** Converts a value to HostActorConfig, throwing if invalid. */
@@ -248,7 +248,7 @@ export declare const asHostActorConfig: {
248
248
  host: string;
249
249
  port: number;
250
250
  dataLake?: import("./index.ts").DataLakeConfig | undefined;
251
- mnemonic?: string | undefined;
251
+ accountPath?: string | undefined;
252
252
  healthCheckPort?: number | undefined;
253
253
  }) | undefined;
254
254
  <T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
@@ -328,7 +328,7 @@ export declare const asHostActorConfig: {
328
328
  host: string;
329
329
  port: number;
330
330
  dataLake?: import("./index.ts").DataLakeConfig | undefined;
331
- mnemonic?: string | undefined;
331
+ accountPath?: string | undefined;
332
332
  healthCheckPort?: number | undefined;
333
333
  };
334
334
  };
@@ -411,7 +411,7 @@ export declare const toHostActorConfig: {
411
411
  host: string;
412
412
  port: number;
413
413
  dataLake?: import("./index.ts").DataLakeConfig | undefined;
414
- mnemonic?: string | undefined;
414
+ accountPath?: string | undefined;
415
415
  healthCheckPort?: number | undefined;
416
416
  }) | undefined;
417
417
  <T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
@@ -491,7 +491,7 @@ export declare const toHostActorConfig: {
491
491
  host: string;
492
492
  port: number;
493
493
  dataLake?: import("./index.ts").DataLakeConfig | undefined;
494
- mnemonic?: string | undefined;
494
+ accountPath?: string | undefined;
495
495
  healthCheckPort?: number | undefined;
496
496
  };
497
497
  };
@@ -89,7 +89,7 @@ export declare const ActorConfigContext: z.ZodObject<{
89
89
  backoffMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
90
90
  }, z.core.$strip>>;
91
91
  name: z.ZodString;
92
- mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
92
+ accountPath: z.ZodOptional<z.ZodString>;
93
93
  healthCheckPort: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
94
94
  }, z.core.$strip>;
95
95
  }, z.core.$strip>;
@@ -174,7 +174,7 @@ export declare const isActorConfigContext: <T>(value: T) => value is T & {
174
174
  };
175
175
  name: string;
176
176
  dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
177
- mnemonic?: string | undefined;
177
+ accountPath?: string | undefined;
178
178
  healthCheckPort?: number | undefined;
179
179
  };
180
180
  logger?: import("@xylabs/sdk-js").Logger | undefined;
@@ -263,7 +263,7 @@ export declare const asActorConfigContext: {
263
263
  };
264
264
  name: string;
265
265
  dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
266
- mnemonic?: string | undefined;
266
+ accountPath?: string | undefined;
267
267
  healthCheckPort?: number | undefined;
268
268
  };
269
269
  logger?: import("@xylabs/sdk-js").Logger | undefined;
@@ -350,7 +350,7 @@ export declare const asActorConfigContext: {
350
350
  };
351
351
  name: string;
352
352
  dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
353
- mnemonic?: string | undefined;
353
+ accountPath?: string | undefined;
354
354
  healthCheckPort?: number | undefined;
355
355
  };
356
356
  logger?: import("@xylabs/sdk-js").Logger | undefined;
@@ -440,7 +440,7 @@ export declare const toActorConfigContext: {
440
440
  };
441
441
  name: string;
442
442
  dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
443
- mnemonic?: string | undefined;
443
+ accountPath?: string | undefined;
444
444
  healthCheckPort?: number | undefined;
445
445
  };
446
446
  logger?: import("@xylabs/sdk-js").Logger | undefined;
@@ -527,7 +527,7 @@ export declare const toActorConfigContext: {
527
527
  };
528
528
  name: string;
529
529
  dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
530
- mnemonic?: string | undefined;
530
+ accountPath?: string | undefined;
531
531
  healthCheckPort?: number | undefined;
532
532
  };
533
533
  logger?: import("@xylabs/sdk-js").Logger | undefined;
@@ -89,7 +89,7 @@ export declare const HostActorConfigContext: z.ZodObject<{
89
89
  backoffMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
90
90
  }, z.core.$strip>>;
91
91
  name: z.ZodString;
92
- mnemonic: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
92
+ accountPath: z.ZodOptional<z.ZodString>;
93
93
  healthCheckPort: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
94
94
  host: z.ZodDefault<z.ZodString>;
95
95
  port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -178,7 +178,7 @@ export declare const isHostActorConfigContext: <T>(value: T) => value is T & {
178
178
  host: string;
179
179
  port: number;
180
180
  dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
181
- mnemonic?: string | undefined;
181
+ accountPath?: string | undefined;
182
182
  healthCheckPort?: number | undefined;
183
183
  };
184
184
  logger?: import("@xylabs/sdk-js").Logger | undefined;
@@ -269,7 +269,7 @@ export declare const asHostActorConfigContext: {
269
269
  host: string;
270
270
  port: number;
271
271
  dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
272
- mnemonic?: string | undefined;
272
+ accountPath?: string | undefined;
273
273
  healthCheckPort?: number | undefined;
274
274
  };
275
275
  logger?: import("@xylabs/sdk-js").Logger | undefined;
@@ -358,7 +358,7 @@ export declare const asHostActorConfigContext: {
358
358
  host: string;
359
359
  port: number;
360
360
  dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
361
- mnemonic?: string | undefined;
361
+ accountPath?: string | undefined;
362
362
  healthCheckPort?: number | undefined;
363
363
  };
364
364
  logger?: import("@xylabs/sdk-js").Logger | undefined;
@@ -450,7 +450,7 @@ export declare const toHostActorConfigContext: {
450
450
  host: string;
451
451
  port: number;
452
452
  dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
453
- mnemonic?: string | undefined;
453
+ accountPath?: string | undefined;
454
454
  healthCheckPort?: number | undefined;
455
455
  };
456
456
  logger?: import("@xylabs/sdk-js").Logger | undefined;
@@ -539,7 +539,7 @@ export declare const toHostActorConfigContext: {
539
539
  host: string;
540
540
  port: number;
541
541
  dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
542
- mnemonic?: string | undefined;
542
+ accountPath?: string | undefined;
543
543
  healthCheckPort?: number | undefined;
544
544
  };
545
545
  logger?: import("@xylabs/sdk-js").Logger | undefined;
@@ -151,7 +151,7 @@ export declare function getFileConfig(searchPlaces?: string[]): Promise<{
151
151
  };
152
152
  name: string;
153
153
  dataLake?: import("./config/index.ts").DataLakeConfig | undefined;
154
- mnemonic?: string | undefined;
154
+ accountPath?: string | undefined;
155
155
  healthCheckPort?: number | undefined;
156
156
  }[];
157
157
  dataLake?: import("./config/index.ts").DataLakeConfig | undefined;