@korala/public-dtos 1.0.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.ts +889 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +131 -0
- package/package.json +46 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,889 @@
|
|
|
1
|
+
export interface CreateUploadUrlDto {
|
|
2
|
+
/** @example "contract.pdf" */
|
|
3
|
+
filename: string;
|
|
4
|
+
/** @example "application/pdf" */
|
|
5
|
+
contentType: string;
|
|
6
|
+
}
|
|
7
|
+
export interface UploadUrlResponseDto {
|
|
8
|
+
documentId: string;
|
|
9
|
+
uploadUrl: string;
|
|
10
|
+
key: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ConfirmUploadDto {
|
|
13
|
+
/** @example "Sales Contract Q1 2026" */
|
|
14
|
+
name?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare enum DocumentStatus {
|
|
17
|
+
Draft = "draft",
|
|
18
|
+
Pending = "pending",
|
|
19
|
+
Completing = "completing",
|
|
20
|
+
Completed = "completed",
|
|
21
|
+
Failed = "failed",
|
|
22
|
+
Voided = "voided",
|
|
23
|
+
Expired = "expired"
|
|
24
|
+
}
|
|
25
|
+
export interface DocumentDto {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
status: DocumentStatus;
|
|
29
|
+
originalFileUrl: string;
|
|
30
|
+
signedFileUrl?: string | null;
|
|
31
|
+
certificateFileUrl?: string | null;
|
|
32
|
+
/** @format date-time */
|
|
33
|
+
expiresAt?: string | null;
|
|
34
|
+
/** @format date-time */
|
|
35
|
+
completedAt?: string | null;
|
|
36
|
+
/** Whether this is a sandbox (test) document */
|
|
37
|
+
sandbox: boolean;
|
|
38
|
+
/** Whether email notifications are suppressed */
|
|
39
|
+
suppressNotifications: boolean;
|
|
40
|
+
/** @format date-time */
|
|
41
|
+
createdAt: string;
|
|
42
|
+
/** @format date-time */
|
|
43
|
+
updatedAt: string;
|
|
44
|
+
}
|
|
45
|
+
export declare enum DocumentSortBy {
|
|
46
|
+
CreatedAt = "createdAt",
|
|
47
|
+
Name = "name",
|
|
48
|
+
Status = "status"
|
|
49
|
+
}
|
|
50
|
+
export declare enum SortOrder {
|
|
51
|
+
Asc = "asc",
|
|
52
|
+
Desc = "desc"
|
|
53
|
+
}
|
|
54
|
+
export interface PaginatedDocumentsDto {
|
|
55
|
+
data: DocumentDto[];
|
|
56
|
+
/** Total number of documents */
|
|
57
|
+
total: number;
|
|
58
|
+
/** Current page number */
|
|
59
|
+
page: number;
|
|
60
|
+
/** Number of items per page */
|
|
61
|
+
limit: number;
|
|
62
|
+
/** Total number of pages */
|
|
63
|
+
totalPages: number;
|
|
64
|
+
}
|
|
65
|
+
export interface AddSignerDto {
|
|
66
|
+
/**
|
|
67
|
+
* Signer email. Required for email notifications.
|
|
68
|
+
* @example "john@example.com"
|
|
69
|
+
*/
|
|
70
|
+
email?: string;
|
|
71
|
+
/** @example "John Doe" */
|
|
72
|
+
name: string;
|
|
73
|
+
/** @example 1 */
|
|
74
|
+
signingOrder?: number;
|
|
75
|
+
/**
|
|
76
|
+
* External identifier for tracking signers in your system
|
|
77
|
+
* @example "user_123"
|
|
78
|
+
*/
|
|
79
|
+
externalId?: string;
|
|
80
|
+
/**
|
|
81
|
+
* URL to redirect signer after signing. Must be HTTPS (or localhost for development).
|
|
82
|
+
* @example "https://example.com/done"
|
|
83
|
+
*/
|
|
84
|
+
redirectUrl?: string;
|
|
85
|
+
}
|
|
86
|
+
export declare enum SignerRole {
|
|
87
|
+
Signer = "signer",
|
|
88
|
+
Approver = "approver",
|
|
89
|
+
Cc = "cc"
|
|
90
|
+
}
|
|
91
|
+
export declare enum SignerStatus {
|
|
92
|
+
Pending = "pending",
|
|
93
|
+
Viewed = "viewed",
|
|
94
|
+
Signed = "signed",
|
|
95
|
+
Declined = "declined"
|
|
96
|
+
}
|
|
97
|
+
export declare enum AuthMethod {
|
|
98
|
+
EmailLink = "email_link",
|
|
99
|
+
WalletSignature = "wallet_signature",
|
|
100
|
+
SmsOtp = "sms_otp"
|
|
101
|
+
}
|
|
102
|
+
export interface SignerDto {
|
|
103
|
+
id: string;
|
|
104
|
+
documentId: string;
|
|
105
|
+
email?: string | null;
|
|
106
|
+
name: string;
|
|
107
|
+
externalId?: string | null;
|
|
108
|
+
role: SignerRole;
|
|
109
|
+
signingOrder: number;
|
|
110
|
+
status: SignerStatus;
|
|
111
|
+
authMethod: AuthMethod;
|
|
112
|
+
/** @format date-time */
|
|
113
|
+
signedAt?: string | null;
|
|
114
|
+
accessToken: string;
|
|
115
|
+
/** URL to redirect signer after signing */
|
|
116
|
+
redirectUrl?: string | null;
|
|
117
|
+
/** @format date-time */
|
|
118
|
+
createdAt: string;
|
|
119
|
+
/** @format date-time */
|
|
120
|
+
updatedAt: string;
|
|
121
|
+
}
|
|
122
|
+
export declare enum FieldType {
|
|
123
|
+
Signature = "signature",
|
|
124
|
+
Initials = "initials",
|
|
125
|
+
Date = "date",
|
|
126
|
+
Text = "text",
|
|
127
|
+
Checkbox = "checkbox"
|
|
128
|
+
}
|
|
129
|
+
export interface AddFieldDto {
|
|
130
|
+
signerId: string;
|
|
131
|
+
fieldType: FieldType;
|
|
132
|
+
/** @example 1 */
|
|
133
|
+
pageNumber: number;
|
|
134
|
+
/** @example 100 */
|
|
135
|
+
xPosition: number;
|
|
136
|
+
/** @example 200 */
|
|
137
|
+
yPosition: number;
|
|
138
|
+
/** @example 200 */
|
|
139
|
+
width: number;
|
|
140
|
+
/** @example 50 */
|
|
141
|
+
height: number;
|
|
142
|
+
}
|
|
143
|
+
export interface FieldDto {
|
|
144
|
+
id: string;
|
|
145
|
+
documentId: string;
|
|
146
|
+
signerId: string;
|
|
147
|
+
fieldType: FieldType;
|
|
148
|
+
pageNumber: number;
|
|
149
|
+
xPosition: number;
|
|
150
|
+
yPosition: number;
|
|
151
|
+
width: number;
|
|
152
|
+
height: number;
|
|
153
|
+
required: string;
|
|
154
|
+
value?: string | null;
|
|
155
|
+
signatureImageUrl?: string | null;
|
|
156
|
+
/** @format date-time */
|
|
157
|
+
filledAt?: string | null;
|
|
158
|
+
/** @format date-time */
|
|
159
|
+
createdAt: string;
|
|
160
|
+
/** @format date-time */
|
|
161
|
+
updatedAt: string;
|
|
162
|
+
}
|
|
163
|
+
export interface UpdateFieldDto {
|
|
164
|
+
/** @example 100 */
|
|
165
|
+
xPosition?: number;
|
|
166
|
+
/** @example 200 */
|
|
167
|
+
yPosition?: number;
|
|
168
|
+
/** @example 200 */
|
|
169
|
+
width?: number;
|
|
170
|
+
/** @example 50 */
|
|
171
|
+
height?: number;
|
|
172
|
+
}
|
|
173
|
+
export interface SendDocumentDto {
|
|
174
|
+
/**
|
|
175
|
+
* Suppress all email notifications for this document (signing invitations and completion emails)
|
|
176
|
+
* @default false
|
|
177
|
+
*/
|
|
178
|
+
suppressNotifications?: boolean;
|
|
179
|
+
}
|
|
180
|
+
export interface AuditEventDto {
|
|
181
|
+
id: string;
|
|
182
|
+
documentId: string;
|
|
183
|
+
signerId?: string | null;
|
|
184
|
+
eventType: string;
|
|
185
|
+
ipAddress?: string | null;
|
|
186
|
+
userAgent?: string | null;
|
|
187
|
+
geoLocation?: string | null;
|
|
188
|
+
metadata?: object | null;
|
|
189
|
+
documentHash?: string | null;
|
|
190
|
+
/** @format date-time */
|
|
191
|
+
createdAt: string;
|
|
192
|
+
}
|
|
193
|
+
export interface BulkSignFieldValueDto {
|
|
194
|
+
/** Field ID to override */
|
|
195
|
+
fieldId: string;
|
|
196
|
+
/** Value to set on the field */
|
|
197
|
+
value: string;
|
|
198
|
+
/** Signature image URL (for Signature/Initials fields) */
|
|
199
|
+
signatureImageUrl?: string;
|
|
200
|
+
}
|
|
201
|
+
export interface BulkSignDocumentOverrideDto {
|
|
202
|
+
/** Document ID to apply overrides to */
|
|
203
|
+
documentId: string;
|
|
204
|
+
/** Field value overrides for this document */
|
|
205
|
+
fields: BulkSignFieldValueDto[];
|
|
206
|
+
}
|
|
207
|
+
export interface BulkSignRequestDto {
|
|
208
|
+
/** Document IDs to sign (max 500) */
|
|
209
|
+
documentIds: string[];
|
|
210
|
+
/**
|
|
211
|
+
* Signer email. Exactly one of signerEmail or signerExternalId is required.
|
|
212
|
+
* @example "ceo@company.com"
|
|
213
|
+
*/
|
|
214
|
+
signerEmail?: string;
|
|
215
|
+
/**
|
|
216
|
+
* Signer external ID. Exactly one of signerEmail or signerExternalId is required.
|
|
217
|
+
* @example "user_123"
|
|
218
|
+
*/
|
|
219
|
+
signerExternalId?: string;
|
|
220
|
+
/**
|
|
221
|
+
* Value to auto-fill Date fields. Defaults to today.
|
|
222
|
+
* @example "2026-02-18"
|
|
223
|
+
*/
|
|
224
|
+
autoFillDateValue?: string;
|
|
225
|
+
/** Per-document field overrides */
|
|
226
|
+
documents?: BulkSignDocumentOverrideDto[];
|
|
227
|
+
}
|
|
228
|
+
export interface BulkSignDocumentResultDto {
|
|
229
|
+
documentId: string;
|
|
230
|
+
success: boolean;
|
|
231
|
+
error?: string | null;
|
|
232
|
+
/** Whether all signers have signed (triggers completion) */
|
|
233
|
+
allSigned?: boolean | null;
|
|
234
|
+
}
|
|
235
|
+
export interface BulkSignResponseDto {
|
|
236
|
+
/** Number of documents successfully signed */
|
|
237
|
+
signed: number;
|
|
238
|
+
/** Number of documents that failed */
|
|
239
|
+
failed: number;
|
|
240
|
+
/** Per-document results */
|
|
241
|
+
results: BulkSignDocumentResultDto[];
|
|
242
|
+
}
|
|
243
|
+
export declare enum WebhookEventType {
|
|
244
|
+
DocumentCreated = "document_created",
|
|
245
|
+
DocumentSent = "document_sent",
|
|
246
|
+
DocumentViewed = "document_viewed",
|
|
247
|
+
DocumentSigned = "document_signed",
|
|
248
|
+
DocumentCompleted = "document_completed",
|
|
249
|
+
DocumentFailed = "document_failed",
|
|
250
|
+
DocumentVoided = "document_voided",
|
|
251
|
+
DocumentDeclined = "document_declined"
|
|
252
|
+
}
|
|
253
|
+
export interface CreateWebhookDto {
|
|
254
|
+
/** @example "https://example.com/webhooks" */
|
|
255
|
+
url: string;
|
|
256
|
+
/** @example ["document_signed","document_completed"] */
|
|
257
|
+
events: WebhookEventType[];
|
|
258
|
+
/** @example "Notifications for signed documents" */
|
|
259
|
+
description?: string;
|
|
260
|
+
}
|
|
261
|
+
export interface WebhookWithSecretDto {
|
|
262
|
+
id: string;
|
|
263
|
+
url: string;
|
|
264
|
+
events: WebhookEventType[];
|
|
265
|
+
isActive: boolean;
|
|
266
|
+
description?: string;
|
|
267
|
+
/** @format date-time */
|
|
268
|
+
createdAt: string;
|
|
269
|
+
/** @format date-time */
|
|
270
|
+
updatedAt: string;
|
|
271
|
+
/** Secret for HMAC signature verification (only shown once) */
|
|
272
|
+
secret: string;
|
|
273
|
+
}
|
|
274
|
+
export interface WebhookDto {
|
|
275
|
+
id: string;
|
|
276
|
+
url: string;
|
|
277
|
+
events: WebhookEventType[];
|
|
278
|
+
isActive: boolean;
|
|
279
|
+
description?: string;
|
|
280
|
+
/** @format date-time */
|
|
281
|
+
createdAt: string;
|
|
282
|
+
/** @format date-time */
|
|
283
|
+
updatedAt: string;
|
|
284
|
+
}
|
|
285
|
+
export interface UpdateWebhookDto {
|
|
286
|
+
/** @example "https://example.com/webhooks" */
|
|
287
|
+
url?: string;
|
|
288
|
+
events?: WebhookEventType[];
|
|
289
|
+
description?: string;
|
|
290
|
+
isActive?: boolean;
|
|
291
|
+
}
|
|
292
|
+
export declare enum WebhookDeliveryStatus {
|
|
293
|
+
Pending = "pending",
|
|
294
|
+
Success = "success",
|
|
295
|
+
Failed = "failed",
|
|
296
|
+
Retrying = "retrying"
|
|
297
|
+
}
|
|
298
|
+
export interface WebhookDeliveryDto {
|
|
299
|
+
id: string;
|
|
300
|
+
webhookId: string;
|
|
301
|
+
eventType: WebhookEventType;
|
|
302
|
+
payload: object;
|
|
303
|
+
status: WebhookDeliveryStatus;
|
|
304
|
+
httpStatusCode?: number;
|
|
305
|
+
responseBody?: string;
|
|
306
|
+
attempts: number;
|
|
307
|
+
/** @format date-time */
|
|
308
|
+
nextRetryAt?: string;
|
|
309
|
+
/** @format date-time */
|
|
310
|
+
deliveredAt?: string;
|
|
311
|
+
/** @format date-time */
|
|
312
|
+
createdAt: string;
|
|
313
|
+
}
|
|
314
|
+
export interface TriggerFieldDetectionDto {
|
|
315
|
+
/** Minimum confidence threshold (0-100) */
|
|
316
|
+
minConfidence?: number;
|
|
317
|
+
}
|
|
318
|
+
/** Current status of the field detection job */
|
|
319
|
+
export declare enum FieldDetectionStatus {
|
|
320
|
+
Queued = "queued",
|
|
321
|
+
OcrProcessing = "ocr_processing",
|
|
322
|
+
AiProcessing = "ai_processing",
|
|
323
|
+
Completed = "completed",
|
|
324
|
+
Failed = "failed"
|
|
325
|
+
}
|
|
326
|
+
export interface FieldDetectionJobDto {
|
|
327
|
+
/** Job ID */
|
|
328
|
+
id: string;
|
|
329
|
+
/** Document ID (if detecting for a document) */
|
|
330
|
+
documentId?: string;
|
|
331
|
+
/** Template ID (if detecting for a template) */
|
|
332
|
+
templateId?: string;
|
|
333
|
+
/** Current status of the field detection job */
|
|
334
|
+
status: FieldDetectionStatus;
|
|
335
|
+
/** OCR processing time in milliseconds */
|
|
336
|
+
ocrProcessingMs?: number;
|
|
337
|
+
/** AI processing time in milliseconds */
|
|
338
|
+
aiProcessingMs?: number;
|
|
339
|
+
/** Number of proposed fields detected */
|
|
340
|
+
proposedFieldCount?: number;
|
|
341
|
+
/** Error message if job failed */
|
|
342
|
+
errorMessage?: string;
|
|
343
|
+
/**
|
|
344
|
+
* Job creation timestamp
|
|
345
|
+
* @format date-time
|
|
346
|
+
*/
|
|
347
|
+
createdAt: string;
|
|
348
|
+
/**
|
|
349
|
+
* Job last update timestamp
|
|
350
|
+
* @format date-time
|
|
351
|
+
*/
|
|
352
|
+
updatedAt: string;
|
|
353
|
+
}
|
|
354
|
+
/** Review status of the proposed field */
|
|
355
|
+
export declare enum ProposedFieldStatus {
|
|
356
|
+
Pending = "pending",
|
|
357
|
+
Accepted = "accepted",
|
|
358
|
+
Rejected = "rejected",
|
|
359
|
+
Modified = "modified"
|
|
360
|
+
}
|
|
361
|
+
export interface ProposedFieldDto {
|
|
362
|
+
/** Proposed field ID */
|
|
363
|
+
id: string;
|
|
364
|
+
/** Document ID (if detecting for a document) */
|
|
365
|
+
documentId?: string;
|
|
366
|
+
/** Template ID (if detecting for a template) */
|
|
367
|
+
templateId?: string;
|
|
368
|
+
/** Parent job ID */
|
|
369
|
+
jobId: string;
|
|
370
|
+
/** Type of field detected */
|
|
371
|
+
fieldType: FieldType;
|
|
372
|
+
/** Page number where field was detected */
|
|
373
|
+
pageNumber: number;
|
|
374
|
+
/** X position in PDF coordinates */
|
|
375
|
+
xPosition: number;
|
|
376
|
+
/** Y position in PDF coordinates */
|
|
377
|
+
yPosition: number;
|
|
378
|
+
/** Field width in PDF coordinates */
|
|
379
|
+
width: number;
|
|
380
|
+
/** Field height in PDF coordinates */
|
|
381
|
+
height: number;
|
|
382
|
+
/** Confidence score 0-100 */
|
|
383
|
+
confidence: number;
|
|
384
|
+
/** Reason for detection */
|
|
385
|
+
detectionReason?: string;
|
|
386
|
+
/** Surrounding text context */
|
|
387
|
+
contextText?: string;
|
|
388
|
+
/** Review status of the proposed field */
|
|
389
|
+
status: ProposedFieldStatus;
|
|
390
|
+
/** ID of the accepted field (if accepted) */
|
|
391
|
+
acceptedFieldId?: string;
|
|
392
|
+
/**
|
|
393
|
+
* When the field was reviewed
|
|
394
|
+
* @format date-time
|
|
395
|
+
*/
|
|
396
|
+
reviewedAt?: string;
|
|
397
|
+
/**
|
|
398
|
+
* Creation timestamp
|
|
399
|
+
* @format date-time
|
|
400
|
+
*/
|
|
401
|
+
createdAt: string;
|
|
402
|
+
/**
|
|
403
|
+
* Last update timestamp
|
|
404
|
+
* @format date-time
|
|
405
|
+
*/
|
|
406
|
+
updatedAt: string;
|
|
407
|
+
}
|
|
408
|
+
export interface AcceptProposedFieldDto {
|
|
409
|
+
/** Signer ID to assign the field to */
|
|
410
|
+
signerId: string;
|
|
411
|
+
}
|
|
412
|
+
export interface AcceptAllProposedFieldsDto {
|
|
413
|
+
/** Signer ID to assign all fields to */
|
|
414
|
+
signerId: string;
|
|
415
|
+
/** Minimum confidence to accept (defaults to 70) */
|
|
416
|
+
minConfidence?: number;
|
|
417
|
+
}
|
|
418
|
+
export interface AcceptAllResultDto {
|
|
419
|
+
/** Number of fields accepted */
|
|
420
|
+
accepted: number;
|
|
421
|
+
/** Number of fields rejected */
|
|
422
|
+
rejected: number;
|
|
423
|
+
}
|
|
424
|
+
export interface AcceptTemplateProposedFieldDto {
|
|
425
|
+
/** Signer role ID to assign the field to */
|
|
426
|
+
signerRoleId?: string;
|
|
427
|
+
}
|
|
428
|
+
export interface AcceptAllTemplateProposedFieldsDto {
|
|
429
|
+
/** Signer role ID to assign all fields to */
|
|
430
|
+
signerRoleId?: string;
|
|
431
|
+
/** Minimum confidence to accept (defaults to 70) */
|
|
432
|
+
minConfidence?: number;
|
|
433
|
+
}
|
|
434
|
+
export interface CreateSavedSignatureDto {
|
|
435
|
+
/** @example "ceo@company.com" */
|
|
436
|
+
email: string;
|
|
437
|
+
/** @example "Jane Smith" */
|
|
438
|
+
name: string;
|
|
439
|
+
/**
|
|
440
|
+
* Base64 data URL or uploaded image URL
|
|
441
|
+
* @example "data:image/png;base64,..."
|
|
442
|
+
*/
|
|
443
|
+
signatureImageUrl: string;
|
|
444
|
+
/** @default true */
|
|
445
|
+
isDefault?: boolean;
|
|
446
|
+
}
|
|
447
|
+
export interface SavedSignatureDto {
|
|
448
|
+
id: string;
|
|
449
|
+
email: string;
|
|
450
|
+
name: string;
|
|
451
|
+
signatureImageUrl: string;
|
|
452
|
+
isDefault: boolean;
|
|
453
|
+
/** @format date-time */
|
|
454
|
+
createdAt: string;
|
|
455
|
+
/** @format date-time */
|
|
456
|
+
updatedAt: string;
|
|
457
|
+
}
|
|
458
|
+
export interface CreateTemplateUploadUrlDto {
|
|
459
|
+
/** @example "contract-template.pdf" */
|
|
460
|
+
filename: string;
|
|
461
|
+
/**
|
|
462
|
+
* MIME type of the file. Supported: application/pdf, application/vnd.openxmlformats-officedocument.wordprocessingml.document
|
|
463
|
+
* @example "application/pdf"
|
|
464
|
+
*/
|
|
465
|
+
contentType: string;
|
|
466
|
+
}
|
|
467
|
+
export interface TemplateUploadUrlResponseDto {
|
|
468
|
+
templateId: string;
|
|
469
|
+
uploadUrl: string;
|
|
470
|
+
key: string;
|
|
471
|
+
}
|
|
472
|
+
export interface CreateTemplateDto {
|
|
473
|
+
/** @example "NDA Template" */
|
|
474
|
+
name: string;
|
|
475
|
+
/** @example "Standard non-disclosure agreement" */
|
|
476
|
+
description?: string;
|
|
477
|
+
}
|
|
478
|
+
export declare enum TemplateType {
|
|
479
|
+
Pdf = "pdf",
|
|
480
|
+
Docx = "docx"
|
|
481
|
+
}
|
|
482
|
+
export interface DetectedMergeFieldDto {
|
|
483
|
+
/** @example "client_name" */
|
|
484
|
+
name: string;
|
|
485
|
+
/** @example 3 */
|
|
486
|
+
occurrences: number;
|
|
487
|
+
}
|
|
488
|
+
export interface TemplateDto {
|
|
489
|
+
id: string;
|
|
490
|
+
name: string;
|
|
491
|
+
description?: string | null;
|
|
492
|
+
/** @default "pdf" */
|
|
493
|
+
templateType: TemplateType;
|
|
494
|
+
baseFileUrl: string;
|
|
495
|
+
isActive: boolean;
|
|
496
|
+
/** Auto-detected merge fields from DOCX template (null for PDF templates) */
|
|
497
|
+
detectedMergeFields?: DetectedMergeFieldDto[] | null;
|
|
498
|
+
/** @format date-time */
|
|
499
|
+
createdAt: string;
|
|
500
|
+
/** @format date-time */
|
|
501
|
+
updatedAt: string;
|
|
502
|
+
}
|
|
503
|
+
export declare enum TemplateSortBy {
|
|
504
|
+
CreatedAt = "createdAt",
|
|
505
|
+
Name = "name",
|
|
506
|
+
Status = "status"
|
|
507
|
+
}
|
|
508
|
+
export interface TemplateSignerRoleDto {
|
|
509
|
+
id: string;
|
|
510
|
+
templateId: string;
|
|
511
|
+
name: string;
|
|
512
|
+
signingOrder: number;
|
|
513
|
+
/** @format date-time */
|
|
514
|
+
createdAt: string;
|
|
515
|
+
/** @format date-time */
|
|
516
|
+
updatedAt: string;
|
|
517
|
+
}
|
|
518
|
+
export interface TemplateFieldDto {
|
|
519
|
+
id: string;
|
|
520
|
+
templateId: string;
|
|
521
|
+
signerRoleId?: string | null;
|
|
522
|
+
fieldType: FieldType;
|
|
523
|
+
pageNumber: number;
|
|
524
|
+
xPosition: number;
|
|
525
|
+
yPosition: number;
|
|
526
|
+
width: number;
|
|
527
|
+
height: number;
|
|
528
|
+
required: boolean;
|
|
529
|
+
mergeFieldName?: string | null;
|
|
530
|
+
defaultValue?: string | null;
|
|
531
|
+
/** @format date-time */
|
|
532
|
+
createdAt: string;
|
|
533
|
+
/** @format date-time */
|
|
534
|
+
updatedAt: string;
|
|
535
|
+
}
|
|
536
|
+
export interface TemplateWithDetailsDto {
|
|
537
|
+
id: string;
|
|
538
|
+
name: string;
|
|
539
|
+
description?: string | null;
|
|
540
|
+
/** @default "pdf" */
|
|
541
|
+
templateType: TemplateType;
|
|
542
|
+
baseFileUrl: string;
|
|
543
|
+
isActive: boolean;
|
|
544
|
+
/** Auto-detected merge fields from DOCX template (null for PDF templates) */
|
|
545
|
+
detectedMergeFields?: DetectedMergeFieldDto[] | null;
|
|
546
|
+
/** @format date-time */
|
|
547
|
+
createdAt: string;
|
|
548
|
+
/** @format date-time */
|
|
549
|
+
updatedAt: string;
|
|
550
|
+
signerRoles: TemplateSignerRoleDto[];
|
|
551
|
+
fields: TemplateFieldDto[];
|
|
552
|
+
}
|
|
553
|
+
export interface UpdateTemplateDto {
|
|
554
|
+
/** @example "NDA Template v2" */
|
|
555
|
+
name?: string;
|
|
556
|
+
/** @example "Updated non-disclosure agreement" */
|
|
557
|
+
description?: string;
|
|
558
|
+
/** @example true */
|
|
559
|
+
isActive?: boolean;
|
|
560
|
+
}
|
|
561
|
+
export interface CreateSignerRoleDto {
|
|
562
|
+
/** @example "Client" */
|
|
563
|
+
name: string;
|
|
564
|
+
/** @example 1 */
|
|
565
|
+
signingOrder?: number;
|
|
566
|
+
}
|
|
567
|
+
export interface UpdateSignerRoleDto {
|
|
568
|
+
/** @example "Approver" */
|
|
569
|
+
name?: string;
|
|
570
|
+
/** @example 2 */
|
|
571
|
+
signingOrder?: number;
|
|
572
|
+
}
|
|
573
|
+
export interface CreateTemplateFieldDto {
|
|
574
|
+
/** Signer role ID (optional for non-signing fields) */
|
|
575
|
+
signerRoleId?: string;
|
|
576
|
+
fieldType: FieldType;
|
|
577
|
+
/** @example 1 */
|
|
578
|
+
pageNumber: number;
|
|
579
|
+
/** @example 100 */
|
|
580
|
+
xPosition: number;
|
|
581
|
+
/** @example 200 */
|
|
582
|
+
yPosition: number;
|
|
583
|
+
/** @example 200 */
|
|
584
|
+
width: number;
|
|
585
|
+
/** @example 50 */
|
|
586
|
+
height: number;
|
|
587
|
+
/** @example true */
|
|
588
|
+
required?: boolean;
|
|
589
|
+
/** @example "client_name" */
|
|
590
|
+
mergeFieldName?: string;
|
|
591
|
+
/** @example "Default value" */
|
|
592
|
+
defaultValue?: string;
|
|
593
|
+
}
|
|
594
|
+
export interface UpdateTemplateFieldDto {
|
|
595
|
+
/** Signer role ID (set to null to unassign, omit to keep unchanged) */
|
|
596
|
+
signerRoleId?: string | null;
|
|
597
|
+
/** @example 100 */
|
|
598
|
+
xPosition?: number;
|
|
599
|
+
/** @example 200 */
|
|
600
|
+
yPosition?: number;
|
|
601
|
+
/** @example 200 */
|
|
602
|
+
width?: number;
|
|
603
|
+
/** @example 50 */
|
|
604
|
+
height?: number;
|
|
605
|
+
/** @example true */
|
|
606
|
+
required?: boolean;
|
|
607
|
+
/** @example "client_name" */
|
|
608
|
+
mergeFieldName?: string;
|
|
609
|
+
/** @example "Default value" */
|
|
610
|
+
defaultValue?: string;
|
|
611
|
+
}
|
|
612
|
+
export interface CreateDocumentFromTemplateDto {
|
|
613
|
+
/** @example "NDA - Acme Corp" */
|
|
614
|
+
name: string;
|
|
615
|
+
/**
|
|
616
|
+
* Map of signer role ID to signer details (required if template has signer roles)
|
|
617
|
+
* @example {"role-id-1":{"email":"client@acme.com","name":"John Doe"}}
|
|
618
|
+
*/
|
|
619
|
+
signers?: object;
|
|
620
|
+
/**
|
|
621
|
+
* Variables to substitute in text fields (PDF) or DOCX body placeholders (DOCX)
|
|
622
|
+
* @example {"client_name":"Acme Corporation","contract_date":"2026-01-15"}
|
|
623
|
+
*/
|
|
624
|
+
variables?: object;
|
|
625
|
+
/**
|
|
626
|
+
* Suppress all email notifications for this document
|
|
627
|
+
* @default false
|
|
628
|
+
*/
|
|
629
|
+
suppressNotifications?: boolean;
|
|
630
|
+
}
|
|
631
|
+
export interface GenerateDocumentDto {
|
|
632
|
+
/**
|
|
633
|
+
* Variables to fill in template fields (by merge field name). For DOCX templates, these substitute {{placeholder}} tags in the document body. Falls back to default values if not provided.
|
|
634
|
+
* @example {"client_name":"Acme Corporation","contract_date":"2026-01-15"}
|
|
635
|
+
*/
|
|
636
|
+
variables?: object;
|
|
637
|
+
}
|
|
638
|
+
export interface GeneratedDocumentDto {
|
|
639
|
+
/** URL to download the generated PDF */
|
|
640
|
+
url: string;
|
|
641
|
+
/**
|
|
642
|
+
* Expiration time for the download URL
|
|
643
|
+
* @format date-time
|
|
644
|
+
*/
|
|
645
|
+
expiresAt: string;
|
|
646
|
+
}
|
|
647
|
+
export interface CreateWorkflowDefinitionDto {
|
|
648
|
+
/** @example "Proof of Address Extraction" */
|
|
649
|
+
name: string;
|
|
650
|
+
/** @example "proof-of-address" */
|
|
651
|
+
slug: string;
|
|
652
|
+
/** @example "Extract and validate proof of address documents" */
|
|
653
|
+
description?: string;
|
|
654
|
+
/**
|
|
655
|
+
* Array of step configurations
|
|
656
|
+
* @example [{"type":"capture","config":{"acceptedTypes":["application/pdf"],"maxSizeMb":10}},{"type":"ocr","config":{"provider":"auto"}}]
|
|
657
|
+
*/
|
|
658
|
+
steps: string[];
|
|
659
|
+
/** Expected input schema (JSON Schema format) */
|
|
660
|
+
inputSchema?: object;
|
|
661
|
+
/** Expected output schema (JSON Schema format) */
|
|
662
|
+
outputSchema?: object;
|
|
663
|
+
/**
|
|
664
|
+
* Whether this workflow is publicly accessible for demos
|
|
665
|
+
* @default false
|
|
666
|
+
*/
|
|
667
|
+
isPublic?: boolean;
|
|
668
|
+
}
|
|
669
|
+
export declare enum WorkflowStepType {
|
|
670
|
+
Capture = "capture",
|
|
671
|
+
Ocr = "ocr",
|
|
672
|
+
Extract = "extract",
|
|
673
|
+
Validate = "validate",
|
|
674
|
+
Enrich = "enrich",
|
|
675
|
+
Output = "output"
|
|
676
|
+
}
|
|
677
|
+
export interface WorkflowStepDto {
|
|
678
|
+
type: WorkflowStepType;
|
|
679
|
+
config: object;
|
|
680
|
+
}
|
|
681
|
+
export interface WorkflowDefinitionDto {
|
|
682
|
+
id: string;
|
|
683
|
+
organizationId?: string | null;
|
|
684
|
+
name: string;
|
|
685
|
+
slug: string;
|
|
686
|
+
description?: string | null;
|
|
687
|
+
steps: WorkflowStepDto[];
|
|
688
|
+
inputSchema?: object | null;
|
|
689
|
+
outputSchema?: object | null;
|
|
690
|
+
isPublic: boolean;
|
|
691
|
+
isActive: boolean;
|
|
692
|
+
/** @format date-time */
|
|
693
|
+
createdAt: string;
|
|
694
|
+
/** @format date-time */
|
|
695
|
+
updatedAt: string;
|
|
696
|
+
}
|
|
697
|
+
export interface PaginatedWorkflowDefinitionsDto {
|
|
698
|
+
data: WorkflowDefinitionDto[];
|
|
699
|
+
/** Total number of workflows */
|
|
700
|
+
total: number;
|
|
701
|
+
/** Current page number */
|
|
702
|
+
page: number;
|
|
703
|
+
/** Number of items per page */
|
|
704
|
+
limit: number;
|
|
705
|
+
/** Total number of pages */
|
|
706
|
+
totalPages: number;
|
|
707
|
+
}
|
|
708
|
+
export interface StartWorkflowRunDto {
|
|
709
|
+
/**
|
|
710
|
+
* Additional input data for the workflow
|
|
711
|
+
* @example {"customField":"value"}
|
|
712
|
+
*/
|
|
713
|
+
inputData?: object;
|
|
714
|
+
}
|
|
715
|
+
export declare enum WorkflowRunStatus {
|
|
716
|
+
Pending = "pending",
|
|
717
|
+
Running = "running",
|
|
718
|
+
Completed = "completed",
|
|
719
|
+
Failed = "failed"
|
|
720
|
+
}
|
|
721
|
+
export interface StartWorkflowRunResponseDto {
|
|
722
|
+
/** The workflow run ID to poll for status */
|
|
723
|
+
runId: string;
|
|
724
|
+
/** Pre-signed URL to upload the document */
|
|
725
|
+
uploadUrl: string;
|
|
726
|
+
/** Storage key for the uploaded file */
|
|
727
|
+
key: string;
|
|
728
|
+
status: WorkflowRunStatus;
|
|
729
|
+
}
|
|
730
|
+
export interface WorkflowRunDto {
|
|
731
|
+
id: string;
|
|
732
|
+
workflowDefinitionId: string;
|
|
733
|
+
organizationId?: string | null;
|
|
734
|
+
status: WorkflowRunStatus;
|
|
735
|
+
inputData?: object | null;
|
|
736
|
+
outputData?: object | null;
|
|
737
|
+
currentStep: number;
|
|
738
|
+
errorMessage?: string | null;
|
|
739
|
+
inputFileUrl?: string | null;
|
|
740
|
+
inputFileMimeType?: string | null;
|
|
741
|
+
/** @format date-time */
|
|
742
|
+
startedAt?: string | null;
|
|
743
|
+
/** @format date-time */
|
|
744
|
+
completedAt?: string | null;
|
|
745
|
+
/** @format date-time */
|
|
746
|
+
createdAt: string;
|
|
747
|
+
}
|
|
748
|
+
export interface PaginatedWorkflowRunsDto {
|
|
749
|
+
data: WorkflowRunDto[];
|
|
750
|
+
/** Total number of runs */
|
|
751
|
+
total: number;
|
|
752
|
+
/** Current page number */
|
|
753
|
+
page: number;
|
|
754
|
+
/** Number of items per page */
|
|
755
|
+
limit: number;
|
|
756
|
+
/** Total number of pages */
|
|
757
|
+
totalPages: number;
|
|
758
|
+
}
|
|
759
|
+
export declare enum WorkflowStepRunStatus {
|
|
760
|
+
Pending = "pending",
|
|
761
|
+
Running = "running",
|
|
762
|
+
Completed = "completed",
|
|
763
|
+
Failed = "failed",
|
|
764
|
+
Skipped = "skipped"
|
|
765
|
+
}
|
|
766
|
+
export interface WorkflowStepRunDto {
|
|
767
|
+
id: string;
|
|
768
|
+
workflowRunId: string;
|
|
769
|
+
stepIndex: number;
|
|
770
|
+
stepType: WorkflowStepType;
|
|
771
|
+
status: WorkflowStepRunStatus;
|
|
772
|
+
inputData?: object | null;
|
|
773
|
+
outputData?: object | null;
|
|
774
|
+
errorMessage?: string | null;
|
|
775
|
+
processingTimeMs?: number | null;
|
|
776
|
+
/** @format date-time */
|
|
777
|
+
createdAt: string;
|
|
778
|
+
/** @format date-time */
|
|
779
|
+
completedAt?: string | null;
|
|
780
|
+
}
|
|
781
|
+
export interface WorkflowRunWithStepsDto {
|
|
782
|
+
id: string;
|
|
783
|
+
workflowDefinitionId: string;
|
|
784
|
+
organizationId?: string | null;
|
|
785
|
+
status: WorkflowRunStatus;
|
|
786
|
+
inputData?: object | null;
|
|
787
|
+
outputData?: object | null;
|
|
788
|
+
currentStep: number;
|
|
789
|
+
errorMessage?: string | null;
|
|
790
|
+
inputFileUrl?: string | null;
|
|
791
|
+
inputFileMimeType?: string | null;
|
|
792
|
+
/** @format date-time */
|
|
793
|
+
startedAt?: string | null;
|
|
794
|
+
/** @format date-time */
|
|
795
|
+
completedAt?: string | null;
|
|
796
|
+
/** @format date-time */
|
|
797
|
+
createdAt: string;
|
|
798
|
+
stepRuns: WorkflowStepRunDto[];
|
|
799
|
+
}
|
|
800
|
+
export interface ConfirmWorkflowUploadDto {
|
|
801
|
+
/** Additional metadata about the upload */
|
|
802
|
+
metadata?: object;
|
|
803
|
+
}
|
|
804
|
+
export interface DocumentsControllerFindAllV1Params {
|
|
805
|
+
sortBy?: DocumentSortBy;
|
|
806
|
+
sortOrder?: SortOrder;
|
|
807
|
+
/**
|
|
808
|
+
* Page number (1-based)
|
|
809
|
+
* @min 1
|
|
810
|
+
* @default 1
|
|
811
|
+
*/
|
|
812
|
+
page?: number;
|
|
813
|
+
/**
|
|
814
|
+
* Number of items per page
|
|
815
|
+
* @min 1
|
|
816
|
+
* @max 100
|
|
817
|
+
* @default 10
|
|
818
|
+
*/
|
|
819
|
+
limit?: number;
|
|
820
|
+
}
|
|
821
|
+
export interface SignaturesControllerFindAllV1Params {
|
|
822
|
+
/**
|
|
823
|
+
* Filter by signer email
|
|
824
|
+
* @example "ceo@company.com"
|
|
825
|
+
*/
|
|
826
|
+
email?: string;
|
|
827
|
+
}
|
|
828
|
+
export interface TemplatesControllerFindAllV1Params {
|
|
829
|
+
sortBy?: TemplateSortBy;
|
|
830
|
+
sortOrder?: SortOrder;
|
|
831
|
+
}
|
|
832
|
+
export interface WorkflowsControllerFindAllDefinitionsV1Params {
|
|
833
|
+
/**
|
|
834
|
+
* Page number (1-based)
|
|
835
|
+
* @min 1
|
|
836
|
+
* @default 1
|
|
837
|
+
*/
|
|
838
|
+
page?: number;
|
|
839
|
+
/**
|
|
840
|
+
* Number of items per page
|
|
841
|
+
* @min 1
|
|
842
|
+
* @max 100
|
|
843
|
+
* @default 10
|
|
844
|
+
*/
|
|
845
|
+
limit?: number;
|
|
846
|
+
/**
|
|
847
|
+
* Include public workflows in results
|
|
848
|
+
* @default true
|
|
849
|
+
*/
|
|
850
|
+
includePublic?: boolean;
|
|
851
|
+
}
|
|
852
|
+
export interface WorkflowsControllerFindAllRunsV1Params {
|
|
853
|
+
/** Filter by workflow definition ID */
|
|
854
|
+
workflowDefinitionId?: string;
|
|
855
|
+
/**
|
|
856
|
+
* Page number (1-based)
|
|
857
|
+
* @min 1
|
|
858
|
+
* @default 1
|
|
859
|
+
*/
|
|
860
|
+
page?: number;
|
|
861
|
+
/**
|
|
862
|
+
* Number of items per page
|
|
863
|
+
* @min 1
|
|
864
|
+
* @max 100
|
|
865
|
+
* @default 10
|
|
866
|
+
*/
|
|
867
|
+
limit?: number;
|
|
868
|
+
}
|
|
869
|
+
export interface PublicWorkflowsControllerFindAllPublicDefinitionsV1Params {
|
|
870
|
+
/**
|
|
871
|
+
* Page number (1-based)
|
|
872
|
+
* @min 1
|
|
873
|
+
* @default 1
|
|
874
|
+
*/
|
|
875
|
+
page?: number;
|
|
876
|
+
/**
|
|
877
|
+
* Number of items per page
|
|
878
|
+
* @min 1
|
|
879
|
+
* @max 100
|
|
880
|
+
* @default 10
|
|
881
|
+
*/
|
|
882
|
+
limit?: number;
|
|
883
|
+
/**
|
|
884
|
+
* Include public workflows in results
|
|
885
|
+
* @default true
|
|
886
|
+
*/
|
|
887
|
+
includePublic?: boolean;
|
|
888
|
+
}
|
|
889
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,kBAAkB;IACjC,8BAA8B;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,cAAc;IACxB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,wBAAwB;IAC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AC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mCAAmC;IAClD;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kCAAkC;IACjD,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,MAAM,WAAW,6CAA6C;IAC5D;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,sCAAsC;IACrD,uCAAuC;IACvC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,yDAAyD;IACxE;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.WorkflowStepRunStatus = exports.WorkflowRunStatus = exports.WorkflowStepType = exports.TemplateSortBy = exports.TemplateType = exports.ProposedFieldStatus = exports.FieldDetectionStatus = exports.WebhookDeliveryStatus = exports.WebhookEventType = exports.FieldType = exports.AuthMethod = exports.SignerStatus = exports.SignerRole = exports.SortOrder = exports.DocumentSortBy = exports.DocumentStatus = void 0;
|
|
14
|
+
var DocumentStatus;
|
|
15
|
+
(function (DocumentStatus) {
|
|
16
|
+
DocumentStatus["Draft"] = "draft";
|
|
17
|
+
DocumentStatus["Pending"] = "pending";
|
|
18
|
+
DocumentStatus["Completing"] = "completing";
|
|
19
|
+
DocumentStatus["Completed"] = "completed";
|
|
20
|
+
DocumentStatus["Failed"] = "failed";
|
|
21
|
+
DocumentStatus["Voided"] = "voided";
|
|
22
|
+
DocumentStatus["Expired"] = "expired";
|
|
23
|
+
})(DocumentStatus || (exports.DocumentStatus = DocumentStatus = {}));
|
|
24
|
+
var DocumentSortBy;
|
|
25
|
+
(function (DocumentSortBy) {
|
|
26
|
+
DocumentSortBy["CreatedAt"] = "createdAt";
|
|
27
|
+
DocumentSortBy["Name"] = "name";
|
|
28
|
+
DocumentSortBy["Status"] = "status";
|
|
29
|
+
})(DocumentSortBy || (exports.DocumentSortBy = DocumentSortBy = {}));
|
|
30
|
+
var SortOrder;
|
|
31
|
+
(function (SortOrder) {
|
|
32
|
+
SortOrder["Asc"] = "asc";
|
|
33
|
+
SortOrder["Desc"] = "desc";
|
|
34
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
35
|
+
var SignerRole;
|
|
36
|
+
(function (SignerRole) {
|
|
37
|
+
SignerRole["Signer"] = "signer";
|
|
38
|
+
SignerRole["Approver"] = "approver";
|
|
39
|
+
SignerRole["Cc"] = "cc";
|
|
40
|
+
})(SignerRole || (exports.SignerRole = SignerRole = {}));
|
|
41
|
+
var SignerStatus;
|
|
42
|
+
(function (SignerStatus) {
|
|
43
|
+
SignerStatus["Pending"] = "pending";
|
|
44
|
+
SignerStatus["Viewed"] = "viewed";
|
|
45
|
+
SignerStatus["Signed"] = "signed";
|
|
46
|
+
SignerStatus["Declined"] = "declined";
|
|
47
|
+
})(SignerStatus || (exports.SignerStatus = SignerStatus = {}));
|
|
48
|
+
var AuthMethod;
|
|
49
|
+
(function (AuthMethod) {
|
|
50
|
+
AuthMethod["EmailLink"] = "email_link";
|
|
51
|
+
AuthMethod["WalletSignature"] = "wallet_signature";
|
|
52
|
+
AuthMethod["SmsOtp"] = "sms_otp";
|
|
53
|
+
})(AuthMethod || (exports.AuthMethod = AuthMethod = {}));
|
|
54
|
+
var FieldType;
|
|
55
|
+
(function (FieldType) {
|
|
56
|
+
FieldType["Signature"] = "signature";
|
|
57
|
+
FieldType["Initials"] = "initials";
|
|
58
|
+
FieldType["Date"] = "date";
|
|
59
|
+
FieldType["Text"] = "text";
|
|
60
|
+
FieldType["Checkbox"] = "checkbox";
|
|
61
|
+
})(FieldType || (exports.FieldType = FieldType = {}));
|
|
62
|
+
var WebhookEventType;
|
|
63
|
+
(function (WebhookEventType) {
|
|
64
|
+
WebhookEventType["DocumentCreated"] = "document_created";
|
|
65
|
+
WebhookEventType["DocumentSent"] = "document_sent";
|
|
66
|
+
WebhookEventType["DocumentViewed"] = "document_viewed";
|
|
67
|
+
WebhookEventType["DocumentSigned"] = "document_signed";
|
|
68
|
+
WebhookEventType["DocumentCompleted"] = "document_completed";
|
|
69
|
+
WebhookEventType["DocumentFailed"] = "document_failed";
|
|
70
|
+
WebhookEventType["DocumentVoided"] = "document_voided";
|
|
71
|
+
WebhookEventType["DocumentDeclined"] = "document_declined";
|
|
72
|
+
})(WebhookEventType || (exports.WebhookEventType = WebhookEventType = {}));
|
|
73
|
+
var WebhookDeliveryStatus;
|
|
74
|
+
(function (WebhookDeliveryStatus) {
|
|
75
|
+
WebhookDeliveryStatus["Pending"] = "pending";
|
|
76
|
+
WebhookDeliveryStatus["Success"] = "success";
|
|
77
|
+
WebhookDeliveryStatus["Failed"] = "failed";
|
|
78
|
+
WebhookDeliveryStatus["Retrying"] = "retrying";
|
|
79
|
+
})(WebhookDeliveryStatus || (exports.WebhookDeliveryStatus = WebhookDeliveryStatus = {}));
|
|
80
|
+
/** Current status of the field detection job */
|
|
81
|
+
var FieldDetectionStatus;
|
|
82
|
+
(function (FieldDetectionStatus) {
|
|
83
|
+
FieldDetectionStatus["Queued"] = "queued";
|
|
84
|
+
FieldDetectionStatus["OcrProcessing"] = "ocr_processing";
|
|
85
|
+
FieldDetectionStatus["AiProcessing"] = "ai_processing";
|
|
86
|
+
FieldDetectionStatus["Completed"] = "completed";
|
|
87
|
+
FieldDetectionStatus["Failed"] = "failed";
|
|
88
|
+
})(FieldDetectionStatus || (exports.FieldDetectionStatus = FieldDetectionStatus = {}));
|
|
89
|
+
/** Review status of the proposed field */
|
|
90
|
+
var ProposedFieldStatus;
|
|
91
|
+
(function (ProposedFieldStatus) {
|
|
92
|
+
ProposedFieldStatus["Pending"] = "pending";
|
|
93
|
+
ProposedFieldStatus["Accepted"] = "accepted";
|
|
94
|
+
ProposedFieldStatus["Rejected"] = "rejected";
|
|
95
|
+
ProposedFieldStatus["Modified"] = "modified";
|
|
96
|
+
})(ProposedFieldStatus || (exports.ProposedFieldStatus = ProposedFieldStatus = {}));
|
|
97
|
+
var TemplateType;
|
|
98
|
+
(function (TemplateType) {
|
|
99
|
+
TemplateType["Pdf"] = "pdf";
|
|
100
|
+
TemplateType["Docx"] = "docx";
|
|
101
|
+
})(TemplateType || (exports.TemplateType = TemplateType = {}));
|
|
102
|
+
var TemplateSortBy;
|
|
103
|
+
(function (TemplateSortBy) {
|
|
104
|
+
TemplateSortBy["CreatedAt"] = "createdAt";
|
|
105
|
+
TemplateSortBy["Name"] = "name";
|
|
106
|
+
TemplateSortBy["Status"] = "status";
|
|
107
|
+
})(TemplateSortBy || (exports.TemplateSortBy = TemplateSortBy = {}));
|
|
108
|
+
var WorkflowStepType;
|
|
109
|
+
(function (WorkflowStepType) {
|
|
110
|
+
WorkflowStepType["Capture"] = "capture";
|
|
111
|
+
WorkflowStepType["Ocr"] = "ocr";
|
|
112
|
+
WorkflowStepType["Extract"] = "extract";
|
|
113
|
+
WorkflowStepType["Validate"] = "validate";
|
|
114
|
+
WorkflowStepType["Enrich"] = "enrich";
|
|
115
|
+
WorkflowStepType["Output"] = "output";
|
|
116
|
+
})(WorkflowStepType || (exports.WorkflowStepType = WorkflowStepType = {}));
|
|
117
|
+
var WorkflowRunStatus;
|
|
118
|
+
(function (WorkflowRunStatus) {
|
|
119
|
+
WorkflowRunStatus["Pending"] = "pending";
|
|
120
|
+
WorkflowRunStatus["Running"] = "running";
|
|
121
|
+
WorkflowRunStatus["Completed"] = "completed";
|
|
122
|
+
WorkflowRunStatus["Failed"] = "failed";
|
|
123
|
+
})(WorkflowRunStatus || (exports.WorkflowRunStatus = WorkflowRunStatus = {}));
|
|
124
|
+
var WorkflowStepRunStatus;
|
|
125
|
+
(function (WorkflowStepRunStatus) {
|
|
126
|
+
WorkflowStepRunStatus["Pending"] = "pending";
|
|
127
|
+
WorkflowStepRunStatus["Running"] = "running";
|
|
128
|
+
WorkflowStepRunStatus["Completed"] = "completed";
|
|
129
|
+
WorkflowStepRunStatus["Failed"] = "failed";
|
|
130
|
+
WorkflowStepRunStatus["Skipped"] = "skipped";
|
|
131
|
+
})(WorkflowStepRunStatus || (exports.WorkflowStepRunStatus = WorkflowStepRunStatus = {}));
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@korala/public-dtos",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Public TypeScript types for the Korala document signing API",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/korala-ai/korala.git",
|
|
9
|
+
"directory": "packages/public-dtos"
|
|
10
|
+
},
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=20.0"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"korala",
|
|
31
|
+
"document-signing",
|
|
32
|
+
"typescript",
|
|
33
|
+
"types",
|
|
34
|
+
"dto"
|
|
35
|
+
],
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"swagger-typescript-api": "13.0.22",
|
|
38
|
+
"typescript": "^5.9.3"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "tsc",
|
|
42
|
+
"typecheck": "tsc --noEmit",
|
|
43
|
+
"check": "biome check --write .",
|
|
44
|
+
"generate": "swagger-typescript-api -p http://localhost:3005/docs-public-json -o ./src --no-client --extract-request-params -n index.ts"
|
|
45
|
+
}
|
|
46
|
+
}
|