@criipto/signatures 1.9.0 → 1.10.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.
@@ -98,6 +98,35 @@ export type ApplicationApiKey = {
98
98
  note?: Maybe<Scalars['String']>;
99
99
  };
100
100
  export type ApplicationApiKeyMode = 'READ_ONLY' | 'READ_WRITE' | '%future added value';
101
+ export type BatchSignatory = {
102
+ __typename?: 'BatchSignatory';
103
+ href: Scalars['String'];
104
+ id: Scalars['ID'];
105
+ items: Array<BatchSignatoryItem>;
106
+ /** The authentication token required for performing batch operations. */
107
+ token: Scalars['String'];
108
+ ui: SignatureOrderUi;
109
+ };
110
+ export type BatchSignatoryItem = {
111
+ __typename?: 'BatchSignatoryItem';
112
+ signatory: Signatory;
113
+ signatureOrder: SignatureOrder;
114
+ };
115
+ export type BatchSignatoryItemInput = {
116
+ signatoryId: Scalars['String'];
117
+ signatureOrderId: Scalars['String'];
118
+ };
119
+ export type BatchSignatoryViewer = Viewer & {
120
+ __typename?: 'BatchSignatoryViewer';
121
+ authenticated: Scalars['Boolean'];
122
+ batchSignatoryId: Scalars['ID'];
123
+ documents: SignatoryDocumentConnection;
124
+ evidenceProviders: Array<SignatureEvidenceProvider>;
125
+ id: Scalars['ID'];
126
+ signer: Scalars['Boolean'];
127
+ status: SignatoryStatus;
128
+ ui: SignatureOrderUi;
129
+ };
101
130
  export type CancelSignatureOrderInput = {
102
131
  signatureOrderId: Scalars['ID'];
103
132
  };
@@ -169,6 +198,15 @@ export type CreateApplicationOutput = {
169
198
  application: Application;
170
199
  tenant: Tenant;
171
200
  };
201
+ export type CreateBatchSignatoryInput = {
202
+ items: Array<BatchSignatoryItemInput>;
203
+ /** UI settings for batch signatory, will use defaults otherwise (will not use UI settings from sub signatories) */
204
+ ui?: InputMaybe<SignatoryUiInput>;
205
+ };
206
+ export type CreateBatchSignatoryOutput = {
207
+ __typename?: 'CreateBatchSignatoryOutput';
208
+ batchSignatory: BatchSignatory;
209
+ };
172
210
  export type CreateSignatureOrderInput = {
173
211
  /** By default signatories will be prompted to sign with a Criipto Verify based e-ID, this setting disables it. */
174
212
  disableVerifyEvidenceProvider?: InputMaybe<Scalars['Boolean']>;
@@ -345,7 +383,7 @@ export type EvidenceProviderInput = {
345
383
  enabledByDefault?: InputMaybe<Scalars['Boolean']>;
346
384
  /** TEST environment only. Does not manipulate the PDF, use for integration or webhook testing. */
347
385
  noop?: InputMaybe<NoopEvidenceProviderInput>;
348
- /** OIDC/JWT based evidence for signatures. */
386
+ /** Deprecated */
349
387
  oidc?: InputMaybe<OidcEvidenceProviderInput>;
350
388
  };
351
389
  export type EvidenceValidationStage = 'SIGN'
@@ -385,6 +423,7 @@ export type Mutation = {
385
423
  createApplication?: Maybe<CreateApplicationOutput>;
386
424
  /** Creates a new set of api credentials for an existing application. */
387
425
  createApplicationApiKey?: Maybe<CreateApplicationApiKeyOutput>;
426
+ createBatchSignatory?: Maybe<CreateBatchSignatoryOutput>;
388
427
  /** Creates a signature order to be signed. */
389
428
  createSignatureOrder?: Maybe<CreateSignatureOrderOutput>;
390
429
  /** Deletes a set of API credentials for an application. */
@@ -434,6 +473,9 @@ export type MutationCreateApplicationArgs = {
434
473
  export type MutationCreateApplicationApiKeyArgs = {
435
474
  input: CreateApplicationApiKeyInput;
436
475
  };
476
+ export type MutationCreateBatchSignatoryArgs = {
477
+ input: CreateBatchSignatoryInput;
478
+ };
437
479
  export type MutationCreateSignatureOrderArgs = {
438
480
  input: CreateSignatureOrderInput;
439
481
  };
@@ -530,6 +572,8 @@ export type PageInfo = {
530
572
  export type PdfDocument = Document & {
531
573
  __typename?: 'PdfDocument';
532
574
  blob?: Maybe<Scalars['Blob']>;
575
+ /** Same value as stamped on document when using displayDocumentID */
576
+ documentID: Scalars['String'];
533
577
  form?: Maybe<PdfDocumentForm>;
534
578
  id: Scalars['ID'];
535
579
  originalBlob?: Maybe<Scalars['Blob']>;
@@ -550,6 +594,7 @@ export type PdfSealPosition = {
550
594
  export type Query = {
551
595
  __typename?: 'Query';
552
596
  application?: Maybe<Application>;
597
+ batchSignatory?: Maybe<BatchSignatory>;
553
598
  document?: Maybe<Document>;
554
599
  /** Query a signatory by id. Useful when using webhooks. */
555
600
  signatory?: Maybe<Signatory>;
@@ -563,6 +608,9 @@ export type QueryApplicationArgs = {
563
608
  id?: InputMaybe<Scalars['ID']>;
564
609
  verifyApplication?: InputMaybe<VerifyApplicationQueryInput>;
565
610
  };
611
+ export type QueryBatchSignatoryArgs = {
612
+ id: Scalars['ID'];
613
+ };
566
614
  export type QueryDocumentArgs = {
567
615
  id: Scalars['ID'];
568
616
  };
@@ -703,7 +751,7 @@ export type SignatoryEvidenceProviderInput = {
703
751
  id: Scalars['ID'];
704
752
  /** TEST environment only. Does not manipulate the PDF, use for integration or webhook testing. */
705
753
  noop?: InputMaybe<NoopEvidenceProviderInput>;
706
- /** OIDC/JWT based evidence for signatures. */
754
+ /** Deprecated */
707
755
  oidc?: InputMaybe<OidcEvidenceProviderInput>;
708
756
  };
709
757
  export type SignatoryEvidenceValidationInput = {
@@ -848,7 +896,7 @@ export type SingleEvidenceProviderInput = {
848
896
  drawable?: InputMaybe<DrawableEvidenceProviderInput>;
849
897
  /** TEST environment only. Does not manipulate the PDF, use for integration or webhook testing. */
850
898
  noop?: InputMaybe<NoopEvidenceProviderInput>;
851
- /** OIDC/JWT based evidence for signatures. */
899
+ /** Deprecated */
852
900
  oidc?: InputMaybe<OidcEvidenceProviderInput>;
853
901
  };
854
902
  export type SingleSignature = {
@@ -2299,6 +2347,8 @@ export type SignatureOrdersQuery = {
2299
2347
  };
2300
2348
  }>;
2301
2349
  };
2350
+ } | {
2351
+ __typename: 'BatchSignatoryViewer';
2302
2352
  } | {
2303
2353
  __typename: 'SignatoryViewer';
2304
2354
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@criipto/signatures",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "private": false,
5
5
  "description": "A Node.js SDK for Criipto Signatures",
6
6
  "main": "dist/index.js",