@arca-network/sdk 1.1.0

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.
Files changed (67) hide show
  1. package/LICENSE +91 -0
  2. package/README.md +65 -0
  3. package/dist/admin.d.ts +159 -0
  4. package/dist/admin.d.ts.map +1 -0
  5. package/dist/admin.js +399 -0
  6. package/dist/admin.js.map +1 -0
  7. package/dist/arca.d.ts +1343 -0
  8. package/dist/arca.d.ts.map +1 -0
  9. package/dist/arca.js +3454 -0
  10. package/dist/arca.js.map +1 -0
  11. package/dist/cache.d.ts +29 -0
  12. package/dist/cache.d.ts.map +1 -0
  13. package/dist/cache.js +74 -0
  14. package/dist/cache.js.map +1 -0
  15. package/dist/candle-cdn.d.ts +17 -0
  16. package/dist/candle-cdn.d.ts.map +1 -0
  17. package/dist/candle-cdn.js +138 -0
  18. package/dist/candle-cdn.js.map +1 -0
  19. package/dist/client.d.ts +98 -0
  20. package/dist/client.d.ts.map +1 -0
  21. package/dist/client.js +225 -0
  22. package/dist/client.js.map +1 -0
  23. package/dist/errors.d.ts +153 -0
  24. package/dist/errors.d.ts.map +1 -0
  25. package/dist/errors.js +243 -0
  26. package/dist/errors.js.map +1 -0
  27. package/dist/events.d.ts +2 -0
  28. package/dist/events.d.ts.map +1 -0
  29. package/dist/events.js +6 -0
  30. package/dist/events.js.map +1 -0
  31. package/dist/index.d.ts +21 -0
  32. package/dist/index.d.ts.map +1 -0
  33. package/dist/index.js +71 -0
  34. package/dist/index.js.map +1 -0
  35. package/dist/ladder.d.ts +40 -0
  36. package/dist/ladder.d.ts.map +1 -0
  37. package/dist/ladder.js +145 -0
  38. package/dist/ladder.js.map +1 -0
  39. package/dist/ladder.test.d.ts +2 -0
  40. package/dist/ladder.test.d.ts.map +1 -0
  41. package/dist/ladder.test.js +112 -0
  42. package/dist/ladder.test.js.map +1 -0
  43. package/dist/operation-handle.d.ts +88 -0
  44. package/dist/operation-handle.d.ts.map +1 -0
  45. package/dist/operation-handle.js +262 -0
  46. package/dist/operation-handle.js.map +1 -0
  47. package/dist/recovery.d.ts +20 -0
  48. package/dist/recovery.d.ts.map +1 -0
  49. package/dist/recovery.js +91 -0
  50. package/dist/recovery.js.map +1 -0
  51. package/dist/revalue.d.ts +22 -0
  52. package/dist/revalue.d.ts.map +1 -0
  53. package/dist/revalue.js +153 -0
  54. package/dist/revalue.js.map +1 -0
  55. package/dist/streams.d.ts +661 -0
  56. package/dist/streams.d.ts.map +1 -0
  57. package/dist/streams.js +2272 -0
  58. package/dist/streams.js.map +1 -0
  59. package/dist/types.d.ts +2814 -0
  60. package/dist/types.d.ts.map +1 -0
  61. package/dist/types.js +118 -0
  62. package/dist/types.js.map +1 -0
  63. package/dist/websocket.d.ts +240 -0
  64. package/dist/websocket.d.ts.map +1 -0
  65. package/dist/websocket.js +1288 -0
  66. package/dist/websocket.js.map +1 -0
  67. package/package.json +48 -0
package/LICENSE ADDED
@@ -0,0 +1,91 @@
1
+ # PolyForm Shield License 1.0.0
2
+
3
+ <https://polyformproject.org/licenses/shield/1.0.0>
4
+
5
+ Required Notice: Copyright 2026 Arca Research (https://arcaos.io)
6
+
7
+ ## Acceptance
8
+
9
+ In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
10
+
11
+ ## Copyright License
12
+
13
+ The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
14
+
15
+ ## Distribution License
16
+
17
+ The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
18
+
19
+ ## Notices
20
+
21
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
22
+
23
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
24
+
25
+ ## Changes and New Works License
26
+
27
+ The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
28
+
29
+ ## Patent License
30
+
31
+ The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
32
+
33
+ ## Noncompete
34
+
35
+ Any purpose is a permitted purpose, except for providing any product that competes with the software or any product the licensor or any of its affiliates provides using the software.
36
+
37
+ ## Competition
38
+
39
+ Goods and services compete even when they provide functionality through different kinds of interfaces or for different technical platforms. Applications can compete with services, libraries with plugins, frameworks with development tools, and so on, even if they're written in different programming languages or for different computer architectures. Goods and services compete even when provided free of charge. If you market a product as a practical substitute for the software or another product, it definitely competes.
40
+
41
+ ## New Products
42
+
43
+ If you are using the software to provide a product that does not compete, but the licensor or any of its affiliates brings your product into competition by providing a new version of the software or another product using the software, you may continue using versions of the software available under these terms beforehand to provide your competing product, but not any later versions.
44
+
45
+ ## Discontinued Products
46
+
47
+ You may begin using the software to compete with a product or service that the licensor or any of its affiliates has stopped providing, unless the licensor includes a plain-text line beginning with `Licensor Line of Business:` with the software that mentions that line of business. For example:
48
+
49
+ > Licensor Line of Business: YoyodyneCMS Content Management System (http://example.com/cms)
50
+
51
+ ## Sales of Business
52
+
53
+ If the licensor or any of its affiliates sells a line of business developing the software or using the software to provide a product, the buyer can also enforce [Noncompete](#noncompete) for that product.
54
+
55
+ ## Fair Use
56
+
57
+ You may have "fair use" rights for the software under the law. These terms do not limit them.
58
+
59
+ ## No Other Rights
60
+
61
+ These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
62
+
63
+ ## Patent Defense
64
+
65
+ If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
66
+
67
+ ## Violations
68
+
69
+ The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
70
+
71
+ ## No Liability
72
+
73
+ ***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
74
+
75
+ ## Definitions
76
+
77
+ The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
78
+
79
+ A **product** can be a good or service, or a combination of them.
80
+
81
+ **You** refers to the individual or entity agreeing to these terms.
82
+
83
+ **Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all its affiliates.
84
+
85
+ **Affiliates** means the other organizations than an organization has control over, is under the control of, or is under common control with.
86
+
87
+ **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
88
+
89
+ **Your licenses** are all the licenses granted to you for the software under these terms.
90
+
91
+ **Use** means anything you do with the software requiring one of your licenses.
package/README.md ADDED
@@ -0,0 +1,65 @@
1
+ # @arca-network/sdk (TypeScript)
2
+
3
+ TypeScript SDK for the Arca platform.
4
+
5
+ ## Build
6
+
7
+ From repo root:
8
+
9
+ ```bash
10
+ pnpm run sdk:build
11
+ ```
12
+ Or directly:
13
+
14
+ ```bash
15
+ cd sdk/typescript
16
+ pnpm run build
17
+ ```
18
+
19
+ ## Dev (watch mode)
20
+
21
+ ```bash
22
+ pnpm run sdk:dev
23
+ ```
24
+
25
+ ## Clean
26
+
27
+ ```bash
28
+ pnpm run sdk:clean
29
+ ```
30
+
31
+ ## Requirements
32
+
33
+ - Node.js 20+
34
+
35
+ ### WebSocket support
36
+
37
+ The SDK uses WebSocket for real-time operation tracking. Node.js 22+ provides a native global `WebSocket`; on Node.js 20–21, the SDK automatically falls back to the bundled [`ws`](https://github.com/websockets/ws) package. No additional setup is needed.
38
+
39
+ ### Equity & P&L Charts
40
+
41
+ Use the chart APIs below. The server is the single source of truth for every point including the open bucket; the SDK never synthesizes a "now" point and never invalidates the cache on a 5%-deviation heuristic. Each point carries an explicit `status` flag (`'sealed' | 'open' | 'carried' | 'incomplete'`) the renderer is required to honor.
42
+
43
+ - **`getEquityHistory({ path, from, to, points?, kind?, objectId? })`** — fetches `/objects/aggregate/history` using `target`/`kind` and normalizes the current response to the stable SDK shape.
44
+ - **`getPnlHistory({ path, from, to, points?, anchor?, kind?, objectId? })`** — fetches `/objects/pnl/history` using `target`/`kind`; P&L is derived inline by the server from the same snapshot rows. Use `anchor: 'equity'` to receive flow-adjusted `valueUsd`, where deposits/transfers shift the baseline instead of drawing timeline jumps.
45
+ - **`watchEquityChart({ path, from, to, points?, kind?, objectId?, exchange? })`** — combines `getEquityHistory` with live aggregation updates and refetches history after gaps.
46
+ - **`watchPnlChart({ path, from, to, points?, anchor?, kind?, objectId?, exchange? })`** — same stream pattern for P&L charts.
47
+
48
+ Resolution selection is shared with the backend (`pickResolution` from `'@arca-network/sdk'`); pick a `points` budget — the server picks the rung. When the chosen rung's retention has been exceeded for the requested window, the response carries `resolutionRequested` to indicate which rung was promoted to.
49
+
50
+ Exported types: `EquityChartStream`, `PnlChartStream`, `EquityHistoryResponse`, `PnlHistoryResponse`, `EquityPoint`, `PnlPoint`, `EquityChartUpdate`, `PnlChartUpdate`, `Resolution`.
51
+
52
+ ```ts
53
+ const chart = await arca.watchEquityChart({
54
+ path: '/users/alice/',
55
+ from: oneDayAgoIso,
56
+ to: nowIso,
57
+ points: 500,
58
+ });
59
+ chart.onUpdate(({ response }) => {
60
+ for (const p of response.points) {
61
+ // p.status: 'sealed' | 'open' | 'carried' | 'incomplete'
62
+ // p.equityUsd: string
63
+ }
64
+ });
65
+ ```
@@ -0,0 +1,159 @@
1
+ import { ApiKeyCreatedResponse, ApiKeyListResponse, CreateApiKeyOptions, AuthAuditFilters, AuthAuditListResponse, BatchSummariesResponse, CredentialScopeResponse, AuthResponse, RefreshResponse, BuilderProfile, CreateOrgResponse, Invitation, InvitationListResponse, InvitationPreview, InviteMemberRequest, MintTokenRequest, MintTokenResponse, MyOrgMembership, Organization, ActiveTerms, OrgMember, OrgMemberListResponse, Realm, RealmListResponse, RealmSettings, RealmType, CreateRealmAxes, UpdateMemberRequest } from './types';
2
+ import type { StepUpHandler } from './client';
3
+ export interface ArcaAdminConfig {
4
+ /** Base URL of the Arca API (e.g. https://api.arcaos.io). */
5
+ baseUrl?: string;
6
+ /** JWT token for authenticated calls. Not needed for signUp/signIn. */
7
+ token?: string;
8
+ /**
9
+ * Optional handler invoked on HTTP 412 `STEP_UP_REQUIRED`. See
10
+ * {@link StepUpHandler}. Used by the portal to wire an in-app
11
+ * confirmation modal for destructive admin actions.
12
+ */
13
+ onStepUpRequired?: StepUpHandler;
14
+ }
15
+ /**
16
+ * Admin client for builder-scoped operations that don't require a realm context:
17
+ * authentication, realm management, and API key management.
18
+ *
19
+ * ```typescript
20
+ * const admin = new ArcaAdmin({ baseUrl: 'http://localhost:3052' });
21
+ * const { token, builder } = await admin.signInWithGoogle('google-id-token');
22
+ * admin.setToken(token);
23
+ * const realms = await admin.listRealms();
24
+ * ```
25
+ */
26
+ export declare class ArcaAdmin {
27
+ private readonly baseUrl;
28
+ private token;
29
+ private activeOrgId;
30
+ private stepUpHandler?;
31
+ private stepUpInFlight;
32
+ constructor(config?: ArcaAdminConfig);
33
+ /** Update the auth token (e.g. after signIn). */
34
+ setToken(token: string): void;
35
+ /** Set the active organization for multi-org users. */
36
+ setActiveOrgId(orgId: string | null): void;
37
+ /**
38
+ * Register or clear the step-up handler that intercepts 412
39
+ * `STEP_UP_REQUIRED` responses. Mirrors {@link ArcaClient.setStepUpHandler}.
40
+ */
41
+ setStepUpHandler(handler?: StepUpHandler): void;
42
+ signInWithGoogle(googleIdToken: string, orgName?: string): Promise<AuthResponse>;
43
+ getMe(): Promise<BuilderProfile>;
44
+ refresh(refreshToken: string): Promise<RefreshResponse>;
45
+ logout(refreshToken: string): Promise<void>;
46
+ /**
47
+ * Mint a scoped JWT for an end-user. The token is locked to a single realm
48
+ * and carries IAM policy statements that control which actions and resources
49
+ * the end-user can access.
50
+ *
51
+ * Intended to be called from the builder's backend; pass the resulting token
52
+ * to the frontend for use with `Arca.fromToken()`.
53
+ */
54
+ mintToken(request: MintTokenRequest): Promise<MintTokenResponse>;
55
+ /**
56
+ * Mint a scoped JWT for a single end-user device with one of three
57
+ * preset permission levels, instead of constructing IAM
58
+ * {@link PolicyStatement}s by hand. This is the one-shot helper for
59
+ * the common "issue a token from my backend so my iOS app can talk
60
+ * to Arca directly" workflow.
61
+ *
62
+ * The presets are:
63
+ *
64
+ * | preset | actions |
65
+ * |-----------|----------------------------------------------------------|
66
+ * | `read` | `arca:Read` (the default — view-only) |
67
+ * | `trade` | `arca:Read` + `arca:Exchange` (place/cancel orders/TWAPs)|
68
+ * | `full` | `arca:Read` + `arca:Write` (place orders, transfer, etc.)|
69
+ *
70
+ * `forUserPath` is the resource scope: pass the path subtree the
71
+ * end-user owns (e.g. `"/users/alice"`) and the token will only be
72
+ * usable on resources at or below that path. Defaults to `"*"` (no
73
+ * resource restriction).
74
+ *
75
+ * @example
76
+ * ```ts
77
+ * // Issue a "trading" token for an iOS device — can place orders + TWAPs
78
+ * // + cancel them, on alice's resources only.
79
+ * const { token } = await admin.mintDeviceToken({
80
+ * realmId: 'rlm_...',
81
+ * sub: 'alice',
82
+ * forUserPath: '/users/alice',
83
+ * permissions: 'trade',
84
+ * expirationMinutes: 60,
85
+ * });
86
+ * ```
87
+ *
88
+ * For custom action sets, use {@link mintToken} directly with
89
+ * hand-written {@link PolicyStatement}s.
90
+ */
91
+ mintDeviceToken(opts: {
92
+ realmId: string;
93
+ sub: string;
94
+ forUserPath?: string;
95
+ permissions?: 'read' | 'trade' | 'full';
96
+ expirationMinutes?: number;
97
+ }): Promise<MintTokenResponse>;
98
+ /**
99
+ * Create a realm. `type` is the legacy single-axis input (kept for backward
100
+ * compatibility); pass `axes.asset` / `axes.lifecycle` to set the two-axis
101
+ * model directly. When `axes.asset` is supplied it wins and `type` is
102
+ * derived from it server-side. `axes.backing` defaults to `chain`.
103
+ */
104
+ createRealm(name: string, type?: RealmType, description?: string, axes?: CreateRealmAxes): Promise<Realm>;
105
+ listRealms(): Promise<RealmListResponse>;
106
+ getRealm(id: string): Promise<Realm>;
107
+ deleteRealm(id: string): Promise<{
108
+ deleted: boolean;
109
+ }>;
110
+ updateRealmSettings(id: string, settings: Partial<RealmSettings>): Promise<Realm>;
111
+ listSummaries(realmIds: string[]): Promise<BatchSummariesResponse>;
112
+ createApiKey(nameOrOptions: string | CreateApiKeyOptions): Promise<ApiKeyCreatedResponse>;
113
+ listApiKeys(): Promise<ApiKeyListResponse>;
114
+ revokeApiKey(id: string): Promise<{
115
+ revoked: boolean;
116
+ }>;
117
+ listAuthAuditLog(filters?: AuthAuditFilters): Promise<AuthAuditListResponse>;
118
+ listMyOrgs(): Promise<MyOrgMembership[]>;
119
+ createOrg(name: string): Promise<CreateOrgResponse>;
120
+ getOrg(): Promise<Organization>;
121
+ getActiveTerms(): Promise<ActiveTerms>;
122
+ acceptTerms(version: number): Promise<{
123
+ accepted: boolean;
124
+ }>;
125
+ listMembers(): Promise<OrgMemberListResponse>;
126
+ updateMember(memberId: string, request: UpdateMemberRequest): Promise<OrgMember>;
127
+ removeMember(memberId: string): Promise<{
128
+ deleted: boolean;
129
+ }>;
130
+ inviteMember(request: InviteMemberRequest): Promise<Invitation>;
131
+ listInvitations(): Promise<InvitationListResponse>;
132
+ revokeInvitation(invitationId: string): Promise<{
133
+ revoked: boolean;
134
+ }>;
135
+ previewInvitation(token: string): Promise<InvitationPreview>;
136
+ acceptInvitation(token: string): Promise<OrgMember>;
137
+ listPendingInvitations(): Promise<InvitationListResponse>;
138
+ transferOwnership(targetUserId: string): Promise<{
139
+ transferred: boolean;
140
+ }>;
141
+ getCredentialScope(opts: {
142
+ tokenJti?: string;
143
+ apiKeyId?: string;
144
+ }): Promise<CredentialScopeResponse>;
145
+ private static readonly TRANSIENT_STATUSES;
146
+ private static readonly MAX_RETRIES;
147
+ private static readonly RETRY_DELAY_MS;
148
+ private request;
149
+ private requestWithTransientRetry;
150
+ /**
151
+ * Runs the step-up confirmation flow and retries the original
152
+ * request once with the resulting step-up token. The original token
153
+ * is restored after the retry — the step-up token is never persisted
154
+ * (per `.cursor/rules/step-up-auth.mdc`).
155
+ */
156
+ private runStepUpRetry;
157
+ private requestOnce;
158
+ }
159
+ //# sourceMappingURL=admin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../src/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,YAAY,EACZ,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,WAAW,EACX,SAAS,EACT,qBAAqB,EACrB,KAAK,EACL,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,eAAe,EACf,mBAAmB,EAEpB,MAAM,SAAS,CAAC;AAQjB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,MAAM,WAAW,eAAe;IAC9B,6DAA6D;IAC7D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,aAAa,CAAC;CAClC;AAID;;;;;;;;;;GAUG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,KAAK,CAAgB;IAC7B,OAAO,CAAC,WAAW,CAAuB;IAC1C,OAAO,CAAC,aAAa,CAAC,CAAgB;IAGtC,OAAO,CAAC,cAAc,CAAS;gBAEnB,MAAM,CAAC,EAAE,eAAe;IAMpC,iD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