@criipto/signatures 1.29.0 → 1.29.2

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.
@@ -371,6 +371,7 @@ export type CriiptoVerifyEvidenceProviderVersion =
371
371
  /** Criipto Verify based evidence for signatures. */
372
372
  export type CriiptoVerifyProviderInput = {
373
373
  acrValues?: InputMaybe<Array<Scalars['String']['input']>>;
374
+ /** Deprecated, no longer has any effect. */
374
375
  alwaysRedirect?: InputMaybe<Scalars['Boolean']['input']>;
375
376
  /** Define additional valid audiences (besides the main client_id) for the Criipto Verify domain/issuer underlying the application. */
376
377
  audiences?: InputMaybe<Array<Scalars['String']['input']>>;
@@ -387,6 +388,7 @@ export type CriiptoVerifyProviderInput = {
387
388
  export type CriiptoVerifySignatureEvidenceProvider = SignatureEvidenceProvider & SingleSignatureEvidenceProvider & {
388
389
  __typename?: 'CriiptoVerifySignatureEvidenceProvider';
389
390
  acrValues: Array<Scalars['String']['output']>;
391
+ /** @deprecated No longer supported */
390
392
  alwaysRedirect: Scalars['Boolean']['output'];
391
393
  audience: Scalars['String']['output'];
392
394
  audiences: Array<Scalars['String']['output']>;
@@ -431,6 +433,8 @@ export type Document = {
431
433
  };
432
434
  export type DocumentIdLocation = 'BOTTOM' | 'LEFT' | 'RIGHT' | 'TOP' | '%future added value';
433
435
  export type DocumentInput = {
436
+ /** (BETA feature) When enabled, will allow any existing signatures to remain on the document. This disables recreation of the PDF document, which disables a number of features such as automatic seal placement, document id watermarking and custom seals area. */
437
+ keepPreviousSignatures?: InputMaybe<Scalars['Boolean']['input']>;
434
438
  pdf?: InputMaybe<PadesDocumentInput>;
435
439
  /** When enabled, will remove any existing signatures from the document before storing. (PDF only) */
436
440
  removePreviousSignatures?: InputMaybe<Scalars['Boolean']['input']>;
@@ -661,6 +665,7 @@ export type NorwegianBankIdSignature = Signature & SingleSignature & {
661
665
  /** OIDC/JWT based evidence for signatures. */
662
666
  export type OidcEvidenceProviderInput = {
663
667
  acrValues?: InputMaybe<Array<Scalars['String']['input']>>;
668
+ /** Deprecated, no longer has any effect. */
664
669
  alwaysRedirect?: InputMaybe<Scalars['Boolean']['input']>;
665
670
  audience: Scalars['String']['input'];
666
671
  clientID: Scalars['String']['input'];
@@ -672,6 +677,7 @@ export type OidcEvidenceProviderInput = {
672
677
  export type OidcJwtSignatureEvidenceProvider = SignatureEvidenceProvider & SingleSignatureEvidenceProvider & {
673
678
  __typename?: 'OidcJWTSignatureEvidenceProvider';
674
679
  acrValues: Array<Scalars['String']['output']>;
680
+ /** @deprecated No longer supported */
675
681
  alwaysRedirect: Scalars['Boolean']['output'];
676
682
  clientID: Scalars['String']['output'];
677
683
  domain: Scalars['String']['output'];
@@ -688,6 +694,7 @@ export type PadesDocumentInput = {
688
694
  form?: InputMaybe<PadesDocumentFormInput>;
689
695
  /** Will not be displayed to signatories, can be used as a reference to your own system. */
690
696
  reference?: InputMaybe<Scalars['String']['input']>;
697
+ removeBookmarks?: InputMaybe<Scalars['Boolean']['input']>;
691
698
  sealsPageTemplate?: InputMaybe<PadesDocumentSealsPageTemplateInput>;
692
699
  storageMode: DocumentStorageMode;
693
700
  title: Scalars['String']['input'];
@@ -884,6 +891,8 @@ export type Signatory = {
884
891
  };
885
892
  export type SignatoryBeaconInput = {
886
893
  lastActionAt: Scalars['DateTime']['input'];
894
+ /** Used to determine if there is clock skew between client and server. */
895
+ now?: InputMaybe<Scalars['DateTime']['input']>;
887
896
  };
888
897
  export type SignatoryBeaconOutput = {
889
898
  __typename?: 'SignatoryBeaconOutput';
@@ -925,12 +934,12 @@ export type SignatoryEvidenceValidationInput = {
925
934
  value?: InputMaybe<Scalars['String']['input']>;
926
935
  };
927
936
  export type SignatoryFrontendEvent = 'DOWNLOAD_LINK_OPENED' | 'SIGN_LINK_OPENED' | '%future added value';
928
- export type SignatoryRole = 'SIGNER' | 'VIEWER' | '%future added value';
937
+ export type SignatoryRole = 'APPROVER' | 'SIGNER' | 'VIEWER' | '%future added value';
929
938
  export type SignatorySigningSequence = {
930
939
  __typename?: 'SignatorySigningSequence';
931
940
  initialNumber: Scalars['Int']['output'];
932
941
  };
933
- export type SignatoryStatus = 'DELETED' | 'ERROR' | 'OPEN' | 'REJECTED' | 'SIGNED' | '%future added value';
942
+ export type SignatoryStatus = 'APPROVED' | 'DELETED' | 'ERROR' | 'OPEN' | 'REJECTED' | 'SIGNED' | '%future added value';
934
943
  export type SignatoryUiInput = {
935
944
  /** Removes the UI options to reject a document or signature order. */
936
945
  disableRejection?: InputMaybe<Scalars['Boolean']['input']>;
@@ -1156,6 +1165,8 @@ export type ValidateDocumentOutput = {
1156
1165
  errors?: Maybe<Array<Scalars['String']['output']>>;
1157
1166
  /** Whether or not the errors are fixable using 'fixDocumentFormattingErrors' */
1158
1167
  fixable?: Maybe<Scalars['Boolean']['output']>;
1168
+ /** `true` if the document contains bookmarks. If the value is `null`, we were unable to determine whether the document has any bookmarks. */
1169
+ hasBookmarks?: Maybe<Scalars['Boolean']['output']>;
1159
1170
  /** `true` if the document contains signatures. If value is `null`, we were unable to determine whether the document has been previously signed. */
1160
1171
  previouslySigned?: Maybe<Scalars['Boolean']['output']>;
1161
1172
  valid: Scalars['Boolean']['output'];
@@ -1210,7 +1221,7 @@ export type WebhookInvocation = {
1210
1221
  timestamp: Scalars['String']['output'];
1211
1222
  url: Scalars['String']['output'];
1212
1223
  };
1213
- export type WebhookInvocationEvent = 'SIGNATORY_DOCUMENT_STATUS_CHANGED' | 'SIGNATORY_DOWNLOAD_LINK_OPENED' | 'SIGNATORY_REJECTED' | 'SIGNATORY_SIGNED' | 'SIGNATORY_SIGN_ERROR' | 'SIGNATORY_SIGN_LINK_OPENED' | 'SIGNATURE_ORDER_EXPIRED' | '%future added value';
1224
+ export type WebhookInvocationEvent = 'SIGNATORY_APPROVED' | 'SIGNATORY_DOCUMENT_STATUS_CHANGED' | 'SIGNATORY_DOWNLOAD_LINK_OPENED' | 'SIGNATORY_REJECTED' | 'SIGNATORY_SIGNED' | 'SIGNATORY_SIGN_ERROR' | 'SIGNATORY_SIGN_LINK_OPENED' | 'SIGNATURE_ORDER_EXPIRED' | '%future added value';
1214
1225
  export type WebhookSuccessfulInvocation = WebhookInvocation & {
1215
1226
  __typename?: 'WebhookSuccessfulInvocation';
1216
1227
  correlationId: Scalars['String']['output'];
@@ -371,6 +371,7 @@ export type CriiptoVerifyEvidenceProviderVersion =
371
371
  /** Criipto Verify based evidence for signatures. */
372
372
  export type CriiptoVerifyProviderInput = {
373
373
  acrValues?: InputMaybe<Array<Scalars['String']['input']>>;
374
+ /** Deprecated, no longer has any effect. */
374
375
  alwaysRedirect?: InputMaybe<Scalars['Boolean']['input']>;
375
376
  /** Define additional valid audiences (besides the main client_id) for the Criipto Verify domain/issuer underlying the application. */
376
377
  audiences?: InputMaybe<Array<Scalars['String']['input']>>;
@@ -387,6 +388,7 @@ export type CriiptoVerifyProviderInput = {
387
388
  export type CriiptoVerifySignatureEvidenceProvider = SignatureEvidenceProvider & SingleSignatureEvidenceProvider & {
388
389
  __typename?: 'CriiptoVerifySignatureEvidenceProvider';
389
390
  acrValues: Array<Scalars['String']['output']>;
391
+ /** @deprecated No longer supported */
390
392
  alwaysRedirect: Scalars['Boolean']['output'];
391
393
  audience: Scalars['String']['output'];
392
394
  audiences: Array<Scalars['String']['output']>;
@@ -431,6 +433,8 @@ export type Document = {
431
433
  };
432
434
  export type DocumentIdLocation = 'BOTTOM' | 'LEFT' | 'RIGHT' | 'TOP' | '%future added value';
433
435
  export type DocumentInput = {
436
+ /** (BETA feature) When enabled, will allow any existing signatures to remain on the document. This disables recreation of the PDF document, which disables a number of features such as automatic seal placement, document id watermarking and custom seals area. */
437
+ keepPreviousSignatures?: InputMaybe<Scalars['Boolean']['input']>;
434
438
  pdf?: InputMaybe<PadesDocumentInput>;
435
439
  /** When enabled, will remove any existing signatures from the document before storing. (PDF only) */
436
440
  removePreviousSignatures?: InputMaybe<Scalars['Boolean']['input']>;
@@ -661,6 +665,7 @@ export type NorwegianBankIdSignature = Signature & SingleSignature & {
661
665
  /** OIDC/JWT based evidence for signatures. */
662
666
  export type OidcEvidenceProviderInput = {
663
667
  acrValues?: InputMaybe<Array<Scalars['String']['input']>>;
668
+ /** Deprecated, no longer has any effect. */
664
669
  alwaysRedirect?: InputMaybe<Scalars['Boolean']['input']>;
665
670
  audience: Scalars['String']['input'];
666
671
  clientID: Scalars['String']['input'];
@@ -672,6 +677,7 @@ export type OidcEvidenceProviderInput = {
672
677
  export type OidcJwtSignatureEvidenceProvider = SignatureEvidenceProvider & SingleSignatureEvidenceProvider & {
673
678
  __typename?: 'OidcJWTSignatureEvidenceProvider';
674
679
  acrValues: Array<Scalars['String']['output']>;
680
+ /** @deprecated No longer supported */
675
681
  alwaysRedirect: Scalars['Boolean']['output'];
676
682
  clientID: Scalars['String']['output'];
677
683
  domain: Scalars['String']['output'];
@@ -688,6 +694,7 @@ export type PadesDocumentInput = {
688
694
  form?: InputMaybe<PadesDocumentFormInput>;
689
695
  /** Will not be displayed to signatories, can be used as a reference to your own system. */
690
696
  reference?: InputMaybe<Scalars['String']['input']>;
697
+ removeBookmarks?: InputMaybe<Scalars['Boolean']['input']>;
691
698
  sealsPageTemplate?: InputMaybe<PadesDocumentSealsPageTemplateInput>;
692
699
  storageMode: DocumentStorageMode;
693
700
  title: Scalars['String']['input'];
@@ -884,6 +891,8 @@ export type Signatory = {
884
891
  };
885
892
  export type SignatoryBeaconInput = {
886
893
  lastActionAt: Scalars['DateTime']['input'];
894
+ /** Used to determine if there is clock skew between client and server. */
895
+ now?: InputMaybe<Scalars['DateTime']['input']>;
887
896
  };
888
897
  export type SignatoryBeaconOutput = {
889
898
  __typename?: 'SignatoryBeaconOutput';
@@ -925,12 +934,12 @@ export type SignatoryEvidenceValidationInput = {
925
934
  value?: InputMaybe<Scalars['String']['input']>;
926
935
  };
927
936
  export type SignatoryFrontendEvent = 'DOWNLOAD_LINK_OPENED' | 'SIGN_LINK_OPENED' | '%future added value';
928
- export type SignatoryRole = 'SIGNER' | 'VIEWER' | '%future added value';
937
+ export type SignatoryRole = 'APPROVER' | 'SIGNER' | 'VIEWER' | '%future added value';
929
938
  export type SignatorySigningSequence = {
930
939
  __typename?: 'SignatorySigningSequence';
931
940
  initialNumber: Scalars['Int']['output'];
932
941
  };
933
- export type SignatoryStatus = 'DELETED' | 'ERROR' | 'OPEN' | 'REJECTED' | 'SIGNED' | '%future added value';
942
+ export type SignatoryStatus = 'APPROVED' | 'DELETED' | 'ERROR' | 'OPEN' | 'REJECTED' | 'SIGNED' | '%future added value';
934
943
  export type SignatoryUiInput = {
935
944
  /** Removes the UI options to reject a document or signature order. */
936
945
  disableRejection?: InputMaybe<Scalars['Boolean']['input']>;
@@ -1156,6 +1165,8 @@ export type ValidateDocumentOutput = {
1156
1165
  errors?: Maybe<Array<Scalars['String']['output']>>;
1157
1166
  /** Whether or not the errors are fixable using 'fixDocumentFormattingErrors' */
1158
1167
  fixable?: Maybe<Scalars['Boolean']['output']>;
1168
+ /** `true` if the document contains bookmarks. If the value is `null`, we were unable to determine whether the document has any bookmarks. */
1169
+ hasBookmarks?: Maybe<Scalars['Boolean']['output']>;
1159
1170
  /** `true` if the document contains signatures. If value is `null`, we were unable to determine whether the document has been previously signed. */
1160
1171
  previouslySigned?: Maybe<Scalars['Boolean']['output']>;
1161
1172
  valid: Scalars['Boolean']['output'];
@@ -1210,7 +1221,7 @@ export type WebhookInvocation = {
1210
1221
  timestamp: Scalars['String']['output'];
1211
1222
  url: Scalars['String']['output'];
1212
1223
  };
1213
- export type WebhookInvocationEvent = 'SIGNATORY_DOCUMENT_STATUS_CHANGED' | 'SIGNATORY_DOWNLOAD_LINK_OPENED' | 'SIGNATORY_REJECTED' | 'SIGNATORY_SIGNED' | 'SIGNATORY_SIGN_ERROR' | 'SIGNATORY_SIGN_LINK_OPENED' | 'SIGNATURE_ORDER_EXPIRED' | '%future added value';
1224
+ export type WebhookInvocationEvent = 'SIGNATORY_APPROVED' | 'SIGNATORY_DOCUMENT_STATUS_CHANGED' | 'SIGNATORY_DOWNLOAD_LINK_OPENED' | 'SIGNATORY_REJECTED' | 'SIGNATORY_SIGNED' | 'SIGNATORY_SIGN_ERROR' | 'SIGNATORY_SIGN_LINK_OPENED' | 'SIGNATURE_ORDER_EXPIRED' | '%future added value';
1214
1225
  export type WebhookSuccessfulInvocation = WebhookInvocation & {
1215
1226
  __typename?: 'WebhookSuccessfulInvocation';
1216
1227
  correlationId: Scalars['String']['output'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@criipto/signatures",
3
- "version": "1.29.0",
3
+ "version": "1.29.2",
4
4
  "private": false,
5
5
  "description": "A Node.JS SDK for Criipto Signatures",
6
6
  "main": "dist/index.js",