@capxul/cli 4.20.0-beta.26 → 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.
package/README.md CHANGED
@@ -189,7 +189,7 @@ payment's wait carries `--org`.
189
189
  ## Personal Payments
190
190
 
191
191
  ```sh
192
- capxul payment retry PAYMENT_ID --confirm --json
192
+ capxul payment retry PAYMENT_ID --json
193
193
  capxul payment list --json
194
194
  capxul payment get PAYMENT_ID --json
195
195
  capxul payment wait PAYMENT_ID --timeout-seconds 120 --json
@@ -205,9 +205,11 @@ action. A failed Payment can be a completed observation. The timeout accepts
205
205
  1–3600 seconds and includes session restoration. A timeout or unavailable read
206
206
  prints exact get/wait commands. Waiting never resubmits a Payment.
207
207
 
208
- Retry returns `{ payments }` and addresses the existing Payment command. It
209
- never creates a replacement send. It still signs in the terminal through the
210
- local wallet page until the approval page covers retries.
208
+ Retry prepares the retry of the exact Payment and hands over to the approval
209
+ page, exactly as `payment send` does: the page is the one and only
210
+ confirmation, and `--json` returns `awaiting_approval`, the link and
211
+ `next.argv` for `payment wait <approval id>`. It addresses the existing Payment
212
+ command and never creates a replacement send.
211
213
 
212
214
  ## Activity
213
215
 
@@ -240,7 +242,7 @@ capxul request get REQUEST_ID
240
242
  capxul request cancel REQUEST_ID --confirm
241
243
  capxul inbox list
242
244
  capxul inbox get REQUEST_ID
243
- capxul inbox pay REQUEST_ID --confirm
245
+ capxul inbox pay REQUEST_ID
244
246
  capxul inbox decline REQUEST_ID --confirm
245
247
  capxul request list --org ORGANIZATION_ID
246
248
  capxul request issue --org ORGANIZATION_ID --input invoice.json --confirm
@@ -248,7 +250,7 @@ capxul request get --org ORGANIZATION_ID REQUEST_ID
248
250
  capxul request cancel --org ORGANIZATION_ID REQUEST_ID --confirm
249
251
  capxul inbox list --org ORGANIZATION_ID
250
252
  capxul inbox get --org ORGANIZATION_ID REQUEST_ID
251
- capxul inbox pay --org ORGANIZATION_ID REQUEST_ID --permission-id PERMISSION_ID --confirm
253
+ capxul inbox pay --org ORGANIZATION_ID REQUEST_ID --permission-id PERMISSION_ID
252
254
  capxul inbox decline --org ORGANIZATION_ID REQUEST_ID --confirm
253
255
  ```
254
256
 
@@ -521,25 +523,14 @@ instructions with both Organization and Payment IDs.
521
523
  ## Organization Payment retry
522
524
 
523
525
  ```sh
524
- capxul payment retry P --org O --confirm --json
525
- capxul payment retry
526
+ capxul payment retry P --org O --json
526
527
  ```
527
528
 
528
529
  Retry addresses the original command and every Payment in that command. It
529
- creates no replacement send or request key. A terminal can collect the Payment
530
- ID. JSON and scripted runs require the Payment ID, the Organization, and
531
- `--confirm`.
532
-
533
- Before signing, the preview shows every original Payment, recipient, exact
534
- asset and quantity, timing, and state. It also shows the original command and
535
- stored Budget. A human terminal asks one default-no question, including when
536
- `--confirm` is supplied. The signer starts after this step. A changed prepared cohort
537
- or actor refuses before signature.
538
-
539
- The result is `{ payments }` in the SDK's original order. Submitted Payments
540
- can still be pending. A failure, timeout, or interruption retains the selected
541
- Organization, Payment, and verified sibling IDs with same-scope get/wait
542
- commands. Retry does not claim settlement from a submission hash.
530
+ creates no replacement send or request key. The Organization's retry is
531
+ prepared for your own key and handed over to the approval page; the page
532
+ shows the whole cohort. `--json` returns the link and `next.argv` for
533
+ `payment wait <approval id> --org O`, which follows every Payment to its end.
543
534
 
544
535
  ## Permissions
545
536
 
@@ -612,8 +603,8 @@ capxul org payroll groups save --org O --input group.json --confirm [--json]
612
603
  capxul org payroll groups remove G --org O --confirm [--json]
613
604
  capxul org payroll terms --org O [--json]
614
605
  capxul org payroll list --org O [--json]
615
- capxul org payroll run --org O --input run.json --request-key K --confirm [--json]
616
- capxul org payroll run --org O --resume K --confirm [--json]
606
+ capxul org payroll run --org O --input run.json --request-key K [--json]
607
+ capxul org payroll run --org O --resume K [--json]
617
608
  capxul org payroll get --org O R [--json]
618
609
  capxul org payroll wait --org O R --timeout-seconds 120 [--json]
619
610
  ```
@@ -640,16 +631,18 @@ refuse before client work.
640
631
  In a human terminal, `capxul org payroll run` guides the current Organization,
641
632
  Budget, settlement asset, date, roster or known Parties, and actual payout
642
633
  quantities. Roster amounts and terms are reference data. The complete preview
643
- shows each recipient and Safe, quantity, raw units, and adjustment. One
644
- default-no approval precedes signing, including when `--confirm` is supplied.
645
- Machine runs require exact scope, input, key, and `--confirm`.
634
+ shows each recipient and Safe, quantity, raw units, and adjustment. The run
635
+ is then prepared and handed over to the approval page, the one and only
636
+ confirmation. Machine runs require exact scope, input and key; `--json`
637
+ returns the approval link and `next.argv` for `payment wait <approval id> --org O`.
646
638
 
647
639
  The command saves the exact input in protected storage under the verified actor,
648
640
  Organization, and key before execution. `--resume K` restores that snapshot.
649
641
  It requires the same explicit Organization and cannot combine fresh input or
650
642
  another key. Payroll accepts email and Party references. Raw external addresses
651
643
  are outside the current run contract.
652
- Success returns `{ run, requestKey }`; submission does not prove settlement.
644
+ `--resume K` prepares the same run again, so it reopens a pending approval
645
+ rather than paying twice.
653
646
 
654
647
  Get returns the full authorized run detail, command, ordered items, and recorded
655
648
  times. Wait observes the exact run without polling or submitting. It keeps
@@ -1205,9 +1198,10 @@ External funding requires the correct network, balance, gas, and any exact token
1205
1198
  approval. Payment goes through the Payments contract with the validated snapshot.
1206
1199
  Inspect the resulting state and receipt before reporting payment complete.
1207
1200
 
1208
- CLI `inbox pay` retains its existing CLI signing flow. It does not depend on the
1209
- hosted checkout page. A rejected signature or uncertain reply is not permission
1210
- to send another Payment. Use the printed readback and recovery instructions.
1201
+ CLI `inbox pay` prepares the request's Payment and hands over to the approval
1202
+ page, as `payment send` does. It does not depend on the hosted checkout page.
1203
+ A rejection on the approval page is not permission to send another Payment.
1204
+ `--resume` reopens the approval of a request whose Payment is already prepared.
1211
1205
 
1212
1206
  Checkout links do not create recurring billing, automatic debits, booking,
1213
1207
  refunds, or QR codes.
@@ -19641,10 +19641,19 @@ get: Operation.query("activity.overlays.get", {
19641
19641
  name: String$1,
19642
19642
  explorerUrl: String$1
19643
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
+ })]);
19644
19652
  /** What the person reads before they sign. */
19645
19653
  const ApprovalSummarySchema = Struct({
19646
19654
  title: String$1,
19647
19655
  from: Struct({
19656
+ kind: Literals(["personal", "organization"]),
19648
19657
  label: String$1,
19649
19658
  address: AddressSchema$1
19650
19659
  }),
@@ -19666,6 +19675,7 @@ get: Operation.query("activity.overlays.get", {
19666
19675
  url: String$1,
19667
19676
  kind: Literals(APPROVAL_KINDS),
19668
19677
  state: Literals(APPROVAL_STATES),
19678
+ actor: ApprovalActorSchema,
19669
19679
  summary: ApprovalSummarySchema,
19670
19680
  operation: ApprovalOperationSchema,
19671
19681
  /** Who must sign: the owner key of the paying Safe. */
@@ -23850,7 +23860,11 @@ complete: Operation.mutation("profiles.onboardings.complete", {
23850
23860
  seedNativeReadiness: "operator.fixtures.seedNativeReadiness",
23851
23861
  seedPrerequisites: "operator.fixtures.seedPrerequisites"
23852
23862
  },
23853
- 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
+ }
23854
23868
  },
23855
23869
  /** Organizations' internal functions; its public rows join from `OPERATIONS`. */
23856
23870
  organizations: {
@@ -24100,7 +24114,11 @@ emitChanged: "payroll.groups.emitChanged" }
24100
24114
  recordUse: "applications.bootstraps.recordUse",
24101
24115
  resolve: "applications.bootstraps.resolve"
24102
24116
  },
24103
- 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
+ },
24104
24122
  quickstarts: {
24105
24123
  claim: "applications.quickstarts.claim",
24106
24124
  mint: "applications.quickstarts.mint"
@@ -27661,6 +27679,14 @@ emitChanged: "payroll.groups.emitChanged" }
27661
27679
  }
27662
27680
  };
27663
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;
27664
27690
  //#endregion
27665
27691
  //#region ../../packages/sdk/src/platform/transport/wire.ts
27666
27692
  /**
@@ -36292,14 +36318,6 @@ query Role($id: String, $block: Int) {
36292
36318
  init_toFunctionSelector();
36293
36319
  toFunctionSelector("setTransactionUnwrapper(address,bytes4,address)");
36294
36320
  toFunctionSelector("assignRoles(address,bytes32[],bool[])");
36295
- Struct({
36296
- permissionId: AuthorizePayrollRunExecutionInputSchema.fields.permissionId,
36297
- asset: AuthorizePayrollRunExecutionInputSchema.fields.asset,
36298
- period: AuthorizePayrollRunExecutionInputSchema.fields.period,
36299
- items: AuthorizePayrollRunExecutionInputSchema.fields.items,
36300
- requestKey: optional(AuthorizePayrollRunExecutionInputSchema.fields.requestKey)
36301
- });
36302
- runs.authorize.name;
36303
36321
  //#endregion
36304
36322
  //#region ../../node_modules/.pnpm/axios@1.17.0/node_modules/axios/lib/helpers/bind.js
36305
36323
  /**