@assinafy/sdk 2.7.0 → 2.7.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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.7.1] - 2026-10-12
11
+
12
+ ### Added
13
+
14
+ - `signerDocuments.listAsWorkspace()` and `searchAsWorkspace()` list and
15
+ search a signer's documents with the client's API key or OAuth token. They
16
+ never send a signer access code.
17
+ - `ApiError.rateLimit` exposes the `X-Rate-Limit-Limit`,
18
+ `X-Rate-Limit-Remaining`, `X-Rate-Limit-Reset` and `Retry-After` headers of
19
+ the failed response (new exported type `IRateLimitInfo`).
20
+ - `IOAuthTokenResponse.issued_token_type` and `ITemplateListItem.resource`,
21
+ as published in the API contract.
22
+
23
+ ### Changed
24
+
25
+ - **`documents.sendToken()` follows the published contract**: it always sends
26
+ `{ "channel": "email", "recipient": "…" }` and resolves with the response
27
+ `data` (`{ document, channel, recipient }`, new type `ISendTokenResult`)
28
+ instead of `void`. The legacy `{ email }` body and its automatic retry are
29
+ gone. `SendTokenChannel` is now `'email'`; passing `'whatsapp'` or a
30
+ non-email recipient is rejected with a `ValidationError` before any request,
31
+ because the endpoint accepts only the email channel.
32
+ - `signerDocuments.decline()` and `declineMultiple()` reject a decline reason
33
+ longer than 2000 characters, the documented limit.
34
+ - `WebhookVerifier.verifySignature()` reads `webhook-*` headers from a plain
35
+ object regardless of letter case.
36
+
10
37
  ## [2.7.0] - 2026-10-10
11
38
 
12
39
  ### Changed
@@ -771,7 +798,9 @@ signer fields with `cpf` and `whatsapp_phone_number`.
771
798
  - High-level `uploadAndRequestSignatures` helper on `AssinafyClient`.
772
799
  - `PaginatedResult<T>` with parsed `X-Pagination-*` header meta.
773
800
 
774
- [Unreleased]: https://github.com/assinafy/typescript-sdk/compare/v2.6.0...HEAD
801
+ [Unreleased]: https://github.com/assinafy/typescript-sdk/compare/v2.7.1...HEAD
802
+ [2.7.1]: https://github.com/assinafy/typescript-sdk/compare/v2.7.0...v2.7.1
803
+ [2.7.0]: https://github.com/assinafy/typescript-sdk/compare/v2.6.0...v2.7.0
775
804
  [2.6.0]: https://github.com/assinafy/typescript-sdk/compare/v2.5.2...v2.6.0
776
805
  [2.5.2]: https://github.com/assinafy/typescript-sdk/compare/v2.5.1...v2.5.2
777
806
  [2.5.1]: https://github.com/assinafy/typescript-sdk/compare/v2.5.0...v2.5.1
package/README.en.md CHANGED
@@ -308,6 +308,10 @@ anything for them.
308
308
 
309
309
  ### Rate limiting
310
310
 
311
+ Once retries are spent, the `ApiError` carries `err.rateLimit` with `limit`,
312
+ `remaining`, `reset` (from `X-Rate-Limit-*`) and `retryAfter` (`Retry-After`,
313
+ in seconds).
314
+
311
315
  On an HTTP `429`, the client automatically retries up to `maxRetries` times,
312
316
  waiting for the server-provided `Retry-After` (or `X-Rate-Limit-Reset`) delay
313
317
  before each attempt. Automatic replay is limited to read-safe `GET`, `HEAD`,
@@ -352,7 +356,7 @@ ledger is in [docs/API_COVERAGE.md](docs/API_COVERAGE.md).
352
356
  | `client.oauth` | **getProtectedResourceMetadata**, **getAuthorizationServerMetadata**, **createAuthorizationUrl**, **readAuthorizationCallback**, **exchangeCode**, **refreshToken**, **revokeToken**, **getUserInfo** |
353
357
  | `client.auth` | getSocialLoginUrl, getSocialLoginCallbackUrl, login, verifyMfa, socialLogin, linkSocialLogin, createApiKey, getApiKey, deleteApiKey, changePassword, requestPasswordReset, resetPassword |
354
358
  | `client.users` | getCurrent, getStats, getNotificationPreferences, updateNotificationPreferences, getMfa, startTotpEnrollment, confirmTotpEnrollment, regenerateRecoveryCodes, deleteMfaMethod |
355
- | `client.signerDocuments` | getCurrent, list, search, download, signMultiple, declineMultiple, self, acceptTerms, verifyEmail, confirmData, uploadSignature, downloadSignature, getAssignment, sign, decline |
359
+ | `client.signerDocuments` | getCurrent, list, search, listAsWorkspace, searchAsWorkspace, download, signMultiple, declineMultiple, self, acceptTerms, verifyEmail, confirmData, uploadSignature, downloadSignature, getAssignment, sign, decline |
356
360
  | `client.webhookVerifier` | verifySignature, extractEvent, getEventType, getEventData |
357
361
 
358
362
  Every HTTP wrapper has TypeScript-checked request/response shapes and
@@ -691,12 +695,8 @@ await client.documents.verify('FE32EDDADE7CBDDCBB934E7402047450B0E59C02');
691
695
 
692
696
  // Public endpoints (no auth)
693
697
  await client.documents.getPublic(doc.id);
694
- // Official request body: { email: 'jane@example.com' }
695
- await client.documents.sendToken(doc.id, 'jane@example.com');
696
-
697
- // Explicit compatibility overload for older deployments:
698
- // { recipient: '+5548999990000', channel: 'whatsapp' }
699
- await client.documents.sendToken(doc.id, '+5548999990000', 'whatsapp');
698
+ // Body: { channel: 'email', recipient: 'signer@example.com' } (email only)
699
+ await client.documents.sendToken(doc.id, 'signer@example.com');
700
700
 
701
701
  // The current OpenAPI contract requires existing tag IDs.
702
702
  const contractsTag = await client.tags.create({ name: 'Contracts' });
package/README.md CHANGED
@@ -296,6 +296,9 @@ configurações de conector; seus usuários não precisam que você registre nad
296
296
 
297
297
  ### Limite de requisições
298
298
 
299
+ Quando as tentativas se esgotam, o `ApiError` traz `err.rateLimit` com `limit`, `remaining`,
300
+ `reset` (de `X-Rate-Limit-*`) e `retryAfter` (`Retry-After`, em segundos).
301
+
299
302
  Em um HTTP `429` o cliente retenta até `maxRetries` vezes, aguardando o `Retry-After` (ou
300
303
  `X-Rate-Limit-Reset`) devolvido pelo servidor antes de cada tentativa. A repetição automática vale
301
304
  apenas para `GET`, `HEAD`, `OPTIONS` e `DELETE`, que são seguros de repetir. `GET /sign` fica de
@@ -338,7 +341,7 @@ As 106 operações documentadas em https://api.assinafy.com.br/v1/docs estão co
338
341
  | `client.oauth` | **getProtectedResourceMetadata**, **getAuthorizationServerMetadata**, **createAuthorizationUrl**, **readAuthorizationCallback**, **exchangeCode**, **refreshToken**, **revokeToken**, **getUserInfo** |
339
342
  | `client.auth` | getSocialLoginUrl, getSocialLoginCallbackUrl, login, verifyMfa, socialLogin, linkSocialLogin, createApiKey, getApiKey, deleteApiKey, changePassword, requestPasswordReset, resetPassword |
340
343
  | `client.users` | getCurrent, getStats, getNotificationPreferences, updateNotificationPreferences, getMfa, startTotpEnrollment, confirmTotpEnrollment, regenerateRecoveryCodes, deleteMfaMethod |
341
- | `client.signerDocuments` | getCurrent, list, search, download, signMultiple, declineMultiple, self, acceptTerms, verifyEmail, confirmData, uploadSignature, downloadSignature, getAssignment, sign, decline |
344
+ | `client.signerDocuments` | getCurrent, list, search, listAsWorkspace, searchAsWorkspace, download, signMultiple, declineMultiple, self, acceptTerms, verifyEmail, confirmData, uploadSignature, downloadSignature, getAssignment, sign, decline |
342
345
  | `client.webhookVerifier` | verifySignature, extractEvent, getEventType, getEventData |
343
346
 
344
347
  Todo wrapper HTTP tem tipos de requisição e resposta verificados pelo TypeScript e JSDoc por método,
@@ -660,12 +663,8 @@ await client.documents.verify('FE32EDDADE7CBDDCBB934E7402047450B0E59C02');
660
663
 
661
664
  // Endpoints públicos (sem autenticação)
662
665
  await client.documents.getPublic(doc.id);
663
- // Corpo oficial: { email: 'maria@exemplo.com.br' }
664
- await client.documents.sendToken(doc.id, 'maria@exemplo.com.br');
665
-
666
- // Sobrecarga explícita de compatibilidade para deploys mais antigos:
667
- // { recipient: '+5548999990000', channel: 'whatsapp' }
668
- await client.documents.sendToken(doc.id, '+5548999990000', 'whatsapp');
666
+ // Corpo: { channel: 'email', recipient: 'signer@example.com' } (só e-mail)
667
+ await client.documents.sendToken(doc.id, 'signer@example.com');
669
668
 
670
669
  // O contrato OpenAPI atual exige IDs de tags já existentes.
671
670
  const tagContratos = await client.tags.create({ name: 'Contratos' });
package/dist/index.d.mts CHANGED
@@ -868,6 +868,8 @@ interface IUpdateTemplatePayload {
868
868
  }
869
869
  /** Template list item (paginated). */
870
870
  interface ITemplateListItem {
871
+ /** Always `template`. */
872
+ resource?: string;
871
873
  id: string;
872
874
  name: string;
873
875
  document_name?: string | null;
@@ -1024,8 +1026,33 @@ interface IDocumentVerification {
1024
1026
  is_valid: boolean;
1025
1027
  message: string;
1026
1028
  }
1027
- /** Channel accepted by the `send-token` endpoint. */
1028
- type SendTokenChannel = 'email' | 'whatsapp' | AnyString;
1029
+ /** Channel accepted by the `send-token` endpoint; the contract allows only `email`. */
1030
+ type SendTokenChannel = 'email';
1031
+ /**
1032
+ * `data` returned by `PUT /public/documents/{documentId}/send-token`.
1033
+ *
1034
+ * ```jsonc
1035
+ * {
1036
+ * "document": { "resource": "document", "id": "a1b2…", "name": "Contract.pdf", "page_count": 3, "created_by": "Jane Doe" },
1037
+ * "channel": "email",
1038
+ * "recipient": "signer@example.com"
1039
+ * }
1040
+ * ```
1041
+ */
1042
+ interface ISendTokenResult {
1043
+ /** Summary of the document the token unlocks. */
1044
+ document: {
1045
+ resource: string;
1046
+ id: string;
1047
+ name: string;
1048
+ page_count: number;
1049
+ created_by: string;
1050
+ };
1051
+ /** Channel the token was sent through. */
1052
+ channel: string;
1053
+ /** Address the token was sent to. */
1054
+ recipient: string;
1055
+ }
1029
1056
  /** Authenticated user profile returned by login and `users.getCurrent()`. */
1030
1057
  interface IAuthenticatedUser {
1031
1058
  id: string;
@@ -1365,6 +1392,12 @@ interface IOAuthTokenResponse {
1365
1392
  scope?: string;
1366
1393
  /** Signed OIDC identity token (RS256). Present only when `openid` was granted. */
1367
1394
  id_token?: string | null;
1395
+ /**
1396
+ * RFC 8693 token type. Returned only by the token-exchange grant, which is
1397
+ * reserved for Assinafy's own services; absent from the two grants the SDK
1398
+ * sends.
1399
+ */
1400
+ issued_token_type?: string;
1368
1401
  }
1369
1402
  /** OpenID Connect claims returned by `GET /oauth/userinfo`. */
1370
1403
  interface IOAuthUserInfo {
@@ -2274,55 +2307,48 @@ declare class DocumentResource extends BaseResource {
2274
2307
  */
2275
2308
  getPublic(documentId: string): Promise<IPublicDocumentInfo>;
2276
2309
  /**
2277
- * Send the signer's access token to their email
2310
+ * Email the signer the verification token that unlocks a document
2278
2311
  * (`PUT /public/documents/{documentId}/send-token`).
2279
2312
  *
2280
2313
  * Part of the public signing flow: dispatches the 6-digit verification
2281
- * token the signer enters to view the document. The documented request body
2282
- * is `{ recipient, channel }` with `channel` set to `email`. This
2283
- * two-argument form sends the legacy `{ email }` shape, which current
2284
- * deployments still accept, and retries the documented shape only when the
2285
- * server explicitly reports that `channel`/`recipient` is required. Use the
2286
- * three-argument overload to send the documented shape directly.
2314
+ * token the signer enters to view the document. Runs on the
2315
+ * credential-free transport. The contract accepts only the `email`
2316
+ * channel, and both body fields are required.
2287
2317
  *
2288
2318
  * Request body (`application/json`):
2289
2319
  * ```jsonc
2290
- * { "email": "signer@example.com" }
2291
- * ```
2292
- * Documented body, sent on the explicit-channel overload or on retry:
2293
- * ```jsonc
2294
- * { "recipient": "signer@example.com", "channel": "email" }
2320
+ * { "channel": "email", "recipient": "signer@example.com" }
2295
2321
  * ```
2296
2322
  *
2297
2323
  * @param documentId - The document to send the token for.
2298
- * @param email - The signer's email address.
2299
- * @returns Nothing after the API's empty acknowledgement.
2300
- * @throws {ValidationError} If `documentId` is missing or `email` is not a
2301
- * valid email address.
2302
- * @throws {ApiError} If the API rejects the request.
2303
- *
2304
- * @example
2305
- * ```ts
2306
- * await client.documents.sendToken('doc-1', 'signer@example.com');
2324
+ * @param recipient - The signer's email address.
2325
+ * @param channel - Delivery channel; only `email` is accepted (default).
2326
+ * @returns The delivery confirmation (`data` of the envelope):
2327
+ * ```jsonc
2328
+ * {
2329
+ * "document": {
2330
+ * "resource": "document",
2331
+ * "id": "a1b2c3d4e5f6a7b8c9d0",
2332
+ * "name": "Contract.pdf",
2333
+ * "page_count": 3,
2334
+ * "created_by": "Jane Doe"
2335
+ * },
2336
+ * "channel": "email",
2337
+ * "recipient": "signer@example.com"
2338
+ * }
2307
2339
  * ```
2308
- */
2309
- sendToken(documentId: string, email: string): Promise<void>;
2310
- /**
2311
- * Send a signing token through an explicit channel
2312
- * (`PUT /public/documents/{documentId}/send-token`).
2313
- * Sends JSON `{ "recipient": "+5511999998888", "channel": "whatsapp" }`.
2314
- * @param documentId - Document identifier.
2315
- * @param recipient - Controlled email address or WhatsApp number.
2316
- * @param channel - Delivery channel, `email` or `whatsapp`.
2317
- * @returns Nothing; the acknowledgement body is discarded.
2318
- * @throws {ValidationError} If an argument is empty.
2319
- * @throws {ApiError} If delivery is rejected.
2340
+ * @throws {ValidationError} If `documentId` is missing, `recipient` is not
2341
+ * a valid email address, or `channel` is not `email`.
2342
+ * @throws {ApiError} `400` if validation fails; `404` if the document does
2343
+ * not exist.
2344
+ *
2320
2345
  * @example
2321
2346
  * ```ts
2322
- * await client.documents.sendToken('doc-1', 'signer@example.com', 'email');
2347
+ * const sent = await client.documents.sendToken('doc-1', 'signer@example.com');
2348
+ * console.log(sent.recipient);
2323
2349
  * ```
2324
2350
  */
2325
- sendToken(documentId: string, recipient: string, channel: SendTokenChannel): Promise<void>;
2351
+ sendToken(documentId: string, recipient: string, channel?: SendTokenChannel): Promise<ISendTokenResult>;
2326
2352
  /**
2327
2353
  * Quick boolean check (`GET /documents/{documentId}`): has every signer
2328
2354
  * completed their assignment?
@@ -5674,6 +5700,12 @@ declare class FieldsResource extends BaseResource {
5674
5700
  */
5675
5701
  declare class SignerDocumentsResource extends BaseResource {
5676
5702
  constructor(http: AxiosInstance, defaultAccountId?: string, logger?: Logger, publicHttp?: AxiosInstance);
5703
+ /**
5704
+ * Credentialed transport used only by the explicit `*AsWorkspace` methods.
5705
+ * Every access-code method stays on the credential-free `http`, so a
5706
+ * signer code and the API key or bearer token never share a request.
5707
+ */
5708
+ private readonly workspaceHttp;
5677
5709
  /**
5678
5710
  * Fetch the document currently awaiting a given signer
5679
5711
  * (`GET /signers/{signer_id}/document?signer-access-code=…`).
@@ -5816,6 +5848,54 @@ declare class SignerDocumentsResource extends BaseResource {
5816
5848
  * ```
5817
5849
  */
5818
5850
  search(signerId: string, signerAccessCode: string, search?: string): Promise<IDocumentListResponse>;
5851
+ /**
5852
+ * List a signer's documents with the workspace credentials
5853
+ * (`GET /signers/{signer_id}/documents`).
5854
+ *
5855
+ * The same operation as {@link SignerDocumentsResource.list}, authorised by
5856
+ * the client's API key or OAuth bearer token instead of a signer access
5857
+ * code. No `signer-access-code` is sent.
5858
+ *
5859
+ * @param signerId - The signer whose documents are listed.
5860
+ * @param params - Pagination: `page`, `per-page` (also accepts `per_page`).
5861
+ * @returns Documents in the compact {@link IDocumentListItem} shape, with
5862
+ * pagination in `meta` (same shape as {@link SignerDocumentsResource.list}):
5863
+ * ```jsonc
5864
+ * {
5865
+ * "data": [{ "id": "103acccd24234c07858ffddf6d84", "name": "Service agreement.pdf", "status": "pending_signature" }],
5866
+ * "meta": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 }
5867
+ * }
5868
+ * ```
5869
+ * @throws {ValidationError} If `signerId` is missing.
5870
+ * @throws {ApiError} `401` if the workspace credentials are rejected.
5871
+ *
5872
+ * @example
5873
+ * ```ts
5874
+ * const { data } = await client.signerDocuments.listAsWorkspace(signerId, { page: 1 });
5875
+ * ```
5876
+ */
5877
+ listAsWorkspace(signerId: string, params?: IListParams): Promise<IDocumentListResponse>;
5878
+ /**
5879
+ * Search a signer's documents with the workspace credentials
5880
+ * (`GET /signers/{signer_id}/documents/search`).
5881
+ *
5882
+ * The same operation as {@link SignerDocumentsResource.search}, authorised
5883
+ * by the client's API key or OAuth bearer token instead of a signer access
5884
+ * code. No `signer-access-code` is sent.
5885
+ *
5886
+ * @param signerId - The signer whose documents are searched.
5887
+ * @param search - Free-text term matched against the document name.
5888
+ * @returns Matching documents with pagination in `meta`, as
5889
+ * {@link SignerDocumentsResource.listAsWorkspace} returns.
5890
+ * @throws {ValidationError} If `signerId` is missing or `search` is not a string.
5891
+ * @throws {ApiError} `401` if the workspace credentials are rejected.
5892
+ *
5893
+ * @example
5894
+ * ```ts
5895
+ * const { data } = await client.signerDocuments.searchAsWorkspace(signerId, 'agreement');
5896
+ * ```
5897
+ */
5898
+ searchAsWorkspace(signerId: string, search?: string): Promise<IDocumentListResponse>;
5819
5899
  /**
5820
5900
  * Download one of a signer's document artifacts as raw bytes
5821
5901
  * (`GET /signers/{signer_id}/documents/{document_id}/download/{artifact}`).
@@ -7064,6 +7144,23 @@ interface IAuthenticateChallenge {
7064
7144
  * ```
7065
7145
  */
7066
7146
  declare function parseWwwAuthenticate(value: string | undefined): IAuthenticateChallenge | undefined;
7147
+ /**
7148
+ * Rate-limit state reported by the API's response headers.
7149
+ *
7150
+ * Every rate-limited response carries the `X-Rate-Limit-*` trio; a `429 Too
7151
+ * Many Requests` adds `Retry-After`. Absent or non-numeric headers are left
7152
+ * out rather than guessed.
7153
+ */
7154
+ interface IRateLimitInfo {
7155
+ /** `X-Rate-Limit-Limit` — requests allowed in the current window. */
7156
+ limit?: number;
7157
+ /** `X-Rate-Limit-Remaining` — requests left in the current window. */
7158
+ remaining?: number;
7159
+ /** `X-Rate-Limit-Reset` — seconds until the window resets. */
7160
+ reset?: number;
7161
+ /** `Retry-After` — seconds to wait before retrying (sent on `429`). */
7162
+ retryAfter?: number;
7163
+ }
7067
7164
 
7068
7165
  /** Base class for all Assinafy SDK errors. */
7069
7166
  declare class AssinafyError extends Error {
@@ -7109,6 +7206,25 @@ declare class ApiError extends AssinafyError {
7109
7206
  * ```
7110
7207
  */
7111
7208
  challenge?: IAuthenticateChallenge;
7209
+ /**
7210
+ * Rate-limit headers carried by the failed response: `X-Rate-Limit-Limit`,
7211
+ * `X-Rate-Limit-Remaining`, `X-Rate-Limit-Reset` and, on `429`,
7212
+ * `Retry-After` (all in requests or seconds). `undefined` when the response
7213
+ * carried none of them. The client already retries a `429` up to
7214
+ * `maxRetries` times; this is what remains once those retries are spent.
7215
+ *
7216
+ * @example
7217
+ * ```ts
7218
+ * try {
7219
+ * await client.documents.list();
7220
+ * } catch (error) {
7221
+ * if (error instanceof ApiError && error.statusCode === 429) {
7222
+ * await sleep((error.rateLimit?.retryAfter ?? 60) * 1000);
7223
+ * }
7224
+ * }
7225
+ * ```
7226
+ */
7227
+ rateLimit?: IRateLimitInfo;
7112
7228
  /**
7113
7229
  * Create an error representing a non-success API response.
7114
7230
  *
@@ -7247,4 +7363,4 @@ declare const MAX_LIST_PAGE_SIZE = 50;
7247
7363
 
7248
7364
  declare const SDK_USER_AGENT: string;
7249
7365
 
7250
- export { type AccountLogoUploadSource, type AnyString, ApiError, type AssignmentDisplaySettings, type AssignmentMethod, type AssignmentNotificationMethod, AssignmentResource, type AssignmentVerificationMethod, AssinafyClient, type AssinafyClientOptions, AssinafyError, AuthenticationResource, type ClientConfigInput, DEFAULT_WEBHOOK_EVENTS, type DocumentArtifactName, DocumentResource, type DocumentStatsGranularity, type DocumentStatus, type DocumentUploadSource, FieldsResource, type IAccountTheme, type IApiKeyResponse, type IAssignment, type IAssignmentCostSigner, type IAssignmentEntry, type IAssignmentItem, type IAssignmentListParams, type IAssignmentListResponse, type IAssignmentSigner, type IAuthenticateChallenge, type IAuthenticatedUser, type IConfirmSignerDataPayload, type IConfirmTotpPayload, type ICostEstimate, type ICreateAssignmentPayload, type ICreateAssignmentResponse, type ICreateDocumentFromTemplateOptions, type ICreateFieldPayload, type ICreateSignerPayload, type ICreateSignerResponse, type ICreateTagPayload, type ICreateWorkspacePayload, type IDeleteTagResponse, type IDetachDocumentTagResponse, type IDisplaySettings, type IDocumentActivity, type IDocumentDetailsResponse, type IDocumentListItem, type IDocumentListParams, type IDocumentListResponse, type IDocumentSearchParams, type IDocumentStatsParams, type IDocumentStatsRow, type IDocumentStatusInfo, type IDocumentUploadOptions, type IDocumentUploadResponse, type IDocumentVerification, type IEstimateAssignmentCostPayload, type IFieldDefinition, type IFieldType, type IFieldValidateMultipleEntry, type IFieldValidationMultipleResult, type IFieldValidationResponse, type IFieldValidationResult, type IInlineTag, type ILegacyConfirmSignerDataPayload, type ILegacyResendCostEstimate, type ILegacyUploadSignatureOptions, type IListParams, type ILoginResponse, type IMaskedApiKeyResponse, type IMfaMethod, type IMfaReauth, type IMfaRecoveryCodes, type IMfaStatus, type INotificationHistoryEntry, type INotificationPreferences, type IOAuthAuthorizationCallback, type IOAuthAuthorizationRequest, type IOAuthAuthorizationServerMetadata, type IOAuthProtectedResourceMetadata, type IOAuthTokenResponse, type IOAuthUserInfo, type IPage, type IPaginatedResponse, type IPublicDocumentInfo, type IRenameDocumentResponse, type IResendCostEstimate, type IResendEmailResponse, type ISignFieldEntry, type ISigner, type ISignerListParams, type ISignerListResponse, type ISignerSelf, type ISigningProgress, type ITag, type ITemplateCostSigner, type ITemplateDetailsResponse, type ITemplateFieldPlacement, type ITemplateListItem, type ITemplateListParams, type ITemplateListResponse, type ITemplateRole, type ITemplateSigner, type ITotpEnrollment, type IUpdateFieldPayload, type IUpdateNotificationPreferences, type IUpdateSignerPayload, type IUpdateTagPayload, type IUpdateTemplatePayload, type IUpdateWorkspacePayload, type IUploadAndRequestSignaturesResult, type IUploadAndRequestSignaturesSigner, type IUploadSignatureOptions, type IWebhookDispatch, type IWebhookDispatchListParams, type IWebhookEndpoint, type IWebhookEndpointCreatePayload, type IWebhookEndpointSecret, type IWebhookEndpointUpdatePayload, type IWebhookEventTypeInfo, type IWebhookPayload, type IWebhookRegisterPayload, type IWebhookSubscription, type IWhatsAppNotification, type IWorkspaceListItem, type IWorkspaceListResponse, type IWorkspaceResponse, type Logger, MAX_LIST_PAGE_SIZE, MAX_UPLOAD_BYTES, NetworkError, type NotificationSenderType, OAuthError, OAuthResource, type OAuthScope, type PaginatedResult, type PaginationMeta, SDK_USER_AGENT, type SendTokenChannel, type SignatureImageType, SignerDocumentsResource, type SignerReference, SignerResource, TagResource, TemplateResource, UserResource, ValidationError, type WebhookEventType, type WebhookHeaders, WebhookResource, WebhookVerifier, WorkspaceResource, buildAssignmentPayload, parseWwwAuthenticate };
7366
+ export { type AccountLogoUploadSource, type AnyString, ApiError, type AssignmentDisplaySettings, type AssignmentMethod, type AssignmentNotificationMethod, AssignmentResource, type AssignmentVerificationMethod, AssinafyClient, type AssinafyClientOptions, AssinafyError, AuthenticationResource, type ClientConfigInput, DEFAULT_WEBHOOK_EVENTS, type DocumentArtifactName, DocumentResource, type DocumentStatsGranularity, type DocumentStatus, type DocumentUploadSource, FieldsResource, type IAccountTheme, type IApiKeyResponse, type IAssignment, type IAssignmentCostSigner, type IAssignmentEntry, type IAssignmentItem, type IAssignmentListParams, type IAssignmentListResponse, type IAssignmentSigner, type IAuthenticateChallenge, type IAuthenticatedUser, type IConfirmSignerDataPayload, type IConfirmTotpPayload, type ICostEstimate, type ICreateAssignmentPayload, type ICreateAssignmentResponse, type ICreateDocumentFromTemplateOptions, type ICreateFieldPayload, type ICreateSignerPayload, type ICreateSignerResponse, type ICreateTagPayload, type ICreateWorkspacePayload, type IDeleteTagResponse, type IDetachDocumentTagResponse, type IDisplaySettings, type IDocumentActivity, type IDocumentDetailsResponse, type IDocumentListItem, type IDocumentListParams, type IDocumentListResponse, type IDocumentSearchParams, type IDocumentStatsParams, type IDocumentStatsRow, type IDocumentStatusInfo, type IDocumentUploadOptions, type IDocumentUploadResponse, type IDocumentVerification, type IEstimateAssignmentCostPayload, type IFieldDefinition, type IFieldType, type IFieldValidateMultipleEntry, type IFieldValidationMultipleResult, type IFieldValidationResponse, type IFieldValidationResult, type IInlineTag, type ILegacyConfirmSignerDataPayload, type ILegacyResendCostEstimate, type ILegacyUploadSignatureOptions, type IListParams, type ILoginResponse, type IMaskedApiKeyResponse, type IMfaMethod, type IMfaReauth, type IMfaRecoveryCodes, type IMfaStatus, type INotificationHistoryEntry, type INotificationPreferences, type IOAuthAuthorizationCallback, type IOAuthAuthorizationRequest, type IOAuthAuthorizationServerMetadata, type IOAuthProtectedResourceMetadata, type IOAuthTokenResponse, type IOAuthUserInfo, type IPage, type IPaginatedResponse, type IPublicDocumentInfo, type IRateLimitInfo, type IRenameDocumentResponse, type IResendCostEstimate, type IResendEmailResponse, type ISendTokenResult, type ISignFieldEntry, type ISigner, type ISignerListParams, type ISignerListResponse, type ISignerSelf, type ISigningProgress, type ITag, type ITemplateCostSigner, type ITemplateDetailsResponse, type ITemplateFieldPlacement, type ITemplateListItem, type ITemplateListParams, type ITemplateListResponse, type ITemplateRole, type ITemplateSigner, type ITotpEnrollment, type IUpdateFieldPayload, type IUpdateNotificationPreferences, type IUpdateSignerPayload, type IUpdateTagPayload, type IUpdateTemplatePayload, type IUpdateWorkspacePayload, type IUploadAndRequestSignaturesResult, type IUploadAndRequestSignaturesSigner, type IUploadSignatureOptions, type IWebhookDispatch, type IWebhookDispatchListParams, type IWebhookEndpoint, type IWebhookEndpointCreatePayload, type IWebhookEndpointSecret, type IWebhookEndpointUpdatePayload, type IWebhookEventTypeInfo, type IWebhookPayload, type IWebhookRegisterPayload, type IWebhookSubscription, type IWhatsAppNotification, type IWorkspaceListItem, type IWorkspaceListResponse, type IWorkspaceResponse, type Logger, MAX_LIST_PAGE_SIZE, MAX_UPLOAD_BYTES, NetworkError, type NotificationSenderType, OAuthError, OAuthResource, type OAuthScope, type PaginatedResult, type PaginationMeta, SDK_USER_AGENT, type SendTokenChannel, type SignatureImageType, SignerDocumentsResource, type SignerReference, SignerResource, TagResource, TemplateResource, UserResource, ValidationError, type WebhookEventType, type WebhookHeaders, WebhookResource, WebhookVerifier, WorkspaceResource, buildAssignmentPayload, parseWwwAuthenticate };