@witnium-tech/witniumchain 0.8.0 → 0.9.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.
package/dist/index.d.mts CHANGED
@@ -5605,6 +5605,128 @@ interface paths$1 {
5605
5605
  patch?: never;
5606
5606
  trace?: never;
5607
5607
  };
5608
+ "/v1/account/provisioning-token/reissue": {
5609
+ parameters: {
5610
+ query?: never;
5611
+ header?: never;
5612
+ path?: never;
5613
+ cookie?: never;
5614
+ };
5615
+ get?: never;
5616
+ put?: never;
5617
+ /**
5618
+ * Re-mint a provisioning token (verified-but-not-provisioned recovery)
5619
+ * @description Mints a fresh single-use provisioning token for a signed-in user whose email is verified but who has no contract yet — recovery for when the token from email-verify was lost (e.g. verify opened on another device). Returns 409 if email is unverified or a contract already exists. Rate limited per account.
5620
+ */
5621
+ post: {
5622
+ parameters: {
5623
+ query?: never;
5624
+ header?: never;
5625
+ path?: never;
5626
+ cookie?: never;
5627
+ };
5628
+ requestBody?: never;
5629
+ responses: {
5630
+ /** @description Success */
5631
+ 200: {
5632
+ headers: {
5633
+ [name: string]: unknown;
5634
+ };
5635
+ content: {
5636
+ "application/json": {
5637
+ provisioningToken: string;
5638
+ /**
5639
+ * Format: date-time
5640
+ * @description ISO 8601 date-time string
5641
+ * @example 2026-05-20T10:30:00.000Z
5642
+ */
5643
+ expiresAt: string;
5644
+ };
5645
+ };
5646
+ };
5647
+ /** @description Unauthorized — authentication required or invalid */
5648
+ 401: {
5649
+ headers: {
5650
+ [name: string]: unknown;
5651
+ };
5652
+ content: {
5653
+ "application/json": {
5654
+ /**
5655
+ * @description HTTP status code
5656
+ * @example 400
5657
+ */
5658
+ statusCode?: number;
5659
+ /**
5660
+ * @description Short error label
5661
+ * @example Bad Request
5662
+ */
5663
+ error?: string;
5664
+ /**
5665
+ * @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
5666
+ * @example Validation failed
5667
+ */
5668
+ message: string | string[];
5669
+ };
5670
+ };
5671
+ };
5672
+ /** @description Conflict */
5673
+ 409: {
5674
+ headers: {
5675
+ [name: string]: unknown;
5676
+ };
5677
+ content: {
5678
+ "application/json": {
5679
+ /**
5680
+ * @description HTTP status code
5681
+ * @example 400
5682
+ */
5683
+ statusCode?: number;
5684
+ /**
5685
+ * @description Short error label
5686
+ * @example Bad Request
5687
+ */
5688
+ error?: string;
5689
+ /**
5690
+ * @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
5691
+ * @example Validation failed
5692
+ */
5693
+ message: string | string[];
5694
+ };
5695
+ };
5696
+ };
5697
+ /** @description Too Many Requests */
5698
+ 429: {
5699
+ headers: {
5700
+ [name: string]: unknown;
5701
+ };
5702
+ content: {
5703
+ "application/json": {
5704
+ /**
5705
+ * @description HTTP status code
5706
+ * @example 400
5707
+ */
5708
+ statusCode?: number;
5709
+ /**
5710
+ * @description Short error label
5711
+ * @example Bad Request
5712
+ */
5713
+ error?: string;
5714
+ /**
5715
+ * @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
5716
+ * @example Validation failed
5717
+ */
5718
+ message: string | string[];
5719
+ };
5720
+ };
5721
+ };
5722
+ };
5723
+ };
5724
+ delete?: never;
5725
+ options?: never;
5726
+ head?: never;
5727
+ patch?: never;
5728
+ trace?: never;
5729
+ };
5608
5730
  "/v1/account": {
5609
5731
  parameters: {
5610
5732
  query?: never;
@@ -10217,6 +10339,7 @@ type RevokeWitnessV5Request = Req<'/v5/contracts/{contractAddress}/witnesses/{wi
10217
10339
  type RevokeWitnessV5Response = Res<'/v5/contracts/{contractAddress}/witnesses/{witnessId}/revoke', 'post'>;
10218
10340
  type AccountResponse = Res<'/v1/account', 'get'>;
10219
10341
  type ResetAccountResponse = Res<'/v1/account', 'delete'>;
10342
+ type ReissueProvisioningTokenResponse = Res<'/v1/account/provisioning-token/reissue', 'post'>;
10220
10343
  type LedgerResponse = Res<'/v1/account/ledger', 'get'>;
10221
10344
  type TotpEnrollResponse = Res<'/v1/account/mfa/totp/enroll', 'post'>;
10222
10345
  type TotpConfirmRequest = Req<'/v1/account/mfa/totp/confirm', 'post'>;
@@ -10543,6 +10666,13 @@ declare class WitniumchainClient {
10543
10666
  * do not build product UI on this; it's a dev-loop convenience.
10544
10667
  */
10545
10668
  deleteAccount(): Promise<ResetAccountResponse>;
10669
+ /**
10670
+ * Re-mint a provisioning token for a verified-but-not-yet-provisioned
10671
+ * account. Use when the token from `verifyEmail` was lost (e.g. the verify
10672
+ * link was opened on a different device). Throws 409 if the email isn't
10673
+ * verified or a contract already exists; rate-limited per account.
10674
+ */
10675
+ reissueProvisioningToken(): Promise<ReissueProvisioningTokenResponse>;
10546
10676
  enrollTotp(): Promise<TotpEnrollResponse>;
10547
10677
  confirmTotp(body: TotpConfirmRequest): Promise<TotpConfirmResponse>;
10548
10678
  disableTotp(): Promise<TotpDisableResponse>;
@@ -11072,4 +11202,4 @@ declare function buildRevokeSigningKeyPayload(args: {
11072
11202
  key: string;
11073
11203
  }): string;
11074
11204
 
11075
- export { type AccountResponse, type AccountType, type paths$1 as AccountsPaths, type AddSigningKeyRequest$1 as AddSigningKeyRequest, type AddSigningKeyResponse, type AdjustCreditsRequest, type AdjustCreditsResponse, type BeginOAuthLoginArgs, type BeginOAuthLoginResult, type paths as ChainPaths, type CheckoutRequest, type CheckoutResponse, type CreateOrgRequest, type CreateOrgResponse, type CreateOrganizationRequest, type CreateOrganizationResponse, type CreateUserRequest, type CreateUserResponse, DelegatedKeys, type FinalizeWitnessResponse, type ForgotPasswordRequest, type ForgotPasswordResponse, type GetWitnessResponse, type HealthLiveResponse, type HealthReadyResponse, type InviteMemberRequest, type InviteMemberResponse, type LedgerResponse, type ListDelegatedKeysResponse, type ListOauthSessionsResponse, type ListUsersResponse, type LoginRequest, type LoginResponse, type LogoutResponse, type MembersListResponse, MfaNamespace, MfaRecoveryCodes, MfaTotp, type OAuthTokenSnapshot, OWNER_OP, OauthNamespace, OauthSessions, OrgMembers, OrgUsers, type OwnerOpName, type OwnerSigner, type PauseRequest$1 as PauseRequest, type PauseResponse, type PkceVerifierStorage, type PortalResponse, type PrepareDelegatedKeyRequest, type PreparedDelegatedKeyResponse, type ProposeWitnessRequest, type ProposeWitnessResponse, type ProvisionContractRequest, type ProvisionContractResponse, type ProvisionDelegatedKeyArgs, type ProvisionDelegatedKeyResult, type PublicOrgResponse, type RecoveryCodesRegenerateResponse, type RemoveMemberResponse, type ResendInviteResponse, type ResetAccountResponse, type ResetPasswordRequest, type ResetPasswordResponse, type RevokeDelegatedKeyResponse, type RevokeSigningKeyRequest$1 as RevokeSigningKeyRequest, type RevokeSigningKeyResponse, type RevokeWitnessRequest, type RevokeWitnessResponse, type RotateApiKeyResponse, type SetAccountTypeRequest, type SetAccountTypeResponse, type SetMemberRoleRequest, type SetMemberRoleResponse, type SignRequest, type SignResponse, type SignWitnessRequest, type SignWitnessResponse, type SignedRequestSigner, SigningKeys, type SignupRequest, type SignupResponse, type SubmitDelegatedKeyRequest, type SubmitDelegatedKeyResponse, Subscriptions, type SuspendMemberResponse, type TotpConfirmRequest, type TotpConfirmResponse, type TotpDisableResponse, type TotpEnrollResponse, type UnpauseRequest, type UnpauseResponse, type VerifyEmailResponse, type VerifyOrganizationResponse, WitniumchainAdminClient, type WitniumchainAdminClientConfig, WitniumchainApiError, WitniumchainChainAdminClient, type WitniumchainChainAdminClientConfig, WitniumchainClient, type WitniumchainClientConfig, WitniumchainOrgClient, type WitniumchainOrgClientConfig, buildAddSigningKeyPayload, buildPausePayload, buildRevokeSigningKeyPayload, buildUnpausePayload, defaultVerifierStorage };
11205
+ export { type AccountResponse, type AccountType, type paths$1 as AccountsPaths, type AddSigningKeyRequest$1 as AddSigningKeyRequest, type AddSigningKeyResponse, type AdjustCreditsRequest, type AdjustCreditsResponse, type BeginOAuthLoginArgs, type BeginOAuthLoginResult, type paths as ChainPaths, type CheckoutRequest, type CheckoutResponse, type CreateOrgRequest, type CreateOrgResponse, type CreateOrganizationRequest, type CreateOrganizationResponse, type CreateUserRequest, type CreateUserResponse, DelegatedKeys, type FinalizeWitnessResponse, type ForgotPasswordRequest, type ForgotPasswordResponse, type GetWitnessResponse, type HealthLiveResponse, type HealthReadyResponse, type InviteMemberRequest, type InviteMemberResponse, type LedgerResponse, type ListDelegatedKeysResponse, type ListOauthSessionsResponse, type ListUsersResponse, type LoginRequest, type LoginResponse, type LogoutResponse, type MembersListResponse, MfaNamespace, MfaRecoveryCodes, MfaTotp, type OAuthTokenSnapshot, OWNER_OP, OauthNamespace, OauthSessions, OrgMembers, OrgUsers, type OwnerOpName, type OwnerSigner, type PauseRequest$1 as PauseRequest, type PauseResponse, type PkceVerifierStorage, type PortalResponse, type PrepareDelegatedKeyRequest, type PreparedDelegatedKeyResponse, type ProposeWitnessRequest, type ProposeWitnessResponse, type ProvisionContractRequest, type ProvisionContractResponse, type ProvisionDelegatedKeyArgs, type ProvisionDelegatedKeyResult, type PublicOrgResponse, type RecoveryCodesRegenerateResponse, type ReissueProvisioningTokenResponse, type RemoveMemberResponse, type ResendInviteResponse, type ResetAccountResponse, type ResetPasswordRequest, type ResetPasswordResponse, type RevokeDelegatedKeyResponse, type RevokeSigningKeyRequest$1 as RevokeSigningKeyRequest, type RevokeSigningKeyResponse, type RevokeWitnessRequest, type RevokeWitnessResponse, type RotateApiKeyResponse, type SetAccountTypeRequest, type SetAccountTypeResponse, type SetMemberRoleRequest, type SetMemberRoleResponse, type SignRequest, type SignResponse, type SignWitnessRequest, type SignWitnessResponse, type SignedRequestSigner, SigningKeys, type SignupRequest, type SignupResponse, type SubmitDelegatedKeyRequest, type SubmitDelegatedKeyResponse, Subscriptions, type SuspendMemberResponse, type TotpConfirmRequest, type TotpConfirmResponse, type TotpDisableResponse, type TotpEnrollResponse, type UnpauseRequest, type UnpauseResponse, type VerifyEmailResponse, type VerifyOrganizationResponse, WitniumchainAdminClient, type WitniumchainAdminClientConfig, WitniumchainApiError, WitniumchainChainAdminClient, type WitniumchainChainAdminClientConfig, WitniumchainClient, type WitniumchainClientConfig, WitniumchainOrgClient, type WitniumchainOrgClientConfig, buildAddSigningKeyPayload, buildPausePayload, buildRevokeSigningKeyPayload, buildUnpausePayload, defaultVerifierStorage };
package/dist/index.d.ts CHANGED
@@ -5605,6 +5605,128 @@ interface paths$1 {
5605
5605
  patch?: never;
5606
5606
  trace?: never;
5607
5607
  };
5608
+ "/v1/account/provisioning-token/reissue": {
5609
+ parameters: {
5610
+ query?: never;
5611
+ header?: never;
5612
+ path?: never;
5613
+ cookie?: never;
5614
+ };
5615
+ get?: never;
5616
+ put?: never;
5617
+ /**
5618
+ * Re-mint a provisioning token (verified-but-not-provisioned recovery)
5619
+ * @description Mints a fresh single-use provisioning token for a signed-in user whose email is verified but who has no contract yet — recovery for when the token from email-verify was lost (e.g. verify opened on another device). Returns 409 if email is unverified or a contract already exists. Rate limited per account.
5620
+ */
5621
+ post: {
5622
+ parameters: {
5623
+ query?: never;
5624
+ header?: never;
5625
+ path?: never;
5626
+ cookie?: never;
5627
+ };
5628
+ requestBody?: never;
5629
+ responses: {
5630
+ /** @description Success */
5631
+ 200: {
5632
+ headers: {
5633
+ [name: string]: unknown;
5634
+ };
5635
+ content: {
5636
+ "application/json": {
5637
+ provisioningToken: string;
5638
+ /**
5639
+ * Format: date-time
5640
+ * @description ISO 8601 date-time string
5641
+ * @example 2026-05-20T10:30:00.000Z
5642
+ */
5643
+ expiresAt: string;
5644
+ };
5645
+ };
5646
+ };
5647
+ /** @description Unauthorized — authentication required or invalid */
5648
+ 401: {
5649
+ headers: {
5650
+ [name: string]: unknown;
5651
+ };
5652
+ content: {
5653
+ "application/json": {
5654
+ /**
5655
+ * @description HTTP status code
5656
+ * @example 400
5657
+ */
5658
+ statusCode?: number;
5659
+ /**
5660
+ * @description Short error label
5661
+ * @example Bad Request
5662
+ */
5663
+ error?: string;
5664
+ /**
5665
+ * @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
5666
+ * @example Validation failed
5667
+ */
5668
+ message: string | string[];
5669
+ };
5670
+ };
5671
+ };
5672
+ /** @description Conflict */
5673
+ 409: {
5674
+ headers: {
5675
+ [name: string]: unknown;
5676
+ };
5677
+ content: {
5678
+ "application/json": {
5679
+ /**
5680
+ * @description HTTP status code
5681
+ * @example 400
5682
+ */
5683
+ statusCode?: number;
5684
+ /**
5685
+ * @description Short error label
5686
+ * @example Bad Request
5687
+ */
5688
+ error?: string;
5689
+ /**
5690
+ * @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
5691
+ * @example Validation failed
5692
+ */
5693
+ message: string | string[];
5694
+ };
5695
+ };
5696
+ };
5697
+ /** @description Too Many Requests */
5698
+ 429: {
5699
+ headers: {
5700
+ [name: string]: unknown;
5701
+ };
5702
+ content: {
5703
+ "application/json": {
5704
+ /**
5705
+ * @description HTTP status code
5706
+ * @example 400
5707
+ */
5708
+ statusCode?: number;
5709
+ /**
5710
+ * @description Short error label
5711
+ * @example Bad Request
5712
+ */
5713
+ error?: string;
5714
+ /**
5715
+ * @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
5716
+ * @example Validation failed
5717
+ */
5718
+ message: string | string[];
5719
+ };
5720
+ };
5721
+ };
5722
+ };
5723
+ };
5724
+ delete?: never;
5725
+ options?: never;
5726
+ head?: never;
5727
+ patch?: never;
5728
+ trace?: never;
5729
+ };
5608
5730
  "/v1/account": {
5609
5731
  parameters: {
5610
5732
  query?: never;
@@ -10217,6 +10339,7 @@ type RevokeWitnessV5Request = Req<'/v5/contracts/{contractAddress}/witnesses/{wi
10217
10339
  type RevokeWitnessV5Response = Res<'/v5/contracts/{contractAddress}/witnesses/{witnessId}/revoke', 'post'>;
10218
10340
  type AccountResponse = Res<'/v1/account', 'get'>;
10219
10341
  type ResetAccountResponse = Res<'/v1/account', 'delete'>;
10342
+ type ReissueProvisioningTokenResponse = Res<'/v1/account/provisioning-token/reissue', 'post'>;
10220
10343
  type LedgerResponse = Res<'/v1/account/ledger', 'get'>;
10221
10344
  type TotpEnrollResponse = Res<'/v1/account/mfa/totp/enroll', 'post'>;
10222
10345
  type TotpConfirmRequest = Req<'/v1/account/mfa/totp/confirm', 'post'>;
@@ -10543,6 +10666,13 @@ declare class WitniumchainClient {
10543
10666
  * do not build product UI on this; it's a dev-loop convenience.
10544
10667
  */
10545
10668
  deleteAccount(): Promise<ResetAccountResponse>;
10669
+ /**
10670
+ * Re-mint a provisioning token for a verified-but-not-yet-provisioned
10671
+ * account. Use when the token from `verifyEmail` was lost (e.g. the verify
10672
+ * link was opened on a different device). Throws 409 if the email isn't
10673
+ * verified or a contract already exists; rate-limited per account.
10674
+ */
10675
+ reissueProvisioningToken(): Promise<ReissueProvisioningTokenResponse>;
10546
10676
  enrollTotp(): Promise<TotpEnrollResponse>;
10547
10677
  confirmTotp(body: TotpConfirmRequest): Promise<TotpConfirmResponse>;
10548
10678
  disableTotp(): Promise<TotpDisableResponse>;
@@ -11072,4 +11202,4 @@ declare function buildRevokeSigningKeyPayload(args: {
11072
11202
  key: string;
11073
11203
  }): string;
11074
11204
 
11075
- export { type AccountResponse, type AccountType, type paths$1 as AccountsPaths, type AddSigningKeyRequest$1 as AddSigningKeyRequest, type AddSigningKeyResponse, type AdjustCreditsRequest, type AdjustCreditsResponse, type BeginOAuthLoginArgs, type BeginOAuthLoginResult, type paths as ChainPaths, type CheckoutRequest, type CheckoutResponse, type CreateOrgRequest, type CreateOrgResponse, type CreateOrganizationRequest, type CreateOrganizationResponse, type CreateUserRequest, type CreateUserResponse, DelegatedKeys, type FinalizeWitnessResponse, type ForgotPasswordRequest, type ForgotPasswordResponse, type GetWitnessResponse, type HealthLiveResponse, type HealthReadyResponse, type InviteMemberRequest, type InviteMemberResponse, type LedgerResponse, type ListDelegatedKeysResponse, type ListOauthSessionsResponse, type ListUsersResponse, type LoginRequest, type LoginResponse, type LogoutResponse, type MembersListResponse, MfaNamespace, MfaRecoveryCodes, MfaTotp, type OAuthTokenSnapshot, OWNER_OP, OauthNamespace, OauthSessions, OrgMembers, OrgUsers, type OwnerOpName, type OwnerSigner, type PauseRequest$1 as PauseRequest, type PauseResponse, type PkceVerifierStorage, type PortalResponse, type PrepareDelegatedKeyRequest, type PreparedDelegatedKeyResponse, type ProposeWitnessRequest, type ProposeWitnessResponse, type ProvisionContractRequest, type ProvisionContractResponse, type ProvisionDelegatedKeyArgs, type ProvisionDelegatedKeyResult, type PublicOrgResponse, type RecoveryCodesRegenerateResponse, type RemoveMemberResponse, type ResendInviteResponse, type ResetAccountResponse, type ResetPasswordRequest, type ResetPasswordResponse, type RevokeDelegatedKeyResponse, type RevokeSigningKeyRequest$1 as RevokeSigningKeyRequest, type RevokeSigningKeyResponse, type RevokeWitnessRequest, type RevokeWitnessResponse, type RotateApiKeyResponse, type SetAccountTypeRequest, type SetAccountTypeResponse, type SetMemberRoleRequest, type SetMemberRoleResponse, type SignRequest, type SignResponse, type SignWitnessRequest, type SignWitnessResponse, type SignedRequestSigner, SigningKeys, type SignupRequest, type SignupResponse, type SubmitDelegatedKeyRequest, type SubmitDelegatedKeyResponse, Subscriptions, type SuspendMemberResponse, type TotpConfirmRequest, type TotpConfirmResponse, type TotpDisableResponse, type TotpEnrollResponse, type UnpauseRequest, type UnpauseResponse, type VerifyEmailResponse, type VerifyOrganizationResponse, WitniumchainAdminClient, type WitniumchainAdminClientConfig, WitniumchainApiError, WitniumchainChainAdminClient, type WitniumchainChainAdminClientConfig, WitniumchainClient, type WitniumchainClientConfig, WitniumchainOrgClient, type WitniumchainOrgClientConfig, buildAddSigningKeyPayload, buildPausePayload, buildRevokeSigningKeyPayload, buildUnpausePayload, defaultVerifierStorage };
11205
+ export { type AccountResponse, type AccountType, type paths$1 as AccountsPaths, type AddSigningKeyRequest$1 as AddSigningKeyRequest, type AddSigningKeyResponse, type AdjustCreditsRequest, type AdjustCreditsResponse, type BeginOAuthLoginArgs, type BeginOAuthLoginResult, type paths as ChainPaths, type CheckoutRequest, type CheckoutResponse, type CreateOrgRequest, type CreateOrgResponse, type CreateOrganizationRequest, type CreateOrganizationResponse, type CreateUserRequest, type CreateUserResponse, DelegatedKeys, type FinalizeWitnessResponse, type ForgotPasswordRequest, type ForgotPasswordResponse, type GetWitnessResponse, type HealthLiveResponse, type HealthReadyResponse, type InviteMemberRequest, type InviteMemberResponse, type LedgerResponse, type ListDelegatedKeysResponse, type ListOauthSessionsResponse, type ListUsersResponse, type LoginRequest, type LoginResponse, type LogoutResponse, type MembersListResponse, MfaNamespace, MfaRecoveryCodes, MfaTotp, type OAuthTokenSnapshot, OWNER_OP, OauthNamespace, OauthSessions, OrgMembers, OrgUsers, type OwnerOpName, type OwnerSigner, type PauseRequest$1 as PauseRequest, type PauseResponse, type PkceVerifierStorage, type PortalResponse, type PrepareDelegatedKeyRequest, type PreparedDelegatedKeyResponse, type ProposeWitnessRequest, type ProposeWitnessResponse, type ProvisionContractRequest, type ProvisionContractResponse, type ProvisionDelegatedKeyArgs, type ProvisionDelegatedKeyResult, type PublicOrgResponse, type RecoveryCodesRegenerateResponse, type ReissueProvisioningTokenResponse, type RemoveMemberResponse, type ResendInviteResponse, type ResetAccountResponse, type ResetPasswordRequest, type ResetPasswordResponse, type RevokeDelegatedKeyResponse, type RevokeSigningKeyRequest$1 as RevokeSigningKeyRequest, type RevokeSigningKeyResponse, type RevokeWitnessRequest, type RevokeWitnessResponse, type RotateApiKeyResponse, type SetAccountTypeRequest, type SetAccountTypeResponse, type SetMemberRoleRequest, type SetMemberRoleResponse, type SignRequest, type SignResponse, type SignWitnessRequest, type SignWitnessResponse, type SignedRequestSigner, SigningKeys, type SignupRequest, type SignupResponse, type SubmitDelegatedKeyRequest, type SubmitDelegatedKeyResponse, Subscriptions, type SuspendMemberResponse, type TotpConfirmRequest, type TotpConfirmResponse, type TotpDisableResponse, type TotpEnrollResponse, type UnpauseRequest, type UnpauseResponse, type VerifyEmailResponse, type VerifyOrganizationResponse, WitniumchainAdminClient, type WitniumchainAdminClientConfig, WitniumchainApiError, WitniumchainChainAdminClient, type WitniumchainChainAdminClientConfig, WitniumchainClient, type WitniumchainClientConfig, WitniumchainOrgClient, type WitniumchainOrgClientConfig, buildAddSigningKeyPayload, buildPausePayload, buildRevokeSigningKeyPayload, buildUnpausePayload, defaultVerifierStorage };
package/dist/index.js CHANGED
@@ -475,6 +475,17 @@ var WitniumchainClient = class {
475
475
  deleteAccount() {
476
476
  return this.req("DELETE", "/v1/account", { auth: "SessionCookie" });
477
477
  }
478
+ /**
479
+ * Re-mint a provisioning token for a verified-but-not-yet-provisioned
480
+ * account. Use when the token from `verifyEmail` was lost (e.g. the verify
481
+ * link was opened on a different device). Throws 409 if the email isn't
482
+ * verified or a contract already exists; rate-limited per account.
483
+ */
484
+ reissueProvisioningToken() {
485
+ return this.req("POST", "/v1/account/provisioning-token/reissue", {
486
+ auth: "SessionCookie"
487
+ });
488
+ }
478
489
  // ────────────────────────────────────────────────────────────────────────
479
490
  // MFA (/v1/account/mfa/*)
480
491
  //