@seenn/types 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.
- package/README.md +81 -0
- package/dist/index.d.mts +416 -0
- package/dist/index.d.ts +416 -0
- package/dist/index.js +46 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +19 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +39 -0
- package/src/index.ts +525 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @seenn/types - Shared TypeScript types for Seenn SDKs
|
|
3
|
+
*
|
|
4
|
+
* This package is the single source of truth for all Seenn type definitions.
|
|
5
|
+
* All SDK packages (react-native, node, flutter) should depend on this package.
|
|
6
|
+
*
|
|
7
|
+
* @version 0.1.0
|
|
8
|
+
* @license MIT
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Job status values
|
|
12
|
+
*/
|
|
13
|
+
type JobStatus = 'pending' | 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
14
|
+
/**
|
|
15
|
+
* How parent job progress is calculated from children
|
|
16
|
+
*/
|
|
17
|
+
type ChildProgressMode = 'average' | 'weighted' | 'sequential';
|
|
18
|
+
/**
|
|
19
|
+
* Main job object returned by API and SSE
|
|
20
|
+
*/
|
|
21
|
+
interface SeennJob {
|
|
22
|
+
/** Unique job identifier (ULID format) */
|
|
23
|
+
jobId: string;
|
|
24
|
+
/** User who owns this job */
|
|
25
|
+
userId: string;
|
|
26
|
+
/** Application ID */
|
|
27
|
+
appId: string;
|
|
28
|
+
/** Current job status */
|
|
29
|
+
status: JobStatus;
|
|
30
|
+
/** Human-readable job title */
|
|
31
|
+
title: string;
|
|
32
|
+
/** Job type for categorization */
|
|
33
|
+
jobType: string;
|
|
34
|
+
/** Workflow ID for ETA tracking (default: jobType) */
|
|
35
|
+
workflowId?: string;
|
|
36
|
+
/** Progress percentage (0-100) */
|
|
37
|
+
progress: number;
|
|
38
|
+
/** Current status message */
|
|
39
|
+
message?: string;
|
|
40
|
+
/** Stage information for multi-step jobs */
|
|
41
|
+
stage?: StageInfo;
|
|
42
|
+
/** Estimated completion timestamp (ISO 8601) */
|
|
43
|
+
estimatedCompletionAt?: string;
|
|
44
|
+
/** ETA confidence score (0.0 - 1.0) */
|
|
45
|
+
etaConfidence?: number;
|
|
46
|
+
/** Number of historical jobs used to calculate ETA */
|
|
47
|
+
etaBasedOn?: number;
|
|
48
|
+
/** Queue position info */
|
|
49
|
+
queue?: QueueInfo;
|
|
50
|
+
/** Job result on completion */
|
|
51
|
+
result?: JobResult;
|
|
52
|
+
/** Error details on failure */
|
|
53
|
+
error?: JobError;
|
|
54
|
+
/** Custom metadata */
|
|
55
|
+
metadata?: Record<string, unknown>;
|
|
56
|
+
/** Parent info (if this is a child job) */
|
|
57
|
+
parent?: ParentInfo;
|
|
58
|
+
/** Children stats (if this is a parent job) */
|
|
59
|
+
children?: ChildrenStats;
|
|
60
|
+
/** Progress calculation mode for parent jobs */
|
|
61
|
+
childProgressMode?: ChildProgressMode;
|
|
62
|
+
/** Job creation timestamp (ISO 8601) */
|
|
63
|
+
createdAt: string;
|
|
64
|
+
/** Last update timestamp (ISO 8601) */
|
|
65
|
+
updatedAt: string;
|
|
66
|
+
/** When the job started running (ISO 8601) */
|
|
67
|
+
startedAt?: string;
|
|
68
|
+
/** Job completion timestamp (ISO 8601) */
|
|
69
|
+
completedAt?: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Stage information for multi-step jobs
|
|
73
|
+
*/
|
|
74
|
+
interface StageInfo {
|
|
75
|
+
/** Current stage name */
|
|
76
|
+
name: string;
|
|
77
|
+
/** Current stage index (1-based) */
|
|
78
|
+
current: number;
|
|
79
|
+
/** Total number of stages */
|
|
80
|
+
total: number;
|
|
81
|
+
/** Optional stage description */
|
|
82
|
+
description?: string;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Queue position information
|
|
86
|
+
*/
|
|
87
|
+
interface QueueInfo {
|
|
88
|
+
/** Position in queue (1-based) */
|
|
89
|
+
position: number;
|
|
90
|
+
/** Total items in queue */
|
|
91
|
+
total?: number;
|
|
92
|
+
/** Queue name/identifier */
|
|
93
|
+
queueName?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Job result on successful completion
|
|
97
|
+
*/
|
|
98
|
+
interface JobResult {
|
|
99
|
+
/** Result type (e.g., 'video', 'image', 'file') */
|
|
100
|
+
type?: string;
|
|
101
|
+
/** Result URL if applicable */
|
|
102
|
+
url?: string;
|
|
103
|
+
/** Additional result data */
|
|
104
|
+
data?: Record<string, unknown>;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Error details on job failure
|
|
108
|
+
*/
|
|
109
|
+
interface JobError {
|
|
110
|
+
/** Error code for programmatic handling */
|
|
111
|
+
code: string;
|
|
112
|
+
/** Human-readable error message */
|
|
113
|
+
message: string;
|
|
114
|
+
/** Additional error details */
|
|
115
|
+
details?: Record<string, unknown>;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Parent info for child jobs
|
|
119
|
+
*/
|
|
120
|
+
interface ParentInfo {
|
|
121
|
+
/** Parent job ID */
|
|
122
|
+
parentJobId: string;
|
|
123
|
+
/** Child index within parent (0-based) */
|
|
124
|
+
childIndex: number;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Children stats for parent jobs
|
|
128
|
+
*/
|
|
129
|
+
interface ChildrenStats {
|
|
130
|
+
/** Total number of children */
|
|
131
|
+
total: number;
|
|
132
|
+
/** Number of completed children */
|
|
133
|
+
completed: number;
|
|
134
|
+
/** Number of failed children */
|
|
135
|
+
failed: number;
|
|
136
|
+
/** Number of running children */
|
|
137
|
+
running: number;
|
|
138
|
+
/** Number of pending children */
|
|
139
|
+
pending: number;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Summary of a child job (used in parent.children array)
|
|
143
|
+
*/
|
|
144
|
+
interface ChildJobSummary {
|
|
145
|
+
/** Child job ID */
|
|
146
|
+
id: string;
|
|
147
|
+
/** Child index within parent (0-based) */
|
|
148
|
+
childIndex: number;
|
|
149
|
+
/** Child job title */
|
|
150
|
+
title: string;
|
|
151
|
+
/** Child job status */
|
|
152
|
+
status: JobStatus;
|
|
153
|
+
/** Child progress (0-100) */
|
|
154
|
+
progress: number;
|
|
155
|
+
/** Child status message */
|
|
156
|
+
message?: string;
|
|
157
|
+
/** Child result */
|
|
158
|
+
result?: JobResult;
|
|
159
|
+
/** Child error */
|
|
160
|
+
error?: JobError;
|
|
161
|
+
/** Child creation timestamp */
|
|
162
|
+
createdAt: string;
|
|
163
|
+
/** Child last update timestamp */
|
|
164
|
+
updatedAt: string;
|
|
165
|
+
/** Child completion timestamp */
|
|
166
|
+
completedAt?: string;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Parent job with all its children
|
|
170
|
+
*/
|
|
171
|
+
interface ParentWithChildren {
|
|
172
|
+
/** Parent job */
|
|
173
|
+
parent: SeennJob;
|
|
174
|
+
/** List of child jobs */
|
|
175
|
+
children: ChildJobSummary[];
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Connection state for SSE
|
|
179
|
+
*/
|
|
180
|
+
type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'reconnecting';
|
|
181
|
+
/**
|
|
182
|
+
* SSE event types
|
|
183
|
+
*/
|
|
184
|
+
type SSEEventType = 'connected' | 'job.sync' | 'job.started' | 'job.progress' | 'job.completed' | 'job.failed' | 'job.cancelled' | 'child.progress' | 'parent.updated' | 'in_app_message' | 'connection.idle' | 'heartbeat' | 'error';
|
|
185
|
+
/**
|
|
186
|
+
* SSE event wrapper
|
|
187
|
+
*/
|
|
188
|
+
interface SSEEvent {
|
|
189
|
+
/** Event type */
|
|
190
|
+
event: SSEEventType;
|
|
191
|
+
/** Event data */
|
|
192
|
+
data: unknown;
|
|
193
|
+
/** Event ID for replay */
|
|
194
|
+
id?: string;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* In-app message types
|
|
198
|
+
*/
|
|
199
|
+
type InAppMessageType = 'job_complete_banner' | 'job_failed_modal' | 'job_toast';
|
|
200
|
+
/**
|
|
201
|
+
* In-app message for UI notifications
|
|
202
|
+
*/
|
|
203
|
+
interface InAppMessage {
|
|
204
|
+
/** Message ID */
|
|
205
|
+
messageId: string;
|
|
206
|
+
/** Message type */
|
|
207
|
+
type: InAppMessageType;
|
|
208
|
+
/** Associated job ID */
|
|
209
|
+
jobId: string;
|
|
210
|
+
/** Message title */
|
|
211
|
+
title: string;
|
|
212
|
+
/** Message body */
|
|
213
|
+
body?: string;
|
|
214
|
+
/** Call-to-action text */
|
|
215
|
+
cta?: string;
|
|
216
|
+
/** Call-to-action URL */
|
|
217
|
+
ctaUrl?: string;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Create job request parameters
|
|
221
|
+
*/
|
|
222
|
+
interface CreateJobParams {
|
|
223
|
+
/** User ID */
|
|
224
|
+
userId: string;
|
|
225
|
+
/** Job type */
|
|
226
|
+
jobType: string;
|
|
227
|
+
/** Job title */
|
|
228
|
+
title: string;
|
|
229
|
+
/** Workflow ID for ETA tracking (default: jobType) */
|
|
230
|
+
workflowId?: string;
|
|
231
|
+
/** Initial message */
|
|
232
|
+
message?: string;
|
|
233
|
+
/** Custom metadata */
|
|
234
|
+
metadata?: Record<string, unknown>;
|
|
235
|
+
/** Estimated duration in ms (for ETA default) */
|
|
236
|
+
estimatedDuration?: number;
|
|
237
|
+
/** Parent job ID (for child jobs) */
|
|
238
|
+
parentJobId?: string;
|
|
239
|
+
/** Child index (for child jobs) */
|
|
240
|
+
childIndex?: number;
|
|
241
|
+
/** Total children (for parent jobs) */
|
|
242
|
+
totalChildren?: number;
|
|
243
|
+
/** Child progress mode (for parent jobs) */
|
|
244
|
+
childProgressMode?: ChildProgressMode;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Update job request parameters
|
|
248
|
+
*/
|
|
249
|
+
interface UpdateJobParams {
|
|
250
|
+
/** New progress (0-100) */
|
|
251
|
+
progress?: number;
|
|
252
|
+
/** New message */
|
|
253
|
+
message?: string;
|
|
254
|
+
/** New stage info */
|
|
255
|
+
stage?: StageInfo;
|
|
256
|
+
/** Custom metadata to merge */
|
|
257
|
+
metadata?: Record<string, unknown>;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Complete job request parameters
|
|
261
|
+
*/
|
|
262
|
+
interface CompleteJobParams {
|
|
263
|
+
/** Job result */
|
|
264
|
+
result?: JobResult;
|
|
265
|
+
/** Final message */
|
|
266
|
+
message?: string;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Fail job request parameters
|
|
270
|
+
*/
|
|
271
|
+
interface FailJobParams {
|
|
272
|
+
/** Error details */
|
|
273
|
+
error: JobError;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Webhook event types
|
|
277
|
+
*/
|
|
278
|
+
type WebhookEventType = 'job.started' | 'job.progress' | 'job.completed' | 'job.failed' | 'job.cancelled';
|
|
279
|
+
/**
|
|
280
|
+
* Webhook payload
|
|
281
|
+
*/
|
|
282
|
+
interface WebhookPayload {
|
|
283
|
+
/** Event type */
|
|
284
|
+
event: WebhookEventType;
|
|
285
|
+
/** Job data */
|
|
286
|
+
job: SeennJob;
|
|
287
|
+
/** Event timestamp (ISO 8601) */
|
|
288
|
+
timestamp: string;
|
|
289
|
+
/** Webhook delivery ID */
|
|
290
|
+
deliveryId: string;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* ETA statistics for a workflow/jobType
|
|
294
|
+
*/
|
|
295
|
+
interface EtaStats {
|
|
296
|
+
/** ETA key (workflowId or jobType) */
|
|
297
|
+
etaKey: string;
|
|
298
|
+
/** Number of completed jobs */
|
|
299
|
+
count: number;
|
|
300
|
+
/** Average duration in ms */
|
|
301
|
+
avgDuration: number;
|
|
302
|
+
/** Minimum duration in ms */
|
|
303
|
+
minDuration: number;
|
|
304
|
+
/** Maximum duration in ms */
|
|
305
|
+
maxDuration: number;
|
|
306
|
+
/** Default duration if no history */
|
|
307
|
+
defaultDuration?: number;
|
|
308
|
+
/** Last updated timestamp */
|
|
309
|
+
lastUpdated: string;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Base SDK configuration
|
|
313
|
+
*/
|
|
314
|
+
interface SeennConfig {
|
|
315
|
+
/** API base URL */
|
|
316
|
+
baseUrl: string;
|
|
317
|
+
/** Authentication token (pk_* for client, sk_* for server) */
|
|
318
|
+
authToken?: string;
|
|
319
|
+
/** SSE endpoint URL (default: baseUrl + /v1/sse) */
|
|
320
|
+
sseUrl?: string;
|
|
321
|
+
/** Enable auto-reconnect (default: true) */
|
|
322
|
+
reconnect?: boolean;
|
|
323
|
+
/** Reconnect interval in ms (default: 1000) */
|
|
324
|
+
reconnectInterval?: number;
|
|
325
|
+
/** Max reconnect attempts (default: 10) */
|
|
326
|
+
maxReconnectAttempts?: number;
|
|
327
|
+
/** Enable debug logging (default: false) */
|
|
328
|
+
debug?: boolean;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Live Activity start parameters
|
|
332
|
+
*/
|
|
333
|
+
interface LiveActivityStartParams {
|
|
334
|
+
/** Job ID */
|
|
335
|
+
jobId: string;
|
|
336
|
+
/** Activity title */
|
|
337
|
+
title: string;
|
|
338
|
+
/** Job type for icon selection */
|
|
339
|
+
jobType?: string;
|
|
340
|
+
/** Initial progress (0-100) */
|
|
341
|
+
initialProgress?: number;
|
|
342
|
+
/** Initial message */
|
|
343
|
+
initialMessage?: string;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Live Activity update parameters
|
|
347
|
+
*/
|
|
348
|
+
interface LiveActivityUpdateParams {
|
|
349
|
+
/** Job ID */
|
|
350
|
+
jobId: string;
|
|
351
|
+
/** New progress (0-100) */
|
|
352
|
+
progress?: number;
|
|
353
|
+
/** New status */
|
|
354
|
+
status?: JobStatus;
|
|
355
|
+
/** New message */
|
|
356
|
+
message?: string;
|
|
357
|
+
/** Stage info */
|
|
358
|
+
stage?: StageInfo;
|
|
359
|
+
/** ETA timestamp (Unix ms) */
|
|
360
|
+
estimatedEndTime?: number;
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Live Activity end parameters
|
|
364
|
+
*/
|
|
365
|
+
interface LiveActivityEndParams {
|
|
366
|
+
/** Job ID */
|
|
367
|
+
jobId: string;
|
|
368
|
+
/** Final status */
|
|
369
|
+
finalStatus?: JobStatus;
|
|
370
|
+
/** Final progress */
|
|
371
|
+
finalProgress?: number;
|
|
372
|
+
/** Final message */
|
|
373
|
+
message?: string;
|
|
374
|
+
/** Result URL */
|
|
375
|
+
resultUrl?: string;
|
|
376
|
+
/** Error message */
|
|
377
|
+
errorMessage?: string;
|
|
378
|
+
/** Dismiss after seconds (default: 300) */
|
|
379
|
+
dismissAfter?: number;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Live Activity result
|
|
383
|
+
*/
|
|
384
|
+
interface LiveActivityResult {
|
|
385
|
+
/** Success flag */
|
|
386
|
+
success: boolean;
|
|
387
|
+
/** Activity ID (platform-specific) */
|
|
388
|
+
activityId?: string;
|
|
389
|
+
/** Associated job ID */
|
|
390
|
+
jobId?: string;
|
|
391
|
+
/** Error message if failed */
|
|
392
|
+
error?: string;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Push token event for Live Activity updates
|
|
396
|
+
*/
|
|
397
|
+
interface LiveActivityPushTokenEvent {
|
|
398
|
+
/** Job ID */
|
|
399
|
+
jobId: string;
|
|
400
|
+
/** APNs push token */
|
|
401
|
+
token: string;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* SDK version info
|
|
405
|
+
*/
|
|
406
|
+
declare const SDK_VERSION = "0.1.0";
|
|
407
|
+
/**
|
|
408
|
+
* Minimum API version required
|
|
409
|
+
*/
|
|
410
|
+
declare const MIN_API_VERSION = "1.0.0";
|
|
411
|
+
/**
|
|
412
|
+
* SSE protocol version
|
|
413
|
+
*/
|
|
414
|
+
declare const SSE_PROTOCOL_VERSION = "1.0";
|
|
415
|
+
|
|
416
|
+
export { type ChildJobSummary, type ChildProgressMode, type ChildrenStats, type CompleteJobParams, type ConnectionState, type CreateJobParams, type EtaStats, type FailJobParams, type InAppMessage, type InAppMessageType, type JobError, type JobResult, type JobStatus, type LiveActivityEndParams, type LiveActivityPushTokenEvent, type LiveActivityResult, type LiveActivityStartParams, type LiveActivityUpdateParams, MIN_API_VERSION, type ParentInfo, type ParentWithChildren, type QueueInfo, SDK_VERSION, type SSEEvent, type SSEEventType, SSE_PROTOCOL_VERSION, type SeennConfig, type SeennJob, type StageInfo, type UpdateJobParams, type WebhookEventType, type WebhookPayload };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
MIN_API_VERSION: () => MIN_API_VERSION,
|
|
24
|
+
SDK_VERSION: () => SDK_VERSION,
|
|
25
|
+
SSE_PROTOCOL_VERSION: () => SSE_PROTOCOL_VERSION
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(index_exports);
|
|
28
|
+
var SDK_VERSION = "0.1.0";
|
|
29
|
+
var MIN_API_VERSION = "1.0.0";
|
|
30
|
+
var SSE_PROTOCOL_VERSION = "1.0";
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
MIN_API_VERSION,
|
|
34
|
+
SDK_VERSION,
|
|
35
|
+
SSE_PROTOCOL_VERSION
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* @seenn/types - Shared TypeScript types for Seenn SDKs
|
|
39
|
+
*
|
|
40
|
+
* This package is the single source of truth for all Seenn type definitions.
|
|
41
|
+
* All SDK packages (react-native, node, flutter) should depend on this package.
|
|
42
|
+
*
|
|
43
|
+
* @version 0.1.0
|
|
44
|
+
* @license MIT
|
|
45
|
+
*/
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * @seenn/types - Shared TypeScript types for Seenn SDKs\n *\n * This package is the single source of truth for all Seenn type definitions.\n * All SDK packages (react-native, node, flutter) should depend on this package.\n *\n * @version 0.1.0\n * @license MIT\n */\n\n// ============================================\n// Core Job Types\n// ============================================\n\n/**\n * Job status values\n */\nexport type JobStatus =\n | 'pending'\n | 'queued'\n | 'running'\n | 'completed'\n | 'failed'\n | 'cancelled';\n\n/**\n * How parent job progress is calculated from children\n */\nexport type ChildProgressMode = 'average' | 'weighted' | 'sequential';\n\n/**\n * Main job object returned by API and SSE\n */\nexport interface SeennJob {\n /** Unique job identifier (ULID format) */\n jobId: string;\n /** User who owns this job */\n userId: string;\n /** Application ID */\n appId: string;\n /** Current job status */\n status: JobStatus;\n /** Human-readable job title */\n title: string;\n /** Job type for categorization */\n jobType: string;\n /** Workflow ID for ETA tracking (default: jobType) */\n workflowId?: string;\n /** Progress percentage (0-100) */\n progress: number;\n /** Current status message */\n message?: string;\n /** Stage information for multi-step jobs */\n stage?: StageInfo;\n /** Estimated completion timestamp (ISO 8601) */\n estimatedCompletionAt?: string;\n /** ETA confidence score (0.0 - 1.0) */\n etaConfidence?: number;\n /** Number of historical jobs used to calculate ETA */\n etaBasedOn?: number;\n /** Queue position info */\n queue?: QueueInfo;\n /** Job result on completion */\n result?: JobResult;\n /** Error details on failure */\n error?: JobError;\n /** Custom metadata */\n metadata?: Record<string, unknown>;\n /** Parent info (if this is a child job) */\n parent?: ParentInfo;\n /** Children stats (if this is a parent job) */\n children?: ChildrenStats;\n /** Progress calculation mode for parent jobs */\n childProgressMode?: ChildProgressMode;\n /** Job creation timestamp (ISO 8601) */\n createdAt: string;\n /** Last update timestamp (ISO 8601) */\n updatedAt: string;\n /** When the job started running (ISO 8601) */\n startedAt?: string;\n /** Job completion timestamp (ISO 8601) */\n completedAt?: string;\n}\n\n// ============================================\n// Stage & Queue Types\n// ============================================\n\n/**\n * Stage information for multi-step jobs\n */\nexport interface StageInfo {\n /** Current stage name */\n name: string;\n /** Current stage index (1-based) */\n current: number;\n /** Total number of stages */\n total: number;\n /** Optional stage description */\n description?: string;\n}\n\n/**\n * Queue position information\n */\nexport interface QueueInfo {\n /** Position in queue (1-based) */\n position: number;\n /** Total items in queue */\n total?: number;\n /** Queue name/identifier */\n queueName?: string;\n}\n\n// ============================================\n// Result & Error Types\n// ============================================\n\n/**\n * Job result on successful completion\n */\nexport interface JobResult {\n /** Result type (e.g., 'video', 'image', 'file') */\n type?: string;\n /** Result URL if applicable */\n url?: string;\n /** Additional result data */\n data?: Record<string, unknown>;\n}\n\n/**\n * Error details on job failure\n */\nexport interface JobError {\n /** Error code for programmatic handling */\n code: string;\n /** Human-readable error message */\n message: string;\n /** Additional error details */\n details?: Record<string, unknown>;\n}\n\n// ============================================\n// Parent-Child Types\n// ============================================\n\n/**\n * Parent info for child jobs\n */\nexport interface ParentInfo {\n /** Parent job ID */\n parentJobId: string;\n /** Child index within parent (0-based) */\n childIndex: number;\n}\n\n/**\n * Children stats for parent jobs\n */\nexport interface ChildrenStats {\n /** Total number of children */\n total: number;\n /** Number of completed children */\n completed: number;\n /** Number of failed children */\n failed: number;\n /** Number of running children */\n running: number;\n /** Number of pending children */\n pending: number;\n}\n\n/**\n * Summary of a child job (used in parent.children array)\n */\nexport interface ChildJobSummary {\n /** Child job ID */\n id: string;\n /** Child index within parent (0-based) */\n childIndex: number;\n /** Child job title */\n title: string;\n /** Child job status */\n status: JobStatus;\n /** Child progress (0-100) */\n progress: number;\n /** Child status message */\n message?: string;\n /** Child result */\n result?: JobResult;\n /** Child error */\n error?: JobError;\n /** Child creation timestamp */\n createdAt: string;\n /** Child last update timestamp */\n updatedAt: string;\n /** Child completion timestamp */\n completedAt?: string;\n}\n\n/**\n * Parent job with all its children\n */\nexport interface ParentWithChildren {\n /** Parent job */\n parent: SeennJob;\n /** List of child jobs */\n children: ChildJobSummary[];\n}\n\n// ============================================\n// SSE Types\n// ============================================\n\n/**\n * Connection state for SSE\n */\nexport type ConnectionState =\n | 'disconnected'\n | 'connecting'\n | 'connected'\n | 'reconnecting';\n\n/**\n * SSE event types\n */\nexport type SSEEventType =\n | 'connected'\n | 'job.sync'\n | 'job.started'\n | 'job.progress'\n | 'job.completed'\n | 'job.failed'\n | 'job.cancelled'\n | 'child.progress'\n | 'parent.updated'\n | 'in_app_message'\n | 'connection.idle'\n | 'heartbeat'\n | 'error';\n\n/**\n * SSE event wrapper\n */\nexport interface SSEEvent {\n /** Event type */\n event: SSEEventType;\n /** Event data */\n data: unknown;\n /** Event ID for replay */\n id?: string;\n}\n\n// ============================================\n// In-App Message Types\n// ============================================\n\n/**\n * In-app message types\n */\nexport type InAppMessageType =\n | 'job_complete_banner'\n | 'job_failed_modal'\n | 'job_toast';\n\n/**\n * In-app message for UI notifications\n */\nexport interface InAppMessage {\n /** Message ID */\n messageId: string;\n /** Message type */\n type: InAppMessageType;\n /** Associated job ID */\n jobId: string;\n /** Message title */\n title: string;\n /** Message body */\n body?: string;\n /** Call-to-action text */\n cta?: string;\n /** Call-to-action URL */\n ctaUrl?: string;\n}\n\n// ============================================\n// API Types\n// ============================================\n\n/**\n * Create job request parameters\n */\nexport interface CreateJobParams {\n /** User ID */\n userId: string;\n /** Job type */\n jobType: string;\n /** Job title */\n title: string;\n /** Workflow ID for ETA tracking (default: jobType) */\n workflowId?: string;\n /** Initial message */\n message?: string;\n /** Custom metadata */\n metadata?: Record<string, unknown>;\n /** Estimated duration in ms (for ETA default) */\n estimatedDuration?: number;\n /** Parent job ID (for child jobs) */\n parentJobId?: string;\n /** Child index (for child jobs) */\n childIndex?: number;\n /** Total children (for parent jobs) */\n totalChildren?: number;\n /** Child progress mode (for parent jobs) */\n childProgressMode?: ChildProgressMode;\n}\n\n/**\n * Update job request parameters\n */\nexport interface UpdateJobParams {\n /** New progress (0-100) */\n progress?: number;\n /** New message */\n message?: string;\n /** New stage info */\n stage?: StageInfo;\n /** Custom metadata to merge */\n metadata?: Record<string, unknown>;\n}\n\n/**\n * Complete job request parameters\n */\nexport interface CompleteJobParams {\n /** Job result */\n result?: JobResult;\n /** Final message */\n message?: string;\n}\n\n/**\n * Fail job request parameters\n */\nexport interface FailJobParams {\n /** Error details */\n error: JobError;\n}\n\n// ============================================\n// Webhook Types\n// ============================================\n\n/**\n * Webhook event types\n */\nexport type WebhookEventType =\n | 'job.started'\n | 'job.progress'\n | 'job.completed'\n | 'job.failed'\n | 'job.cancelled';\n\n/**\n * Webhook payload\n */\nexport interface WebhookPayload {\n /** Event type */\n event: WebhookEventType;\n /** Job data */\n job: SeennJob;\n /** Event timestamp (ISO 8601) */\n timestamp: string;\n /** Webhook delivery ID */\n deliveryId: string;\n}\n\n// ============================================\n// ETA Types\n// ============================================\n\n/**\n * ETA statistics for a workflow/jobType\n */\nexport interface EtaStats {\n /** ETA key (workflowId or jobType) */\n etaKey: string;\n /** Number of completed jobs */\n count: number;\n /** Average duration in ms */\n avgDuration: number;\n /** Minimum duration in ms */\n minDuration: number;\n /** Maximum duration in ms */\n maxDuration: number;\n /** Default duration if no history */\n defaultDuration?: number;\n /** Last updated timestamp */\n lastUpdated: string;\n}\n\n// ============================================\n// SDK Configuration Types\n// ============================================\n\n/**\n * Base SDK configuration\n */\nexport interface SeennConfig {\n /** API base URL */\n baseUrl: string;\n /** Authentication token (pk_* for client, sk_* for server) */\n authToken?: string;\n /** SSE endpoint URL (default: baseUrl + /v1/sse) */\n sseUrl?: string;\n /** Enable auto-reconnect (default: true) */\n reconnect?: boolean;\n /** Reconnect interval in ms (default: 1000) */\n reconnectInterval?: number;\n /** Max reconnect attempts (default: 10) */\n maxReconnectAttempts?: number;\n /** Enable debug logging (default: false) */\n debug?: boolean;\n}\n\n// ============================================\n// Live Activity Types (iOS/Android)\n// ============================================\n\n/**\n * Live Activity start parameters\n */\nexport interface LiveActivityStartParams {\n /** Job ID */\n jobId: string;\n /** Activity title */\n title: string;\n /** Job type for icon selection */\n jobType?: string;\n /** Initial progress (0-100) */\n initialProgress?: number;\n /** Initial message */\n initialMessage?: string;\n}\n\n/**\n * Live Activity update parameters\n */\nexport interface LiveActivityUpdateParams {\n /** Job ID */\n jobId: string;\n /** New progress (0-100) */\n progress?: number;\n /** New status */\n status?: JobStatus;\n /** New message */\n message?: string;\n /** Stage info */\n stage?: StageInfo;\n /** ETA timestamp (Unix ms) */\n estimatedEndTime?: number;\n}\n\n/**\n * Live Activity end parameters\n */\nexport interface LiveActivityEndParams {\n /** Job ID */\n jobId: string;\n /** Final status */\n finalStatus?: JobStatus;\n /** Final progress */\n finalProgress?: number;\n /** Final message */\n message?: string;\n /** Result URL */\n resultUrl?: string;\n /** Error message */\n errorMessage?: string;\n /** Dismiss after seconds (default: 300) */\n dismissAfter?: number;\n}\n\n/**\n * Live Activity result\n */\nexport interface LiveActivityResult {\n /** Success flag */\n success: boolean;\n /** Activity ID (platform-specific) */\n activityId?: string;\n /** Associated job ID */\n jobId?: string;\n /** Error message if failed */\n error?: string;\n}\n\n/**\n * Push token event for Live Activity updates\n */\nexport interface LiveActivityPushTokenEvent {\n /** Job ID */\n jobId: string;\n /** APNs push token */\n token: string;\n}\n\n// ============================================\n// Version & Compatibility\n// ============================================\n\n/**\n * SDK version info\n */\nexport const SDK_VERSION = '0.1.0';\n\n/**\n * Minimum API version required\n */\nexport const MIN_API_VERSION = '1.0.0';\n\n/**\n * SSE protocol version\n */\nexport const SSE_PROTOCOL_VERSION = '1.0';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAkgBO,IAAM,cAAc;AAKpB,IAAM,kBAAkB;AAKxB,IAAM,uBAAuB;","names":[]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
var SDK_VERSION = "0.1.0";
|
|
3
|
+
var MIN_API_VERSION = "1.0.0";
|
|
4
|
+
var SSE_PROTOCOL_VERSION = "1.0";
|
|
5
|
+
export {
|
|
6
|
+
MIN_API_VERSION,
|
|
7
|
+
SDK_VERSION,
|
|
8
|
+
SSE_PROTOCOL_VERSION
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @seenn/types - Shared TypeScript types for Seenn SDKs
|
|
12
|
+
*
|
|
13
|
+
* This package is the single source of truth for all Seenn type definitions.
|
|
14
|
+
* All SDK packages (react-native, node, flutter) should depend on this package.
|
|
15
|
+
*
|
|
16
|
+
* @version 0.1.0
|
|
17
|
+
* @license MIT
|
|
18
|
+
*/
|
|
19
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * @seenn/types - Shared TypeScript types for Seenn SDKs\n *\n * This package is the single source of truth for all Seenn type definitions.\n * All SDK packages (react-native, node, flutter) should depend on this package.\n *\n * @version 0.1.0\n * @license MIT\n */\n\n// ============================================\n// Core Job Types\n// ============================================\n\n/**\n * Job status values\n */\nexport type JobStatus =\n | 'pending'\n | 'queued'\n | 'running'\n | 'completed'\n | 'failed'\n | 'cancelled';\n\n/**\n * How parent job progress is calculated from children\n */\nexport type ChildProgressMode = 'average' | 'weighted' | 'sequential';\n\n/**\n * Main job object returned by API and SSE\n */\nexport interface SeennJob {\n /** Unique job identifier (ULID format) */\n jobId: string;\n /** User who owns this job */\n userId: string;\n /** Application ID */\n appId: string;\n /** Current job status */\n status: JobStatus;\n /** Human-readable job title */\n title: string;\n /** Job type for categorization */\n jobType: string;\n /** Workflow ID for ETA tracking (default: jobType) */\n workflowId?: string;\n /** Progress percentage (0-100) */\n progress: number;\n /** Current status message */\n message?: string;\n /** Stage information for multi-step jobs */\n stage?: StageInfo;\n /** Estimated completion timestamp (ISO 8601) */\n estimatedCompletionAt?: string;\n /** ETA confidence score (0.0 - 1.0) */\n etaConfidence?: number;\n /** Number of historical jobs used to calculate ETA */\n etaBasedOn?: number;\n /** Queue position info */\n queue?: QueueInfo;\n /** Job result on completion */\n result?: JobResult;\n /** Error details on failure */\n error?: JobError;\n /** Custom metadata */\n metadata?: Record<string, unknown>;\n /** Parent info (if this is a child job) */\n parent?: ParentInfo;\n /** Children stats (if this is a parent job) */\n children?: ChildrenStats;\n /** Progress calculation mode for parent jobs */\n childProgressMode?: ChildProgressMode;\n /** Job creation timestamp (ISO 8601) */\n createdAt: string;\n /** Last update timestamp (ISO 8601) */\n updatedAt: string;\n /** When the job started running (ISO 8601) */\n startedAt?: string;\n /** Job completion timestamp (ISO 8601) */\n completedAt?: string;\n}\n\n// ============================================\n// Stage & Queue Types\n// ============================================\n\n/**\n * Stage information for multi-step jobs\n */\nexport interface StageInfo {\n /** Current stage name */\n name: string;\n /** Current stage index (1-based) */\n current: number;\n /** Total number of stages */\n total: number;\n /** Optional stage description */\n description?: string;\n}\n\n/**\n * Queue position information\n */\nexport interface QueueInfo {\n /** Position in queue (1-based) */\n position: number;\n /** Total items in queue */\n total?: number;\n /** Queue name/identifier */\n queueName?: string;\n}\n\n// ============================================\n// Result & Error Types\n// ============================================\n\n/**\n * Job result on successful completion\n */\nexport interface JobResult {\n /** Result type (e.g., 'video', 'image', 'file') */\n type?: string;\n /** Result URL if applicable */\n url?: string;\n /** Additional result data */\n data?: Record<string, unknown>;\n}\n\n/**\n * Error details on job failure\n */\nexport interface JobError {\n /** Error code for programmatic handling */\n code: string;\n /** Human-readable error message */\n message: string;\n /** Additional error details */\n details?: Record<string, unknown>;\n}\n\n// ============================================\n// Parent-Child Types\n// ============================================\n\n/**\n * Parent info for child jobs\n */\nexport interface ParentInfo {\n /** Parent job ID */\n parentJobId: string;\n /** Child index within parent (0-based) */\n childIndex: number;\n}\n\n/**\n * Children stats for parent jobs\n */\nexport interface ChildrenStats {\n /** Total number of children */\n total: number;\n /** Number of completed children */\n completed: number;\n /** Number of failed children */\n failed: number;\n /** Number of running children */\n running: number;\n /** Number of pending children */\n pending: number;\n}\n\n/**\n * Summary of a child job (used in parent.children array)\n */\nexport interface ChildJobSummary {\n /** Child job ID */\n id: string;\n /** Child index within parent (0-based) */\n childIndex: number;\n /** Child job title */\n title: string;\n /** Child job status */\n status: JobStatus;\n /** Child progress (0-100) */\n progress: number;\n /** Child status message */\n message?: string;\n /** Child result */\n result?: JobResult;\n /** Child error */\n error?: JobError;\n /** Child creation timestamp */\n createdAt: string;\n /** Child last update timestamp */\n updatedAt: string;\n /** Child completion timestamp */\n completedAt?: string;\n}\n\n/**\n * Parent job with all its children\n */\nexport interface ParentWithChildren {\n /** Parent job */\n parent: SeennJob;\n /** List of child jobs */\n children: ChildJobSummary[];\n}\n\n// ============================================\n// SSE Types\n// ============================================\n\n/**\n * Connection state for SSE\n */\nexport type ConnectionState =\n | 'disconnected'\n | 'connecting'\n | 'connected'\n | 'reconnecting';\n\n/**\n * SSE event types\n */\nexport type SSEEventType =\n | 'connected'\n | 'job.sync'\n | 'job.started'\n | 'job.progress'\n | 'job.completed'\n | 'job.failed'\n | 'job.cancelled'\n | 'child.progress'\n | 'parent.updated'\n | 'in_app_message'\n | 'connection.idle'\n | 'heartbeat'\n | 'error';\n\n/**\n * SSE event wrapper\n */\nexport interface SSEEvent {\n /** Event type */\n event: SSEEventType;\n /** Event data */\n data: unknown;\n /** Event ID for replay */\n id?: string;\n}\n\n// ============================================\n// In-App Message Types\n// ============================================\n\n/**\n * In-app message types\n */\nexport type InAppMessageType =\n | 'job_complete_banner'\n | 'job_failed_modal'\n | 'job_toast';\n\n/**\n * In-app message for UI notifications\n */\nexport interface InAppMessage {\n /** Message ID */\n messageId: string;\n /** Message type */\n type: InAppMessageType;\n /** Associated job ID */\n jobId: string;\n /** Message title */\n title: string;\n /** Message body */\n body?: string;\n /** Call-to-action text */\n cta?: string;\n /** Call-to-action URL */\n ctaUrl?: string;\n}\n\n// ============================================\n// API Types\n// ============================================\n\n/**\n * Create job request parameters\n */\nexport interface CreateJobParams {\n /** User ID */\n userId: string;\n /** Job type */\n jobType: string;\n /** Job title */\n title: string;\n /** Workflow ID for ETA tracking (default: jobType) */\n workflowId?: string;\n /** Initial message */\n message?: string;\n /** Custom metadata */\n metadata?: Record<string, unknown>;\n /** Estimated duration in ms (for ETA default) */\n estimatedDuration?: number;\n /** Parent job ID (for child jobs) */\n parentJobId?: string;\n /** Child index (for child jobs) */\n childIndex?: number;\n /** Total children (for parent jobs) */\n totalChildren?: number;\n /** Child progress mode (for parent jobs) */\n childProgressMode?: ChildProgressMode;\n}\n\n/**\n * Update job request parameters\n */\nexport interface UpdateJobParams {\n /** New progress (0-100) */\n progress?: number;\n /** New message */\n message?: string;\n /** New stage info */\n stage?: StageInfo;\n /** Custom metadata to merge */\n metadata?: Record<string, unknown>;\n}\n\n/**\n * Complete job request parameters\n */\nexport interface CompleteJobParams {\n /** Job result */\n result?: JobResult;\n /** Final message */\n message?: string;\n}\n\n/**\n * Fail job request parameters\n */\nexport interface FailJobParams {\n /** Error details */\n error: JobError;\n}\n\n// ============================================\n// Webhook Types\n// ============================================\n\n/**\n * Webhook event types\n */\nexport type WebhookEventType =\n | 'job.started'\n | 'job.progress'\n | 'job.completed'\n | 'job.failed'\n | 'job.cancelled';\n\n/**\n * Webhook payload\n */\nexport interface WebhookPayload {\n /** Event type */\n event: WebhookEventType;\n /** Job data */\n job: SeennJob;\n /** Event timestamp (ISO 8601) */\n timestamp: string;\n /** Webhook delivery ID */\n deliveryId: string;\n}\n\n// ============================================\n// ETA Types\n// ============================================\n\n/**\n * ETA statistics for a workflow/jobType\n */\nexport interface EtaStats {\n /** ETA key (workflowId or jobType) */\n etaKey: string;\n /** Number of completed jobs */\n count: number;\n /** Average duration in ms */\n avgDuration: number;\n /** Minimum duration in ms */\n minDuration: number;\n /** Maximum duration in ms */\n maxDuration: number;\n /** Default duration if no history */\n defaultDuration?: number;\n /** Last updated timestamp */\n lastUpdated: string;\n}\n\n// ============================================\n// SDK Configuration Types\n// ============================================\n\n/**\n * Base SDK configuration\n */\nexport interface SeennConfig {\n /** API base URL */\n baseUrl: string;\n /** Authentication token (pk_* for client, sk_* for server) */\n authToken?: string;\n /** SSE endpoint URL (default: baseUrl + /v1/sse) */\n sseUrl?: string;\n /** Enable auto-reconnect (default: true) */\n reconnect?: boolean;\n /** Reconnect interval in ms (default: 1000) */\n reconnectInterval?: number;\n /** Max reconnect attempts (default: 10) */\n maxReconnectAttempts?: number;\n /** Enable debug logging (default: false) */\n debug?: boolean;\n}\n\n// ============================================\n// Live Activity Types (iOS/Android)\n// ============================================\n\n/**\n * Live Activity start parameters\n */\nexport interface LiveActivityStartParams {\n /** Job ID */\n jobId: string;\n /** Activity title */\n title: string;\n /** Job type for icon selection */\n jobType?: string;\n /** Initial progress (0-100) */\n initialProgress?: number;\n /** Initial message */\n initialMessage?: string;\n}\n\n/**\n * Live Activity update parameters\n */\nexport interface LiveActivityUpdateParams {\n /** Job ID */\n jobId: string;\n /** New progress (0-100) */\n progress?: number;\n /** New status */\n status?: JobStatus;\n /** New message */\n message?: string;\n /** Stage info */\n stage?: StageInfo;\n /** ETA timestamp (Unix ms) */\n estimatedEndTime?: number;\n}\n\n/**\n * Live Activity end parameters\n */\nexport interface LiveActivityEndParams {\n /** Job ID */\n jobId: string;\n /** Final status */\n finalStatus?: JobStatus;\n /** Final progress */\n finalProgress?: number;\n /** Final message */\n message?: string;\n /** Result URL */\n resultUrl?: string;\n /** Error message */\n errorMessage?: string;\n /** Dismiss after seconds (default: 300) */\n dismissAfter?: number;\n}\n\n/**\n * Live Activity result\n */\nexport interface LiveActivityResult {\n /** Success flag */\n success: boolean;\n /** Activity ID (platform-specific) */\n activityId?: string;\n /** Associated job ID */\n jobId?: string;\n /** Error message if failed */\n error?: string;\n}\n\n/**\n * Push token event for Live Activity updates\n */\nexport interface LiveActivityPushTokenEvent {\n /** Job ID */\n jobId: string;\n /** APNs push token */\n token: string;\n}\n\n// ============================================\n// Version & Compatibility\n// ============================================\n\n/**\n * SDK version info\n */\nexport const SDK_VERSION = '0.1.0';\n\n/**\n * Minimum API version required\n */\nexport const MIN_API_VERSION = '1.0.0';\n\n/**\n * SSE protocol version\n */\nexport const SSE_PROTOCOL_VERSION = '1.0';\n"],"mappings":";AAkgBO,IAAM,cAAc;AAKpB,IAAM,kBAAkB;AAKxB,IAAM,uBAAuB;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@seenn/types",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared TypeScript types for Seenn SDKs",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/seenn-io/types.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/seenn-io/types#readme",
|
|
14
|
+
"author": "Seenn <hello@seenn.io>",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"seenn",
|
|
17
|
+
"types",
|
|
18
|
+
"typescript",
|
|
19
|
+
"job-tracking"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsup",
|
|
23
|
+
"dev": "tsup --watch",
|
|
24
|
+
"typecheck": "tsc --noEmit",
|
|
25
|
+
"prepublishOnly": "pnpm build"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"tsup": "^8.0.1",
|
|
29
|
+
"typescript": "^5.3.3"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"src"
|
|
34
|
+
],
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public"
|
|
37
|
+
},
|
|
38
|
+
"sideEffects": false
|
|
39
|
+
}
|