@gentid/sdk 1.0.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.
@@ -0,0 +1,32 @@
1
+ import type { GentIDClientOptions, Agent, CreatedAgent, SignResult, VerifyResult, VerificationRecord, VerificationType, ListAgentsResult, LookupResult } from './types';
2
+ export declare class GentIDError extends Error {
3
+ readonly statusCode: number;
4
+ readonly code?: string | undefined;
5
+ constructor(statusCode: number, message: string, code?: string | undefined);
6
+ }
7
+ export declare class GentIDClient {
8
+ private readonly baseUrl;
9
+ private readonly apiKey;
10
+ constructor({ baseUrl, apiKey }: GentIDClientOptions);
11
+ private request;
12
+ /** Create a new agent identity. Store the returned privateKey — it is never shown again. */
13
+ createAgent(params: {
14
+ name: string;
15
+ owner: string;
16
+ }): Promise<CreatedAgent>;
17
+ getAgent(id: string): Promise<Agent>;
18
+ listAgents(owner: string, options?: {
19
+ limit?: number;
20
+ offset?: number;
21
+ }): Promise<ListAgentsResult>;
22
+ revokeAgent(id: string): Promise<Agent>;
23
+ suspendAgent(id: string): Promise<Agent>;
24
+ reactivateAgent(id: string): Promise<Agent>;
25
+ signMessage(agentId: string, message: string): Promise<SignResult>;
26
+ verifySignature(agentId: string, message: string, signature: string): Promise<VerifyResult>;
27
+ /** Public — no API key required. Verify any agent's identity and public key. */
28
+ lookupAgent(agentId: string): Promise<LookupResult>;
29
+ requestVerification(agentId: string, type: VerificationType): Promise<VerificationRecord>;
30
+ getVerificationStatus(agentId: string): Promise<VerificationRecord[]>;
31
+ }
32
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,KAAK,EACL,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB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mB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIzF,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;CAI5E"}
package/dist/client.js ADDED
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GentIDClient = exports.GentIDError = void 0;
4
+ class GentIDError extends Error {
5
+ constructor(statusCode, message, code) {
6
+ super(message);
7
+ this.statusCode = statusCode;
8
+ this.code = code;
9
+ this.name = 'GentIDError';
10
+ }
11
+ }
12
+ exports.GentIDError = GentIDError;
13
+ const DEFAULT_BASE_URL = 'https://api.gentid.com';
14
+ class GentIDClient {
15
+ constructor({ baseUrl = DEFAULT_BASE_URL, apiKey }) {
16
+ this.baseUrl = baseUrl.replace(/\/$/, '');
17
+ this.apiKey = apiKey;
18
+ }
19
+ async request(method, path, body, auth = true) {
20
+ const url = `${this.baseUrl}/api/v1${path}`;
21
+ const headers = { 'Content-Type': 'application/json' };
22
+ if (auth)
23
+ headers['Authorization'] = `Bearer ${this.apiKey}`;
24
+ const res = await fetch(url, {
25
+ method,
26
+ headers,
27
+ ...(body !== undefined ? { body: JSON.stringify(body) } : {}),
28
+ });
29
+ const data = await res.json().catch(() => ({}));
30
+ if (!res.ok) {
31
+ throw new GentIDError(res.status, data.error ?? res.statusText, data.code);
32
+ }
33
+ return data;
34
+ }
35
+ // ─── Agents ───────────────────────────────────────────────────────────────────
36
+ /** Create a new agent identity. Store the returned privateKey — it is never shown again. */
37
+ async createAgent(params) {
38
+ return this.request('POST', '/agents', params);
39
+ }
40
+ async getAgent(id) {
41
+ return this.request('GET', `/agents/${encodeURIComponent(id)}`);
42
+ }
43
+ async listAgents(owner, options) {
44
+ const params = new URLSearchParams({ owner });
45
+ if (options?.limit !== undefined)
46
+ params.set('limit', String(options.limit));
47
+ if (options?.offset !== undefined)
48
+ params.set('offset', String(options.offset));
49
+ return this.request('GET', `/agents?${params}`);
50
+ }
51
+ async revokeAgent(id) {
52
+ return this.request('POST', `/agents/${encodeURIComponent(id)}/revoke`);
53
+ }
54
+ async suspendAgent(id) {
55
+ return this.request('POST', `/agents/${encodeURIComponent(id)}/suspend`);
56
+ }
57
+ async reactivateAgent(id) {
58
+ return this.request('POST', `/agents/${encodeURIComponent(id)}/reactivate`);
59
+ }
60
+ // ─── Signatures ───────────────────────────────────────────────────────────────
61
+ async signMessage(agentId, message) {
62
+ return this.request('POST', '/signatures/sign', { agentId, message });
63
+ }
64
+ async verifySignature(agentId, message, signature) {
65
+ return this.request('POST', '/signatures/verify', { agentId, message, signature });
66
+ }
67
+ // ─── Verification ─────────────────────────────────────────────────────────────
68
+ /** Public — no API key required. Verify any agent's identity and public key. */
69
+ async lookupAgent(agentId) {
70
+ return this.request('GET', `/verification/lookup/${encodeURIComponent(agentId)}`, undefined, false);
71
+ }
72
+ async requestVerification(agentId, type) {
73
+ return this.request('POST', '/verification/request', { agentId, type });
74
+ }
75
+ async getVerificationStatus(agentId) {
76
+ const params = new URLSearchParams({ agentId });
77
+ return this.request('GET', `/verification/status?${params}`);
78
+ }
79
+ }
80
+ exports.GentIDClient = GentIDClient;
81
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;AAYA,MAAa,WAAY,SAAQ,KAAK;IACpC,YACkB,UAAkB,EAClC,OAAe,EACC,IAAa;QAE7B,KAAK,CAAC,OAAO,CAAC,CAAC;QAJC,eAAU,GAAV,UAAU,CAAQ;QAElB,SAAI,GAAJ,IAAI,CAAS;QAG7B,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;IAC5B,CAAC;CACF;AATD,kCASC;AAED,MAAM,gBAAgB,GAAG,wBAAwB,CAAC;AAElD,MAAa,YAAY;IAIvB,YAAY,EAAE,OAAO,GAAG,gBAAgB,EAAE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CAAC;IAED,KAAK,CAAC,eAAe,CAAC,OAAe,EAAE,OAAe,EAAE,SAAiB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAe,MAAM,EAAE,oBAAoB,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;IACnG,CAAC;IAED,iFAAiF;IAEjF,gFAAgF;IAChF,KAAK,CAAC,WAAW,CAAC,OAAe;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAe,KAAK,EAAE,wBAAwB,kBAAkB,CAAC,OAAO,CAAC,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACpH,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,OAAe,EAAE,IAAsB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAqB,MAAM,EAAE,uBAAuB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAC,OAAe;QACzC,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAuB,KAAK,EAAE,wBAAwB,MAAM,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AAxFD,oCAwFC"}
@@ -0,0 +1,3 @@
1
+ export { GentIDClient, GentIDError } from './client';
2
+ export type { Agent, CreatedAgent, SignResult, VerifyResult, VerificationRecord, VerificationType, VerificationStatus, AgentStatus, LookupResult, ListAgentsResult, GentIDClientOptions, } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACrD,YAAY,EACV,KAAK,EACL,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,SAAS,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GentIDError = exports.GentIDClient = void 0;
4
+ var client_1 = require("./client");
5
+ Object.defineProperty(exports, "GentIDClient", { enumerable: true, get: function () { return client_1.GentIDClient; } });
6
+ Object.defineProperty(exports, "GentIDError", { enumerable: true, get: function () { return client_1.GentIDError; } });
7
+ // Quick start:
8
+ //
9
+ // import { GentIDClient } from '@gentid/sdk';
10
+ //
11
+ // const gentid = new GentIDClient({ apiKey: 'gid_live_xxxx' });
12
+ //
13
+ // const agent = await gentid.createAgent({ name: 'payments-bot', owner: 'acme-corp' });
14
+ // // ⚠ store agent.privateKey — it is never returned again
15
+ //
16
+ // const { signature } = await gentid.signMessage(agent.id, 'approve-payment-42');
17
+ // const { valid } = await gentid.verifySignature(agent.id, 'approve-payment-42', signature);
18
+ //
19
+ // // Public lookup — no API key needed
20
+ // const identity = await gentid.lookupAgent(agent.id);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAAqD;AAA5C,sGAAA,YAAY,OAAA;AAAE,qGAAA,WAAW,OAAA;AAelC,eAAe;AACf,EAAE;AACF,8CAA8C;AAC9C,EAAE;AACF,gEAAgE;AAChE,EAAE;AACF,wFAAwF;AACxF,4DAA4D;AAC5D,EAAE;AACF,kFAAkF;AAClF,6FAA6F;AAC7F,EAAE;AACF,uCAAuC;AACvC,uDAAuD"}
@@ -0,0 +1,56 @@
1
+ export type AgentStatus = 'active' | 'revoked' | 'suspended';
2
+ export type VerificationType = 'email' | 'domain' | 'manual';
3
+ export type VerificationStatus = 'pending' | 'verified' | 'failed';
4
+ export interface Agent {
5
+ id: string;
6
+ name: string;
7
+ owner: string;
8
+ publicKey: string;
9
+ status: AgentStatus;
10
+ createdAt: string;
11
+ updatedAt: string;
12
+ }
13
+ export interface CreatedAgent extends Agent {
14
+ /** Returned only once at creation — store it securely. */
15
+ privateKey: string;
16
+ }
17
+ export interface SignResult {
18
+ agentId: string;
19
+ messageHash: string;
20
+ signature: string;
21
+ logId: string;
22
+ }
23
+ export interface VerifyResult {
24
+ valid: boolean;
25
+ agentId: string;
26
+ messageHash: string;
27
+ }
28
+ export interface VerificationRecord {
29
+ id: string;
30
+ agentId: string;
31
+ type: VerificationType;
32
+ status: VerificationStatus;
33
+ createdAt: string;
34
+ updatedAt: string;
35
+ hint?: string;
36
+ }
37
+ /** Public lookup result — no API key required. */
38
+ export interface LookupResult {
39
+ id: string;
40
+ name: string;
41
+ status: AgentStatus;
42
+ publicKey: string;
43
+ algorithm: string;
44
+ owner: string;
45
+ issuedAt: string;
46
+ }
47
+ export interface ListAgentsResult {
48
+ agents: Agent[];
49
+ total: number;
50
+ }
51
+ export interface GentIDClientOptions {
52
+ apiKey: string;
53
+ /** Defaults to https://api.gentid.com */
54
+ baseUrl?: string;
55
+ }
56
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC;AAC7D,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAC7D,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEnE,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAa,SAAQ,KAAK;IACzC,0DAA0D;IAC1D,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,kDAAkD;AAClD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
package/dist/types.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@gentid/sdk",
3
+ "version": "1.0.0",
4
+ "description": "TypeScript SDK for GentID — cryptographic identity for AI agents",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "engines": {
11
+ "node": ">=18"
12
+ },
13
+ "scripts": {
14
+ "build": "tsc",
15
+ "dev": "tsc --watch"
16
+ },
17
+ "devDependencies": {
18
+ "@types/node": "^22.15.21",
19
+ "typescript": "^5.8.3"
20
+ }
21
+ }