@nxtl/nxtl-types 0.1.11 → 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.
@@ -0,0 +1,634 @@
1
+ /**
2
+ * Platform-neutral NXTL plugin contracts.
3
+ *
4
+ * These adapter payloads preserve the public plugin APIs, including legacy
5
+ * response formats. They are separate from the current NXTL endpoint contracts
6
+ * exported by index.ts and must not be substituted for current wire contracts.
7
+ * Sync status models also represent the in-process plugin domain; their Dates
8
+ * and Errors are serialized by the framework when sent over HTTP.
9
+ */
10
+ import type { EntrySyncInput, MessageResponse, UserJourneyRecord } from "./index.js";
11
+ /** CMS content accepted by the plugin adapter before normalization to EntrySyncInput. */
12
+ export interface PluginContentPayload extends Omit<EntrySyncInput, "content"> {
13
+ slug?: string;
14
+ content: unknown;
15
+ metadata?: Record<string, unknown>;
16
+ publishedAt?: string;
17
+ updatedAt?: string;
18
+ language?: string;
19
+ tags?: string[];
20
+ nxtlRef?: string;
21
+ }
22
+ export type PluginSyncResponse = MessageResponse;
23
+ /**
24
+ * Transformation request
25
+ */
26
+ export interface PluginTransformRequest {
27
+ /** Content to transform */
28
+ content: unknown;
29
+ /** Source format (e.g., 'portable-text', 'html', 'markdown') */
30
+ sourceFormat: string;
31
+ /** Target format (e.g., 'html', 'markdown', 'plain-text') */
32
+ targetFormat: string;
33
+ /** Episode identifier to associate with the transformation */
34
+ episode?: string;
35
+ /** Transformation options */
36
+ options?: {
37
+ /** Include NXTL references in output */
38
+ includeNxtlRefs?: boolean;
39
+ /** Preserve semantic structure */
40
+ preserveSemantics?: boolean;
41
+ /** Custom transformations */
42
+ customRules?: Record<string, unknown>;
43
+ };
44
+ }
45
+ /**
46
+ * Transformation response
47
+ */
48
+ export interface PluginTransformResponse {
49
+ /** Success status */
50
+ success: boolean;
51
+ /** Transformed content */
52
+ content: unknown;
53
+ /** Output format */
54
+ format: string;
55
+ /** Transformation metadata */
56
+ metadata?: {
57
+ /** Processing time in ms */
58
+ processingTime?: number;
59
+ /** Number of elements processed */
60
+ elementsProcessed?: number;
61
+ /** Warnings or notices */
62
+ warnings?: string[];
63
+ };
64
+ }
65
+ /**
66
+ * Matrix sync request
67
+ *
68
+ * Syncs a document as a reusable content template (matrix) to the NXTL API.
69
+ * Matrices are special content pieces that can be applied to other content
70
+ * programmatically.
71
+ */
72
+ export interface PluginMatrixSyncRequest {
73
+ /** Content path/URL (e.g., '/articles/my-template') */
74
+ path: string;
75
+ /** Content structure with stable refs (HTML string or Portable Text) */
76
+ structure: string | unknown;
77
+ /** Optional content ID for reference */
78
+ contentId?: string;
79
+ }
80
+ export type PluginMatrixSyncResponse = MessageResponse;
81
+ /**
82
+ * User journey lookup response
83
+ */
84
+ export interface PluginUserJourneyResponse {
85
+ /** Success status */
86
+ success: boolean;
87
+ /** Campaign identifier */
88
+ campaign: string;
89
+ /** Journey stages */
90
+ stages: Array<{
91
+ /** Stage name */
92
+ name: string;
93
+ /** Stage order */
94
+ order: number;
95
+ /** Recommended content for this stage */
96
+ content: Array<{
97
+ /** Content ID */
98
+ id: string;
99
+ /** Content type */
100
+ type: string;
101
+ /** Content title */
102
+ title: string;
103
+ /** Relevance score */
104
+ relevance: number;
105
+ }>;
106
+ }>;
107
+ /** Journey metadata */
108
+ metadata?: {
109
+ /** Total journey length */
110
+ totalStages?: number;
111
+ /** Estimated duration */
112
+ estimatedDuration?: string;
113
+ };
114
+ }
115
+ /**
116
+ * Vector search request
117
+ */
118
+ export interface PluginVectorSearchRequest {
119
+ /** Content to search for similar items */
120
+ content: string;
121
+ /** Maximum number of results */
122
+ topK?: number;
123
+ /** Minimum similarity threshold (0-1) */
124
+ minSimilarity?: number;
125
+ /** Filter by content types */
126
+ contentTypes?: string[];
127
+ /** Filter by tags */
128
+ tags?: string[];
129
+ }
130
+ /**
131
+ * Vector search response
132
+ */
133
+ export interface PluginVectorSearchResponse {
134
+ /** Success status */
135
+ success: boolean;
136
+ /** Search results */
137
+ results: Array<{
138
+ /** Content ID */
139
+ id: string;
140
+ /** Content type */
141
+ type: string;
142
+ /** Content title */
143
+ title: string;
144
+ /** Similarity score (0-1) */
145
+ similarity: number;
146
+ /** Content excerpt */
147
+ excerpt?: string;
148
+ }>;
149
+ /** Search metadata */
150
+ metadata?: {
151
+ /** Processing time in ms */
152
+ processingTime?: number;
153
+ /** Total matches found */
154
+ totalMatches?: number;
155
+ /** Model used for search */
156
+ model?: string;
157
+ };
158
+ }
159
+ /**
160
+ * Core journey with optional CMS metadata and legacy input aliases.
161
+ */
162
+ export interface PluginUserJourney extends UserJourneyRecord {
163
+ /** @deprecated Normalize legacy CMS inputs to toneOfVoice before syncing. */
164
+ toneofvoice?: string | null;
165
+ /** @deprecated Scope API requests using organizationId/projectId. */
166
+ projectid?: string | null;
167
+ /** Sanity internal key - required for array items, not sent to API */
168
+ _key?: string;
169
+ }
170
+ /**
171
+ * Sync user journeys request
172
+ */
173
+ export interface PluginSyncUserJourneysRequest {
174
+ /** Array of user journeys to sync */
175
+ userJourneys: PluginUserJourney[];
176
+ }
177
+ /**
178
+ * Sync user journeys response
179
+ */
180
+ export type PluginSyncUserJourneysResponse = MessageResponse;
181
+ /**
182
+ * Get all user journeys response
183
+ * API returns array directly, not wrapped in object
184
+ */
185
+ export type PluginGetUserJourneysResponse = PluginUserJourney[];
186
+ /**
187
+ * Generic API error response
188
+ */
189
+ export interface PluginAPIErrorResponse {
190
+ /** Error indicator */
191
+ success: false;
192
+ /** Error message */
193
+ message: string;
194
+ /** Error code */
195
+ code?: string;
196
+ /** Additional error details */
197
+ details?: unknown;
198
+ /** Retry after (for rate limiting) */
199
+ retryAfter?: number;
200
+ }
201
+ /**
202
+ * Entry from NXTL API retrieveEntries endpoint
203
+ */
204
+ export interface PluginNxtlEntry {
205
+ /** Entry ID */
206
+ id: string | number;
207
+ /** Additional entry data returned by API */
208
+ [key: string]: unknown;
209
+ }
210
+ /**
211
+ * Reranked entry from reranking endpoint with relevance score
212
+ */
213
+ export interface PluginRerankedEntry {
214
+ /** Entry ID */
215
+ id: string | number;
216
+ /** Relevance score (higher = more relevant) */
217
+ score?: number;
218
+ /** Additional entry data */
219
+ [key: string]: unknown;
220
+ }
221
+ /**
222
+ * Response from /reranking endpoint
223
+ */
224
+ export interface PluginRerankingResponse {
225
+ /** Filtered and reranked entries */
226
+ filtered_entries: PluginRerankedEntry[];
227
+ /** Additional response data */
228
+ [key: string]: unknown;
229
+ }
230
+ /**
231
+ * Options for fetching and reranking sources
232
+ */
233
+ export interface PluginFetchSourcesOptions {
234
+ /** User journey query/description */
235
+ query: string | string[];
236
+ /** Type of content to retrieve (e.g., 'article', 'lawyer') */
237
+ dataSource?: string;
238
+ /** Number of results to return (default: 3) */
239
+ limit?: number;
240
+ }
241
+ /**
242
+ * Content query parameters from dreamcatcher
243
+ */
244
+ export interface PluginBridgeContentQuery {
245
+ /** Content type/schema (e.g., 'article', 'page') */
246
+ type?: string;
247
+ /** Document ID */
248
+ id?: string;
249
+ /** Slug/path */
250
+ slug?: string;
251
+ /** Additional query filters */
252
+ filters?: Record<string, unknown>;
253
+ }
254
+ /**
255
+ * Transformation request body from dreamcatcher
256
+ */
257
+ export interface PluginBridgeTransformationRequest {
258
+ /** Content to transform */
259
+ content: unknown;
260
+ /** Campaign identifier */
261
+ campaign?: string | null;
262
+ /** Content type (for context) */
263
+ contentType?: string;
264
+ /** Transformation options */
265
+ options?: {
266
+ /** Preserve original structure */
267
+ preserveStructure?: boolean;
268
+ /** Include transformation metadata */
269
+ includeMetadata?: boolean;
270
+ };
271
+ }
272
+ /**
273
+ * Conversation request body from dreamcatcher
274
+ */
275
+ export interface PluginBridgeConversationRequest {
276
+ /** User message */
277
+ message: string;
278
+ /** Conversation history */
279
+ history?: Array<{
280
+ role: "user" | "assistant";
281
+ content: string;
282
+ }>;
283
+ /** Context for conversation */
284
+ context?: {
285
+ /** Campaign identifier */
286
+ campaign?: string | null;
287
+ /** Current content being viewed */
288
+ content?: unknown;
289
+ /** User journey ID */
290
+ journeyId?: string;
291
+ };
292
+ }
293
+ /**
294
+ * Conversation response from NXTL backend
295
+ */
296
+ export interface PluginBridgeConversationResponse {
297
+ /** Assistant's response */
298
+ message: string;
299
+ /** Updated conversation history */
300
+ history?: Array<{
301
+ role: "user" | "assistant";
302
+ content: string;
303
+ }>;
304
+ /** Additional metadata */
305
+ metadata?: Record<string, unknown>;
306
+ }
307
+ /**
308
+ * Transposition request body from dreamcatcher
309
+ */
310
+ export interface PluginBridgeTranspositionRequest {
311
+ /** Signal type (e.g., 'engagement', 'conversion') */
312
+ signalType: string;
313
+ /** Signal data */
314
+ data: Record<string, unknown>;
315
+ /** Campaign identifier */
316
+ campaign?: string | null;
317
+ /** User journey ID */
318
+ journeyId?: string;
319
+ }
320
+ /**
321
+ * Transposition response from NXTL backend
322
+ */
323
+ export interface PluginBridgeTranspositionResponse {
324
+ /** Processing status */
325
+ status: "success" | "error";
326
+ /** Response data */
327
+ data?: unknown;
328
+ /** Error message if status is 'error' */
329
+ error?: string;
330
+ }
331
+ /**
332
+ * CRUD entries request for fetching content list
333
+ */
334
+ export interface PluginBridgeEntriesRequest {
335
+ /** Content type to fetch */
336
+ type: string;
337
+ /** Filters to apply */
338
+ filters?: Record<string, unknown>;
339
+ /** Sorting options */
340
+ sort?: {
341
+ field: string;
342
+ order: "asc" | "desc";
343
+ };
344
+ /** Pagination */
345
+ pagination?: {
346
+ limit: number;
347
+ offset: number;
348
+ };
349
+ }
350
+ /**
351
+ * User journey metadata
352
+ */
353
+ export interface PluginBridgeUserJourney extends UserJourneyRecord {
354
+ /** Optional bridge identifier; the canonical journey ID is name. */
355
+ id?: string;
356
+ /** Campaign associations */
357
+ campaigns?: string[];
358
+ /** Creation timestamp */
359
+ createdAt?: string;
360
+ /** Last updated timestamp */
361
+ updatedAt?: string;
362
+ }
363
+ /**
364
+ * Matrix configuration metadata
365
+ */
366
+ export interface PluginBridgeMatrixConfig {
367
+ /** Matrix ID */
368
+ id: string;
369
+ /** Matrix name */
370
+ name: string;
371
+ /** Matrix description */
372
+ description?: string;
373
+ /** Matrix dimensions */
374
+ dimensions?: string[];
375
+ /** Associated campaigns */
376
+ campaigns?: string[];
377
+ /** Creation timestamp */
378
+ createdAt: string;
379
+ /** Last updated timestamp */
380
+ updatedAt: string;
381
+ }
382
+ /**
383
+ * Standard API error response
384
+ */
385
+ export interface PluginBridgeApiErrorResponse {
386
+ /** Error flag */
387
+ error: true;
388
+ /** Error message */
389
+ message: string;
390
+ /** Error code (optional) */
391
+ code?: string;
392
+ /** Status code */
393
+ statusCode: number;
394
+ /** Additional error details */
395
+ details?: unknown;
396
+ }
397
+ /**
398
+ * Standard API success response
399
+ */
400
+ export interface PluginBridgeApiSuccessResponse<T = unknown> {
401
+ /** Success flag */
402
+ success: true;
403
+ /** Response data */
404
+ data: T;
405
+ /** Response metadata */
406
+ metadata?: {
407
+ /** Request timestamp */
408
+ timestamp?: string;
409
+ /** Campaign used (if any) */
410
+ campaign?: string | null;
411
+ /** Processing time in ms */
412
+ processingTime?: number;
413
+ };
414
+ }
415
+ /**
416
+ * Generic API response (success or error)
417
+ */
418
+ export type PluginBridgeApiResponse<T = unknown> = PluginBridgeApiSuccessResponse<T> | PluginBridgeApiErrorResponse;
419
+ /**
420
+ * Content Renderer Types
421
+ *
422
+ * CMS-agnostic interfaces for rendering content with optional transformations.
423
+ * Used by framework integrations to remain platform-agnostic.
424
+ *
425
+ * @packageDocumentation
426
+ */
427
+ /**
428
+ * Content block structure (framework-agnostic)
429
+ */
430
+ export interface PluginContentBlock {
431
+ /** Unique key for the block */
432
+ key: string;
433
+ /** Block type (e.g., 'block') */
434
+ type: string;
435
+ /** Block style (e.g., 'normal', 'h1', 'h2') */
436
+ style: string;
437
+ /** Text content */
438
+ text: string;
439
+ /** NXTL reference ID (if applicable) */
440
+ nxtlRef?: string;
441
+ }
442
+ /**
443
+ * Rendered content result
444
+ */
445
+ export interface PluginRenderedContent {
446
+ /** Content blocks (framework-agnostic) */
447
+ content: PluginContentBlock[];
448
+ /** Metadata about the content */
449
+ metadata?: {
450
+ /** Content title */
451
+ title?: string;
452
+ /** Content type */
453
+ type?: string;
454
+ /** Document ID */
455
+ id?: string;
456
+ /** Any additional metadata */
457
+ [key: string]: unknown;
458
+ };
459
+ }
460
+ /**
461
+ * Matrix Provider Types
462
+ *
463
+ * CMS-agnostic interfaces for matrix content discovery and retrieval.
464
+ * Used by framework integrations (Next.js, Nuxt, etc.) to remain platform-agnostic.
465
+ *
466
+ * @packageDocumentation
467
+ */
468
+ /**
469
+ * Matrix content structure from CMS
470
+ *
471
+ * Represents the content blocks that will be transformed.
472
+ * The structure is CMS-agnostic - implementations map their CMS structure to this format.
473
+ */
474
+ export interface PluginMatrixContent {
475
+ /** Content blocks array */
476
+ content: any[];
477
+ /** Additional metadata from CMS (optional) */
478
+ metadata?: Record<string, unknown>;
479
+ }
480
+ /**
481
+ * Result from NXTL transformation request
482
+ */
483
+ export interface PluginTransformationResult {
484
+ /** Transformations by stable ref */
485
+ transformations: Record<string, string>;
486
+ /** Additional metadata from NXTL */
487
+ metadata?: Record<string, unknown>;
488
+ }
489
+ /**
490
+ * Individual health check result
491
+ */
492
+ export interface PluginHealthCheckResult {
493
+ name: string;
494
+ status: "ok" | "error";
495
+ message?: string;
496
+ }
497
+ /**
498
+ * Overall health status
499
+ */
500
+ export type PluginHealthStatus = "ok" | "degraded" | "error";
501
+ /**
502
+ * Health check response
503
+ */
504
+ export interface PluginHealthCheckResponse {
505
+ status: PluginHealthStatus;
506
+ timestamp: string;
507
+ uptime?: number;
508
+ version?: string;
509
+ checks?: PluginHealthCheckResult[];
510
+ }
511
+ export interface PluginRegistrationResponse {
512
+ success: boolean;
513
+ serverId?: string;
514
+ message?: string;
515
+ tokenRotated?: boolean;
516
+ error?: string;
517
+ }
518
+ /**
519
+ * Sync provider types for pluggable batch sync architecture
520
+ *
521
+ * @packageDocumentation
522
+ */
523
+ /**
524
+ * Options for triggering a batch sync operation
525
+ */
526
+ export interface PluginBatchSyncOptions {
527
+ /**
528
+ * Sanity dataset to sync from (e.g., 'production', 'staging')
529
+ */
530
+ dataset: string;
531
+ /**
532
+ * Optional document types to sync (e.g., ['article', 'lawyer'])
533
+ * If not specified, all configured types will be synced
534
+ */
535
+ types?: string[];
536
+ /**
537
+ * Force re-sync of all documents, even if they haven't changed
538
+ * @default false
539
+ */
540
+ forceSync?: boolean;
541
+ /**
542
+ * Page size for batch processing
543
+ * @default 100
544
+ */
545
+ pageSize?: number;
546
+ }
547
+ /**
548
+ * Status of a sync operation
549
+ */
550
+ export type PluginSyncStatus = "pending" | "running" | "completed" | "failed";
551
+ /**
552
+ * Result returned when triggering a batch sync
553
+ */
554
+ export interface PluginSyncResult {
555
+ /**
556
+ * Unique identifier for this sync job
557
+ */
558
+ jobId: string;
559
+ /**
560
+ * Current status of the sync operation
561
+ */
562
+ status: PluginSyncStatus;
563
+ /**
564
+ * Number of documents successfully synced (if completed immediately)
565
+ */
566
+ synced?: number;
567
+ /**
568
+ * Number of documents that failed to sync (if completed immediately)
569
+ */
570
+ failed?: number;
571
+ /**
572
+ * Error details if sync failed
573
+ */
574
+ errors?: Error[];
575
+ /**
576
+ * Human-readable message about the sync operation
577
+ */
578
+ message?: string;
579
+ }
580
+ /**
581
+ * Progress information for a sync operation
582
+ */
583
+ export interface PluginSyncProgress {
584
+ /**
585
+ * Total number of documents to sync
586
+ */
587
+ total: number;
588
+ /**
589
+ * Number of documents successfully synced
590
+ */
591
+ completed: number;
592
+ /**
593
+ * Number of documents that failed to sync
594
+ */
595
+ failed: number;
596
+ /**
597
+ * Current document being processed (optional)
598
+ */
599
+ current?: string;
600
+ }
601
+ /**
602
+ * Detailed status of a sync operation
603
+ */
604
+ export interface PluginSyncStatusDetail {
605
+ /**
606
+ * Unique identifier for this sync job
607
+ */
608
+ jobId: string;
609
+ /**
610
+ * Current status of the sync operation
611
+ */
612
+ status: PluginSyncStatus;
613
+ /**
614
+ * Progress information (if available)
615
+ */
616
+ progress?: PluginSyncProgress;
617
+ /**
618
+ * When the sync operation started
619
+ */
620
+ startedAt?: Date;
621
+ /**
622
+ * When the sync operation completed or failed
623
+ */
624
+ completedAt?: Date;
625
+ /**
626
+ * Error details if sync failed
627
+ */
628
+ error?: Error;
629
+ /**
630
+ * Human-readable message about the sync operation
631
+ */
632
+ message?: string;
633
+ }
634
+ //# sourceMappingURL=plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EACR,cAAc,EACd,eAAe,EACf,iBAAiB,EACpB,MAAM,YAAY,CAAC;AAEpB,yFAAyF;AACzF,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC;IACzE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,2BAA2B;IAC3B,OAAO,EAAE,OAAO,CAAC;IAEjB,gEAAgE;IAChE,YAAY,EAAE,MAAM,CAAC;IAErB,6DAA6D;IAC7D,YAAY,EAAE,MAAM,CAAC;IAErB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,6BAA6B;IAC7B,OAAO,CAAC,EAAE;QACN,wCAAwC;QACxC,eAAe,CAAC,EAAE,OAAO,CAAC;QAE1B,kCAAkC;QAClC,iBAAiB,CAAC,EAAE,OAAO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,EAAE,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,gBAAgB,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAE9B;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=plugins.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,16 +1,24 @@
1
1
  {
2
2
  "name": "@nxtl/nxtl-types",
3
- "version": "0.1.11",
3
+ "version": "0.2.0",
4
4
  "description": "TypeScript contracts for all NXTL API endpoints.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ }
13
+ },
8
14
  "files": [
9
15
  "dist"
10
16
  ],
11
17
  "scripts": {
12
18
  "build": "tsc -p tsconfig.json",
13
- "typecheck": "tsc --noEmit -p tsconfig.json"
19
+ "typecheck": "tsc --noEmit -p tsconfig.json",
20
+ "test": "npm run build && tsc -p tests/tsconfig.json",
21
+ "prepack": "npm run build"
14
22
  },
15
23
  "devDependencies": {
16
24
  "typescript": "^5.9.3"