@settlemint/dalp-cli 3.0.6-main.28364766854 → 3.0.6-main.28365672069

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 +37 -2
  2. package/package.json +1 -1
package/dist/dalp.js CHANGED
@@ -135153,6 +135153,24 @@ var ParticipantActivityParamsSchema = exports_external.object({
135153
135153
  examples: ["par_01HXYZ"]
135154
135154
  })
135155
135155
  });
135156
+ var AssumableParticipantGatingRoleSchema = exports_external.enum(["organisationIdentityManager", "admin"]);
135157
+ var AssumableParticipantKindSchema = exports_external.enum(["person", "organisation"]);
135158
+ var AssumableParticipantSchema = exports_external.object({
135159
+ id: exports_external.string(),
135160
+ kind: AssumableParticipantKindSchema,
135161
+ displayName: exports_external.string().nullable(),
135162
+ gatingRole: AssumableParticipantGatingRoleSchema.nullable()
135163
+ });
135164
+ var ASSUMABLE_PARTICIPANTS_COLLECTION_FIELDS = {
135165
+ kind: enumField(AssumableParticipantKindSchema.options, {
135166
+ defaultOperator: "eq",
135167
+ facetable: false
135168
+ }),
135169
+ displayName: textField()
135170
+ };
135171
+ var AssumableParticipantsCollectionInputSchema = createCollectionInputSchema(ASSUMABLE_PARTICIPANTS_COLLECTION_FIELDS, { defaultSort: "displayName" });
135172
+ var AssumableParticipantsV2ListInputSchema = AssumableParticipantsCollectionInputSchema;
135173
+ var AssumableParticipantsV2ListOutputSchema = createPaginatedResponse(AssumableParticipantSchema);
135156
135174
  var ParticipantAddressPurposeSchema = exports_external.enum(["transfer", "identity", "participant"]);
135157
135175
  var ParticipantKindSchema = exports_external.enum([
135158
135176
  "person",
@@ -135234,8 +135252,16 @@ var activityStats = v2Contract.route({
135234
135252
  successDescription: "Activity statistics retrieved successfully.",
135235
135253
  tags: [V2_TAG.participants]
135236
135254
  }).input(v2Input.paramsQuery(ParticipantActivityParamsSchema, ActivityStatsInputSchema.omit({ accountAddress: true }))).output(createSingleResponse(ActivityStatsOutputSchema));
135255
+ var assumableList = v2Contract.route({
135256
+ method: "GET",
135257
+ path: "/participants/assumable",
135258
+ description: "List the participants the authenticated user may assume — their own person participant plus every organisation participant whose org they hold a gating role in (ORGANISATION_IDENTITY_MANAGER_ROLE or DEFAULT_ADMIN_ROLE). Powers the acting-as switcher.",
135259
+ successDescription: "Paginated array of assumable participant entries with kind and gating role.",
135260
+ tags: [V2_TAG.participants]
135261
+ }).input(v2Input.query(AssumableParticipantsV2ListInputSchema)).output(AssumableParticipantsV2ListOutputSchema);
135237
135262
  var participantsV2Contract = {
135238
135263
  list: list23,
135264
+ assumableList,
135239
135265
  addressKinds,
135240
135266
  smartWalletRead,
135241
135267
  activityList,
@@ -144572,7 +144598,7 @@ function normalizeDalpBaseUrl(url2) {
144572
144598
  }
144573
144599
  var package_default = {
144574
144600
  name: "@settlemint/dalp-sdk",
144575
- version: "3.0.6-main.28364766854",
144601
+ version: "3.0.6-main.28365672069",
144576
144602
  private: false,
144577
144603
  description: "Fully typed SDK for the DALP tokenization platform API",
144578
144604
  homepage: "https://settlemint.com",
@@ -145817,7 +145843,7 @@ var failedStateSet = new Set(FAILED_TRANSACTION_STATES);
145817
145843
  // package.json
145818
145844
  var package_default2 = {
145819
145845
  name: "@settlemint/dalp-cli",
145820
- version: "3.0.6-main.28364766854",
145846
+ version: "3.0.6-main.28365672069",
145821
145847
  private: false,
145822
145848
  description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
145823
145849
  homepage: "https://settlemint.com",
@@ -146868,6 +146894,15 @@ participantsCommand.command("smart-wallet-read", {
146868
146894
  });
146869
146895
  }
146870
146896
  });
146897
+ participantsCommand.command("assumable-list", {
146898
+ description: "List the participants the authenticated user may assume — own person participant plus organisation participants where a gating role is held",
146899
+ options: paginationOptionsSchema,
146900
+ run(c) {
146901
+ return c.var.orpc.participants.assumableList({
146902
+ query: toCanonicalQuery(c.options)
146903
+ });
146904
+ }
146905
+ });
146871
146906
 
146872
146907
  // src/commands/contacts.ts
146873
146908
  var contactsCommand = exports_Cli.create("contacts", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-cli",
3
- "version": "3.0.6-main.28364766854",
3
+ "version": "3.0.6-main.28365672069",
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",