@capxul/cli 4.20.0-beta.10 → 4.20.0-beta.11

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
@@ -89,29 +89,21 @@ These commands accept `--email`. Without it, they restore the protected current
89
89
  session. Organization reads accept `--org` or its alias `--org-id`. Identical
90
90
  repeated IDs are accepted. Different IDs are refused.
91
91
 
92
- A read without `--org` resolves one exact Organization in this order: the saved
93
- read default, then the recovery handle this machine recorded for the person's
94
- Organization journey. A recovery handle can also name an Organization whose
95
- setup lane still runs, which the own-access list does not carry yet; the read
96
- reports that exact lane, and it applies the usual current-access rule again once
97
- the Organization reports ready. The read refuses an Organization it cannot
98
- reach, and it never substitutes another one.
99
-
100
- `org use` requires an explicit Organization ID. It checks current access and
101
- saves a protected per-person read default. The default never grants authority.
102
- Each read checks current access again. Without an explicit ID or saved default,
103
- interactive mode asks you to select an Organization. JSON, CI, and noninteractive
104
- mode refuse missing scope. No command starts a signer or changes backend state.
105
-
106
- `org get` reports the canonical command `org.status`. Both member list forms
107
- report `org.members` and retain pending members with `accountId: null`.
108
- `org member get` matches the full AccountId, not a Safe address or ID prefix.
109
- No match returns exit 2. Duplicate matches return exit 1.
110
-
111
- `org wait` reads the same lifecycle every second until it reports `ready` or
112
- `failed`. It never retries setup. The timeout accepts integers from 1 to 3600
113
- seconds and defaults to 120. Timeout returns exit 5; interruption returns 130.
114
- A successful read can report a failed or pending domain state.
92
+ A read without --org uses the saved read default, then this machine's
93
+ recovery ID, then the one unfinished setup returned by the backend. org list
94
+ includes unfinished founder setups. This works from a clean authenticated home.
95
+ If more than one Organization is possible, give an exact --org. A ready
96
+ Organization must still appear in current access.
97
+
98
+ org use saves a protected per-person read default. The default grants no
99
+ authority. Member lookup uses an exact AccountId. Reads do not sign or change
100
+ setup state.
101
+
102
+ org wait opens one exact setup subscription. It continues when needsAttention
103
+ has a scheduled next check. It stops at ready, failed, awaitingAuthorization,
104
+ or attention without a next check. It does not request a check or poll. The
105
+ timeout accepts 1 to 3600 seconds and defaults to 120. A deadline returns
106
+ CLI_DEADLINE at exit 5; Ctrl-C returns CANCELLED at exit 130.
115
107
 
116
108
  ## Invitation commands
117
109
 
@@ -175,109 +167,33 @@ returned view is the authorization-time view of the consent commit
175
167
 
176
168
  ## Organization writes
177
169
 
178
- `org create` and `org retry` restore the protected current session and start the
179
- existing command-scoped browser signer. They never read or write the saved read
180
- default. `org create` writes the person's Organization recovery handle. That
181
- handle holds the exact business handle and the exact Organization ID, and it
182
- holds nothing else. Local input checks run before any client, browser, or
183
- backend work, and they include the confirmation gate:
184
-
185
- - A noninteractive or JSON write requires `--confirm`. Without it the command
186
- refuses with exit 2 before any client, browser, or mutation work.
187
- - A terminal write verifies the session and performs its Organization reads
188
- first, then prints the resolved preview and asks a default-no prompt, even when
189
- `--confirm` is supplied. Rejection refuses with exit 2. An absent session is
190
- exit 3 before any preview. The browser signer is built only after confirmation
191
- succeeds, so a refused write never starts it.
192
-
193
- `--email` selects the session explicitly. Otherwise the protected
194
- current-session pointer decides. An invalid explicit email refuses with exit 2.
195
-
196
- `--timeout-seconds` bounds the command's own wait, not backend execution. It
197
- accepts integers from 1 to 3600 and defaults to 120, and it is one deadline for
198
- the whole write: the `completeOrganization` or `retrySetup` call and the
199
- settlement that follows share it. While a lane settles the command reads the
200
- exact Organization lifecycle every second with no overlapping read. At the
201
- deadline the active SDK signal is aborted, so the command stops waiting and
202
- forwards no further signature, while the durable backend lane keeps running.
203
- Committed lifecycle progress is flushed first, so the Organization ID stays on
204
- stderr and the same Organization resumes with `org retry --org`. Exceeding the
205
- deadline returns exit 5.
206
-
207
- `org create` validates `--name`, the `--handle` grammar, and the ISO `--country`
208
- code first, and its terminal preview also lists the Organizations the person
209
- already has. It subscribes to the onboarding Organization-state projection, then
210
- completes the Organization with an explicit create intent. The first committed
211
- Organization ID is retained, and each committed lifecycle change is written to
212
- stderr before the next Organization authorization digest reaches the signer.
213
- JSON mode writes one newline-delimited progress object per change:
214
-
215
- ```json
216
- { "type": "organization.lifecycle", "organizationId": "O", "status": "settingUp" }
217
- ```
218
-
219
- Human mode prints the full Organization ID and lifecycle status. A refused or
220
- failed lane still reports the Organization it is about. The command returns
221
- success only after an exact `org(O).getLifecycle()` read reports `ready`. It
222
- never saves a read default and never returns a different ready Organization.
223
-
224
- `org create` continues the Organization journey this machine already prepared.
225
- Before the first durable write it records the exact business handle as the safe
226
- recovery handle. It adds the first committed Organization ID to that handle
227
- before it forwards any founder authorization digest, and it keeps that handle
228
- after a failure, an interruption, or a ready result. A later create therefore
229
- resolves exactly one Organization:
230
-
231
- - The same handle resumes the exact recorded Organization. It calls the SDK
232
- recovery owner once per attempt and settles the same lifecycle. It never
233
- submits a second bootstrap, and it never creates a second Organization or
234
- treasury.
235
- - A different handle refuses with exit 2 while the recorded Organization is not
236
- ready. The refusal names the exact Organization.
237
- - A different handle creates one Organization only after the recorded
238
- Organization reaches ready.
239
- - A recorded Organization that is already ready, and still in the person's
240
- current access, returns unchanged, with no write and no signature. A ready
241
- result the person can no longer reach refuses, and the committed recovery
242
- handle stays recorded for exact recovery.
243
- - A create that continues a recorded handle checks current access before it
244
- reports success. The committed Organization ID becomes durable first, so a
245
- refusal or an interruption keeps the exact recovery handle, and a ready
246
- lifecycle line reaches stderr only after the check resolves.
247
- - A terminal preview reads the recorded Organization's lifecycle only for the
248
- handle that continues it. A different handle is a new creation, so an
249
- unreachable recorded Organization never blocks it.
250
- - A handle the backend refuses is refused before any Organization write. The
251
- command releases the prepared handle, so the person can correct the handle and
252
- create. Every other failure keeps the handle, because its Organization may
253
- already exist.
254
-
255
- The recovery line names the exact Organization and the safe handle. JSON mode
256
- writes it as one newline-delimited progress object:
257
-
258
- ```json
259
- { "type": "organization.recovery", "organizationId": "O", "handle": "acme" }
260
- ```
261
-
262
- `org retry` stays explicit: `--org` (or its alias `--org-id`) is the one write
263
- scope, and no read default or recovery handle is consulted.
264
-
265
- `org retry` requires an explicit `--org` (or `--org-id`). It validates the ID
266
- with the public `toOrgId` constructor, reads that exact Organization's lifecycle
267
- for its terminal preview, resumes that same durable setup lane, then settles the
268
- same Organization's lifecycle. A resumed lane that asks the
269
- signer to reset its session clears the stale readiness, closes that browser
270
- bridge, and opens the next one for the same command. `org retry` never creates a
271
- replacement Organization and never changes the read default. An already-ready
272
- Organization returns that exact readiness without a signature. A conflicting
273
- failed or in-flight lane is preserved and refused.
274
-
275
- The result data for both commands is `{ organizationId, lifecycle }`. A known
276
- Organization ID on a `WRONG_STATE` refusal appears only in the SDK-supplied
277
- `error.details.organizationId` field, and the refusal copy names the recovery
278
- action instead of authentication guidance. No token, OTP, signature, or signer
279
- capability is ever printed. Interruption returns 130 and closes both the
280
- subscription and the browser bridge.
170
+ org create and org retry use the protected current session unless --email names
171
+ one. A JSON or noninteractive write requires --confirm. A terminal write shows
172
+ the current Organization and recovery information, then asks a default-no
173
+ question. The signer starts after confirmation.
174
+
175
+ org create validates name, handle, and country before client work. It calls
176
+ onboarding.beginOrganization, saves and prints the exact Organization ID,
177
+ authorizes only an awaitingAuthorization setup, then subscribes to setup
178
+ changes. It reports success only after ready and current access. JSON progress
179
+ uses one line per state:
180
+
181
+ { "type": "organization.lifecycle", "organizationId": "O", "status": "processing" }
182
+
183
+ org retry requires one exact --org. It authorizes only awaitingAuthorization.
184
+ For an accepted setup it asks the backend to check the same operation hash
185
+ through setup.resume, then subscribes. Neither command replaces a submitted
186
+ operation. The local recovery record keeps a safe handle and Organization ID
187
+ for convenience; the backend unfinished list supports recovery without it.
188
+
189
+ --timeout-seconds sets one 1-to-3600-second deadline for the command. A
190
+ deadline stops local work and returns exit 5. If the last observed setup has
191
+ another automatic check scheduled, the message is "Stopped waiting.
192
+ Organization setup continues in the background." Before acceptance or without
193
+ a scheduled check, the message is "Stopped waiting. Read the Organization
194
+ setup status." The error details include the safe Organization ID when known,
195
+ last observed setup state, setup reason, and bounded provider diagnostics.
196
+ Ctrl-C stops local work at exit 130. Neither stop writes a backend failure.
281
197
 
282
198
  ## Configuration
283
199
 
@@ -56,8 +56,8 @@
56
56
  "RetryAccount",
57
57
  "CreateOrganization",
58
58
  "AttachOrganization",
59
- "RetryOrganization",
60
- "LeaveOrganization"
59
+ "LeaveOrganization",
60
+ "ObserveOrganization"
61
61
  ];
62
62
  const PRIVATE_EVENT_TAGS = [
63
63
  "OtpSent",
@@ -73,9 +73,8 @@
73
73
  "AccountClaiming",
74
74
  "AccountClaimed",
75
75
  "AccountFailed",
76
- "OrgAt",
77
- "OrgReady",
78
- "OrgFailed"
76
+ "OrgSelected",
77
+ "OrgSelectionFailed"
79
78
  ];
80
79
  const IDENTITY_EVENT_TAGS = [...EVENT_TAGS, ...PRIVATE_EVENT_TAGS];
81
80
  /** Valid in every `authenticated:*` position — the pre-S1 auth machine's row. */
@@ -84,7 +83,7 @@
84
83
  "SignOut",
85
84
  "Reset"
86
85
  ];
87
- [...SESSION_EVENTS], [...SESSION_EVENTS], [...SESSION_EVENTS], [...SESSION_EVENTS], [...SESSION_EVENTS], [...SESSION_EVENTS], [...SESSION_EVENTS], [...SESSION_EVENTS], [...SESSION_EVENTS], [...SESSION_EVENTS], [...SESSION_EVENTS];
86
+ [...SESSION_EVENTS], [...SESSION_EVENTS], [...SESSION_EVENTS], [...SESSION_EVENTS], [...SESSION_EVENTS], [...SESSION_EVENTS], [...SESSION_EVENTS];
88
87
  new Set(PRIVATE_EVENT_TAGS);
89
88
  //#endregion
90
89
  //#region ../../packages/errors/src/secret-material.ts
@@ -4413,6 +4412,38 @@
4413
4412
  }));
4414
4413
  }
4415
4414
  //#endregion
4415
+ //#region ../../packages/types/src/organization-setup.ts
4416
+ /** Backend-owned Organization setup states shared by wire and telemetry. */
4417
+ const ORGANIZATION_SETUP_STATUSES = [
4418
+ "awaitingAuthorization",
4419
+ "processing",
4420
+ "needsAttention",
4421
+ "ready",
4422
+ "rechecking",
4423
+ "failed"
4424
+ ];
4425
+ /** Closed reasons for a stored Organization setup issue. */
4426
+ const ORGANIZATION_SETUP_REASONS = [
4427
+ "submission_unknown",
4428
+ "receipt_unresolved",
4429
+ "provider_unavailable",
4430
+ "receipt_reverted",
4431
+ "deterministic_address_mismatch",
4432
+ "receipt_mismatch",
4433
+ "block_identity_changed",
4434
+ "authority_event_mismatch",
4435
+ "allowance_timestamp_mismatch",
4436
+ "receipt_identity_unavailable",
4437
+ "receipt_identity_mismatch",
4438
+ "contract_code_unavailable",
4439
+ "contract_state_mismatch",
4440
+ "permission_projection_mismatch",
4441
+ "bootstrap_reorg",
4442
+ "dependent_authority_unresolved",
4443
+ "historical_evidence_missing",
4444
+ "worker_failed"
4445
+ ];
4446
+ //#endregion
4416
4447
  //#region ../../packages/types/src/index.ts
4417
4448
  const ASSET_ID_RE = /^eip155:([1-9][0-9]*)\/erc20:(0x[0-9a-f]{40})$/;
4418
4449
  const EVM_ADDRESS_RE$1 = /^0x[0-9a-f]{40}$/i;
@@ -18999,8 +19030,8 @@
18999
19030
  * failure came from the chain path. Spread into every failure event and posted
19000
19031
  * on `$exception`, so one PostHog filter finds a cause wherever it was seen.
19001
19032
  */
19002
- const FailureModeSchema = Literals(FAILURE_MODES$1);
19003
- const ChainUpstreamSchema = Literals(CHAIN_UPSTREAMS);
19033
+ const FailureModeSchema$1 = Literals(FAILURE_MODES$1);
19034
+ const ChainUpstreamSchema$1 = Literals(CHAIN_UPSTREAMS);
19004
19035
  /**
19005
19036
  * The refusing upstream's response headers (#1818): exactly the names in
19006
19037
  * `RESPONSE_HEADER_ALLOWLIST`, each optional, so the catalog itself refuses a
@@ -19018,15 +19049,15 @@
19018
19049
  });
19019
19050
  /** One upstream tried, flat (#1818): the `chain_attempts` entry on every producer's row. */
19020
19051
  const ChainAttemptSchema = Struct({
19021
- upstream: ChainUpstreamSchema,
19022
- failure_mode: FailureModeSchema,
19052
+ upstream: ChainUpstreamSchema$1,
19053
+ failure_mode: FailureModeSchema$1,
19023
19054
  http_status: optional(Number$1),
19024
19055
  rpc_code: optional(Number$1),
19025
19056
  duration_ms: Number$1
19026
19057
  });
19027
19058
  const ChainCauseTelemetryProps = {
19028
- failure_mode: optional(FailureModeSchema),
19029
- chain_upstream: optional(ChainUpstreamSchema),
19059
+ failure_mode: optional(FailureModeSchema$1),
19060
+ chain_upstream: optional(ChainUpstreamSchema$1),
19030
19061
  chain_method: OptionalString,
19031
19062
  chain_retryable: optional(Boolean$1),
19032
19063
  chain_http_status: optional(Number$1),
@@ -19210,9 +19241,9 @@
19210
19241
  ...TelemetryEnvelopeProps,
19211
19242
  service: ChainServiceSchema,
19212
19243
  method: String$1,
19213
- from_upstream: ChainUpstreamSchema,
19214
- to_upstream: optional(ChainUpstreamSchema),
19215
- failure_mode: FailureModeSchema,
19244
+ from_upstream: ChainUpstreamSchema$1,
19245
+ to_upstream: optional(ChainUpstreamSchema$1),
19246
+ failure_mode: FailureModeSchema$1,
19216
19247
  exhausted: Boolean$1,
19217
19248
  http_status: optional(Number$1),
19218
19249
  rpc_code: optional(Number$1),
@@ -19221,8 +19252,8 @@
19221
19252
  const BundlerErrorProps = Struct({
19222
19253
  ...TelemetryEnvelopeProps,
19223
19254
  method: String$1,
19224
- failure_mode: FailureModeSchema,
19225
- chain_upstream: ChainUpstreamSchema,
19255
+ failure_mode: FailureModeSchema$1,
19256
+ chain_upstream: ChainUpstreamSchema$1,
19226
19257
  chain_retryable: Boolean$1,
19227
19258
  http_status: optional(Number$1),
19228
19259
  rpc_code: optional(Number$1),
@@ -19233,13 +19264,13 @@
19233
19264
  ...TelemetryEnvelopeProps,
19234
19265
  service: ChainServiceSchema,
19235
19266
  method: String$1,
19236
- chain_upstream: ChainUpstreamSchema,
19267
+ chain_upstream: ChainUpstreamSchema$1,
19237
19268
  reason: Literals(["zero_block_hash", "no_receipt"])
19238
19269
  });
19239
19270
  const OperationRetriedProps = Struct({
19240
19271
  ...TelemetryEnvelopeProps,
19241
19272
  operation: String$1,
19242
- failure_mode: FailureModeSchema,
19273
+ failure_mode: FailureModeSchema$1,
19243
19274
  reason: optional(Literal("connection-lost-in-flight")),
19244
19275
  connection_id: OptionalString,
19245
19276
  connection_count: optional(Number$1),
@@ -19280,14 +19311,16 @@
19280
19311
  ...TelemetryEnvelopeProps,
19281
19312
  $insert_id: String$1,
19282
19313
  organization_id: OrgIdTelemetrySchema,
19283
- attempt_number: AttemptNumberSchema
19314
+ attempt_number: AttemptNumberSchema,
19315
+ release: optional(String$1.check(isPattern(/^[0-9a-f]{40}$/u)))
19284
19316
  });
19285
19317
  const OrganizationCreationReadyProps = Struct({
19286
19318
  ...TelemetryEnvelopeProps,
19287
19319
  $insert_id: String$1,
19288
19320
  organization_id: OrgIdTelemetrySchema,
19289
19321
  attempt_number: AttemptNumberSchema,
19290
- duration_ms: DurationMsSchema$1
19322
+ duration_ms: DurationMsSchema$1,
19323
+ release: optional(String$1.check(isPattern(/^[0-9a-f]{40}$/u)))
19291
19324
  });
19292
19325
  const OrganizationCreationFailedProps = Struct({
19293
19326
  ...TelemetryEnvelopeProps,
@@ -19298,20 +19331,13 @@
19298
19331
  stage: OnboardingStageSchema,
19299
19332
  error_code: String$1,
19300
19333
  retryable: Boolean$1,
19334
+ release: optional(String$1.check(isPattern(/^[0-9a-f]{40}$/u))),
19301
19335
  /** #1655: the SDK's backoff before this attempt. Absent on the first attempt. */
19302
19336
  backoff_ms: optional(DurationMsSchema$1),
19303
19337
  failure_reason: optional(Literals([
19304
- "deterministic_address_mismatch",
19305
19338
  "receipt_provider_unavailable",
19306
- "receipt_mismatch",
19307
19339
  "block_provider_unavailable",
19308
- "authority_event_mismatch",
19309
- "allowance_timestamp_mismatch",
19310
- "receipt_identity_unavailable",
19311
- "receipt_identity_mismatch",
19312
- "contract_code_unavailable",
19313
- "contract_state_mismatch",
19314
- "permission_projection_mismatch"
19340
+ ...ORGANIZATION_SETUP_REASONS
19315
19341
  ]))
19316
19342
  });
19317
19343
  const OnboardingIntentSchema = Literals(["personal", "organization"]);
@@ -20068,12 +20094,17 @@
20068
20094
  "cancelled"
20069
20095
  ]),
20070
20096
  duration_ms: Number$1,
20097
+ organization_id: optional(OrgIdTelemetrySchema),
20098
+ setup_status: optional(Literals(ORGANIZATION_SETUP_STATUSES)),
20099
+ setup_reason: optional(Literals(ORGANIZATION_SETUP_REASONS)),
20100
+ $groups: optional(Struct({ organization: OrgIdTelemetrySchema })),
20071
20101
  error_code: optional(Literals([
20072
20102
  ...CAPXUL_ERROR_CODES,
20073
20103
  "CLI_USAGE",
20074
20104
  "CLI_CONFIG",
20075
20105
  "CLI_STORAGE",
20076
- "CLI_DEFECT"
20106
+ "CLI_DEFECT",
20107
+ "CLI_DEADLINE"
20077
20108
  ]))
20078
20109
  })
20079
20110
  });
@@ -20567,14 +20598,7 @@
20567
20598
  setOrgLogo: "media:setOrgLogo",
20568
20599
  setProfileImage: "media:setProfileImage"
20569
20600
  },
20570
- "org/actions": {
20571
- confirmBootstrap: "org/actions:confirmBootstrap",
20572
- prepareBootstrap: "org/actions:prepareBootstrap",
20573
- prepareFounderAccount: "org/actions:prepareFounderAccount",
20574
- readTreasury: "org/actions:readTreasury",
20575
- resumeBootstrapSubmission: "org/actions:resumeBootstrapSubmission",
20576
- submitBootstrap: "org/actions:submitBootstrap"
20577
- },
20601
+ "org/actions": { readTreasury: "org/actions:readTreasury" },
20578
20602
  "payroll/actions": { authorizeRun: "payroll/actions:authorizeRun" },
20579
20603
  "payroll/mutations": {
20580
20604
  removeGroup: "payroll/mutations:removeGroup",
@@ -20591,17 +20615,18 @@
20591
20615
  authorize: "permission/queries:authorize",
20592
20616
  read: "permission/queries:read"
20593
20617
  },
20594
- "org/lifecycle": {
20595
- getProofReceipt: "org/lifecycle:getProofReceipt",
20596
- load: "org/lifecycle:load",
20597
- recordFailure: "org/lifecycle:recordFailure",
20598
- retry: "org/lifecycle:retry",
20599
- startOrResume: "org/lifecycle:startOrResume"
20618
+ "org/setup": {
20619
+ begin: "org/setup:begin",
20620
+ get: "org/setup:get",
20621
+ getProofReceipt: "org/setup:getProofReceipt",
20622
+ listMine: "org/setup:listMine",
20623
+ prepareAuthorization: "org/setup:prepareAuthorization",
20624
+ resume: "org/setup:resume",
20625
+ submitAuthorization: "org/setup:submitAuthorization"
20600
20626
  },
20601
20627
  "org/mutations": {
20602
20628
  accept: "org/mutations:accept",
20603
20629
  cancel: "org/mutations:cancel",
20604
- createOrg: "org/mutations:createOrg",
20605
20630
  decline: "org/mutations:decline",
20606
20631
  invite: "org/mutations:invite",
20607
20632
  resend: "org/mutations:resend",
@@ -20722,6 +20747,60 @@
20722
20747
  "revoke_unconfirmed"
20723
20748
  ];
20724
20749
  //#endregion
20750
+ //#region ../../packages/wire/src/organization-setup.ts
20751
+ const FailureModeSchema = Literals(FAILURE_MODES$1);
20752
+ const ChainUpstreamSchema = Literals(CHAIN_UPSTREAMS);
20753
+ const ChainCauseSchema = Struct({
20754
+ mode: FailureModeSchema,
20755
+ upstream: ChainUpstreamSchema,
20756
+ method: String$1,
20757
+ retryable: Boolean$1,
20758
+ httpStatus: optional(Number$1),
20759
+ rpcCode: optional(Number$1),
20760
+ revert: optional(Struct({
20761
+ name: NullOr(String$1),
20762
+ selector: String$1,
20763
+ args: Record(String$1, String$1)
20764
+ })),
20765
+ providerMessage: optional(String$1),
20766
+ attempts: optional(ArraySchema(Struct({
20767
+ upstream: ChainUpstreamSchema,
20768
+ mode: FailureModeSchema,
20769
+ httpStatus: optional(Number$1),
20770
+ rpcCode: optional(Number$1),
20771
+ durationMs: Number$1
20772
+ }))),
20773
+ responseHeaders: optional(Record(String$1, String$1))
20774
+ });
20775
+ const ErrorSchema = Struct({
20776
+ code: Literals(CAPXUL_ERROR_CODES),
20777
+ message: String$1,
20778
+ details: optional(Record(String$1, Unknown)),
20779
+ correlationId: optional(String$1),
20780
+ layer: optional(String$1),
20781
+ mode: optional(FailureModeSchema),
20782
+ chain: optional(ChainCauseSchema)
20783
+ });
20784
+ const OrganizationSetupIssueSchema = Struct({
20785
+ reason: Literals(ORGANIZATION_SETUP_REASONS),
20786
+ error: optional(ErrorSchema)
20787
+ });
20788
+ Struct({
20789
+ orgId: String$1,
20790
+ status: Literals(ORGANIZATION_SETUP_STATUSES),
20791
+ completedAt: NullOr(Number$1),
20792
+ lastCheckedAt: NullOr(Number$1),
20793
+ nextCheckAt: NullOr(Number$1),
20794
+ issue: NullOr(OrganizationSetupIssueSchema),
20795
+ lastSendIssue: NullOr(OrganizationSetupIssueSchema),
20796
+ recovery: Literals([
20797
+ "authorize",
20798
+ "checkAgain",
20799
+ "none"
20800
+ ]),
20801
+ phase: optional(Literals(["resolvingSubmission", "confirmingBootstrap"]))
20802
+ });
20803
+ //#endregion
20725
20804
  //#region ../../packages/wire/src/payment-document.ts
20726
20805
  const UINT256_MAX = 2n ** 256n - 1n;
20727
20806
  const INT256_MIN = -(2n ** 255n);
@@ -75470,7 +75549,7 @@ ${SUCCESS}
75470
75549
  TaggedError("OrgError");
75471
75550
  Service()("@capxul/sdk/ports/OrgPort");
75472
75551
  CAPXUL_FUNCTIONS["org/queries"].listAll, CAPXUL_FUNCTIONS["org/queries"].listRolesByOrgId, CAPXUL_FUNCTIONS["org/queries"].listMembersByOrgId, CAPXUL_FUNCTIONS["org/actions"].readTreasury;
75473
- CAPXUL_FUNCTIONS["org/lifecycle"].startOrResume, CAPXUL_FUNCTIONS["org/actions"].prepareFounderAccount, CAPXUL_FUNCTIONS["org/actions"].prepareBootstrap, CAPXUL_FUNCTIONS["org/actions"].submitBootstrap, CAPXUL_FUNCTIONS["org/actions"].resumeBootstrapSubmission, CAPXUL_FUNCTIONS["org/actions"].confirmBootstrap, CAPXUL_FUNCTIONS["org/lifecycle"].recordFailure, CAPXUL_FUNCTIONS["org/lifecycle"].load, CAPXUL_FUNCTIONS["org/lifecycle"].retry;
75552
+ CAPXUL_FUNCTIONS["org/setup"].begin, CAPXUL_FUNCTIONS["org/setup"].get, CAPXUL_FUNCTIONS["org/setup"].listMine, CAPXUL_FUNCTIONS["org/setup"].resume, CAPXUL_FUNCTIONS["org/setup"].prepareAuthorization, CAPXUL_FUNCTIONS["org/setup"].submitAuthorization;
75474
75553
  //#endregion
75475
75554
  //#region ../../packages/sdk/src/flows/identity.ts
75476
75555
  const IDENTITY_SLOT = {
@@ -75479,8 +75558,8 @@ ${SUCCESS}
75479
75558
  account: "identity:account",
75480
75559
  org: "identity:org"
75481
75560
  };
75482
- IDENTITY_SLOT.session, IDENTITY_SLOT.session, IDENTITY_SLOT.session, IDENTITY_SLOT.session, IDENTITY_SLOT.session, IDENTITY_SLOT.session, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.account, IDENTITY_SLOT.account, IDENTITY_SLOT.account, IDENTITY_SLOT.account, IDENTITY_SLOT.account, IDENTITY_SLOT.account, IDENTITY_SLOT.account, IDENTITY_SLOT.account, IDENTITY_SLOT.org, IDENTITY_SLOT.org, IDENTITY_SLOT.org, IDENTITY_SLOT.org, IDENTITY_SLOT.org, IDENTITY_SLOT.org, IDENTITY_SLOT.org;
75483
- CAPXUL_FUNCTIONS["org/lifecycle"].getProofReceipt;
75561
+ IDENTITY_SLOT.session, IDENTITY_SLOT.session, IDENTITY_SLOT.session, IDENTITY_SLOT.session, IDENTITY_SLOT.session, IDENTITY_SLOT.session, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.auth, IDENTITY_SLOT.account, IDENTITY_SLOT.account, IDENTITY_SLOT.account, IDENTITY_SLOT.account, IDENTITY_SLOT.account, IDENTITY_SLOT.account, IDENTITY_SLOT.account, IDENTITY_SLOT.account, IDENTITY_SLOT.org, IDENTITY_SLOT.org, IDENTITY_SLOT.org, IDENTITY_SLOT.org, IDENTITY_SLOT.org, IDENTITY_SLOT.org;
75562
+ CAPXUL_FUNCTIONS["org/setup"].getProofReceipt;
75484
75563
  //#endregion
75485
75564
  //#region ../../packages/sdk/src/surface/capxul-deps.ts
75486
75565
  /** The single Context tag the atoms + public methods both resolve. */