@settlemint/dalp-cli 3.0.6-main.28364026263 → 3.0.6-main.28365647577

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 +50 -5
  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,
@@ -135325,9 +135351,19 @@ var HistoryRowSchema = exports_external.object({
135325
135351
  serviceLabel: exports_external.string(),
135326
135352
  days: exports_external.array(HistoryCellSchema).max(HISTORY_DAYS_MAX)
135327
135353
  });
135354
+ var HistoryNetworkRowSchema = exports_external.object({
135355
+ kind: PlatformStatusV2HistoryRowKindSchema,
135356
+ days: exports_external.array(HistoryCellSchema).max(HISTORY_DAYS_MAX)
135357
+ });
135358
+ var HistoryNetworkSchema = exports_external.object({
135359
+ chainId: exports_external.number().int(),
135360
+ networkName: exports_external.string(),
135361
+ rows: exports_external.array(HistoryNetworkRowSchema)
135362
+ });
135328
135363
  var PlatformStatusV2HistoryOutputSchema = exports_external.object({
135329
135364
  generatedAt: timestamp(),
135330
- rows: exports_external.array(HistoryRowSchema)
135365
+ rows: exports_external.array(HistoryRowSchema),
135366
+ networks: exports_external.array(HistoryNetworkSchema).optional()
135331
135367
  });
135332
135368
  var PlatformStatusV2DataFreshnessInputSchema = exports_external.object({}).strict();
135333
135369
  var PlatformStatusV2DataFreshnessOutputSchema = PanelSchema.extend({
@@ -135448,8 +135484,8 @@ var PlatformStatusV2WorkflowsListInputSchema = exports_external.object({
135448
135484
  }).strict();
135449
135485
  var WorkflowInvocationRowSchema = exports_external.object({
135450
135486
  id: exports_external.string().meta({
135451
- description: "Restate invocation id",
135452
- examples: ["inv_1a2b3c4d5e6f7g8h9i0j"]
135487
+ description: "Stable unique identifier for the row: the Restate invocation id for live invocations, or the durable completion-event id for rows sourced from the persisted completion log (which carries no Restate invocation id).",
135488
+ examples: ["inv_1a2b3c4d5e6f7g8h9i0j", "0195a3f2-7c4d-7e8a-9b1c-2d3e4f5a6b7c"]
135453
135489
  }),
135454
135490
  workflowType: exports_external.string().meta({
135455
135491
  description: "Workflow / virtual-object service name (Restate target_service_name)",
@@ -144562,7 +144598,7 @@ function normalizeDalpBaseUrl(url2) {
144562
144598
  }
144563
144599
  var package_default = {
144564
144600
  name: "@settlemint/dalp-sdk",
144565
- version: "3.0.6-main.28364026263",
144601
+ version: "3.0.6-main.28365647577",
144566
144602
  private: false,
144567
144603
  description: "Fully typed SDK for the DALP tokenization platform API",
144568
144604
  homepage: "https://settlemint.com",
@@ -145807,7 +145843,7 @@ var failedStateSet = new Set(FAILED_TRANSACTION_STATES);
145807
145843
  // package.json
145808
145844
  var package_default2 = {
145809
145845
  name: "@settlemint/dalp-cli",
145810
- version: "3.0.6-main.28364026263",
145846
+ version: "3.0.6-main.28365647577",
145811
145847
  private: false,
145812
145848
  description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
145813
145849
  homepage: "https://settlemint.com",
@@ -146858,6 +146894,15 @@ participantsCommand.command("smart-wallet-read", {
146858
146894
  });
146859
146895
  }
146860
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
+ });
146861
146906
 
146862
146907
  // src/commands/contacts.ts
146863
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.28364026263",
3
+ "version": "3.0.6-main.28365647577",
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",