@sybil-studio-devs/sdk 0.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.
@@ -0,0 +1,396 @@
1
+ interface SybilConfig {
2
+ apiKey: string;
3
+ baseUrl?: string;
4
+ timeout?: number;
5
+ }
6
+ interface RateLimitInfo {
7
+ limit: number;
8
+ remaining: number;
9
+ resetAt: string;
10
+ }
11
+ interface ApiResponse<T> {
12
+ data: T;
13
+ meta?: {
14
+ rateLimit?: RateLimitInfo;
15
+ };
16
+ }
17
+ interface ApiError {
18
+ error: {
19
+ message: string;
20
+ code?: string;
21
+ };
22
+ }
23
+ interface PaginationParams {
24
+ limit?: number;
25
+ offset?: number;
26
+ }
27
+ interface Pagination {
28
+ total: number;
29
+ limit: number;
30
+ offset: number;
31
+ hasMore: boolean;
32
+ }
33
+ interface Block {
34
+ type: string;
35
+ content?: Array<{
36
+ type: string;
37
+ text?: string;
38
+ [key: string]: any;
39
+ }>;
40
+ attrs?: Record<string, any>;
41
+ [key: string]: any;
42
+ }
43
+ interface Page {
44
+ id: string;
45
+ title: string;
46
+ slug: string;
47
+ description?: string;
48
+ blocks: Block[];
49
+ artifact_map?: Record<string, any>;
50
+ parent_id?: string | null;
51
+ is_published: boolean;
52
+ is_template: boolean;
53
+ version: number;
54
+ created_at: string;
55
+ updated_at: string;
56
+ metadata?: Record<string, any>;
57
+ }
58
+ interface CreatePageParams {
59
+ title?: string;
60
+ slug?: string;
61
+ description?: string;
62
+ blocks?: Block[];
63
+ parent_id?: string;
64
+ }
65
+ interface UpdatePageParams {
66
+ title?: string;
67
+ slug?: string;
68
+ description?: string | null;
69
+ blocks?: Block[];
70
+ is_published?: boolean;
71
+ parent_id?: string | null;
72
+ }
73
+ interface ListPagesParams extends PaginationParams {
74
+ parent_id?: string | 'root';
75
+ is_published?: boolean;
76
+ }
77
+ interface UploadResult {
78
+ url: string;
79
+ fileName: string;
80
+ fileSize: number;
81
+ mimeType: string;
82
+ path: string;
83
+ }
84
+ interface Document {
85
+ id: string;
86
+ title: string;
87
+ fileName: string;
88
+ fileType: string;
89
+ mimeType?: string;
90
+ fileSize: number;
91
+ status: DocumentStatus;
92
+ sourceUrl?: string;
93
+ sourceType?: string;
94
+ content?: string;
95
+ contentPreview?: string;
96
+ insights?: Insight[];
97
+ metadata?: DocumentMetadata;
98
+ createdAt: string;
99
+ updatedAt: string;
100
+ processedAt?: string;
101
+ }
102
+ type DocumentStatus = 'pending' | 'uploading' | 'processing' | 'extracting' | 'indexing' | 'processed' | 'completed' | 'failed';
103
+ interface DocumentMetadata {
104
+ title?: string;
105
+ fileName?: string;
106
+ fileType?: string;
107
+ fileSize?: number;
108
+ documentType?: string;
109
+ category?: string;
110
+ keywords?: string[];
111
+ language?: string;
112
+ pageCount?: number;
113
+ wordCount?: number;
114
+ hasTranscript?: boolean;
115
+ semanticAnalysis?: SemanticAnalysis;
116
+ }
117
+ interface SemanticAnalysis {
118
+ topics?: string[];
119
+ entities?: Record<string, any[]>;
120
+ keyphrases?: string[];
121
+ domainTerms?: string[];
122
+ }
123
+ interface Insight {
124
+ id: string;
125
+ type: string;
126
+ title?: string;
127
+ content: string;
128
+ confidence?: number;
129
+ data?: any;
130
+ created_at?: string;
131
+ }
132
+ interface ProcessDocumentResult {
133
+ success: boolean;
134
+ documentId: string;
135
+ status: DocumentStatus;
136
+ message: string;
137
+ metadata: DocumentMetadata;
138
+ contentPreview?: string;
139
+ insights: Insight[];
140
+ processingTime: number;
141
+ }
142
+ interface DocumentStatusResult {
143
+ documentId: string;
144
+ status: DocumentStatus;
145
+ progress: number;
146
+ message: string;
147
+ startedAt?: string;
148
+ completedAt?: string;
149
+ error?: any;
150
+ hasInsights: boolean;
151
+ insightsCount: number;
152
+ }
153
+ interface ListDocumentsParams extends PaginationParams {
154
+ status?: DocumentStatus;
155
+ fileType?: string;
156
+ search?: string;
157
+ }
158
+ interface GetDocumentParams {
159
+ includeContent?: boolean;
160
+ includeInsights?: boolean;
161
+ includeMetadata?: boolean;
162
+ }
163
+ interface YouTubeVideo {
164
+ id: string;
165
+ videoId: string;
166
+ documentId: string;
167
+ title: string;
168
+ description?: string;
169
+ channelTitle: string;
170
+ channelId: string;
171
+ tags?: string[];
172
+ publishedAt: string;
173
+ duration: string;
174
+ viewCount: number;
175
+ likeCount: number;
176
+ commentCount: number;
177
+ thumbnailUrl: string;
178
+ transcriptAvailable: boolean;
179
+ transcriptLanguage?: string;
180
+ wordCount: number;
181
+ readingTime: number;
182
+ createdAt: string;
183
+ updatedAt: string;
184
+ }
185
+ interface ProcessYouTubeResult {
186
+ status: 'success' | 'exists';
187
+ document: {
188
+ id: string;
189
+ title: string;
190
+ workspace_id: string;
191
+ source_url: string;
192
+ created_at: string;
193
+ };
194
+ video: {
195
+ videoId: string;
196
+ title: string;
197
+ channelTitle: string;
198
+ duration: string;
199
+ viewCount: number;
200
+ hasTranscript: boolean;
201
+ };
202
+ transcript: {
203
+ available: boolean;
204
+ wordCount: number;
205
+ chunkCount: number;
206
+ };
207
+ insights: {
208
+ count: number;
209
+ types: string[];
210
+ };
211
+ message: string;
212
+ }
213
+ interface GetYouTubeVideoParams {
214
+ includeTranscript?: boolean;
215
+ includeChunks?: boolean;
216
+ includeInsights?: boolean;
217
+ }
218
+ interface TranscriptChunk {
219
+ index: number;
220
+ startTime: number;
221
+ endTime: number;
222
+ content: string;
223
+ metadata?: Record<string, any>;
224
+ }
225
+ interface YouTubeVideoDetail extends YouTubeVideo {
226
+ transcript?: string;
227
+ chunks?: TranscriptChunk[];
228
+ insights?: Insight[];
229
+ semanticAnalysis?: SemanticAnalysis;
230
+ }
231
+ interface ChatMessage {
232
+ role: 'user' | 'assistant';
233
+ content: string;
234
+ }
235
+ interface ChatParams {
236
+ query: string;
237
+ documentId: string;
238
+ conversationHistory?: ChatMessage[];
239
+ searchConfig?: {
240
+ semanticWeight?: number;
241
+ keywordWeight?: number;
242
+ maxResults?: number;
243
+ confidenceThreshold?: number;
244
+ };
245
+ }
246
+ interface ChatSource {
247
+ content: string;
248
+ similarity: number;
249
+ metadata?: Record<string, any>;
250
+ }
251
+ interface ChatResult {
252
+ response: string;
253
+ sources: ChatSource[];
254
+ metadata: {
255
+ documentId: string;
256
+ documentTitle: string;
257
+ sourcesCount: number;
258
+ confidence: number;
259
+ requestId: string;
260
+ };
261
+ }
262
+ interface ChatHistoryItem {
263
+ id: string;
264
+ query: string;
265
+ response: string;
266
+ type: string;
267
+ createdAt: string;
268
+ metadata?: Record<string, any>;
269
+ }
270
+ interface AnalyzeParams {
271
+ documentId: string;
272
+ forceRefresh?: boolean;
273
+ }
274
+ interface AnalysisResult {
275
+ analysis: any;
276
+ cached: boolean;
277
+ generatedAt: string;
278
+ document: {
279
+ id: string;
280
+ title: string;
281
+ };
282
+ }
283
+
284
+ declare class SybilSDK {
285
+ private apiKey;
286
+ private baseUrl;
287
+ private timeout;
288
+ pages: PagesAPI;
289
+ documents: DocumentsAPI;
290
+ youtube: YouTubeAPI;
291
+ chat: ChatAPI;
292
+ analyze: AnalyzeAPI;
293
+ constructor(config: string | SybilConfig);
294
+ request<T>(endpoint: string, options?: RequestInit): Promise<T>;
295
+ }
296
+ declare class SybilError extends Error {
297
+ status: number;
298
+ code?: string;
299
+ constructor(message: string, status: number, code?: string);
300
+ }
301
+ declare class PagesAPI {
302
+ private client;
303
+ constructor(client: SybilSDK);
304
+ list(params?: ListPagesParams): Promise<{
305
+ pages: Page[];
306
+ pagination: Pagination;
307
+ }>;
308
+ get(pageId: string): Promise<{
309
+ page: Page;
310
+ }>;
311
+ create(params?: CreatePageParams): Promise<{
312
+ page: Page;
313
+ }>;
314
+ update(pageId: string, params: UpdatePageParams): Promise<{
315
+ page: Page;
316
+ }>;
317
+ delete(pageId: string): Promise<{
318
+ success: boolean;
319
+ message: string;
320
+ }>;
321
+ upload(file: File | Blob, fileName?: string): Promise<UploadResult>;
322
+ deleteFile(filePath: string): Promise<{
323
+ success: boolean;
324
+ message: string;
325
+ }>;
326
+ }
327
+ declare class DocumentsAPI {
328
+ private client;
329
+ constructor(client: SybilSDK);
330
+ list(params?: ListDocumentsParams): Promise<{
331
+ documents: Document[];
332
+ pagination: Pagination;
333
+ }>;
334
+ get(documentId: string, params?: GetDocumentParams): Promise<{
335
+ document: Document;
336
+ }>;
337
+ process(file: File | Blob, options?: {
338
+ fileName?: string;
339
+ metadata?: Record<string, any>;
340
+ collectionId?: string;
341
+ }): Promise<ProcessDocumentResult>;
342
+ status(documentId: string): Promise<DocumentStatusResult>;
343
+ insights(documentId: string, type?: string): Promise<{
344
+ documentId: string;
345
+ insights: Insight[];
346
+ semanticAnalysis?: any;
347
+ }>;
348
+ delete(documentId: string): Promise<{
349
+ success: boolean;
350
+ message: string;
351
+ documentId: string;
352
+ }>;
353
+ waitForProcessing(documentId: string, options?: {
354
+ maxAttempts?: number;
355
+ interval?: number;
356
+ }): Promise<Document>;
357
+ }
358
+ declare class YouTubeAPI {
359
+ private client;
360
+ constructor(client: SybilSDK);
361
+ list(params?: {
362
+ limit?: number;
363
+ offset?: number;
364
+ }): Promise<{
365
+ videos: YouTubeVideo[];
366
+ pagination: Pagination;
367
+ }>;
368
+ process(url: string, collectionId?: string): Promise<ProcessYouTubeResult>;
369
+ get(videoId: string, params?: GetYouTubeVideoParams): Promise<{
370
+ video: YouTubeVideoDetail;
371
+ }>;
372
+ delete(videoId: string): Promise<{
373
+ success: boolean;
374
+ message: string;
375
+ videoId: string;
376
+ }>;
377
+ }
378
+ declare class ChatAPI {
379
+ private client;
380
+ constructor(client: SybilSDK);
381
+ send(params: ChatParams): Promise<ChatResult>;
382
+ send(documentId: string, query: string): Promise<ChatResult>;
383
+ history(documentId: string, limit?: number): Promise<{
384
+ history: ChatHistoryItem[];
385
+ total: number;
386
+ }>;
387
+ }
388
+ declare class AnalyzeAPI {
389
+ private client;
390
+ constructor(client: SybilSDK);
391
+ run(params: AnalyzeParams): Promise<AnalysisResult>;
392
+ run(documentId: string, forceRefresh?: boolean): Promise<AnalysisResult>;
393
+ get(documentId: string): Promise<AnalysisResult>;
394
+ }
395
+
396
+ export { type AnalysisResult, type AnalyzeParams, type ApiError, type ApiResponse, type Block, type ChatHistoryItem, type ChatMessage, type ChatParams, type ChatResult, type ChatSource, type CreatePageParams, type Document, type DocumentMetadata, type DocumentStatus, type DocumentStatusResult, type GetDocumentParams, type GetYouTubeVideoParams, type Insight, type ListDocumentsParams, type ListPagesParams, type Page, type Pagination, type PaginationParams, type ProcessDocumentResult, type ProcessYouTubeResult, type RateLimitInfo, type SemanticAnalysis, type SybilConfig, SybilError, SybilSDK, type TranscriptChunk, type UpdatePageParams, type UploadResult, type YouTubeVideo, type YouTubeVideoDetail, SybilSDK as default };
package/dist/index.js ADDED
@@ -0,0 +1,287 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ SybilError: () => SybilError,
24
+ SybilSDK: () => SybilSDK,
25
+ default: () => index_default
26
+ });
27
+ module.exports = __toCommonJS(index_exports);
28
+
29
+ // src/client.ts
30
+ var DEFAULT_BASE_URL = "https://app.sybil.ai/api/sdk/v1";
31
+ var DEFAULT_TIMEOUT = 3e4;
32
+ var SybilSDK = class {
33
+ constructor(config) {
34
+ if (typeof config === "string") {
35
+ this.apiKey = config;
36
+ this.baseUrl = DEFAULT_BASE_URL;
37
+ this.timeout = DEFAULT_TIMEOUT;
38
+ } else {
39
+ this.apiKey = config.apiKey;
40
+ this.baseUrl = config.baseUrl || DEFAULT_BASE_URL;
41
+ this.timeout = config.timeout || DEFAULT_TIMEOUT;
42
+ }
43
+ if (!this.apiKey) {
44
+ throw new Error("API key is required");
45
+ }
46
+ if (!this.apiKey.startsWith("sk_live_") && !this.apiKey.startsWith("sk_test_")) {
47
+ throw new Error("Invalid API key format. Must start with sk_live_ or sk_test_");
48
+ }
49
+ this.pages = new PagesAPI(this);
50
+ this.documents = new DocumentsAPI(this);
51
+ this.youtube = new YouTubeAPI(this);
52
+ this.chat = new ChatAPI(this);
53
+ this.analyze = new AnalyzeAPI(this);
54
+ }
55
+ async request(endpoint, options = {}) {
56
+ const url = `${this.baseUrl}${endpoint}`;
57
+ const headers = {
58
+ "x-api-key": this.apiKey,
59
+ ...options.headers
60
+ };
61
+ if (options.body && typeof options.body === "string") {
62
+ headers["Content-Type"] = "application/json";
63
+ }
64
+ const controller = new AbortController();
65
+ const timeoutId = setTimeout(() => controller.abort(), this.timeout);
66
+ try {
67
+ const response = await fetch(url, {
68
+ ...options,
69
+ headers,
70
+ signal: controller.signal
71
+ });
72
+ clearTimeout(timeoutId);
73
+ if (!response.ok) {
74
+ const errorData = await response.json().catch(() => ({}));
75
+ const message = errorData.error?.message || `Request failed with status ${response.status}`;
76
+ throw new SybilError(message, response.status, errorData.error?.code);
77
+ }
78
+ return response.json();
79
+ } catch (error) {
80
+ clearTimeout(timeoutId);
81
+ if (error instanceof SybilError) {
82
+ throw error;
83
+ }
84
+ if (error instanceof Error && error.name === "AbortError") {
85
+ throw new SybilError("Request timeout", 408, "TIMEOUT");
86
+ }
87
+ throw new SybilError(
88
+ error instanceof Error ? error.message : "Unknown error",
89
+ 500,
90
+ "UNKNOWN"
91
+ );
92
+ }
93
+ }
94
+ };
95
+ var SybilError = class extends Error {
96
+ constructor(message, status, code) {
97
+ super(message);
98
+ this.name = "SybilError";
99
+ this.status = status;
100
+ this.code = code;
101
+ }
102
+ };
103
+ var PagesAPI = class {
104
+ constructor(client) {
105
+ this.client = client;
106
+ }
107
+ async list(params = {}) {
108
+ const searchParams = new URLSearchParams();
109
+ if (params.limit) searchParams.set("limit", params.limit.toString());
110
+ if (params.offset) searchParams.set("offset", params.offset.toString());
111
+ if (params.parent_id) searchParams.set("parent_id", params.parent_id);
112
+ if (params.is_published !== void 0) searchParams.set("is_published", params.is_published.toString());
113
+ const query = searchParams.toString();
114
+ return this.client.request(`/pages${query ? `?${query}` : ""}`);
115
+ }
116
+ async get(pageId) {
117
+ return this.client.request(`/pages/${pageId}`);
118
+ }
119
+ async create(params = {}) {
120
+ return this.client.request("/pages", {
121
+ method: "POST",
122
+ body: JSON.stringify(params)
123
+ });
124
+ }
125
+ async update(pageId, params) {
126
+ return this.client.request(`/pages/${pageId}`, {
127
+ method: "PUT",
128
+ body: JSON.stringify(params)
129
+ });
130
+ }
131
+ async delete(pageId) {
132
+ return this.client.request(`/pages/${pageId}`, {
133
+ method: "DELETE"
134
+ });
135
+ }
136
+ async upload(file, fileName) {
137
+ const formData = new FormData();
138
+ formData.append("file", file, fileName);
139
+ return this.client.request("/pages/upload", {
140
+ method: "POST",
141
+ body: formData
142
+ });
143
+ }
144
+ async deleteFile(filePath) {
145
+ return this.client.request("/pages/upload", {
146
+ method: "DELETE",
147
+ body: JSON.stringify({ filePath })
148
+ });
149
+ }
150
+ };
151
+ var DocumentsAPI = class {
152
+ constructor(client) {
153
+ this.client = client;
154
+ }
155
+ async list(params = {}) {
156
+ const searchParams = new URLSearchParams();
157
+ if (params.limit) searchParams.set("limit", params.limit.toString());
158
+ if (params.offset) searchParams.set("offset", params.offset.toString());
159
+ if (params.status) searchParams.set("status", params.status);
160
+ if (params.fileType) searchParams.set("fileType", params.fileType);
161
+ if (params.search) searchParams.set("search", params.search);
162
+ const query = searchParams.toString();
163
+ return this.client.request(`/documents${query ? `?${query}` : ""}`);
164
+ }
165
+ async get(documentId, params = {}) {
166
+ const searchParams = new URLSearchParams();
167
+ if (params.includeContent) searchParams.set("includeContent", "true");
168
+ if (params.includeInsights === false) searchParams.set("includeInsights", "false");
169
+ if (params.includeMetadata === false) searchParams.set("includeMetadata", "false");
170
+ const query = searchParams.toString();
171
+ return this.client.request(`/documents/${documentId}${query ? `?${query}` : ""}`);
172
+ }
173
+ async process(file, options = {}) {
174
+ const formData = new FormData();
175
+ formData.append("file", file, options.fileName);
176
+ if (options.metadata) {
177
+ formData.append("metadata", JSON.stringify(options.metadata));
178
+ }
179
+ if (options.collectionId) {
180
+ formData.append("collectionId", options.collectionId);
181
+ }
182
+ return this.client.request("/documents", {
183
+ method: "POST",
184
+ body: formData
185
+ });
186
+ }
187
+ async status(documentId) {
188
+ return this.client.request(`/documents/${documentId}/status`);
189
+ }
190
+ async insights(documentId, type) {
191
+ const query = type ? `?type=${type}` : "";
192
+ return this.client.request(`/documents/${documentId}/insights${query}`);
193
+ }
194
+ async delete(documentId) {
195
+ return this.client.request(`/documents/${documentId}`, {
196
+ method: "DELETE"
197
+ });
198
+ }
199
+ async waitForProcessing(documentId, options = {}) {
200
+ const maxAttempts = options.maxAttempts || 60;
201
+ const interval = options.interval || 3e3;
202
+ for (let i = 0; i < maxAttempts; i++) {
203
+ const status = await this.status(documentId);
204
+ if (status.status === "processed" || status.status === "completed") {
205
+ const { document } = await this.get(documentId);
206
+ return document;
207
+ }
208
+ if (status.status === "failed") {
209
+ throw new SybilError(status.error?.message || "Processing failed", 500, "PROCESSING_FAILED");
210
+ }
211
+ await new Promise((resolve) => setTimeout(resolve, interval));
212
+ }
213
+ throw new SybilError("Processing timeout", 408, "TIMEOUT");
214
+ }
215
+ };
216
+ var YouTubeAPI = class {
217
+ constructor(client) {
218
+ this.client = client;
219
+ }
220
+ async list(params = {}) {
221
+ const searchParams = new URLSearchParams();
222
+ if (params.limit) searchParams.set("limit", params.limit.toString());
223
+ if (params.offset) searchParams.set("offset", params.offset.toString());
224
+ const query = searchParams.toString();
225
+ return this.client.request(`/youtube${query ? `?${query}` : ""}`);
226
+ }
227
+ async process(url, collectionId) {
228
+ return this.client.request("/youtube", {
229
+ method: "POST",
230
+ body: JSON.stringify({ url, collectionId })
231
+ });
232
+ }
233
+ async get(videoId, params = {}) {
234
+ const searchParams = new URLSearchParams();
235
+ if (params.includeTranscript) searchParams.set("includeTranscript", "true");
236
+ if (params.includeChunks) searchParams.set("includeChunks", "true");
237
+ if (params.includeInsights === false) searchParams.set("includeInsights", "false");
238
+ const query = searchParams.toString();
239
+ return this.client.request(`/youtube/${videoId}${query ? `?${query}` : ""}`);
240
+ }
241
+ async delete(videoId) {
242
+ return this.client.request(`/youtube/${videoId}`, {
243
+ method: "DELETE"
244
+ });
245
+ }
246
+ };
247
+ var ChatAPI = class {
248
+ constructor(client) {
249
+ this.client = client;
250
+ }
251
+ async send(paramsOrDocId, query) {
252
+ const params = typeof paramsOrDocId === "string" ? { documentId: paramsOrDocId, query } : paramsOrDocId;
253
+ return this.client.request("/chat", {
254
+ method: "POST",
255
+ body: JSON.stringify(params)
256
+ });
257
+ }
258
+ async history(documentId, limit) {
259
+ const searchParams = new URLSearchParams();
260
+ searchParams.set("documentId", documentId);
261
+ if (limit) searchParams.set("limit", limit.toString());
262
+ return this.client.request(`/chat?${searchParams.toString()}`);
263
+ }
264
+ };
265
+ var AnalyzeAPI = class {
266
+ constructor(client) {
267
+ this.client = client;
268
+ }
269
+ async run(paramsOrDocId, forceRefresh) {
270
+ const params = typeof paramsOrDocId === "string" ? { documentId: paramsOrDocId, forceRefresh } : paramsOrDocId;
271
+ return this.client.request("/analyze", {
272
+ method: "POST",
273
+ body: JSON.stringify(params)
274
+ });
275
+ }
276
+ async get(documentId) {
277
+ return this.client.request(`/analyze?documentId=${documentId}`);
278
+ }
279
+ };
280
+
281
+ // src/index.ts
282
+ var index_default = SybilSDK;
283
+ // Annotate the CommonJS export names for ESM import in node:
284
+ 0 && (module.exports = {
285
+ SybilError,
286
+ SybilSDK
287
+ });