@hsuite/smart-engines-sdk 3.6.1 → 3.7.0

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.
@@ -255,6 +255,30 @@ declare const TokenInfoSchema: z.ZodObject<{
255
255
  circulatingSupply?: string | undefined;
256
256
  }>;
257
257
  export type TokenInfo = z.infer<typeof TokenInfoSchema>;
258
+ declare const RuleRefSchema: z.ZodObject<{
259
+ chain: z.ZodEnum<[
260
+ "hedera",
261
+ "xrpl",
262
+ "polkadot",
263
+ "solana",
264
+ "stellar",
265
+ "ethereum",
266
+ "polygon",
267
+ "bitcoin",
268
+ "cardano"
269
+ ]>;
270
+ topicId: z.ZodString;
271
+ consensusTimestamp: z.ZodString;
272
+ }, "strip", z.ZodTypeAny, {
273
+ chain: "hedera" | "xrpl" | "polkadot" | "solana" | "stellar" | "ethereum" | "polygon" | "bitcoin" | "cardano";
274
+ topicId: string;
275
+ consensusTimestamp: string;
276
+ }, {
277
+ chain: "hedera" | "xrpl" | "polkadot" | "solana" | "stellar" | "ethereum" | "polygon" | "bitcoin" | "cardano";
278
+ topicId: string;
279
+ consensusTimestamp: string;
280
+ }>;
281
+ export type RuleRefInput = z.infer<typeof RuleRefSchema>;
258
282
  declare const CreateAccountRequestSchema: z.ZodObject<{
259
283
  chain: z.ZodEnum<[
260
284
  "hedera",
@@ -279,6 +303,30 @@ declare const CreateAccountRequestSchema: z.ZodObject<{
279
303
  "full"
280
304
  ]>>;
281
305
  appOwnerPublicKey: z.ZodOptional<z.ZodString>;
306
+ ruleRef: z.ZodOptional<z.ZodObject<{
307
+ chain: z.ZodEnum<[
308
+ "hedera",
309
+ "xrpl",
310
+ "polkadot",
311
+ "solana",
312
+ "stellar",
313
+ "ethereum",
314
+ "polygon",
315
+ "bitcoin",
316
+ "cardano"
317
+ ]>;
318
+ topicId: z.ZodString;
319
+ consensusTimestamp: z.ZodString;
320
+ }, "strip", z.ZodTypeAny, {
321
+ chain: "hedera" | "xrpl" | "polkadot" | "solana" | "stellar" | "ethereum" | "polygon" | "bitcoin" | "cardano";
322
+ topicId: string;
323
+ consensusTimestamp: string;
324
+ }, {
325
+ chain: "hedera" | "xrpl" | "polkadot" | "solana" | "stellar" | "ethereum" | "polygon" | "bitcoin" | "cardano";
326
+ topicId: string;
327
+ consensusTimestamp: string;
328
+ }>>;
329
+ entityType: z.ZodOptional<z.ZodString>;
282
330
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
283
331
  }, "strip", z.ZodTypeAny, {
284
332
  chain: "hedera" | "xrpl" | "polkadot" | "solana" | "stellar" | "ethereum" | "polygon" | "bitcoin" | "cardano";
@@ -292,6 +340,12 @@ declare const CreateAccountRequestSchema: z.ZodObject<{
292
340
  appOwnerPublicKey?: string | undefined;
293
341
  memo?: string | undefined;
294
342
  payerAccountId?: string | undefined;
343
+ ruleRef?: {
344
+ chain: "hedera" | "xrpl" | "polkadot" | "solana" | "stellar" | "ethereum" | "polygon" | "bitcoin" | "cardano";
345
+ topicId: string;
346
+ consensusTimestamp: string;
347
+ } | undefined;
348
+ entityType?: string | undefined;
295
349
  }, {
296
350
  chain: "hedera" | "xrpl" | "polkadot" | "solana" | "stellar" | "ethereum" | "polygon" | "bitcoin" | "cardano";
297
351
  initialBalance: string;
@@ -304,6 +358,12 @@ declare const CreateAccountRequestSchema: z.ZodObject<{
304
358
  memo?: string | undefined;
305
359
  payerAccountId?: string | undefined;
306
360
  immutable?: boolean | undefined;
361
+ ruleRef?: {
362
+ chain: "hedera" | "xrpl" | "polkadot" | "solana" | "stellar" | "ethereum" | "polygon" | "bitcoin" | "cardano";
363
+ topicId: string;
364
+ consensusTimestamp: string;
365
+ } | undefined;
366
+ entityType?: string | undefined;
307
367
  }>;
308
368
  export type CreateAccountRequest = z.infer<typeof CreateAccountRequestSchema>;
309
369
  declare const CreateAccountResponseSchema: z.ZodObject<{
@@ -462,6 +522,30 @@ declare const CreateTokenRequestSchema: z.ZodObject<{
462
522
  validatorTopicId: z.ZodString;
463
523
  immutable: z.ZodDefault<z.ZodBoolean>;
464
524
  payerAccountId: z.ZodOptional<z.ZodString>;
525
+ ruleRef: z.ZodOptional<z.ZodObject<{
526
+ chain: z.ZodEnum<[
527
+ "hedera",
528
+ "xrpl",
529
+ "polkadot",
530
+ "solana",
531
+ "stellar",
532
+ "ethereum",
533
+ "polygon",
534
+ "bitcoin",
535
+ "cardano"
536
+ ]>;
537
+ topicId: z.ZodString;
538
+ consensusTimestamp: z.ZodString;
539
+ }, "strip", z.ZodTypeAny, {
540
+ chain: "hedera" | "xrpl" | "polkadot" | "solana" | "stellar" | "ethereum" | "polygon" | "bitcoin" | "cardano";
541
+ topicId: string;
542
+ consensusTimestamp: string;
543
+ }, {
544
+ chain: "hedera" | "xrpl" | "polkadot" | "solana" | "stellar" | "ethereum" | "polygon" | "bitcoin" | "cardano";
545
+ topicId: string;
546
+ consensusTimestamp: string;
547
+ }>>;
548
+ entityType: z.ZodOptional<z.ZodString>;
465
549
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
466
550
  }, "strip", z.ZodTypeAny, {
467
551
  symbol: string;
@@ -484,6 +568,12 @@ declare const CreateTokenRequestSchema: z.ZodObject<{
484
568
  initialSupply: string;
485
569
  metadata?: Record<string, any> | undefined;
486
570
  payerAccountId?: string | undefined;
571
+ ruleRef?: {
572
+ chain: "hedera" | "xrpl" | "polkadot" | "solana" | "stellar" | "ethereum" | "polygon" | "bitcoin" | "cardano";
573
+ topicId: string;
574
+ consensusTimestamp: string;
575
+ } | undefined;
576
+ entityType?: string | undefined;
487
577
  treasury?: string | undefined;
488
578
  }, {
489
579
  symbol: string;
@@ -506,6 +596,12 @@ declare const CreateTokenRequestSchema: z.ZodObject<{
506
596
  metadata?: Record<string, any> | undefined;
507
597
  payerAccountId?: string | undefined;
508
598
  immutable?: boolean | undefined;
599
+ ruleRef?: {
600
+ chain: "hedera" | "xrpl" | "polkadot" | "solana" | "stellar" | "ethereum" | "polygon" | "bitcoin" | "cardano";
601
+ topicId: string;
602
+ consensusTimestamp: string;
603
+ } | undefined;
604
+ entityType?: string | undefined;
509
605
  treasury?: string | undefined;
510
606
  }>;
511
607
  export type CreateTokenRequest = z.infer<typeof CreateTokenRequestSchema>;
@@ -2148,6 +2244,8 @@ export type PrepareTransferRequest = {
2148
2244
  securityMode?: SecurityMode;
2149
2245
  appOwnerPublicKey?: string;
2150
2246
  ss58Format?: number;
2247
+ ruleRef?: RuleRefInput;
2248
+ entityType?: string;
2151
2249
  };
2152
2250
  export type PrepareNftMintRequest = {
2153
2251
  chain: ChainType;
@@ -3341,6 +3439,18 @@ declare class AgentsClient {
3341
3439
  success: boolean;
3342
3440
  }>;
3343
3441
  }
3442
+ export type BuildAttestation = {
3443
+ readonly version: "1";
3444
+ readonly appId: string;
3445
+ readonly developerWallet: string;
3446
+ readonly developerChain: ChainType;
3447
+ readonly framework: "ionic" | "nestjs";
3448
+ readonly sdkVersion: string;
3449
+ readonly imageDigest: string;
3450
+ readonly bundleSha256: string;
3451
+ readonly cliVersion: string;
3452
+ readonly builtAt: number;
3453
+ };
3344
3454
  export type BaasService = "auth" | "database" | "storage" | "functions" | "messaging";
3345
3455
  export type BaasSupportedChain = "hedera" | "xrpl" | "polkadot" | "solana";
3346
3456
  export type BaasEndpoints = {
@@ -3598,6 +3708,10 @@ export type BaasDeployRequest = {
3598
3708
  memory?: string;
3599
3709
  };
3600
3710
  strategy?: "rolling" | "recreate";
3711
+ attestation?: {
3712
+ payload: BuildAttestation;
3713
+ signature: string;
3714
+ };
3601
3715
  };
3602
3716
  export type BaasDeployResponse = {
3603
3717
  appId: string;
@@ -199,6 +199,14 @@ var PreparedTransactionSovereigntySchema = zod.z.discriminatedUnion("mode", [
199
199
  authorizationSet: PreparedTransactionAuthorizationSetSchema.optional()
200
200
  })
201
201
  ]);
202
+ var RuleRefSchema = zod.z.object({
203
+ /** Chain whose HCS the rule was published on (canonically 'hedera'). */
204
+ chain: ChainTypeSchema,
205
+ /** HCS topic ID the rule message was published to. */
206
+ topicId: zod.z.string().min(1),
207
+ /** HCS consensus timestamp of the rule message. */
208
+ consensusTimestamp: zod.z.string().min(1)
209
+ });
202
210
  var CreateAccountRequestSchema = zod.z.object({
203
211
  chain: ChainTypeSchema,
204
212
  initialBalance: zod.z.string(),
@@ -238,6 +246,22 @@ var CreateAccountRequestSchema = zod.z.object({
238
246
  * The owner key + TSS network key form a threshold-2 multi-sig.
239
247
  */
240
248
  appOwnerPublicKey: zod.z.string().optional(),
249
+ /**
250
+ * The entity's canonical `ruleRef` (HCS pointer to its `ValidatorRules`). When
251
+ * present, the chain adapter stamps the IMMUTABLE creation-tx rule anchor
252
+ * (`rule:<topicId>@<consensusTimestamp>:<entityType>`) — distinct from the
253
+ * mutable validator-binding memo — so the sign-gate resolves the rule on-chain
254
+ * (kind:'ref') rather than trusting the replicated binding
255
+ * (RFC 2026-06-15-onchain-rule-anchor §6.1). Absent ⇒ the degraded
256
+ * `rule:bootstrap:<entityType>` marker when `entityType` is supplied.
257
+ */
258
+ ruleRef: RuleRefSchema.optional(),
259
+ /**
260
+ * Entity-type tag stamped into the rule anchor (e.g. 'wallet', 'account').
261
+ * Supply it to enable the on-chain anchor; omit for the prior memo-less
262
+ * (legacy) behaviour.
263
+ */
264
+ entityType: zod.z.string().min(1).optional(),
241
265
  metadata: zod.z.record(zod.z.any()).optional()
242
266
  });
243
267
  zod.z.object({
@@ -325,6 +349,21 @@ var CreateTokenRequestSchema = zod.z.object({
325
349
  immutable: zod.z.boolean().default(true),
326
350
  /** See CreateAccountRequestSchema.payerAccountId — same resolution rules. */
327
351
  payerAccountId: zod.z.string().optional(),
352
+ /**
353
+ * The entity's canonical `ruleRef` (HCS pointer to its `ValidatorRules`). When
354
+ * present, the chain adapter stamps the IMMUTABLE creation-tx rule anchor
355
+ * (`rule:<topicId>@<consensusTimestamp>:<entityType>`) — distinct from the
356
+ * mutable validator-binding token memo — so the sign-gate resolves the rule
357
+ * on-chain (kind:'ref') rather than trusting the replicated binding
358
+ * (RFC 2026-06-15-onchain-rule-anchor §6.1). Absent ⇒ the degraded
359
+ * `rule:bootstrap:<entityType>` marker when `entityType` is supplied.
360
+ */
361
+ ruleRef: RuleRefSchema.optional(),
362
+ /**
363
+ * Entity-type tag stamped into the rule anchor (e.g. 'token'). Supply it to
364
+ * enable the on-chain anchor; omit for the prior memo-less behaviour.
365
+ */
366
+ entityType: zod.z.string().min(1).optional(),
328
367
  metadata: zod.z.record(zod.z.any()).optional()
329
368
  });
330
369
  zod.z.object({