@stable_sea/sdk 0.1.2 → 0.1.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.
@@ -196,6 +196,46 @@ export interface paths {
196
196
  patch?: never;
197
197
  trace?: never;
198
198
  };
199
+ "/v1/notifications": {
200
+ parameters: {
201
+ query?: never;
202
+ header?: never;
203
+ path?: never;
204
+ cookie?: never;
205
+ };
206
+ /**
207
+ * List notifications
208
+ * @description Lists eligible business-wide notices newest first after a 60-second stability window. Personal, integration, and bell seen-state notifications are excluded. A locked business cannot read the feed. A test credential cannot read live notices.
209
+ */
210
+ get: operations["notifications.list"];
211
+ put?: never;
212
+ post?: never;
213
+ delete?: never;
214
+ options?: never;
215
+ head?: never;
216
+ patch?: never;
217
+ trace?: never;
218
+ };
219
+ "/v1/notifications/{id}": {
220
+ parameters: {
221
+ query?: never;
222
+ header?: never;
223
+ path?: never;
224
+ cookie?: never;
225
+ };
226
+ /**
227
+ * Retrieve a notification
228
+ * @description Returns one eligible business-wide notice by id. Other businesses' and excluded notices are indistinguishable from unknown ids. A test credential cannot read live notices.
229
+ */
230
+ get: operations["notifications.retrieve"];
231
+ put?: never;
232
+ post?: never;
233
+ delete?: never;
234
+ options?: never;
235
+ head?: never;
236
+ patch?: never;
237
+ trace?: never;
238
+ };
199
239
  "/v1/orders": {
200
240
  parameters: {
201
241
  query?: never;
@@ -328,6 +368,26 @@ export interface paths {
328
368
  patch?: never;
329
369
  trace?: never;
330
370
  };
371
+ "/v1/statements/{id}/content": {
372
+ parameters: {
373
+ query?: never;
374
+ header?: never;
375
+ path?: never;
376
+ cookie?: never;
377
+ };
378
+ /**
379
+ * Retrieve statement content
380
+ * @description Returns the immutable issued statement values as display-ready JSON. Corrected statements remain retrievable and name their replacement.
381
+ */
382
+ get: operations["statements.content.retrieve"];
383
+ put?: never;
384
+ post?: never;
385
+ delete?: never;
386
+ options?: never;
387
+ head?: never;
388
+ patch?: never;
389
+ trace?: never;
390
+ };
331
391
  "/v1/transactions": {
332
392
  parameters: {
333
393
  query?: never;
@@ -686,7 +746,7 @@ export interface components {
686
746
  object: "list";
687
747
  };
688
748
  /** @enum {string} */
689
- EventTypeName: "order.updated" | "transaction.created" | "transaction.updated";
749
+ EventTypeName: "notification.created" | "order.updated" | "transaction.created" | "transaction.updated";
690
750
  List: {
691
751
  data: components["schemas"]["Resource"][];
692
752
  has_more: boolean;
@@ -697,6 +757,32 @@ export interface components {
697
757
  Metadata: {
698
758
  [key: string]: string;
699
759
  };
760
+ Notification: {
761
+ /** Format: date-time */
762
+ created_ts: string;
763
+ id: string;
764
+ livemode: boolean;
765
+ /** @enum {string} */
766
+ object: "notification";
767
+ resource?: {
768
+ id: string;
769
+ /** @enum {string} */
770
+ object: "statement";
771
+ };
772
+ /** @enum {string} */
773
+ type: "balance_statement_ready" | "payout_destination_changed" | "account_frozen" | "deposit_refused_embargo";
774
+ };
775
+ NotificationList: {
776
+ data: components["schemas"]["Notification"][];
777
+ has_more: boolean;
778
+ /** @enum {string} */
779
+ object: "list";
780
+ };
781
+ NotificationResource: {
782
+ id: string;
783
+ /** @enum {string} */
784
+ object: "statement";
785
+ };
700
786
  Order: {
701
787
  amount: string;
702
788
  /** Format: date-time */
@@ -815,12 +901,104 @@ export interface components {
815
901
  period_start_ts: string;
816
902
  superseded_by?: string;
817
903
  };
904
+ StatementCommission: {
905
+ amount: string;
906
+ label: string;
907
+ symbol: string;
908
+ };
909
+ StatementContent: {
910
+ balances: components["schemas"]["StatementLine"][];
911
+ /** Format: date-time */
912
+ created_ts: string;
913
+ id: string;
914
+ livemode: boolean;
915
+ /** @enum {string} */
916
+ object: "statement_content";
917
+ period: components["schemas"]["StatementPeriod"];
918
+ ramp_fees?: components["schemas"]["StatementRampFee"][];
919
+ superseded_by?: string;
920
+ totals: components["schemas"]["StatementTotals"];
921
+ transactions: components["schemas"]["StatementEntry"][];
922
+ };
923
+ StatementEffect: {
924
+ amount: string;
925
+ /** @enum {string} */
926
+ amount_status?: "provisional" | "settled";
927
+ quoted_amount?: string;
928
+ symbol: string;
929
+ };
930
+ StatementEntry: {
931
+ commission?: components["schemas"]["StatementCommission"];
932
+ effects: components["schemas"]["StatementEffect"][];
933
+ id: string;
934
+ label: string;
935
+ /** Format: date-time */
936
+ occurred_ts: string;
937
+ /** @enum {string} */
938
+ status: "completed" | "pending" | "failed";
939
+ /** @enum {string} */
940
+ type: "ach_offramp" | "ach_onramp" | "adjustment" | "bank_payin" | "bank_payout" | "buy_fund_token" | "buy_fund_token_return" | "buy_fund_token_return_sweep" | "deposit_hold" | "deposit_return" | "fund_cash_subscription" | "fund_dividend_payout" | "fund_distribution_payout" | "fund_gas_tank" | "fund_xlm_reserve" | "gas_wallet_funding" | "go_account_conversion" | "go_account_custodial_transfer" | "go_account_external_send" | "onchain_deposit" | "onchain_withdrawal" | "ramp_fee_refund" | "reclassification" | "sell_fund_token" | "sell_fund_token_return" | "trade_order" | "treasury_booking" | "treasury_wire_credit" | "wire_offramp" | "wire_onramp";
941
+ withdrawal?: components["schemas"]["StatementWithdrawal"];
942
+ };
943
+ StatementLine: {
944
+ ending_native: string;
945
+ ending_usd: string;
946
+ label: string;
947
+ net_change_native: string;
948
+ net_change_usd: string;
949
+ opening_native: string;
950
+ opening_usd: string;
951
+ segregated_rail?: string;
952
+ symbol: string;
953
+ };
818
954
  StatementList: {
819
955
  data: components["schemas"]["Statement"][];
820
956
  has_more: boolean;
821
957
  /** @enum {string} */
822
958
  object: "list";
823
959
  };
960
+ StatementPeriod: {
961
+ /** Format: date-time */
962
+ end_ts: string;
963
+ label: string;
964
+ /** Format: date-time */
965
+ start_ts: string;
966
+ };
967
+ StatementRampFee: {
968
+ /** Format: date-time */
969
+ assessed_ts: string;
970
+ assessed_usdc: string;
971
+ bank_fee_usd: string;
972
+ collected_usdc: string;
973
+ /** @enum {string} */
974
+ direction: "onramp" | "offramp";
975
+ events: components["schemas"]["StatementRampFeeEvent"][];
976
+ net_proceeds_usdc?: string;
977
+ paid_to_bank_usd?: string;
978
+ principal_usd: string;
979
+ refunded_usdc: string;
980
+ /** @enum {string} */
981
+ status: "not_needed" | "pending" | "collected" | "waived" | "partially_refunded" | "refunded";
982
+ total_debit_usdc?: string;
983
+ transaction_id: string;
984
+ };
985
+ StatementRampFeeEvent: {
986
+ amount_usdc: string;
987
+ /** @enum {string} */
988
+ kind: "collection" | "refund";
989
+ /** Format: date-time */
990
+ settled_ts: string;
991
+ transaction_id: string;
992
+ };
993
+ StatementTotals: {
994
+ ending_usd: string;
995
+ net_change_usd: string;
996
+ opening_usd: string;
997
+ };
998
+ StatementWithdrawal: {
999
+ fee: string;
1000
+ paid_to_bank: string;
1001
+ };
824
1002
  Transaction: {
825
1003
  /** @description The signed net change to the business's own SETTLED holdings, one entry per asset, ordered by asset. Empty when nothing of the business's own has settled yet: a movement still pending or processing reports no change, and neither does one whose every leg failed. A failed movement DOES report the legs that settled before it failed. */
826
1004
  asset_changes: components["schemas"]["TransactionAssetChange"][];
@@ -854,7 +1032,7 @@ export interface components {
854
1032
  * @description What the movement is. The full vocabulary is published; a business only ever sees the members its own activity produces.
855
1033
  * @enum {string}
856
1034
  */
857
- type: "ach_offramp" | "ach_onramp" | "adjustment" | "bank_payin" | "bank_payout" | "buy_fund_token" | "buy_fund_token_return" | "fund_cash_subscription" | "fund_dividend_payout" | "fund_distribution_payout" | "fund_gas_tank" | "fund_xlm_reserve" | "gas_wallet_funding" | "go_account_conversion" | "go_account_custodial_transfer" | "go_account_external_send" | "onchain_deposit" | "onchain_withdrawal" | "reclassification" | "sell_fund_token" | "sell_fund_token_return" | "trade_order" | "treasury_booking" | "treasury_wire_credit" | "wire_offramp" | "wire_onramp";
1035
+ type: "ach_offramp" | "ach_onramp" | "adjustment" | "bank_payin" | "bank_payout" | "buy_fund_token" | "buy_fund_token_return" | "buy_fund_token_return_sweep" | "deposit_hold" | "deposit_return" | "fund_cash_subscription" | "fund_dividend_payout" | "fund_distribution_payout" | "fund_gas_tank" | "fund_xlm_reserve" | "gas_wallet_funding" | "go_account_conversion" | "go_account_custodial_transfer" | "go_account_external_send" | "onchain_deposit" | "onchain_withdrawal" | "ramp_fee_refund" | "reclassification" | "sell_fund_token" | "sell_fund_token_return" | "trade_order" | "treasury_booking" | "treasury_wire_credit" | "wire_offramp" | "wire_onramp";
858
1036
  };
859
1037
  TransactionAssetChange: {
860
1038
  /** @description The signed net change to the business's settled holdings of this asset, in the asset's own units. NEGATIVE LEFT the business, positive arrived. Net of the ledger's fees and taxes, on the same basis /v1/balances reports. Summing an asset's amounts across every transaction — not only the completed ones — gives the movement in its settled balance. */
@@ -1236,6 +1414,74 @@ export interface operations {
1236
1414
  };
1237
1415
  };
1238
1416
  };
1417
+ "notifications.list": {
1418
+ parameters: {
1419
+ query?: {
1420
+ /** @description How many notifications to return. Defaults to 10. */
1421
+ limit?: number;
1422
+ /** @description Return the notifications immediately older than this notification id. Cannot be combined with ending_before. */
1423
+ starting_after?: string;
1424
+ /** @description Return the notifications immediately newer than this notification id. Cannot be combined with starting_after. */
1425
+ ending_before?: string;
1426
+ };
1427
+ header?: never;
1428
+ path?: never;
1429
+ cookie?: never;
1430
+ };
1431
+ requestBody?: never;
1432
+ responses: {
1433
+ /** @description OK */
1434
+ 200: {
1435
+ headers: {
1436
+ [name: string]: unknown;
1437
+ };
1438
+ content: {
1439
+ "application/json": components["schemas"]["NotificationList"];
1440
+ };
1441
+ };
1442
+ /** @description Error response. */
1443
+ default: {
1444
+ headers: {
1445
+ [name: string]: unknown;
1446
+ };
1447
+ content: {
1448
+ "application/json": components["schemas"]["Error"];
1449
+ };
1450
+ };
1451
+ };
1452
+ };
1453
+ "notifications.retrieve": {
1454
+ parameters: {
1455
+ query?: never;
1456
+ header?: never;
1457
+ path: {
1458
+ /** @description The notification id. */
1459
+ id: string;
1460
+ };
1461
+ cookie?: never;
1462
+ };
1463
+ requestBody?: never;
1464
+ responses: {
1465
+ /** @description OK */
1466
+ 200: {
1467
+ headers: {
1468
+ [name: string]: unknown;
1469
+ };
1470
+ content: {
1471
+ "application/json": components["schemas"]["Notification"];
1472
+ };
1473
+ };
1474
+ /** @description Error response. */
1475
+ default: {
1476
+ headers: {
1477
+ [name: string]: unknown;
1478
+ };
1479
+ content: {
1480
+ "application/json": components["schemas"]["Error"];
1481
+ };
1482
+ };
1483
+ };
1484
+ };
1239
1485
  "orders.list": {
1240
1486
  parameters: {
1241
1487
  query?: {
@@ -1472,6 +1718,38 @@ export interface operations {
1472
1718
  };
1473
1719
  };
1474
1720
  };
1721
+ "statements.content.retrieve": {
1722
+ parameters: {
1723
+ query?: never;
1724
+ header?: never;
1725
+ path: {
1726
+ /** @description The statement id. */
1727
+ id: string;
1728
+ };
1729
+ cookie?: never;
1730
+ };
1731
+ requestBody?: never;
1732
+ responses: {
1733
+ /** @description OK */
1734
+ 200: {
1735
+ headers: {
1736
+ [name: string]: unknown;
1737
+ };
1738
+ content: {
1739
+ "application/json": components["schemas"]["StatementContent"];
1740
+ };
1741
+ };
1742
+ /** @description Error response. */
1743
+ default: {
1744
+ headers: {
1745
+ [name: string]: unknown;
1746
+ };
1747
+ content: {
1748
+ "application/json": components["schemas"]["Error"];
1749
+ };
1750
+ };
1751
+ };
1752
+ };
1475
1753
  "transactions.list": {
1476
1754
  parameters: {
1477
1755
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stable_sea/sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "files": [
@@ -35,13 +35,13 @@
35
35
  "openapi-fetch": "0.17.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@types/node": "24.10.1",
38
+ "@types/node": "26.6.2",
39
39
  "openapi-typescript": "7.13.0",
40
40
  "typescript": "5.9.3",
41
- "vitest": "4.1.11"
41
+ "vitest": "5.0.1"
42
42
  },
43
43
  "overrides": {
44
- "js-yaml": "^5.4.1",
44
+ "js-yaml": "^5.4.2",
45
45
  "nanoid": "^3.3.17"
46
46
  }
47
47
  }