@capxul/observability 4.20.0-beta.10 → 4.20.0-beta.12
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/engineering.mjs +12 -2
- package/dist/index.d.mts +54 -18
- package/dist/index.mjs +1 -1
- package/dist/{src-Dhf8f_EV.mjs → src-CHIapcJZ.mjs} +120 -16
- package/package.json +1 -1
package/dist/engineering.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as CLI_COMMAND_NAMES, cn as
|
|
1
|
+
import { _ as CLI_COMMAND_NAMES, cn as ORGANIZATION_SETUP_REASONS, dn as FAILURE_MODES, fn as isCredentialField, g as CLI_CAPABILITIES, ln as ORGANIZATION_SETUP_STATUSES, mn as redactUrlSecrets, on as isCapxulOperation, pn as redactSecrets, un as CAPXUL_ERROR_CODES, v as CLI_INVOCATION_KINDS } from "./src-CHIapcJZ.mjs";
|
|
2
2
|
import { Cause, Clock, Context, Deferred, Duration, Effect, Exit, FiberSet, Layer, LogLevel, Logger, Metric, Option, References, Schedule, Stream, Tracer } from "effect";
|
|
3
3
|
import { FetchHttpClient, Headers, HttpBody, HttpClient, HttpClientError, HttpClientResponse } from "effect/unstable/http";
|
|
4
4
|
import { OtlpExporter, OtlpLogger, OtlpMetrics, OtlpSerialization, OtlpTracer } from "effect/unstable/observability";
|
|
@@ -528,6 +528,7 @@ const MINIMAL_LOG_NAMES = /* @__PURE__ */ new Set([
|
|
|
528
528
|
"convex.action.connection_lost",
|
|
529
529
|
"cli.command.completed",
|
|
530
530
|
"cli.sdk.operation.failed",
|
|
531
|
+
"cli.signer.wait",
|
|
531
532
|
"cli.wallet.step"
|
|
532
533
|
]);
|
|
533
534
|
const MINIMAL_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
@@ -535,7 +536,8 @@ const MINIMAL_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
|
535
536
|
"CLI_USAGE",
|
|
536
537
|
"CLI_CONFIG",
|
|
537
538
|
"CLI_STORAGE",
|
|
538
|
-
"CLI_DEFECT"
|
|
539
|
+
"CLI_DEFECT",
|
|
540
|
+
"CLI_DEADLINE"
|
|
539
541
|
]);
|
|
540
542
|
const MINIMAL_NUMBERS = /* @__PURE__ */ new Set([
|
|
541
543
|
"schema_version",
|
|
@@ -615,6 +617,13 @@ const MINIMAL_ENUM_VALUES = /* @__PURE__ */ new Map([
|
|
|
615
617
|
["provider", ["better-auth", "oidc"]],
|
|
616
618
|
["cli_identity_kind", ["anonymous", "identified"]],
|
|
617
619
|
["output_mode", ["human", "json"]],
|
|
620
|
+
["setup_status", ORGANIZATION_SETUP_STATUSES],
|
|
621
|
+
["setup_reason", ORGANIZATION_SETUP_REASONS],
|
|
622
|
+
["signer_stage", [
|
|
623
|
+
"address",
|
|
624
|
+
"readiness",
|
|
625
|
+
"sign"
|
|
626
|
+
]],
|
|
618
627
|
["unit", [
|
|
619
628
|
"1",
|
|
620
629
|
"s",
|
|
@@ -635,6 +644,7 @@ const MINIMAL_VERSION_KEYS = /* @__PURE__ */ new Set([
|
|
|
635
644
|
]);
|
|
636
645
|
function minimalStringValue(key, text) {
|
|
637
646
|
if (key === "operation") return isCapxulOperation(text);
|
|
647
|
+
if (key === "organization_id") return /^org_[0-9A-Za-z]+$/u.test(text);
|
|
638
648
|
if (MINIMAL_CODE_KEYS.has(key)) return MINIMAL_ERROR_CODES.has(text);
|
|
639
649
|
if (MINIMAL_VERSION_KEYS.has(key)) return /^[A-Za-z0-9][A-Za-z0-9._+@-]{0,127}$/u.test(text);
|
|
640
650
|
if (key === "trace_id") return traceId(text);
|
package/dist/index.d.mts
CHANGED
|
@@ -404,6 +404,7 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
404
404
|
readonly cancel: "org.invitations.cancel";
|
|
405
405
|
readonly decline: "org.invitations.decline";
|
|
406
406
|
readonly get: "org.invitations.get";
|
|
407
|
+
readonly subscribe: "org.invitations.subscribe";
|
|
407
408
|
readonly list: "org.invitations.list";
|
|
408
409
|
/**
|
|
409
410
|
* The Admin-scoped Organization list. It is named `listScoped`, not
|
|
@@ -432,16 +433,25 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
432
433
|
readonly change: "org.permissions.change";
|
|
433
434
|
readonly create: "org.permissions.create";
|
|
434
435
|
readonly get: "org.permissions.get";
|
|
436
|
+
readonly getCommand: "org.permissions.getCommand";
|
|
437
|
+
readonly subscribeCommand: "org.permissions.subscribeCommand";
|
|
435
438
|
readonly list: "org.permissions.list";
|
|
436
439
|
readonly replace: "org.permissions.replace";
|
|
440
|
+
readonly previewReplacement: "org.permissions.previewReplacement";
|
|
437
441
|
readonly revoke: "org.permissions.revoke";
|
|
438
442
|
};
|
|
439
443
|
readonly payments: {
|
|
444
|
+
readonly get: "org.payments.get";
|
|
445
|
+
readonly list: "org.payments.list";
|
|
440
446
|
readonly pay: "org.payments.pay";
|
|
441
447
|
readonly payBatch: "org.payments.payBatch";
|
|
448
|
+
readonly previewRetry: "org.payments.previewRetry";
|
|
449
|
+
readonly subscribe: "org.payments.subscribe";
|
|
442
450
|
};
|
|
443
451
|
readonly payroll: {
|
|
444
452
|
readonly authorizeRun: "org.payroll.authorizeRun";
|
|
453
|
+
readonly getRun: "org.payroll.getRun";
|
|
454
|
+
readonly subscribeRun: "org.payroll.subscribeRun";
|
|
445
455
|
readonly groups: {
|
|
446
456
|
readonly list: "org.payroll.groups.list";
|
|
447
457
|
readonly remove: "org.payroll.groups.remove";
|
|
@@ -515,6 +525,7 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
515
525
|
readonly retry: "payments.retry";
|
|
516
526
|
readonly submitCommandExecution: "payments.submitCommandExecution";
|
|
517
527
|
readonly submitExecution: "payments.submitExecution";
|
|
528
|
+
readonly subscribe: "payments.subscribe";
|
|
518
529
|
};
|
|
519
530
|
readonly paymentDocuments: {
|
|
520
531
|
readonly get: "paymentDocuments.get";
|
|
@@ -526,6 +537,8 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
526
537
|
};
|
|
527
538
|
readonly payroll: {
|
|
528
539
|
readonly authorizeRun: "payroll.authorizeRun";
|
|
540
|
+
readonly getRun: "payroll.getRun";
|
|
541
|
+
readonly subscribeRun: "payroll.subscribeRun";
|
|
529
542
|
readonly emitGroupChanged: "payroll.emitGroupChanged";
|
|
530
543
|
readonly emitRunTransitioned: "payroll.emitRunTransitioned";
|
|
531
544
|
readonly groups: {
|
|
@@ -540,6 +553,8 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
540
553
|
readonly terms: "payroll.terms";
|
|
541
554
|
};
|
|
542
555
|
readonly permission: {
|
|
556
|
+
readonly getCommand: "permission.getCommand";
|
|
557
|
+
readonly previewReplacement: "permission.previewReplacement";
|
|
543
558
|
readonly verifyInvitationConfiguration: "permission.verifyInvitationConfiguration";
|
|
544
559
|
readonly command: "permission.command";
|
|
545
560
|
readonly retryVerification: "permission.retryVerification";
|
|
@@ -551,8 +566,11 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
551
566
|
readonly change: "permissions.change";
|
|
552
567
|
readonly create: "permissions.create";
|
|
553
568
|
readonly get: "permissions.get";
|
|
569
|
+
readonly getCommand: "permissions.getCommand";
|
|
570
|
+
readonly subscribeCommand: "permissions.subscribeCommand";
|
|
554
571
|
readonly list: "permissions.list";
|
|
555
572
|
readonly prepareExecution: "permissions.prepareExecution";
|
|
573
|
+
readonly previewReplacement: "permissions.previewReplacement";
|
|
556
574
|
readonly replace: "permissions.replace";
|
|
557
575
|
readonly revoke: "permissions.revoke";
|
|
558
576
|
readonly submitExecution: "permissions.submitExecution";
|
|
@@ -1292,6 +1310,7 @@ declare const OrganizationCreationStartedTelemetryEventSchema: Schema.Struct<{
|
|
|
1292
1310
|
readonly $insert_id: Schema.String;
|
|
1293
1311
|
readonly organization_id: Schema.Codec<string, string, never, never>;
|
|
1294
1312
|
readonly attempt_number: Schema.refine<number, Schema.Number>;
|
|
1313
|
+
readonly release: Schema.optional<Schema.String>;
|
|
1295
1314
|
}>;
|
|
1296
1315
|
}>;
|
|
1297
1316
|
declare const OrganizationCreationReadyTelemetryEventSchema: Schema.Struct<{
|
|
@@ -1306,6 +1325,7 @@ declare const OrganizationCreationReadyTelemetryEventSchema: Schema.Struct<{
|
|
|
1306
1325
|
readonly organization_id: Schema.Codec<string, string, never, never>;
|
|
1307
1326
|
readonly attempt_number: Schema.refine<number, Schema.Number>;
|
|
1308
1327
|
readonly duration_ms: Schema.Codec<DurationMs, number, never, never>;
|
|
1328
|
+
readonly release: Schema.optional<Schema.String>;
|
|
1309
1329
|
}>;
|
|
1310
1330
|
}>;
|
|
1311
1331
|
declare const OrganizationCreationFailedTelemetryEventSchema: Schema.Struct<{
|
|
@@ -1349,9 +1369,10 @@ declare const OrganizationCreationFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
1349
1369
|
readonly stage: Schema.Literals<readonly ["profile", "accountProvisioning", "accountClaim", "preparingFounderAccount", "awaitingFounderAuthorization", "submittingBootstrap", "confirmingBootstrap"]>;
|
|
1350
1370
|
readonly error_code: Schema.String;
|
|
1351
1371
|
readonly retryable: Schema.Boolean;
|
|
1372
|
+
readonly release: Schema.optional<Schema.String>;
|
|
1352
1373
|
/** #1655: the SDK's backoff before this attempt. Absent on the first attempt. */
|
|
1353
1374
|
readonly backoff_ms: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
|
|
1354
|
-
readonly failure_reason: Schema.optional<Schema.Literals<readonly ["
|
|
1375
|
+
readonly failure_reason: Schema.optional<Schema.Literals<readonly ["receipt_provider_unavailable", "block_provider_unavailable", "submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>>;
|
|
1355
1376
|
}>;
|
|
1356
1377
|
}>;
|
|
1357
1378
|
declare const AccountBalanceReadTelemetryEventSchema: Schema.Struct<{
|
|
@@ -2074,8 +2095,8 @@ declare const ContactRelationshipChangedTelemetryEventSchema: Schema.Struct<{
|
|
|
2074
2095
|
}>;
|
|
2075
2096
|
}>;
|
|
2076
2097
|
/** One completed online CLI diagnostic. No command input or provider text. */
|
|
2077
|
-
declare const CLI_COMMAND_NAMES: readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"];
|
|
2078
|
-
declare const CLI_CAPABILITIES: readonly ["cli", "diagnostics", "collection", "authentication", "organization", "contacts"];
|
|
2098
|
+
declare const CLI_COMMAND_NAMES: readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "account", "account.status", "account.balance", "account.deposit", "account.retry", "document", "document.get", "document.verify", "document.render", "document.export", "payment", "payment.list", "payment.get", "payment.wait", "payment.send", "payment.retry", "activity", "activity.list", "activity.get", "activity.summary", "activity.annotate", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.balance", "org.deposit", "org.permission", "org.permission.list", "org.permission.get", "org.permission.create", "org.permission.change", "org.permission.assign", "org.permission.revoke", "org.permission.replace", "org.permission.command", "org.permission.command.get", "org.permission.command.wait", "org.payment", "org.payment.list", "org.payment.get", "org.payment.wait", "org.payment.retry", "org.payment.send", "org.payroll", "org.payroll.groups", "org.payroll.groups.list", "org.payroll.groups.save", "org.payroll.groups.remove", "org.payroll.terms", "org.payroll.list", "org.payroll.run", "org.payroll.get", "org.payroll.wait", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"];
|
|
2099
|
+
declare const CLI_CAPABILITIES: readonly ["cli", "diagnostics", "collection", "authentication", "account", "organization", "contacts", "documents", "payments", "activity"];
|
|
2079
2100
|
declare const CLI_INVOCATION_KINDS: readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"];
|
|
2080
2101
|
type CliCommandName = (typeof CLI_COMMAND_NAMES)[number];
|
|
2081
2102
|
type CliCapability = (typeof CLI_CAPABILITIES)[number];
|
|
@@ -2088,8 +2109,8 @@ declare const CliFirstUsedTelemetryEventSchema: Schema.Struct<{
|
|
|
2088
2109
|
journey_id: Schema.optional<Schema.String>;
|
|
2089
2110
|
correlation_id: Schema.optional<Schema.String>;
|
|
2090
2111
|
schema_version: Schema.Literal<1>;
|
|
2091
|
-
command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
|
|
2092
|
-
capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization", "contacts"]>;
|
|
2112
|
+
command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "account", "account.status", "account.balance", "account.deposit", "account.retry", "document", "document.get", "document.verify", "document.render", "document.export", "payment", "payment.list", "payment.get", "payment.wait", "payment.send", "payment.retry", "activity", "activity.list", "activity.get", "activity.summary", "activity.annotate", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.balance", "org.deposit", "org.permission", "org.permission.list", "org.permission.get", "org.permission.create", "org.permission.change", "org.permission.assign", "org.permission.revoke", "org.permission.replace", "org.permission.command", "org.permission.command.get", "org.permission.command.wait", "org.payment", "org.payment.list", "org.payment.get", "org.payment.wait", "org.payment.retry", "org.payment.send", "org.payroll", "org.payroll.groups", "org.payroll.groups.list", "org.payroll.groups.save", "org.payroll.groups.remove", "org.payroll.terms", "org.payroll.list", "org.payroll.run", "org.payroll.get", "org.payroll.wait", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
|
|
2113
|
+
capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "account", "organization", "contacts", "documents", "payments", "activity"]>;
|
|
2093
2114
|
invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
|
|
2094
2115
|
invocation_id: Schema.String;
|
|
2095
2116
|
cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
|
|
@@ -2114,8 +2135,8 @@ declare const CliCommandStartedTelemetryEventSchema: Schema.Struct<{
|
|
|
2114
2135
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
2115
2136
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
2116
2137
|
readonly schema_version: Schema.Literal<1>;
|
|
2117
|
-
readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
|
|
2118
|
-
readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization", "contacts"]>;
|
|
2138
|
+
readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "account", "account.status", "account.balance", "account.deposit", "account.retry", "document", "document.get", "document.verify", "document.render", "document.export", "payment", "payment.list", "payment.get", "payment.wait", "payment.send", "payment.retry", "activity", "activity.list", "activity.get", "activity.summary", "activity.annotate", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.balance", "org.deposit", "org.permission", "org.permission.list", "org.permission.get", "org.permission.create", "org.permission.change", "org.permission.assign", "org.permission.revoke", "org.permission.replace", "org.permission.command", "org.permission.command.get", "org.permission.command.wait", "org.payment", "org.payment.list", "org.payment.get", "org.payment.wait", "org.payment.retry", "org.payment.send", "org.payroll", "org.payroll.groups", "org.payroll.groups.list", "org.payroll.groups.save", "org.payroll.groups.remove", "org.payroll.terms", "org.payroll.list", "org.payroll.run", "org.payroll.get", "org.payroll.wait", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
|
|
2139
|
+
readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "account", "organization", "contacts", "documents", "payments", "activity"]>;
|
|
2119
2140
|
readonly invocation_id: Schema.String;
|
|
2120
2141
|
readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
|
|
2121
2142
|
readonly anonymous_id: Schema.optional<Schema.String>;
|
|
@@ -2140,8 +2161,8 @@ declare const CliCommandCompletedTelemetryEventSchema: Schema.Struct<{
|
|
|
2140
2161
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
2141
2162
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
2142
2163
|
readonly schema_version: Schema.Literal<1>;
|
|
2143
|
-
readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
|
|
2144
|
-
readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization", "contacts"]>;
|
|
2164
|
+
readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "account", "account.status", "account.balance", "account.deposit", "account.retry", "document", "document.get", "document.verify", "document.render", "document.export", "payment", "payment.list", "payment.get", "payment.wait", "payment.send", "payment.retry", "activity", "activity.list", "activity.get", "activity.summary", "activity.annotate", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.balance", "org.deposit", "org.permission", "org.permission.list", "org.permission.get", "org.permission.create", "org.permission.change", "org.permission.assign", "org.permission.revoke", "org.permission.replace", "org.permission.command", "org.permission.command.get", "org.permission.command.wait", "org.payment", "org.payment.list", "org.payment.get", "org.payment.wait", "org.payment.retry", "org.payment.send", "org.payroll", "org.payroll.groups", "org.payroll.groups.list", "org.payroll.groups.save", "org.payroll.groups.remove", "org.payroll.terms", "org.payroll.list", "org.payroll.run", "org.payroll.get", "org.payroll.wait", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
|
|
2165
|
+
readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "account", "organization", "contacts", "documents", "payments", "activity"]>;
|
|
2145
2166
|
readonly invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
|
|
2146
2167
|
readonly invocation_id: Schema.String;
|
|
2147
2168
|
readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
|
|
@@ -2158,7 +2179,13 @@ declare const CliCommandCompletedTelemetryEventSchema: Schema.Struct<{
|
|
|
2158
2179
|
readonly output_mode: Schema.Literals<readonly ["human", "json"]>;
|
|
2159
2180
|
readonly outcome: Schema.Literals<readonly ["succeeded", "refused", "failed", "cancelled"]>;
|
|
2160
2181
|
readonly duration_ms: Schema.Number;
|
|
2161
|
-
readonly
|
|
2182
|
+
readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
|
|
2183
|
+
readonly setup_status: Schema.optional<Schema.Literals<readonly ["awaitingAuthorization", "processing", "needsAttention", "ready", "rechecking", "failed"]>>;
|
|
2184
|
+
readonly setup_reason: Schema.optional<Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>>;
|
|
2185
|
+
readonly $groups: Schema.optional<Schema.Struct<{
|
|
2186
|
+
readonly organization: Schema.Codec<string, string, never, never>;
|
|
2187
|
+
}>>;
|
|
2188
|
+
readonly error_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED", "CLI_USAGE", "CLI_CONFIG", "CLI_STORAGE", "CLI_DEFECT", "CLI_DEADLINE"]>>;
|
|
2162
2189
|
}>;
|
|
2163
2190
|
}>;
|
|
2164
2191
|
declare const CliDiagnosticCompletedTelemetryEventSchema: Schema.Struct<{
|
|
@@ -2783,8 +2810,8 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
2783
2810
|
journey_id: Schema.optional<Schema.String>;
|
|
2784
2811
|
correlation_id: Schema.optional<Schema.String>;
|
|
2785
2812
|
schema_version: Schema.Literal<1>;
|
|
2786
|
-
command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
|
|
2787
|
-
capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization", "contacts"]>;
|
|
2813
|
+
command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "account", "account.status", "account.balance", "account.deposit", "account.retry", "document", "document.get", "document.verify", "document.render", "document.export", "payment", "payment.list", "payment.get", "payment.wait", "payment.send", "payment.retry", "activity", "activity.list", "activity.get", "activity.summary", "activity.annotate", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.balance", "org.deposit", "org.permission", "org.permission.list", "org.permission.get", "org.permission.create", "org.permission.change", "org.permission.assign", "org.permission.revoke", "org.permission.replace", "org.permission.command", "org.permission.command.get", "org.permission.command.wait", "org.payment", "org.payment.list", "org.payment.get", "org.payment.wait", "org.payment.retry", "org.payment.send", "org.payroll", "org.payroll.groups", "org.payroll.groups.list", "org.payroll.groups.save", "org.payroll.groups.remove", "org.payroll.terms", "org.payroll.list", "org.payroll.run", "org.payroll.get", "org.payroll.wait", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
|
|
2814
|
+
capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "account", "organization", "contacts", "documents", "payments", "activity"]>;
|
|
2788
2815
|
invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
|
|
2789
2816
|
invocation_id: Schema.String;
|
|
2790
2817
|
cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
|
|
@@ -2809,8 +2836,8 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
2809
2836
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
2810
2837
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
2811
2838
|
readonly schema_version: Schema.Literal<1>;
|
|
2812
|
-
readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
|
|
2813
|
-
readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization", "contacts"]>;
|
|
2839
|
+
readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "account", "account.status", "account.balance", "account.deposit", "account.retry", "document", "document.get", "document.verify", "document.render", "document.export", "payment", "payment.list", "payment.get", "payment.wait", "payment.send", "payment.retry", "activity", "activity.list", "activity.get", "activity.summary", "activity.annotate", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.balance", "org.deposit", "org.permission", "org.permission.list", "org.permission.get", "org.permission.create", "org.permission.change", "org.permission.assign", "org.permission.revoke", "org.permission.replace", "org.permission.command", "org.permission.command.get", "org.permission.command.wait", "org.payment", "org.payment.list", "org.payment.get", "org.payment.wait", "org.payment.retry", "org.payment.send", "org.payroll", "org.payroll.groups", "org.payroll.groups.list", "org.payroll.groups.save", "org.payroll.groups.remove", "org.payroll.terms", "org.payroll.list", "org.payroll.run", "org.payroll.get", "org.payroll.wait", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
|
|
2840
|
+
readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "account", "organization", "contacts", "documents", "payments", "activity"]>;
|
|
2814
2841
|
readonly invocation_id: Schema.String;
|
|
2815
2842
|
readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
|
|
2816
2843
|
readonly anonymous_id: Schema.optional<Schema.String>;
|
|
@@ -2835,8 +2862,8 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
2835
2862
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
2836
2863
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
2837
2864
|
readonly schema_version: Schema.Literal<1>;
|
|
2838
|
-
readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
|
|
2839
|
-
readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization", "contacts"]>;
|
|
2865
|
+
readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "account", "account.status", "account.balance", "account.deposit", "account.retry", "document", "document.get", "document.verify", "document.render", "document.export", "payment", "payment.list", "payment.get", "payment.wait", "payment.send", "payment.retry", "activity", "activity.list", "activity.get", "activity.summary", "activity.annotate", "contact", "contact.list", "contact.get", "contact.add", "contact.label", "contact.hide", "contact.unhide", "org", "org.list", "org.use", "org.status", "org.me", "org.balance", "org.deposit", "org.permission", "org.permission.list", "org.permission.get", "org.permission.create", "org.permission.change", "org.permission.assign", "org.permission.revoke", "org.permission.replace", "org.permission.command", "org.permission.command.get", "org.permission.command.wait", "org.payment", "org.payment.list", "org.payment.get", "org.payment.wait", "org.payment.retry", "org.payment.send", "org.payroll", "org.payroll.groups", "org.payroll.groups.list", "org.payroll.groups.save", "org.payroll.groups.remove", "org.payroll.terms", "org.payroll.list", "org.payroll.run", "org.payroll.get", "org.payroll.wait", "org.members", "org.member", "org.member.get", "org.member.invite", "org.contact", "org.contact.list", "org.contact.get", "org.contact.add", "org.contact.label", "org.contact.hide", "org.contact.unhide", "org.invite", "org.invite.list", "org.invite.get", "org.invite.wait", "org.invite.review", "org.invite.accept", "org.invite.decline", "org.invite.cancel", "org.invite.resend", "org.invite.retry", "org.wait", "org.create", "org.retry", "unknown"]>;
|
|
2866
|
+
readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "account", "organization", "contacts", "documents", "payments", "activity"]>;
|
|
2840
2867
|
readonly invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
|
|
2841
2868
|
readonly invocation_id: Schema.String;
|
|
2842
2869
|
readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
|
|
@@ -2853,7 +2880,13 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
2853
2880
|
readonly output_mode: Schema.Literals<readonly ["human", "json"]>;
|
|
2854
2881
|
readonly outcome: Schema.Literals<readonly ["succeeded", "refused", "failed", "cancelled"]>;
|
|
2855
2882
|
readonly duration_ms: Schema.Number;
|
|
2856
|
-
readonly
|
|
2883
|
+
readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
|
|
2884
|
+
readonly setup_status: Schema.optional<Schema.Literals<readonly ["awaitingAuthorization", "processing", "needsAttention", "ready", "rechecking", "failed"]>>;
|
|
2885
|
+
readonly setup_reason: Schema.optional<Schema.Literals<readonly ["submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>>;
|
|
2886
|
+
readonly $groups: Schema.optional<Schema.Struct<{
|
|
2887
|
+
readonly organization: Schema.Codec<string, string, never, never>;
|
|
2888
|
+
}>>;
|
|
2889
|
+
readonly error_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED", "CLI_USAGE", "CLI_CONFIG", "CLI_STORAGE", "CLI_DEFECT", "CLI_DEADLINE"]>>;
|
|
2857
2890
|
}>;
|
|
2858
2891
|
}>;
|
|
2859
2892
|
readonly activity_annotation_saved: Schema.Struct<{
|
|
@@ -3357,6 +3390,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
3357
3390
|
readonly $insert_id: Schema.String;
|
|
3358
3391
|
readonly organization_id: Schema.Codec<string, string, never, never>;
|
|
3359
3392
|
readonly attempt_number: Schema.refine<number, Schema.Number>;
|
|
3393
|
+
readonly release: Schema.optional<Schema.String>;
|
|
3360
3394
|
}>;
|
|
3361
3395
|
}>;
|
|
3362
3396
|
readonly organization_creation_ready: Schema.Struct<{
|
|
@@ -3371,6 +3405,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
3371
3405
|
readonly organization_id: Schema.Codec<string, string, never, never>;
|
|
3372
3406
|
readonly attempt_number: Schema.refine<number, Schema.Number>;
|
|
3373
3407
|
readonly duration_ms: Schema.Codec<DurationMs, number, never, never>;
|
|
3408
|
+
readonly release: Schema.optional<Schema.String>;
|
|
3374
3409
|
}>;
|
|
3375
3410
|
}>;
|
|
3376
3411
|
readonly organization_creation_failed: Schema.Struct<{
|
|
@@ -3414,9 +3449,10 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
3414
3449
|
readonly stage: Schema.Literals<readonly ["profile", "accountProvisioning", "accountClaim", "preparingFounderAccount", "awaitingFounderAuthorization", "submittingBootstrap", "confirmingBootstrap"]>;
|
|
3415
3450
|
readonly error_code: Schema.String;
|
|
3416
3451
|
readonly retryable: Schema.Boolean;
|
|
3452
|
+
readonly release: Schema.optional<Schema.String>;
|
|
3417
3453
|
/** #1655: the SDK's backoff before this attempt. Absent on the first attempt. */
|
|
3418
3454
|
readonly backoff_ms: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
|
|
3419
|
-
readonly failure_reason: Schema.optional<Schema.Literals<readonly ["
|
|
3455
|
+
readonly failure_reason: Schema.optional<Schema.Literals<readonly ["receipt_provider_unavailable", "block_provider_unavailable", "submission_unknown", "receipt_unresolved", "provider_unavailable", "receipt_reverted", "deterministic_address_mismatch", "receipt_mismatch", "block_identity_changed", "authority_event_mismatch", "allowance_timestamp_mismatch", "receipt_identity_unavailable", "receipt_identity_mismatch", "contract_code_unavailable", "contract_state_mismatch", "permission_projection_mismatch", "bootstrap_reorg", "dependent_authority_unresolved", "historical_evidence_missing", "worker_failed"]>>;
|
|
3420
3456
|
}>;
|
|
3421
3457
|
}>;
|
|
3422
3458
|
readonly account_balance_read: Schema.Struct<{
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as OnboardingIntentSelectedTelemetryEventSchema, $t as redactTelemetryProps, A as FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, At as ReceiptPendingTelemetryEventSchema, B as MemberActivationFailedTelemetryEventSchema, Bt as UiContactActionCompletedTelemetryEventSchema, C as CliCommandCompletedTelemetryEventSchema, Ct as PayrollGroupChangedTelemetryEventSchema, D as ContactRelationshipChangedTelemetryEventSchema, Dt as ProvisioningSafeConfirmedTelemetryEventSchema, E as CliFirstUsedTelemetryEventSchema, Et as PostHogTelemetryAdapter, F as IdentityRefusedTelemetryEventSchema, Ft as TELEMETRY_EVENT_SCHEMAS, G as MovementScanWindowTelemetryEventSchema, Gt as createCapxulBeforeSend, H as MemberActivationStartedTelemetryEventSchema, Ht as UiPayrollActionCompletedTelemetryEventSchema, I as InMemoryTelemetryBusAdapter, It as TELEMETRY_JOURNEYS, J as NativeAuthorizationDeniedTelemetryEventSchema, Jt as initializeCapxulBrowserAnalytics, K as NativeAuthorizationAcceptedTelemetryEventSchema, Kt as createPostHogBrowserPageviewTracker, L as IndexerDriftCorrectedTelemetryEventSchema, Lt as TELEMETRY_PRODUCERS, M as FaucetConfirmedTelemetryEventSchema, Mt as ResponseHeadersSchema, N as FaucetFailedTelemetryEventSchema, Nt as SYNCABLE_CAPXUL_ENVS, O as DepositInitiatedTelemetryEventSchema, Ot as ProvisioningSafeCreatedTelemetryEventSchema, P as FaucetRequestedTelemetryEventSchema, Pt as TELEMETRY_EVENT_NAMES, Q as OnboardingDashboardReachedTelemetryEventSchema, Qt as redactTelemetryEvent, R as InvoiceIssuedTelemetryEventSchema, Rt as UiAccessStepCompletedTelemetryEventSchema, S as ChainUpstreamSchema, St as PaymentVerificationRetryTelemetryEventSchema, T as CliDiagnosticCompletedTelemetryEventSchema, Tt as PermissionMirrorVerificationTelemetryEventSchema, U as MovementScanCheckpointTelemetryEventSchema, Ut as UiReceiveStepCompletedTelemetryEventSchema, V as MemberActivationReadyTelemetryEventSchema, Vt as UiInvoiceStepCompletedTelemetryEventSchema, W as MovementScanIncidentTelemetryEventSchema, Wt as UiTreasuryStepCompletedTelemetryEventSchema, X as NativeAuthorizationReviewedTelemetryEventSchema, Xt as maskCapturedNetworkRequest, Y as NativeAuthorizationFailedTelemetryEventSchema, Yt as initializePostHogBrowserAnalytics, Z as NativeAuthorizationStartedTelemetryEventSchema, Zt as productAppAnalytics, _ as CLI_COMMAND_NAMES, _t as PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, a as AuthFailedTelemetryEventSchema, an as CAPXUL_OPERATIONS, at as OrgCreatedTelemetryEventSchema, b as ChainAttemptSchema, bt as PaymentLifecycleTransitionTelemetryEventSchema, c as AuthOtpRequestedTelemetryEventSchema, ct as OrgInviteProgressedTelemetryEventSchema, d as BROWSER_GATED_TELEMETRY_EVENTS, dt as OrgSafeConfirmedTelemetryEventSchema, en as sanitizePostHogBrowserEvent, et as OnboardingOrganizationSubmittedTelemetryEventSchema, f as BootstrapFailedTelemetryEventSchema, ft as OrgSafeCreatedTelemetryEventSchema, g as CLI_CAPABILITIES, gt as PII, h as CAPXUL_ENVS, ht as OrganizationCreationStartedTelemetryEventSchema, i as ActivityAnnotationSavedTelemetryEventSchema, in as utilityAppAnalytics, it as OrgCreateStartedTelemetryEventSchema, j as FailureModeSchema, jt as RecordingTelemetryAdapter, k as DepositSettledTelemetryEventSchema, kt as QuickPayExternalAddressAcknowledgedTelemetryEventSchema, l as AuthSignedOutTelemetryEventSchema, lt as OrgInviteSentTelemetryEventSchema, m as BundlerErrorTelemetryEventSchema, mt as OrganizationCreationReadyTelemetryEventSchema, n as AccountBalanceFailedTelemetryEventSchema, nn as stampTelemetryEnvelope, nt as OperationRetriedTelemetryEventSchema, o as AuthOtpDeliveredTelemetryEventSchema, on as isCapxulOperation, ot as OrgInviteAcceptedTelemetryEventSchema, p as BootstrapResolvedTelemetryEventSchema, pt as OrganizationCreationFailedTelemetryEventSchema, q as NativeAuthorizationConnectedTelemetryEventSchema, qt as getTrackHandler, r as AccountBalanceReadTelemetryEventSchema, rn as track, rt as OrgCreateFailedTelemetryEventSchema, s as AuthOtpExpiredTelemetryEventSchema, sn as normalizeCapxulOperation, st as OrgInviteExpiredTelemetryEventSchema, t as AccessRecoveryCompletedTelemetryEventSchema, tn as setTrackHandler, tt as OnboardingProfileSubmittedTelemetryEventSchema, u as AuthVerifiedTelemetryEventSchema, ut as OrgRolesSeededTelemetryEventSchema, v as CLI_INVOCATION_KINDS, vt as PaymentFailedTelemetryEventSchema, w as CliCommandStartedTelemetryEventSchema, wt as PayrollRunTransitionedTelemetryEventSchema, x as ChainUpstreamFallbackTelemetryEventSchema, xt as PaymentSettledTelemetryEventSchema, y as CONTRACT_FIRST_TELEMETRY_EVENTS, yt as PaymentInitiatedTelemetryEventSchema, z as InvoiceRequestTransitionedTelemetryEventSchema, zt as UiActivityActionCompletedTelemetryEventSchema } from "./src-
|
|
1
|
+
import { $ as OnboardingIntentSelectedTelemetryEventSchema, $t as redactTelemetryProps, A as FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, At as ReceiptPendingTelemetryEventSchema, B as MemberActivationFailedTelemetryEventSchema, Bt as UiContactActionCompletedTelemetryEventSchema, C as CliCommandCompletedTelemetryEventSchema, Ct as PayrollGroupChangedTelemetryEventSchema, D as ContactRelationshipChangedTelemetryEventSchema, Dt as ProvisioningSafeConfirmedTelemetryEventSchema, E as CliFirstUsedTelemetryEventSchema, Et as PostHogTelemetryAdapter, F as IdentityRefusedTelemetryEventSchema, Ft as TELEMETRY_EVENT_SCHEMAS, G as MovementScanWindowTelemetryEventSchema, Gt as createCapxulBeforeSend, H as MemberActivationStartedTelemetryEventSchema, Ht as UiPayrollActionCompletedTelemetryEventSchema, I as InMemoryTelemetryBusAdapter, It as TELEMETRY_JOURNEYS, J as NativeAuthorizationDeniedTelemetryEventSchema, Jt as initializeCapxulBrowserAnalytics, K as NativeAuthorizationAcceptedTelemetryEventSchema, Kt as createPostHogBrowserPageviewTracker, L as IndexerDriftCorrectedTelemetryEventSchema, Lt as TELEMETRY_PRODUCERS, M as FaucetConfirmedTelemetryEventSchema, Mt as ResponseHeadersSchema, N as FaucetFailedTelemetryEventSchema, Nt as SYNCABLE_CAPXUL_ENVS, O as DepositInitiatedTelemetryEventSchema, Ot as ProvisioningSafeCreatedTelemetryEventSchema, P as FaucetRequestedTelemetryEventSchema, Pt as TELEMETRY_EVENT_NAMES, Q as OnboardingDashboardReachedTelemetryEventSchema, Qt as redactTelemetryEvent, R as InvoiceIssuedTelemetryEventSchema, Rt as UiAccessStepCompletedTelemetryEventSchema, S as ChainUpstreamSchema, St as PaymentVerificationRetryTelemetryEventSchema, T as CliDiagnosticCompletedTelemetryEventSchema, Tt as PermissionMirrorVerificationTelemetryEventSchema, U as MovementScanCheckpointTelemetryEventSchema, Ut as UiReceiveStepCompletedTelemetryEventSchema, V as MemberActivationReadyTelemetryEventSchema, Vt as UiInvoiceStepCompletedTelemetryEventSchema, W as MovementScanIncidentTelemetryEventSchema, Wt as UiTreasuryStepCompletedTelemetryEventSchema, X as NativeAuthorizationReviewedTelemetryEventSchema, Xt as maskCapturedNetworkRequest, Y as NativeAuthorizationFailedTelemetryEventSchema, Yt as initializePostHogBrowserAnalytics, Z as NativeAuthorizationStartedTelemetryEventSchema, Zt as productAppAnalytics, _ as CLI_COMMAND_NAMES, _t as PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, a as AuthFailedTelemetryEventSchema, an as CAPXUL_OPERATIONS, at as OrgCreatedTelemetryEventSchema, b as ChainAttemptSchema, bt as PaymentLifecycleTransitionTelemetryEventSchema, c as AuthOtpRequestedTelemetryEventSchema, ct as OrgInviteProgressedTelemetryEventSchema, d as BROWSER_GATED_TELEMETRY_EVENTS, dt as OrgSafeConfirmedTelemetryEventSchema, en as sanitizePostHogBrowserEvent, et as OnboardingOrganizationSubmittedTelemetryEventSchema, f as BootstrapFailedTelemetryEventSchema, ft as OrgSafeCreatedTelemetryEventSchema, g as CLI_CAPABILITIES, gt as PII, h as CAPXUL_ENVS, ht as OrganizationCreationStartedTelemetryEventSchema, i as ActivityAnnotationSavedTelemetryEventSchema, in as utilityAppAnalytics, it as OrgCreateStartedTelemetryEventSchema, j as FailureModeSchema, jt as RecordingTelemetryAdapter, k as DepositSettledTelemetryEventSchema, kt as QuickPayExternalAddressAcknowledgedTelemetryEventSchema, l as AuthSignedOutTelemetryEventSchema, lt as OrgInviteSentTelemetryEventSchema, m as BundlerErrorTelemetryEventSchema, mt as OrganizationCreationReadyTelemetryEventSchema, n as AccountBalanceFailedTelemetryEventSchema, nn as stampTelemetryEnvelope, nt as OperationRetriedTelemetryEventSchema, o as AuthOtpDeliveredTelemetryEventSchema, on as isCapxulOperation, ot as OrgInviteAcceptedTelemetryEventSchema, p as BootstrapResolvedTelemetryEventSchema, pt as OrganizationCreationFailedTelemetryEventSchema, q as NativeAuthorizationConnectedTelemetryEventSchema, qt as getTrackHandler, r as AccountBalanceReadTelemetryEventSchema, rn as track, rt as OrgCreateFailedTelemetryEventSchema, s as AuthOtpExpiredTelemetryEventSchema, sn as normalizeCapxulOperation, st as OrgInviteExpiredTelemetryEventSchema, t as AccessRecoveryCompletedTelemetryEventSchema, tn as setTrackHandler, tt as OnboardingProfileSubmittedTelemetryEventSchema, u as AuthVerifiedTelemetryEventSchema, ut as OrgRolesSeededTelemetryEventSchema, v as CLI_INVOCATION_KINDS, vt as PaymentFailedTelemetryEventSchema, w as CliCommandStartedTelemetryEventSchema, wt as PayrollRunTransitionedTelemetryEventSchema, x as ChainUpstreamFallbackTelemetryEventSchema, xt as PaymentSettledTelemetryEventSchema, y as CONTRACT_FIRST_TELEMETRY_EVENTS, yt as PaymentInitiatedTelemetryEventSchema, z as InvoiceRequestTransitionedTelemetryEventSchema, zt as UiActivityActionCompletedTelemetryEventSchema } from "./src-CHIapcJZ.mjs";
|
|
2
2
|
export { AccessRecoveryCompletedTelemetryEventSchema, AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, ActivityAnnotationSavedTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CLI_CAPABILITIES, CLI_COMMAND_NAMES, CLI_INVOCATION_KINDS, CONTRACT_FIRST_TELEMETRY_EVENTS, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, CliCommandCompletedTelemetryEventSchema, CliCommandStartedTelemetryEventSchema, CliDiagnosticCompletedTelemetryEventSchema, CliFirstUsedTelemetryEventSchema, ContactRelationshipChangedTelemetryEventSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, IdentityRefusedTelemetryEventSchema, InMemoryTelemetryBusAdapter, IndexerDriftCorrectedTelemetryEventSchema, InvoiceIssuedTelemetryEventSchema, InvoiceRequestTransitionedTelemetryEventSchema, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NativeAuthorizationAcceptedTelemetryEventSchema, NativeAuthorizationConnectedTelemetryEventSchema, NativeAuthorizationDeniedTelemetryEventSchema, NativeAuthorizationFailedTelemetryEventSchema, NativeAuthorizationReviewedTelemetryEventSchema, NativeAuthorizationStartedTelemetryEventSchema, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteProgressedTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentLifecycleTransitionTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PayrollGroupChangedTelemetryEventSchema, PayrollRunTransitionedTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PostHogTelemetryAdapter, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, QuickPayExternalAddressAcknowledgedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, UiAccessStepCompletedTelemetryEventSchema, UiActivityActionCompletedTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, UiInvoiceStepCompletedTelemetryEventSchema, UiPayrollActionCompletedTelemetryEventSchema, UiReceiveStepCompletedTelemetryEventSchema, UiTreasuryStepCompletedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
|
|
@@ -347,6 +347,38 @@ const CAPXUL_ERROR_CODES = [
|
|
|
347
347
|
];
|
|
348
348
|
new Set(CAPXUL_ERROR_CODES);
|
|
349
349
|
//#endregion
|
|
350
|
+
//#region ../types/src/organization-setup.ts
|
|
351
|
+
/** Backend-owned Organization setup states shared by wire and telemetry. */
|
|
352
|
+
const ORGANIZATION_SETUP_STATUSES = [
|
|
353
|
+
"awaitingAuthorization",
|
|
354
|
+
"processing",
|
|
355
|
+
"needsAttention",
|
|
356
|
+
"ready",
|
|
357
|
+
"rechecking",
|
|
358
|
+
"failed"
|
|
359
|
+
];
|
|
360
|
+
/** Closed reasons for a stored Organization setup issue. */
|
|
361
|
+
const ORGANIZATION_SETUP_REASONS = [
|
|
362
|
+
"submission_unknown",
|
|
363
|
+
"receipt_unresolved",
|
|
364
|
+
"provider_unavailable",
|
|
365
|
+
"receipt_reverted",
|
|
366
|
+
"deterministic_address_mismatch",
|
|
367
|
+
"receipt_mismatch",
|
|
368
|
+
"block_identity_changed",
|
|
369
|
+
"authority_event_mismatch",
|
|
370
|
+
"allowance_timestamp_mismatch",
|
|
371
|
+
"receipt_identity_unavailable",
|
|
372
|
+
"receipt_identity_mismatch",
|
|
373
|
+
"contract_code_unavailable",
|
|
374
|
+
"contract_state_mismatch",
|
|
375
|
+
"permission_projection_mismatch",
|
|
376
|
+
"bootstrap_reorg",
|
|
377
|
+
"dependent_authority_unresolved",
|
|
378
|
+
"historical_evidence_missing",
|
|
379
|
+
"worker_failed"
|
|
380
|
+
];
|
|
381
|
+
//#endregion
|
|
350
382
|
//#region ../types/src/index.ts
|
|
351
383
|
const EVM_ADDRESS_RE = /^0x[0-9a-f]{40}$/i;
|
|
352
384
|
const BYTES32_RE = /^0x[0-9a-f]{64}$/i;
|
|
@@ -614,6 +646,7 @@ const CAPXUL_OPERATIONS = {
|
|
|
614
646
|
cancel: "org.invitations.cancel",
|
|
615
647
|
decline: "org.invitations.decline",
|
|
616
648
|
get: "org.invitations.get",
|
|
649
|
+
subscribe: "org.invitations.subscribe",
|
|
617
650
|
list: "org.invitations.list",
|
|
618
651
|
/**
|
|
619
652
|
* The Admin-scoped Organization list. It is named `listScoped`, not
|
|
@@ -642,16 +675,25 @@ const CAPXUL_OPERATIONS = {
|
|
|
642
675
|
change: "org.permissions.change",
|
|
643
676
|
create: "org.permissions.create",
|
|
644
677
|
get: "org.permissions.get",
|
|
678
|
+
getCommand: "org.permissions.getCommand",
|
|
679
|
+
subscribeCommand: "org.permissions.subscribeCommand",
|
|
645
680
|
list: "org.permissions.list",
|
|
646
681
|
replace: "org.permissions.replace",
|
|
682
|
+
previewReplacement: "org.permissions.previewReplacement",
|
|
647
683
|
revoke: "org.permissions.revoke"
|
|
648
684
|
},
|
|
649
685
|
payments: {
|
|
686
|
+
get: "org.payments.get",
|
|
687
|
+
list: "org.payments.list",
|
|
650
688
|
pay: "org.payments.pay",
|
|
651
|
-
payBatch: "org.payments.payBatch"
|
|
689
|
+
payBatch: "org.payments.payBatch",
|
|
690
|
+
previewRetry: "org.payments.previewRetry",
|
|
691
|
+
subscribe: "org.payments.subscribe"
|
|
652
692
|
},
|
|
653
693
|
payroll: {
|
|
654
694
|
authorizeRun: "org.payroll.authorizeRun",
|
|
695
|
+
getRun: "org.payroll.getRun",
|
|
696
|
+
subscribeRun: "org.payroll.subscribeRun",
|
|
655
697
|
groups: {
|
|
656
698
|
list: "org.payroll.groups.list",
|
|
657
699
|
remove: "org.payroll.groups.remove",
|
|
@@ -718,7 +760,8 @@ const CAPXUL_OPERATIONS = {
|
|
|
718
760
|
redirect: "payments.redirect",
|
|
719
761
|
retry: "payments.retry",
|
|
720
762
|
submitCommandExecution: "payments.submitCommandExecution",
|
|
721
|
-
submitExecution: "payments.submitExecution"
|
|
763
|
+
submitExecution: "payments.submitExecution",
|
|
764
|
+
subscribe: "payments.subscribe"
|
|
722
765
|
},
|
|
723
766
|
paymentDocuments: {
|
|
724
767
|
get: "paymentDocuments.get",
|
|
@@ -728,6 +771,8 @@ const CAPXUL_OPERATIONS = {
|
|
|
728
771
|
recipient: { resolve: "recipient.resolve" },
|
|
729
772
|
payroll: {
|
|
730
773
|
authorizeRun: "payroll.authorizeRun",
|
|
774
|
+
getRun: "payroll.getRun",
|
|
775
|
+
subscribeRun: "payroll.subscribeRun",
|
|
731
776
|
emitGroupChanged: "payroll.emitGroupChanged",
|
|
732
777
|
emitRunTransitioned: "payroll.emitRunTransitioned",
|
|
733
778
|
groups: {
|
|
@@ -742,6 +787,8 @@ const CAPXUL_OPERATIONS = {
|
|
|
742
787
|
terms: "payroll.terms"
|
|
743
788
|
},
|
|
744
789
|
permission: {
|
|
790
|
+
getCommand: "permission.getCommand",
|
|
791
|
+
previewReplacement: "permission.previewReplacement",
|
|
745
792
|
verifyInvitationConfiguration: "permission.verifyInvitationConfiguration",
|
|
746
793
|
command: "permission.command",
|
|
747
794
|
retryVerification: "permission.retryVerification",
|
|
@@ -753,8 +800,11 @@ const CAPXUL_OPERATIONS = {
|
|
|
753
800
|
change: "permissions.change",
|
|
754
801
|
create: "permissions.create",
|
|
755
802
|
get: "permissions.get",
|
|
803
|
+
getCommand: "permissions.getCommand",
|
|
804
|
+
subscribeCommand: "permissions.subscribeCommand",
|
|
756
805
|
list: "permissions.list",
|
|
757
806
|
prepareExecution: "permissions.prepareExecution",
|
|
807
|
+
previewReplacement: "permissions.previewReplacement",
|
|
758
808
|
replace: "permissions.replace",
|
|
759
809
|
revoke: "permissions.revoke",
|
|
760
810
|
submitExecution: "permissions.submitExecution"
|
|
@@ -1482,14 +1532,16 @@ const OrganizationCreationStartedProps = Schema.Struct({
|
|
|
1482
1532
|
...TelemetryEnvelopeProps,
|
|
1483
1533
|
$insert_id: Schema.String,
|
|
1484
1534
|
organization_id: OrgIdTelemetrySchema,
|
|
1485
|
-
attempt_number: AttemptNumberSchema
|
|
1535
|
+
attempt_number: AttemptNumberSchema,
|
|
1536
|
+
release: Schema.optional(Schema.String.check(Schema.isPattern(/^[0-9a-f]{40}$/u)))
|
|
1486
1537
|
});
|
|
1487
1538
|
const OrganizationCreationReadyProps = Schema.Struct({
|
|
1488
1539
|
...TelemetryEnvelopeProps,
|
|
1489
1540
|
$insert_id: Schema.String,
|
|
1490
1541
|
organization_id: OrgIdTelemetrySchema,
|
|
1491
1542
|
attempt_number: AttemptNumberSchema,
|
|
1492
|
-
duration_ms: DurationMsSchema
|
|
1543
|
+
duration_ms: DurationMsSchema,
|
|
1544
|
+
release: Schema.optional(Schema.String.check(Schema.isPattern(/^[0-9a-f]{40}$/u)))
|
|
1493
1545
|
});
|
|
1494
1546
|
const OrganizationCreationFailedProps = Schema.Struct({
|
|
1495
1547
|
...TelemetryEnvelopeProps,
|
|
@@ -1500,20 +1552,13 @@ const OrganizationCreationFailedProps = Schema.Struct({
|
|
|
1500
1552
|
stage: OnboardingStageSchema,
|
|
1501
1553
|
error_code: Schema.String,
|
|
1502
1554
|
retryable: Schema.Boolean,
|
|
1555
|
+
release: Schema.optional(Schema.String.check(Schema.isPattern(/^[0-9a-f]{40}$/u))),
|
|
1503
1556
|
/** #1655: the SDK's backoff before this attempt. Absent on the first attempt. */
|
|
1504
1557
|
backoff_ms: Schema.optional(DurationMsSchema),
|
|
1505
1558
|
failure_reason: Schema.optional(Schema.Literals([
|
|
1506
|
-
"deterministic_address_mismatch",
|
|
1507
1559
|
"receipt_provider_unavailable",
|
|
1508
|
-
"receipt_mismatch",
|
|
1509
1560
|
"block_provider_unavailable",
|
|
1510
|
-
|
|
1511
|
-
"allowance_timestamp_mismatch",
|
|
1512
|
-
"receipt_identity_unavailable",
|
|
1513
|
-
"receipt_identity_mismatch",
|
|
1514
|
-
"contract_code_unavailable",
|
|
1515
|
-
"contract_state_mismatch",
|
|
1516
|
-
"permission_projection_mismatch"
|
|
1561
|
+
...ORGANIZATION_SETUP_REASONS
|
|
1517
1562
|
]))
|
|
1518
1563
|
});
|
|
1519
1564
|
const OnboardingIntentSchema = Schema.Literals(["personal", "organization"]);
|
|
@@ -2161,6 +2206,27 @@ const CLI_COMMAND_NAMES = [
|
|
|
2161
2206
|
"auth.profile",
|
|
2162
2207
|
"auth.status",
|
|
2163
2208
|
"auth.logout",
|
|
2209
|
+
"account",
|
|
2210
|
+
CAPXUL_OPERATIONS.account.status,
|
|
2211
|
+
CAPXUL_OPERATIONS.account.balance,
|
|
2212
|
+
"account.deposit",
|
|
2213
|
+
"account.retry",
|
|
2214
|
+
"document",
|
|
2215
|
+
"document.get",
|
|
2216
|
+
"document.verify",
|
|
2217
|
+
"document.render",
|
|
2218
|
+
"document.export",
|
|
2219
|
+
"payment",
|
|
2220
|
+
"payment.list",
|
|
2221
|
+
"payment.get",
|
|
2222
|
+
"payment.wait",
|
|
2223
|
+
"payment.send",
|
|
2224
|
+
"payment.retry",
|
|
2225
|
+
"activity",
|
|
2226
|
+
CAPXUL_OPERATIONS.activity.list,
|
|
2227
|
+
CAPXUL_OPERATIONS.activity.get,
|
|
2228
|
+
CAPXUL_OPERATIONS.activity.summary,
|
|
2229
|
+
CAPXUL_OPERATIONS.activity.annotate,
|
|
2164
2230
|
"contact",
|
|
2165
2231
|
"contact.list",
|
|
2166
2232
|
"contact.get",
|
|
@@ -2173,6 +2239,35 @@ const CLI_COMMAND_NAMES = [
|
|
|
2173
2239
|
"org.use",
|
|
2174
2240
|
"org.status",
|
|
2175
2241
|
CAPXUL_OPERATIONS.org.me,
|
|
2242
|
+
"org.balance",
|
|
2243
|
+
"org.deposit",
|
|
2244
|
+
"org.permission",
|
|
2245
|
+
"org.permission.list",
|
|
2246
|
+
"org.permission.get",
|
|
2247
|
+
"org.permission.create",
|
|
2248
|
+
"org.permission.change",
|
|
2249
|
+
"org.permission.assign",
|
|
2250
|
+
"org.permission.revoke",
|
|
2251
|
+
"org.permission.replace",
|
|
2252
|
+
"org.permission.command",
|
|
2253
|
+
"org.permission.command.get",
|
|
2254
|
+
"org.permission.command.wait",
|
|
2255
|
+
CAPXUL_OPERATIONS.org.payment,
|
|
2256
|
+
"org.payment.list",
|
|
2257
|
+
"org.payment.get",
|
|
2258
|
+
"org.payment.wait",
|
|
2259
|
+
"org.payment.retry",
|
|
2260
|
+
"org.payment.send",
|
|
2261
|
+
"org.payroll",
|
|
2262
|
+
"org.payroll.groups",
|
|
2263
|
+
CAPXUL_OPERATIONS.org.payroll.groups.list,
|
|
2264
|
+
CAPXUL_OPERATIONS.org.payroll.groups.save,
|
|
2265
|
+
CAPXUL_OPERATIONS.org.payroll.groups.remove,
|
|
2266
|
+
CAPXUL_OPERATIONS.org.payroll.terms,
|
|
2267
|
+
"org.payroll.list",
|
|
2268
|
+
"org.payroll.run",
|
|
2269
|
+
"org.payroll.get",
|
|
2270
|
+
"org.payroll.wait",
|
|
2176
2271
|
CAPXUL_OPERATIONS.org.members,
|
|
2177
2272
|
"org.member",
|
|
2178
2273
|
"org.member.get",
|
|
@@ -2204,8 +2299,12 @@ const CLI_CAPABILITIES = [
|
|
|
2204
2299
|
"diagnostics",
|
|
2205
2300
|
"collection",
|
|
2206
2301
|
"authentication",
|
|
2302
|
+
"account",
|
|
2207
2303
|
"organization",
|
|
2208
|
-
"contacts"
|
|
2304
|
+
"contacts",
|
|
2305
|
+
"documents",
|
|
2306
|
+
"payments",
|
|
2307
|
+
"activity"
|
|
2209
2308
|
];
|
|
2210
2309
|
const CLI_INVOCATION_KINDS = [
|
|
2211
2310
|
"command",
|
|
@@ -2270,12 +2369,17 @@ const CliCommandCompletedTelemetryEventSchema = Schema.Struct({
|
|
|
2270
2369
|
"cancelled"
|
|
2271
2370
|
]),
|
|
2272
2371
|
duration_ms: Schema.Number,
|
|
2372
|
+
organization_id: Schema.optional(OrgIdTelemetrySchema),
|
|
2373
|
+
setup_status: Schema.optional(Schema.Literals(ORGANIZATION_SETUP_STATUSES)),
|
|
2374
|
+
setup_reason: Schema.optional(Schema.Literals(ORGANIZATION_SETUP_REASONS)),
|
|
2375
|
+
$groups: Schema.optional(Schema.Struct({ organization: OrgIdTelemetrySchema })),
|
|
2273
2376
|
error_code: Schema.optional(Schema.Literals([
|
|
2274
2377
|
...CAPXUL_ERROR_CODES,
|
|
2275
2378
|
"CLI_USAGE",
|
|
2276
2379
|
"CLI_CONFIG",
|
|
2277
2380
|
"CLI_STORAGE",
|
|
2278
|
-
"CLI_DEFECT"
|
|
2381
|
+
"CLI_DEFECT",
|
|
2382
|
+
"CLI_DEADLINE"
|
|
2279
2383
|
]))
|
|
2280
2384
|
})
|
|
2281
2385
|
});
|
|
@@ -3292,4 +3396,4 @@ function rotr(value, bits) {
|
|
|
3292
3396
|
return value >>> bits | value << 32 - bits;
|
|
3293
3397
|
}
|
|
3294
3398
|
//#endregion
|
|
3295
|
-
export { OnboardingIntentSelectedTelemetryEventSchema as $, redactTelemetryProps as $t, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS as A, ReceiptPendingTelemetryEventSchema as At, MemberActivationFailedTelemetryEventSchema as B, UiContactActionCompletedTelemetryEventSchema as Bt, CliCommandCompletedTelemetryEventSchema as C, PayrollGroupChangedTelemetryEventSchema as Ct, ContactRelationshipChangedTelemetryEventSchema as D, ProvisioningSafeConfirmedTelemetryEventSchema as Dt, CliFirstUsedTelemetryEventSchema as E, PostHogTelemetryAdapter as Et, IdentityRefusedTelemetryEventSchema as F, TELEMETRY_EVENT_SCHEMAS as Ft, MovementScanWindowTelemetryEventSchema as G, createCapxulBeforeSend as Gt, MemberActivationStartedTelemetryEventSchema as H, UiPayrollActionCompletedTelemetryEventSchema as Ht, InMemoryTelemetryBusAdapter as I, TELEMETRY_JOURNEYS as It, NativeAuthorizationDeniedTelemetryEventSchema as J, initializeCapxulBrowserAnalytics as Jt, NativeAuthorizationAcceptedTelemetryEventSchema as K, createPostHogBrowserPageviewTracker as Kt, IndexerDriftCorrectedTelemetryEventSchema as L, TELEMETRY_PRODUCERS as Lt, FaucetConfirmedTelemetryEventSchema as M, ResponseHeadersSchema as Mt, FaucetFailedTelemetryEventSchema as N, SYNCABLE_CAPXUL_ENVS as Nt, DepositInitiatedTelemetryEventSchema as O, ProvisioningSafeCreatedTelemetryEventSchema as Ot, FaucetRequestedTelemetryEventSchema as P, TELEMETRY_EVENT_NAMES as Pt, OnboardingDashboardReachedTelemetryEventSchema as Q, redactTelemetryEvent as Qt, InvoiceIssuedTelemetryEventSchema as R, UiAccessStepCompletedTelemetryEventSchema as Rt, ChainUpstreamSchema as S, PaymentVerificationRetryTelemetryEventSchema as St, CliDiagnosticCompletedTelemetryEventSchema as T, PermissionMirrorVerificationTelemetryEventSchema as Tt, MovementScanCheckpointTelemetryEventSchema as U, UiReceiveStepCompletedTelemetryEventSchema as Ut, MemberActivationReadyTelemetryEventSchema as V, UiInvoiceStepCompletedTelemetryEventSchema as Vt, MovementScanIncidentTelemetryEventSchema as W, UiTreasuryStepCompletedTelemetryEventSchema as Wt, NativeAuthorizationReviewedTelemetryEventSchema as X, maskCapturedNetworkRequest as Xt, NativeAuthorizationFailedTelemetryEventSchema as Y, initializePostHogBrowserAnalytics as Yt, NativeAuthorizationStartedTelemetryEventSchema as Z, productAppAnalytics as Zt, CLI_COMMAND_NAMES as _, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS as _t, AuthFailedTelemetryEventSchema as a, CAPXUL_OPERATIONS as an, OrgCreatedTelemetryEventSchema as at, ChainAttemptSchema as b, PaymentLifecycleTransitionTelemetryEventSchema as bt, AuthOtpRequestedTelemetryEventSchema as c,
|
|
3399
|
+
export { OnboardingIntentSelectedTelemetryEventSchema as $, redactTelemetryProps as $t, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS as A, ReceiptPendingTelemetryEventSchema as At, MemberActivationFailedTelemetryEventSchema as B, UiContactActionCompletedTelemetryEventSchema as Bt, CliCommandCompletedTelemetryEventSchema as C, PayrollGroupChangedTelemetryEventSchema as Ct, ContactRelationshipChangedTelemetryEventSchema as D, ProvisioningSafeConfirmedTelemetryEventSchema as Dt, CliFirstUsedTelemetryEventSchema as E, PostHogTelemetryAdapter as Et, IdentityRefusedTelemetryEventSchema as F, TELEMETRY_EVENT_SCHEMAS as Ft, MovementScanWindowTelemetryEventSchema as G, createCapxulBeforeSend as Gt, MemberActivationStartedTelemetryEventSchema as H, UiPayrollActionCompletedTelemetryEventSchema as Ht, InMemoryTelemetryBusAdapter as I, TELEMETRY_JOURNEYS as It, NativeAuthorizationDeniedTelemetryEventSchema as J, initializeCapxulBrowserAnalytics as Jt, NativeAuthorizationAcceptedTelemetryEventSchema as K, createPostHogBrowserPageviewTracker as Kt, IndexerDriftCorrectedTelemetryEventSchema as L, TELEMETRY_PRODUCERS as Lt, FaucetConfirmedTelemetryEventSchema as M, ResponseHeadersSchema as Mt, FaucetFailedTelemetryEventSchema as N, SYNCABLE_CAPXUL_ENVS as Nt, DepositInitiatedTelemetryEventSchema as O, ProvisioningSafeCreatedTelemetryEventSchema as Ot, FaucetRequestedTelemetryEventSchema as P, TELEMETRY_EVENT_NAMES as Pt, OnboardingDashboardReachedTelemetryEventSchema as Q, redactTelemetryEvent as Qt, InvoiceIssuedTelemetryEventSchema as R, UiAccessStepCompletedTelemetryEventSchema as Rt, ChainUpstreamSchema as S, PaymentVerificationRetryTelemetryEventSchema as St, CliDiagnosticCompletedTelemetryEventSchema as T, PermissionMirrorVerificationTelemetryEventSchema as Tt, MovementScanCheckpointTelemetryEventSchema as U, UiReceiveStepCompletedTelemetryEventSchema as Ut, MemberActivationReadyTelemetryEventSchema as V, UiInvoiceStepCompletedTelemetryEventSchema as Vt, MovementScanIncidentTelemetryEventSchema as W, UiTreasuryStepCompletedTelemetryEventSchema as Wt, NativeAuthorizationReviewedTelemetryEventSchema as X, maskCapturedNetworkRequest as Xt, NativeAuthorizationFailedTelemetryEventSchema as Y, initializePostHogBrowserAnalytics as Yt, NativeAuthorizationStartedTelemetryEventSchema as Z, productAppAnalytics as Zt, CLI_COMMAND_NAMES as _, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS as _t, AuthFailedTelemetryEventSchema as a, CAPXUL_OPERATIONS as an, OrgCreatedTelemetryEventSchema as at, ChainAttemptSchema as b, PaymentLifecycleTransitionTelemetryEventSchema as bt, AuthOtpRequestedTelemetryEventSchema as c, ORGANIZATION_SETUP_REASONS as cn, OrgInviteProgressedTelemetryEventSchema as ct, BROWSER_GATED_TELEMETRY_EVENTS as d, FAILURE_MODES as dn, OrgSafeConfirmedTelemetryEventSchema as dt, sanitizePostHogBrowserEvent as en, OnboardingOrganizationSubmittedTelemetryEventSchema as et, BootstrapFailedTelemetryEventSchema as f, isCredentialField as fn, OrgSafeCreatedTelemetryEventSchema as ft, CLI_CAPABILITIES as g, PII as gt, CAPXUL_ENVS as h, OrganizationCreationStartedTelemetryEventSchema as ht, ActivityAnnotationSavedTelemetryEventSchema as i, utilityAppAnalytics as in, OrgCreateStartedTelemetryEventSchema as it, FailureModeSchema as j, RecordingTelemetryAdapter as jt, DepositSettledTelemetryEventSchema as k, QuickPayExternalAddressAcknowledgedTelemetryEventSchema as kt, AuthSignedOutTelemetryEventSchema as l, ORGANIZATION_SETUP_STATUSES as ln, OrgInviteSentTelemetryEventSchema as lt, BundlerErrorTelemetryEventSchema as m, redactUrlSecrets as mn, OrganizationCreationReadyTelemetryEventSchema as mt, AccountBalanceFailedTelemetryEventSchema as n, stampTelemetryEnvelope as nn, OperationRetriedTelemetryEventSchema as nt, AuthOtpDeliveredTelemetryEventSchema as o, isCapxulOperation as on, OrgInviteAcceptedTelemetryEventSchema as ot, BootstrapResolvedTelemetryEventSchema as p, redactSecrets as pn, OrganizationCreationFailedTelemetryEventSchema as pt, NativeAuthorizationConnectedTelemetryEventSchema as q, getTrackHandler as qt, AccountBalanceReadTelemetryEventSchema as r, track as rn, OrgCreateFailedTelemetryEventSchema as rt, AuthOtpExpiredTelemetryEventSchema as s, normalizeCapxulOperation as sn, OrgInviteExpiredTelemetryEventSchema as st, AccessRecoveryCompletedTelemetryEventSchema as t, setTrackHandler as tn, OnboardingProfileSubmittedTelemetryEventSchema as tt, AuthVerifiedTelemetryEventSchema as u, CAPXUL_ERROR_CODES as un, OrgRolesSeededTelemetryEventSchema as ut, CLI_INVOCATION_KINDS as v, PaymentFailedTelemetryEventSchema as vt, CliCommandStartedTelemetryEventSchema as w, PayrollRunTransitionedTelemetryEventSchema as wt, ChainUpstreamFallbackTelemetryEventSchema as x, PaymentSettledTelemetryEventSchema as xt, CONTRACT_FIRST_TELEMETRY_EVENTS as y, PaymentInitiatedTelemetryEventSchema as yt, InvoiceRequestTransitionedTelemetryEventSchema as z, UiActivityActionCompletedTelemetryEventSchema as zt };
|