@assinafy/cli 2.7.1 → 2.9.1

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.
Files changed (61) hide show
  1. package/.env.example +2 -0
  2. package/README.en.md +75 -67
  3. package/README.md +39 -25
  4. package/THIRD_PARTY_NOTICES.md +8 -8
  5. package/dist/api.cjs +701 -93
  6. package/dist/api.cjs.map +1 -1
  7. package/dist/api.js +696 -93
  8. package/dist/api.js.map +1 -1
  9. package/dist/cli.cjs +2390 -694
  10. package/dist/types/api/client.d.ts +7 -0
  11. package/dist/types/api/client.d.ts.map +1 -1
  12. package/dist/types/api/envelope-types.d.ts +73 -0
  13. package/dist/types/api/envelope-types.d.ts.map +1 -0
  14. package/dist/types/api/index.d.ts +4 -0
  15. package/dist/types/api/index.d.ts.map +1 -1
  16. package/dist/types/api/resources/assignments.d.ts +7 -1
  17. package/dist/types/api/resources/assignments.d.ts.map +1 -1
  18. package/dist/types/api/resources/contracts.d.ts +3 -1
  19. package/dist/types/api/resources/contracts.d.ts.map +1 -1
  20. package/dist/types/api/resources/documents.d.ts +25 -6
  21. package/dist/types/api/resources/documents.d.ts.map +1 -1
  22. package/dist/types/api/resources/embed.d.ts +14 -0
  23. package/dist/types/api/resources/embed.d.ts.map +1 -0
  24. package/dist/types/api/resources/envelopes.d.ts +37 -0
  25. package/dist/types/api/resources/envelopes.d.ts.map +1 -0
  26. package/dist/types/api/resources/scheduled-sends.d.ts +11 -0
  27. package/dist/types/api/resources/scheduled-sends.d.ts.map +1 -0
  28. package/dist/types/api/resources/signer-documents.d.ts +23 -11
  29. package/dist/types/api/resources/signer-documents.d.ts.map +1 -1
  30. package/dist/types/api/resources/signers.d.ts +1 -1
  31. package/dist/types/api/resources/signers.d.ts.map +1 -1
  32. package/dist/types/api/resources/users.d.ts +3 -1
  33. package/dist/types/api/resources/users.d.ts.map +1 -1
  34. package/dist/types/api/resources/webhooks.d.ts +6 -2
  35. package/dist/types/api/resources/webhooks.d.ts.map +1 -1
  36. package/dist/types/api/resources/workspaces.d.ts +9 -2
  37. package/dist/types/api/resources/workspaces.d.ts.map +1 -1
  38. package/dist/types/api/types.d.ts +138 -8
  39. package/dist/types/api/types.d.ts.map +1 -1
  40. package/dist/types/api/utils.d.ts +9 -0
  41. package/dist/types/api/utils.d.ts.map +1 -1
  42. package/docs/README.md +5 -1
  43. package/docs/api-operations-staging.json +1262 -0
  44. package/docs/api-operations.json +234 -2
  45. package/docs/api-reference-staging.md +18466 -0
  46. package/docs/api-reference.md +11562 -3718
  47. package/docs/assignments.md +62 -14
  48. package/docs/contracts.md +4 -3
  49. package/docs/documents.md +75 -27
  50. package/docs/embed.md +119 -0
  51. package/docs/envelopes.md +239 -0
  52. package/docs/scheduled-sends.md +63 -0
  53. package/docs/sdk-reference.md +278 -30
  54. package/docs/send.md +15 -11
  55. package/docs/signer.md +84 -3
  56. package/docs/users.md +41 -0
  57. package/docs/webhooks.md +22 -6
  58. package/docs/workspaces.md +66 -3
  59. package/install.ps1 +1 -1
  60. package/install.sh +1 -1
  61. package/package.json +4 -4
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "specUrl": "https://api.assinafy.com.br/v1/docs/openapi.json",
3
- "hash": "38cb1b376546c1db6e9eabb06fbb613a9c17ca7c22f66388de2ffbf4b6931e93",
3
+ "hash": "bd1c42d8293167ea95fc5ffcd26730960e37c219dc9a67f224295e6012c3d115",
4
4
  "operations": [
5
5
  {
6
6
  "method": "GET",
@@ -34,6 +34,14 @@
34
34
  "operationId": "e769023db72349e5b478396ae92d12b2",
35
35
  "hasRequestBody": false
36
36
  },
37
+ {
38
+ "method": "GET",
39
+ "path": "/v1/accounts/{accountId}/usage",
40
+ "tag": "Accounts",
41
+ "summary": "Get account usage",
42
+ "operationId": "569cfc5ec3a3dc3384aff421edf5e13e",
43
+ "hasRequestBody": false
44
+ },
37
45
  {
38
46
  "method": "GET",
39
47
  "path": "/v1/accounts/{accountId}/logo",
@@ -346,6 +354,150 @@
346
354
  "operationId": "8011e62c2c57c68797e3da40b27e9cc6",
347
355
  "hasRequestBody": false
348
356
  },
357
+ {
358
+ "method": "GET",
359
+ "path": "/v1/accounts/{accountId}/embed-origins",
360
+ "tag": "Embedded Signing",
361
+ "summary": "List embed origins",
362
+ "operationId": "ef7df4297ac8656ed5d32b727c5b9e3e",
363
+ "hasRequestBody": false
364
+ },
365
+ {
366
+ "method": "POST",
367
+ "path": "/v1/accounts/{accountId}/embed-origins",
368
+ "tag": "Embedded Signing",
369
+ "summary": "Add embed origin",
370
+ "operationId": "29cab5a031f9a885d490b04dee7d91a4",
371
+ "hasRequestBody": true
372
+ },
373
+ {
374
+ "method": "PUT",
375
+ "path": "/v1/accounts/{accountId}/embed-origins/{originId}",
376
+ "tag": "Embedded Signing",
377
+ "summary": "Update embed origin",
378
+ "operationId": "b27fa7c2e564a9fbd8692df2bafad99b",
379
+ "hasRequestBody": true
380
+ },
381
+ {
382
+ "method": "DELETE",
383
+ "path": "/v1/accounts/{accountId}/embed-origins/{originId}",
384
+ "tag": "Embedded Signing",
385
+ "summary": "Remove embed origin",
386
+ "operationId": "f4ed1006257eca4367815f73d2a2a1dc",
387
+ "hasRequestBody": false
388
+ },
389
+ {
390
+ "method": "POST",
391
+ "path": "/v1/documents/{documentId}/assignments/{assignmentId}/signers/{signerId}/embed-sessions",
392
+ "tag": "Embedded Signing",
393
+ "summary": "Create an embed session",
394
+ "operationId": "5d57fa2ec0166bd135783feda21141eb",
395
+ "hasRequestBody": false
396
+ },
397
+ {
398
+ "method": "POST",
399
+ "path": "/v1/embed/sessions/{token}/exchange",
400
+ "tag": "Embedded Signing",
401
+ "summary": "Exchange an embed session",
402
+ "operationId": "645417f72ef4fa41864f217ee14af438",
403
+ "hasRequestBody": true
404
+ },
405
+ {
406
+ "method": "GET",
407
+ "path": "/v1/accounts/{accountId}/envelopes",
408
+ "tag": "Envelopes",
409
+ "summary": "List envelopes",
410
+ "operationId": "49dce8a177564c63ad57a0972f95bede",
411
+ "hasRequestBody": false
412
+ },
413
+ {
414
+ "method": "POST",
415
+ "path": "/v1/accounts/{accountId}/envelopes",
416
+ "tag": "Envelopes",
417
+ "summary": "Create envelope",
418
+ "operationId": "6c4e72a133c3f93240b24df1f910912a",
419
+ "hasRequestBody": true
420
+ },
421
+ {
422
+ "method": "POST",
423
+ "path": "/v1/accounts/{accountId}/envelopes/estimate-cost",
424
+ "tag": "Envelopes",
425
+ "summary": "Estimate envelope cost",
426
+ "operationId": "46efe1f80f0eeeadbcb87de65b7f50f4",
427
+ "hasRequestBody": true
428
+ },
429
+ {
430
+ "method": "GET",
431
+ "path": "/v1/accounts/{accountId}/envelopes/{envelopeId}",
432
+ "tag": "Envelopes",
433
+ "summary": "Get envelope",
434
+ "operationId": "7252a24ec458753d201b94621924399c",
435
+ "hasRequestBody": false
436
+ },
437
+ {
438
+ "method": "DELETE",
439
+ "path": "/v1/accounts/{accountId}/envelopes/{envelopeId}",
440
+ "tag": "Envelopes",
441
+ "summary": "Delete envelope",
442
+ "operationId": "6d3ecc98427ad85659db43f3d67da1ac",
443
+ "hasRequestBody": false
444
+ },
445
+ {
446
+ "method": "PATCH",
447
+ "path": "/v1/accounts/{accountId}/envelopes/{envelopeId}",
448
+ "tag": "Envelopes",
449
+ "summary": "Update envelope",
450
+ "operationId": "d7f051784fd3cfca022908598b12b48a",
451
+ "hasRequestBody": true
452
+ },
453
+ {
454
+ "method": "GET",
455
+ "path": "/v1/accounts/{accountId}/envelopes/{envelopeId}/activities",
456
+ "tag": "Envelopes",
457
+ "summary": "List envelope activities",
458
+ "operationId": "4e63b2ec1d3d85c6f17299c8ca209a51",
459
+ "hasRequestBody": false
460
+ },
461
+ {
462
+ "method": "GET",
463
+ "path": "/v1/accounts/{accountId}/envelopes/{envelopeId}/download/{artifactName}",
464
+ "tag": "Envelopes",
465
+ "summary": "Download envelope artifacts",
466
+ "operationId": "6b95a37c21ba29f45be011d43d5646e2",
467
+ "hasRequestBody": false
468
+ },
469
+ {
470
+ "method": "PUT",
471
+ "path": "/v1/accounts/{accountId}/envelopes/{envelopeId}/cancel",
472
+ "tag": "Envelopes",
473
+ "summary": "Cancel envelope",
474
+ "operationId": "d00cffe402e0399f87bfb66cb9351bf0",
475
+ "hasRequestBody": false
476
+ },
477
+ {
478
+ "method": "PUT",
479
+ "path": "/v1/accounts/{accountId}/envelopes/{envelopeId}/signers/{signerId}/resend",
480
+ "tag": "Envelopes",
481
+ "summary": "Remind envelope signer",
482
+ "operationId": "7e8194a9458b32123995f6358e5a5ecd",
483
+ "hasRequestBody": false
484
+ },
485
+ {
486
+ "method": "POST",
487
+ "path": "/v1/accounts/{accountId}/envelopes/{envelopeId}/documents",
488
+ "tag": "Envelopes",
489
+ "summary": "Add document to envelope",
490
+ "operationId": "80c4aa75bd8a80dadd208a999429b3aa",
491
+ "hasRequestBody": true
492
+ },
493
+ {
494
+ "method": "DELETE",
495
+ "path": "/v1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}",
496
+ "tag": "Envelopes",
497
+ "summary": "Take document out of envelope",
498
+ "operationId": "cfd0ae9edf924aa994847c2a5e10afd4",
499
+ "hasRequestBody": false
500
+ },
349
501
  {
350
502
  "method": "GET",
351
503
  "path": "/v1/accounts/{accountId}/fields",
@@ -450,6 +602,22 @@
450
602
  "operationId": "fec05054a3e21e9ef5b248edcb736873",
451
603
  "hasRequestBody": true
452
604
  },
605
+ {
606
+ "method": "GET",
607
+ "path": "/v1/accounts/{accountId}/notification-policy",
608
+ "tag": "Accounts",
609
+ "summary": "Get the workspace notification policy",
610
+ "operationId": "445dda799444c8013b2da1a37d1b6f24",
611
+ "hasRequestBody": false
612
+ },
613
+ {
614
+ "method": "PUT",
615
+ "path": "/v1/accounts/{accountId}/notification-policy",
616
+ "tag": "Accounts",
617
+ "summary": "Update the workspace notification policy",
618
+ "operationId": "5e03eceba508b16502bc45f38462c7d9",
619
+ "hasRequestBody": true
620
+ },
453
621
  {
454
622
  "method": "GET",
455
623
  "path": "/v1/users/self/notification-preferences",
@@ -522,6 +690,22 @@
522
690
  "operationId": "cfb52ef413176c9307a588f0fdf8237c",
523
691
  "hasRequestBody": true
524
692
  },
693
+ {
694
+ "method": "GET",
695
+ "path": "/v1/users/self/push-preferences",
696
+ "tag": "Users",
697
+ "summary": "Get my push notification preferences",
698
+ "operationId": "d9b289f9e49c2569e144996bc16557aa",
699
+ "hasRequestBody": false
700
+ },
701
+ {
702
+ "method": "PUT",
703
+ "path": "/v1/users/self/push-preferences",
704
+ "tag": "Users",
705
+ "summary": "Update my push notification preferences",
706
+ "operationId": "25d7de6c8ba5a6718612b0b7eb08956c",
707
+ "hasRequestBody": true
708
+ },
525
709
  {
526
710
  "method": "GET",
527
711
  "path": "/v1/accounts/{accountId}/signers",
@@ -570,6 +754,22 @@
570
754
  "operationId": "5091a0e760e9aeebc055388491ef4884",
571
755
  "hasRequestBody": false
572
756
  },
757
+ {
758
+ "method": "GET",
759
+ "path": "/v1/sign/theme",
760
+ "tag": "Signing",
761
+ "summary": "Workspace brand for the signing page",
762
+ "operationId": "e6a259c8de6443ff0d66cc45ca3de346",
763
+ "hasRequestBody": false
764
+ },
765
+ {
766
+ "method": "GET",
767
+ "path": "/v1/sign/logo",
768
+ "tag": "Signing",
769
+ "summary": "Workspace logo for the signing page",
770
+ "operationId": "55214a6e3be0bd2c3a7c7fc6195fa756",
771
+ "hasRequestBody": false
772
+ },
573
773
  {
574
774
  "method": "GET",
575
775
  "path": "/v1/signers/identity-verification",
@@ -694,10 +894,34 @@
694
894
  "method": "GET",
695
895
  "path": "/v1/signers/{signerId}/documents/{documentId}/download/{artifactName}",
696
896
  "tag": "Signing",
697
- "summary": "Download signer's document artifact",
897
+ "summary": "Download the document to sign",
698
898
  "operationId": "e5b804eb68ec9ff78f77fb79e1e756f3",
699
899
  "hasRequestBody": false
700
900
  },
901
+ {
902
+ "method": "POST",
903
+ "path": "/v1/sign/certified-copy",
904
+ "tag": "Signing",
905
+ "summary": "Send the certified copy again",
906
+ "operationId": "78a2db6f12cfde943f07ddc8724d7895",
907
+ "hasRequestBody": true
908
+ },
909
+ {
910
+ "method": "GET",
911
+ "path": "/v1/signers/downloads/{token}",
912
+ "tag": "Signing",
913
+ "summary": "Download the certified copy from a sent link",
914
+ "operationId": "aba9158e307f63db528c0c53ac416eb2",
915
+ "hasRequestBody": false
916
+ },
917
+ {
918
+ "method": "POST",
919
+ "path": "/v1/signers/downloads/{token}/resend",
920
+ "tag": "Signing",
921
+ "summary": "Send the certified copy again from an expired link",
922
+ "operationId": "42c416d1645251a04ab906fbb64553ee",
923
+ "hasRequestBody": false
924
+ },
701
925
  {
702
926
  "method": "POST",
703
927
  "path": "/v1/authentication/social-login",
@@ -928,6 +1152,14 @@
928
1152
  "tag": "Webhooks",
929
1153
  "summary": "Rotate webhook endpoint signing secret",
930
1154
  "operationId": "b2b6f38f1e0ed2795e48b90533236a6f",
1155
+ "hasRequestBody": true
1156
+ },
1157
+ {
1158
+ "method": "POST",
1159
+ "path": "/v1/accounts/{accountId}/webhooks/endpoints/{endpointId}/test",
1160
+ "tag": "Webhooks",
1161
+ "summary": "Send a test delivery",
1162
+ "operationId": "b311102d930c9ab051abae174bc53711",
931
1163
  "hasRequestBody": false
932
1164
  },
933
1165
  {