instasign 1.0.2 → 1.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/CHANGELOG.md +10 -0
- package/README.md +3 -3
- package/dist/index.cjs +201 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1406 -0
- package/dist/index.d.ts +1394 -9
- package/dist/index.js +162 -26
- package/dist/index.js.map +1 -0
- package/package.json +25 -8
- package/{dist → types}/schema.d.ts +1 -0
- package/dist/resources/Envelopes.d.ts +0 -57
- package/dist/resources/Envelopes.js +0 -69
- package/dist/resources/SignRequests.d.ts +0 -23
- package/dist/resources/SignRequests.js +0 -27
- package/dist/resources/Webhooks.d.ts +0 -9
- package/dist/resources/Webhooks.js +0 -32
- package/dist/schema.js +0 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,1406 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { WebhookEventType, WebhookPayloadMap } from '@instasign/types';
|
|
3
|
+
|
|
4
|
+
type Metadata = Record<string, unknown>;
|
|
5
|
+
/** A sign request nested inside an envelope response */
|
|
6
|
+
interface EnvelopeSignRequest {
|
|
7
|
+
requestId?: string;
|
|
8
|
+
status?: Metadata;
|
|
9
|
+
fileName?: string;
|
|
10
|
+
fileUrl?: string;
|
|
11
|
+
signedFileUrl?: string;
|
|
12
|
+
metadata?: Metadata;
|
|
13
|
+
clientReferenceId?: string;
|
|
14
|
+
}
|
|
15
|
+
/** A full envelope with its sign requests */
|
|
16
|
+
interface Envelope {
|
|
17
|
+
signUrl?: string;
|
|
18
|
+
envelopeId?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
status?: Metadata;
|
|
22
|
+
clientReferenceId?: string;
|
|
23
|
+
signRequests?: EnvelopeSignRequest[];
|
|
24
|
+
}
|
|
25
|
+
/** Envelope as returned in a list (includes createdAt as ISO string) */
|
|
26
|
+
interface EnvelopeListItem extends Envelope {
|
|
27
|
+
createdAt?: string;
|
|
28
|
+
}
|
|
29
|
+
interface CreateEnvelopeParams {
|
|
30
|
+
/** The name of the envelope */
|
|
31
|
+
name: string;
|
|
32
|
+
/** The description of the envelope */
|
|
33
|
+
description?: string;
|
|
34
|
+
/** Associated metadata for the envelope */
|
|
35
|
+
metadata?: Metadata;
|
|
36
|
+
/** The expiration date of the envelope (ISO 8601) */
|
|
37
|
+
expirationDate?: string;
|
|
38
|
+
/** External reference ID for the client */
|
|
39
|
+
clientReferenceId?: string;
|
|
40
|
+
}
|
|
41
|
+
interface GetEnvelopesParams {
|
|
42
|
+
/** Filter by envelope name (case-insensitive regex) */
|
|
43
|
+
name?: string;
|
|
44
|
+
/** Filter by envelope status */
|
|
45
|
+
status?: string;
|
|
46
|
+
/** Filter by client reference ID */
|
|
47
|
+
clientReferenceId?: string;
|
|
48
|
+
signRequests?: Metadata[];
|
|
49
|
+
/** Field to order by (createdAt or updatedAt) */
|
|
50
|
+
orderBy?: string;
|
|
51
|
+
/** Order direction (asc or desc) */
|
|
52
|
+
orderDirection?: string;
|
|
53
|
+
/** Filter by expiration date greater than or equal to */
|
|
54
|
+
expirationDateStart?: string;
|
|
55
|
+
/** Filter by expiration date less than or equal to */
|
|
56
|
+
expirationDateEnd?: string;
|
|
57
|
+
/** Number of items to skip for pagination */
|
|
58
|
+
skip?: number;
|
|
59
|
+
/** Maximum number of items to return */
|
|
60
|
+
limit?: number;
|
|
61
|
+
}
|
|
62
|
+
interface UpdateEnvelopeMetadataParams {
|
|
63
|
+
/** The unique identifier of the envelope */
|
|
64
|
+
envelopeId: string;
|
|
65
|
+
/** The metadata to be merged into the existing envelope metadata */
|
|
66
|
+
metadata: Metadata;
|
|
67
|
+
}
|
|
68
|
+
interface RemoveSignRequestFromEnvelopeParams {
|
|
69
|
+
/** The unique identifier of the envelope */
|
|
70
|
+
envelopeId: string;
|
|
71
|
+
/** The unique identifier of the sign request */
|
|
72
|
+
requestId: string;
|
|
73
|
+
}
|
|
74
|
+
interface AddSignRequestToEnvelopeParams {
|
|
75
|
+
/** The unique identifier of the envelope */
|
|
76
|
+
envelopeId: string;
|
|
77
|
+
/** The name of the file to be signed */
|
|
78
|
+
filename: string;
|
|
79
|
+
/** The base64 encoded content of the file */
|
|
80
|
+
base64File?: string;
|
|
81
|
+
/** Remote URL of the file. MUST be publicly accessible. */
|
|
82
|
+
fileUrl?: string;
|
|
83
|
+
/** Associated metadata for the sign request */
|
|
84
|
+
metadata?: Metadata;
|
|
85
|
+
}
|
|
86
|
+
interface CreateEnvelopeResponse {
|
|
87
|
+
envelopeId?: string;
|
|
88
|
+
}
|
|
89
|
+
interface OperationResponse {
|
|
90
|
+
success?: boolean;
|
|
91
|
+
message?: string;
|
|
92
|
+
}
|
|
93
|
+
interface UpdateEnvelopeMetadataResponse {
|
|
94
|
+
envelopeId?: string;
|
|
95
|
+
metadata?: Metadata;
|
|
96
|
+
}
|
|
97
|
+
interface AddSignRequestToEnvelopeResponse {
|
|
98
|
+
requestId?: string;
|
|
99
|
+
signUrl?: string;
|
|
100
|
+
envelopeSignUrl?: string;
|
|
101
|
+
}
|
|
102
|
+
interface CreateSignRequestParams {
|
|
103
|
+
/** The name of the file to be signed */
|
|
104
|
+
filename: string;
|
|
105
|
+
/** The base64 encoded content of the file */
|
|
106
|
+
base64File?: string;
|
|
107
|
+
/** Remote URL of the file. MUST be publicly accessible. */
|
|
108
|
+
fileUrl?: string;
|
|
109
|
+
/** Associated metadata for the sign request */
|
|
110
|
+
metadata?: Metadata;
|
|
111
|
+
}
|
|
112
|
+
interface CompleteSignRequestParams {
|
|
113
|
+
/** The unique identifier of the sign request to complete */
|
|
114
|
+
requestId: string;
|
|
115
|
+
/** The base64 encoded content of the signed file */
|
|
116
|
+
signedFileDataBase64: string;
|
|
117
|
+
}
|
|
118
|
+
interface CreateSignRequestResponse {
|
|
119
|
+
requestId?: string;
|
|
120
|
+
signUrl?: string;
|
|
121
|
+
}
|
|
122
|
+
interface CompleteSignRequestResponse {
|
|
123
|
+
signedFileUrl?: string;
|
|
124
|
+
}
|
|
125
|
+
interface SignRequestFile {
|
|
126
|
+
requestId?: string;
|
|
127
|
+
name?: string;
|
|
128
|
+
originalFile?: string;
|
|
129
|
+
signedFile?: string;
|
|
130
|
+
metadata?: Metadata;
|
|
131
|
+
status?: string;
|
|
132
|
+
}
|
|
133
|
+
type WebhookEvent = {
|
|
134
|
+
[T in WebhookEventType]: {
|
|
135
|
+
eventType: T;
|
|
136
|
+
} & WebhookPayloadMap[T];
|
|
137
|
+
}[WebhookEventType];
|
|
138
|
+
|
|
139
|
+
declare class Envelopes {
|
|
140
|
+
private client;
|
|
141
|
+
constructor(client: AxiosInstance);
|
|
142
|
+
/**
|
|
143
|
+
* Create a new envelope
|
|
144
|
+
*/
|
|
145
|
+
create(params: CreateEnvelopeParams): Promise<CreateEnvelopeResponse | undefined>;
|
|
146
|
+
/**
|
|
147
|
+
* List envelopes
|
|
148
|
+
*/
|
|
149
|
+
list(params?: GetEnvelopesParams): Promise<EnvelopeListItem[] | undefined>;
|
|
150
|
+
/**
|
|
151
|
+
* Retrieve a single envelope with its sign requests
|
|
152
|
+
*/
|
|
153
|
+
get(envelopeId: string): Promise<Envelope | undefined>;
|
|
154
|
+
/**
|
|
155
|
+
* Complete an envelope
|
|
156
|
+
*/
|
|
157
|
+
complete(envelopeId: string): Promise<OperationResponse | undefined>;
|
|
158
|
+
/**
|
|
159
|
+
* Delete an envelope
|
|
160
|
+
*/
|
|
161
|
+
delete(envelopeId: string): Promise<OperationResponse | undefined>;
|
|
162
|
+
/**
|
|
163
|
+
* Update envelope metadata
|
|
164
|
+
*/
|
|
165
|
+
updateMetadata(params: UpdateEnvelopeMetadataParams): Promise<UpdateEnvelopeMetadataResponse | undefined>;
|
|
166
|
+
/**
|
|
167
|
+
* Remove a sign request from an envelope
|
|
168
|
+
*/
|
|
169
|
+
removeSignRequest(params: RemoveSignRequestFromEnvelopeParams): Promise<OperationResponse | undefined>;
|
|
170
|
+
/**
|
|
171
|
+
* Add a sign request to an envelope
|
|
172
|
+
*/
|
|
173
|
+
addSignRequest(params: AddSignRequestToEnvelopeParams): Promise<AddSignRequestToEnvelopeResponse | undefined>;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
declare class SignRequests {
|
|
177
|
+
private client;
|
|
178
|
+
constructor(client: AxiosInstance);
|
|
179
|
+
/**
|
|
180
|
+
* Create a new sign request
|
|
181
|
+
*/
|
|
182
|
+
create(params: CreateSignRequestParams): Promise<CreateSignRequestResponse | undefined>;
|
|
183
|
+
/**
|
|
184
|
+
* Complete a sign request
|
|
185
|
+
*/
|
|
186
|
+
complete(params: CompleteSignRequestParams): Promise<CompleteSignRequestResponse | undefined>;
|
|
187
|
+
/**
|
|
188
|
+
* Get the file associated with a sign request
|
|
189
|
+
*/
|
|
190
|
+
getFile(requestId: string): Promise<SignRequestFile | undefined>;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare class Webhooks {
|
|
194
|
+
private tolerance;
|
|
195
|
+
constructor(tolerance?: number);
|
|
196
|
+
/**
|
|
197
|
+
* Verify and parse a webhook event
|
|
198
|
+
*/
|
|
199
|
+
constructEvent(payload: string, signatureHeader: string, webhookSecret: string): WebhookEvent;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* This file was auto-generated by openapi-typescript.
|
|
204
|
+
* Do not make direct changes to the file.
|
|
205
|
+
*/
|
|
206
|
+
|
|
207
|
+
interface paths {
|
|
208
|
+
"/functions/addSignRequestToEnvelope": {
|
|
209
|
+
parameters: {
|
|
210
|
+
query?: never;
|
|
211
|
+
header?: never;
|
|
212
|
+
path?: never;
|
|
213
|
+
cookie?: never;
|
|
214
|
+
};
|
|
215
|
+
get?: never;
|
|
216
|
+
put?: never;
|
|
217
|
+
/** Cloud Function: addSignRequestToEnvelope */
|
|
218
|
+
post: {
|
|
219
|
+
parameters: {
|
|
220
|
+
query?: never;
|
|
221
|
+
header?: never;
|
|
222
|
+
path?: never;
|
|
223
|
+
cookie?: never;
|
|
224
|
+
};
|
|
225
|
+
requestBody?: {
|
|
226
|
+
content: {
|
|
227
|
+
"application/json": {
|
|
228
|
+
/** @description The unique identifier of the envelope */
|
|
229
|
+
envelopeId: string;
|
|
230
|
+
/** @description The name of the file to be signed */
|
|
231
|
+
filename: string;
|
|
232
|
+
/** @description The base64 encoded content of the file */
|
|
233
|
+
base64File?: string;
|
|
234
|
+
/** @description Remote URL of the file. MUST be publicly accessible. */
|
|
235
|
+
fileUrl?: string;
|
|
236
|
+
/** @description Associated metadata for the sign request */
|
|
237
|
+
metadata?: {
|
|
238
|
+
[key: string]: unknown;
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
responses: {
|
|
244
|
+
/** @description Successful response */
|
|
245
|
+
200: {
|
|
246
|
+
headers: {
|
|
247
|
+
[name: string]: unknown;
|
|
248
|
+
};
|
|
249
|
+
content: {
|
|
250
|
+
"application/json": {
|
|
251
|
+
result?: {
|
|
252
|
+
requestId?: string;
|
|
253
|
+
signUrl?: string;
|
|
254
|
+
envelopeSignUrl?: string;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
delete?: never;
|
|
262
|
+
options?: never;
|
|
263
|
+
head?: never;
|
|
264
|
+
patch?: never;
|
|
265
|
+
trace?: never;
|
|
266
|
+
};
|
|
267
|
+
"/functions/completeEnvelope": {
|
|
268
|
+
parameters: {
|
|
269
|
+
query?: never;
|
|
270
|
+
header?: never;
|
|
271
|
+
path?: never;
|
|
272
|
+
cookie?: never;
|
|
273
|
+
};
|
|
274
|
+
get?: never;
|
|
275
|
+
put?: never;
|
|
276
|
+
/** Cloud Function: completeEnvelope */
|
|
277
|
+
post: {
|
|
278
|
+
parameters: {
|
|
279
|
+
query?: never;
|
|
280
|
+
header?: never;
|
|
281
|
+
path?: never;
|
|
282
|
+
cookie?: never;
|
|
283
|
+
};
|
|
284
|
+
requestBody?: {
|
|
285
|
+
content: {
|
|
286
|
+
"application/json": {
|
|
287
|
+
/** @description The unique identifier of the envelope to mark as completed */
|
|
288
|
+
envelopeId: string;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
responses: {
|
|
293
|
+
/** @description Successful response */
|
|
294
|
+
200: {
|
|
295
|
+
headers: {
|
|
296
|
+
[name: string]: unknown;
|
|
297
|
+
};
|
|
298
|
+
content: {
|
|
299
|
+
"application/json": {
|
|
300
|
+
result?: {
|
|
301
|
+
success?: boolean;
|
|
302
|
+
message?: string;
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
delete?: never;
|
|
310
|
+
options?: never;
|
|
311
|
+
head?: never;
|
|
312
|
+
patch?: never;
|
|
313
|
+
trace?: never;
|
|
314
|
+
};
|
|
315
|
+
"/functions/createEnvelope": {
|
|
316
|
+
parameters: {
|
|
317
|
+
query?: never;
|
|
318
|
+
header?: never;
|
|
319
|
+
path?: never;
|
|
320
|
+
cookie?: never;
|
|
321
|
+
};
|
|
322
|
+
get?: never;
|
|
323
|
+
put?: never;
|
|
324
|
+
/** Cloud Function: createEnvelope */
|
|
325
|
+
post: {
|
|
326
|
+
parameters: {
|
|
327
|
+
query?: never;
|
|
328
|
+
header?: never;
|
|
329
|
+
path?: never;
|
|
330
|
+
cookie?: never;
|
|
331
|
+
};
|
|
332
|
+
requestBody?: {
|
|
333
|
+
content: {
|
|
334
|
+
"application/json": {
|
|
335
|
+
/** @description The name of the envelope */
|
|
336
|
+
name: string;
|
|
337
|
+
/** @description The description of the envelope */
|
|
338
|
+
description?: string;
|
|
339
|
+
/** @description Associated metadata for the envelope */
|
|
340
|
+
metadata?: {
|
|
341
|
+
[key: string]: unknown;
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* Format: date-time
|
|
345
|
+
* @description The expiration date of the envelope
|
|
346
|
+
*/
|
|
347
|
+
expirationDate?: string;
|
|
348
|
+
/** @description External reference ID for the client */
|
|
349
|
+
clientReferenceId?: string;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
responses: {
|
|
354
|
+
/** @description Successful response */
|
|
355
|
+
200: {
|
|
356
|
+
headers: {
|
|
357
|
+
[name: string]: unknown;
|
|
358
|
+
};
|
|
359
|
+
content: {
|
|
360
|
+
"application/json": {
|
|
361
|
+
result?: {
|
|
362
|
+
envelopeId?: string;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
delete?: never;
|
|
370
|
+
options?: never;
|
|
371
|
+
head?: never;
|
|
372
|
+
patch?: never;
|
|
373
|
+
trace?: never;
|
|
374
|
+
};
|
|
375
|
+
"/functions/deleteEnvelope": {
|
|
376
|
+
parameters: {
|
|
377
|
+
query?: never;
|
|
378
|
+
header?: never;
|
|
379
|
+
path?: never;
|
|
380
|
+
cookie?: never;
|
|
381
|
+
};
|
|
382
|
+
get?: never;
|
|
383
|
+
put?: never;
|
|
384
|
+
/** Cloud Function: deleteEnvelope */
|
|
385
|
+
post: {
|
|
386
|
+
parameters: {
|
|
387
|
+
query?: never;
|
|
388
|
+
header?: never;
|
|
389
|
+
path?: never;
|
|
390
|
+
cookie?: never;
|
|
391
|
+
};
|
|
392
|
+
requestBody?: {
|
|
393
|
+
content: {
|
|
394
|
+
"application/json": {
|
|
395
|
+
/** @description The unique identifier of the envelope to delete */
|
|
396
|
+
envelopeId: string;
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
responses: {
|
|
401
|
+
/** @description Successful response */
|
|
402
|
+
200: {
|
|
403
|
+
headers: {
|
|
404
|
+
[name: string]: unknown;
|
|
405
|
+
};
|
|
406
|
+
content: {
|
|
407
|
+
"application/json": {
|
|
408
|
+
result?: {
|
|
409
|
+
success?: boolean;
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
delete?: never;
|
|
417
|
+
options?: never;
|
|
418
|
+
head?: never;
|
|
419
|
+
patch?: never;
|
|
420
|
+
trace?: never;
|
|
421
|
+
};
|
|
422
|
+
"/functions/getEnvelope": {
|
|
423
|
+
parameters: {
|
|
424
|
+
query?: never;
|
|
425
|
+
header?: never;
|
|
426
|
+
path?: never;
|
|
427
|
+
cookie?: never;
|
|
428
|
+
};
|
|
429
|
+
get?: never;
|
|
430
|
+
put?: never;
|
|
431
|
+
/** Cloud Function: getEnvelope */
|
|
432
|
+
post: {
|
|
433
|
+
parameters: {
|
|
434
|
+
query?: never;
|
|
435
|
+
header?: never;
|
|
436
|
+
path?: never;
|
|
437
|
+
cookie?: never;
|
|
438
|
+
};
|
|
439
|
+
requestBody?: {
|
|
440
|
+
content: {
|
|
441
|
+
"application/json": {
|
|
442
|
+
/** @description The unique identifier of the envelope */
|
|
443
|
+
envelopeId: string;
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
responses: {
|
|
448
|
+
/** @description Successful response */
|
|
449
|
+
200: {
|
|
450
|
+
headers: {
|
|
451
|
+
[name: string]: unknown;
|
|
452
|
+
};
|
|
453
|
+
content: {
|
|
454
|
+
"application/json": {
|
|
455
|
+
result?: {
|
|
456
|
+
signUrl?: string;
|
|
457
|
+
envelopeId?: string;
|
|
458
|
+
name?: string;
|
|
459
|
+
description?: string;
|
|
460
|
+
status?: {
|
|
461
|
+
[key: string]: unknown;
|
|
462
|
+
};
|
|
463
|
+
clientReferenceId?: string;
|
|
464
|
+
signRequests?: {
|
|
465
|
+
requestId?: string;
|
|
466
|
+
status?: {
|
|
467
|
+
[key: string]: unknown;
|
|
468
|
+
};
|
|
469
|
+
fileName?: string;
|
|
470
|
+
fileUrl?: string;
|
|
471
|
+
signedFileUrl?: string;
|
|
472
|
+
metadata?: {
|
|
473
|
+
[key: string]: unknown;
|
|
474
|
+
};
|
|
475
|
+
clientReferenceId?: string;
|
|
476
|
+
}[];
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
delete?: never;
|
|
484
|
+
options?: never;
|
|
485
|
+
head?: never;
|
|
486
|
+
patch?: never;
|
|
487
|
+
trace?: never;
|
|
488
|
+
};
|
|
489
|
+
"/functions/getEnvelopes": {
|
|
490
|
+
parameters: {
|
|
491
|
+
query?: never;
|
|
492
|
+
header?: never;
|
|
493
|
+
path?: never;
|
|
494
|
+
cookie?: never;
|
|
495
|
+
};
|
|
496
|
+
get?: never;
|
|
497
|
+
put?: never;
|
|
498
|
+
/** Cloud Function: getEnvelopes */
|
|
499
|
+
post: {
|
|
500
|
+
parameters: {
|
|
501
|
+
query?: never;
|
|
502
|
+
header?: never;
|
|
503
|
+
path?: never;
|
|
504
|
+
cookie?: never;
|
|
505
|
+
};
|
|
506
|
+
requestBody?: {
|
|
507
|
+
content: {
|
|
508
|
+
"application/json": {
|
|
509
|
+
/** @description Filter by envelope name (case-insensitive regex) */
|
|
510
|
+
name?: string;
|
|
511
|
+
/** @description Filter by envelope status */
|
|
512
|
+
status?: string;
|
|
513
|
+
/** @description Filter by client reference ID */
|
|
514
|
+
clientReferenceId?: string;
|
|
515
|
+
/** @description Filter by a list of sign request IDs */
|
|
516
|
+
signRequests?: {
|
|
517
|
+
[key: string]: unknown;
|
|
518
|
+
}[];
|
|
519
|
+
/** @description Field to order by (createdAt or updatedAt) */
|
|
520
|
+
orderBy?: string;
|
|
521
|
+
/** @description Order direction (asc or desc) */
|
|
522
|
+
orderDirection?: string;
|
|
523
|
+
/** @description Filter by expiration date greater than or equal to */
|
|
524
|
+
expirationDateStart?: string;
|
|
525
|
+
/** @description Filter by expiration date less than or equal to */
|
|
526
|
+
expirationDateEnd?: string;
|
|
527
|
+
/** @description Number of items to skip for pagination */
|
|
528
|
+
skip?: number;
|
|
529
|
+
/** @description Maximum number of items to return */
|
|
530
|
+
limit?: number;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
responses: {
|
|
535
|
+
/** @description Successful response */
|
|
536
|
+
200: {
|
|
537
|
+
headers: {
|
|
538
|
+
[name: string]: unknown;
|
|
539
|
+
};
|
|
540
|
+
content: {
|
|
541
|
+
"application/json": {
|
|
542
|
+
result?: {
|
|
543
|
+
signUrl?: string;
|
|
544
|
+
envelopeId?: string;
|
|
545
|
+
name?: string;
|
|
546
|
+
description?: string;
|
|
547
|
+
status?: {
|
|
548
|
+
[key: string]: unknown;
|
|
549
|
+
};
|
|
550
|
+
clientReferenceId?: string;
|
|
551
|
+
signRequests?: {
|
|
552
|
+
requestId?: {
|
|
553
|
+
[key: string]: unknown;
|
|
554
|
+
};
|
|
555
|
+
status?: {
|
|
556
|
+
[key: string]: unknown;
|
|
557
|
+
};
|
|
558
|
+
fileName?: {
|
|
559
|
+
[key: string]: unknown;
|
|
560
|
+
};
|
|
561
|
+
fileUrl?: {
|
|
562
|
+
[key: string]: unknown;
|
|
563
|
+
};
|
|
564
|
+
signedFileUrl?: {
|
|
565
|
+
[key: string]: unknown;
|
|
566
|
+
};
|
|
567
|
+
metadata?: {
|
|
568
|
+
[key: string]: unknown;
|
|
569
|
+
};
|
|
570
|
+
clientReferenceId?: {
|
|
571
|
+
[key: string]: unknown;
|
|
572
|
+
};
|
|
573
|
+
}[];
|
|
574
|
+
createdAt?: {
|
|
575
|
+
toDateString?: {
|
|
576
|
+
[key: string]: unknown;
|
|
577
|
+
};
|
|
578
|
+
toTimeString?: {
|
|
579
|
+
[key: string]: unknown;
|
|
580
|
+
};
|
|
581
|
+
toLocaleDateString?: {
|
|
582
|
+
[key: string]: unknown;
|
|
583
|
+
};
|
|
584
|
+
toLocaleTimeString?: {
|
|
585
|
+
[key: string]: unknown;
|
|
586
|
+
};
|
|
587
|
+
getTime?: {
|
|
588
|
+
[key: string]: unknown;
|
|
589
|
+
};
|
|
590
|
+
getFullYear?: {
|
|
591
|
+
[key: string]: unknown;
|
|
592
|
+
};
|
|
593
|
+
getUTCFullYear?: {
|
|
594
|
+
[key: string]: unknown;
|
|
595
|
+
};
|
|
596
|
+
getMonth?: {
|
|
597
|
+
[key: string]: unknown;
|
|
598
|
+
};
|
|
599
|
+
getUTCMonth?: {
|
|
600
|
+
[key: string]: unknown;
|
|
601
|
+
};
|
|
602
|
+
getDate?: {
|
|
603
|
+
[key: string]: unknown;
|
|
604
|
+
};
|
|
605
|
+
getUTCDate?: {
|
|
606
|
+
[key: string]: unknown;
|
|
607
|
+
};
|
|
608
|
+
getDay?: {
|
|
609
|
+
[key: string]: unknown;
|
|
610
|
+
};
|
|
611
|
+
getUTCDay?: {
|
|
612
|
+
[key: string]: unknown;
|
|
613
|
+
};
|
|
614
|
+
getHours?: {
|
|
615
|
+
[key: string]: unknown;
|
|
616
|
+
};
|
|
617
|
+
getUTCHours?: {
|
|
618
|
+
[key: string]: unknown;
|
|
619
|
+
};
|
|
620
|
+
getMinutes?: {
|
|
621
|
+
[key: string]: unknown;
|
|
622
|
+
};
|
|
623
|
+
getUTCMinutes?: {
|
|
624
|
+
[key: string]: unknown;
|
|
625
|
+
};
|
|
626
|
+
getSeconds?: {
|
|
627
|
+
[key: string]: unknown;
|
|
628
|
+
};
|
|
629
|
+
getUTCSeconds?: {
|
|
630
|
+
[key: string]: unknown;
|
|
631
|
+
};
|
|
632
|
+
getMilliseconds?: {
|
|
633
|
+
[key: string]: unknown;
|
|
634
|
+
};
|
|
635
|
+
getUTCMilliseconds?: {
|
|
636
|
+
[key: string]: unknown;
|
|
637
|
+
};
|
|
638
|
+
getTimezoneOffset?: {
|
|
639
|
+
[key: string]: unknown;
|
|
640
|
+
};
|
|
641
|
+
setTime?: {
|
|
642
|
+
[key: string]: unknown;
|
|
643
|
+
};
|
|
644
|
+
setMilliseconds?: {
|
|
645
|
+
[key: string]: unknown;
|
|
646
|
+
};
|
|
647
|
+
setUTCMilliseconds?: {
|
|
648
|
+
[key: string]: unknown;
|
|
649
|
+
};
|
|
650
|
+
setSeconds?: {
|
|
651
|
+
[key: string]: unknown;
|
|
652
|
+
};
|
|
653
|
+
setUTCSeconds?: {
|
|
654
|
+
[key: string]: unknown;
|
|
655
|
+
};
|
|
656
|
+
setMinutes?: {
|
|
657
|
+
[key: string]: unknown;
|
|
658
|
+
};
|
|
659
|
+
setUTCMinutes?: {
|
|
660
|
+
[key: string]: unknown;
|
|
661
|
+
};
|
|
662
|
+
setHours?: {
|
|
663
|
+
[key: string]: unknown;
|
|
664
|
+
};
|
|
665
|
+
setUTCHours?: {
|
|
666
|
+
[key: string]: unknown;
|
|
667
|
+
};
|
|
668
|
+
setDate?: {
|
|
669
|
+
[key: string]: unknown;
|
|
670
|
+
};
|
|
671
|
+
setUTCDate?: {
|
|
672
|
+
[key: string]: unknown;
|
|
673
|
+
};
|
|
674
|
+
setMonth?: {
|
|
675
|
+
[key: string]: unknown;
|
|
676
|
+
};
|
|
677
|
+
setUTCMonth?: {
|
|
678
|
+
[key: string]: unknown;
|
|
679
|
+
};
|
|
680
|
+
setFullYear?: {
|
|
681
|
+
[key: string]: unknown;
|
|
682
|
+
};
|
|
683
|
+
setUTCFullYear?: {
|
|
684
|
+
[key: string]: unknown;
|
|
685
|
+
};
|
|
686
|
+
toUTCString?: {
|
|
687
|
+
[key: string]: unknown;
|
|
688
|
+
};
|
|
689
|
+
toISOString?: {
|
|
690
|
+
[key: string]: unknown;
|
|
691
|
+
};
|
|
692
|
+
toJSON?: {
|
|
693
|
+
[key: string]: unknown;
|
|
694
|
+
};
|
|
695
|
+
getVarDate?: {
|
|
696
|
+
[key: string]: unknown;
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
updatedAt?: {
|
|
700
|
+
toDateString?: {
|
|
701
|
+
[key: string]: unknown;
|
|
702
|
+
};
|
|
703
|
+
toTimeString?: {
|
|
704
|
+
[key: string]: unknown;
|
|
705
|
+
};
|
|
706
|
+
toLocaleDateString?: {
|
|
707
|
+
[key: string]: unknown;
|
|
708
|
+
};
|
|
709
|
+
toLocaleTimeString?: {
|
|
710
|
+
[key: string]: unknown;
|
|
711
|
+
};
|
|
712
|
+
getTime?: {
|
|
713
|
+
[key: string]: unknown;
|
|
714
|
+
};
|
|
715
|
+
getFullYear?: {
|
|
716
|
+
[key: string]: unknown;
|
|
717
|
+
};
|
|
718
|
+
getUTCFullYear?: {
|
|
719
|
+
[key: string]: unknown;
|
|
720
|
+
};
|
|
721
|
+
getMonth?: {
|
|
722
|
+
[key: string]: unknown;
|
|
723
|
+
};
|
|
724
|
+
getUTCMonth?: {
|
|
725
|
+
[key: string]: unknown;
|
|
726
|
+
};
|
|
727
|
+
getDate?: {
|
|
728
|
+
[key: string]: unknown;
|
|
729
|
+
};
|
|
730
|
+
getUTCDate?: {
|
|
731
|
+
[key: string]: unknown;
|
|
732
|
+
};
|
|
733
|
+
getDay?: {
|
|
734
|
+
[key: string]: unknown;
|
|
735
|
+
};
|
|
736
|
+
getUTCDay?: {
|
|
737
|
+
[key: string]: unknown;
|
|
738
|
+
};
|
|
739
|
+
getHours?: {
|
|
740
|
+
[key: string]: unknown;
|
|
741
|
+
};
|
|
742
|
+
getUTCHours?: {
|
|
743
|
+
[key: string]: unknown;
|
|
744
|
+
};
|
|
745
|
+
getMinutes?: {
|
|
746
|
+
[key: string]: unknown;
|
|
747
|
+
};
|
|
748
|
+
getUTCMinutes?: {
|
|
749
|
+
[key: string]: unknown;
|
|
750
|
+
};
|
|
751
|
+
getSeconds?: {
|
|
752
|
+
[key: string]: unknown;
|
|
753
|
+
};
|
|
754
|
+
getUTCSeconds?: {
|
|
755
|
+
[key: string]: unknown;
|
|
756
|
+
};
|
|
757
|
+
getMilliseconds?: {
|
|
758
|
+
[key: string]: unknown;
|
|
759
|
+
};
|
|
760
|
+
getUTCMilliseconds?: {
|
|
761
|
+
[key: string]: unknown;
|
|
762
|
+
};
|
|
763
|
+
getTimezoneOffset?: {
|
|
764
|
+
[key: string]: unknown;
|
|
765
|
+
};
|
|
766
|
+
setTime?: {
|
|
767
|
+
[key: string]: unknown;
|
|
768
|
+
};
|
|
769
|
+
setMilliseconds?: {
|
|
770
|
+
[key: string]: unknown;
|
|
771
|
+
};
|
|
772
|
+
setUTCMilliseconds?: {
|
|
773
|
+
[key: string]: unknown;
|
|
774
|
+
};
|
|
775
|
+
setSeconds?: {
|
|
776
|
+
[key: string]: unknown;
|
|
777
|
+
};
|
|
778
|
+
setUTCSeconds?: {
|
|
779
|
+
[key: string]: unknown;
|
|
780
|
+
};
|
|
781
|
+
setMinutes?: {
|
|
782
|
+
[key: string]: unknown;
|
|
783
|
+
};
|
|
784
|
+
setUTCMinutes?: {
|
|
785
|
+
[key: string]: unknown;
|
|
786
|
+
};
|
|
787
|
+
setHours?: {
|
|
788
|
+
[key: string]: unknown;
|
|
789
|
+
};
|
|
790
|
+
setUTCHours?: {
|
|
791
|
+
[key: string]: unknown;
|
|
792
|
+
};
|
|
793
|
+
setDate?: {
|
|
794
|
+
[key: string]: unknown;
|
|
795
|
+
};
|
|
796
|
+
setUTCDate?: {
|
|
797
|
+
[key: string]: unknown;
|
|
798
|
+
};
|
|
799
|
+
setMonth?: {
|
|
800
|
+
[key: string]: unknown;
|
|
801
|
+
};
|
|
802
|
+
setUTCMonth?: {
|
|
803
|
+
[key: string]: unknown;
|
|
804
|
+
};
|
|
805
|
+
setFullYear?: {
|
|
806
|
+
[key: string]: unknown;
|
|
807
|
+
};
|
|
808
|
+
setUTCFullYear?: {
|
|
809
|
+
[key: string]: unknown;
|
|
810
|
+
};
|
|
811
|
+
toUTCString?: {
|
|
812
|
+
[key: string]: unknown;
|
|
813
|
+
};
|
|
814
|
+
toISOString?: {
|
|
815
|
+
[key: string]: unknown;
|
|
816
|
+
};
|
|
817
|
+
toJSON?: {
|
|
818
|
+
[key: string]: unknown;
|
|
819
|
+
};
|
|
820
|
+
getVarDate?: {
|
|
821
|
+
[key: string]: unknown;
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
expirationDate?: {
|
|
825
|
+
toDateString?: {
|
|
826
|
+
[key: string]: unknown;
|
|
827
|
+
};
|
|
828
|
+
toTimeString?: {
|
|
829
|
+
[key: string]: unknown;
|
|
830
|
+
};
|
|
831
|
+
toLocaleDateString?: {
|
|
832
|
+
[key: string]: unknown;
|
|
833
|
+
};
|
|
834
|
+
toLocaleTimeString?: {
|
|
835
|
+
[key: string]: unknown;
|
|
836
|
+
};
|
|
837
|
+
getTime?: {
|
|
838
|
+
[key: string]: unknown;
|
|
839
|
+
};
|
|
840
|
+
getFullYear?: {
|
|
841
|
+
[key: string]: unknown;
|
|
842
|
+
};
|
|
843
|
+
getUTCFullYear?: {
|
|
844
|
+
[key: string]: unknown;
|
|
845
|
+
};
|
|
846
|
+
getMonth?: {
|
|
847
|
+
[key: string]: unknown;
|
|
848
|
+
};
|
|
849
|
+
getUTCMonth?: {
|
|
850
|
+
[key: string]: unknown;
|
|
851
|
+
};
|
|
852
|
+
getDate?: {
|
|
853
|
+
[key: string]: unknown;
|
|
854
|
+
};
|
|
855
|
+
getUTCDate?: {
|
|
856
|
+
[key: string]: unknown;
|
|
857
|
+
};
|
|
858
|
+
getDay?: {
|
|
859
|
+
[key: string]: unknown;
|
|
860
|
+
};
|
|
861
|
+
getUTCDay?: {
|
|
862
|
+
[key: string]: unknown;
|
|
863
|
+
};
|
|
864
|
+
getHours?: {
|
|
865
|
+
[key: string]: unknown;
|
|
866
|
+
};
|
|
867
|
+
getUTCHours?: {
|
|
868
|
+
[key: string]: unknown;
|
|
869
|
+
};
|
|
870
|
+
getMinutes?: {
|
|
871
|
+
[key: string]: unknown;
|
|
872
|
+
};
|
|
873
|
+
getUTCMinutes?: {
|
|
874
|
+
[key: string]: unknown;
|
|
875
|
+
};
|
|
876
|
+
getSeconds?: {
|
|
877
|
+
[key: string]: unknown;
|
|
878
|
+
};
|
|
879
|
+
getUTCSeconds?: {
|
|
880
|
+
[key: string]: unknown;
|
|
881
|
+
};
|
|
882
|
+
getMilliseconds?: {
|
|
883
|
+
[key: string]: unknown;
|
|
884
|
+
};
|
|
885
|
+
getUTCMilliseconds?: {
|
|
886
|
+
[key: string]: unknown;
|
|
887
|
+
};
|
|
888
|
+
getTimezoneOffset?: {
|
|
889
|
+
[key: string]: unknown;
|
|
890
|
+
};
|
|
891
|
+
setTime?: {
|
|
892
|
+
[key: string]: unknown;
|
|
893
|
+
};
|
|
894
|
+
setMilliseconds?: {
|
|
895
|
+
[key: string]: unknown;
|
|
896
|
+
};
|
|
897
|
+
setUTCMilliseconds?: {
|
|
898
|
+
[key: string]: unknown;
|
|
899
|
+
};
|
|
900
|
+
setSeconds?: {
|
|
901
|
+
[key: string]: unknown;
|
|
902
|
+
};
|
|
903
|
+
setUTCSeconds?: {
|
|
904
|
+
[key: string]: unknown;
|
|
905
|
+
};
|
|
906
|
+
setMinutes?: {
|
|
907
|
+
[key: string]: unknown;
|
|
908
|
+
};
|
|
909
|
+
setUTCMinutes?: {
|
|
910
|
+
[key: string]: unknown;
|
|
911
|
+
};
|
|
912
|
+
setHours?: {
|
|
913
|
+
[key: string]: unknown;
|
|
914
|
+
};
|
|
915
|
+
setUTCHours?: {
|
|
916
|
+
[key: string]: unknown;
|
|
917
|
+
};
|
|
918
|
+
setDate?: {
|
|
919
|
+
[key: string]: unknown;
|
|
920
|
+
};
|
|
921
|
+
setUTCDate?: {
|
|
922
|
+
[key: string]: unknown;
|
|
923
|
+
};
|
|
924
|
+
setMonth?: {
|
|
925
|
+
[key: string]: unknown;
|
|
926
|
+
};
|
|
927
|
+
setUTCMonth?: {
|
|
928
|
+
[key: string]: unknown;
|
|
929
|
+
};
|
|
930
|
+
setFullYear?: {
|
|
931
|
+
[key: string]: unknown;
|
|
932
|
+
};
|
|
933
|
+
setUTCFullYear?: {
|
|
934
|
+
[key: string]: unknown;
|
|
935
|
+
};
|
|
936
|
+
toUTCString?: {
|
|
937
|
+
[key: string]: unknown;
|
|
938
|
+
};
|
|
939
|
+
toISOString?: {
|
|
940
|
+
[key: string]: unknown;
|
|
941
|
+
};
|
|
942
|
+
toJSON?: {
|
|
943
|
+
[key: string]: unknown;
|
|
944
|
+
};
|
|
945
|
+
getVarDate?: {
|
|
946
|
+
[key: string]: unknown;
|
|
947
|
+
};
|
|
948
|
+
};
|
|
949
|
+
}[];
|
|
950
|
+
};
|
|
951
|
+
};
|
|
952
|
+
};
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
delete?: never;
|
|
956
|
+
options?: never;
|
|
957
|
+
head?: never;
|
|
958
|
+
patch?: never;
|
|
959
|
+
trace?: never;
|
|
960
|
+
};
|
|
961
|
+
"/functions/removeSignRequestFromEnvelope": {
|
|
962
|
+
parameters: {
|
|
963
|
+
query?: never;
|
|
964
|
+
header?: never;
|
|
965
|
+
path?: never;
|
|
966
|
+
cookie?: never;
|
|
967
|
+
};
|
|
968
|
+
get?: never;
|
|
969
|
+
put?: never;
|
|
970
|
+
/** Cloud Function: removeSignRequestFromEnvelope */
|
|
971
|
+
post: {
|
|
972
|
+
parameters: {
|
|
973
|
+
query?: never;
|
|
974
|
+
header?: never;
|
|
975
|
+
path?: never;
|
|
976
|
+
cookie?: never;
|
|
977
|
+
};
|
|
978
|
+
requestBody?: {
|
|
979
|
+
content: {
|
|
980
|
+
"application/json": {
|
|
981
|
+
/** @description The unique identifier of the envelope */
|
|
982
|
+
envelopeId: string;
|
|
983
|
+
/** @description The unique identifier of the sign request */
|
|
984
|
+
requestId: string;
|
|
985
|
+
};
|
|
986
|
+
};
|
|
987
|
+
};
|
|
988
|
+
responses: {
|
|
989
|
+
/** @description Successful response */
|
|
990
|
+
200: {
|
|
991
|
+
headers: {
|
|
992
|
+
[name: string]: unknown;
|
|
993
|
+
};
|
|
994
|
+
content: {
|
|
995
|
+
"application/json": {
|
|
996
|
+
result?: {
|
|
997
|
+
success?: boolean;
|
|
998
|
+
message?: string;
|
|
999
|
+
};
|
|
1000
|
+
};
|
|
1001
|
+
};
|
|
1002
|
+
};
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
1005
|
+
delete?: never;
|
|
1006
|
+
options?: never;
|
|
1007
|
+
head?: never;
|
|
1008
|
+
patch?: never;
|
|
1009
|
+
trace?: never;
|
|
1010
|
+
};
|
|
1011
|
+
"/functions/updateEnvelopeMetadata": {
|
|
1012
|
+
parameters: {
|
|
1013
|
+
query?: never;
|
|
1014
|
+
header?: never;
|
|
1015
|
+
path?: never;
|
|
1016
|
+
cookie?: never;
|
|
1017
|
+
};
|
|
1018
|
+
get?: never;
|
|
1019
|
+
put?: never;
|
|
1020
|
+
/** Cloud Function: updateEnvelopeMetadata */
|
|
1021
|
+
post: {
|
|
1022
|
+
parameters: {
|
|
1023
|
+
query?: never;
|
|
1024
|
+
header?: never;
|
|
1025
|
+
path?: never;
|
|
1026
|
+
cookie?: never;
|
|
1027
|
+
};
|
|
1028
|
+
requestBody?: {
|
|
1029
|
+
content: {
|
|
1030
|
+
"application/json": {
|
|
1031
|
+
/** @description The unique identifier of the envelope */
|
|
1032
|
+
envelopeId: string;
|
|
1033
|
+
/** @description The metadata to be merged into the existing envelope metadata */
|
|
1034
|
+
metadata: {
|
|
1035
|
+
[key: string]: unknown;
|
|
1036
|
+
};
|
|
1037
|
+
};
|
|
1038
|
+
};
|
|
1039
|
+
};
|
|
1040
|
+
responses: {
|
|
1041
|
+
/** @description Successful response */
|
|
1042
|
+
200: {
|
|
1043
|
+
headers: {
|
|
1044
|
+
[name: string]: unknown;
|
|
1045
|
+
};
|
|
1046
|
+
content: {
|
|
1047
|
+
"application/json": {
|
|
1048
|
+
result?: {
|
|
1049
|
+
envelopeId?: string;
|
|
1050
|
+
metadata?: {
|
|
1051
|
+
[key: string]: unknown;
|
|
1052
|
+
};
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
1058
|
+
};
|
|
1059
|
+
delete?: never;
|
|
1060
|
+
options?: never;
|
|
1061
|
+
head?: never;
|
|
1062
|
+
patch?: never;
|
|
1063
|
+
trace?: never;
|
|
1064
|
+
};
|
|
1065
|
+
"/functions/completeSignRequest": {
|
|
1066
|
+
parameters: {
|
|
1067
|
+
query?: never;
|
|
1068
|
+
header?: never;
|
|
1069
|
+
path?: never;
|
|
1070
|
+
cookie?: never;
|
|
1071
|
+
};
|
|
1072
|
+
get?: never;
|
|
1073
|
+
put?: never;
|
|
1074
|
+
/** Cloud Function: completeSignRequest */
|
|
1075
|
+
post: {
|
|
1076
|
+
parameters: {
|
|
1077
|
+
query?: never;
|
|
1078
|
+
header?: never;
|
|
1079
|
+
path?: never;
|
|
1080
|
+
cookie?: never;
|
|
1081
|
+
};
|
|
1082
|
+
requestBody?: {
|
|
1083
|
+
content: {
|
|
1084
|
+
"application/json": {
|
|
1085
|
+
/** @description The unique identifier of the sign request to complete */
|
|
1086
|
+
requestId: string;
|
|
1087
|
+
/** @description The base64 encoded content of the signed file */
|
|
1088
|
+
signedFileDataBase64: string;
|
|
1089
|
+
};
|
|
1090
|
+
};
|
|
1091
|
+
};
|
|
1092
|
+
responses: {
|
|
1093
|
+
/** @description Successful response */
|
|
1094
|
+
200: {
|
|
1095
|
+
headers: {
|
|
1096
|
+
[name: string]: unknown;
|
|
1097
|
+
};
|
|
1098
|
+
content: {
|
|
1099
|
+
"application/json": {
|
|
1100
|
+
result?: {
|
|
1101
|
+
signedFileUrl?: string;
|
|
1102
|
+
};
|
|
1103
|
+
};
|
|
1104
|
+
};
|
|
1105
|
+
};
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1108
|
+
delete?: never;
|
|
1109
|
+
options?: never;
|
|
1110
|
+
head?: never;
|
|
1111
|
+
patch?: never;
|
|
1112
|
+
trace?: never;
|
|
1113
|
+
};
|
|
1114
|
+
"/functions/createSignRequest": {
|
|
1115
|
+
parameters: {
|
|
1116
|
+
query?: never;
|
|
1117
|
+
header?: never;
|
|
1118
|
+
path?: never;
|
|
1119
|
+
cookie?: never;
|
|
1120
|
+
};
|
|
1121
|
+
get?: never;
|
|
1122
|
+
put?: never;
|
|
1123
|
+
/** Cloud Function: createSignRequest */
|
|
1124
|
+
post: {
|
|
1125
|
+
parameters: {
|
|
1126
|
+
query?: never;
|
|
1127
|
+
header?: never;
|
|
1128
|
+
path?: never;
|
|
1129
|
+
cookie?: never;
|
|
1130
|
+
};
|
|
1131
|
+
requestBody?: {
|
|
1132
|
+
content: {
|
|
1133
|
+
"application/json": {
|
|
1134
|
+
/** @description The name of the file to be signed */
|
|
1135
|
+
filename: string;
|
|
1136
|
+
/** @description The base64 encoded content of the file */
|
|
1137
|
+
base64File?: string;
|
|
1138
|
+
/** @description Remote URL of the file. MUST be publicly accessible. */
|
|
1139
|
+
fileUrl?: string;
|
|
1140
|
+
/** @description Associated metadata for the sign request */
|
|
1141
|
+
metadata?: {
|
|
1142
|
+
[key: string]: unknown;
|
|
1143
|
+
};
|
|
1144
|
+
};
|
|
1145
|
+
};
|
|
1146
|
+
};
|
|
1147
|
+
responses: {
|
|
1148
|
+
/** @description Successful response */
|
|
1149
|
+
200: {
|
|
1150
|
+
headers: {
|
|
1151
|
+
[name: string]: unknown;
|
|
1152
|
+
};
|
|
1153
|
+
content: {
|
|
1154
|
+
"application/json": {
|
|
1155
|
+
result?: {
|
|
1156
|
+
requestId?: string;
|
|
1157
|
+
signUrl?: string;
|
|
1158
|
+
};
|
|
1159
|
+
};
|
|
1160
|
+
};
|
|
1161
|
+
};
|
|
1162
|
+
};
|
|
1163
|
+
};
|
|
1164
|
+
delete?: never;
|
|
1165
|
+
options?: never;
|
|
1166
|
+
head?: never;
|
|
1167
|
+
patch?: never;
|
|
1168
|
+
trace?: never;
|
|
1169
|
+
};
|
|
1170
|
+
"/functions/getFileFromRequestId": {
|
|
1171
|
+
parameters: {
|
|
1172
|
+
query?: never;
|
|
1173
|
+
header?: never;
|
|
1174
|
+
path?: never;
|
|
1175
|
+
cookie?: never;
|
|
1176
|
+
};
|
|
1177
|
+
get?: never;
|
|
1178
|
+
put?: never;
|
|
1179
|
+
/** Cloud Function: getFileFromRequestId */
|
|
1180
|
+
post: {
|
|
1181
|
+
parameters: {
|
|
1182
|
+
query?: never;
|
|
1183
|
+
header?: never;
|
|
1184
|
+
path?: never;
|
|
1185
|
+
cookie?: never;
|
|
1186
|
+
};
|
|
1187
|
+
requestBody?: {
|
|
1188
|
+
content: {
|
|
1189
|
+
"application/json": {
|
|
1190
|
+
/** @description The unique identifier of the sign request */
|
|
1191
|
+
requestId: string;
|
|
1192
|
+
};
|
|
1193
|
+
};
|
|
1194
|
+
};
|
|
1195
|
+
responses: {
|
|
1196
|
+
/** @description Successful response */
|
|
1197
|
+
200: {
|
|
1198
|
+
headers: {
|
|
1199
|
+
[name: string]: unknown;
|
|
1200
|
+
};
|
|
1201
|
+
content: {
|
|
1202
|
+
"application/json": {
|
|
1203
|
+
result?: {
|
|
1204
|
+
requestId?: string;
|
|
1205
|
+
name?: string;
|
|
1206
|
+
originalFile?: string;
|
|
1207
|
+
signedFile?: string;
|
|
1208
|
+
metadata?: {
|
|
1209
|
+
[key: string]: unknown;
|
|
1210
|
+
};
|
|
1211
|
+
status?: string;
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
};
|
|
1215
|
+
};
|
|
1216
|
+
};
|
|
1217
|
+
};
|
|
1218
|
+
delete?: never;
|
|
1219
|
+
options?: never;
|
|
1220
|
+
head?: never;
|
|
1221
|
+
patch?: never;
|
|
1222
|
+
trace?: never;
|
|
1223
|
+
};
|
|
1224
|
+
"/functions/getSignedFile": {
|
|
1225
|
+
parameters: {
|
|
1226
|
+
query?: never;
|
|
1227
|
+
header?: never;
|
|
1228
|
+
path?: never;
|
|
1229
|
+
cookie?: never;
|
|
1230
|
+
};
|
|
1231
|
+
get?: never;
|
|
1232
|
+
put?: never;
|
|
1233
|
+
/** Cloud Function: getSignedFile */
|
|
1234
|
+
post: {
|
|
1235
|
+
parameters: {
|
|
1236
|
+
query?: never;
|
|
1237
|
+
header?: never;
|
|
1238
|
+
path?: never;
|
|
1239
|
+
cookie?: never;
|
|
1240
|
+
};
|
|
1241
|
+
requestBody?: {
|
|
1242
|
+
content: {
|
|
1243
|
+
"application/json": {
|
|
1244
|
+
/** @description The unique identifier of the sign request */
|
|
1245
|
+
requestId: string;
|
|
1246
|
+
};
|
|
1247
|
+
};
|
|
1248
|
+
};
|
|
1249
|
+
responses: {
|
|
1250
|
+
/** @description Successful response */
|
|
1251
|
+
200: {
|
|
1252
|
+
headers: {
|
|
1253
|
+
[name: string]: unknown;
|
|
1254
|
+
};
|
|
1255
|
+
content: {
|
|
1256
|
+
"application/json": {
|
|
1257
|
+
result?: {
|
|
1258
|
+
fileName?: string;
|
|
1259
|
+
fileUrl?: string;
|
|
1260
|
+
signedFileUrl?: string;
|
|
1261
|
+
};
|
|
1262
|
+
};
|
|
1263
|
+
};
|
|
1264
|
+
};
|
|
1265
|
+
};
|
|
1266
|
+
};
|
|
1267
|
+
delete?: never;
|
|
1268
|
+
options?: never;
|
|
1269
|
+
head?: never;
|
|
1270
|
+
patch?: never;
|
|
1271
|
+
trace?: never;
|
|
1272
|
+
};
|
|
1273
|
+
"/functions/updateSignRequestMetadata": {
|
|
1274
|
+
parameters: {
|
|
1275
|
+
query?: never;
|
|
1276
|
+
header?: never;
|
|
1277
|
+
path?: never;
|
|
1278
|
+
cookie?: never;
|
|
1279
|
+
};
|
|
1280
|
+
get?: never;
|
|
1281
|
+
put?: never;
|
|
1282
|
+
/** Cloud Function: updateSignRequestMetadata */
|
|
1283
|
+
post: {
|
|
1284
|
+
parameters: {
|
|
1285
|
+
query?: never;
|
|
1286
|
+
header?: never;
|
|
1287
|
+
path?: never;
|
|
1288
|
+
cookie?: never;
|
|
1289
|
+
};
|
|
1290
|
+
requestBody?: {
|
|
1291
|
+
content: {
|
|
1292
|
+
"application/json": {
|
|
1293
|
+
/** @description The unique identifier of the sign request */
|
|
1294
|
+
requestId: string;
|
|
1295
|
+
/** @description The metadata to be merged into the existing sign request metadata */
|
|
1296
|
+
metadata: {
|
|
1297
|
+
[key: string]: unknown;
|
|
1298
|
+
};
|
|
1299
|
+
};
|
|
1300
|
+
};
|
|
1301
|
+
};
|
|
1302
|
+
responses: {
|
|
1303
|
+
/** @description Successful response */
|
|
1304
|
+
200: {
|
|
1305
|
+
headers: {
|
|
1306
|
+
[name: string]: unknown;
|
|
1307
|
+
};
|
|
1308
|
+
content: {
|
|
1309
|
+
"application/json": {
|
|
1310
|
+
result?: {
|
|
1311
|
+
requestId?: string;
|
|
1312
|
+
metadata?: {
|
|
1313
|
+
[key: string]: unknown;
|
|
1314
|
+
};
|
|
1315
|
+
};
|
|
1316
|
+
};
|
|
1317
|
+
};
|
|
1318
|
+
};
|
|
1319
|
+
};
|
|
1320
|
+
};
|
|
1321
|
+
delete?: never;
|
|
1322
|
+
options?: never;
|
|
1323
|
+
head?: never;
|
|
1324
|
+
patch?: never;
|
|
1325
|
+
trace?: never;
|
|
1326
|
+
};
|
|
1327
|
+
}
|
|
1328
|
+
type webhooks = Record<string, never>;
|
|
1329
|
+
interface components {
|
|
1330
|
+
schemas: {
|
|
1331
|
+
ApiLog: {
|
|
1332
|
+
apiKey?: string;
|
|
1333
|
+
functionName?: string;
|
|
1334
|
+
statusCode?: string;
|
|
1335
|
+
statusMessage?: string;
|
|
1336
|
+
};
|
|
1337
|
+
Authentication: {
|
|
1338
|
+
apiKey?: string;
|
|
1339
|
+
name?: string;
|
|
1340
|
+
status?: string;
|
|
1341
|
+
expirationDate?: string;
|
|
1342
|
+
callbackUrl?: string;
|
|
1343
|
+
webhookSecret?: string;
|
|
1344
|
+
};
|
|
1345
|
+
Envelope: {
|
|
1346
|
+
name?: string;
|
|
1347
|
+
description?: string;
|
|
1348
|
+
envelopeId?: string;
|
|
1349
|
+
signRequests?: string;
|
|
1350
|
+
status?: string;
|
|
1351
|
+
metadata?: string;
|
|
1352
|
+
apiKey?: string;
|
|
1353
|
+
expirationDate?: string;
|
|
1354
|
+
isDeleted?: string;
|
|
1355
|
+
clientReferenceId?: string;
|
|
1356
|
+
};
|
|
1357
|
+
SignRequest: {
|
|
1358
|
+
status?: string;
|
|
1359
|
+
file?: string;
|
|
1360
|
+
fileName?: string;
|
|
1361
|
+
signedFile?: string;
|
|
1362
|
+
requestId?: string;
|
|
1363
|
+
metadata?: string;
|
|
1364
|
+
apiKey?: string;
|
|
1365
|
+
expirationDate?: string;
|
|
1366
|
+
isDeleted?: string;
|
|
1367
|
+
clientReferenceId?: string;
|
|
1368
|
+
};
|
|
1369
|
+
WebhookLog: {
|
|
1370
|
+
status?: string;
|
|
1371
|
+
message?: string;
|
|
1372
|
+
signRequest?: string;
|
|
1373
|
+
envelope?: string;
|
|
1374
|
+
eventType?: string;
|
|
1375
|
+
delivered?: string;
|
|
1376
|
+
retryCount?: string;
|
|
1377
|
+
nextRetryAt?: string;
|
|
1378
|
+
payload?: string;
|
|
1379
|
+
apiKey?: string;
|
|
1380
|
+
};
|
|
1381
|
+
};
|
|
1382
|
+
responses: never;
|
|
1383
|
+
parameters: never;
|
|
1384
|
+
requestBodies: never;
|
|
1385
|
+
headers: never;
|
|
1386
|
+
pathItems: never;
|
|
1387
|
+
}
|
|
1388
|
+
type $defs = Record<string, never>;
|
|
1389
|
+
type operations = Record<string, never>;
|
|
1390
|
+
|
|
1391
|
+
interface IInstasignConfig {
|
|
9
1392
|
apiKey: string;
|
|
10
1393
|
appId?: string;
|
|
11
1394
|
restApiKey?: string;
|
|
12
1395
|
serverUrl?: string;
|
|
13
1396
|
webhookTolerance?: number;
|
|
14
1397
|
}
|
|
15
|
-
|
|
1398
|
+
declare class Instasign {
|
|
16
1399
|
private client;
|
|
17
1400
|
envelopes: Envelopes;
|
|
18
1401
|
signRequests: SignRequests;
|
|
19
1402
|
webhooks: Webhooks;
|
|
20
1403
|
constructor(config: IInstasignConfig);
|
|
21
1404
|
}
|
|
1405
|
+
|
|
1406
|
+
export { type $defs, Envelopes, type IInstasignConfig, Instasign, SignRequests, Webhooks, type components, type operations, type paths, type webhooks };
|