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

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,
@@ -19636,10 +19641,19 @@ get: Operation.query("activity.overlays.get", {
19636
19641
  name: String$1,
19637
19642
  explorerUrl: String$1
19638
19643
  });
19644
+ /**
19645
+ * Whose money the operation moves: the person's own, or an Organization's,
19646
+ * which a reader follows through that Organization's scope.
19647
+ */
19648
+ const ApprovalActorSchema = Union([Struct({ kind: Literal("personal") }), Struct({
19649
+ kind: Literal("organization"),
19650
+ orgId: NonEmptyString
19651
+ })]);
19639
19652
  /** What the person reads before they sign. */
19640
19653
  const ApprovalSummarySchema = Struct({
19641
19654
  title: String$1,
19642
19655
  from: Struct({
19656
+ kind: Literals(["personal", "organization"]),
19643
19657
  label: String$1,
19644
19658
  address: AddressSchema$1
19645
19659
  }),
@@ -19661,6 +19675,7 @@ get: Operation.query("activity.overlays.get", {
19661
19675
  url: String$1,
19662
19676
  kind: Literals(APPROVAL_KINDS),
19663
19677
  state: Literals(APPROVAL_STATES),
19678
+ actor: ApprovalActorSchema,
19664
19679
  summary: ApprovalSummarySchema,
19665
19680
  operation: ApprovalOperationSchema,
19666
19681
  /** Who must sign: the owner key of the paying Safe. */
@@ -19893,7 +19908,44 @@ faucetMint: Operation.action("accounts.grants.faucetMint", {
19893
19908
  ]
19894
19909
  })
19895
19910
  };
19911
+ /**
19912
+ * The home screen in one read. A section whose read failed is null, so the
19913
+ * caller shows it as unavailable, never as empty.
19914
+ */
19915
+ const HomeSchema = Struct({
19916
+ email: String$1,
19917
+ actingAs: Union([Struct({ kind: Literal("personal") }), Struct({
19918
+ kind: Literal("organization"),
19919
+ orgId: String$1
19920
+ })]),
19921
+ /** The acting Safe's position in each settlement asset of its chain. */
19922
+ balances: NullOr(ArraySchema(AssetPositionSchema)),
19923
+ /** The ids of what waits on the caller, newest first. */
19924
+ needsYou: NullOr(Struct({
19925
+ requestsToPay: ArraySchema(String$1),
19926
+ payrollToApprove: ArraySchema(String$1),
19927
+ paymentsToRetry: ArraySchema(String$1)
19928
+ })),
19929
+ /** The newest rows of the actor's activity. */
19930
+ recentActivity: NullOr(ArraySchema(ActivityItemSchema))
19931
+ });
19896
19932
  const summaries = {
19933
+ /**
19934
+ * Where the caller acts, its balances, what needs it and its newest activity,
19935
+ * for the person or for an Organization they take part in. One round trip.
19936
+ */
19937
+ home: Operation.action("accounts.summaries.home", {
19938
+ input: Struct({
19939
+ chainId: ChainIdSchema$1,
19940
+ orgId: optionalKey(NonEmptyString)
19941
+ }),
19942
+ output: HomeSchema,
19943
+ errors: [
19944
+ ...CALL$10,
19945
+ ...DEFECTS,
19946
+ "ROLE_PERMISSION_DENIED"
19947
+ ]
19948
+ }),
19897
19949
  /** The signed-in person: id, verified email and Profile display name. */
19898
19950
  me: Operation.query("accounts.summaries.me", {
19899
19951
  input: Struct({}),
@@ -21885,7 +21937,11 @@ read: Operation.action("organizations.treasuries.read", {
21885
21937
  const CALL$4 = ["NOT_AUTHENTICATED", "INVALID_INPUT"];
21886
21938
  /** The caller's own Account and Safe, which a Payment is signed from. */
21887
21939
  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. */
21940
+ /**
21941
+ * Not a participant of the Organization, no Budget in it that may pay for
21942
+ * this, or a Budget whose on-chain allowance holds less than the batch spends
21943
+ * (`budget_exhausted`, naming what is left).
21944
+ */
21889
21945
  const DENIED$1 = ["ROLE_PERMISSION_DENIED"];
21890
21946
  /** The command, its Payment or its execution is not in a state this applies to. */
21891
21947
  const STATE$3 = ["WRONG_STATE"];
@@ -22194,7 +22250,9 @@ read: Operation.action("organizations.treasuries.read", {
22194
22250
  const CALL$3 = ["NOT_AUTHENTICATED", "INVALID_INPUT"];
22195
22251
  /**
22196
22252
  * 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.
22253
+ * that may pay for this, or the Budget's on-chain allowance holds less than the
22254
+ * run pays (`budget_exhausted`, naming what is left). A caller outside the
22255
+ * Organization learns nothing more.
22198
22256
  */
22199
22257
  const DENIED = ["ROLE_PERMISSION_DENIED"];
22200
22258
  /**
@@ -23802,7 +23860,11 @@ complete: Operation.mutation("profiles.onboardings.complete", {
23802
23860
  seedNativeReadiness: "operator.fixtures.seedNativeReadiness",
23803
23861
  seedPrerequisites: "operator.fixtures.seedPrerequisites"
23804
23862
  },
23805
- identities: { purgeByEmail: "operator.identities.purgeByEmail" }
23863
+ identities: {
23864
+ purgeByEmail: "operator.identities.purgeByEmail",
23865
+ /** One Account and every row that refers to it, unless it has Payments or an Organization tie. */
23866
+ purgeAccount: "operator.identities.purgeAccount"
23867
+ }
23806
23868
  },
23807
23869
  /** Organizations' internal functions; its public rows join from `OPERATIONS`. */
23808
23870
  organizations: {
@@ -23896,7 +23958,9 @@ emitSaved: "activity.annotations.emitSaved" },
23896
23958
  linkObservation: "payments.commands.linkObservation",
23897
23959
  failPrepared: "payments.commands.failPrepared",
23898
23960
  loadContext: "payments.commands.loadContext",
23899
- loadExecutionContext: "payments.commands.loadExecutionContext"
23961
+ loadExecutionContext: "payments.commands.loadExecutionContext",
23962
+ /** The capped Budget a prepared Organization command spends from, before its allowance is read on chain. */
23963
+ loadBudgetAllowance: "payments.commands.loadBudgetAllowance"
23900
23964
  },
23901
23965
  lifecycles: { prepareIntent: "payments.lifecycles.prepareIntent" },
23902
23966
  /** The stored UserOperation of every money command: Payment, Permission and configuration. */
@@ -24050,7 +24114,11 @@ emitChanged: "payroll.groups.emitChanged" }
24050
24114
  recordUse: "applications.bootstraps.recordUse",
24051
24115
  resolve: "applications.bootstraps.resolve"
24052
24116
  },
24053
- keys: { issue: "applications.keys.issue" },
24117
+ keys: {
24118
+ issue: "applications.keys.issue",
24119
+ /** Operator-only: revoke one key by its id, whoever owns it. */
24120
+ revokeById: "applications.keys.revokeById"
24121
+ },
24054
24122
  quickstarts: {
24055
24123
  claim: "applications.quickstarts.claim",
24056
24124
  mint: "applications.quickstarts.mint"
@@ -25380,95 +25448,83 @@ emitChanged: "payroll.groups.emitChanged" }
25380
25448
  });
25381
25449
  //#endregion
25382
25450
  //#region ../../packages/observability/src/catalog/cli.ts
25383
- /** One completed online CLI diagnostic. No command input or provider text. */
25451
+ /** Every command path of the `capxul` tree, dot-separated, plus the root and `unknown`. */
25384
25452
  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
25453
  "capxul",
25454
+ "home",
25419
25455
  "whoami",
25420
25456
  "use",
25421
25457
  "use.personal",
25422
25458
  "use.org",
25423
25459
  "use.env",
25424
- "doctor",
25425
- "telemetry",
25426
- "telemetry.status",
25427
- "telemetry.enable",
25428
- "telemetry.disable",
25429
25460
  "auth",
25430
25461
  "auth.login",
25431
- "auth.signup",
25432
- "auth.send",
25433
25462
  "auth.verify",
25434
25463
  "auth.switch",
25435
- "auth.profile",
25436
- "auth.status",
25437
25464
  "auth.logout",
25438
25465
  "account",
25439
- CAPXUL_OPERATIONS.account.status,
25440
- CAPXUL_OPERATIONS.account.balance,
25441
- "account.deposit",
25466
+ "account.show",
25442
25467
  "account.retry",
25443
- "document",
25444
- "document.get",
25445
- "document.verify",
25446
- "document.render",
25447
- "document.export",
25468
+ "balance",
25469
+ "address",
25448
25470
  "payment",
25471
+ "payment.send",
25449
25472
  "payment.list",
25450
25473
  "payment.get",
25451
25474
  "payment.wait",
25452
- "payment.send",
25453
25475
  "payment.retry",
25454
- "activity",
25455
- "activity.list",
25456
- "activity.get",
25457
- "activity.summary",
25458
- "activity.annotate",
25476
+ "inbox",
25477
+ CAPXUL_OPERATIONS.inbox.list,
25478
+ "inbox.get",
25479
+ "inbox.pay",
25480
+ CAPXUL_OPERATIONS.inbox.decline,
25481
+ "request",
25482
+ "request.issue",
25483
+ "request.list",
25484
+ "request.get",
25485
+ "request.cancel",
25486
+ "offer",
25487
+ "offer.create",
25488
+ "offer.list",
25489
+ "offer.get",
25490
+ "offer.revise",
25491
+ "offer.deactivate",
25459
25492
  "contact",
25493
+ "contact.add",
25460
25494
  "contact.list",
25461
25495
  "contact.get",
25462
- "contact.add",
25463
25496
  "contact.label",
25464
25497
  "contact.hide",
25465
25498
  "contact.unhide",
25499
+ "document",
25500
+ "document.get",
25501
+ "document.render",
25502
+ "document.export",
25503
+ "document.verify",
25504
+ "activity",
25505
+ "activity.list",
25506
+ "activity.get",
25507
+ "activity.summary",
25508
+ "activity.annotate",
25509
+ "invite",
25510
+ "invite.list",
25511
+ "invite.accept",
25512
+ "invite.decline",
25466
25513
  "org",
25467
25514
  CAPXUL_OPERATIONS.org.list,
25468
- "org.status",
25515
+ CAPXUL_OPERATIONS.org.create,
25516
+ "org.show",
25469
25517
  CAPXUL_OPERATIONS.org.me,
25470
- "org.balance",
25471
- "org.deposit",
25518
+ "org.wait",
25519
+ CAPXUL_OPERATIONS.org.retry,
25520
+ "org.member",
25521
+ "org.member.list",
25522
+ "org.member.get",
25523
+ "org.member.invite",
25524
+ CAPXUL_OPERATIONS.org.invite,
25525
+ "org.invite.list",
25526
+ "org.invite.cancel",
25527
+ "org.invite.resend",
25472
25528
  "org.permission",
25473
25529
  "org.permission.list",
25474
25530
  "org.permission.get",
@@ -25480,46 +25536,32 @@ emitChanged: "payroll.groups.emitChanged" }
25480
25536
  "org.permission.command",
25481
25537
  "org.permission.command.get",
25482
25538
  "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
25539
  "org.payroll",
25540
+ "org.payroll.run",
25541
+ "org.payroll.list",
25542
+ "org.payroll.get",
25543
+ "org.payroll.wait",
25544
+ CAPXUL_OPERATIONS.org.payroll.terms,
25490
25545
  "org.payroll.groups",
25491
25546
  CAPXUL_OPERATIONS.org.payroll.groups.list,
25492
25547
  CAPXUL_OPERATIONS.org.payroll.groups.save,
25493
25548
  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",
25549
+ "config",
25550
+ "config.telemetry",
25551
+ "config.telemetry.on",
25552
+ "config.telemetry.off",
25553
+ "config.telemetry.status",
25554
+ "invite.get",
25555
+ "invite.review",
25556
+ "invite.wait",
25512
25557
  "org.invite.get",
25513
25558
  "org.invite.wait",
25514
- "org.invite.review",
25515
- "org.invite.accept",
25516
- "org.invite.decline",
25517
- "org.invite.cancel",
25518
- "org.invite.resend",
25519
25559
  "org.invite.retry",
25520
- "org.wait",
25521
- CAPXUL_OPERATIONS.org.create,
25522
- CAPXUL_OPERATIONS.org.retry,
25560
+ "schema",
25561
+ "doctor",
25562
+ "dev",
25563
+ "dev.key",
25564
+ "dev.fund",
25523
25565
  "unknown"
25524
25566
  ];
25525
25567
  const CLI_CAPABILITIES = [
@@ -27637,6 +27679,14 @@ emitChanged: "payroll.groups.emitChanged" }
27637
27679
  }
27638
27680
  };
27639
27681
  }
27682
+ Struct({
27683
+ permissionId: AuthorizePayrollRunExecutionInputSchema.fields.permissionId,
27684
+ asset: AuthorizePayrollRunExecutionInputSchema.fields.asset,
27685
+ period: AuthorizePayrollRunExecutionInputSchema.fields.period,
27686
+ items: AuthorizePayrollRunExecutionInputSchema.fields.items,
27687
+ requestKey: optional(AuthorizePayrollRunExecutionInputSchema.fields.requestKey)
27688
+ });
27689
+ runs.authorize.name;
27640
27690
  //#endregion
27641
27691
  //#region ../../packages/sdk/src/platform/transport/wire.ts
27642
27692
  /**
@@ -27863,7 +27913,6 @@ emitChanged: "payroll.groups.emitChanged" }
27863
27913
  yield* promise(() => emitProvisioningTelemetry(deps.telemetry, provisioned, deps.runPromise));
27864
27914
  return provisioned;
27865
27915
  });
27866
- new Set(IDENTITY_EVENT_TAGS);
27867
27916
  Object.freeze({
27868
27917
  terminal: false,
27869
27918
  outcome: null,
@@ -27889,6 +27938,7 @@ emitChanged: "payroll.groups.emitChanged" }
27889
27938
  outcome: "neutral",
27890
27939
  needsAction: false
27891
27940
  });
27941
+ new Set(IDENTITY_EVENT_TAGS);
27892
27942
  //#endregion
27893
27943
  //#region ../../node_modules/.pnpm/zodiac-roles-deployments@2.5.0/node_modules/zodiac-roles-deployments/build/esm/types.js
27894
27944
  var ExecutionOptions;
@@ -36268,14 +36318,6 @@ query Role($id: String, $block: Int) {
36268
36318
  init_toFunctionSelector();
36269
36319
  toFunctionSelector("setTransactionUnwrapper(address,bytes4,address)");
36270
36320
  toFunctionSelector("assignRoles(address,bytes32[],bool[])");
36271
- Struct({
36272
- permissionId: AuthorizePayrollRunExecutionInputSchema.fields.permissionId,
36273
- asset: AuthorizePayrollRunExecutionInputSchema.fields.asset,
36274
- period: AuthorizePayrollRunExecutionInputSchema.fields.period,
36275
- items: AuthorizePayrollRunExecutionInputSchema.fields.items,
36276
- requestKey: optional(AuthorizePayrollRunExecutionInputSchema.fields.requestKey)
36277
- });
36278
- runs.authorize.name;
36279
36321
  //#endregion
36280
36322
  //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/bind.js
36281
36323
  /**