@capxul/sdk 0.2.0-alpha.3 → 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.
@@ -731,11 +731,24 @@ type InvoiceDocument$1 = {
731
731
  recipient: UserIdentifier$1;
732
732
  amount: Money$1;
733
733
  reference?: string;
734
+ lineItems: Array<InvoiceLineItem>;
735
+ /**
736
+ * Canonical private invoice payload hash committed on-chain as documentHash.
737
+ */
738
+ invoiceHash: string;
734
739
  dueAt?: TimestampIso$1;
735
740
  status: "draft" | "open" | "paid" | "canceled" | "expired";
736
741
  fulfilledBy?: PaymentId;
737
742
  createdAt: TimestampIso$1;
738
743
  };
744
+ type InvoiceLineItem = {
745
+ description: string;
746
+ quantity: number;
747
+ unitPrice: string;
748
+ currency: string;
749
+ taxRate?: string;
750
+ category?: string;
751
+ };
739
752
  /**
740
753
  * `type = payroll_run` — per-execution payroll artifact. Shape
741
754
  * detail deferred (payroll schedule vs run
@@ -844,6 +857,7 @@ type CreateDocumentRequest = {
844
857
  recipient: UserIdentifier$1;
845
858
  amount: Money$1;
846
859
  reference?: string;
860
+ lineItems: Array<InvoiceLineItem>;
847
861
  dueAt?: TimestampIso$1;
848
862
  include?: Array<string>;
849
863
  } | {
@@ -731,11 +731,24 @@ type InvoiceDocument$1 = {
731
731
  recipient: UserIdentifier$1;
732
732
  amount: Money$1;
733
733
  reference?: string;
734
+ lineItems: Array<InvoiceLineItem>;
735
+ /**
736
+ * Canonical private invoice payload hash committed on-chain as documentHash.
737
+ */
738
+ invoiceHash: string;
734
739
  dueAt?: TimestampIso$1;
735
740
  status: "draft" | "open" | "paid" | "canceled" | "expired";
736
741
  fulfilledBy?: PaymentId;
737
742
  createdAt: TimestampIso$1;
738
743
  };
744
+ type InvoiceLineItem = {
745
+ description: string;
746
+ quantity: number;
747
+ unitPrice: string;
748
+ currency: string;
749
+ taxRate?: string;
750
+ category?: string;
751
+ };
739
752
  /**
740
753
  * `type = payroll_run` — per-execution payroll artifact. Shape
741
754
  * detail deferred (payroll schedule vs run
@@ -844,6 +857,7 @@ type CreateDocumentRequest = {
844
857
  recipient: UserIdentifier$1;
845
858
  amount: Money$1;
846
859
  reference?: string;
860
+ lineItems: Array<InvoiceLineItem>;
847
861
  dueAt?: TimestampIso$1;
848
862
  include?: Array<string>;
849
863
  } | {
@@ -1,4 +1,4 @@
1
- import { a2 as WebhookEvent } from './types-Brucpq0Z.cjs';
1
+ import { a2 as WebhookEvent } from './types-HlwCIjgQ.cjs';
2
2
  import './next-action-CTGl8wpy.cjs';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { a2 as WebhookEvent } from './types-V_D7qjxY.js';
1
+ import { a2 as WebhookEvent } from './types-BD4VAQb5.js';
2
2
  import './next-action-CTGl8wpy.js';
3
3
 
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capxul/sdk",
3
- "version": "0.2.0-alpha.3",
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,
@@ -59,8 +59,7 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "xstate": "^5",
62
- "convex": ">=1.0.0",
63
- "@repo/safe-derive": "0.0.1-alpha.0"
62
+ "convex": ">=1.0.0"
64
63
  },
65
64
  "peerDependencies": {
66
65
  "permissionless": ">=0.3.4 <0.4.0",