@capxul/sdk 0.1.0-alpha.9 → 0.2.0-alpha.4

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.
@@ -19,8 +19,8 @@ type AccountId = PrefixedId<"acct", "AccountId">;
19
19
  declare const toAccountId: (raw: string) => PrefixedId<"acct", "AccountId">;
20
20
  type OrganizationId = PrefixedId<"org", "OrganizationId">;
21
21
  declare const toOrganizationId: (raw: string) => PrefixedId<"org", "OrganizationId">;
22
- type MemberId = PrefixedId<"mem", "MemberId">;
23
- declare const toMemberId: (raw: string) => PrefixedId<"mem", "MemberId">;
22
+ type MemberId = PrefixedId<"mb", "MemberId">;
23
+ declare const toMemberId: (raw: string) => PrefixedId<"mb", "MemberId">;
24
24
  type SafeId = PrefixedId<"safe", "SafeId">;
25
25
  declare const toSafeId: (raw: string) => PrefixedId<"safe", "SafeId">;
26
26
  type TreasuryId = PrefixedId<"try", "TreasuryId">;
@@ -19,8 +19,8 @@ type AccountId = PrefixedId<"acct", "AccountId">;
19
19
  declare const toAccountId: (raw: string) => PrefixedId<"acct", "AccountId">;
20
20
  type OrganizationId = PrefixedId<"org", "OrganizationId">;
21
21
  declare const toOrganizationId: (raw: string) => PrefixedId<"org", "OrganizationId">;
22
- type MemberId = PrefixedId<"mem", "MemberId">;
23
- declare const toMemberId: (raw: string) => PrefixedId<"mem", "MemberId">;
22
+ type MemberId = PrefixedId<"mb", "MemberId">;
23
+ declare const toMemberId: (raw: string) => PrefixedId<"mb", "MemberId">;
24
24
  type SafeId = PrefixedId<"safe", "SafeId">;
25
25
  declare const toSafeId: (raw: string) => PrefixedId<"safe", "SafeId">;
26
26
  type TreasuryId = PrefixedId<"try", "TreasuryId">;
@@ -1,4 +1,4 @@
1
- import { Y as PublicId, A as AccountId$1, S as SafeId$1, d as OrganizationId$1, c as KycProfileId$1, b as ExternalAccountId$1, O as OperationId$1, C as CorrelationId$1, f as SubAccountId$1, B as BalanceLedgerEntryId$1, a as ApiKeyId$1, h as TreasuryId$1, M as MemberId$1, K as KybProfileId$1, N as NextAction$1, P as PaymentId$1, g as TransferId$1, k as WithdrawalId$1, D as DocumentId$1, W as WebhookEndpointId$1, j as WebhookEventId$1, V as VirtualAccountId$1, i as VirtualCardId$1 } from './next-action-DkrwXYay.js';
1
+ import { Y as PublicId, A as AccountId$1, S as SafeId$1, d as OrganizationId$1, N as NextAction$1, c as KycProfileId$1, b as ExternalAccountId$1, O as OperationId$1, C as CorrelationId$1, f as SubAccountId$1, B as BalanceLedgerEntryId$1, a as ApiKeyId$1, h as TreasuryId$1, M as MemberId$1, P as PaymentId$1, g as TransferId$1, k as WithdrawalId$1, D as DocumentId$1, W as WebhookEndpointId$1, j as WebhookEventId$1, V as VirtualAccountId$1, i as VirtualCardId$1, K as KybProfileId$1 } from './next-action-CTGl8wpy.js';
2
2
 
3
3
  type AccountId = string;
4
4
  type OrganizationId = string;
@@ -212,13 +212,20 @@ type Organization$1 = {
212
212
  status: string;
213
213
  operation: OperationSummary$1;
214
214
  };
215
+ type MembershipStatus$1 = "pending" | "active" | "revoked" | "expired";
215
216
  type Member$1 = {
216
217
  object: "member";
217
218
  id: MemberId;
218
219
  organizationId: OrganizationId;
219
- accountId: AccountId;
220
- role: "owner" | "finance_manager" | "team_lead" | "viewer";
221
- createdAt: TimestampIso$1;
220
+ authUserId: string;
221
+ email: string;
222
+ role: "owner" | "finance_manager" | "payments_operator" | "org_admin" | "viewer" | "accountant";
223
+ status: MembershipStatus$1;
224
+ invitedBy: string;
225
+ invitedAt: number;
226
+ expiresAt: number;
227
+ acceptedAt: number;
228
+ resentCount: number;
222
229
  };
223
230
  type Safe$1 = {
224
231
  object: "safe";
@@ -724,11 +731,24 @@ type InvoiceDocument$1 = {
724
731
  recipient: UserIdentifier$1;
725
732
  amount: Money$1;
726
733
  reference?: string;
734
+ lineItems: Array<InvoiceLineItem>;
735
+ /**
736
+ * Canonical private invoice payload hash committed on-chain as documentHash.
737
+ */
738
+ invoiceHash: string;
727
739
  dueAt?: TimestampIso$1;
728
740
  status: "draft" | "open" | "paid" | "canceled" | "expired";
729
741
  fulfilledBy?: PaymentId;
730
742
  createdAt: TimestampIso$1;
731
743
  };
744
+ type InvoiceLineItem = {
745
+ description: string;
746
+ quantity: number;
747
+ unitPrice: string;
748
+ currency: string;
749
+ taxRate?: string;
750
+ category?: string;
751
+ };
732
752
  /**
733
753
  * `type = payroll_run` — per-execution payroll artifact. Shape
734
754
  * detail deferred (payroll schedule vs run
@@ -837,6 +857,7 @@ type CreateDocumentRequest = {
837
857
  recipient: UserIdentifier$1;
838
858
  amount: Money$1;
839
859
  reference?: string;
860
+ lineItems: Array<InvoiceLineItem>;
840
861
  dueAt?: TimestampIso$1;
841
862
  include?: Array<string>;
842
863
  } | {
@@ -1051,9 +1072,49 @@ type Safe = Override<Rebrand<Safe$1, SafeId$1>, {
1051
1072
  type Organization = Rebrand<Organization$1, OrganizationId$1>;
1052
1073
  type Treasury = Rebrand<Treasury$1, TreasuryId$1> & {
1053
1074
  readonly organizationId: OrganizationId$1;
1075
+ readonly safeId: SafeId$1;
1076
+ readonly totalBalance: Money;
1077
+ readonly positions: Array<{
1078
+ readonly symbol: string;
1079
+ readonly contractAddress: string;
1080
+ readonly amount: string;
1081
+ }>;
1082
+ readonly asOf: TimestampIso;
1083
+ };
1084
+ type KycStatus = KycProfile$1["status"];
1085
+ type KybStatus = KybProfile$1["status"];
1086
+ /**
1087
+ * Shared base type for identity profiles (KYC + KYB).
1088
+ *
1089
+ * Parameterized by status so per-resource discriminated unions
1090
+ * narrow correctly via `matchStatus`.
1091
+ */
1092
+ type IdentityProfileBase<TStatus extends string> = {
1093
+ readonly object: string;
1094
+ readonly id: string;
1095
+ readonly owner: {
1096
+ readonly type: string;
1097
+ readonly id: string;
1098
+ };
1099
+ readonly status: TStatus;
1100
+ readonly nextAction?: NextAction$1;
1101
+ };
1102
+ type KycProfile = IdentityProfileBase<KycStatus> & {
1103
+ readonly object: "kyc_profile";
1104
+ readonly id: KycProfileId$1;
1105
+ readonly owner: {
1106
+ readonly type: "account";
1107
+ readonly id: AccountId$1;
1108
+ };
1109
+ };
1110
+ type KybProfile = IdentityProfileBase<KybStatus> & {
1111
+ readonly object: "kyb_profile";
1112
+ readonly id: KybProfileId$1;
1113
+ readonly owner: {
1114
+ readonly type: "organization";
1115
+ readonly id: OrganizationId$1;
1116
+ };
1054
1117
  };
1055
- type KycProfile = Rebrand<KycProfile$1, KycProfileId$1>;
1056
- type KybProfile = Rebrand<KybProfile$1, KybProfileId$1>;
1057
1118
  /**
1058
1119
  * Trust-chain operation summary is sourced from the wire's nested
1059
1120
  * `operation: OperationSummary` field (see resources.mdx §canonical
@@ -1130,7 +1191,15 @@ type ApiKey = Rebrand<ApiKey$1, ApiKeyId$1>;
1130
1191
  type ApiKeyEnvironment = ApiKeyEnvironment$1;
1131
1192
  type ApiKeyType = ApiKeyType$1;
1132
1193
  type Scope = Scope$1;
1133
- type Member = Rebrand<Member$1, MemberId$1>;
1194
+ type Member = Rebrand<Omit<Member$1, "authUserId" | "acceptedAt"> & {
1195
+ readonly authUserId: string | null;
1196
+ readonly acceptedAt: number | null;
1197
+ }, MemberId$1>;
1198
+ type MembershipStatus = MembershipStatus$1;
1199
+ type MemberInviteResponse = {
1200
+ readonly member: Member;
1201
+ readonly inviteToken: string;
1202
+ };
1134
1203
  type BalanceLedgerEntry = Rebrand<BalanceLedgerEntry$1, BalanceLedgerEntryId$1>;
1135
1204
 
1136
- export type { WithdrawalStatus as $, Account as A, BalanceLedgerEntry as B, CreatePaymentResult as C, Document as D, ExternalAccount as E, TransferEndpoint as F, TransferFx as G, TransferStatus as H, InvoiceDocument as I, Treasury as J, KybProfile as K, List as L, Member as M, VirtualAccountOwnerKind as N, Operation as O, PageInfo as P, VirtualCard as Q, ReceiptDocument as R, Safe as S, TaxFormDocument as T, UserIdentifier as U, VirtualAccount as V, VirtualCardLimits as W, VirtualCardOwnerKind as X, WebhookEndpoint as Y, WebhookEvent as Z, Withdrawal as _, AccountLookupResult as a, CreateApiKeyRequest as a0, CreateDocumentRequest as a1, CreateWebhookEndpointRequest as a2, CreateVirtualAccountRequest as a3, CreateVirtualCardRequest as a4, ApiKey as b, ApiKeyEnvironment as c, ApiKeyType as d, BankStatementDocument as e, CreateTransferResult as f, CreateWithdrawalResult as g, ExternalAccountKind as h, KycProfile as i, KycUploadDocument as j, Money as k, OperationStatus as l, OperationSummary as m, Organization as n, Payment as o, PaymentParty as p, PaymentStatus as q, PayrollRunDocument as r, PayrollScheduleDocument as s, Scope as t, Settlement as u, SubAccount as v, SubAccountOwnerKind as w, TimestampIso as x, Transfer as y, TransferCustody as z };
1205
+ export type { VirtualCardLimits as $, Account as A, BalanceLedgerEntry as B, CreatePaymentResult as C, Document as D, ExternalAccount as E, SubAccount as F, SubAccountOwnerKind as G, TimestampIso as H, IdentityProfileBase as I, Transfer as J, KybProfile as K, List as L, Member as M, TransferCustody as N, Operation as O, PageInfo as P, TransferEndpoint as Q, ReceiptDocument as R, Safe as S, TaxFormDocument as T, TransferFx as U, TransferStatus as V, Treasury as W, UserIdentifier as X, VirtualAccount as Y, VirtualAccountOwnerKind as Z, VirtualCard as _, AccountLookupResult as a, VirtualCardOwnerKind as a0, WebhookEndpoint as a1, WebhookEvent as a2, Withdrawal as a3, WithdrawalStatus as a4, CreateApiKeyRequest as a5, CreateDocumentRequest as a6, CreateWebhookEndpointRequest as a7, CreateVirtualAccountRequest as a8, CreateVirtualCardRequest as a9, ApiKey as b, ApiKeyEnvironment as c, ApiKeyType as d, BankStatementDocument as e, CreateTransferResult as f, CreateWithdrawalResult as g, ExternalAccountKind as h, InvoiceDocument as i, KybStatus as j, KycProfile as k, KycStatus as l, KycUploadDocument as m, MemberInviteResponse as n, MembershipStatus as o, Money as p, OperationStatus as q, OperationSummary as r, Organization as s, Payment as t, PaymentParty as u, PaymentStatus as v, PayrollRunDocument as w, PayrollScheduleDocument as x, Scope as y, Settlement as z };
@@ -1,4 +1,4 @@
1
- import { Y as PublicId, A as AccountId$1, S as SafeId$1, d as OrganizationId$1, c as KycProfileId$1, b as ExternalAccountId$1, O as OperationId$1, C as CorrelationId$1, f as SubAccountId$1, B as BalanceLedgerEntryId$1, a as ApiKeyId$1, h as TreasuryId$1, M as MemberId$1, K as KybProfileId$1, N as NextAction$1, P as PaymentId$1, g as TransferId$1, k as WithdrawalId$1, D as DocumentId$1, W as WebhookEndpointId$1, j as WebhookEventId$1, V as VirtualAccountId$1, i as VirtualCardId$1 } from './next-action-DkrwXYay.cjs';
1
+ import { Y as PublicId, A as AccountId$1, S as SafeId$1, d as OrganizationId$1, N as NextAction$1, c as KycProfileId$1, b as ExternalAccountId$1, O as OperationId$1, C as CorrelationId$1, f as SubAccountId$1, B as BalanceLedgerEntryId$1, a as ApiKeyId$1, h as TreasuryId$1, M as MemberId$1, P as PaymentId$1, g as TransferId$1, k as WithdrawalId$1, D as DocumentId$1, W as WebhookEndpointId$1, j as WebhookEventId$1, V as VirtualAccountId$1, i as VirtualCardId$1, K as KybProfileId$1 } from './next-action-CTGl8wpy.cjs';
2
2
 
3
3
  type AccountId = string;
4
4
  type OrganizationId = string;
@@ -212,13 +212,20 @@ type Organization$1 = {
212
212
  status: string;
213
213
  operation: OperationSummary$1;
214
214
  };
215
+ type MembershipStatus$1 = "pending" | "active" | "revoked" | "expired";
215
216
  type Member$1 = {
216
217
  object: "member";
217
218
  id: MemberId;
218
219
  organizationId: OrganizationId;
219
- accountId: AccountId;
220
- role: "owner" | "finance_manager" | "team_lead" | "viewer";
221
- createdAt: TimestampIso$1;
220
+ authUserId: string;
221
+ email: string;
222
+ role: "owner" | "finance_manager" | "payments_operator" | "org_admin" | "viewer" | "accountant";
223
+ status: MembershipStatus$1;
224
+ invitedBy: string;
225
+ invitedAt: number;
226
+ expiresAt: number;
227
+ acceptedAt: number;
228
+ resentCount: number;
222
229
  };
223
230
  type Safe$1 = {
224
231
  object: "safe";
@@ -724,11 +731,24 @@ type InvoiceDocument$1 = {
724
731
  recipient: UserIdentifier$1;
725
732
  amount: Money$1;
726
733
  reference?: string;
734
+ lineItems: Array<InvoiceLineItem>;
735
+ /**
736
+ * Canonical private invoice payload hash committed on-chain as documentHash.
737
+ */
738
+ invoiceHash: string;
727
739
  dueAt?: TimestampIso$1;
728
740
  status: "draft" | "open" | "paid" | "canceled" | "expired";
729
741
  fulfilledBy?: PaymentId;
730
742
  createdAt: TimestampIso$1;
731
743
  };
744
+ type InvoiceLineItem = {
745
+ description: string;
746
+ quantity: number;
747
+ unitPrice: string;
748
+ currency: string;
749
+ taxRate?: string;
750
+ category?: string;
751
+ };
732
752
  /**
733
753
  * `type = payroll_run` — per-execution payroll artifact. Shape
734
754
  * detail deferred (payroll schedule vs run
@@ -837,6 +857,7 @@ type CreateDocumentRequest = {
837
857
  recipient: UserIdentifier$1;
838
858
  amount: Money$1;
839
859
  reference?: string;
860
+ lineItems: Array<InvoiceLineItem>;
840
861
  dueAt?: TimestampIso$1;
841
862
  include?: Array<string>;
842
863
  } | {
@@ -1051,9 +1072,49 @@ type Safe = Override<Rebrand<Safe$1, SafeId$1>, {
1051
1072
  type Organization = Rebrand<Organization$1, OrganizationId$1>;
1052
1073
  type Treasury = Rebrand<Treasury$1, TreasuryId$1> & {
1053
1074
  readonly organizationId: OrganizationId$1;
1075
+ readonly safeId: SafeId$1;
1076
+ readonly totalBalance: Money;
1077
+ readonly positions: Array<{
1078
+ readonly symbol: string;
1079
+ readonly contractAddress: string;
1080
+ readonly amount: string;
1081
+ }>;
1082
+ readonly asOf: TimestampIso;
1083
+ };
1084
+ type KycStatus = KycProfile$1["status"];
1085
+ type KybStatus = KybProfile$1["status"];
1086
+ /**
1087
+ * Shared base type for identity profiles (KYC + KYB).
1088
+ *
1089
+ * Parameterized by status so per-resource discriminated unions
1090
+ * narrow correctly via `matchStatus`.
1091
+ */
1092
+ type IdentityProfileBase<TStatus extends string> = {
1093
+ readonly object: string;
1094
+ readonly id: string;
1095
+ readonly owner: {
1096
+ readonly type: string;
1097
+ readonly id: string;
1098
+ };
1099
+ readonly status: TStatus;
1100
+ readonly nextAction?: NextAction$1;
1101
+ };
1102
+ type KycProfile = IdentityProfileBase<KycStatus> & {
1103
+ readonly object: "kyc_profile";
1104
+ readonly id: KycProfileId$1;
1105
+ readonly owner: {
1106
+ readonly type: "account";
1107
+ readonly id: AccountId$1;
1108
+ };
1109
+ };
1110
+ type KybProfile = IdentityProfileBase<KybStatus> & {
1111
+ readonly object: "kyb_profile";
1112
+ readonly id: KybProfileId$1;
1113
+ readonly owner: {
1114
+ readonly type: "organization";
1115
+ readonly id: OrganizationId$1;
1116
+ };
1054
1117
  };
1055
- type KycProfile = Rebrand<KycProfile$1, KycProfileId$1>;
1056
- type KybProfile = Rebrand<KybProfile$1, KybProfileId$1>;
1057
1118
  /**
1058
1119
  * Trust-chain operation summary is sourced from the wire's nested
1059
1120
  * `operation: OperationSummary` field (see resources.mdx §canonical
@@ -1130,7 +1191,15 @@ type ApiKey = Rebrand<ApiKey$1, ApiKeyId$1>;
1130
1191
  type ApiKeyEnvironment = ApiKeyEnvironment$1;
1131
1192
  type ApiKeyType = ApiKeyType$1;
1132
1193
  type Scope = Scope$1;
1133
- type Member = Rebrand<Member$1, MemberId$1>;
1194
+ type Member = Rebrand<Omit<Member$1, "authUserId" | "acceptedAt"> & {
1195
+ readonly authUserId: string | null;
1196
+ readonly acceptedAt: number | null;
1197
+ }, MemberId$1>;
1198
+ type MembershipStatus = MembershipStatus$1;
1199
+ type MemberInviteResponse = {
1200
+ readonly member: Member;
1201
+ readonly inviteToken: string;
1202
+ };
1134
1203
  type BalanceLedgerEntry = Rebrand<BalanceLedgerEntry$1, BalanceLedgerEntryId$1>;
1135
1204
 
1136
- export type { WithdrawalStatus as $, Account as A, BalanceLedgerEntry as B, CreatePaymentResult as C, Document as D, ExternalAccount as E, TransferEndpoint as F, TransferFx as G, TransferStatus as H, InvoiceDocument as I, Treasury as J, KybProfile as K, List as L, Member as M, VirtualAccountOwnerKind as N, Operation as O, PageInfo as P, VirtualCard as Q, ReceiptDocument as R, Safe as S, TaxFormDocument as T, UserIdentifier as U, VirtualAccount as V, VirtualCardLimits as W, VirtualCardOwnerKind as X, WebhookEndpoint as Y, WebhookEvent as Z, Withdrawal as _, AccountLookupResult as a, CreateApiKeyRequest as a0, CreateDocumentRequest as a1, CreateWebhookEndpointRequest as a2, CreateVirtualAccountRequest as a3, CreateVirtualCardRequest as a4, ApiKey as b, ApiKeyEnvironment as c, ApiKeyType as d, BankStatementDocument as e, CreateTransferResult as f, CreateWithdrawalResult as g, ExternalAccountKind as h, KycProfile as i, KycUploadDocument as j, Money as k, OperationStatus as l, OperationSummary as m, Organization as n, Payment as o, PaymentParty as p, PaymentStatus as q, PayrollRunDocument as r, PayrollScheduleDocument as s, Scope as t, Settlement as u, SubAccount as v, SubAccountOwnerKind as w, TimestampIso as x, Transfer as y, TransferCustody as z };
1205
+ export type { VirtualCardLimits as $, Account as A, BalanceLedgerEntry as B, CreatePaymentResult as C, Document as D, ExternalAccount as E, SubAccount as F, SubAccountOwnerKind as G, TimestampIso as H, IdentityProfileBase as I, Transfer as J, KybProfile as K, List as L, Member as M, TransferCustody as N, Operation as O, PageInfo as P, TransferEndpoint as Q, ReceiptDocument as R, Safe as S, TaxFormDocument as T, TransferFx as U, TransferStatus as V, Treasury as W, UserIdentifier as X, VirtualAccount as Y, VirtualAccountOwnerKind as Z, VirtualCard as _, AccountLookupResult as a, VirtualCardOwnerKind as a0, WebhookEndpoint as a1, WebhookEvent as a2, Withdrawal as a3, WithdrawalStatus as a4, CreateApiKeyRequest as a5, CreateDocumentRequest as a6, CreateWebhookEndpointRequest as a7, CreateVirtualAccountRequest as a8, CreateVirtualCardRequest as a9, ApiKey as b, ApiKeyEnvironment as c, ApiKeyType as d, BankStatementDocument as e, CreateTransferResult as f, CreateWithdrawalResult as g, ExternalAccountKind as h, InvoiceDocument as i, KybStatus as j, KycProfile as k, KycStatus as l, KycUploadDocument as m, MemberInviteResponse as n, MembershipStatus as o, Money as p, OperationStatus as q, OperationSummary as r, Organization as s, Payment as t, PaymentParty as u, PaymentStatus as v, PayrollRunDocument as w, PayrollScheduleDocument as x, Scope as y, Settlement as z };
package/dist/webhooks.cjs CHANGED
@@ -32,7 +32,7 @@ function roleKeyFromLabel(label) {
32
32
  }
33
33
  roleKeyFromLabel("OWNER");
34
34
  roleKeyFromLabel("FINANCE_MANAGER");
35
- roleKeyFromLabel("TEAM_LEAD");
35
+ roleKeyFromLabel("PAYMENTS_OPERATOR");
36
36
 
37
37
  // src/webhooks.ts
38
38
  async function verifyWebhook(request, secret, options) {
@@ -1,5 +1,5 @@
1
- import { Z as WebhookEvent } from './types-hfcOE7Oi.cjs';
2
- import './next-action-DkrwXYay.cjs';
1
+ import { a2 as WebhookEvent } from './types-HlwCIjgQ.cjs';
2
+ import './next-action-CTGl8wpy.cjs';
3
3
 
4
4
  /**
5
5
  * Webhook verification primitive per CANON.md §4.41 +
@@ -1,5 +1,5 @@
1
- import { Z as WebhookEvent } from './types-PM4AQRLP.js';
2
- import './next-action-DkrwXYay.js';
1
+ import { a2 as WebhookEvent } from './types-BD4VAQb5.js';
2
+ import './next-action-CTGl8wpy.js';
3
3
 
4
4
  /**
5
5
  * Webhook verification primitive per CANON.md §4.41 +
package/dist/webhooks.js CHANGED
@@ -30,7 +30,7 @@ function roleKeyFromLabel(label) {
30
30
  }
31
31
  roleKeyFromLabel("OWNER");
32
32
  roleKeyFromLabel("FINANCE_MANAGER");
33
- roleKeyFromLabel("TEAM_LEAD");
33
+ roleKeyFromLabel("PAYMENTS_OPERATOR");
34
34
 
35
35
  // src/webhooks.ts
36
36
  async function verifyWebhook(request, secret, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capxul/sdk",
3
- "version": "0.1.0-alpha.9",
3
+ "version": "0.2.0-alpha.4",
4
4
  "description": "Headless TypeScript client for Capxul's /v1/* HTTP contract.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -58,10 +58,10 @@
58
58
  "access": "public"
59
59
  },
60
60
  "dependencies": {
61
- "xstate": "^5"
61
+ "xstate": "^5",
62
+ "convex": ">=1.0.0"
62
63
  },
63
64
  "peerDependencies": {
64
- "convex": ">=1.0.0",
65
65
  "permissionless": ">=0.3.4 <0.4.0",
66
66
  "viem": ">=2.0.0"
67
67
  },
@@ -73,12 +73,13 @@
73
73
  "viem": "2.47.10",
74
74
  "vitest": "^4.1.2",
75
75
  "zod": "^4.3.6",
76
- "@repo/backend": "0.0.0",
77
76
  "@repo/api-contract": "0.0.0",
77
+ "@repo/backend": "0.0.1-alpha.0",
78
78
  "@repo/config": "0.0.0",
79
79
  "@repo/observability": "0.0.0",
80
80
  "@repo/platform-kernel": "0.0.0",
81
- "@repo/typescript-config": "0.0.0"
81
+ "@repo/typescript-config": "0.0.0",
82
+ "@repo/safe-derive": "0.0.1-alpha.0"
82
83
  },
83
84
  "scripts": {
84
85
  "build": "tsup",