@capxul/sandbox 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.
- package/dist/main.mjs +126 -102
- package/package.json +3 -3
package/dist/main.mjs
CHANGED
|
@@ -12940,12 +12940,17 @@ const Errors = {
|
|
|
12940
12940
|
* a PERMISSION denial — explicitly NOT an `INSUFFICIENT_BALANCE` (the treasury
|
|
12941
12941
|
* held the funds; the role's authority is what bound). `reason` discriminates
|
|
12942
12942
|
* the violated condition (`over_cap` / `daily_cap` / `not_member` /
|
|
12943
|
-
* `disallowed_recipient` / `condition_violation`);
|
|
12944
|
-
*
|
|
12943
|
+
* `disallowed_recipient` / `condition_violation` / `budget_exhausted`);
|
|
12944
|
+
* no Safe, Roles module or role key enters the details.
|
|
12945
|
+
* `budget_exhausted` carries what the Budget's allowance still holds and
|
|
12946
|
+
* what the spend needs, as asset amounts in major units (#2297); the asset
|
|
12947
|
+
* id names the public token contract.
|
|
12945
12948
|
*/
|
|
12946
|
-
rolePermissionDenied: (details) => new CapxulError("ROLE_PERMISSION_DENIED", `Org role denied this spend on-chain (${details.reason}).`, { details:
|
|
12949
|
+
rolePermissionDenied: (details) => new CapxulError("ROLE_PERMISSION_DENIED", `Org role denied this spend on-chain (${details.reason}).`, { details: {
|
|
12947
12950
|
reason: details.reason,
|
|
12948
|
-
operation: details.operation
|
|
12951
|
+
...details.operation === void 0 ? {} : { operation: details.operation },
|
|
12952
|
+
...details.remaining === void 0 ? {} : { remaining: details.remaining },
|
|
12953
|
+
...details.required === void 0 ? {} : { required: details.required }
|
|
12949
12954
|
} }),
|
|
12950
12955
|
/**
|
|
12951
12956
|
* A transaction (or sponsored UserOp) failed. `details.reason` discriminates
|
|
@@ -13877,7 +13882,7 @@ const ActivityItemSchema = Union([Struct({
|
|
|
13877
13882
|
}), Struct({
|
|
13878
13883
|
kind: Literal("movement"),
|
|
13879
13884
|
id: String$1,
|
|
13880
|
-
classification:
|
|
13885
|
+
classification: Literals(["deposit", "movement_only_outflow"]),
|
|
13881
13886
|
amount: Amount,
|
|
13882
13887
|
direction: Direction,
|
|
13883
13888
|
counterpartyLabel: String$1,
|
|
@@ -16473,7 +16478,44 @@ const approvals = {
|
|
|
16473
16478
|
]
|
|
16474
16479
|
})
|
|
16475
16480
|
};
|
|
16481
|
+
/**
|
|
16482
|
+
* The home screen in one read. A section whose read failed is null, so the
|
|
16483
|
+
* caller shows it as unavailable, never as empty.
|
|
16484
|
+
*/
|
|
16485
|
+
const HomeSchema = Struct({
|
|
16486
|
+
email: String$1,
|
|
16487
|
+
actingAs: Union([Struct({ kind: Literal("personal") }), Struct({
|
|
16488
|
+
kind: Literal("organization"),
|
|
16489
|
+
orgId: String$1
|
|
16490
|
+
})]),
|
|
16491
|
+
/** The acting Safe's position in each settlement asset of its chain. */
|
|
16492
|
+
balances: NullOr(ArraySchema(AssetPositionSchema)),
|
|
16493
|
+
/** The ids of what waits on the caller, newest first. */
|
|
16494
|
+
needsYou: NullOr(Struct({
|
|
16495
|
+
requestsToPay: ArraySchema(String$1),
|
|
16496
|
+
payrollToApprove: ArraySchema(String$1),
|
|
16497
|
+
paymentsToRetry: ArraySchema(String$1)
|
|
16498
|
+
})),
|
|
16499
|
+
/** The newest rows of the actor's activity. */
|
|
16500
|
+
recentActivity: NullOr(ArraySchema(ActivityItemSchema))
|
|
16501
|
+
});
|
|
16476
16502
|
const summaries = {
|
|
16503
|
+
/**
|
|
16504
|
+
* Where the caller acts, its balances, what needs it and its newest activity,
|
|
16505
|
+
* for the person or for an Organization they take part in. One round trip.
|
|
16506
|
+
*/
|
|
16507
|
+
home: Operation.action("accounts.summaries.home", {
|
|
16508
|
+
input: Struct({
|
|
16509
|
+
chainId: ChainIdSchema$1,
|
|
16510
|
+
orgId: optionalKey(NonEmptyString)
|
|
16511
|
+
}),
|
|
16512
|
+
output: HomeSchema,
|
|
16513
|
+
errors: [
|
|
16514
|
+
...CALL$10,
|
|
16515
|
+
...DEFECTS,
|
|
16516
|
+
"ROLE_PERMISSION_DENIED"
|
|
16517
|
+
]
|
|
16518
|
+
}),
|
|
16477
16519
|
/** The signed-in person: id, verified email and Profile display name. */
|
|
16478
16520
|
me: Operation.query("accounts.summaries.me", {
|
|
16479
16521
|
input: Struct({}),
|
|
@@ -18793,7 +18835,11 @@ const OrgId$2 = NonEmptyString;
|
|
|
18793
18835
|
const CALL$4 = ["NOT_AUTHENTICATED", "INVALID_INPUT"];
|
|
18794
18836
|
/** The caller's own Account and Safe, which a Payment is signed from. */
|
|
18795
18837
|
const ACCOUNT$1 = ["SMART_ACCOUNT_MISSING", "ACCOUNT_NOT_FOUND"];
|
|
18796
|
-
/**
|
|
18838
|
+
/**
|
|
18839
|
+
* Not a participant of the Organization, no Budget in it that may pay for
|
|
18840
|
+
* this, or a Budget whose on-chain allowance holds less than the batch spends
|
|
18841
|
+
* (`budget_exhausted`, naming what is left).
|
|
18842
|
+
*/
|
|
18797
18843
|
const DENIED$1 = ["ROLE_PERMISSION_DENIED"];
|
|
18798
18844
|
/** The command, its Payment or its execution is not in a state this applies to. */
|
|
18799
18845
|
const STATE$3 = ["WRONG_STATE"];
|
|
@@ -19102,7 +19148,9 @@ const OneOrganization = Struct({ orgId: OrgId$1 });
|
|
|
19102
19148
|
const CALL$3 = ["NOT_AUTHENTICATED", "INVALID_INPUT"];
|
|
19103
19149
|
/**
|
|
19104
19150
|
* The caller does not take part in the Organization, or holds no Budget in it
|
|
19105
|
-
* that may pay for this
|
|
19151
|
+
* that may pay for this, or the Budget's on-chain allowance holds less than the
|
|
19152
|
+
* run pays (`budget_exhausted`, naming what is left). A caller outside the
|
|
19153
|
+
* Organization learns nothing more.
|
|
19106
19154
|
*/
|
|
19107
19155
|
const DENIED = ["ROLE_PERMISSION_DENIED"];
|
|
19108
19156
|
/**
|
|
@@ -20804,7 +20852,9 @@ emitSaved: "activity.annotations.emitSaved" },
|
|
|
20804
20852
|
linkObservation: "payments.commands.linkObservation",
|
|
20805
20853
|
failPrepared: "payments.commands.failPrepared",
|
|
20806
20854
|
loadContext: "payments.commands.loadContext",
|
|
20807
|
-
loadExecutionContext: "payments.commands.loadExecutionContext"
|
|
20855
|
+
loadExecutionContext: "payments.commands.loadExecutionContext",
|
|
20856
|
+
/** The capped Budget a prepared Organization command spends from, before its allowance is read on chain. */
|
|
20857
|
+
loadBudgetAllowance: "payments.commands.loadBudgetAllowance"
|
|
20808
20858
|
},
|
|
20809
20859
|
lifecycles: { prepareIntent: "payments.lifecycles.prepareIntent" },
|
|
20810
20860
|
/** The stored UserOperation of every money command: Payment, Permission and configuration. */
|
|
@@ -22288,95 +22338,83 @@ Struct({
|
|
|
22288
22338
|
});
|
|
22289
22339
|
//#endregion
|
|
22290
22340
|
//#region ../../packages/observability/src/catalog/cli.ts
|
|
22291
|
-
/**
|
|
22341
|
+
/** Every command path of the `capxul` tree, dot-separated, plus the root and `unknown`. */
|
|
22292
22342
|
const CLI_COMMAND_NAMES = [
|
|
22293
|
-
"status",
|
|
22294
|
-
"request",
|
|
22295
|
-
"request.list",
|
|
22296
|
-
"request.get",
|
|
22297
|
-
"request.cancel",
|
|
22298
|
-
"offer",
|
|
22299
|
-
"offer.create",
|
|
22300
|
-
"offer.list",
|
|
22301
|
-
"offer.get",
|
|
22302
|
-
"offer.revise",
|
|
22303
|
-
"offer.deactivate",
|
|
22304
|
-
"org.offer",
|
|
22305
|
-
"org.offer.create",
|
|
22306
|
-
"org.offer.list",
|
|
22307
|
-
"org.offer.get",
|
|
22308
|
-
"org.offer.revise",
|
|
22309
|
-
"org.offer.deactivate",
|
|
22310
|
-
"request.issue",
|
|
22311
|
-
"inbox",
|
|
22312
|
-
CAPXUL_OPERATIONS.inbox.list,
|
|
22313
|
-
"inbox.get",
|
|
22314
|
-
"inbox.pay",
|
|
22315
|
-
CAPXUL_OPERATIONS.inbox.decline,
|
|
22316
|
-
"org.request",
|
|
22317
|
-
"org.request.list",
|
|
22318
|
-
"org.request.get",
|
|
22319
|
-
"org.request.cancel",
|
|
22320
|
-
"org.request.issue",
|
|
22321
|
-
"org.inbox",
|
|
22322
|
-
CAPXUL_OPERATIONS.org.inbox.list,
|
|
22323
|
-
"org.inbox.get",
|
|
22324
|
-
"org.inbox.pay",
|
|
22325
|
-
CAPXUL_OPERATIONS.org.inbox.decline,
|
|
22326
22343
|
"capxul",
|
|
22344
|
+
"home",
|
|
22327
22345
|
"whoami",
|
|
22328
22346
|
"use",
|
|
22329
22347
|
"use.personal",
|
|
22330
22348
|
"use.org",
|
|
22331
22349
|
"use.env",
|
|
22332
|
-
"doctor",
|
|
22333
|
-
"telemetry",
|
|
22334
|
-
"telemetry.status",
|
|
22335
|
-
"telemetry.enable",
|
|
22336
|
-
"telemetry.disable",
|
|
22337
22350
|
"auth",
|
|
22338
22351
|
"auth.login",
|
|
22339
|
-
"auth.signup",
|
|
22340
|
-
"auth.send",
|
|
22341
22352
|
"auth.verify",
|
|
22342
22353
|
"auth.switch",
|
|
22343
|
-
"auth.profile",
|
|
22344
|
-
"auth.status",
|
|
22345
22354
|
"auth.logout",
|
|
22346
22355
|
"account",
|
|
22347
|
-
|
|
22348
|
-
CAPXUL_OPERATIONS.account.balance,
|
|
22349
|
-
"account.deposit",
|
|
22356
|
+
"account.show",
|
|
22350
22357
|
"account.retry",
|
|
22351
|
-
"
|
|
22352
|
-
"
|
|
22353
|
-
"document.verify",
|
|
22354
|
-
"document.render",
|
|
22355
|
-
"document.export",
|
|
22358
|
+
"balance",
|
|
22359
|
+
"address",
|
|
22356
22360
|
"payment",
|
|
22361
|
+
"payment.send",
|
|
22357
22362
|
"payment.list",
|
|
22358
22363
|
"payment.get",
|
|
22359
22364
|
"payment.wait",
|
|
22360
|
-
"payment.send",
|
|
22361
22365
|
"payment.retry",
|
|
22362
|
-
"
|
|
22363
|
-
|
|
22364
|
-
"
|
|
22365
|
-
"
|
|
22366
|
-
|
|
22366
|
+
"inbox",
|
|
22367
|
+
CAPXUL_OPERATIONS.inbox.list,
|
|
22368
|
+
"inbox.get",
|
|
22369
|
+
"inbox.pay",
|
|
22370
|
+
CAPXUL_OPERATIONS.inbox.decline,
|
|
22371
|
+
"request",
|
|
22372
|
+
"request.issue",
|
|
22373
|
+
"request.list",
|
|
22374
|
+
"request.get",
|
|
22375
|
+
"request.cancel",
|
|
22376
|
+
"offer",
|
|
22377
|
+
"offer.create",
|
|
22378
|
+
"offer.list",
|
|
22379
|
+
"offer.get",
|
|
22380
|
+
"offer.revise",
|
|
22381
|
+
"offer.deactivate",
|
|
22367
22382
|
"contact",
|
|
22383
|
+
"contact.add",
|
|
22368
22384
|
"contact.list",
|
|
22369
22385
|
"contact.get",
|
|
22370
|
-
"contact.add",
|
|
22371
22386
|
"contact.label",
|
|
22372
22387
|
"contact.hide",
|
|
22373
22388
|
"contact.unhide",
|
|
22389
|
+
"document",
|
|
22390
|
+
"document.get",
|
|
22391
|
+
"document.render",
|
|
22392
|
+
"document.export",
|
|
22393
|
+
"document.verify",
|
|
22394
|
+
"activity",
|
|
22395
|
+
"activity.list",
|
|
22396
|
+
"activity.get",
|
|
22397
|
+
"activity.summary",
|
|
22398
|
+
"activity.annotate",
|
|
22399
|
+
"invite",
|
|
22400
|
+
"invite.list",
|
|
22401
|
+
"invite.accept",
|
|
22402
|
+
"invite.decline",
|
|
22374
22403
|
"org",
|
|
22375
22404
|
CAPXUL_OPERATIONS.org.list,
|
|
22376
|
-
|
|
22405
|
+
CAPXUL_OPERATIONS.org.create,
|
|
22406
|
+
"org.show",
|
|
22377
22407
|
CAPXUL_OPERATIONS.org.me,
|
|
22378
|
-
"org.
|
|
22379
|
-
|
|
22408
|
+
"org.wait",
|
|
22409
|
+
CAPXUL_OPERATIONS.org.retry,
|
|
22410
|
+
"org.member",
|
|
22411
|
+
"org.member.list",
|
|
22412
|
+
"org.member.get",
|
|
22413
|
+
"org.member.invite",
|
|
22414
|
+
CAPXUL_OPERATIONS.org.invite,
|
|
22415
|
+
"org.invite.list",
|
|
22416
|
+
"org.invite.cancel",
|
|
22417
|
+
"org.invite.resend",
|
|
22380
22418
|
"org.permission",
|
|
22381
22419
|
"org.permission.list",
|
|
22382
22420
|
"org.permission.get",
|
|
@@ -22388,46 +22426,32 @@ const CLI_COMMAND_NAMES = [
|
|
|
22388
22426
|
"org.permission.command",
|
|
22389
22427
|
"org.permission.command.get",
|
|
22390
22428
|
"org.permission.command.wait",
|
|
22391
|
-
CAPXUL_OPERATIONS.org.payment,
|
|
22392
|
-
"org.payment.list",
|
|
22393
|
-
"org.payment.get",
|
|
22394
|
-
"org.payment.wait",
|
|
22395
|
-
"org.payment.retry",
|
|
22396
|
-
"org.payment.send",
|
|
22397
22429
|
"org.payroll",
|
|
22430
|
+
"org.payroll.run",
|
|
22431
|
+
"org.payroll.list",
|
|
22432
|
+
"org.payroll.get",
|
|
22433
|
+
"org.payroll.wait",
|
|
22434
|
+
CAPXUL_OPERATIONS.org.payroll.terms,
|
|
22398
22435
|
"org.payroll.groups",
|
|
22399
22436
|
CAPXUL_OPERATIONS.org.payroll.groups.list,
|
|
22400
22437
|
CAPXUL_OPERATIONS.org.payroll.groups.save,
|
|
22401
22438
|
CAPXUL_OPERATIONS.org.payroll.groups.remove,
|
|
22402
|
-
|
|
22403
|
-
"
|
|
22404
|
-
"
|
|
22405
|
-
"
|
|
22406
|
-
"
|
|
22407
|
-
|
|
22408
|
-
"
|
|
22409
|
-
"
|
|
22410
|
-
"org.member.invite",
|
|
22411
|
-
"org.contact",
|
|
22412
|
-
"org.contact.list",
|
|
22413
|
-
"org.contact.get",
|
|
22414
|
-
"org.contact.add",
|
|
22415
|
-
"org.contact.label",
|
|
22416
|
-
"org.contact.hide",
|
|
22417
|
-
"org.contact.unhide",
|
|
22418
|
-
CAPXUL_OPERATIONS.org.invite,
|
|
22419
|
-
"org.invite.list",
|
|
22439
|
+
"config",
|
|
22440
|
+
"config.telemetry",
|
|
22441
|
+
"config.telemetry.on",
|
|
22442
|
+
"config.telemetry.off",
|
|
22443
|
+
"config.telemetry.status",
|
|
22444
|
+
"invite.get",
|
|
22445
|
+
"invite.review",
|
|
22446
|
+
"invite.wait",
|
|
22420
22447
|
"org.invite.get",
|
|
22421
22448
|
"org.invite.wait",
|
|
22422
|
-
"org.invite.review",
|
|
22423
|
-
"org.invite.accept",
|
|
22424
|
-
"org.invite.decline",
|
|
22425
|
-
"org.invite.cancel",
|
|
22426
|
-
"org.invite.resend",
|
|
22427
22449
|
"org.invite.retry",
|
|
22428
|
-
"
|
|
22429
|
-
|
|
22430
|
-
|
|
22450
|
+
"schema",
|
|
22451
|
+
"doctor",
|
|
22452
|
+
"dev",
|
|
22453
|
+
"dev.key",
|
|
22454
|
+
"dev.fund",
|
|
22431
22455
|
"unknown"
|
|
22432
22456
|
];
|
|
22433
22457
|
const CLI_CAPABILITIES = [
|
|
@@ -24869,7 +24893,6 @@ gen$2(function* () {
|
|
|
24869
24893
|
yield* promise(() => emitProvisioningTelemetry(deps.telemetry, provisioned, deps.runPromise));
|
|
24870
24894
|
return provisioned;
|
|
24871
24895
|
});
|
|
24872
|
-
new Set(IDENTITY_EVENT_TAGS);
|
|
24873
24896
|
Object.freeze({
|
|
24874
24897
|
terminal: false,
|
|
24875
24898
|
outcome: null,
|
|
@@ -24895,6 +24918,7 @@ Object.freeze({
|
|
|
24895
24918
|
outcome: "neutral",
|
|
24896
24919
|
needsAction: false
|
|
24897
24920
|
});
|
|
24921
|
+
new Set(IDENTITY_EVENT_TAGS);
|
|
24898
24922
|
//#endregion
|
|
24899
24923
|
//#region ../../node_modules/.pnpm/zodiac-roles-deployments@2.5.0/node_modules/zodiac-roles-deployments/build/cjs/chains.js
|
|
24900
24924
|
var require_chains = /* @__PURE__ */ __commonJSMin(((exports) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capxul/sandbox",
|
|
3
|
-
"version": "4.20.0-beta.
|
|
3
|
+
"version": "4.20.0-beta.26",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Capxul sandbox CLI for canonical quickstart keys and testnet faucet funds.",
|
|
6
6
|
"keywords": [
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
43
43
|
"vite": "npm:@voidzero-dev/vite-plus-core@1.0.0",
|
|
44
44
|
"vite-plus": "1.0.0",
|
|
45
|
-
"@capxul/observability": "4.20.0-beta.
|
|
45
|
+
"@capxul/observability": "4.20.0-beta.26",
|
|
46
46
|
"@capxul/protocol": "0.2.0-beta.0",
|
|
47
|
-
"@capxul/sdk": "4.20.0-beta.
|
|
47
|
+
"@capxul/sdk": "4.20.0-beta.26",
|
|
48
48
|
"@capxul/typescript-config": "0.0.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|