@settlemint/dalp-cli 3.0.7-main.28622819856 → 3.0.7-main.28643090779

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.
Files changed (2) hide show
  1. package/dist/dalp.js +59 -6
  2. package/package.json +1 -1
package/dist/dalp.js CHANGED
@@ -133591,6 +133591,23 @@ var InvitationV2InviteWithRolesOutputSchema = exports_external.object({
133591
133591
  onChainRoles: exports_external.array(systemAccessControlRole),
133592
133592
  expiresAt: timestamp()
133593
133593
  });
133594
+ var InvitationV2ResendWithRolesInputSchema = exports_external.object({
133595
+ invitationId: exports_external.string().min(1, "invitationId is required"),
133596
+ walletVerification: UserVerificationSchema.optional()
133597
+ });
133598
+ var InvitationV2ResendWithRolesOutputSchema = exports_external.object({
133599
+ id: exports_external.string(),
133600
+ email: exports_external.string(),
133601
+ role: exports_external.string(),
133602
+ status: exports_external.enum(["pending", "accepted", "rejected", "canceled"]),
133603
+ expiresAt: timestamp()
133604
+ });
133605
+ var InvitationV2HasOnChainRolesParamsSchema = exports_external.object({
133606
+ invitationId: exports_external.string().min(1, "invitationId is required")
133607
+ });
133608
+ var InvitationV2HasOnChainRolesOutputSchema = exports_external.object({
133609
+ hasOnChainRoles: exports_external.boolean()
133610
+ });
133594
133611
  var TAGS30 = [V2_TAG.invitation];
133595
133612
  var deploy = v2Contract.route({
133596
133613
  method: "POST",
@@ -133634,13 +133651,29 @@ var inviteWithRoles = v2Contract.route({
133634
133651
  successDescription: "Invitation created with the selected on-chain roles recorded and authorized.",
133635
133652
  tags: [...TAGS30]
133636
133653
  }).input(v2Input.body(InvitationV2InviteWithRolesInputSchema)).output(InvitationV2InviteWithRolesOutputSchema);
133654
+ var resendWithRoles = v2Contract.route({
133655
+ method: "POST",
133656
+ path: "/role-invitation-resends",
133657
+ description: "Re-issue a role-bearing invitation with its original on-chain roles preserved, gated on the inviter's wallet verification (PIN / OTP / OIDC-MFA). The roles are sourced server-side from the existing invitation (tenant-scoped, keyed by invitationId) — the client supplies only the invitation id and a PIN, never the roles. The standard resend path drops the invite-time roles; this route preserves them. Role-less invitations use the standard resend path instead.",
133658
+ successDescription: "Invitation re-issued with the original on-chain roles recorded and re-authorized.",
133659
+ tags: [...TAGS30]
133660
+ }).input(v2Input.body(InvitationV2ResendWithRolesInputSchema)).output(InvitationV2ResendWithRolesOutputSchema);
133661
+ var hasOnChainRoles = v2Contract.route({
133662
+ method: "GET",
133663
+ path: "/role-invitations/{invitationId}/has-roles",
133664
+ description: "Report whether an invitation carries at least one authorized on-chain role (existence, not authority). The resend dialog reads this to decide the PIN-gated vs no-PIN resend path. Returns only the derived boolean — never the role list, which stays server-only.",
133665
+ successDescription: "Derived boolean indicating whether the invitation carries on-chain roles.",
133666
+ tags: [...TAGS30]
133667
+ }).input(v2Input.params(InvitationV2HasOnChainRolesParamsSchema)).output(InvitationV2HasOnChainRolesOutputSchema);
133637
133668
  var invitationV2Contract = {
133638
133669
  deploy,
133639
133670
  accept,
133640
133671
  deployStream,
133641
133672
  deployStatus,
133642
133673
  retry,
133643
- inviteWithRoles
133674
+ inviteWithRoles,
133675
+ resendWithRoles,
133676
+ hasOnChainRoles
133644
133677
  };
133645
133678
  var Bytes32HashSchema = exports_external.string().regex(/^0x[0-9a-fA-F]{64}$/, "Expected a 0x-prefixed bytes32 hex string");
133646
133679
  var MetadataV2ReadInputSchema = exports_external.object({
@@ -143448,7 +143481,7 @@ function normalizeDalpBaseUrl(url2) {
143448
143481
  }
143449
143482
  var package_default = {
143450
143483
  name: "@settlemint/dalp-sdk",
143451
- version: "3.0.7-main.28622819856",
143484
+ version: "3.0.7-main.28643090779",
143452
143485
  private: false,
143453
143486
  description: "Fully typed SDK for the DALP tokenization platform API",
143454
143487
  homepage: "https://settlemint.com",
@@ -143605,6 +143638,10 @@ function createDalpClient(config3) {
143605
143638
  if (idempotencyKey) {
143606
143639
  secured["Idempotency-Key"] = idempotencyKey;
143607
143640
  }
143641
+ const perCallIdempotencyKey = options.context?.idempotencyKey;
143642
+ if (perCallIdempotencyKey) {
143643
+ secured["Idempotency-Key"] = perCallIdempotencyKey;
143644
+ }
143608
143645
  if (organizationId) {
143609
143646
  secured["x-organization-id"] = organizationId;
143610
143647
  }
@@ -143619,9 +143656,18 @@ function createDalpClient(config3) {
143619
143656
  },
143620
143657
  plugins,
143621
143658
  customJsonSerializers: [
143622
- { condition: bigDecimalSerializer.condition, serialize: bigDecimalSerializer.serialize },
143623
- { condition: bigIntSerializer.condition, serialize: bigIntSerializer.serialize },
143624
- { condition: timestampSerializer.condition, serialize: timestampSerializer.serialize }
143659
+ {
143660
+ condition: bigDecimalSerializer.condition,
143661
+ serialize: bigDecimalSerializer.serialize
143662
+ },
143663
+ {
143664
+ condition: bigIntSerializer.condition,
143665
+ serialize: bigIntSerializer.serialize
143666
+ },
143667
+ {
143668
+ condition: timestampSerializer.condition,
143669
+ serialize: timestampSerializer.serialize
143670
+ }
143625
143671
  ],
143626
143672
  customErrorResponseBodyDecoder: decodeDapiErrorResponseBody,
143627
143673
  fetch: wrappedFetch
@@ -144699,7 +144745,7 @@ var failedStateSet = new Set(FAILED_TRANSACTION_STATES);
144699
144745
  // package.json
144700
144746
  var package_default2 = {
144701
144747
  name: "@settlemint/dalp-cli",
144702
- version: "3.0.7-main.28622819856",
144748
+ version: "3.0.7-main.28643090779",
144703
144749
  private: false,
144704
144750
  description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
144705
144751
  homepage: "https://settlemint.com",
@@ -209268,6 +209314,13 @@ invitation.command("invite-with-roles", {
209268
209314
  });
209269
209315
  }
209270
209316
  });
209317
+ invitation.command("resend-with-roles", {
209318
+ description: "Resend a role-bearing invitation preserving its original on-chain roles (re-granted on acceptance). The roles are re-sourced server-side from the existing invitation. PIN-gated for human sessions; API-key sessions skip wallet verification.",
209319
+ args: exports_external.object({ invitationId: exports_external.string().describe("Invitation ID to resend") }),
209320
+ run(c) {
209321
+ return c.var.orpc.invitation.resendWithRoles({ body: { invitationId: c.args.invitationId } });
209322
+ }
209323
+ });
209271
209324
  organizationsCommand.command(invitation);
209272
209325
 
209273
209326
  // src/commands/platform-status.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-cli",
3
- "version": "3.0.7-main.28622819856",
3
+ "version": "3.0.7-main.28643090779",
4
4
  "private": false,
5
5
  "description": "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
6
6
  "homepage": "https://settlemint.com",