@capxul/sdk 1.2.2 → 1.2.3

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.
@@ -1,4 +1,4 @@
1
- import { A as CurrencyCode, B as RunId, C as AnonymousDistinctId, D as BlockNumber, E as AuthUserId, F as Money, G as TxHash, H as SmartAccount, I as OrgId, J as CapxulError, L as Profile, M as DurationMs, N as Email, O as ChainId, P as EpochMs, Q as FailureMode, R as PublishableKey, S as AllowedOrigin, T as AuthSession, U as SubAccount, V as SessionToken, W as SubAccountId, X as CapxulErrorDetails, Y as CapxulErrorCode, Z as Failure, b as AccountId, d as CapxulResult, f as Profile$1, g as AuthCachePort, j as DocumentHash, k as CountryCode, m as SmartAccount$1, n as CapxulSigner, o as AccountProviderSource, p as Session$1, s as AccountRequirement, v as CachedJwt, w as AppId, x as Address, y as Account$1, z as RoleKey } from "./signer-CJT0pPiO.mjs";
1
+ import { A as CurrencyCode, B as SessionToken, C as AnonymousDistinctId, D as BlockNumber, E as AuthUserId, F as Money, H as SubAccount, I as OrgId, J as CapxulErrorCode, L as Profile, M as DurationMs, N as Email, O as ChainId, P as EpochMs, R as PublishableKey, S as AllowedOrigin, T as AuthSession, U as SubAccountId, V as SmartAccount, W as TxHash, X as Failure, Y as CapxulErrorDetails, Z as FailureMode, b as AccountId, d as CapxulResult, f as Profile$1, g as AuthCachePort, j as DocumentHash, k as CountryCode, m as SmartAccount$1, n as CapxulSigner, o as AccountProviderSource, p as Session$1, q as CapxulError, s as AccountRequirement, v as CachedJwt, w as AppId, x as Address, y as Account$1, z as RoleKey } from "./signer-DgWAmtmi.mjs";
2
2
  import { Hex } from "viem";
3
3
  import { Context, Effect, Layer, Schema, Scope, Tracer } from "effect";
4
4
  import { FunctionReference } from "convex/server";
@@ -341,6 +341,287 @@ interface TelemetryGroupInput {
341
341
  readonly properties?: TelemetryProps;
342
342
  }
343
343
  //#endregion
344
+ //#region ../wire/src/bootstrap.d.ts
345
+ declare const EngineeringTelemetryBootstrapPolicy: Schema.Struct<{
346
+ readonly host: Schema.refine<string, Schema.String>;
347
+ readonly projectToken: Schema.refine<string, Schema.String>;
348
+ readonly capxulEnv: Schema.Union<readonly [Schema.Literal<"development">, Schema.Literal<"e2e">, Schema.Literal<"staging">, Schema.Literal<"production">]>;
349
+ }>;
350
+ type EngineeringTelemetryBootstrapPolicyV1 = Schema.Schema.Type<typeof EngineeringTelemetryBootstrapPolicy>;
351
+ //#endregion
352
+ //#region ../wire/src/status.d.ts
353
+ /** Payment lifecycle states carried on the wire (ADR-0018 P1). */
354
+ declare const PAYMENT_STATUSES: readonly ["pending", "submitted", "pending_claim", "scheduled", "streaming", "settled", "cancelled", "redirected", "expired", "failed"];
355
+ type PaymentStatus$1 = (typeof PAYMENT_STATUSES)[number];
356
+ /** What a payment is FOR. Pairs with `PAYMENT_DOCUMENT_KINDS`. */
357
+ declare const PAYMENT_TYPES: readonly ["unspecified", "invoice", "payroll", "reimbursement"];
358
+ type PaymentType$1 = (typeof PAYMENT_TYPES)[number];
359
+ /** Attachable document kinds; each maps to exactly one `PaymentType`. */
360
+ declare const PAYMENT_DOCUMENT_KINDS: readonly ["memo", "invoice", "payslip", "receipt", "withdrawal"];
361
+ type PaymentDocumentKind$1 = (typeof PAYMENT_DOCUMENT_KINDS)[number];
362
+ /** Lifecycle of a payment REQUEST as its issuer sees it. */
363
+ declare const REQUEST_STATUSES: readonly ["draft", "sent", "viewed", "pending_settlement", "paid", "declined", "cancelled", "expired"];
364
+ type RequestStatus = (typeof REQUEST_STATUSES)[number];
365
+ /** The same request as its RECIPIENT sees it, in the approval inbox. */
366
+ declare const INBOX_STATUSES: readonly ["open", "approved", "declined", "paid", "cancelled", "expired"];
367
+ type InboxStatus = (typeof INBOX_STATUSES)[number];
368
+ //#endregion
369
+ //#region ../wire/src/financial-ops.d.ts
370
+ declare const AttachablePaymentDocumentEnvelope: Schema.Union<readonly [Schema.Struct<{
371
+ readonly protocol: Schema.Literal<"capxul.payment-document">;
372
+ readonly version: Schema.Literal<1>;
373
+ readonly domain: Schema.Struct<{
374
+ readonly name: Schema.Literal<"CapxulPayments">;
375
+ readonly version: Schema.Literal<"1">;
376
+ readonly chainId: Schema.Codec<ChainId, number, never, never>;
377
+ readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
378
+ }>;
379
+ readonly primaryType: Schema.Literal<"Memo">;
380
+ readonly message: Schema.Struct<{
381
+ readonly kind: Schema.Literal<0>;
382
+ readonly reference: Schema.String;
383
+ readonly note: Schema.String;
384
+ readonly issuedAt: Schema.Number;
385
+ }>;
386
+ }>, Schema.Struct<{
387
+ readonly protocol: Schema.Literal<"capxul.payment-document">;
388
+ readonly version: Schema.Literal<1>;
389
+ readonly domain: Schema.Struct<{
390
+ readonly name: Schema.Literal<"CapxulPayments">;
391
+ readonly version: Schema.Literal<"1">;
392
+ readonly chainId: Schema.Codec<ChainId, number, never, never>;
393
+ readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
394
+ }>;
395
+ readonly primaryType: Schema.Literal<"Invoice">;
396
+ readonly message: Schema.Struct<{
397
+ readonly kind: Schema.Literal<1>;
398
+ readonly invoiceNumber: Schema.String;
399
+ readonly payerRef: Schema.String;
400
+ readonly payeeRef: Schema.String;
401
+ readonly amount: Schema.String;
402
+ readonly currency: Schema.Codec<CurrencyCode, string, never, never>;
403
+ readonly decimals: Schema.Number;
404
+ readonly issuedAt: Schema.Number;
405
+ readonly dueAt: Schema.Number;
406
+ readonly lineItemsHash: Schema.Codec<DocumentHash, string, never, never>;
407
+ }>;
408
+ }>, Schema.Struct<{
409
+ readonly protocol: Schema.Literal<"capxul.payment-document">;
410
+ readonly version: Schema.Literal<1>;
411
+ readonly domain: Schema.Struct<{
412
+ readonly name: Schema.Literal<"CapxulPayments">;
413
+ readonly version: Schema.Literal<"1">;
414
+ readonly chainId: Schema.Codec<ChainId, number, never, never>;
415
+ readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
416
+ }>;
417
+ readonly primaryType: Schema.Literal<"Payslip">;
418
+ readonly message: Schema.Struct<{
419
+ readonly kind: Schema.Literal<2>;
420
+ readonly employerRef: Schema.String;
421
+ readonly employeeRef: Schema.String;
422
+ readonly period: Schema.String;
423
+ readonly gross: Schema.String;
424
+ readonly net: Schema.String;
425
+ readonly currency: Schema.Codec<CurrencyCode, string, never, never>;
426
+ readonly decimals: Schema.Number;
427
+ readonly issuedAt: Schema.Number;
428
+ }>;
429
+ }>, Schema.Struct<{
430
+ readonly protocol: Schema.Literal<"capxul.payment-document">;
431
+ readonly version: Schema.Literal<1>;
432
+ readonly domain: Schema.Struct<{
433
+ readonly name: Schema.Literal<"CapxulPayments">;
434
+ readonly version: Schema.Literal<"1">;
435
+ readonly chainId: Schema.Codec<ChainId, number, never, never>;
436
+ readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
437
+ }>;
438
+ readonly primaryType: Schema.Literal<"Receipt">;
439
+ readonly message: Schema.Struct<{
440
+ readonly kind: Schema.Literal<3>;
441
+ readonly reference: Schema.String;
442
+ readonly amount: Schema.String;
443
+ readonly currency: Schema.Codec<CurrencyCode, string, never, never>;
444
+ readonly decimals: Schema.Number;
445
+ readonly paidAt: Schema.Number;
446
+ readonly note: Schema.String;
447
+ }>;
448
+ }>]>;
449
+ declare const WithdrawalDocumentEnvelope: Schema.Struct<{
450
+ readonly protocol: Schema.Literal<"capxul.payment-document">;
451
+ readonly version: Schema.Literal<1>;
452
+ readonly domain: Schema.Struct<{
453
+ readonly name: Schema.Literal<"CapxulPayments">;
454
+ readonly version: Schema.Literal<"1">;
455
+ readonly chainId: Schema.Codec<ChainId, number, never, never>;
456
+ readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
457
+ }>;
458
+ readonly primaryType: Schema.Literal<"Withdrawal">;
459
+ readonly message: Schema.Struct<{
460
+ readonly kind: Schema.Literal<4>;
461
+ readonly reference: Schema.String;
462
+ readonly amount: Schema.String;
463
+ readonly currency: Schema.Codec<CurrencyCode, string, never, never>;
464
+ readonly decimals: Schema.Number;
465
+ readonly destChain: Schema.Codec<ChainId, number, never, never>;
466
+ readonly destAddress: Schema.String;
467
+ readonly settledAt: Schema.Number;
468
+ readonly provider: Schema.String;
469
+ readonly note: Schema.String;
470
+ }>;
471
+ }>;
472
+ declare const PaymentDocumentEnvelope: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
473
+ readonly protocol: Schema.Literal<"capxul.payment-document">;
474
+ readonly version: Schema.Literal<1>;
475
+ readonly domain: Schema.Struct<{
476
+ readonly name: Schema.Literal<"CapxulPayments">;
477
+ readonly version: Schema.Literal<"1">;
478
+ readonly chainId: Schema.Codec<ChainId, number, never, never>;
479
+ readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
480
+ }>;
481
+ readonly primaryType: Schema.Literal<"Memo">;
482
+ readonly message: Schema.Struct<{
483
+ readonly kind: Schema.Literal<0>;
484
+ readonly reference: Schema.String;
485
+ readonly note: Schema.String;
486
+ readonly issuedAt: Schema.Number;
487
+ }>;
488
+ }>, Schema.Struct<{
489
+ readonly protocol: Schema.Literal<"capxul.payment-document">;
490
+ readonly version: Schema.Literal<1>;
491
+ readonly domain: Schema.Struct<{
492
+ readonly name: Schema.Literal<"CapxulPayments">;
493
+ readonly version: Schema.Literal<"1">;
494
+ readonly chainId: Schema.Codec<ChainId, number, never, never>;
495
+ readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
496
+ }>;
497
+ readonly primaryType: Schema.Literal<"Invoice">;
498
+ readonly message: Schema.Struct<{
499
+ readonly kind: Schema.Literal<1>;
500
+ readonly invoiceNumber: Schema.String;
501
+ readonly payerRef: Schema.String;
502
+ readonly payeeRef: Schema.String;
503
+ readonly amount: Schema.String;
504
+ readonly currency: Schema.Codec<CurrencyCode, string, never, never>;
505
+ readonly decimals: Schema.Number;
506
+ readonly issuedAt: Schema.Number;
507
+ readonly dueAt: Schema.Number;
508
+ readonly lineItemsHash: Schema.Codec<DocumentHash, string, never, never>;
509
+ }>;
510
+ }>, Schema.Struct<{
511
+ readonly protocol: Schema.Literal<"capxul.payment-document">;
512
+ readonly version: Schema.Literal<1>;
513
+ readonly domain: Schema.Struct<{
514
+ readonly name: Schema.Literal<"CapxulPayments">;
515
+ readonly version: Schema.Literal<"1">;
516
+ readonly chainId: Schema.Codec<ChainId, number, never, never>;
517
+ readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
518
+ }>;
519
+ readonly primaryType: Schema.Literal<"Payslip">;
520
+ readonly message: Schema.Struct<{
521
+ readonly kind: Schema.Literal<2>;
522
+ readonly employerRef: Schema.String;
523
+ readonly employeeRef: Schema.String;
524
+ readonly period: Schema.String;
525
+ readonly gross: Schema.String;
526
+ readonly net: Schema.String;
527
+ readonly currency: Schema.Codec<CurrencyCode, string, never, never>;
528
+ readonly decimals: Schema.Number;
529
+ readonly issuedAt: Schema.Number;
530
+ }>;
531
+ }>, Schema.Struct<{
532
+ readonly protocol: Schema.Literal<"capxul.payment-document">;
533
+ readonly version: Schema.Literal<1>;
534
+ readonly domain: Schema.Struct<{
535
+ readonly name: Schema.Literal<"CapxulPayments">;
536
+ readonly version: Schema.Literal<"1">;
537
+ readonly chainId: Schema.Codec<ChainId, number, never, never>;
538
+ readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
539
+ }>;
540
+ readonly primaryType: Schema.Literal<"Receipt">;
541
+ readonly message: Schema.Struct<{
542
+ readonly kind: Schema.Literal<3>;
543
+ readonly reference: Schema.String;
544
+ readonly amount: Schema.String;
545
+ readonly currency: Schema.Codec<CurrencyCode, string, never, never>;
546
+ readonly decimals: Schema.Number;
547
+ readonly paidAt: Schema.Number;
548
+ readonly note: Schema.String;
549
+ }>;
550
+ }>]>, Schema.Struct<{
551
+ readonly protocol: Schema.Literal<"capxul.payment-document">;
552
+ readonly version: Schema.Literal<1>;
553
+ readonly domain: Schema.Struct<{
554
+ readonly name: Schema.Literal<"CapxulPayments">;
555
+ readonly version: Schema.Literal<"1">;
556
+ readonly chainId: Schema.Codec<ChainId, number, never, never>;
557
+ readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
558
+ }>;
559
+ readonly primaryType: Schema.Literal<"Withdrawal">;
560
+ readonly message: Schema.Struct<{
561
+ readonly kind: Schema.Literal<4>;
562
+ readonly reference: Schema.String;
563
+ readonly amount: Schema.String;
564
+ readonly currency: Schema.Codec<CurrencyCode, string, never, never>;
565
+ readonly decimals: Schema.Number;
566
+ readonly destChain: Schema.Codec<ChainId, number, never, never>;
567
+ readonly destAddress: Schema.String;
568
+ readonly settledAt: Schema.Number;
569
+ readonly provider: Schema.String;
570
+ readonly note: Schema.String;
571
+ }>;
572
+ }>]>;
573
+ /**
574
+ * #592 invoice line item. `quantity` is a positive integer; `unitMinor` is the
575
+ * per-unit price in integer minor units. The list is canonically hashed by
576
+ * `hashLineItems` (payment-document-hash.ts) into the Invoice `lineItemsHash`,
577
+ * and Σ(quantity × unitMinor) MUST equal the invoice `amount`. The hash binds
578
+ * the documentHash to the exact items; the sum-check makes the items add up to
579
+ * the amount due. See the financial-operations contract in `packages/wire/CONTEXT.md`.
580
+ */
581
+ declare const LineItem: Schema.Struct<{
582
+ readonly description: Schema.String;
583
+ readonly quantity: Schema.Number;
584
+ readonly unitMinor: Schema.String;
585
+ }>;
586
+ type AttachablePaymentDocumentEnvelopeV1 = Schema.Schema.Type<typeof AttachablePaymentDocumentEnvelope>;
587
+ type PaymentDocumentEnvelopeV1 = Schema.Schema.Type<typeof PaymentDocumentEnvelope>;
588
+ type WithdrawalDocumentEnvelopeV1 = Schema.Schema.Type<typeof WithdrawalDocumentEnvelope>;
589
+ type LineItemV1 = Schema.Schema.Type<typeof LineItem>;
590
+ //#endregion
591
+ //#region ../wire/src/leak-safety.d.ts
592
+ declare const OnchainEvidenceBrand: unique symbol;
593
+ /**
594
+ * The branded `{ userOpHash, txHash }` pair. On-chain settlement evidence is
595
+ * INTERNAL — it flows on the server-internal channel only, never onto a wire
596
+ * Payment or any MCP tool output. The brand makes "this is internal evidence"
597
+ * a type, so a loose pair can't be passed where a wire field is expected.
598
+ */
599
+ type OnchainEvidence = {
600
+ readonly userOpHash: string;
601
+ readonly txHash: string;
602
+ } & {
603
+ readonly [OnchainEvidenceBrand]: "OnchainEvidence";
604
+ };
605
+ //#endregion
606
+ //#region ../wire/src/observation-context.d.ts
607
+ /**
608
+ * Bounded, non-authoritative observation metadata carried by selected SDK
609
+ * calls. Actor identity is deliberately absent: the backend derives it from
610
+ * the authenticated session and verifies organization/application hints.
611
+ */
612
+ interface WireObservationContext {
613
+ readonly application?: string;
614
+ readonly applicationId?: string;
615
+ readonly release?: string;
616
+ readonly sessionId?: string;
617
+ readonly organizationId?: string;
618
+ readonly journeyId?: string;
619
+ readonly correlationId?: string;
620
+ readonly anonymousId?: string;
621
+ /** W3C trace carrier for the explicit Convex action hop; never product identity. */
622
+ readonly traceparent?: string;
623
+ }
624
+ //#endregion
344
625
  //#region src/ports/bootstrap.d.ts
345
626
  type BootstrapInput = {
346
627
  readonly publishableKey: PublishableKey;
@@ -367,6 +648,7 @@ type BootstrapResolution = {
367
648
  readonly siteBaseUrl: string;
368
649
  readonly openfortPublishableKey: string;
369
650
  readonly shieldPublishableKey: string;
651
+ readonly engineeringTelemetry?: EngineeringTelemetryBootstrapPolicyV1;
370
652
  };
371
653
  type BootstrapErrorKind = "notAuthenticated" | "network" | "provider" | "malformedBody" | "invalidInput" | "rateLimited";
372
654
  declare const BootstrapError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => import("effect/Cause").YieldableError & {
@@ -564,12 +846,6 @@ type ConfirmDeploymentInput = {
564
846
  readonly chainId: ChainId;
565
847
  readonly safeAddress: Address;
566
848
  readonly evidence: SafeDeploymentEvidence;
567
- /**
568
- * Optional live-E2E correlation id. This does not prove deployment; the
569
- * backend still re-verifies chain evidence and only mirrors this branded
570
- * id onto telemetry for PostHog run joins.
571
- */
572
- readonly telemetryRunId?: RunId;
573
849
  };
574
850
  /**
575
851
  * Input to `SmartAccountPort.claim` (PRD #462). The authenticated session
@@ -581,7 +857,6 @@ type ClaimInput = {
581
857
  readonly authUserId: AuthUserId;
582
858
  readonly chainId: ChainId;
583
859
  readonly signerAddress: Address;
584
- readonly telemetryRunId?: RunId;
585
860
  };
586
861
  declare const SmartAccountError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => import("effect/Cause").YieldableError & {
587
862
  readonly _tag: "SmartAccountError";
@@ -733,27 +1008,8 @@ interface FlowPorts {
733
1008
  }
734
1009
  /** Legacy method input retained by the imperative auth surface. */
735
1010
  interface ExternalSigner {
736
- readonly address: Address;
737
- readonly signedProof: string;
738
- }
739
- //#endregion
740
- //#region ../wire/src/observation-context.d.ts
741
- /**
742
- * Bounded, non-authoritative observation metadata carried by selected SDK
743
- * calls. Actor identity is deliberately absent: the backend derives it from
744
- * the authenticated session and verifies organization/application hints.
745
- */
746
- interface WireObservationContext {
747
- readonly application?: string;
748
- readonly applicationId?: string;
749
- readonly release?: string;
750
- readonly sessionId?: string;
751
- readonly organizationId?: string;
752
- readonly journeyId?: string;
753
- readonly correlationId?: string;
754
- readonly anonymousId?: string;
755
- /** W3C trace carrier for the explicit Convex action hop; never product identity. */
756
- readonly traceparent?: string;
1011
+ readonly address: Address;
1012
+ readonly signedProof: string;
757
1013
  }
758
1014
  //#endregion
759
1015
  //#region src/surface/org-lifecycle.d.ts
@@ -916,260 +1172,6 @@ type AccountLifecycle = {
916
1172
  };
917
1173
  declare function isSettingUpLifecycle(lifecycle: AccountLifecycle): boolean;
918
1174
  //#endregion
919
- //#region ../wire/src/status.d.ts
920
- /** Payment lifecycle states carried on the wire (ADR-0018 P1). */
921
- declare const PAYMENT_STATUSES: readonly ["pending", "submitted", "pending_claim", "scheduled", "streaming", "settled", "cancelled", "redirected", "expired", "failed"];
922
- type PaymentStatus$1 = (typeof PAYMENT_STATUSES)[number];
923
- /** What a payment is FOR. Pairs with `PAYMENT_DOCUMENT_KINDS`. */
924
- declare const PAYMENT_TYPES: readonly ["unspecified", "invoice", "payroll", "reimbursement"];
925
- type PaymentType$1 = (typeof PAYMENT_TYPES)[number];
926
- /** Attachable document kinds; each maps to exactly one `PaymentType`. */
927
- declare const PAYMENT_DOCUMENT_KINDS: readonly ["memo", "invoice", "payslip", "receipt", "withdrawal"];
928
- type PaymentDocumentKind$1 = (typeof PAYMENT_DOCUMENT_KINDS)[number];
929
- /** Lifecycle of a payment REQUEST as its issuer sees it. */
930
- declare const REQUEST_STATUSES: readonly ["draft", "sent", "viewed", "pending_settlement", "paid", "declined", "cancelled", "expired"];
931
- type RequestStatus = (typeof REQUEST_STATUSES)[number];
932
- /** The same request as its RECIPIENT sees it, in the approval inbox. */
933
- declare const INBOX_STATUSES: readonly ["open", "approved", "declined", "paid", "cancelled", "expired"];
934
- type InboxStatus = (typeof INBOX_STATUSES)[number];
935
- //#endregion
936
- //#region ../wire/src/financial-ops.d.ts
937
- declare const AttachablePaymentDocumentEnvelope: Schema.Union<readonly [Schema.Struct<{
938
- readonly protocol: Schema.Literal<"capxul.payment-document">;
939
- readonly version: Schema.Literal<1>;
940
- readonly domain: Schema.Struct<{
941
- readonly name: Schema.Literal<"CapxulPayments">;
942
- readonly version: Schema.Literal<"1">;
943
- readonly chainId: Schema.Codec<ChainId, number, never, never>;
944
- readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
945
- }>;
946
- readonly primaryType: Schema.Literal<"Memo">;
947
- readonly message: Schema.Struct<{
948
- readonly kind: Schema.Literal<0>;
949
- readonly reference: Schema.String;
950
- readonly note: Schema.String;
951
- readonly issuedAt: Schema.Number;
952
- }>;
953
- }>, Schema.Struct<{
954
- readonly protocol: Schema.Literal<"capxul.payment-document">;
955
- readonly version: Schema.Literal<1>;
956
- readonly domain: Schema.Struct<{
957
- readonly name: Schema.Literal<"CapxulPayments">;
958
- readonly version: Schema.Literal<"1">;
959
- readonly chainId: Schema.Codec<ChainId, number, never, never>;
960
- readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
961
- }>;
962
- readonly primaryType: Schema.Literal<"Invoice">;
963
- readonly message: Schema.Struct<{
964
- readonly kind: Schema.Literal<1>;
965
- readonly invoiceNumber: Schema.String;
966
- readonly payerRef: Schema.String;
967
- readonly payeeRef: Schema.String;
968
- readonly amount: Schema.String;
969
- readonly currency: Schema.Codec<CurrencyCode, string, never, never>;
970
- readonly decimals: Schema.Number;
971
- readonly issuedAt: Schema.Number;
972
- readonly dueAt: Schema.Number;
973
- readonly lineItemsHash: Schema.Codec<DocumentHash, string, never, never>;
974
- }>;
975
- }>, Schema.Struct<{
976
- readonly protocol: Schema.Literal<"capxul.payment-document">;
977
- readonly version: Schema.Literal<1>;
978
- readonly domain: Schema.Struct<{
979
- readonly name: Schema.Literal<"CapxulPayments">;
980
- readonly version: Schema.Literal<"1">;
981
- readonly chainId: Schema.Codec<ChainId, number, never, never>;
982
- readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
983
- }>;
984
- readonly primaryType: Schema.Literal<"Payslip">;
985
- readonly message: Schema.Struct<{
986
- readonly kind: Schema.Literal<2>;
987
- readonly employerRef: Schema.String;
988
- readonly employeeRef: Schema.String;
989
- readonly period: Schema.String;
990
- readonly gross: Schema.String;
991
- readonly net: Schema.String;
992
- readonly currency: Schema.Codec<CurrencyCode, string, never, never>;
993
- readonly decimals: Schema.Number;
994
- readonly issuedAt: Schema.Number;
995
- }>;
996
- }>, Schema.Struct<{
997
- readonly protocol: Schema.Literal<"capxul.payment-document">;
998
- readonly version: Schema.Literal<1>;
999
- readonly domain: Schema.Struct<{
1000
- readonly name: Schema.Literal<"CapxulPayments">;
1001
- readonly version: Schema.Literal<"1">;
1002
- readonly chainId: Schema.Codec<ChainId, number, never, never>;
1003
- readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
1004
- }>;
1005
- readonly primaryType: Schema.Literal<"Receipt">;
1006
- readonly message: Schema.Struct<{
1007
- readonly kind: Schema.Literal<3>;
1008
- readonly reference: Schema.String;
1009
- readonly amount: Schema.String;
1010
- readonly currency: Schema.Codec<CurrencyCode, string, never, never>;
1011
- readonly decimals: Schema.Number;
1012
- readonly paidAt: Schema.Number;
1013
- readonly note: Schema.String;
1014
- }>;
1015
- }>]>;
1016
- declare const WithdrawalDocumentEnvelope: Schema.Struct<{
1017
- readonly protocol: Schema.Literal<"capxul.payment-document">;
1018
- readonly version: Schema.Literal<1>;
1019
- readonly domain: Schema.Struct<{
1020
- readonly name: Schema.Literal<"CapxulPayments">;
1021
- readonly version: Schema.Literal<"1">;
1022
- readonly chainId: Schema.Codec<ChainId, number, never, never>;
1023
- readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
1024
- }>;
1025
- readonly primaryType: Schema.Literal<"Withdrawal">;
1026
- readonly message: Schema.Struct<{
1027
- readonly kind: Schema.Literal<4>;
1028
- readonly reference: Schema.String;
1029
- readonly amount: Schema.String;
1030
- readonly currency: Schema.Codec<CurrencyCode, string, never, never>;
1031
- readonly decimals: Schema.Number;
1032
- readonly destChain: Schema.Codec<ChainId, number, never, never>;
1033
- readonly destAddress: Schema.String;
1034
- readonly settledAt: Schema.Number;
1035
- readonly provider: Schema.String;
1036
- readonly note: Schema.String;
1037
- }>;
1038
- }>;
1039
- declare const PaymentDocumentEnvelope: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
1040
- readonly protocol: Schema.Literal<"capxul.payment-document">;
1041
- readonly version: Schema.Literal<1>;
1042
- readonly domain: Schema.Struct<{
1043
- readonly name: Schema.Literal<"CapxulPayments">;
1044
- readonly version: Schema.Literal<"1">;
1045
- readonly chainId: Schema.Codec<ChainId, number, never, never>;
1046
- readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
1047
- }>;
1048
- readonly primaryType: Schema.Literal<"Memo">;
1049
- readonly message: Schema.Struct<{
1050
- readonly kind: Schema.Literal<0>;
1051
- readonly reference: Schema.String;
1052
- readonly note: Schema.String;
1053
- readonly issuedAt: Schema.Number;
1054
- }>;
1055
- }>, Schema.Struct<{
1056
- readonly protocol: Schema.Literal<"capxul.payment-document">;
1057
- readonly version: Schema.Literal<1>;
1058
- readonly domain: Schema.Struct<{
1059
- readonly name: Schema.Literal<"CapxulPayments">;
1060
- readonly version: Schema.Literal<"1">;
1061
- readonly chainId: Schema.Codec<ChainId, number, never, never>;
1062
- readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
1063
- }>;
1064
- readonly primaryType: Schema.Literal<"Invoice">;
1065
- readonly message: Schema.Struct<{
1066
- readonly kind: Schema.Literal<1>;
1067
- readonly invoiceNumber: Schema.String;
1068
- readonly payerRef: Schema.String;
1069
- readonly payeeRef: Schema.String;
1070
- readonly amount: Schema.String;
1071
- readonly currency: Schema.Codec<CurrencyCode, string, never, never>;
1072
- readonly decimals: Schema.Number;
1073
- readonly issuedAt: Schema.Number;
1074
- readonly dueAt: Schema.Number;
1075
- readonly lineItemsHash: Schema.Codec<DocumentHash, string, never, never>;
1076
- }>;
1077
- }>, Schema.Struct<{
1078
- readonly protocol: Schema.Literal<"capxul.payment-document">;
1079
- readonly version: Schema.Literal<1>;
1080
- readonly domain: Schema.Struct<{
1081
- readonly name: Schema.Literal<"CapxulPayments">;
1082
- readonly version: Schema.Literal<"1">;
1083
- readonly chainId: Schema.Codec<ChainId, number, never, never>;
1084
- readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
1085
- }>;
1086
- readonly primaryType: Schema.Literal<"Payslip">;
1087
- readonly message: Schema.Struct<{
1088
- readonly kind: Schema.Literal<2>;
1089
- readonly employerRef: Schema.String;
1090
- readonly employeeRef: Schema.String;
1091
- readonly period: Schema.String;
1092
- readonly gross: Schema.String;
1093
- readonly net: Schema.String;
1094
- readonly currency: Schema.Codec<CurrencyCode, string, never, never>;
1095
- readonly decimals: Schema.Number;
1096
- readonly issuedAt: Schema.Number;
1097
- }>;
1098
- }>, Schema.Struct<{
1099
- readonly protocol: Schema.Literal<"capxul.payment-document">;
1100
- readonly version: Schema.Literal<1>;
1101
- readonly domain: Schema.Struct<{
1102
- readonly name: Schema.Literal<"CapxulPayments">;
1103
- readonly version: Schema.Literal<"1">;
1104
- readonly chainId: Schema.Codec<ChainId, number, never, never>;
1105
- readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
1106
- }>;
1107
- readonly primaryType: Schema.Literal<"Receipt">;
1108
- readonly message: Schema.Struct<{
1109
- readonly kind: Schema.Literal<3>;
1110
- readonly reference: Schema.String;
1111
- readonly amount: Schema.String;
1112
- readonly currency: Schema.Codec<CurrencyCode, string, never, never>;
1113
- readonly decimals: Schema.Number;
1114
- readonly paidAt: Schema.Number;
1115
- readonly note: Schema.String;
1116
- }>;
1117
- }>]>, Schema.Struct<{
1118
- readonly protocol: Schema.Literal<"capxul.payment-document">;
1119
- readonly version: Schema.Literal<1>;
1120
- readonly domain: Schema.Struct<{
1121
- readonly name: Schema.Literal<"CapxulPayments">;
1122
- readonly version: Schema.Literal<"1">;
1123
- readonly chainId: Schema.Codec<ChainId, number, never, never>;
1124
- readonly verifyingContract: Schema.Literal<"0xe740ea65521edc9bef0ea75d30b5334711db99f4">;
1125
- }>;
1126
- readonly primaryType: Schema.Literal<"Withdrawal">;
1127
- readonly message: Schema.Struct<{
1128
- readonly kind: Schema.Literal<4>;
1129
- readonly reference: Schema.String;
1130
- readonly amount: Schema.String;
1131
- readonly currency: Schema.Codec<CurrencyCode, string, never, never>;
1132
- readonly decimals: Schema.Number;
1133
- readonly destChain: Schema.Codec<ChainId, number, never, never>;
1134
- readonly destAddress: Schema.String;
1135
- readonly settledAt: Schema.Number;
1136
- readonly provider: Schema.String;
1137
- readonly note: Schema.String;
1138
- }>;
1139
- }>]>;
1140
- /**
1141
- * #592 invoice line item. `quantity` is a positive integer; `unitMinor` is the
1142
- * per-unit price in integer minor units. The list is canonically hashed by
1143
- * `hashLineItems` (payment-document-hash.ts) into the Invoice `lineItemsHash`,
1144
- * and Σ(quantity × unitMinor) MUST equal the invoice `amount`. The hash binds
1145
- * the documentHash to the exact items; the sum-check makes the items add up to
1146
- * the amount due. See the financial-operations contract in `packages/wire/CONTEXT.md`.
1147
- */
1148
- declare const LineItem: Schema.Struct<{
1149
- readonly description: Schema.String;
1150
- readonly quantity: Schema.Number;
1151
- readonly unitMinor: Schema.String;
1152
- }>;
1153
- type AttachablePaymentDocumentEnvelopeV1 = Schema.Schema.Type<typeof AttachablePaymentDocumentEnvelope>;
1154
- type PaymentDocumentEnvelopeV1 = Schema.Schema.Type<typeof PaymentDocumentEnvelope>;
1155
- type WithdrawalDocumentEnvelopeV1 = Schema.Schema.Type<typeof WithdrawalDocumentEnvelope>;
1156
- type LineItemV1 = Schema.Schema.Type<typeof LineItem>;
1157
- //#endregion
1158
- //#region ../wire/src/leak-safety.d.ts
1159
- declare const OnchainEvidenceBrand: unique symbol;
1160
- /**
1161
- * The branded `{ userOpHash, txHash }` pair. On-chain settlement evidence is
1162
- * INTERNAL — it flows on the server-internal channel only, never onto a wire
1163
- * Payment or any MCP tool output. The brand makes "this is internal evidence"
1164
- * a type, so a loose pair can't be passed where a wire field is expected.
1165
- */
1166
- type OnchainEvidence = {
1167
- readonly userOpHash: string;
1168
- readonly txHash: string;
1169
- } & {
1170
- readonly [OnchainEvidenceBrand]: "OnchainEvidence";
1171
- };
1172
- //#endregion
1173
1175
  //#region src/surface/money.d.ts
1174
1176
  type ActorReference = {
1175
1177
  readonly kind: "personal";
@@ -2760,5 +2762,5 @@ interface CreateCapxulClientInput {
2760
2762
  };
2761
2763
  }
2762
2764
  //#endregion
2763
- export { InsightsSummary as $, OrgSetupStep as $t, PayrollRosterLine as A, PaymentMoney as At, ActorProfileMethods as B, RecipientResolutionKind as Bt, OrgTemplate as C, PayeesMethods as Ct, PayrollMethods as D, PaymentDocumentRender as Dt, OrganizationAuditLogItem as E, PaymentDocumentRef as Et, RoleSpendCap as F, PaymentsMethods as Ft, AddressBookAddInput as G, TargetsMethods as Gt, ActorRequest as H, Ref$1 as Ht, RoleView as I, PaymentsPayInput as It, AddressBookMethods as J, isSettingUpLifecycle as Jt, AddressBookEntry as K, AccountLifecycle as Kt, AccountsMethods as L, PaymentsPayoutInput as Lt, RemoveMemberInput as M, PaymentStatus as Mt, ResendInviteTokenInput as N, PaymentTiming as Nt, PayrollPayslipTemplate as O, PaymentDocumentVerification as Ot, RoleDefinition as P, PaymentType as Pt, InsightsMethods as Q, OrgLifecycle as Qt, AccountMethods as R, PaymentsWithdrawInput as Rt, OrgSpendViaPaymentsInput as S, Payee as St, OrganizationAccount as T, PaymentDocumentKind as Tt, ActorRequestIssueInput as U, ResolvedTarget as Ut, ActorRelationshipMethods as V, ReconciliationEntry as Vt, ActorRequestsMethods as W, TargetReference as Wt, InboxItem as X, SmartAccountMethods as Xt, InboxApproveInput as Y, IdentityMethods as Yt, InboxMethods as Z, AuthMethods as Zt, MemberView as _, InvocationControls as _n, MeProfile as _t, IdentityRuntimeSendResult as a, TelemetryEvent as an, DepositInstructions as at, OrgPayrollRun as b, OfframpQuoteInput as bt, SystemHealth as c, TelemetryPort as cn, DestinationKind as ct, CurrentUserMethods as d, IdentityState as dn, DestinationRail as dt, WireObservationContext as en, ActivityItem as et, AssignRoleInput as f, OrgLane as fn, DestinationRemoveInput as ft, MemberStatus as g, IdentityTransition as gn, MeMethods as gt, InviteMemberInput as h, destination as hn, HandlesMethods as ht, IdentityRuntime as i, CapxulEnv as in, ActorReference as it, PayrollRunInput as j, PaymentSettlementInput as jt, PayrollRosterAddInput as k, PaymentDocumentsMethods as kt, MediaMethods as l, Destination$1 as ln, DestinationListInput as lt, DetectPendingOrgInvitationsResult as m, StateLabel as mn, FinancialOpsMethods as mt, CreateCapxulClientInput as n, TransferInput as nn, ActivityMethods as nt, SubAccountsMethods as o, TelemetryGroupInput as on, Destination as ot, CreateOrgInput as p, Readiness as pn, DestinationsMethods as pt, AddressBookLabelInput as q, AccountSetupStep as qt, IdentityProfileDetails as r, TransferResult as rn, ActivityPage as rt, SystemMethods as s, TelemetryIdentifyInput as sn, DestinationAddInput as st, CapxulClient as t, TransferEndpoint as tn, ActivityListParams as tt, CurrentUserContext as u, IdentityEvent as un, DestinationPayload as ut, OrgBatchPayrollInput as v, OfframpMethods as vt, OrgView as w, Payment as wt, OrgScopedMethods as x, OfframpStatus as xt, OrgMethods as y, OfframpQuote as yt, ActorProfile as z, RecipientResolution as zt };
2764
- //# sourceMappingURL=create-capxul-client-C7H5b68l.d.mts.map
2765
+ export { InsightsSummary as $, OrgSetupStep as $t, PayrollRosterLine as A, PaymentMoney as At, ActorProfileMethods as B, RecipientResolutionKind as Bt, OrgTemplate as C, PayeesMethods as Ct, PayrollMethods as D, PaymentDocumentRender as Dt, OrganizationAuditLogItem as E, PaymentDocumentRef as Et, RoleSpendCap as F, PaymentsMethods as Ft, AddressBookAddInput as G, TargetsMethods as Gt, ActorRequest as H, Ref$1 as Ht, RoleView as I, PaymentsPayInput as It, AddressBookMethods as J, isSettingUpLifecycle as Jt, AddressBookEntry as K, AccountLifecycle as Kt, AccountsMethods as L, PaymentsPayoutInput as Lt, RemoveMemberInput as M, PaymentStatus as Mt, ResendInviteTokenInput as N, PaymentTiming as Nt, PayrollPayslipTemplate as O, PaymentDocumentVerification as Ot, RoleDefinition as P, PaymentType as Pt, InsightsMethods as Q, OrgLifecycle as Qt, AccountMethods as R, PaymentsWithdrawInput as Rt, OrgSpendViaPaymentsInput as S, Payee as St, OrganizationAccount as T, PaymentDocumentKind as Tt, ActorRequestIssueInput as U, ResolvedTarget as Ut, ActorRelationshipMethods as V, ReconciliationEntry as Vt, ActorRequestsMethods as W, TargetReference as Wt, InboxItem as X, SmartAccountMethods as Xt, InboxApproveInput as Y, IdentityMethods as Yt, InboxMethods as Z, AuthMethods as Zt, MemberView as _, InvocationControls as _n, MeProfile as _t, IdentityRuntimeSendResult as a, TelemetryEvent as an, DepositInstructions as at, OrgPayrollRun as b, OfframpQuoteInput as bt, SystemHealth as c, TelemetryPort as cn, DestinationKind as ct, CurrentUserMethods as d, IdentityState as dn, DestinationRail as dt, TransferEndpoint as en, ActivityItem as et, AssignRoleInput as f, OrgLane as fn, DestinationRemoveInput as ft, MemberStatus as g, IdentityTransition as gn, MeMethods as gt, InviteMemberInput as h, destination as hn, HandlesMethods as ht, IdentityRuntime as i, CapxulEnv as in, ActorReference as it, PayrollRunInput as j, PaymentSettlementInput as jt, PayrollRosterAddInput as k, PaymentDocumentsMethods as kt, MediaMethods as l, Destination$1 as ln, DestinationListInput as lt, DetectPendingOrgInvitationsResult as m, StateLabel as mn, FinancialOpsMethods as mt, CreateCapxulClientInput as n, TransferResult as nn, ActivityMethods as nt, SubAccountsMethods as o, TelemetryGroupInput as on, Destination as ot, CreateOrgInput as p, Readiness as pn, DestinationsMethods as pt, AddressBookLabelInput as q, AccountSetupStep as qt, IdentityProfileDetails as r, WireObservationContext as rn, ActivityPage as rt, SystemMethods as s, TelemetryIdentifyInput as sn, DestinationAddInput as st, CapxulClient as t, TransferInput as tn, ActivityListParams as tt, CurrentUserContext as u, IdentityEvent as un, DestinationPayload as ut, OrgBatchPayrollInput as v, OfframpMethods as vt, OrgView as w, Payment as wt, OrgScopedMethods as x, OfframpStatus as xt, OrgMethods as y, OfframpQuote as yt, ActorProfile as z, RecipientResolution as zt };
2766
+ //# sourceMappingURL=create-capxul-client-BxTtXho7.d.mts.map