@arbidocs/client 0.4.59 → 0.4.60

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.cts CHANGED
@@ -4323,6 +4323,66 @@ interface paths {
4323
4323
  patch?: never;
4324
4324
  trace?: never;
4325
4325
  };
4326
+ '/v1/document/{document_ext_id}/sign/prepare': {
4327
+ parameters: {
4328
+ query?: never;
4329
+ header?: never;
4330
+ path?: never;
4331
+ cookie?: never;
4332
+ };
4333
+ get?: never;
4334
+ put?: never;
4335
+ /**
4336
+ * Prepare Document Signature
4337
+ * @description Return the exact statement the signer's key must sign, and the hash of the PDF they are shown.
4338
+ */
4339
+ post: operations['prepare_document_signature'];
4340
+ delete?: never;
4341
+ options?: never;
4342
+ head?: never;
4343
+ patch?: never;
4344
+ trace?: never;
4345
+ };
4346
+ '/v1/document/{document_ext_id}/sign': {
4347
+ parameters: {
4348
+ query?: never;
4349
+ header?: never;
4350
+ path?: never;
4351
+ cookie?: never;
4352
+ };
4353
+ get?: never;
4354
+ put?: never;
4355
+ /**
4356
+ * Sign Document
4357
+ * @description Sign a document: verify the signer's statement, seal a signed copy, save it as a new child document.
4358
+ */
4359
+ post: operations['sign_document'];
4360
+ delete?: never;
4361
+ options?: never;
4362
+ head?: never;
4363
+ patch?: never;
4364
+ trace?: never;
4365
+ };
4366
+ '/v1/document/{document_ext_id}/signatures': {
4367
+ parameters: {
4368
+ query?: never;
4369
+ header?: never;
4370
+ path?: never;
4371
+ cookie?: never;
4372
+ };
4373
+ /**
4374
+ * Get Document Signature Status
4375
+ * @description Is this document a signed copy, and is it unchanged since signing? Read from the PDF itself.
4376
+ */
4377
+ get: operations['get_document_signature_status'];
4378
+ put?: never;
4379
+ post?: never;
4380
+ delete?: never;
4381
+ options?: never;
4382
+ head?: never;
4383
+ patch?: never;
4384
+ trace?: never;
4385
+ };
4326
4386
  }
4327
4387
  type webhooks = Record<string, never>;
4328
4388
  interface components {
@@ -14090,6 +14150,148 @@ interface components {
14090
14150
  * @enum {string}
14091
14151
  */
14092
14152
  src__models__workflow__AuthMode: 'run_now_temp' | 'scheduled_require_auth' | 'scheduled_permanent';
14153
+ /** PrepareSignatureRequest */
14154
+ PrepareSignatureRequest: {
14155
+ signer: components['schemas']['SignerDetails'];
14156
+ /** @description Omit for the bottom of the last page */
14157
+ appearance?: components['schemas']['SignatureAppearance'] | null;
14158
+ };
14159
+ /** PrepareSignatureResponse */
14160
+ PrepareSignatureResponse: {
14161
+ /**
14162
+ * Statement
14163
+ * @description The exact text to sign with the user's Ed25519 key
14164
+ */
14165
+ statement: string;
14166
+ /**
14167
+ * Intent
14168
+ * @description The statement of intent shown to the signer
14169
+ */
14170
+ intent: string;
14171
+ /**
14172
+ * Source Sha256
14173
+ * @description SHA-256 of the PDF the signer is shown (the /view rendition)
14174
+ */
14175
+ source_sha256: string;
14176
+ /** Timestamp */
14177
+ timestamp: number;
14178
+ };
14179
+ /** SignDocumentRequest */
14180
+ SignDocumentRequest: {
14181
+ signer: components['schemas']['SignerDetails'];
14182
+ /** @description Omit for the bottom of the last page */
14183
+ appearance?: components['schemas']['SignatureAppearance'] | null;
14184
+ /** Timestamp */
14185
+ timestamp: number;
14186
+ /**
14187
+ * Signature
14188
+ * @description Ed25519 signature (base64) of the prepared statement
14189
+ */
14190
+ signature: string;
14191
+ };
14192
+ /** SignDocumentResponse */
14193
+ SignDocumentResponse: {
14194
+ /** Signed Doc Ext Id */
14195
+ signed_doc_ext_id: string;
14196
+ signature: components['schemas']['SignatureRecord'];
14197
+ };
14198
+ /**
14199
+ * SignatureAppearance
14200
+ * @description Where the visible signature goes. Coordinates are fractions of the page, origin top-left.
14201
+ */
14202
+ SignatureAppearance: {
14203
+ /**
14204
+ * Page
14205
+ * @description 0-based page index; negative counts from the end (-1 = last page)
14206
+ * @default -1
14207
+ */
14208
+ page: number;
14209
+ /**
14210
+ * X
14211
+ * @default 0.08
14212
+ */
14213
+ x: number;
14214
+ /**
14215
+ * Y
14216
+ * @default 0.8
14217
+ */
14218
+ y: number;
14219
+ /**
14220
+ * Width
14221
+ * @default 0.4
14222
+ */
14223
+ width: number;
14224
+ /**
14225
+ * Height
14226
+ * @default 0.1
14227
+ */
14228
+ height: number;
14229
+ };
14230
+ /** SignerDetails */
14231
+ SignerDetails: {
14232
+ /** Name */
14233
+ name: string;
14234
+ /**
14235
+ * Capacity
14236
+ * @description e.g. 'Partner', 'Solicitor'
14237
+ */
14238
+ capacity?: string | null;
14239
+ /**
14240
+ * On Behalf Of
14241
+ * @description e.g. the firm's name
14242
+ */
14243
+ on_behalf_of?: string | null;
14244
+ };
14245
+ /** SignatureRecord */
14246
+ SignatureRecord: {
14247
+ /** Reference */
14248
+ reference: string;
14249
+ /** Signer Email */
14250
+ signer_email: string;
14251
+ /** Intent */
14252
+ intent: string;
14253
+ /**
14254
+ * Source Doc Ext Id
14255
+ * @description The document that was signed
14256
+ */
14257
+ source_doc_ext_id: string;
14258
+ /** Source Sha256 */
14259
+ source_sha256: string;
14260
+ /**
14261
+ * Signed At
14262
+ * Format: date-time
14263
+ */
14264
+ signed_at: string;
14265
+ /**
14266
+ * Statement Valid
14267
+ * @description The signer's Ed25519 signature over the statement verifies
14268
+ */
14269
+ statement_valid: boolean;
14270
+ };
14271
+ /** SignatureStatusResponse */
14272
+ SignatureStatusResponse: {
14273
+ /**
14274
+ * Signed
14275
+ * @description This document is a PDF signed and sealed by ARBI
14276
+ */
14277
+ signed: boolean;
14278
+ /**
14279
+ * Intact
14280
+ * @description The seal verifies: nothing changed since signing
14281
+ */
14282
+ intact: boolean;
14283
+ /**
14284
+ * Timestamped
14285
+ * @description The seal carries an RFC 3161 timestamp
14286
+ * @default false
14287
+ */
14288
+ timestamped: boolean;
14289
+ /**
14290
+ * Signatures
14291
+ * @default []
14292
+ */
14293
+ signatures: components['schemas']['SignatureRecord'][];
14294
+ };
14093
14295
  };
14094
14296
  responses: never;
14095
14297
  parameters: never;
@@ -20784,6 +20986,107 @@ interface operations {
20784
20986
  };
20785
20987
  };
20786
20988
  };
20989
+ prepare_document_signature: {
20990
+ parameters: {
20991
+ query?: never;
20992
+ header?: never;
20993
+ path: {
20994
+ document_ext_id: string;
20995
+ };
20996
+ cookie?: never;
20997
+ };
20998
+ requestBody: {
20999
+ content: {
21000
+ 'application/json': components['schemas']['PrepareSignatureRequest'];
21001
+ };
21002
+ };
21003
+ responses: {
21004
+ /** @description Successful Response */
21005
+ 200: {
21006
+ headers: {
21007
+ [name: string]: unknown;
21008
+ };
21009
+ content: {
21010
+ 'application/json': components['schemas']['PrepareSignatureResponse'];
21011
+ };
21012
+ };
21013
+ /** @description Validation Error */
21014
+ 422: {
21015
+ headers: {
21016
+ [name: string]: unknown;
21017
+ };
21018
+ content: {
21019
+ 'application/json': components['schemas']['HTTPValidationError'];
21020
+ };
21021
+ };
21022
+ };
21023
+ };
21024
+ sign_document: {
21025
+ parameters: {
21026
+ query?: never;
21027
+ header?: never;
21028
+ path: {
21029
+ document_ext_id: string;
21030
+ };
21031
+ cookie?: never;
21032
+ };
21033
+ requestBody: {
21034
+ content: {
21035
+ 'application/json': components['schemas']['SignDocumentRequest'];
21036
+ };
21037
+ };
21038
+ responses: {
21039
+ /** @description Successful Response */
21040
+ 200: {
21041
+ headers: {
21042
+ [name: string]: unknown;
21043
+ };
21044
+ content: {
21045
+ 'application/json': components['schemas']['SignDocumentResponse'];
21046
+ };
21047
+ };
21048
+ /** @description Validation Error */
21049
+ 422: {
21050
+ headers: {
21051
+ [name: string]: unknown;
21052
+ };
21053
+ content: {
21054
+ 'application/json': components['schemas']['HTTPValidationError'];
21055
+ };
21056
+ };
21057
+ };
21058
+ };
21059
+ get_document_signature_status: {
21060
+ parameters: {
21061
+ query?: never;
21062
+ header?: never;
21063
+ path: {
21064
+ document_ext_id: string;
21065
+ };
21066
+ cookie?: never;
21067
+ };
21068
+ requestBody?: never;
21069
+ responses: {
21070
+ /** @description Successful Response */
21071
+ 200: {
21072
+ headers: {
21073
+ [name: string]: unknown;
21074
+ };
21075
+ content: {
21076
+ 'application/json': components['schemas']['SignatureStatusResponse'];
21077
+ };
21078
+ };
21079
+ /** @description Validation Error */
21080
+ 422: {
21081
+ headers: {
21082
+ [name: string]: unknown;
21083
+ };
21084
+ content: {
21085
+ 'application/json': components['schemas']['HTTPValidationError'];
21086
+ };
21087
+ };
21088
+ };
21089
+ };
20787
21090
  }
20788
21091
 
20789
21092
  /**
package/dist/index.d.ts CHANGED
@@ -4323,6 +4323,66 @@ interface paths {
4323
4323
  patch?: never;
4324
4324
  trace?: never;
4325
4325
  };
4326
+ '/v1/document/{document_ext_id}/sign/prepare': {
4327
+ parameters: {
4328
+ query?: never;
4329
+ header?: never;
4330
+ path?: never;
4331
+ cookie?: never;
4332
+ };
4333
+ get?: never;
4334
+ put?: never;
4335
+ /**
4336
+ * Prepare Document Signature
4337
+ * @description Return the exact statement the signer's key must sign, and the hash of the PDF they are shown.
4338
+ */
4339
+ post: operations['prepare_document_signature'];
4340
+ delete?: never;
4341
+ options?: never;
4342
+ head?: never;
4343
+ patch?: never;
4344
+ trace?: never;
4345
+ };
4346
+ '/v1/document/{document_ext_id}/sign': {
4347
+ parameters: {
4348
+ query?: never;
4349
+ header?: never;
4350
+ path?: never;
4351
+ cookie?: never;
4352
+ };
4353
+ get?: never;
4354
+ put?: never;
4355
+ /**
4356
+ * Sign Document
4357
+ * @description Sign a document: verify the signer's statement, seal a signed copy, save it as a new child document.
4358
+ */
4359
+ post: operations['sign_document'];
4360
+ delete?: never;
4361
+ options?: never;
4362
+ head?: never;
4363
+ patch?: never;
4364
+ trace?: never;
4365
+ };
4366
+ '/v1/document/{document_ext_id}/signatures': {
4367
+ parameters: {
4368
+ query?: never;
4369
+ header?: never;
4370
+ path?: never;
4371
+ cookie?: never;
4372
+ };
4373
+ /**
4374
+ * Get Document Signature Status
4375
+ * @description Is this document a signed copy, and is it unchanged since signing? Read from the PDF itself.
4376
+ */
4377
+ get: operations['get_document_signature_status'];
4378
+ put?: never;
4379
+ post?: never;
4380
+ delete?: never;
4381
+ options?: never;
4382
+ head?: never;
4383
+ patch?: never;
4384
+ trace?: never;
4385
+ };
4326
4386
  }
4327
4387
  type webhooks = Record<string, never>;
4328
4388
  interface components {
@@ -14090,6 +14150,148 @@ interface components {
14090
14150
  * @enum {string}
14091
14151
  */
14092
14152
  src__models__workflow__AuthMode: 'run_now_temp' | 'scheduled_require_auth' | 'scheduled_permanent';
14153
+ /** PrepareSignatureRequest */
14154
+ PrepareSignatureRequest: {
14155
+ signer: components['schemas']['SignerDetails'];
14156
+ /** @description Omit for the bottom of the last page */
14157
+ appearance?: components['schemas']['SignatureAppearance'] | null;
14158
+ };
14159
+ /** PrepareSignatureResponse */
14160
+ PrepareSignatureResponse: {
14161
+ /**
14162
+ * Statement
14163
+ * @description The exact text to sign with the user's Ed25519 key
14164
+ */
14165
+ statement: string;
14166
+ /**
14167
+ * Intent
14168
+ * @description The statement of intent shown to the signer
14169
+ */
14170
+ intent: string;
14171
+ /**
14172
+ * Source Sha256
14173
+ * @description SHA-256 of the PDF the signer is shown (the /view rendition)
14174
+ */
14175
+ source_sha256: string;
14176
+ /** Timestamp */
14177
+ timestamp: number;
14178
+ };
14179
+ /** SignDocumentRequest */
14180
+ SignDocumentRequest: {
14181
+ signer: components['schemas']['SignerDetails'];
14182
+ /** @description Omit for the bottom of the last page */
14183
+ appearance?: components['schemas']['SignatureAppearance'] | null;
14184
+ /** Timestamp */
14185
+ timestamp: number;
14186
+ /**
14187
+ * Signature
14188
+ * @description Ed25519 signature (base64) of the prepared statement
14189
+ */
14190
+ signature: string;
14191
+ };
14192
+ /** SignDocumentResponse */
14193
+ SignDocumentResponse: {
14194
+ /** Signed Doc Ext Id */
14195
+ signed_doc_ext_id: string;
14196
+ signature: components['schemas']['SignatureRecord'];
14197
+ };
14198
+ /**
14199
+ * SignatureAppearance
14200
+ * @description Where the visible signature goes. Coordinates are fractions of the page, origin top-left.
14201
+ */
14202
+ SignatureAppearance: {
14203
+ /**
14204
+ * Page
14205
+ * @description 0-based page index; negative counts from the end (-1 = last page)
14206
+ * @default -1
14207
+ */
14208
+ page: number;
14209
+ /**
14210
+ * X
14211
+ * @default 0.08
14212
+ */
14213
+ x: number;
14214
+ /**
14215
+ * Y
14216
+ * @default 0.8
14217
+ */
14218
+ y: number;
14219
+ /**
14220
+ * Width
14221
+ * @default 0.4
14222
+ */
14223
+ width: number;
14224
+ /**
14225
+ * Height
14226
+ * @default 0.1
14227
+ */
14228
+ height: number;
14229
+ };
14230
+ /** SignerDetails */
14231
+ SignerDetails: {
14232
+ /** Name */
14233
+ name: string;
14234
+ /**
14235
+ * Capacity
14236
+ * @description e.g. 'Partner', 'Solicitor'
14237
+ */
14238
+ capacity?: string | null;
14239
+ /**
14240
+ * On Behalf Of
14241
+ * @description e.g. the firm's name
14242
+ */
14243
+ on_behalf_of?: string | null;
14244
+ };
14245
+ /** SignatureRecord */
14246
+ SignatureRecord: {
14247
+ /** Reference */
14248
+ reference: string;
14249
+ /** Signer Email */
14250
+ signer_email: string;
14251
+ /** Intent */
14252
+ intent: string;
14253
+ /**
14254
+ * Source Doc Ext Id
14255
+ * @description The document that was signed
14256
+ */
14257
+ source_doc_ext_id: string;
14258
+ /** Source Sha256 */
14259
+ source_sha256: string;
14260
+ /**
14261
+ * Signed At
14262
+ * Format: date-time
14263
+ */
14264
+ signed_at: string;
14265
+ /**
14266
+ * Statement Valid
14267
+ * @description The signer's Ed25519 signature over the statement verifies
14268
+ */
14269
+ statement_valid: boolean;
14270
+ };
14271
+ /** SignatureStatusResponse */
14272
+ SignatureStatusResponse: {
14273
+ /**
14274
+ * Signed
14275
+ * @description This document is a PDF signed and sealed by ARBI
14276
+ */
14277
+ signed: boolean;
14278
+ /**
14279
+ * Intact
14280
+ * @description The seal verifies: nothing changed since signing
14281
+ */
14282
+ intact: boolean;
14283
+ /**
14284
+ * Timestamped
14285
+ * @description The seal carries an RFC 3161 timestamp
14286
+ * @default false
14287
+ */
14288
+ timestamped: boolean;
14289
+ /**
14290
+ * Signatures
14291
+ * @default []
14292
+ */
14293
+ signatures: components['schemas']['SignatureRecord'][];
14294
+ };
14093
14295
  };
14094
14296
  responses: never;
14095
14297
  parameters: never;
@@ -20784,6 +20986,107 @@ interface operations {
20784
20986
  };
20785
20987
  };
20786
20988
  };
20989
+ prepare_document_signature: {
20990
+ parameters: {
20991
+ query?: never;
20992
+ header?: never;
20993
+ path: {
20994
+ document_ext_id: string;
20995
+ };
20996
+ cookie?: never;
20997
+ };
20998
+ requestBody: {
20999
+ content: {
21000
+ 'application/json': components['schemas']['PrepareSignatureRequest'];
21001
+ };
21002
+ };
21003
+ responses: {
21004
+ /** @description Successful Response */
21005
+ 200: {
21006
+ headers: {
21007
+ [name: string]: unknown;
21008
+ };
21009
+ content: {
21010
+ 'application/json': components['schemas']['PrepareSignatureResponse'];
21011
+ };
21012
+ };
21013
+ /** @description Validation Error */
21014
+ 422: {
21015
+ headers: {
21016
+ [name: string]: unknown;
21017
+ };
21018
+ content: {
21019
+ 'application/json': components['schemas']['HTTPValidationError'];
21020
+ };
21021
+ };
21022
+ };
21023
+ };
21024
+ sign_document: {
21025
+ parameters: {
21026
+ query?: never;
21027
+ header?: never;
21028
+ path: {
21029
+ document_ext_id: string;
21030
+ };
21031
+ cookie?: never;
21032
+ };
21033
+ requestBody: {
21034
+ content: {
21035
+ 'application/json': components['schemas']['SignDocumentRequest'];
21036
+ };
21037
+ };
21038
+ responses: {
21039
+ /** @description Successful Response */
21040
+ 200: {
21041
+ headers: {
21042
+ [name: string]: unknown;
21043
+ };
21044
+ content: {
21045
+ 'application/json': components['schemas']['SignDocumentResponse'];
21046
+ };
21047
+ };
21048
+ /** @description Validation Error */
21049
+ 422: {
21050
+ headers: {
21051
+ [name: string]: unknown;
21052
+ };
21053
+ content: {
21054
+ 'application/json': components['schemas']['HTTPValidationError'];
21055
+ };
21056
+ };
21057
+ };
21058
+ };
21059
+ get_document_signature_status: {
21060
+ parameters: {
21061
+ query?: never;
21062
+ header?: never;
21063
+ path: {
21064
+ document_ext_id: string;
21065
+ };
21066
+ cookie?: never;
21067
+ };
21068
+ requestBody?: never;
21069
+ responses: {
21070
+ /** @description Successful Response */
21071
+ 200: {
21072
+ headers: {
21073
+ [name: string]: unknown;
21074
+ };
21075
+ content: {
21076
+ 'application/json': components['schemas']['SignatureStatusResponse'];
21077
+ };
21078
+ };
21079
+ /** @description Validation Error */
21080
+ 422: {
21081
+ headers: {
21082
+ [name: string]: unknown;
21083
+ };
21084
+ content: {
21085
+ 'application/json': components['schemas']['HTTPValidationError'];
21086
+ };
21087
+ };
21088
+ };
21089
+ };
20787
21090
  }
20788
21091
 
20789
21092
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.4.59",
3
+ "version": "0.4.60",
4
4
  "description": "TypeScript SDK for the ARBI API — zero-knowledge auth, E2E encryption, and type-safe REST client",
5
5
  "type": "module",
6
6
  "sideEffects": false,