@natsuneko-laboratory/catalyst-sdk 0.1.2 → 0.2.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.
- package/dist/index.d.mts +108 -0
- package/dist/index.d.ts +108 -0
- package/dist/index.js +82 -0
- package/dist/index.mjs +82 -0
- package/package.json +42 -42
package/dist/index.d.mts
CHANGED
|
@@ -208,6 +208,96 @@ interface CatalystRelationshipRequest {
|
|
|
208
208
|
userId: string;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
+
interface CatalystCreateFleetMedia {
|
|
212
|
+
url: string;
|
|
213
|
+
width: number;
|
|
214
|
+
height: number;
|
|
215
|
+
bytes: number;
|
|
216
|
+
placement: {
|
|
217
|
+
posX: number;
|
|
218
|
+
posY: number;
|
|
219
|
+
scale: number;
|
|
220
|
+
rotation: number;
|
|
221
|
+
};
|
|
222
|
+
alt?: string | undefined;
|
|
223
|
+
}
|
|
224
|
+
interface CatalystCreateFleetText {
|
|
225
|
+
backgroundColor: string;
|
|
226
|
+
body: string;
|
|
227
|
+
textStyle: "default" | "bold" | "serif" | "handwriting";
|
|
228
|
+
textAlignment: "left" | "center" | "right";
|
|
229
|
+
color: string;
|
|
230
|
+
posX: number;
|
|
231
|
+
posY: number;
|
|
232
|
+
scale: number;
|
|
233
|
+
rotation: number;
|
|
234
|
+
}
|
|
235
|
+
interface CatalystCreateFleetSticker {
|
|
236
|
+
posX: number;
|
|
237
|
+
posY: number;
|
|
238
|
+
scale: number;
|
|
239
|
+
rotation: number;
|
|
240
|
+
emoji: string;
|
|
241
|
+
}
|
|
242
|
+
interface CatalystCreateFleetRequest {
|
|
243
|
+
backgroundColor: string;
|
|
244
|
+
texts: CatalystCreateFleetText[];
|
|
245
|
+
media: CatalystCreateFleetMedia;
|
|
246
|
+
stickers: CatalystCreateFleetSticker[];
|
|
247
|
+
}
|
|
248
|
+
interface CatalystFleetText {
|
|
249
|
+
id: string;
|
|
250
|
+
body: string;
|
|
251
|
+
textStyle: string;
|
|
252
|
+
textAlignment: string;
|
|
253
|
+
color: string;
|
|
254
|
+
backgroundColor?: string;
|
|
255
|
+
posX: number;
|
|
256
|
+
posY: number;
|
|
257
|
+
scale: number;
|
|
258
|
+
rotation: number;
|
|
259
|
+
}
|
|
260
|
+
interface CatalystFleetSticker {
|
|
261
|
+
id: string;
|
|
262
|
+
emoji: string;
|
|
263
|
+
posX: number;
|
|
264
|
+
posY: number;
|
|
265
|
+
scale: number;
|
|
266
|
+
rotation: number;
|
|
267
|
+
}
|
|
268
|
+
interface CatalystFleetMedia {
|
|
269
|
+
url: string;
|
|
270
|
+
alt: string;
|
|
271
|
+
width: number | null;
|
|
272
|
+
height: number | null;
|
|
273
|
+
placement?: {
|
|
274
|
+
posX: number;
|
|
275
|
+
posY: number;
|
|
276
|
+
scale: number;
|
|
277
|
+
rotation: number;
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
interface CatalystFleet extends CatalystReactions {
|
|
281
|
+
id: string;
|
|
282
|
+
backgroundColor: string;
|
|
283
|
+
user: EgeriaUser;
|
|
284
|
+
texts: CatalystFleetText[];
|
|
285
|
+
media: CatalystFleetMedia | null;
|
|
286
|
+
stickers: CatalystFleetSticker[];
|
|
287
|
+
viewCount: number;
|
|
288
|
+
createdAt: string;
|
|
289
|
+
expiresAt: string;
|
|
290
|
+
}
|
|
291
|
+
interface CatalystFleetViewer {
|
|
292
|
+
user: EgeriaUser;
|
|
293
|
+
viewedAt: string;
|
|
294
|
+
}
|
|
295
|
+
interface CatalystFleetRing {
|
|
296
|
+
user: EgeriaUser;
|
|
297
|
+
hasUnread: boolean;
|
|
298
|
+
fleetCount: number;
|
|
299
|
+
}
|
|
300
|
+
|
|
211
301
|
declare class CatalystClient {
|
|
212
302
|
private readonly http;
|
|
213
303
|
constructor(http: HttpClient);
|
|
@@ -282,6 +372,15 @@ declare class CatalystClient {
|
|
|
282
372
|
until?: string;
|
|
283
373
|
}): Promise<CatalystStatuses>;
|
|
284
374
|
trend(): Promise<string[]>;
|
|
375
|
+
createFleet(data: CatalystCreateFleetRequest): Promise<void>;
|
|
376
|
+
fleetById(id: string): Promise<CatalystFleet>;
|
|
377
|
+
deleteFleet(id: string): Promise<void>;
|
|
378
|
+
viewFleet(id: string): Promise<void>;
|
|
379
|
+
fleetViewers(id: string): Promise<CatalystFleetViewer[]>;
|
|
380
|
+
reactFleet(id: string, symbol: string): Promise<void>;
|
|
381
|
+
unreactFleet(id: string, symbol: string): Promise<void>;
|
|
382
|
+
fleets(): Promise<CatalystFleetRing[]>;
|
|
383
|
+
fleetByUsername(username: string): Promise<CatalystFleet[]>;
|
|
285
384
|
}
|
|
286
385
|
|
|
287
386
|
declare class EgeriaClient {
|
|
@@ -499,6 +598,15 @@ declare const CatalystEndpoint: {
|
|
|
499
598
|
until?: string;
|
|
500
599
|
}) => Endpoint;
|
|
501
600
|
readonly trend: () => Endpoint;
|
|
601
|
+
readonly createFleet: (data: CatalystCreateFleetRequest) => Endpoint;
|
|
602
|
+
readonly fleetById: (id: string) => Endpoint;
|
|
603
|
+
readonly deleteFleet: (id: string) => Endpoint;
|
|
604
|
+
readonly viewFleet: (id: string) => Endpoint;
|
|
605
|
+
readonly fleetViewers: (id: string) => Endpoint;
|
|
606
|
+
readonly reactFleet: (id: string, symbol: string) => Endpoint;
|
|
607
|
+
readonly unreactFleet: (id: string, symbol: string) => Endpoint;
|
|
608
|
+
readonly fleets: () => Endpoint;
|
|
609
|
+
readonly fleetByUsername: (username: string) => Endpoint;
|
|
502
610
|
};
|
|
503
611
|
|
|
504
612
|
declare const EgeriaEndpoint: {
|
package/dist/index.d.ts
CHANGED
|
@@ -208,6 +208,96 @@ interface CatalystRelationshipRequest {
|
|
|
208
208
|
userId: string;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
+
interface CatalystCreateFleetMedia {
|
|
212
|
+
url: string;
|
|
213
|
+
width: number;
|
|
214
|
+
height: number;
|
|
215
|
+
bytes: number;
|
|
216
|
+
placement: {
|
|
217
|
+
posX: number;
|
|
218
|
+
posY: number;
|
|
219
|
+
scale: number;
|
|
220
|
+
rotation: number;
|
|
221
|
+
};
|
|
222
|
+
alt?: string | undefined;
|
|
223
|
+
}
|
|
224
|
+
interface CatalystCreateFleetText {
|
|
225
|
+
backgroundColor: string;
|
|
226
|
+
body: string;
|
|
227
|
+
textStyle: "default" | "bold" | "serif" | "handwriting";
|
|
228
|
+
textAlignment: "left" | "center" | "right";
|
|
229
|
+
color: string;
|
|
230
|
+
posX: number;
|
|
231
|
+
posY: number;
|
|
232
|
+
scale: number;
|
|
233
|
+
rotation: number;
|
|
234
|
+
}
|
|
235
|
+
interface CatalystCreateFleetSticker {
|
|
236
|
+
posX: number;
|
|
237
|
+
posY: number;
|
|
238
|
+
scale: number;
|
|
239
|
+
rotation: number;
|
|
240
|
+
emoji: string;
|
|
241
|
+
}
|
|
242
|
+
interface CatalystCreateFleetRequest {
|
|
243
|
+
backgroundColor: string;
|
|
244
|
+
texts: CatalystCreateFleetText[];
|
|
245
|
+
media: CatalystCreateFleetMedia;
|
|
246
|
+
stickers: CatalystCreateFleetSticker[];
|
|
247
|
+
}
|
|
248
|
+
interface CatalystFleetText {
|
|
249
|
+
id: string;
|
|
250
|
+
body: string;
|
|
251
|
+
textStyle: string;
|
|
252
|
+
textAlignment: string;
|
|
253
|
+
color: string;
|
|
254
|
+
backgroundColor?: string;
|
|
255
|
+
posX: number;
|
|
256
|
+
posY: number;
|
|
257
|
+
scale: number;
|
|
258
|
+
rotation: number;
|
|
259
|
+
}
|
|
260
|
+
interface CatalystFleetSticker {
|
|
261
|
+
id: string;
|
|
262
|
+
emoji: string;
|
|
263
|
+
posX: number;
|
|
264
|
+
posY: number;
|
|
265
|
+
scale: number;
|
|
266
|
+
rotation: number;
|
|
267
|
+
}
|
|
268
|
+
interface CatalystFleetMedia {
|
|
269
|
+
url: string;
|
|
270
|
+
alt: string;
|
|
271
|
+
width: number | null;
|
|
272
|
+
height: number | null;
|
|
273
|
+
placement?: {
|
|
274
|
+
posX: number;
|
|
275
|
+
posY: number;
|
|
276
|
+
scale: number;
|
|
277
|
+
rotation: number;
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
interface CatalystFleet extends CatalystReactions {
|
|
281
|
+
id: string;
|
|
282
|
+
backgroundColor: string;
|
|
283
|
+
user: EgeriaUser;
|
|
284
|
+
texts: CatalystFleetText[];
|
|
285
|
+
media: CatalystFleetMedia | null;
|
|
286
|
+
stickers: CatalystFleetSticker[];
|
|
287
|
+
viewCount: number;
|
|
288
|
+
createdAt: string;
|
|
289
|
+
expiresAt: string;
|
|
290
|
+
}
|
|
291
|
+
interface CatalystFleetViewer {
|
|
292
|
+
user: EgeriaUser;
|
|
293
|
+
viewedAt: string;
|
|
294
|
+
}
|
|
295
|
+
interface CatalystFleetRing {
|
|
296
|
+
user: EgeriaUser;
|
|
297
|
+
hasUnread: boolean;
|
|
298
|
+
fleetCount: number;
|
|
299
|
+
}
|
|
300
|
+
|
|
211
301
|
declare class CatalystClient {
|
|
212
302
|
private readonly http;
|
|
213
303
|
constructor(http: HttpClient);
|
|
@@ -282,6 +372,15 @@ declare class CatalystClient {
|
|
|
282
372
|
until?: string;
|
|
283
373
|
}): Promise<CatalystStatuses>;
|
|
284
374
|
trend(): Promise<string[]>;
|
|
375
|
+
createFleet(data: CatalystCreateFleetRequest): Promise<void>;
|
|
376
|
+
fleetById(id: string): Promise<CatalystFleet>;
|
|
377
|
+
deleteFleet(id: string): Promise<void>;
|
|
378
|
+
viewFleet(id: string): Promise<void>;
|
|
379
|
+
fleetViewers(id: string): Promise<CatalystFleetViewer[]>;
|
|
380
|
+
reactFleet(id: string, symbol: string): Promise<void>;
|
|
381
|
+
unreactFleet(id: string, symbol: string): Promise<void>;
|
|
382
|
+
fleets(): Promise<CatalystFleetRing[]>;
|
|
383
|
+
fleetByUsername(username: string): Promise<CatalystFleet[]>;
|
|
285
384
|
}
|
|
286
385
|
|
|
287
386
|
declare class EgeriaClient {
|
|
@@ -499,6 +598,15 @@ declare const CatalystEndpoint: {
|
|
|
499
598
|
until?: string;
|
|
500
599
|
}) => Endpoint;
|
|
501
600
|
readonly trend: () => Endpoint;
|
|
601
|
+
readonly createFleet: (data: CatalystCreateFleetRequest) => Endpoint;
|
|
602
|
+
readonly fleetById: (id: string) => Endpoint;
|
|
603
|
+
readonly deleteFleet: (id: string) => Endpoint;
|
|
604
|
+
readonly viewFleet: (id: string) => Endpoint;
|
|
605
|
+
readonly fleetViewers: (id: string) => Endpoint;
|
|
606
|
+
readonly reactFleet: (id: string, symbol: string) => Endpoint;
|
|
607
|
+
readonly unreactFleet: (id: string, symbol: string) => Endpoint;
|
|
608
|
+
readonly fleets: () => Endpoint;
|
|
609
|
+
readonly fleetByUsername: (username: string) => Endpoint;
|
|
502
610
|
};
|
|
503
611
|
|
|
504
612
|
declare const EgeriaEndpoint: {
|
package/dist/index.js
CHANGED
|
@@ -353,6 +353,61 @@ var CatalystEndpoint = {
|
|
|
353
353
|
},
|
|
354
354
|
trend() {
|
|
355
355
|
return { path: "/catalyst/v1/trend", method: "GET" };
|
|
356
|
+
},
|
|
357
|
+
createFleet(data) {
|
|
358
|
+
return {
|
|
359
|
+
path: "/catalyst/v1/fleet",
|
|
360
|
+
method: "POST",
|
|
361
|
+
body: data
|
|
362
|
+
};
|
|
363
|
+
},
|
|
364
|
+
fleetById(id) {
|
|
365
|
+
return {
|
|
366
|
+
path: `/catalyst/v1/fleet/${id}`,
|
|
367
|
+
method: "GET"
|
|
368
|
+
};
|
|
369
|
+
},
|
|
370
|
+
deleteFleet(id) {
|
|
371
|
+
return {
|
|
372
|
+
path: `/catalyst/v1/fleet/${id}`,
|
|
373
|
+
method: "DELETE"
|
|
374
|
+
};
|
|
375
|
+
},
|
|
376
|
+
viewFleet(id) {
|
|
377
|
+
return {
|
|
378
|
+
path: `/catalyst/v1/fleet/${id}/view`,
|
|
379
|
+
method: "POST"
|
|
380
|
+
};
|
|
381
|
+
},
|
|
382
|
+
fleetViewers(id) {
|
|
383
|
+
return {
|
|
384
|
+
path: `/catalyst/v1/fleet/${id}/viewers`,
|
|
385
|
+
method: "GET"
|
|
386
|
+
};
|
|
387
|
+
},
|
|
388
|
+
reactFleet(id, symbol) {
|
|
389
|
+
return {
|
|
390
|
+
path: `/catalyst/v1/fleet/${id}/reactions/${symbol}`,
|
|
391
|
+
method: "POST"
|
|
392
|
+
};
|
|
393
|
+
},
|
|
394
|
+
unreactFleet(id, symbol) {
|
|
395
|
+
return {
|
|
396
|
+
path: `/catalyst/v1/fleet/${id}/reactions/${symbol}`,
|
|
397
|
+
method: "DELETE"
|
|
398
|
+
};
|
|
399
|
+
},
|
|
400
|
+
fleets() {
|
|
401
|
+
return {
|
|
402
|
+
path: "/catalyst/v1/fleet/ring",
|
|
403
|
+
method: "GET"
|
|
404
|
+
};
|
|
405
|
+
},
|
|
406
|
+
fleetByUsername(username) {
|
|
407
|
+
return {
|
|
408
|
+
path: `/catalyst/v1/fleet/by/user/${username}`,
|
|
409
|
+
method: "GET"
|
|
410
|
+
};
|
|
356
411
|
}
|
|
357
412
|
};
|
|
358
413
|
|
|
@@ -484,6 +539,33 @@ var CatalystClient = class {
|
|
|
484
539
|
trend() {
|
|
485
540
|
return this.http.request(CatalystEndpoint.trend());
|
|
486
541
|
}
|
|
542
|
+
createFleet(data) {
|
|
543
|
+
return this.http.requestVoid(CatalystEndpoint.createFleet(data));
|
|
544
|
+
}
|
|
545
|
+
fleetById(id) {
|
|
546
|
+
return this.http.request(CatalystEndpoint.fleetById(id));
|
|
547
|
+
}
|
|
548
|
+
deleteFleet(id) {
|
|
549
|
+
return this.http.requestVoid(CatalystEndpoint.deleteFleet(id));
|
|
550
|
+
}
|
|
551
|
+
viewFleet(id) {
|
|
552
|
+
return this.http.requestVoid(CatalystEndpoint.viewFleet(id));
|
|
553
|
+
}
|
|
554
|
+
fleetViewers(id) {
|
|
555
|
+
return this.http.request(CatalystEndpoint.fleetViewers(id));
|
|
556
|
+
}
|
|
557
|
+
reactFleet(id, symbol) {
|
|
558
|
+
return this.http.requestVoid(CatalystEndpoint.reactFleet(id, symbol));
|
|
559
|
+
}
|
|
560
|
+
unreactFleet(id, symbol) {
|
|
561
|
+
return this.http.requestVoid(CatalystEndpoint.unreactFleet(id, symbol));
|
|
562
|
+
}
|
|
563
|
+
fleets() {
|
|
564
|
+
return this.http.request(CatalystEndpoint.fleets());
|
|
565
|
+
}
|
|
566
|
+
fleetByUsername(username) {
|
|
567
|
+
return this.http.request(CatalystEndpoint.fleetByUsername(username));
|
|
568
|
+
}
|
|
487
569
|
};
|
|
488
570
|
|
|
489
571
|
// src/endpoints/egeriaEndpoint.ts
|
package/dist/index.mjs
CHANGED
|
@@ -304,6 +304,61 @@ var CatalystEndpoint = {
|
|
|
304
304
|
},
|
|
305
305
|
trend() {
|
|
306
306
|
return { path: "/catalyst/v1/trend", method: "GET" };
|
|
307
|
+
},
|
|
308
|
+
createFleet(data) {
|
|
309
|
+
return {
|
|
310
|
+
path: "/catalyst/v1/fleet",
|
|
311
|
+
method: "POST",
|
|
312
|
+
body: data
|
|
313
|
+
};
|
|
314
|
+
},
|
|
315
|
+
fleetById(id) {
|
|
316
|
+
return {
|
|
317
|
+
path: `/catalyst/v1/fleet/${id}`,
|
|
318
|
+
method: "GET"
|
|
319
|
+
};
|
|
320
|
+
},
|
|
321
|
+
deleteFleet(id) {
|
|
322
|
+
return {
|
|
323
|
+
path: `/catalyst/v1/fleet/${id}`,
|
|
324
|
+
method: "DELETE"
|
|
325
|
+
};
|
|
326
|
+
},
|
|
327
|
+
viewFleet(id) {
|
|
328
|
+
return {
|
|
329
|
+
path: `/catalyst/v1/fleet/${id}/view`,
|
|
330
|
+
method: "POST"
|
|
331
|
+
};
|
|
332
|
+
},
|
|
333
|
+
fleetViewers(id) {
|
|
334
|
+
return {
|
|
335
|
+
path: `/catalyst/v1/fleet/${id}/viewers`,
|
|
336
|
+
method: "GET"
|
|
337
|
+
};
|
|
338
|
+
},
|
|
339
|
+
reactFleet(id, symbol) {
|
|
340
|
+
return {
|
|
341
|
+
path: `/catalyst/v1/fleet/${id}/reactions/${symbol}`,
|
|
342
|
+
method: "POST"
|
|
343
|
+
};
|
|
344
|
+
},
|
|
345
|
+
unreactFleet(id, symbol) {
|
|
346
|
+
return {
|
|
347
|
+
path: `/catalyst/v1/fleet/${id}/reactions/${symbol}`,
|
|
348
|
+
method: "DELETE"
|
|
349
|
+
};
|
|
350
|
+
},
|
|
351
|
+
fleets() {
|
|
352
|
+
return {
|
|
353
|
+
path: "/catalyst/v1/fleet/ring",
|
|
354
|
+
method: "GET"
|
|
355
|
+
};
|
|
356
|
+
},
|
|
357
|
+
fleetByUsername(username) {
|
|
358
|
+
return {
|
|
359
|
+
path: `/catalyst/v1/fleet/by/user/${username}`,
|
|
360
|
+
method: "GET"
|
|
361
|
+
};
|
|
307
362
|
}
|
|
308
363
|
};
|
|
309
364
|
|
|
@@ -435,6 +490,33 @@ var CatalystClient = class {
|
|
|
435
490
|
trend() {
|
|
436
491
|
return this.http.request(CatalystEndpoint.trend());
|
|
437
492
|
}
|
|
493
|
+
createFleet(data) {
|
|
494
|
+
return this.http.requestVoid(CatalystEndpoint.createFleet(data));
|
|
495
|
+
}
|
|
496
|
+
fleetById(id) {
|
|
497
|
+
return this.http.request(CatalystEndpoint.fleetById(id));
|
|
498
|
+
}
|
|
499
|
+
deleteFleet(id) {
|
|
500
|
+
return this.http.requestVoid(CatalystEndpoint.deleteFleet(id));
|
|
501
|
+
}
|
|
502
|
+
viewFleet(id) {
|
|
503
|
+
return this.http.requestVoid(CatalystEndpoint.viewFleet(id));
|
|
504
|
+
}
|
|
505
|
+
fleetViewers(id) {
|
|
506
|
+
return this.http.request(CatalystEndpoint.fleetViewers(id));
|
|
507
|
+
}
|
|
508
|
+
reactFleet(id, symbol) {
|
|
509
|
+
return this.http.requestVoid(CatalystEndpoint.reactFleet(id, symbol));
|
|
510
|
+
}
|
|
511
|
+
unreactFleet(id, symbol) {
|
|
512
|
+
return this.http.requestVoid(CatalystEndpoint.unreactFleet(id, symbol));
|
|
513
|
+
}
|
|
514
|
+
fleets() {
|
|
515
|
+
return this.http.request(CatalystEndpoint.fleets());
|
|
516
|
+
}
|
|
517
|
+
fleetByUsername(username) {
|
|
518
|
+
return this.http.request(CatalystEndpoint.fleetByUsername(username));
|
|
519
|
+
}
|
|
438
520
|
};
|
|
439
521
|
|
|
440
522
|
// src/endpoints/egeriaEndpoint.ts
|
package/package.json
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@natsuneko-laboratory/catalyst-sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "TypeScript/JavaScript SDK for the Natsuneko Laboratory platform",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"module": "./dist/index.mjs",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.js",
|
|
12
|
-
"types": "./dist/index.d.ts"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
17
|
-
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
18
|
-
"test": "vitest run",
|
|
19
|
-
"lint": "tsc --noEmit"
|
|
20
|
-
},
|
|
21
|
-
"files": [
|
|
22
|
-
"dist"
|
|
23
|
-
],
|
|
24
|
-
"keywords": [
|
|
25
|
-
"catalyst",
|
|
26
|
-
"sdk",
|
|
27
|
-
"api"
|
|
28
|
-
],
|
|
29
|
-
"license": "MIT",
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@types/node": "^22.0.0",
|
|
32
|
-
"tsup": "^8.0.0",
|
|
33
|
-
"typescript": "^5.0.0",
|
|
34
|
-
"vitest": "^2.0.0"
|
|
35
|
-
},
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"js-sha256": "^0.11.1"
|
|
38
|
-
},
|
|
39
|
-
"publishConfig": {
|
|
40
|
-
"access": "public"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@natsuneko-laboratory/catalyst-sdk",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "TypeScript/JavaScript SDK for the Natsuneko Laboratory platform",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
17
|
+
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
18
|
+
"test": "vitest run",
|
|
19
|
+
"lint": "tsc --noEmit"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"keywords": [
|
|
25
|
+
"catalyst",
|
|
26
|
+
"sdk",
|
|
27
|
+
"api"
|
|
28
|
+
],
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/node": "^22.0.0",
|
|
32
|
+
"tsup": "^8.0.0",
|
|
33
|
+
"typescript": "^5.0.0",
|
|
34
|
+
"vitest": "^2.0.0"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"js-sha256": "^0.11.1"
|
|
38
|
+
},
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public"
|
|
41
|
+
}
|
|
42
|
+
}
|