@settlemint/dalp-cli 3.0.7-release.28515929219 → 3.0.7-release.28533391978

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 +43 -3
  2. package/package.json +1 -1
package/dist/dalp.js CHANGED
@@ -131281,6 +131281,23 @@ var InvitationV2InviteWithRolesOutputSchema = exports_external.object({
131281
131281
  onChainRoles: exports_external.array(systemAccessControlRole),
131282
131282
  expiresAt: timestamp()
131283
131283
  });
131284
+ var InvitationV2ResendWithRolesInputSchema = exports_external.object({
131285
+ invitationId: exports_external.string().min(1, "invitationId is required"),
131286
+ walletVerification: UserVerificationSchema.optional()
131287
+ });
131288
+ var InvitationV2ResendWithRolesOutputSchema = exports_external.object({
131289
+ id: exports_external.string(),
131290
+ email: exports_external.string(),
131291
+ role: exports_external.string(),
131292
+ status: exports_external.enum(["pending", "accepted", "rejected", "canceled"]),
131293
+ expiresAt: timestamp()
131294
+ });
131295
+ var InvitationV2HasOnChainRolesParamsSchema = exports_external.object({
131296
+ invitationId: exports_external.string().min(1, "invitationId is required")
131297
+ });
131298
+ var InvitationV2HasOnChainRolesOutputSchema = exports_external.object({
131299
+ hasOnChainRoles: exports_external.boolean()
131300
+ });
131284
131301
  var TAGS26 = [V2_TAG.invitation];
131285
131302
  var deploy = v2Contract.route({
131286
131303
  method: "POST",
@@ -131324,13 +131341,29 @@ var inviteWithRoles = v2Contract.route({
131324
131341
  successDescription: "Invitation created with the selected on-chain roles recorded and authorized.",
131325
131342
  tags: [...TAGS26]
131326
131343
  }).input(v2Input.body(InvitationV2InviteWithRolesInputSchema)).output(InvitationV2InviteWithRolesOutputSchema);
131344
+ var resendWithRoles = v2Contract.route({
131345
+ method: "POST",
131346
+ path: "/role-invitation-resends",
131347
+ 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.",
131348
+ successDescription: "Invitation re-issued with the original on-chain roles recorded and re-authorized.",
131349
+ tags: [...TAGS26]
131350
+ }).input(v2Input.body(InvitationV2ResendWithRolesInputSchema)).output(InvitationV2ResendWithRolesOutputSchema);
131351
+ var hasOnChainRoles = v2Contract.route({
131352
+ method: "GET",
131353
+ path: "/role-invitations/{invitationId}/has-roles",
131354
+ 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.",
131355
+ successDescription: "Derived boolean indicating whether the invitation carries on-chain roles.",
131356
+ tags: [...TAGS26]
131357
+ }).input(v2Input.params(InvitationV2HasOnChainRolesParamsSchema)).output(InvitationV2HasOnChainRolesOutputSchema);
131327
131358
  var invitationV2Contract = {
131328
131359
  deploy,
131329
131360
  accept,
131330
131361
  deployStream,
131331
131362
  deployStatus,
131332
131363
  retry,
131333
- inviteWithRoles
131364
+ inviteWithRoles,
131365
+ resendWithRoles,
131366
+ hasOnChainRoles
131334
131367
  };
131335
131368
  var Bytes32HashSchema = exports_external.string().regex(/^0x[0-9a-fA-F]{64}$/, "Expected a 0x-prefixed bytes32 hex string");
131336
131369
  var MetadataV2ReadInputSchema = exports_external.object({
@@ -140530,7 +140563,7 @@ function normalizeDalpBaseUrl(url2) {
140530
140563
  }
140531
140564
  var package_default = {
140532
140565
  name: "@settlemint/dalp-sdk",
140533
- version: "3.0.7-release.28515929219",
140566
+ version: "3.0.7-release.28533391978",
140534
140567
  private: false,
140535
140568
  description: "Fully typed SDK for the DALP tokenization platform API",
140536
140569
  homepage: "https://settlemint.com",
@@ -141714,7 +141747,7 @@ var failedStateSet = new Set(FAILED_TRANSACTION_STATES);
141714
141747
  // package.json
141715
141748
  var package_default2 = {
141716
141749
  name: "@settlemint/dalp-cli",
141717
- version: "3.0.7-release.28515929219",
141750
+ version: "3.0.7-release.28533391978",
141718
141751
  private: false,
141719
141752
  description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
141720
141753
  homepage: "https://settlemint.com",
@@ -204560,6 +204593,13 @@ invitation.command("invite-with-roles", {
204560
204593
  });
204561
204594
  }
204562
204595
  });
204596
+ invitation.command("resend-with-roles", {
204597
+ 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.",
204598
+ args: exports_external.object({ invitationId: exports_external.string().describe("Invitation ID to resend") }),
204599
+ run(c) {
204600
+ return c.var.orpc.invitation.resendWithRoles({ body: { invitationId: c.args.invitationId } });
204601
+ }
204602
+ });
204563
204603
  organizationsCommand.command(invitation);
204564
204604
 
204565
204605
  // 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-release.28515929219",
3
+ "version": "3.0.7-release.28533391978",
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",