@capxul/cli 4.20.0-beta.24 → 4.20.0-beta.26

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.
@@ -12974,12 +12974,17 @@
12974
12974
  * a PERMISSION denial — explicitly NOT an `INSUFFICIENT_BALANCE` (the treasury
12975
12975
  * held the funds; the role's authority is what bound). `reason` discriminates
12976
12976
  * the violated condition (`over_cap` / `daily_cap` / `not_member` /
12977
- * `disallowed_recipient` / `condition_violation`); leak-safe — no on-chain
12978
- * identifiers ever enter the details.
12977
+ * `disallowed_recipient` / `condition_violation` / `budget_exhausted`);
12978
+ * no Safe, Roles module or role key enters the details.
12979
+ * `budget_exhausted` carries what the Budget's allowance still holds and
12980
+ * what the spend needs, as asset amounts in major units (#2297); the asset
12981
+ * id names the public token contract.
12979
12982
  */
12980
- rolePermissionDenied: (details) => new CapxulError("ROLE_PERMISSION_DENIED", `Org role denied this spend on-chain (${details.reason}).`, { details: details.operation === void 0 ? { reason: details.reason } : {
12983
+ rolePermissionDenied: (details) => new CapxulError("ROLE_PERMISSION_DENIED", `Org role denied this spend on-chain (${details.reason}).`, { details: {
12981
12984
  reason: details.reason,
12982
- operation: details.operation
12985
+ ...details.operation === void 0 ? {} : { operation: details.operation },
12986
+ ...details.remaining === void 0 ? {} : { remaining: details.remaining },
12987
+ ...details.required === void 0 ? {} : { required: details.required }
12983
12988
  } }),
12984
12989
  /**
12985
12990
  * A transaction (or sponsored UserOp) failed. `details.reason` discriminates
@@ -14503,7 +14508,7 @@
14503
14508
  }), Struct({
14504
14509
  kind: Literal("movement"),
14505
14510
  id: String$1,
14506
- classification: Literal("movement_only_outflow"),
14511
+ classification: Literals(["deposit", "movement_only_outflow"]),
14507
14512
  amount: Amount,
14508
14513
  direction: Direction,
14509
14514
  counterpartyLabel: String$1,
@@ -19893,7 +19898,44 @@ faucetMint: Operation.action("accounts.grants.faucetMint", {
19893
19898
  ]
19894
19899
  })
19895
19900
  };
19901
+ /**
19902
+ * The home screen in one read. A section whose read failed is null, so the
19903
+ * caller shows it as unavailable, never as empty.
19904
+ */
19905
+ const HomeSchema = Struct({
19906
+ email: String$1,
19907
+ actingAs: Union([Struct({ kind: Literal("personal") }), Struct({
19908
+ kind: Literal("organization"),
19909
+ orgId: String$1
19910
+ })]),
19911
+ /** The acting Safe's position in each settlement asset of its chain. */
19912
+ balances: NullOr(ArraySchema(AssetPositionSchema)),
19913
+ /** The ids of what waits on the caller, newest first. */
19914
+ needsYou: NullOr(Struct({
19915
+ requestsToPay: ArraySchema(String$1),
19916
+ payrollToApprove: ArraySchema(String$1),
19917
+ paymentsToRetry: ArraySchema(String$1)
19918
+ })),
19919
+ /** The newest rows of the actor's activity. */
19920
+ recentActivity: NullOr(ArraySchema(ActivityItemSchema))
19921
+ });
19896
19922
  const summaries = {
19923
+ /**
19924
+ * Where the caller acts, its balances, what needs it and its newest activity,
19925
+ * for the person or for an Organization they take part in. One round trip.
19926
+ */
19927
+ home: Operation.action("accounts.summaries.home", {
19928
+ input: Struct({
19929
+ chainId: ChainIdSchema$1,
19930
+ orgId: optionalKey(NonEmptyString)
19931
+ }),
19932
+ output: HomeSchema,
19933
+ errors: [
19934
+ ...CALL$10,
19935
+ ...DEFECTS,
19936
+ "ROLE_PERMISSION_DENIED"
19937
+ ]
19938
+ }),
19897
19939
  /** The signed-in person: id, verified email and Profile display name. */
19898
19940
  me: Operation.query("accounts.summaries.me", {
19899
19941
  input: Struct({}),
@@ -21885,7 +21927,11 @@ read: Operation.action("organizations.treasuries.read", {
21885
21927
  const CALL$4 = ["NOT_AUTHENTICATED", "INVALID_INPUT"];
21886
21928
  /** The caller's own Account and Safe, which a Payment is signed from. */
21887
21929
  const ACCOUNT$1 = ["SMART_ACCOUNT_MISSING", "ACCOUNT_NOT_FOUND"];
21888
- /** Not a participant of the Organization, or no Budget in it that may pay for this. */
21930
+ /**
21931
+ * Not a participant of the Organization, no Budget in it that may pay for
21932
+ * this, or a Budget whose on-chain allowance holds less than the batch spends
21933
+ * (`budget_exhausted`, naming what is left).
21934
+ */
21889
21935
  const DENIED$1 = ["ROLE_PERMISSION_DENIED"];
21890
21936
  /** The command, its Payment or its execution is not in a state this applies to. */
21891
21937
  const STATE$3 = ["WRONG_STATE"];
@@ -22194,7 +22240,9 @@ read: Operation.action("organizations.treasuries.read", {
22194
22240
  const CALL$3 = ["NOT_AUTHENTICATED", "INVALID_INPUT"];
22195
22241
  /**
22196
22242
  * The caller does not take part in the Organization, or holds no Budget in it
22197
- * that may pay for this. A caller outside the Organization learns nothing more.
22243
+ * that may pay for this, or the Budget's on-chain allowance holds less than the
22244
+ * run pays (`budget_exhausted`, naming what is left). A caller outside the
22245
+ * Organization learns nothing more.
22198
22246
  */
22199
22247
  const DENIED = ["ROLE_PERMISSION_DENIED"];
22200
22248
  /**
@@ -23896,7 +23944,9 @@ emitSaved: "activity.annotations.emitSaved" },
23896
23944
  linkObservation: "payments.commands.linkObservation",
23897
23945
  failPrepared: "payments.commands.failPrepared",
23898
23946
  loadContext: "payments.commands.loadContext",
23899
- loadExecutionContext: "payments.commands.loadExecutionContext"
23947
+ loadExecutionContext: "payments.commands.loadExecutionContext",
23948
+ /** The capped Budget a prepared Organization command spends from, before its allowance is read on chain. */
23949
+ loadBudgetAllowance: "payments.commands.loadBudgetAllowance"
23900
23950
  },
23901
23951
  lifecycles: { prepareIntent: "payments.lifecycles.prepareIntent" },
23902
23952
  /** The stored UserOperation of every money command: Payment, Permission and configuration. */
@@ -25380,95 +25430,83 @@ emitChanged: "payroll.groups.emitChanged" }
25380
25430
  });
25381
25431
  //#endregion
25382
25432
  //#region ../../packages/observability/src/catalog/cli.ts
25383
- /** One completed online CLI diagnostic. No command input or provider text. */
25433
+ /** Every command path of the `capxul` tree, dot-separated, plus the root and `unknown`. */
25384
25434
  const CLI_COMMAND_NAMES = [
25385
- "status",
25386
- "request",
25387
- "request.list",
25388
- "request.get",
25389
- "request.cancel",
25390
- "offer",
25391
- "offer.create",
25392
- "offer.list",
25393
- "offer.get",
25394
- "offer.revise",
25395
- "offer.deactivate",
25396
- "org.offer",
25397
- "org.offer.create",
25398
- "org.offer.list",
25399
- "org.offer.get",
25400
- "org.offer.revise",
25401
- "org.offer.deactivate",
25402
- "request.issue",
25403
- "inbox",
25404
- CAPXUL_OPERATIONS.inbox.list,
25405
- "inbox.get",
25406
- "inbox.pay",
25407
- CAPXUL_OPERATIONS.inbox.decline,
25408
- "org.request",
25409
- "org.request.list",
25410
- "org.request.get",
25411
- "org.request.cancel",
25412
- "org.request.issue",
25413
- "org.inbox",
25414
- CAPXUL_OPERATIONS.org.inbox.list,
25415
- "org.inbox.get",
25416
- "org.inbox.pay",
25417
- CAPXUL_OPERATIONS.org.inbox.decline,
25418
25435
  "capxul",
25436
+ "home",
25419
25437
  "whoami",
25420
25438
  "use",
25421
25439
  "use.personal",
25422
25440
  "use.org",
25423
25441
  "use.env",
25424
- "doctor",
25425
- "telemetry",
25426
- "telemetry.status",
25427
- "telemetry.enable",
25428
- "telemetry.disable",
25429
25442
  "auth",
25430
25443
  "auth.login",
25431
- "auth.signup",
25432
- "auth.send",
25433
25444
  "auth.verify",
25434
25445
  "auth.switch",
25435
- "auth.profile",
25436
- "auth.status",
25437
25446
  "auth.logout",
25438
25447
  "account",
25439
- CAPXUL_OPERATIONS.account.status,
25440
- CAPXUL_OPERATIONS.account.balance,
25441
- "account.deposit",
25448
+ "account.show",
25442
25449
  "account.retry",
25443
- "document",
25444
- "document.get",
25445
- "document.verify",
25446
- "document.render",
25447
- "document.export",
25450
+ "balance",
25451
+ "address",
25448
25452
  "payment",
25453
+ "payment.send",
25449
25454
  "payment.list",
25450
25455
  "payment.get",
25451
25456
  "payment.wait",
25452
- "payment.send",
25453
25457
  "payment.retry",
25454
- "activity",
25455
- "activity.list",
25456
- "activity.get",
25457
- "activity.summary",
25458
- "activity.annotate",
25458
+ "inbox",
25459
+ CAPXUL_OPERATIONS.inbox.list,
25460
+ "inbox.get",
25461
+ "inbox.pay",
25462
+ CAPXUL_OPERATIONS.inbox.decline,
25463
+ "request",
25464
+ "request.issue",
25465
+ "request.list",
25466
+ "request.get",
25467
+ "request.cancel",
25468
+ "offer",
25469
+ "offer.create",
25470
+ "offer.list",
25471
+ "offer.get",
25472
+ "offer.revise",
25473
+ "offer.deactivate",
25459
25474
  "contact",
25475
+ "contact.add",
25460
25476
  "contact.list",
25461
25477
  "contact.get",
25462
- "contact.add",
25463
25478
  "contact.label",
25464
25479
  "contact.hide",
25465
25480
  "contact.unhide",
25481
+ "document",
25482
+ "document.get",
25483
+ "document.render",
25484
+ "document.export",
25485
+ "document.verify",
25486
+ "activity",
25487
+ "activity.list",
25488
+ "activity.get",
25489
+ "activity.summary",
25490
+ "activity.annotate",
25491
+ "invite",
25492
+ "invite.list",
25493
+ "invite.accept",
25494
+ "invite.decline",
25466
25495
  "org",
25467
25496
  CAPXUL_OPERATIONS.org.list,
25468
- "org.status",
25497
+ CAPXUL_OPERATIONS.org.create,
25498
+ "org.show",
25469
25499
  CAPXUL_OPERATIONS.org.me,
25470
- "org.balance",
25471
- "org.deposit",
25500
+ "org.wait",
25501
+ CAPXUL_OPERATIONS.org.retry,
25502
+ "org.member",
25503
+ "org.member.list",
25504
+ "org.member.get",
25505
+ "org.member.invite",
25506
+ CAPXUL_OPERATIONS.org.invite,
25507
+ "org.invite.list",
25508
+ "org.invite.cancel",
25509
+ "org.invite.resend",
25472
25510
  "org.permission",
25473
25511
  "org.permission.list",
25474
25512
  "org.permission.get",
@@ -25480,46 +25518,32 @@ emitChanged: "payroll.groups.emitChanged" }
25480
25518
  "org.permission.command",
25481
25519
  "org.permission.command.get",
25482
25520
  "org.permission.command.wait",
25483
- CAPXUL_OPERATIONS.org.payment,
25484
- "org.payment.list",
25485
- "org.payment.get",
25486
- "org.payment.wait",
25487
- "org.payment.retry",
25488
- "org.payment.send",
25489
25521
  "org.payroll",
25522
+ "org.payroll.run",
25523
+ "org.payroll.list",
25524
+ "org.payroll.get",
25525
+ "org.payroll.wait",
25526
+ CAPXUL_OPERATIONS.org.payroll.terms,
25490
25527
  "org.payroll.groups",
25491
25528
  CAPXUL_OPERATIONS.org.payroll.groups.list,
25492
25529
  CAPXUL_OPERATIONS.org.payroll.groups.save,
25493
25530
  CAPXUL_OPERATIONS.org.payroll.groups.remove,
25494
- CAPXUL_OPERATIONS.org.payroll.terms,
25495
- "org.payroll.list",
25496
- "org.payroll.run",
25497
- "org.payroll.get",
25498
- "org.payroll.wait",
25499
- CAPXUL_OPERATIONS.org.members,
25500
- "org.member",
25501
- "org.member.get",
25502
- "org.member.invite",
25503
- "org.contact",
25504
- "org.contact.list",
25505
- "org.contact.get",
25506
- "org.contact.add",
25507
- "org.contact.label",
25508
- "org.contact.hide",
25509
- "org.contact.unhide",
25510
- CAPXUL_OPERATIONS.org.invite,
25511
- "org.invite.list",
25531
+ "config",
25532
+ "config.telemetry",
25533
+ "config.telemetry.on",
25534
+ "config.telemetry.off",
25535
+ "config.telemetry.status",
25536
+ "invite.get",
25537
+ "invite.review",
25538
+ "invite.wait",
25512
25539
  "org.invite.get",
25513
25540
  "org.invite.wait",
25514
- "org.invite.review",
25515
- "org.invite.accept",
25516
- "org.invite.decline",
25517
- "org.invite.cancel",
25518
- "org.invite.resend",
25519
25541
  "org.invite.retry",
25520
- "org.wait",
25521
- CAPXUL_OPERATIONS.org.create,
25522
- CAPXUL_OPERATIONS.org.retry,
25542
+ "schema",
25543
+ "doctor",
25544
+ "dev",
25545
+ "dev.key",
25546
+ "dev.fund",
25523
25547
  "unknown"
25524
25548
  ];
25525
25549
  const CLI_CAPABILITIES = [
@@ -27863,7 +27887,6 @@ emitChanged: "payroll.groups.emitChanged" }
27863
27887
  yield* promise(() => emitProvisioningTelemetry(deps.telemetry, provisioned, deps.runPromise));
27864
27888
  return provisioned;
27865
27889
  });
27866
- new Set(IDENTITY_EVENT_TAGS);
27867
27890
  Object.freeze({
27868
27891
  terminal: false,
27869
27892
  outcome: null,
@@ -27889,6 +27912,7 @@ emitChanged: "payroll.groups.emitChanged" }
27889
27912
  outcome: "neutral",
27890
27913
  needsAction: false
27891
27914
  });
27915
+ new Set(IDENTITY_EVENT_TAGS);
27892
27916
  //#endregion
27893
27917
  //#region ../../node_modules/.pnpm/zodiac-roles-deployments@2.5.0/node_modules/zodiac-roles-deployments/build/esm/types.js
27894
27918
  var ExecutionOptions;