@certen.io/sdk 0.2.0 → 0.3.1

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.
package/CHANGELOG.md CHANGED
@@ -1,65 +1,139 @@
1
- # Changelog — @certen.io/sdk
2
-
3
- ## 0.2.0 — first published version
4
-
5
- **0.1.0 was never published.** Three of its methods could not work against the live API. They were found
6
- while preparing the package for release, by comparing what the SDK sends against the gateway's own OpenAPI
7
- spec. Nothing in the existing test suite could have caught them: those tests exercise retry, idempotency,
8
- and error mapping against a local mock that accepts any body, and a mock answering 200 to anything will
9
- never tell you the request was wrong.
10
-
11
- ### Fixed — methods that could not work
12
-
13
- - **`transaction.create` sent no `intent`.** It sent a flat `{ type, to, amount, token, chain, memo }` body.
14
- `POST /v1/transaction` requires `identity_id` and `intent`, and accepts none of those six fields — so every
15
- call returned 400. Now takes `{ identityId, intent, contractAddresses?, proofClass?, signerKeyPage?,
16
- signerPublicKey?, idempotencyKey? }`, matching the API, including multi-leg and `contractCall` intents.
17
- - **`governance.create` omitted both required fields.** It sent `{ identity_id, operation_type, payload }`;
18
- the API requires `identity` (the ADI, not a uuid) and `operations` (an **array**, so several changes are
19
- authorized under one quorum). Every call returned 400.
20
- - **`identity.list` called a route that does not exist.** `GET /v1/identities` returns 404 — the gateway has
21
- no plural collection route. **Removed** rather than shipped as a dead method. Track the ids you create.
22
-
23
- ### Fixed — silent no-ops
24
-
25
- - **`identity.create` no longer sends `webhook_url`.** `POST /v1/identity` does not accept it, and Fastify
26
- strips unknown properties, so the option did nothing while appearing to work. Set it via `identity.update()`,
27
- which does accept it. `create` now also supports `signingMode`, `signingProvider`, and `idempotencyKey`.
28
- - **`identity.get` no longer sends an `include` query parameter.** The route takes none; it was ignored.
29
-
30
- ### Added
31
-
32
- - **`identity.retire(id)`** — `DELETE /v1/identity/{id}`, which frees the org's identity quota. Soft delete
33
- inside Certen only: the on-chain ADI, key book, and key page are untouched.
34
- - **`DEFAULT_BASE_URL` is exported**, and the base URL now resolves `options.baseUrl` → `$CERTEN_API_URL` →
35
- `https://gateway.kompendium.co`. The previous default was `https://api.certen.io`, which resolves — to the
36
- Certen marketing site. A client built without an explicit `baseUrl` returned HTML for every call.
37
- - **`test/contract.test.ts`** — validates the request every method produces against a vendored snapshot of
38
- the gateway's OpenAPI spec: path exists, method exists, required fields present, no field the endpoint
39
- would strip. This is the guard that would have caught all of the above. Refresh it with the command at the
40
- bottom of this file when the API changes.
41
- - Publish metadata: `files`, `exports`, `engines`, repository, keywords, `prepack` build, README, LICENSE.
42
-
43
- ### Changed
44
-
45
- - `license` corrected to **MIT**. `package.json` claimed Apache-2.0 while `LICENSE` is MIT.
46
-
47
- ## Also fixed, in the gateway
48
-
49
- Six routes — `/v1/transactions`, `/v1/pending`, `/v1/portfolio`, `/v1/admin/usage`, `/v1/admin/audit-log`,
50
- and `/v1/admin/webhooks/deliveries` — read query parameters but declared no `querystring` schema, so
51
- `@fastify/swagger` emitted no `parameters` and the spec reported that they took none.
52
-
53
- The routes worked. The damage was to everyone reading the spec instead of the source: a client generated
54
- from it had no paging at all, and `/v1/pending` silently lost the `identity` and `category` filters a signer
55
- needs to find its own work. All six now declare their parameters, guarded on both sides —
56
- `test/integration/openapi-snapshot.test.ts` in the gateway, and `test/contract.test.ts` here.
57
-
58
- Refresh this package's contract fixture after an API change, from the gateway root:
59
-
60
- ```bash
61
- REGEN_SDK_CONTRACT=1 npx vitest run test/integration/openapi-snapshot.test.ts
62
- ```
63
-
64
- The fixture is generated from `buildServer()` rather than from the deployed gateway on purpose: the SDK
65
- must be tested against the code it ships beside, not against whatever happens to be live.
1
+ # Changelog — @certen.io/sdk
2
+
3
+ ## 0.3.1 — documentation links that work off GitHub
4
+
5
+ No code changes.
6
+
7
+ The README linked its guides with repository-relative paths (`../../docs/guides/...`). Those resolve
8
+ on GitHub and are **dead on the npm package page**, which renders the README standalone and where
9
+ `docs/` is not part of the tarball. Every guide link a reader followed from npm 404'd. They now point
10
+ at <https://docs.kompendium.co>, which publishes the same guides.
11
+
12
+ Also adds the documentation and API-key links to the top of the README, and corrects a link to the
13
+ policy signer that pointed at a GitHub org that does not exist.
14
+
15
+ ## 0.3.0 — response types now describe what the API actually returns
16
+
17
+ **Breaking, at the type level only. No runtime behavior changed.**
18
+
19
+ Every response interface was camelCase (`intentId`, `signingData.dataToSign`, `adiUrl`,
20
+ `creditBalance`). The API is snake_case, and the resources do `return data` with no transformation —
21
+ so every one of those declared fields was `undefined` at runtime while TypeScript insisted it was a
22
+ `string`. The failure was silent in the worst way: code compiled, ran, and produced `undefined`
23
+ somewhere far from the cause.
24
+
25
+ `execute.*` was never affected. It was written against real responses and reads snake_case directly,
26
+ which is why the one flow that had been exercised end-to-end worked while the typed resources did not.
27
+
28
+ If you were already compensating with `as any` or reading snake_case at runtime, your code was
29
+ correct and keeps working — you can now delete the casts. If you were trusting the types, your code
30
+ was silently broken and will now fail to compile, which is the point.
31
+
32
+ ### Changed — all response types are snake_case
33
+
34
+ `IdentityResponse` · `TransactionResponse` · `GovernanceResponse` · `SignResponse` ·
35
+ `PortfolioResponse` · `PendingActionsResponse` · `OrgResponse` · `ApiKeyResponse` ·
36
+ `ApiKeyListItem` · `AuditLogEntry` · `UsageSummaryResponse` · `ChainAccount` · `ChainBalance` ·
37
+ `PortfolioIdentity` · `PendingAction`.
38
+
39
+ ### Changed — `create` and `get` no longer share a type
40
+
41
+ `POST /v1/transaction` and `GET /v1/transaction/{id}` return different shapes, and one
42
+ `TransactionResponse` covering both hid it. Same for governance.
43
+
44
+ - `transaction.create` → **`CreateTransactionResponse`** (`intent_id`, `signing_data`, `submit_url`, `idempotent`)
45
+ - `transaction.get` → `TransactionResponse` (`accum_tx_hash`, `proof`, timestamps)
46
+ - `transaction.submitSignature` → **`SubmitSignatureResponse`**
47
+ - `transaction.list` → **`ListTransactionsResponse`**. It declared `{ transactions, pagination }`; the endpoint returns `{ transactions, limit, offset }` and has no pagination object.
48
+ - `governance.create` → **`CreateGovernanceResponse`**, `governance.submitSignature` → **`SubmitGovernanceSignatureResponse`**
49
+ - `sign.submitSignature` → **`SubmitSignSignatureResponse`**
50
+ - `identity.retire` → **`DeleteIdentityResponse`**
51
+
52
+ ### Changed — `SigningData` split in two
53
+
54
+ The two endpoints that return signing data carry the bytes under **different names**, and a single
55
+ shared type is what let that go unnoticed:
56
+
57
+ - **`IntentSigningData`** (`POST /v1/transaction`) — the bytes are in **`hash_to_sign`**
58
+ - **`SignRequestSigningData`** (`POST /v1/sign`) — the bytes are in **`data_for_signature`**
59
+
60
+ Both mean the same thing: sign the RAW BYTES of that hex. Do not hash it again; do not sign its
61
+ ASCII. `execute.*` handles the distinction for you.
62
+
63
+ ### Added
64
+
65
+ - `Identity` and `DeleteIdentityResponse` types; `can_sign` and `error_message` on `Identity`.
66
+ `can_sign` derives from the on-chain key page, not the provisioning state machine, so it can read
67
+ `true` while `status` is still `creating` — check both.
68
+ - `user_has_signed`, `required_signatures`, `is_ready`, `identity_url` on `PendingAction`, and
69
+ `stats` on `PendingActionsResponse`.
70
+ - **`test/response-shape.test.ts`** — pins every declared response type against the gateway's own
71
+ OpenAPI response schemas. The existing contract test only ever checked the REQUEST direction,
72
+ which is precisely why this drifted. Verified to fail when a camelCase key is reintroduced.
73
+ - **`scripts/build-contract-fixture.mjs`** — regenerates the contract fixture from the live spec.
74
+ The old fixture was hand-shaped and captured no responses at all; the test file said "then
75
+ regenerate the fixture" without saying how.
76
+
77
+ ## 0.2.0 — first published version
78
+
79
+ **0.1.0 was never published.** Three of its methods could not work against the live API. They were found
80
+ while preparing the package for release, by comparing what the SDK sends against the gateway's own OpenAPI
81
+ spec. Nothing in the existing test suite could have caught them: those tests exercise retry, idempotency,
82
+ and error mapping against a local mock that accepts any body, and a mock answering 200 to anything will
83
+ never tell you the request was wrong.
84
+
85
+ ### Fixed — methods that could not work
86
+
87
+ - **`transaction.create` sent no `intent`.** It sent a flat `{ type, to, amount, token, chain, memo }` body.
88
+ `POST /v1/transaction` requires `identity_id` and `intent`, and accepts none of those six fields — so every
89
+ call returned 400. Now takes `{ identityId, intent, contractAddresses?, proofClass?, signerKeyPage?,
90
+ signerPublicKey?, idempotencyKey? }`, matching the API, including multi-leg and `contractCall` intents.
91
+ - **`governance.create` omitted both required fields.** It sent `{ identity_id, operation_type, payload }`;
92
+ the API requires `identity` (the ADI, not a uuid) and `operations` (an **array**, so several changes are
93
+ authorized under one quorum). Every call returned 400.
94
+ - **`identity.list` called a route that does not exist.** `GET /v1/identities` returns 404 — the gateway has
95
+ no plural collection route. **Removed** rather than shipped as a dead method. Track the ids you create.
96
+
97
+ ### Fixed — silent no-ops
98
+
99
+ - **`identity.create` no longer sends `webhook_url`.** `POST /v1/identity` does not accept it, and Fastify
100
+ strips unknown properties, so the option did nothing while appearing to work. Set it via `identity.update()`,
101
+ which does accept it. `create` now also supports `signingMode`, `signingProvider`, and `idempotencyKey`.
102
+ - **`identity.get` no longer sends an `include` query parameter.** The route takes none; it was ignored.
103
+
104
+ ### Added
105
+
106
+ - **`identity.retire(id)`** — `DELETE /v1/identity/{id}`, which frees the org's identity quota. Soft delete
107
+ inside Certen only: the on-chain ADI, key book, and key page are untouched.
108
+ - **`DEFAULT_BASE_URL` is exported**, and the base URL now resolves `options.baseUrl` → `$CERTEN_API_URL` →
109
+ `https://gateway.kompendium.co`. The previous default was `https://api.certen.io`, which resolves — to the
110
+ Certen marketing site. A client built without an explicit `baseUrl` returned HTML for every call.
111
+ - **`test/contract.test.ts`** — validates the request every method produces against a vendored snapshot of
112
+ the gateway's OpenAPI spec: path exists, method exists, required fields present, no field the endpoint
113
+ would strip. This is the guard that would have caught all of the above. Refresh it with the command at the
114
+ bottom of this file when the API changes.
115
+ - Publish metadata: `files`, `exports`, `engines`, repository, keywords, `prepack` build, README, LICENSE.
116
+
117
+ ### Changed
118
+
119
+ - `license` corrected to **MIT**. `package.json` claimed Apache-2.0 while `LICENSE` is MIT.
120
+
121
+ ## Also fixed, in the gateway
122
+
123
+ Six routes — `/v1/transactions`, `/v1/pending`, `/v1/portfolio`, `/v1/admin/usage`, `/v1/admin/audit-log`,
124
+ and `/v1/admin/webhooks/deliveries` — read query parameters but declared no `querystring` schema, so
125
+ `@fastify/swagger` emitted no `parameters` and the spec reported that they took none.
126
+
127
+ The routes worked. The damage was to everyone reading the spec instead of the source: a client generated
128
+ from it had no paging at all, and `/v1/pending` silently lost the `identity` and `category` filters a signer
129
+ needs to find its own work. All six now declare their parameters, guarded on both sides —
130
+ `test/integration/openapi-snapshot.test.ts` in the gateway, and `test/contract.test.ts` here.
131
+
132
+ Refresh this package's contract fixture after an API change, from the gateway root:
133
+
134
+ ```bash
135
+ REGEN_SDK_CONTRACT=1 npx vitest run test/integration/openapi-snapshot.test.ts
136
+ ```
137
+
138
+ The fixture is generated from `buildServer()` rather than from the deployed gateway on purpose: the SDK
139
+ must be tested against the code it ships beside, not against whatever happens to be live.
package/README.md CHANGED
@@ -1,117 +1,119 @@
1
- # @certen.io/sdk
2
-
3
- TypeScript client for the [CERTEN Gateway](https://gateway.kompendium.co/reference) — proof-gated
4
- cross-chain execution on Accumulate.
5
-
6
- ```bash
7
- npm install @certen.io/sdk
8
- ```
9
-
10
- ```ts
11
- import { CertenClient } from '@certen.io/sdk';
12
-
13
- const certen = new CertenClient({ apiKey: process.env.CERTEN_API_KEY! });
14
-
15
- const { intent_id, signing_data, submit_url } = await certen.transaction.create({
16
- identity_id: identityId,
17
- intent: {
18
- fromChain: 'accumulate',
19
- toChain: 'ethereum-sepolia',
20
- fromAddress: 'acc://your-org.acme',
21
- toAddress: '0xBe00…9251',
22
- amount: '4000',
23
- tokenSymbol: 'ETH',
24
- },
25
- });
26
-
27
- // You hold the key. Sign the bytes the gateway hands you.
28
- const signature = sign(signing_data.hash_to_sign);
29
- await certen.transaction.submitSignature(intent_id, { signature, public_key: publicKey });
30
- ```
31
-
32
- **Your key never leaves your process.** The gateway computes what must be signed and you decide whether to
33
- sign it. That is the supported posture for anything carrying value — see
34
- [the external-signing guide](../../docs/guides/external-signing.md).
35
-
36
- ---
37
-
38
- ## Configuration
39
-
40
- ```ts
41
- new CertenClient({
42
- apiKey: 'ck_live_…', // required
43
- baseUrl: 'https://…', // optional — see precedence below
44
- maxRetries: 3, // default 3
45
- baseBackoffMs: 250,
46
- maxBackoffMs: 8_000,
47
- autoIdempotencyKey: true, // default: every POST gets one
48
- });
49
- ```
50
-
51
- **Base URL precedence:** `options.baseUrl` → `$CERTEN_API_URL` → `https://gateway.kompendium.co`. The env var
52
- is there so a deployment can be retargeted at staging or a self-hosted gateway without a code change.
53
-
54
- ## What it does for you
55
-
56
- **Automatic idempotency on POSTs.** Every POST gets a generated `Idempotency-Key` so a retried network error
57
- is safe to replay. This matters more than it sounds: without one, a timeout is indistinguishable from success,
58
- and a blind retry can open a second intent or burn identity quota. Opt out per-client with
59
- `autoIdempotencyKey: false`, or per-route with `noAutoIdempotencyRoutes`.
60
-
61
- **Retries with backoff, and rate-limit awareness.** Transient failures retry with exponential backoff. On a
62
- `429` the client remembers the reset window and pre-emptively waits rather than hammering.
63
-
64
- **Typed errors.** Catch the class you care about instead of matching on status codes:
65
-
66
- ```ts
67
- import { CertenAuthError, CertenRateLimitError, CertenBadRequestError, CertenServerError } from '@certen.io/sdk';
68
-
69
- try {
70
- await certen.identity.create({ … });
71
- } catch (e) {
72
- if (e instanceof CertenBadRequestError) { /* your request — fix and retry */ }
73
- if (e instanceof CertenRateLimitError) { /* back off; e carries the reset */ }
74
- if (e instanceof CertenAuthError) { /* key is wrong, revoked, or lacks the scope */ }
75
- if (e instanceof CertenServerError) { /* gateway or downstream — safe to retry */ }
76
- }
77
- ```
78
-
79
- **Pagination helpers.** `paginate` and `paginateWithTotal` iterate a paged endpoint as an async generator.
80
-
81
- ## Resources
82
-
83
- | | |
84
- |---|---|
85
- | `certen.identity` | `create` · `get` · `update` · `retire` |
86
- | `certen.transaction` | `create` · `submitSignature` · `get` · `list` |
87
- | `certen.sign` | `create` · `submitSignature` |
88
- | `certen.governance` | `create` · `submitSignature` · `get` |
89
- | `certen.pending` | `list` |
90
- | `certen.portfolio` | `get` |
91
- | `certen.admin` | `createOrg` · `createApiKey` · `listApiKeys` · `revokeApiKey` · `rotateApiKey` · `getAuditLog` · `getUsage` |
92
-
93
- The gateway serves ~80 endpoints; this covers the integration surface. For anything else, the
94
- [live spec](https://gateway.kompendium.co/docs/json) is authoritative and the client's `request` path will
95
- carry it.
96
-
97
- ## Three things to know
98
-
99
- **Identity creation is asynchronous.** `identity.create` resolves with a `202`-shaped result and provisioning
100
- continues. Poll `identity.get` until the status is terminal, and check `can_sign` before building on it.
101
-
102
- **A proof cycle takes ~60–110 seconds.** Real validator work, not a tunable delay. Do not wrap it in a 30s
103
- timeout.
104
-
105
- **`vote` is `approve` | `reject` | `abstain`** — a lowercase string, not a number, and not `accept`.
106
-
107
- ## Guides
108
-
109
- - [Onboard an identity](../../docs/guides/onboard-an-identity.md)
110
- - [Sign while holding your own key](../../docs/guides/external-signing.md)
111
- - [Proof-gate a contract call](../../docs/guides/proof-gated-contract-call.md)
112
- - [M-of-N panels](../../docs/guides/multisig-panel.md)
113
- - [Verify a proof](../../docs/guides/verify-a-proof.md)
114
-
115
- ## License
116
-
117
- MIT
1
+ # @certen.io/sdk
2
+
3
+ TypeScript client for the [CERTEN Gateway](https://gateway.kompendium.co/reference) — proof-gated
4
+ cross-chain execution on Accumulate.
5
+
6
+ **Docs: <https://docs.kompendium.co>** · **Get an API key: <https://gateway.kompendium.co/portal>**
7
+
8
+ ```bash
9
+ npm install @certen.io/sdk
10
+ ```
11
+
12
+ ```ts
13
+ import { CertenClient } from '@certen.io/sdk';
14
+
15
+ const certen = new CertenClient({ apiKey: process.env.CERTEN_API_KEY! });
16
+
17
+ const { intent_id, signing_data, submit_url } = await certen.transaction.create({
18
+ identity_id: identityId,
19
+ intent: {
20
+ fromChain: 'accumulate',
21
+ toChain: 'ethereum-sepolia',
22
+ fromAddress: 'acc://your-org.acme',
23
+ toAddress: '0xBe00…9251',
24
+ amount: '4000',
25
+ tokenSymbol: 'ETH',
26
+ },
27
+ });
28
+
29
+ // You hold the key. Sign the bytes the gateway hands you.
30
+ const signature = sign(signing_data.hash_to_sign);
31
+ await certen.transaction.submitSignature(intent_id, { signature, public_key: publicKey });
32
+ ```
33
+
34
+ **Your key never leaves your process.** The gateway computes what must be signed and you decide whether to
35
+ sign it. That is the supported posture for anything carrying value — see
36
+ [the external-signing guide](https://docs.kompendium.co/external-signing.html).
37
+
38
+ ---
39
+
40
+ ## Configuration
41
+
42
+ ```ts
43
+ new CertenClient({
44
+ apiKey: 'ck_live_…', // required
45
+ baseUrl: 'https://…', // optional — see precedence below
46
+ maxRetries: 3, // default 3
47
+ baseBackoffMs: 250,
48
+ maxBackoffMs: 8_000,
49
+ autoIdempotencyKey: true, // default: every POST gets one
50
+ });
51
+ ```
52
+
53
+ **Base URL precedence:** `options.baseUrl` → `$CERTEN_API_URL` → `https://gateway.kompendium.co`. The env var
54
+ is there so a deployment can be retargeted at staging or a self-hosted gateway without a code change.
55
+
56
+ ## What it does for you
57
+
58
+ **Automatic idempotency on POSTs.** Every POST gets a generated `Idempotency-Key` so a retried network error
59
+ is safe to replay. This matters more than it sounds: without one, a timeout is indistinguishable from success,
60
+ and a blind retry can open a second intent or burn identity quota. Opt out per-client with
61
+ `autoIdempotencyKey: false`, or per-route with `noAutoIdempotencyRoutes`.
62
+
63
+ **Retries with backoff, and rate-limit awareness.** Transient failures retry with exponential backoff. On a
64
+ `429` the client remembers the reset window and pre-emptively waits rather than hammering.
65
+
66
+ **Typed errors.** Catch the class you care about instead of matching on status codes:
67
+
68
+ ```ts
69
+ import { CertenAuthError, CertenRateLimitError, CertenBadRequestError, CertenServerError } from '@certen.io/sdk';
70
+
71
+ try {
72
+ await certen.identity.create({ … });
73
+ } catch (e) {
74
+ if (e instanceof CertenBadRequestError) { /* your request — fix and retry */ }
75
+ if (e instanceof CertenRateLimitError) { /* back off; e carries the reset */ }
76
+ if (e instanceof CertenAuthError) { /* key is wrong, revoked, or lacks the scope */ }
77
+ if (e instanceof CertenServerError) { /* gateway or downstream — safe to retry */ }
78
+ }
79
+ ```
80
+
81
+ **Pagination helpers.** `paginate` and `paginateWithTotal` iterate a paged endpoint as an async generator.
82
+
83
+ ## Resources
84
+
85
+ | | |
86
+ |---|---|
87
+ | `certen.identity` | `create` · `get` · `update` · `retire` |
88
+ | `certen.transaction` | `create` · `submitSignature` · `get` · `list` |
89
+ | `certen.sign` | `create` · `submitSignature` |
90
+ | `certen.governance` | `create` · `submitSignature` · `get` |
91
+ | `certen.pending` | `list` |
92
+ | `certen.portfolio` | `get` |
93
+ | `certen.admin` | `createOrg` · `createApiKey` · `listApiKeys` · `revokeApiKey` · `rotateApiKey` · `getAuditLog` · `getUsage` |
94
+
95
+ The gateway serves ~80 endpoints; this covers the integration surface. For anything else, the
96
+ [live spec](https://gateway.kompendium.co/docs/json) is authoritative and the client's `request` path will
97
+ carry it.
98
+
99
+ ## Three things to know
100
+
101
+ **Identity creation is asynchronous.** `identity.create` resolves with a `202`-shaped result and provisioning
102
+ continues. Poll `identity.get` until the status is terminal, and check `can_sign` before building on it.
103
+
104
+ **A proof cycle takes ~60–110 seconds.** Real validator work, not a tunable delay. Do not wrap it in a 30s
105
+ timeout.
106
+
107
+ **`vote` is `approve` | `reject` | `abstain`** — a lowercase string, not a number, and not `accept`.
108
+
109
+ ## Guides
110
+
111
+ - [Onboard an identity](https://docs.kompendium.co/onboard-an-identity.html)
112
+ - [Sign while holding your own key](https://docs.kompendium.co/external-signing.html)
113
+ - [Proof-gate a contract call](https://docs.kompendium.co/proof-gated-contract-call.html)
114
+ - [M-of-N panels](https://docs.kompendium.co/multisig-panel.html)
115
+ - [Verify a proof](https://docs.kompendium.co/verify-a-proof.html)
116
+
117
+ ## License
118
+
119
+ MIT
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from 'axios';
2
- import type { GovernanceParams, GovernanceResponse, SubmitGovernanceSignatureParams } from '../types.js';
2
+ import type { GovernanceParams, CreateGovernanceResponse, GovernanceResponse, SubmitGovernanceSignatureParams, SubmitGovernanceSignatureResponse } from '../types.js';
3
3
  export declare class GovernanceResource {
4
4
  private http;
5
5
  constructor(http: AxiosInstance);
@@ -9,8 +9,8 @@ export declare class GovernanceResource {
9
9
  * This previously sent `{ identity_id, operation_type, payload }` and omitted BOTH fields the API
10
10
  * requires (`identity` — the ADI, not a uuid — and `operations`, an array), so every call 400'd.
11
11
  */
12
- create(params: GovernanceParams): Promise<GovernanceResponse>;
13
- submitSignature(id: string, params: SubmitGovernanceSignatureParams): Promise<GovernanceResponse>;
12
+ create(params: GovernanceParams): Promise<CreateGovernanceResponse>;
13
+ submitSignature(id: string, params: SubmitGovernanceSignatureParams): Promise<SubmitGovernanceSignatureResponse>;
14
14
  get(id: string): Promise<GovernanceResponse>;
15
15
  }
16
16
  //# sourceMappingURL=governance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"governance.d.ts","sourceRoot":"","sources":["../../src/resources/governance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,+BAA+B,EAChC,MAAM,aAAa,CAAC;AAErB,qBAAa,kBAAkB;IACjB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,aAAa;IAEvC;;;;;OAKG;IACG,MAAM,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAW7D,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,+BAA+B,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAQjG,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAInD"}
1
+ {"version":3,"file":"governance.d.ts","sourceRoot":"","sources":["../../src/resources/governance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,O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AAG,CAAC,EAAU;QAClB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;QAC7D,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -1,9 +1,9 @@
1
1
  import { AxiosInstance } from 'axios';
2
- import type { SignRequestParams, SignResponse, SubmitSignSignatureParams } from '../types.js';
2
+ import type { SignRequestParams, SignResponse, SubmitSignSignatureResponse, SubmitSignSignatureParams } from '../types.js';
3
3
  export declare class SignResource {
4
4
  private http;
5
5
  constructor(http: AxiosInstance);
6
6
  create(params: SignRequestParams): Promise<SignResponse>;
7
- submitSignature(id: string, params: SubmitSignSignatureParams): Promise<SignResponse>;
7
+ submitSignature(id: string, params: SubmitSignSignatureParams): Promise<SubmitSignSignatureResponse>;
8
8
  }
9
9
  //# sourceMappingURL=sign.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sign.d.ts","sourceRoot":"","sources":["../../src/resources/sign.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACZ,yBAAyB,EAC1B,MAAM,aAAa,CAAC;AAErB,qBAAa,YAAY;IACX,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,aAAa;IAEjC,MAAM,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC;IAaxD,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC;CAO5F"}
1
+ {"version":3,"file":"sign.d.ts","sourceRoot":"","sources":["../../src/resources/sign.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACZ,2BAA2B,EAC3B,yBAAyB,EAC1B,MAAM,aAAa,CAAC;AAErB,qBAAa,YAAY;IACX,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,aAAa;IAEjC,MAAM,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC;IAaxD,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAO3G"}
@@ -1 +1 @@
1
- {"version":3,"file":"sign.js","sourceRoot":"","sources":["../../src/resources/sign.ts"],"names":[],"mappings":"AAOA,MAAM,OAAO,YAAY;IACH;IAApB,YAAoB,IAAmB;QAAnB,SAAI,GAAJ,IAAI,CAAe;IAAG,CAAC;IAE3C,KAAK,CAAC,MAAM,CAAC,MAAyB;QACpC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YAChD,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,SAAS,EAAE,MAAM,CAAC,QAAQ;YAC1B,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,UAAU,EAAE,MAAM,CAAC,SAAS;YAC5B,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,UAAU,EAAE,MAAM,CAAC,SAAS;SAC7B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EAAU,EAAE,MAAiC;QACjE,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,YAAY,EAAE;YAChE,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,UAAU,EAAE,MAAM,CAAC,SAAS;SAC7B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
1
+ {"version":3,"file":"sign.js","sourceRoot":"","sources":["../../src/resources/sign.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,YAAY;IACH;IAApB,YAAoB,IAAmB;QAAnB,SAAI,GAAJ,IAAI,CAAe;IAAG,CAAC;IAE3C,KAAK,CAAC,MAAM,CAAC,MAAyB;QACpC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YAChD,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,SAAS,EAAE,MAAM,CAAC,QAAQ;YAC1B,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,UAAU,EAAE,MAAM,CAAC,SAAS;YAC5B,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,UAAU,EAAE,MAAM,CAAC,SAAS;SAC7B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EAAU,EAAE,MAAiC;QACjE,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,YAAY,EAAE;YAChE,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,UAAU,EAAE,MAAM,CAAC,SAAS;SAC7B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from 'axios';
2
- import type { CreateTransactionParams, TransactionResponse, SubmitSignatureParams, ListTransactionsParams } from '../types.js';
2
+ import type { CreateTransactionParams, CreateTransactionResponse, TransactionResponse, ListTransactionsResponse, SubmitSignatureParams, SubmitSignatureResponse, ListTransactionsParams } from '../types.js';
3
3
  export declare class TransactionResource {
4
4
  private http;
5
5
  constructor(http: AxiosInstance);
@@ -11,12 +11,9 @@ export declare class TransactionResource {
11
11
  * only exercised retry and error plumbing against a mock that accepted anything;
12
12
  * `test/contract.test.ts` now validates request shapes against a snapshot of the live OpenAPI spec.
13
13
  */
14
- create(params: CreateTransactionParams): Promise<TransactionResponse>;
15
- submitSignature(id: string, params: SubmitSignatureParams): Promise<TransactionResponse>;
14
+ create(params: CreateTransactionParams): Promise<CreateTransactionResponse>;
15
+ submitSignature(id: string, params: SubmitSignatureParams): Promise<SubmitSignatureResponse>;
16
16
  get(id: string): Promise<TransactionResponse>;
17
- list(params?: ListTransactionsParams): Promise<{
18
- transactions: TransactionResponse[];
19
- pagination: unknown;
20
- }>;
17
+ list(params?: ListTransactionsParams): Promise<ListTransactionsResponse>;
21
18
  }
22
19
  //# sourceMappingURL=transaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src/resources/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EACV,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAErB,qBAAa,mBAAmB;IAClB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,aAAa;IAEvC;;;;;;;OAOG;IACG,MAAM,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAoBrE,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAQxF,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAK7C,IAAI,CAAC,MAAM,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC;QAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAE,CAAC;CASnH"}
1
+ {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src/resources/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EACzB,mBAAmB,EACnB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAErB,qBAAa,mBAAmB;IAClB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,aAAa;IAEvC;;;;;;;OAOG;IACG,MAAM,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAoB3E,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAQ5F,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAO7C,IAAI,CAAC,MAAM,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAS/E"}
@@ -38,6 +38,8 @@ export class TransactionResource {
38
38
  const { data } = await this.http.get(`/v1/transaction/${id}`);
39
39
  return data;
40
40
  }
41
+ // Declared `{ transactions, pagination }`; the endpoint returns `{ transactions, limit, offset }`
42
+ // with no pagination object at all.
41
43
  async list(params) {
42
44
  const { data } = await this.http.get('/v1/transactions', {
43
45
  params: {
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../src/resources/transaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAQ/C,MAAM,OAAO,mBAAmB;IACV;IAApB,YAAoB,IAAmB;QAAnB,SAAI,GAAJ,IAAI,CAAe;IAAG,CAAC;IAE3C;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CAAC,MAA+B;QAC1C,MAAM,OAAO,GAA2B,EAAE,CAAC;QAC3C,IAAI,MAAM,CAAC,cAAc,EAAE,CAAC;YAC1B,OAAO,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAC,cAAc,CAAC;QACrD,CAAC;QACD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,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IAAI,CAAC,MAA+B;QACxC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,kBAAkB,EAAE;YACvD,MAAM,EAAE;gBACN,KAAK,EAAE,MAAM,EAAE,KAAK;gBACpB,MAAM,EAAE,MAAM,EAAE,MAAM;aACvB;SACF,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
package/dist/types.d.ts CHANGED
@@ -17,29 +17,63 @@ export interface CreateIdentityParams {
17
17
  signingProvider?: string;
18
18
  idempotencyKey?: string;
19
19
  }
20
+ /**
21
+ * RESPONSE TYPES ARE snake_case, BECAUSE THE API IS.
22
+ *
23
+ * These interfaces used to be camelCase while the resources did `return data` with no
24
+ * transformation, so every declared response field was `undefined` at runtime. The mismatch was
25
+ * invisible: TypeScript reported `intentId: string`, the value was `undefined`, and the failure
26
+ * surfaced somewhere else entirely as a missing id. `execute.ts` was written against the real
27
+ * shape and reads snake_case directly, which is why the one flow that had been exercised
28
+ * end-to-end worked while the typed resources did not.
29
+ *
30
+ * Verified against the live OpenAPI spec and real responses on 2026-07-31. Request parameter
31
+ * types stay camelCase — those are this SDK's own surface, and the resources map them to
32
+ * snake_case on the way out.
33
+ */
20
34
  export interface ChainAccount {
21
- chainId: string;
35
+ chain_id: string;
22
36
  address: string;
23
37
  status: string;
24
38
  }
39
+ export interface Identity {
40
+ id: string;
41
+ adi_url: string;
42
+ book_url: string | null;
43
+ key_page_url: string | null;
44
+ status: string;
45
+ /**
46
+ * Derived from the on-chain key page, NOT from the provisioning state machine — so it can be
47
+ * true while `status` is still `creating`. Check both before relying on an identity.
48
+ */
49
+ can_sign?: boolean;
50
+ error_message?: string | null;
51
+ credit_balance: number;
52
+ chain_accounts: ChainAccount[];
53
+ created_at: string;
54
+ }
25
55
  export interface IdentityResponse {
26
- identity: {
27
- id: string;
28
- adiUrl: string;
29
- bookUrl: string | null;
30
- keyPageUrl: string | null;
31
- status: string;
32
- creditBalance: number;
33
- chainAccounts: ChainAccount[];
34
- createdAt: string;
56
+ identity: Identity;
57
+ signing_mode?: string;
58
+ signing_provider?: unknown;
59
+ /** Only on create, and only once — the URL stops working after it is read. */
60
+ mnemonic_retrieval?: {
61
+ url: string;
62
+ expires_in: number;
35
63
  };
64
+ warning?: string;
65
+ /**
66
+ * Free-form: the gateway serializes this subtree with mixed casing (`key_books` holds
67
+ * `keyBookUrl`, `keyPages`, `signers[].keyAddress`) and `publicKeyHash` arrives as a
68
+ * JSON-serialized Node Buffer. Typing it precisely would encode a shape that is itself a bug.
69
+ */
36
70
  governance?: {
37
71
  authorities: number;
38
- totalSigners: number;
39
- keyBooks: unknown[];
72
+ total_signers: number;
73
+ key_books: unknown[];
40
74
  };
41
75
  balances?: {
42
- chainId: string;
76
+ chain_id: string;
43
77
  address: string;
44
78
  token: string;
45
79
  balance: string;
@@ -51,6 +85,12 @@ export interface IdentityResponse {
51
85
  transactions: number;
52
86
  };
53
87
  }
88
+ export interface DeleteIdentityResponse {
89
+ deleted: boolean;
90
+ id: string;
91
+ adi_url: string;
92
+ note?: string;
93
+ }
54
94
  export interface UpdateIdentityParams {
55
95
  linkChains?: string[];
56
96
  unlinkChains?: string[];
@@ -122,22 +162,74 @@ export interface LegacyFlatTransactionParams {
122
162
  memo?: string;
123
163
  idempotencyKey?: string;
124
164
  }
125
- export interface SigningData {
126
- dataToSign: string;
127
- signerUrl: string;
128
- signerVersion: number;
129
- timestamp: number;
130
- }
165
+ /**
166
+ * Signing data from `POST /v1/transaction` — a NEW intent.
167
+ *
168
+ * Distinct from `SignRequestSigningData` below, which is what `POST /v1/sign` returns for an
169
+ * EXISTING transaction. They carry the bytes to sign under different names, and a single
170
+ * `SigningData` type covering both is what let the wrong field name go unnoticed. Read
171
+ * `hash_to_sign` here and `data_for_signature` there, or use `execute.*`, which handles it.
172
+ */
173
+ export interface IntentSigningData {
174
+ request_id?: string;
175
+ transaction_hash?: string;
176
+ /** Sign the RAW BYTES of this hex. Do not hash it again; do not sign its ASCII. */
177
+ hash_to_sign: string;
178
+ }
179
+ /** Signing data from `POST /v1/sign` — co-signing something that already exists. */
180
+ export interface SignRequestSigningData {
181
+ /** Same contract as `hash_to_sign`, different name. See `IntentSigningData`. */
182
+ data_for_signature: string;
183
+ transaction_hash?: string;
184
+ signer_url?: string;
185
+ signer_version?: number;
186
+ timestamp?: number;
187
+ }
188
+ /** Response to `POST /v1/transaction` — the intent was opened, not executed. */
189
+ export interface CreateTransactionResponse {
190
+ intent_id: string;
191
+ status: string;
192
+ /** `external` (you hold the key) or `provider` (the gateway signs). */
193
+ signing_mode?: 'external' | 'provider';
194
+ /** Absent in provider mode — there is nothing for you to sign. */
195
+ signing_data?: IntentSigningData;
196
+ submit_url?: string;
197
+ tx_hash?: string;
198
+ proof_id?: string;
199
+ /** True when this is an idempotent replay echoing the original intent. */
200
+ idempotent?: boolean;
201
+ }
202
+ /** Response to `GET /v1/transaction/{id}`. */
131
203
  export interface TransactionResponse {
132
- intentId: string;
133
- identityId: string;
204
+ intent_id: string;
205
+ identity_id: string;
134
206
  status: string;
135
- signingData?: SigningData;
136
- accumTxHash?: string;
137
- proofId?: string;
138
- proofBundleUrl?: string;
139
- createdAt: string;
140
- completedAt?: string;
207
+ intent_type?: string;
208
+ accum_tx_hash?: string;
209
+ proof_id?: string;
210
+ proof_bundle_url?: string;
211
+ error_message?: string | null;
212
+ created_at: string;
213
+ updated_at?: string;
214
+ completed_at?: string;
215
+ proof?: {
216
+ id: string;
217
+ bundle_url?: string;
218
+ layers?: unknown;
219
+ governance?: unknown;
220
+ attestations?: unknown;
221
+ };
222
+ }
223
+ export interface ListTransactionsResponse {
224
+ transactions: TransactionResponse[];
225
+ limit: number;
226
+ offset: number;
227
+ }
228
+ /** Response to `POST /v1/transaction/{id}/signature`. */
229
+ export interface SubmitSignatureResponse {
230
+ intent_id: string;
231
+ status: string;
232
+ tx_hash?: string;
141
233
  }
142
234
  export interface SubmitSignatureParams {
143
235
  signature: string;
@@ -163,15 +255,32 @@ export interface GovernanceParams {
163
255
  signerKeyPage?: string;
164
256
  signerPublicKey?: string;
165
257
  }
258
+ /** Response to `POST /v1/governance` — the operation was opened, not executed. */
259
+ export interface CreateGovernanceResponse {
260
+ governance_op_id: string;
261
+ status: string;
262
+ tx_hash?: string;
263
+ signing_mode?: 'external' | 'provider';
264
+ signing_data?: IntentSigningData;
265
+ submit_url?: string;
266
+ }
267
+ /** Response to `GET /v1/governance/{id}`. */
166
268
  export interface GovernanceResponse {
167
- governanceOpId: string;
168
- identityId: string;
169
- operationType: string;
269
+ governance_op_id: string;
270
+ identity_id: string;
271
+ operation_type: string;
272
+ status: string;
273
+ request_payload?: unknown;
274
+ signing_data?: IntentSigningData;
275
+ accum_tx_hash?: string;
276
+ created_at: string;
277
+ completed_at?: string;
278
+ }
279
+ /** Response to `POST /v1/governance/{id}/signature`. */
280
+ export interface SubmitGovernanceSignatureResponse {
281
+ governance_op_id: string;
170
282
  status: string;
171
- signingData?: SigningData;
172
- accumTxHash?: string;
173
- createdAt: string;
174
- completedAt?: string;
283
+ tx_hash?: string;
175
284
  }
176
285
  export interface SubmitGovernanceSignatureParams {
177
286
  signature: string;
@@ -179,22 +288,37 @@ export interface SubmitGovernanceSignatureParams {
179
288
  }
180
289
  export interface PendingAction {
181
290
  id: string;
182
- identityId: string | null;
291
+ identity_id: string | null;
292
+ identity_url?: string | null;
183
293
  category: string;
184
294
  type: string;
185
295
  status: string;
186
- txHash: string;
187
- txId: string | null;
296
+ tx_hash: string;
297
+ tx_id: string | null;
188
298
  principal: string | null;
189
- transactionType: string | null;
190
- collectedSignatures: number;
191
- totalAuthorities: number;
192
- approvedAuthorities: number;
193
- expiresAt: string | null;
194
- discoveredAt: string;
299
+ transaction_type: string | null;
300
+ collected_signatures: number;
301
+ total_authorities: number;
302
+ required_signatures?: number;
303
+ approved_authorities: number;
304
+ /** Whether the caller's own key has already signed — the field most inboxes filter on. */
305
+ user_has_signed?: boolean;
306
+ awaiting_authorities?: unknown;
307
+ is_ready?: boolean;
308
+ chain_status?: unknown;
309
+ expires_at: string | null;
310
+ discovered_at: string;
311
+ created_at?: string;
195
312
  }
196
313
  export interface PendingActionsResponse {
197
314
  actions: PendingAction[];
315
+ stats?: {
316
+ total: number;
317
+ urgent: number;
318
+ governance: number;
319
+ transactions: number;
320
+ awaiting_others: number;
321
+ };
198
322
  pagination: {
199
323
  limit: number;
200
324
  offset: number;
@@ -217,17 +341,34 @@ export interface SignRequestParams {
217
341
  signature?: string;
218
342
  publicKey?: string;
219
343
  }
344
+ /** Response to `POST /v1/sign`. */
220
345
  export interface SignResponse {
221
- signRequestId: string;
346
+ sign_request_id: string;
347
+ status: string;
348
+ tx_hash?: string;
349
+ signature_count?: number;
350
+ signing_mode?: 'external' | 'provider';
351
+ signing_data?: SignRequestSigningData;
352
+ submit_url?: string;
353
+ expires_at?: string;
354
+ }
355
+ /**
356
+ * Response to `POST /v1/sign/{id}/signature`.
357
+ *
358
+ * A spent `sign_request_id` 404s rather than replaying, so a failed submit must be retried by
359
+ * requesting fresh signing data — never by resubmitting the same id.
360
+ */
361
+ export interface SubmitSignSignatureResponse {
222
362
  status: string;
223
- signingData?: SigningData;
363
+ tx_hash?: string;
364
+ signature_count?: number;
224
365
  }
225
366
  export interface SubmitSignSignatureParams {
226
367
  signature: string;
227
368
  publicKey: string;
228
369
  }
229
370
  export interface ChainBalance {
230
- chainId: string;
371
+ chain_id: string;
231
372
  address: string;
232
373
  deployed: boolean;
233
374
  balances: {
@@ -236,15 +377,15 @@ export interface ChainBalance {
236
377
  }[];
237
378
  }
238
379
  export interface PortfolioIdentity {
239
- adiUrl: string;
380
+ adi_url: string;
240
381
  status: string;
241
- creditBalance: number;
382
+ credit_balance: number;
242
383
  chains: ChainBalance[];
243
- pendingActions: number;
384
+ pending_actions: number;
244
385
  }
245
386
  export interface PortfolioResponse {
246
387
  identities: PortfolioIdentity[];
247
- totalChains: number;
388
+ total_chains: number;
248
389
  }
249
390
  export interface CreateOrgParams {
250
391
  name: string;
@@ -256,7 +397,7 @@ export interface OrgResponse {
256
397
  id: string;
257
398
  name: string;
258
399
  plan: string;
259
- createdAt: string;
400
+ created_at: string;
260
401
  };
261
402
  }
262
403
  export interface CreateApiKeyParams {
@@ -267,13 +408,15 @@ export interface CreateApiKeyParams {
267
408
  expiresAt?: string;
268
409
  }
269
410
  export interface ApiKeyResponse {
270
- apiKey: {
411
+ api_key: {
271
412
  id: string;
413
+ /** The only time the secret is ever returned. It cannot be retrieved again. */
272
414
  key: string;
273
415
  name: string;
274
416
  prefix: string;
275
- rateLimitRpm: number;
276
- createdAt: string;
417
+ rate_limit_rpm: number;
418
+ permissions?: string[];
419
+ created_at: string;
277
420
  };
278
421
  warning: string;
279
422
  }
@@ -281,24 +424,24 @@ export interface ApiKeyListItem {
281
424
  id: string;
282
425
  name: string;
283
426
  prefix: string;
284
- orgId: string;
427
+ org_id: string;
285
428
  permissions: string[];
286
- rateLimitRpm: number;
287
- isActive: boolean;
288
- createdAt: string;
289
- expiresAt: string | null;
290
- lastUsedAt: string | null;
429
+ rate_limit_rpm: number;
430
+ is_active: boolean;
431
+ created_at: string;
432
+ expires_at: string | null;
433
+ last_used_at: string | null;
291
434
  }
292
435
  export interface AuditLogEntry {
293
436
  id: number;
294
- orgId: string;
295
- apiKeyId: string | null;
437
+ org_id: string;
438
+ api_key_id: string | null;
296
439
  action: string;
297
- resourceType: string | null;
298
- resourceId: string | null;
299
- requestSummary: Record<string, unknown> | null;
300
- responseStatus: number | null;
301
- createdAt: string;
440
+ resource_type: string | null;
441
+ resource_id: string | null;
442
+ request_summary: Record<string, unknown> | null;
443
+ response_status: number | null;
444
+ created_at: string;
302
445
  }
303
446
  export interface AuditLogResponse {
304
447
  entries: AuditLogEntry[];
@@ -313,9 +456,9 @@ export interface UsageSummaryResponse {
313
456
  from: string;
314
457
  to: string;
315
458
  };
316
- totalRequests: number;
317
- successfulRequests: number;
318
- byEndpoint: {
459
+ total_requests: number;
460
+ successful_requests: number;
461
+ by_endpoint: {
319
462
  endpoint: string;
320
463
  count: number;
321
464
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAID,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;CAGzB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE;QACR,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QACvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1B,MAAM,EAAE,MAAM,CAAC;QACf,aAAa,EAAE,MAAM,CAAC;QACtB,aAAa,EAAE,YAAY,EAAE,CAAC;QAC9B,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,UAAU,CAAC,EAAE;QACX,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,QAAQ,EAAE,OAAO,EAAE,CAAC;KACrB,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,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,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACnD,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC1C"}
package/package.json CHANGED
@@ -1,67 +1,67 @@
1
- {
2
- "name": "@certen.io/sdk",
3
- "version": "0.2.0",
4
- "description": "TypeScript client for the CERTEN Gateway API — proof-gated cross-chain execution on Accumulate",
5
- "license": "MIT",
6
- "type": "module",
7
- "keywords": [
8
- "certen",
9
- "accumulate",
10
- "blockchain",
11
- "cross-chain",
12
- "multisig",
13
- "proof-gated",
14
- "sdk"
15
- ],
16
- "homepage": "https://github.com/certenIO/certen-sdk#readme",
17
- "repository": {
18
- "type": "git",
19
- "url": "git+https://github.com/certenIO/certen-sdk.git",
20
- "directory": "packages/sdk"
21
- },
22
- "bugs": {
23
- "url": "https://github.com/certenIO/certen-sdk/issues"
24
- },
25
- "engines": {
26
- "node": ">=18"
27
- },
28
- "main": "dist/index.js",
29
- "types": "dist/index.d.ts",
30
- "//exports": "Explicit map so a consumer on modern resolution gets the types; main/types stay for older toolchains.",
31
- "exports": {
32
- ".": {
33
- "types": "./dist/index.d.ts",
34
- "import": "./dist/index.js",
35
- "default": "./dist/index.js"
36
- }
37
- },
38
- "//files": "Only the build output and docs. src/ and test/ stay in the repo — declarationMap + sourceMap already give consumers navigable types, so shipping sources doubles the tarball for nothing.",
39
- "files": [
40
- "dist/",
41
- "README.md",
42
- "CHANGELOG.md",
43
- "LICENSE"
44
- ],
45
- "sideEffects": false,
46
- "scripts": {
47
- "build": "tsc",
48
- "test": "vitest run",
49
- "test:watch": "vitest",
50
- "typecheck": "tsc --noEmit",
51
- "//prepack": "Build before packing so a published tarball can never carry a stale or missing dist/. That failure mode is nasty: the package installs cleanly and dies on first import.",
52
- "prepack": "npm run build",
53
- "prepublishOnly": "npm run build && npm test"
54
- },
55
- "publishConfig": {
56
- "access": "public"
57
- },
58
- "dependencies": {
59
- "axios": "^1.7.0"
60
- },
61
- "devDependencies": {
62
- "typescript": "^5.5.0",
63
- "vitest": "^1.6.1",
64
- "@types/node": "^22.0.0"
65
- },
66
- "//publishConfig": "Provenance is passed as --provenance by .github/workflows/release.yml. Setting it here instead would break every publish outside CI with an error that does not explain itself."
67
- }
1
+ {
2
+ "name": "@certen.io/sdk",
3
+ "version": "0.3.1",
4
+ "description": "TypeScript client for the CERTEN Gateway API \u2014 proof-gated cross-chain execution on Accumulate",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "keywords": [
8
+ "certen",
9
+ "accumulate",
10
+ "blockchain",
11
+ "cross-chain",
12
+ "multisig",
13
+ "proof-gated",
14
+ "sdk"
15
+ ],
16
+ "homepage": "https://github.com/certenIO/certen-sdk#readme",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/certenIO/certen-sdk.git",
20
+ "directory": "packages/sdk"
21
+ },
22
+ "bugs": {
23
+ "url": "https://github.com/certenIO/certen-sdk/issues"
24
+ },
25
+ "engines": {
26
+ "node": ">=18"
27
+ },
28
+ "main": "dist/index.js",
29
+ "types": "dist/index.d.ts",
30
+ "//exports": "Explicit map so a consumer on modern resolution gets the types; main/types stay for older toolchains.",
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/index.d.ts",
34
+ "import": "./dist/index.js",
35
+ "default": "./dist/index.js"
36
+ }
37
+ },
38
+ "//files": "Only the build output and docs. src/ and test/ stay in the repo \u2014 declarationMap + sourceMap already give consumers navigable types, so shipping sources doubles the tarball for nothing.",
39
+ "files": [
40
+ "dist/",
41
+ "README.md",
42
+ "CHANGELOG.md",
43
+ "LICENSE"
44
+ ],
45
+ "sideEffects": false,
46
+ "scripts": {
47
+ "build": "tsc",
48
+ "test": "vitest run",
49
+ "test:watch": "vitest",
50
+ "typecheck": "tsc --noEmit",
51
+ "//prepack": "Build before packing so a published tarball can never carry a stale or missing dist/. That failure mode is nasty: the package installs cleanly and dies on first import.",
52
+ "prepack": "npm run build",
53
+ "prepublishOnly": "npm run build && npm test"
54
+ },
55
+ "publishConfig": {
56
+ "access": "public"
57
+ },
58
+ "dependencies": {
59
+ "axios": "^1.7.0"
60
+ },
61
+ "devDependencies": {
62
+ "typescript": "^5.5.0",
63
+ "vitest": "^1.6.1",
64
+ "@types/node": "^22.0.0"
65
+ },
66
+ "//publishConfig": "Provenance is passed as --provenance by .github/workflows/release.yml. Setting it here instead would break every publish outside CI with an error that does not explain itself."
67
+ }