@nxtl/nxtl-types 0.1.11 → 0.1.12

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,651 @@
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 } 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
+ * User Journey definition
161
+ */
162
+ export interface PluginUserJourney {
163
+ /** Unique journey name (e.g., 'enterprise-demo', 'first-time-visitor') */
164
+ name: string;
165
+ /** Description of the user scenario for vector search context */
166
+ description: string;
167
+ /** Tone of voice for content presentation */
168
+ toneofvoice?: string;
169
+ /** NXTL project ID - required when syncing to API */
170
+ projectid?: string;
171
+ /** Sanity internal key - required for array items, not sent to API */
172
+ _key?: string;
173
+ }
174
+ /**
175
+ * Sync user journeys request
176
+ */
177
+ export interface PluginSyncUserJourneysRequest {
178
+ /** Array of user journeys to sync */
179
+ userJourneys: PluginUserJourney[];
180
+ }
181
+ /**
182
+ * Sync user journeys response
183
+ */
184
+ export interface PluginSyncUserJourneysResponse {
185
+ /** Success status */
186
+ success: boolean;
187
+ /** Number of journeys synced */
188
+ count: number;
189
+ /** Sync timestamp */
190
+ syncedAt: string;
191
+ /** Optional message */
192
+ message?: string;
193
+ }
194
+ /**
195
+ * Get all user journeys response
196
+ * API returns array directly, not wrapped in object
197
+ */
198
+ export type PluginGetUserJourneysResponse = PluginUserJourney[];
199
+ /**
200
+ * Generic API error response
201
+ */
202
+ export interface PluginAPIErrorResponse {
203
+ /** Error indicator */
204
+ success: false;
205
+ /** Error message */
206
+ message: string;
207
+ /** Error code */
208
+ code?: string;
209
+ /** Additional error details */
210
+ details?: unknown;
211
+ /** Retry after (for rate limiting) */
212
+ retryAfter?: number;
213
+ }
214
+ /**
215
+ * Entry from NXTL API retrieveEntries endpoint
216
+ */
217
+ export interface PluginNxtlEntry {
218
+ /** Entry ID */
219
+ id: string | number;
220
+ /** Additional entry data returned by API */
221
+ [key: string]: unknown;
222
+ }
223
+ /**
224
+ * Reranked entry from reranking endpoint with relevance score
225
+ */
226
+ export interface PluginRerankedEntry {
227
+ /** Entry ID */
228
+ id: string | number;
229
+ /** Relevance score (higher = more relevant) */
230
+ score?: number;
231
+ /** Additional entry data */
232
+ [key: string]: unknown;
233
+ }
234
+ /**
235
+ * Response from /reranking endpoint
236
+ */
237
+ export interface PluginRerankingResponse {
238
+ /** Filtered and reranked entries */
239
+ filtered_entries: PluginRerankedEntry[];
240
+ /** Additional response data */
241
+ [key: string]: unknown;
242
+ }
243
+ /**
244
+ * Options for fetching and reranking sources
245
+ */
246
+ export interface PluginFetchSourcesOptions {
247
+ /** User journey query/description */
248
+ query: string | string[];
249
+ /** Type of content to retrieve (e.g., 'article', 'lawyer') */
250
+ dataSource?: string;
251
+ /** Number of results to return (default: 3) */
252
+ limit?: number;
253
+ }
254
+ /**
255
+ * Content query parameters from dreamcatcher
256
+ */
257
+ export interface PluginBridgeContentQuery {
258
+ /** Content type/schema (e.g., 'article', 'page') */
259
+ type?: string;
260
+ /** Document ID */
261
+ id?: string;
262
+ /** Slug/path */
263
+ slug?: string;
264
+ /** Additional query filters */
265
+ filters?: Record<string, unknown>;
266
+ }
267
+ /**
268
+ * Transformation request body from dreamcatcher
269
+ */
270
+ export interface PluginBridgeTransformationRequest {
271
+ /** Content to transform */
272
+ content: unknown;
273
+ /** Campaign identifier */
274
+ campaign?: string | null;
275
+ /** Content type (for context) */
276
+ contentType?: string;
277
+ /** Transformation options */
278
+ options?: {
279
+ /** Preserve original structure */
280
+ preserveStructure?: boolean;
281
+ /** Include transformation metadata */
282
+ includeMetadata?: boolean;
283
+ };
284
+ }
285
+ /**
286
+ * Conversation request body from dreamcatcher
287
+ */
288
+ export interface PluginBridgeConversationRequest {
289
+ /** User message */
290
+ message: string;
291
+ /** Conversation history */
292
+ history?: Array<{
293
+ role: "user" | "assistant";
294
+ content: string;
295
+ }>;
296
+ /** Context for conversation */
297
+ context?: {
298
+ /** Campaign identifier */
299
+ campaign?: string | null;
300
+ /** Current content being viewed */
301
+ content?: unknown;
302
+ /** User journey ID */
303
+ journeyId?: string;
304
+ };
305
+ }
306
+ /**
307
+ * Conversation response from NXTL backend
308
+ */
309
+ export interface PluginBridgeConversationResponse {
310
+ /** Assistant's response */
311
+ message: string;
312
+ /** Updated conversation history */
313
+ history?: Array<{
314
+ role: "user" | "assistant";
315
+ content: string;
316
+ }>;
317
+ /** Additional metadata */
318
+ metadata?: Record<string, unknown>;
319
+ }
320
+ /**
321
+ * Transposition request body from dreamcatcher
322
+ */
323
+ export interface PluginBridgeTranspositionRequest {
324
+ /** Signal type (e.g., 'engagement', 'conversion') */
325
+ signalType: string;
326
+ /** Signal data */
327
+ data: Record<string, unknown>;
328
+ /** Campaign identifier */
329
+ campaign?: string | null;
330
+ /** User journey ID */
331
+ journeyId?: string;
332
+ }
333
+ /**
334
+ * Transposition response from NXTL backend
335
+ */
336
+ export interface PluginBridgeTranspositionResponse {
337
+ /** Processing status */
338
+ status: "success" | "error";
339
+ /** Response data */
340
+ data?: unknown;
341
+ /** Error message if status is 'error' */
342
+ error?: string;
343
+ }
344
+ /**
345
+ * CRUD entries request for fetching content list
346
+ */
347
+ export interface PluginBridgeEntriesRequest {
348
+ /** Content type to fetch */
349
+ type: string;
350
+ /** Filters to apply */
351
+ filters?: Record<string, unknown>;
352
+ /** Sorting options */
353
+ sort?: {
354
+ field: string;
355
+ order: "asc" | "desc";
356
+ };
357
+ /** Pagination */
358
+ pagination?: {
359
+ limit: number;
360
+ offset: number;
361
+ };
362
+ }
363
+ /**
364
+ * User journey metadata
365
+ */
366
+ export interface PluginBridgeUserJourney {
367
+ /** Journey ID */
368
+ id: string;
369
+ /** Journey name */
370
+ name: string;
371
+ /** Journey description */
372
+ description?: string;
373
+ /** Campaign associations */
374
+ campaigns?: string[];
375
+ /** Creation timestamp */
376
+ createdAt: string;
377
+ /** Last updated timestamp */
378
+ updatedAt: string;
379
+ }
380
+ /**
381
+ * Matrix configuration metadata
382
+ */
383
+ export interface PluginBridgeMatrixConfig {
384
+ /** Matrix ID */
385
+ id: string;
386
+ /** Matrix name */
387
+ name: string;
388
+ /** Matrix description */
389
+ description?: string;
390
+ /** Matrix dimensions */
391
+ dimensions?: string[];
392
+ /** Associated campaigns */
393
+ campaigns?: string[];
394
+ /** Creation timestamp */
395
+ createdAt: string;
396
+ /** Last updated timestamp */
397
+ updatedAt: string;
398
+ }
399
+ /**
400
+ * Standard API error response
401
+ */
402
+ export interface PluginBridgeApiErrorResponse {
403
+ /** Error flag */
404
+ error: true;
405
+ /** Error message */
406
+ message: string;
407
+ /** Error code (optional) */
408
+ code?: string;
409
+ /** Status code */
410
+ statusCode: number;
411
+ /** Additional error details */
412
+ details?: unknown;
413
+ }
414
+ /**
415
+ * Standard API success response
416
+ */
417
+ export interface PluginBridgeApiSuccessResponse<T = unknown> {
418
+ /** Success flag */
419
+ success: true;
420
+ /** Response data */
421
+ data: T;
422
+ /** Response metadata */
423
+ metadata?: {
424
+ /** Request timestamp */
425
+ timestamp?: string;
426
+ /** Campaign used (if any) */
427
+ campaign?: string | null;
428
+ /** Processing time in ms */
429
+ processingTime?: number;
430
+ };
431
+ }
432
+ /**
433
+ * Generic API response (success or error)
434
+ */
435
+ export type PluginBridgeApiResponse<T = unknown> = PluginBridgeApiSuccessResponse<T> | PluginBridgeApiErrorResponse;
436
+ /**
437
+ * Content Renderer Types
438
+ *
439
+ * CMS-agnostic interfaces for rendering content with optional transformations.
440
+ * Used by framework integrations to remain platform-agnostic.
441
+ *
442
+ * @packageDocumentation
443
+ */
444
+ /**
445
+ * Content block structure (framework-agnostic)
446
+ */
447
+ export interface PluginContentBlock {
448
+ /** Unique key for the block */
449
+ key: string;
450
+ /** Block type (e.g., 'block') */
451
+ type: string;
452
+ /** Block style (e.g., 'normal', 'h1', 'h2') */
453
+ style: string;
454
+ /** Text content */
455
+ text: string;
456
+ /** NXTL reference ID (if applicable) */
457
+ nxtlRef?: string;
458
+ }
459
+ /**
460
+ * Rendered content result
461
+ */
462
+ export interface PluginRenderedContent {
463
+ /** Content blocks (framework-agnostic) */
464
+ content: PluginContentBlock[];
465
+ /** Metadata about the content */
466
+ metadata?: {
467
+ /** Content title */
468
+ title?: string;
469
+ /** Content type */
470
+ type?: string;
471
+ /** Document ID */
472
+ id?: string;
473
+ /** Any additional metadata */
474
+ [key: string]: unknown;
475
+ };
476
+ }
477
+ /**
478
+ * Matrix Provider Types
479
+ *
480
+ * CMS-agnostic interfaces for matrix content discovery and retrieval.
481
+ * Used by framework integrations (Next.js, Nuxt, etc.) to remain platform-agnostic.
482
+ *
483
+ * @packageDocumentation
484
+ */
485
+ /**
486
+ * Matrix content structure from CMS
487
+ *
488
+ * Represents the content blocks that will be transformed.
489
+ * The structure is CMS-agnostic - implementations map their CMS structure to this format.
490
+ */
491
+ export interface PluginMatrixContent {
492
+ /** Content blocks array */
493
+ content: any[];
494
+ /** Additional metadata from CMS (optional) */
495
+ metadata?: Record<string, unknown>;
496
+ }
497
+ /**
498
+ * Result from NXTL transformation request
499
+ */
500
+ export interface PluginTransformationResult {
501
+ /** Transformations by stable ref */
502
+ transformations: Record<string, string>;
503
+ /** Additional metadata from NXTL */
504
+ metadata?: Record<string, unknown>;
505
+ }
506
+ /**
507
+ * Individual health check result
508
+ */
509
+ export interface PluginHealthCheckResult {
510
+ name: string;
511
+ status: "ok" | "error";
512
+ message?: string;
513
+ }
514
+ /**
515
+ * Overall health status
516
+ */
517
+ export type PluginHealthStatus = "ok" | "degraded" | "error";
518
+ /**
519
+ * Health check response
520
+ */
521
+ export interface PluginHealthCheckResponse {
522
+ status: PluginHealthStatus;
523
+ timestamp: string;
524
+ uptime?: number;
525
+ version?: string;
526
+ checks?: PluginHealthCheckResult[];
527
+ }
528
+ export interface PluginRegistrationResponse {
529
+ success: boolean;
530
+ serverId?: string;
531
+ message?: string;
532
+ tokenRotated?: boolean;
533
+ error?: string;
534
+ }
535
+ /**
536
+ * Sync provider types for pluggable batch sync architecture
537
+ *
538
+ * @packageDocumentation
539
+ */
540
+ /**
541
+ * Options for triggering a batch sync operation
542
+ */
543
+ export interface PluginBatchSyncOptions {
544
+ /**
545
+ * Sanity dataset to sync from (e.g., 'production', 'staging')
546
+ */
547
+ dataset: string;
548
+ /**
549
+ * Optional document types to sync (e.g., ['article', 'lawyer'])
550
+ * If not specified, all configured types will be synced
551
+ */
552
+ types?: string[];
553
+ /**
554
+ * Force re-sync of all documents, even if they haven't changed
555
+ * @default false
556
+ */
557
+ forceSync?: boolean;
558
+ /**
559
+ * Page size for batch processing
560
+ * @default 100
561
+ */
562
+ pageSize?: number;
563
+ }
564
+ /**
565
+ * Status of a sync operation
566
+ */
567
+ export type PluginSyncStatus = "pending" | "running" | "completed" | "failed";
568
+ /**
569
+ * Result returned when triggering a batch sync
570
+ */
571
+ export interface PluginSyncResult {
572
+ /**
573
+ * Unique identifier for this sync job
574
+ */
575
+ jobId: string;
576
+ /**
577
+ * Current status of the sync operation
578
+ */
579
+ status: PluginSyncStatus;
580
+ /**
581
+ * Number of documents successfully synced (if completed immediately)
582
+ */
583
+ synced?: number;
584
+ /**
585
+ * Number of documents that failed to sync (if completed immediately)
586
+ */
587
+ failed?: number;
588
+ /**
589
+ * Error details if sync failed
590
+ */
591
+ errors?: Error[];
592
+ /**
593
+ * Human-readable message about the sync operation
594
+ */
595
+ message?: string;
596
+ }
597
+ /**
598
+ * Progress information for a sync operation
599
+ */
600
+ export interface PluginSyncProgress {
601
+ /**
602
+ * Total number of documents to sync
603
+ */
604
+ total: number;
605
+ /**
606
+ * Number of documents successfully synced
607
+ */
608
+ completed: number;
609
+ /**
610
+ * Number of documents that failed to sync
611
+ */
612
+ failed: number;
613
+ /**
614
+ * Current document being processed (optional)
615
+ */
616
+ current?: string;
617
+ }
618
+ /**
619
+ * Detailed status of a sync operation
620
+ */
621
+ export interface PluginSyncStatusDetail {
622
+ /**
623
+ * Unique identifier for this sync job
624
+ */
625
+ jobId: string;
626
+ /**
627
+ * Current status of the sync operation
628
+ */
629
+ status: PluginSyncStatus;
630
+ /**
631
+ * Progress information (if available)
632
+ */
633
+ progress?: PluginSyncProgress;
634
+ /**
635
+ * When the sync operation started
636
+ */
637
+ startedAt?: Date;
638
+ /**
639
+ * When the sync operation completed or failed
640
+ */
641
+ completedAt?: Date;
642
+ /**
643
+ * Error details if sync failed
644
+ */
645
+ error?: Error;
646
+ /**
647
+ * Human-readable message about the sync operation
648
+ */
649
+ message?: string;
650
+ }
651
+ //# 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,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElE,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;IAE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IAEpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,gBAAgB,CAAC;IAEzB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,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.1.12",
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"