@invonetwork/web-sdk 3.25.0 → 3.26.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/server.cjs CHANGED
@@ -1528,7 +1528,7 @@ function toPhoneChangeRequest(raw) {
1528
1528
  }
1529
1529
 
1530
1530
  // src/version.ts
1531
- var SDK_VERSION = "3.25.0";
1531
+ var SDK_VERSION = "3.26.0";
1532
1532
 
1533
1533
  // src/payouts.ts
1534
1534
  var AMOUNT = /^\d+(\.\d{1,2})?$/;
@@ -1625,7 +1625,9 @@ var PayoutsServer = class {
1625
1625
  /**
1626
1626
  * Email the creator a new link (`POST /api/partner-payees/{payeeId}/resend-invite`); the old
1627
1627
  * link stops working. Allowed while the creator is `invited`, `rejected` or `expired`
1628
- * (`409 INVITE_NOT_NEEDED` otherwise). Never auto-retried.
1628
+ * (`409 INVITE_NOT_NEEDED` otherwise); `409 PAYEE_ERASED`; `429 INVITE_RATE_LIMITED` with
1629
+ * `retry_after_seconds`. If INVO asked the creator to update their details, the resend sends
1630
+ * INVO's update notice again. Never auto-retried.
1629
1631
  */
1630
1632
  async resendPayeeInvite(payeeId, opts) {
1631
1633
  const raw = await this.http.post(
@@ -1637,12 +1639,30 @@ var PayoutsServer = class {
1637
1639
  return raw["invite"];
1638
1640
  }
1639
1641
  /**
1640
- * Ask INVO to pay out (`POST /api/partner-payouts/request`). With `payeeId`, INVO pays that
1641
- * verified creator's bank account; otherwise your own verified bank account. The money comes
1642
- * from the earnings INVO owes your game, and the payout fee is taken from the payout.
1643
- * Creator refusals: `404 PAYEE_NOT_FOUND`, `409 PAYEE_NOT_VERIFIED`,
1644
- * `409 PAYEE_VERIFICATION_EXPIRED`, `409 PAYEE_BANK_NOT_VERIFIED`, `409 PAYEE_NOT_PAYABLE`.
1645
- * Retried safely only when `clientRequestId` is set.
1642
+ * Remove a creator from your program (`POST /api/partner-payees/{payeeId}/remove`, 3.26.0).
1643
+ * The status becomes `closed`. `409 PAYEE_HAS_PAYOUTS_IN_FLIGHT` while a payout to them is in
1644
+ * progress, `409 ALREADY_CLOSED`, `409 PAYEE_NOT_CLOSABLE`. Not a block: the same person can
1645
+ * be registered again under a new reference. Never auto-retried.
1646
+ */
1647
+ async removePayee(payeeId, opts) {
1648
+ const raw = await this.http.post(
1649
+ `${payeePath(payeeId)}/remove`,
1650
+ void 0,
1651
+ this.auth,
1652
+ { signal: opts?.signal }
1653
+ );
1654
+ return raw["payee"];
1655
+ }
1656
+ /**
1657
+ * Ask INVO to pay out (`POST /api/partner-payouts/request`). Send exactly one of `payeeId`
1658
+ * (INVO pays that verified creator's bank account) or `bankAccountId` (your own verified bank
1659
+ * account). The money comes from the earnings INVO owes your game, and the payout fee is
1660
+ * taken from the payout. Creator refusals: `404 PAYEE_NOT_FOUND`, `409 PAYEE_NOT_VERIFIED`,
1661
+ * `409 PAYEE_VERIFICATION_EXPIRED`, `409 PAYEE_BANK_NOT_VERIFIED`, `409 PAYEE_CLOSED`,
1662
+ * `409 PAYEE_NOT_PAYABLE` (can't be paid right now; no action needed; try again later),
1663
+ * `409 IDEMPOTENCY_KEY_REUSED`. The first payout to a creator registered with the game key
1664
+ * carries `owner_confirmation_required: true`. Retried safely only when `clientRequestId` is
1665
+ * set.
1646
1666
  */
1647
1667
  async requestPayout(input, opts) {
1648
1668
  if (input.payeeId !== void 0 && input.bankAccountId !== void 0) {
@@ -1688,7 +1708,7 @@ var PayoutsServer = class {
1688
1708
  /**
1689
1709
  * Cancel a creator payout that is still `requested`
1690
1710
  * (`POST /api/partner-payouts/{payoutId}/cancel`). Anything past `requested` is
1691
- * `409 PAYOUT_NOT_CANCELLABLE`.
1711
+ * `409 PAYOUT_NOT_CANCELLABLE`; a payout to your own bank is `404 NOT_FOUND`.
1692
1712
  */
1693
1713
  async cancelPayout(payoutIdValue, opts) {
1694
1714
  const raw = await this.http.post(
package/dist/server.d.cts CHANGED
@@ -320,10 +320,14 @@ interface TransferEventData {
320
320
  * money fields are decimal strings (USD) or `null`. The payout fee fields are `null` on a
321
321
  * payout recorded before the fee existed.
322
322
  */
323
+ /** Payout statuses. `cancelled` and `returned` are 3.25.0. */
324
+ type PayoutStatus = "requested" | "approved" | "processing" | "completed" | "rejected" | "failed" | "cancelled" | "returned" | (string & {});
325
+ /** Why a completed payout came back. A creator payout always reads `"returned"`. */
326
+ type ReturnReasonCode = "account_closed" | "no_account" | "invalid_account" | "refused" | "other" | "returned" | (string & {});
323
327
  interface PayoutStatusChangedData {
324
328
  payout_id: string | number;
325
- status: string;
326
- previous_status: string | null;
329
+ status: PayoutStatus;
330
+ previous_status: PayoutStatus | null;
327
331
  requested_amount_usd: string | null;
328
332
  /** The payout fee rate applied, percent (for example `"1"`). */
329
333
  offboarding_fee_pct?: string | null;
@@ -342,10 +346,16 @@ interface PayoutStatusChangedData {
342
346
  payout_method?: "standard" | "manual" | (string & {}) | null;
343
347
  /** Additive (3.25.0). On `status: "returned"`: when the receiving bank sent it back. */
344
348
  returned_at?: string | null;
349
+ /** On `status: "returned"`. Always `"returned"` on a creator payout. */
350
+ return_reason_code?: ReturnReasonCode | null;
351
+ /** Additive (3.26.0). A note INVO wrote for you, or `null`. */
352
+ partner_message?: string | null;
353
+ /** Additive (3.26.0). The payout waits for the account owner's confirmation in the console. */
354
+ owner_confirmation_required?: boolean;
345
355
  [key: string]: unknown;
346
356
  }
347
357
  /** Creator statuses (3.25.0). */
348
- type PayeeStatus = "invited" | "details_submitted" | "verified" | "rejected" | "suspended" | "expired" | (string & {});
358
+ type PayeeStatus = "invited" | "details_submitted" | "verified" | "rejected" | "suspended" | "expired" | "closed" | (string & {});
349
359
  /**
350
360
  * `payee.status_changed` (3.25.0): a creator you registered for creator payouts was
351
361
  * registered or changed status. Never carries the creator's name or email. Subscribe to it
@@ -914,14 +924,13 @@ declare function createWebhookHandler(opts: WebhookHandlerOptions): (request: Re
914
924
  * Partner payouts and creator payouts (3.25.0).
915
925
  *
916
926
  * A platform partner can ask INVO to pay out the earnings INVO owes it, and can register
917
- * creators that INVO verifies and pays on its behalf. Creators are INVO's customers: you
918
- * never see their documents, tax id or bank details, only their status.
927
+ * creators that INVO verifies and pays directly, as INVO's own payees. Creators are INVO's
928
+ * customers: you never see their documents, tax id or bank details, only their status and
929
+ * the details you registered. Server only: these calls use your game secret key.
919
930
  *
920
931
  * Fields keep the server's snake_case names, exactly as the API returns them.
921
932
  */
922
933
 
923
- /** Payout statuses. `cancelled` and `returned` are 3.25.0. */
924
- type PayoutStatus = "requested" | "approved" | "processing" | "completed" | "rejected" | "failed" | "cancelled" | "returned" | (string & {});
925
934
  interface Payee {
926
935
  /** Opaque id, `cp_` followed by 24 hex characters. Store it as a string. */
927
936
  payee_id: string;
@@ -936,6 +945,8 @@ interface Payee {
936
945
  status_changed_at: string | null;
937
946
  created_at: string | null;
938
947
  updated_at: string | null;
948
+ /** 3.26.0. `true` once the creator's details were erased; such a creator can't be invited or paid. */
949
+ erased?: boolean;
939
950
  [key: string]: unknown;
940
951
  }
941
952
  interface PayeeInvite {
@@ -990,6 +1001,16 @@ interface Payout {
990
1001
  client_request_id?: string | null;
991
1002
  paid_at?: string | null;
992
1003
  returned_at?: string | null;
1004
+ /** On `returned`: the bank's reason for a payout to your own bank; always `"returned"` on a creator payout. */
1005
+ return_reason_code?: ReturnReasonCode | null;
1006
+ /** 3.26.0. A note INVO wrote for you, or `null`. */
1007
+ partner_message?: string | null;
1008
+ /**
1009
+ * 3.26.0. `true` on the first payout to a creator registered with the game secret key: INVO
1010
+ * approves it only after the account owner confirms it in the console.
1011
+ */
1012
+ owner_confirmation_required?: boolean;
1013
+ owner_confirmed_at?: string | null;
993
1014
  created_at?: string | null;
994
1015
  [key: string]: unknown;
995
1016
  }
@@ -997,7 +1018,7 @@ interface RequestPayoutInput {
997
1018
  /** USD, positive, at most two decimal places. */
998
1019
  amountUsd: string | number;
999
1020
  contactEmail: string;
1000
- /** Pay a verified creator. Don't combine with `bankAccountId`. */
1021
+ /** Pay a verified creator. Send exactly one of `payeeId` or `bankAccountId`. */
1001
1022
  payeeId?: string;
1002
1023
  /** Pay your own verified bank account (id from the INVO console). */
1003
1024
  bankAccountId?: number;
@@ -1044,16 +1065,28 @@ declare class PayoutsServer {
1044
1065
  /**
1045
1066
  * Email the creator a new link (`POST /api/partner-payees/{payeeId}/resend-invite`); the old
1046
1067
  * link stops working. Allowed while the creator is `invited`, `rejected` or `expired`
1047
- * (`409 INVITE_NOT_NEEDED` otherwise). Never auto-retried.
1068
+ * (`409 INVITE_NOT_NEEDED` otherwise); `409 PAYEE_ERASED`; `429 INVITE_RATE_LIMITED` with
1069
+ * `retry_after_seconds`. If INVO asked the creator to update their details, the resend sends
1070
+ * INVO's update notice again. Never auto-retried.
1048
1071
  */
1049
1072
  resendPayeeInvite(payeeId: string, opts?: CallOptions): Promise<PayeeInvite>;
1050
1073
  /**
1051
- * Ask INVO to pay out (`POST /api/partner-payouts/request`). With `payeeId`, INVO pays that
1052
- * verified creator's bank account; otherwise your own verified bank account. The money comes
1053
- * from the earnings INVO owes your game, and the payout fee is taken from the payout.
1054
- * Creator refusals: `404 PAYEE_NOT_FOUND`, `409 PAYEE_NOT_VERIFIED`,
1055
- * `409 PAYEE_VERIFICATION_EXPIRED`, `409 PAYEE_BANK_NOT_VERIFIED`, `409 PAYEE_NOT_PAYABLE`.
1056
- * Retried safely only when `clientRequestId` is set.
1074
+ * Remove a creator from your program (`POST /api/partner-payees/{payeeId}/remove`, 3.26.0).
1075
+ * The status becomes `closed`. `409 PAYEE_HAS_PAYOUTS_IN_FLIGHT` while a payout to them is in
1076
+ * progress, `409 ALREADY_CLOSED`, `409 PAYEE_NOT_CLOSABLE`. Not a block: the same person can
1077
+ * be registered again under a new reference. Never auto-retried.
1078
+ */
1079
+ removePayee(payeeId: string, opts?: CallOptions): Promise<Payee>;
1080
+ /**
1081
+ * Ask INVO to pay out (`POST /api/partner-payouts/request`). Send exactly one of `payeeId`
1082
+ * (INVO pays that verified creator's bank account) or `bankAccountId` (your own verified bank
1083
+ * account). The money comes from the earnings INVO owes your game, and the payout fee is
1084
+ * taken from the payout. Creator refusals: `404 PAYEE_NOT_FOUND`, `409 PAYEE_NOT_VERIFIED`,
1085
+ * `409 PAYEE_VERIFICATION_EXPIRED`, `409 PAYEE_BANK_NOT_VERIFIED`, `409 PAYEE_CLOSED`,
1086
+ * `409 PAYEE_NOT_PAYABLE` (can't be paid right now; no action needed; try again later),
1087
+ * `409 IDEMPOTENCY_KEY_REUSED`. The first payout to a creator registered with the game key
1088
+ * carries `owner_confirmation_required: true`. Retried safely only when `clientRequestId` is
1089
+ * set.
1057
1090
  */
1058
1091
  requestPayout(input: RequestPayoutInput, opts?: CallOptions): Promise<RequestPayoutResult>;
1059
1092
  /** One payout (`GET /api/partner-payouts/{payoutId}`). */
@@ -1063,7 +1096,7 @@ declare class PayoutsServer {
1063
1096
  /**
1064
1097
  * Cancel a creator payout that is still `requested`
1065
1098
  * (`POST /api/partner-payouts/{payoutId}/cancel`). Anything past `requested` is
1066
- * `409 PAYOUT_NOT_CANCELLABLE`.
1099
+ * `409 PAYOUT_NOT_CANCELLABLE`; a payout to your own bank is `404 NOT_FOUND`.
1067
1100
  */
1068
1101
  cancelPayout(payoutIdValue: number, opts?: CallOptions): Promise<Payout>;
1069
1102
  }
@@ -1073,7 +1106,7 @@ declare class PayoutsServer {
1073
1106
  * `package.json` so it cannot drift silently (it did: the UA read 3.0.0 through 3.7.0).
1074
1107
  * Bump it with the changeset flow.
1075
1108
  */
1076
- declare const SDK_VERSION = "3.25.0";
1109
+ declare const SDK_VERSION = "3.26.0";
1077
1110
 
1078
1111
  /**
1079
1112
  * @invonetwork/web-sdk/server — NODE entry.
@@ -2073,4 +2106,4 @@ declare class InvoServer {
2073
2106
  private toInitiateResult;
2074
2107
  }
2075
2108
 
2076
- export { ApproveWithDeviceCodeInput, BeginDeviceApprovalInput, CallOptions, CancelResult, CancelSubscriptionOptions, CardSetupConfirmInput, CardSetupConfirmResult, CardSetupInput, CardSetupResult, CardSetupSessionInput, CardSetupSessionResult, CardsServer, ChangeAmountResult, ClaimCurrencyInput, ClaimResult, ClaimTransferInput, CompleteDeviceApprovalInput, CompleteDeviceApprovalResult, ConfirmDeviceEnrollmentInput, ConfirmDeviceEnrollmentResult, ConfirmPaymentResult, CreateCheckoutInput, CreateCheckoutResult, CreateSubscriptionInput, CurrencyPurchaseQuote, CurrencyPurchaseQuoteInput, DestinationsResult, DeviceApprovalGrant, DeviceApprovalPollResult, DeviceApprovalSettleResult, GetSubscriptionOptions, GetSubscriptionResult, GuardianApprovalStatusResult, type IdentityPasskeyResetData, InboundPendingQuery, InboundPendingResult, InitiateResult, InitiateSendInput, InitiateTransferInput, InvoError, InvoServer, type InvoWebhookEvent, ItemHistoryQuery, ItemHistoryResult, ItemOrderQuery, type ItemPurchasedData, LinkedIdentitiesQuery, LinkedIdentitiesResult, type ListPayeesQuery, type ListPayeesResult, type ListPayoutsQuery, type ListPayoutsResult, ListSubscriptionsOptions, LoyaltyCardsResult, MintPlayerTokenInput, OrderDetailsResult, type Payee, type PayeeInvite, type PayeeStatus, type PayeeStatusChangedData, type Payout, type PayoutStatus, type PayoutStatusChangedData, PayoutsServer, PhoneChangeRequest, PhoneShareApproveInput, PhoneShareApproveResult, PhoneShareContact, PhoneShareInitiateResult, PhoneShareStatusResult, type PlatformCommercePurchasedData, type PlatformCommerceRefundedData, PlatformCommerceServer, PlatformOrderStatusResult, PlatformPurchaseHistoryQuery, PlatformPurchaseHistoryResult, PlatformPurchaseInput, PlatformPurchaseResult, PlatformRefundInput, PlatformRefundResult, PlayerActivityEntry, PlayerActivityQuery, PlayerActivityResult, PlayerBalanceQuery, PlayerBalanceResult, PlayerCardsResult, type PlayerPhoneChangedData, PlayerToken, PollDeviceApprovalInput, type PurchaseCompletedData, type PurchaseEventData, PurchaseInput, PurchaseItemInput, PurchaseItemResult, PurchaseResult, RefundResult, RefundSubscriptionInput, type RegisterPayeeInput, type RegisterPayeeResult, RegisterPlayerInput, RegisterPlayerResult, type RequestPayoutInput, type RequestPayoutResult, RequestPhoneChangeInput, RequestPhoneChangeResult, SDK_VERSION, SandboxClockResult, SandboxFailureOutcome, SandboxForceAuthChallengeOptions, SandboxForceFailureOptions, SandboxServer, SandboxSubscriptionsServer, ServerConfig, ServerDestinationsQuery, SetPaymentMethodInput, SetPaymentMethodResult, SmsVerifyResult, SteamFinalizeInput, SteamFinalizeResult, SteamFinalizeSubscriptionResult, SteamInitPurchaseInput, SteamInitPurchaseResult, SteamInitResult, SteamPacksQuery, SteamPacksResult, SteamSubscriptionInitInput, type SubscriptionAuthenticationRequiredData, type SubscriptionCanceledData, type SubscriptionEventCommon, type SubscriptionExpiredData, SubscriptionListResult, type SubscriptionPastDueData, type SubscriptionPaymentFailedData, type SubscriptionRefundApprovedData, type SubscriptionRefundDetail, type SubscriptionRefundRejectedData, type SubscriptionRefundRequestData, type SubscriptionRefundedData, type SubscriptionRenewalFunding, type SubscriptionRenewalSplit, type SubscriptionRenewedData, SubscriptionResult, type SubscriptionRevenueShareAttribution, type SubscriptionTrialEventFields, SubscriptionsServer, TransactionStatusResult, type TransferEventData, UpdatePlayerPhoneInput, UpdatePlayerPhoneResult, type VerifyWebhookOptions, type WebhookHandlerOptions, createWebhookHandler, verifyWebhook, verifyWebhookAsync };
2109
+ export { ApproveWithDeviceCodeInput, BeginDeviceApprovalInput, CallOptions, CancelResult, CancelSubscriptionOptions, CardSetupConfirmInput, CardSetupConfirmResult, CardSetupInput, CardSetupResult, CardSetupSessionInput, CardSetupSessionResult, CardsServer, ChangeAmountResult, ClaimCurrencyInput, ClaimResult, ClaimTransferInput, CompleteDeviceApprovalInput, CompleteDeviceApprovalResult, ConfirmDeviceEnrollmentInput, ConfirmDeviceEnrollmentResult, ConfirmPaymentResult, CreateCheckoutInput, CreateCheckoutResult, CreateSubscriptionInput, CurrencyPurchaseQuote, CurrencyPurchaseQuoteInput, DestinationsResult, DeviceApprovalGrant, DeviceApprovalPollResult, DeviceApprovalSettleResult, GetSubscriptionOptions, GetSubscriptionResult, GuardianApprovalStatusResult, type IdentityPasskeyResetData, InboundPendingQuery, InboundPendingResult, InitiateResult, InitiateSendInput, InitiateTransferInput, InvoError, InvoServer, type InvoWebhookEvent, ItemHistoryQuery, ItemHistoryResult, ItemOrderQuery, type ItemPurchasedData, LinkedIdentitiesQuery, LinkedIdentitiesResult, type ListPayeesQuery, type ListPayeesResult, type ListPayoutsQuery, type ListPayoutsResult, ListSubscriptionsOptions, LoyaltyCardsResult, MintPlayerTokenInput, OrderDetailsResult, type Payee, type PayeeInvite, type PayeeStatus, type PayeeStatusChangedData, type Payout, type PayoutStatus, type PayoutStatusChangedData, PayoutsServer, PhoneChangeRequest, PhoneShareApproveInput, PhoneShareApproveResult, PhoneShareContact, PhoneShareInitiateResult, PhoneShareStatusResult, type PlatformCommercePurchasedData, type PlatformCommerceRefundedData, PlatformCommerceServer, PlatformOrderStatusResult, PlatformPurchaseHistoryQuery, PlatformPurchaseHistoryResult, PlatformPurchaseInput, PlatformPurchaseResult, PlatformRefundInput, PlatformRefundResult, PlayerActivityEntry, PlayerActivityQuery, PlayerActivityResult, PlayerBalanceQuery, PlayerBalanceResult, PlayerCardsResult, type PlayerPhoneChangedData, PlayerToken, PollDeviceApprovalInput, type PurchaseCompletedData, type PurchaseEventData, PurchaseInput, PurchaseItemInput, PurchaseItemResult, PurchaseResult, RefundResult, RefundSubscriptionInput, type RegisterPayeeInput, type RegisterPayeeResult, RegisterPlayerInput, RegisterPlayerResult, type RequestPayoutInput, type RequestPayoutResult, RequestPhoneChangeInput, RequestPhoneChangeResult, type ReturnReasonCode, SDK_VERSION, SandboxClockResult, SandboxFailureOutcome, SandboxForceAuthChallengeOptions, SandboxForceFailureOptions, SandboxServer, SandboxSubscriptionsServer, ServerConfig, ServerDestinationsQuery, SetPaymentMethodInput, SetPaymentMethodResult, SmsVerifyResult, SteamFinalizeInput, SteamFinalizeResult, SteamFinalizeSubscriptionResult, SteamInitPurchaseInput, SteamInitPurchaseResult, SteamInitResult, SteamPacksQuery, SteamPacksResult, SteamSubscriptionInitInput, type SubscriptionAuthenticationRequiredData, type SubscriptionCanceledData, type SubscriptionEventCommon, type SubscriptionExpiredData, SubscriptionListResult, type SubscriptionPastDueData, type SubscriptionPaymentFailedData, type SubscriptionRefundApprovedData, type SubscriptionRefundDetail, type SubscriptionRefundRejectedData, type SubscriptionRefundRequestData, type SubscriptionRefundedData, type SubscriptionRenewalFunding, type SubscriptionRenewalSplit, type SubscriptionRenewedData, SubscriptionResult, type SubscriptionRevenueShareAttribution, type SubscriptionTrialEventFields, SubscriptionsServer, TransactionStatusResult, type TransferEventData, UpdatePlayerPhoneInput, UpdatePlayerPhoneResult, type VerifyWebhookOptions, type WebhookHandlerOptions, createWebhookHandler, verifyWebhook, verifyWebhookAsync };
package/dist/server.d.ts CHANGED
@@ -320,10 +320,14 @@ interface TransferEventData {
320
320
  * money fields are decimal strings (USD) or `null`. The payout fee fields are `null` on a
321
321
  * payout recorded before the fee existed.
322
322
  */
323
+ /** Payout statuses. `cancelled` and `returned` are 3.25.0. */
324
+ type PayoutStatus = "requested" | "approved" | "processing" | "completed" | "rejected" | "failed" | "cancelled" | "returned" | (string & {});
325
+ /** Why a completed payout came back. A creator payout always reads `"returned"`. */
326
+ type ReturnReasonCode = "account_closed" | "no_account" | "invalid_account" | "refused" | "other" | "returned" | (string & {});
323
327
  interface PayoutStatusChangedData {
324
328
  payout_id: string | number;
325
- status: string;
326
- previous_status: string | null;
329
+ status: PayoutStatus;
330
+ previous_status: PayoutStatus | null;
327
331
  requested_amount_usd: string | null;
328
332
  /** The payout fee rate applied, percent (for example `"1"`). */
329
333
  offboarding_fee_pct?: string | null;
@@ -342,10 +346,16 @@ interface PayoutStatusChangedData {
342
346
  payout_method?: "standard" | "manual" | (string & {}) | null;
343
347
  /** Additive (3.25.0). On `status: "returned"`: when the receiving bank sent it back. */
344
348
  returned_at?: string | null;
349
+ /** On `status: "returned"`. Always `"returned"` on a creator payout. */
350
+ return_reason_code?: ReturnReasonCode | null;
351
+ /** Additive (3.26.0). A note INVO wrote for you, or `null`. */
352
+ partner_message?: string | null;
353
+ /** Additive (3.26.0). The payout waits for the account owner's confirmation in the console. */
354
+ owner_confirmation_required?: boolean;
345
355
  [key: string]: unknown;
346
356
  }
347
357
  /** Creator statuses (3.25.0). */
348
- type PayeeStatus = "invited" | "details_submitted" | "verified" | "rejected" | "suspended" | "expired" | (string & {});
358
+ type PayeeStatus = "invited" | "details_submitted" | "verified" | "rejected" | "suspended" | "expired" | "closed" | (string & {});
349
359
  /**
350
360
  * `payee.status_changed` (3.25.0): a creator you registered for creator payouts was
351
361
  * registered or changed status. Never carries the creator's name or email. Subscribe to it
@@ -914,14 +924,13 @@ declare function createWebhookHandler(opts: WebhookHandlerOptions): (request: Re
914
924
  * Partner payouts and creator payouts (3.25.0).
915
925
  *
916
926
  * A platform partner can ask INVO to pay out the earnings INVO owes it, and can register
917
- * creators that INVO verifies and pays on its behalf. Creators are INVO's customers: you
918
- * never see their documents, tax id or bank details, only their status.
927
+ * creators that INVO verifies and pays directly, as INVO's own payees. Creators are INVO's
928
+ * customers: you never see their documents, tax id or bank details, only their status and
929
+ * the details you registered. Server only: these calls use your game secret key.
919
930
  *
920
931
  * Fields keep the server's snake_case names, exactly as the API returns them.
921
932
  */
922
933
 
923
- /** Payout statuses. `cancelled` and `returned` are 3.25.0. */
924
- type PayoutStatus = "requested" | "approved" | "processing" | "completed" | "rejected" | "failed" | "cancelled" | "returned" | (string & {});
925
934
  interface Payee {
926
935
  /** Opaque id, `cp_` followed by 24 hex characters. Store it as a string. */
927
936
  payee_id: string;
@@ -936,6 +945,8 @@ interface Payee {
936
945
  status_changed_at: string | null;
937
946
  created_at: string | null;
938
947
  updated_at: string | null;
948
+ /** 3.26.0. `true` once the creator's details were erased; such a creator can't be invited or paid. */
949
+ erased?: boolean;
939
950
  [key: string]: unknown;
940
951
  }
941
952
  interface PayeeInvite {
@@ -990,6 +1001,16 @@ interface Payout {
990
1001
  client_request_id?: string | null;
991
1002
  paid_at?: string | null;
992
1003
  returned_at?: string | null;
1004
+ /** On `returned`: the bank's reason for a payout to your own bank; always `"returned"` on a creator payout. */
1005
+ return_reason_code?: ReturnReasonCode | null;
1006
+ /** 3.26.0. A note INVO wrote for you, or `null`. */
1007
+ partner_message?: string | null;
1008
+ /**
1009
+ * 3.26.0. `true` on the first payout to a creator registered with the game secret key: INVO
1010
+ * approves it only after the account owner confirms it in the console.
1011
+ */
1012
+ owner_confirmation_required?: boolean;
1013
+ owner_confirmed_at?: string | null;
993
1014
  created_at?: string | null;
994
1015
  [key: string]: unknown;
995
1016
  }
@@ -997,7 +1018,7 @@ interface RequestPayoutInput {
997
1018
  /** USD, positive, at most two decimal places. */
998
1019
  amountUsd: string | number;
999
1020
  contactEmail: string;
1000
- /** Pay a verified creator. Don't combine with `bankAccountId`. */
1021
+ /** Pay a verified creator. Send exactly one of `payeeId` or `bankAccountId`. */
1001
1022
  payeeId?: string;
1002
1023
  /** Pay your own verified bank account (id from the INVO console). */
1003
1024
  bankAccountId?: number;
@@ -1044,16 +1065,28 @@ declare class PayoutsServer {
1044
1065
  /**
1045
1066
  * Email the creator a new link (`POST /api/partner-payees/{payeeId}/resend-invite`); the old
1046
1067
  * link stops working. Allowed while the creator is `invited`, `rejected` or `expired`
1047
- * (`409 INVITE_NOT_NEEDED` otherwise). Never auto-retried.
1068
+ * (`409 INVITE_NOT_NEEDED` otherwise); `409 PAYEE_ERASED`; `429 INVITE_RATE_LIMITED` with
1069
+ * `retry_after_seconds`. If INVO asked the creator to update their details, the resend sends
1070
+ * INVO's update notice again. Never auto-retried.
1048
1071
  */
1049
1072
  resendPayeeInvite(payeeId: string, opts?: CallOptions): Promise<PayeeInvite>;
1050
1073
  /**
1051
- * Ask INVO to pay out (`POST /api/partner-payouts/request`). With `payeeId`, INVO pays that
1052
- * verified creator's bank account; otherwise your own verified bank account. The money comes
1053
- * from the earnings INVO owes your game, and the payout fee is taken from the payout.
1054
- * Creator refusals: `404 PAYEE_NOT_FOUND`, `409 PAYEE_NOT_VERIFIED`,
1055
- * `409 PAYEE_VERIFICATION_EXPIRED`, `409 PAYEE_BANK_NOT_VERIFIED`, `409 PAYEE_NOT_PAYABLE`.
1056
- * Retried safely only when `clientRequestId` is set.
1074
+ * Remove a creator from your program (`POST /api/partner-payees/{payeeId}/remove`, 3.26.0).
1075
+ * The status becomes `closed`. `409 PAYEE_HAS_PAYOUTS_IN_FLIGHT` while a payout to them is in
1076
+ * progress, `409 ALREADY_CLOSED`, `409 PAYEE_NOT_CLOSABLE`. Not a block: the same person can
1077
+ * be registered again under a new reference. Never auto-retried.
1078
+ */
1079
+ removePayee(payeeId: string, opts?: CallOptions): Promise<Payee>;
1080
+ /**
1081
+ * Ask INVO to pay out (`POST /api/partner-payouts/request`). Send exactly one of `payeeId`
1082
+ * (INVO pays that verified creator's bank account) or `bankAccountId` (your own verified bank
1083
+ * account). The money comes from the earnings INVO owes your game, and the payout fee is
1084
+ * taken from the payout. Creator refusals: `404 PAYEE_NOT_FOUND`, `409 PAYEE_NOT_VERIFIED`,
1085
+ * `409 PAYEE_VERIFICATION_EXPIRED`, `409 PAYEE_BANK_NOT_VERIFIED`, `409 PAYEE_CLOSED`,
1086
+ * `409 PAYEE_NOT_PAYABLE` (can't be paid right now; no action needed; try again later),
1087
+ * `409 IDEMPOTENCY_KEY_REUSED`. The first payout to a creator registered with the game key
1088
+ * carries `owner_confirmation_required: true`. Retried safely only when `clientRequestId` is
1089
+ * set.
1057
1090
  */
1058
1091
  requestPayout(input: RequestPayoutInput, opts?: CallOptions): Promise<RequestPayoutResult>;
1059
1092
  /** One payout (`GET /api/partner-payouts/{payoutId}`). */
@@ -1063,7 +1096,7 @@ declare class PayoutsServer {
1063
1096
  /**
1064
1097
  * Cancel a creator payout that is still `requested`
1065
1098
  * (`POST /api/partner-payouts/{payoutId}/cancel`). Anything past `requested` is
1066
- * `409 PAYOUT_NOT_CANCELLABLE`.
1099
+ * `409 PAYOUT_NOT_CANCELLABLE`; a payout to your own bank is `404 NOT_FOUND`.
1067
1100
  */
1068
1101
  cancelPayout(payoutIdValue: number, opts?: CallOptions): Promise<Payout>;
1069
1102
  }
@@ -1073,7 +1106,7 @@ declare class PayoutsServer {
1073
1106
  * `package.json` so it cannot drift silently (it did: the UA read 3.0.0 through 3.7.0).
1074
1107
  * Bump it with the changeset flow.
1075
1108
  */
1076
- declare const SDK_VERSION = "3.25.0";
1109
+ declare const SDK_VERSION = "3.26.0";
1077
1110
 
1078
1111
  /**
1079
1112
  * @invonetwork/web-sdk/server — NODE entry.
@@ -2073,4 +2106,4 @@ declare class InvoServer {
2073
2106
  private toInitiateResult;
2074
2107
  }
2075
2108
 
2076
- export { ApproveWithDeviceCodeInput, BeginDeviceApprovalInput, CallOptions, CancelResult, CancelSubscriptionOptions, CardSetupConfirmInput, CardSetupConfirmResult, CardSetupInput, CardSetupResult, CardSetupSessionInput, CardSetupSessionResult, CardsServer, ChangeAmountResult, ClaimCurrencyInput, ClaimResult, ClaimTransferInput, CompleteDeviceApprovalInput, CompleteDeviceApprovalResult, ConfirmDeviceEnrollmentInput, ConfirmDeviceEnrollmentResult, ConfirmPaymentResult, CreateCheckoutInput, CreateCheckoutResult, CreateSubscriptionInput, CurrencyPurchaseQuote, CurrencyPurchaseQuoteInput, DestinationsResult, DeviceApprovalGrant, DeviceApprovalPollResult, DeviceApprovalSettleResult, GetSubscriptionOptions, GetSubscriptionResult, GuardianApprovalStatusResult, type IdentityPasskeyResetData, InboundPendingQuery, InboundPendingResult, InitiateResult, InitiateSendInput, InitiateTransferInput, InvoError, InvoServer, type InvoWebhookEvent, ItemHistoryQuery, ItemHistoryResult, ItemOrderQuery, type ItemPurchasedData, LinkedIdentitiesQuery, LinkedIdentitiesResult, type ListPayeesQuery, type ListPayeesResult, type ListPayoutsQuery, type ListPayoutsResult, ListSubscriptionsOptions, LoyaltyCardsResult, MintPlayerTokenInput, OrderDetailsResult, type Payee, type PayeeInvite, type PayeeStatus, type PayeeStatusChangedData, type Payout, type PayoutStatus, type PayoutStatusChangedData, PayoutsServer, PhoneChangeRequest, PhoneShareApproveInput, PhoneShareApproveResult, PhoneShareContact, PhoneShareInitiateResult, PhoneShareStatusResult, type PlatformCommercePurchasedData, type PlatformCommerceRefundedData, PlatformCommerceServer, PlatformOrderStatusResult, PlatformPurchaseHistoryQuery, PlatformPurchaseHistoryResult, PlatformPurchaseInput, PlatformPurchaseResult, PlatformRefundInput, PlatformRefundResult, PlayerActivityEntry, PlayerActivityQuery, PlayerActivityResult, PlayerBalanceQuery, PlayerBalanceResult, PlayerCardsResult, type PlayerPhoneChangedData, PlayerToken, PollDeviceApprovalInput, type PurchaseCompletedData, type PurchaseEventData, PurchaseInput, PurchaseItemInput, PurchaseItemResult, PurchaseResult, RefundResult, RefundSubscriptionInput, type RegisterPayeeInput, type RegisterPayeeResult, RegisterPlayerInput, RegisterPlayerResult, type RequestPayoutInput, type RequestPayoutResult, RequestPhoneChangeInput, RequestPhoneChangeResult, SDK_VERSION, SandboxClockResult, SandboxFailureOutcome, SandboxForceAuthChallengeOptions, SandboxForceFailureOptions, SandboxServer, SandboxSubscriptionsServer, ServerConfig, ServerDestinationsQuery, SetPaymentMethodInput, SetPaymentMethodResult, SmsVerifyResult, SteamFinalizeInput, SteamFinalizeResult, SteamFinalizeSubscriptionResult, SteamInitPurchaseInput, SteamInitPurchaseResult, SteamInitResult, SteamPacksQuery, SteamPacksResult, SteamSubscriptionInitInput, type SubscriptionAuthenticationRequiredData, type SubscriptionCanceledData, type SubscriptionEventCommon, type SubscriptionExpiredData, SubscriptionListResult, type SubscriptionPastDueData, type SubscriptionPaymentFailedData, type SubscriptionRefundApprovedData, type SubscriptionRefundDetail, type SubscriptionRefundRejectedData, type SubscriptionRefundRequestData, type SubscriptionRefundedData, type SubscriptionRenewalFunding, type SubscriptionRenewalSplit, type SubscriptionRenewedData, SubscriptionResult, type SubscriptionRevenueShareAttribution, type SubscriptionTrialEventFields, SubscriptionsServer, TransactionStatusResult, type TransferEventData, UpdatePlayerPhoneInput, UpdatePlayerPhoneResult, type VerifyWebhookOptions, type WebhookHandlerOptions, createWebhookHandler, verifyWebhook, verifyWebhookAsync };
2109
+ export { ApproveWithDeviceCodeInput, BeginDeviceApprovalInput, CallOptions, CancelResult, CancelSubscriptionOptions, CardSetupConfirmInput, CardSetupConfirmResult, CardSetupInput, CardSetupResult, CardSetupSessionInput, CardSetupSessionResult, CardsServer, ChangeAmountResult, ClaimCurrencyInput, ClaimResult, ClaimTransferInput, CompleteDeviceApprovalInput, CompleteDeviceApprovalResult, ConfirmDeviceEnrollmentInput, ConfirmDeviceEnrollmentResult, ConfirmPaymentResult, CreateCheckoutInput, CreateCheckoutResult, CreateSubscriptionInput, CurrencyPurchaseQuote, CurrencyPurchaseQuoteInput, DestinationsResult, DeviceApprovalGrant, DeviceApprovalPollResult, DeviceApprovalSettleResult, GetSubscriptionOptions, GetSubscriptionResult, GuardianApprovalStatusResult, type IdentityPasskeyResetData, InboundPendingQuery, InboundPendingResult, InitiateResult, InitiateSendInput, InitiateTransferInput, InvoError, InvoServer, type InvoWebhookEvent, ItemHistoryQuery, ItemHistoryResult, ItemOrderQuery, type ItemPurchasedData, LinkedIdentitiesQuery, LinkedIdentitiesResult, type ListPayeesQuery, type ListPayeesResult, type ListPayoutsQuery, type ListPayoutsResult, ListSubscriptionsOptions, LoyaltyCardsResult, MintPlayerTokenInput, OrderDetailsResult, type Payee, type PayeeInvite, type PayeeStatus, type PayeeStatusChangedData, type Payout, type PayoutStatus, type PayoutStatusChangedData, PayoutsServer, PhoneChangeRequest, PhoneShareApproveInput, PhoneShareApproveResult, PhoneShareContact, PhoneShareInitiateResult, PhoneShareStatusResult, type PlatformCommercePurchasedData, type PlatformCommerceRefundedData, PlatformCommerceServer, PlatformOrderStatusResult, PlatformPurchaseHistoryQuery, PlatformPurchaseHistoryResult, PlatformPurchaseInput, PlatformPurchaseResult, PlatformRefundInput, PlatformRefundResult, PlayerActivityEntry, PlayerActivityQuery, PlayerActivityResult, PlayerBalanceQuery, PlayerBalanceResult, PlayerCardsResult, type PlayerPhoneChangedData, PlayerToken, PollDeviceApprovalInput, type PurchaseCompletedData, type PurchaseEventData, PurchaseInput, PurchaseItemInput, PurchaseItemResult, PurchaseResult, RefundResult, RefundSubscriptionInput, type RegisterPayeeInput, type RegisterPayeeResult, RegisterPlayerInput, RegisterPlayerResult, type RequestPayoutInput, type RequestPayoutResult, RequestPhoneChangeInput, RequestPhoneChangeResult, type ReturnReasonCode, SDK_VERSION, SandboxClockResult, SandboxFailureOutcome, SandboxForceAuthChallengeOptions, SandboxForceFailureOptions, SandboxServer, SandboxSubscriptionsServer, ServerConfig, ServerDestinationsQuery, SetPaymentMethodInput, SetPaymentMethodResult, SmsVerifyResult, SteamFinalizeInput, SteamFinalizeResult, SteamFinalizeSubscriptionResult, SteamInitPurchaseInput, SteamInitPurchaseResult, SteamInitResult, SteamPacksQuery, SteamPacksResult, SteamSubscriptionInitInput, type SubscriptionAuthenticationRequiredData, type SubscriptionCanceledData, type SubscriptionEventCommon, type SubscriptionExpiredData, SubscriptionListResult, type SubscriptionPastDueData, type SubscriptionPaymentFailedData, type SubscriptionRefundApprovedData, type SubscriptionRefundDetail, type SubscriptionRefundRejectedData, type SubscriptionRefundRequestData, type SubscriptionRefundedData, type SubscriptionRenewalFunding, type SubscriptionRenewalSplit, type SubscriptionRenewedData, SubscriptionResult, type SubscriptionRevenueShareAttribution, type SubscriptionTrialEventFields, SubscriptionsServer, TransactionStatusResult, type TransferEventData, UpdatePlayerPhoneInput, UpdatePlayerPhoneResult, type VerifyWebhookOptions, type WebhookHandlerOptions, createWebhookHandler, verifyWebhook, verifyWebhookAsync };
package/dist/server.js CHANGED
@@ -3,7 +3,7 @@ export { InvoError } from './chunk-7BYAUHTA.js';
3
3
  import { createHmac, timingSafeEqual } from 'crypto';
4
4
 
5
5
  // src/version.ts
6
- var SDK_VERSION = "3.25.0";
6
+ var SDK_VERSION = "3.26.0";
7
7
 
8
8
  // src/payouts.ts
9
9
  var AMOUNT = /^\d+(\.\d{1,2})?$/;
@@ -100,7 +100,9 @@ var PayoutsServer = class {
100
100
  /**
101
101
  * Email the creator a new link (`POST /api/partner-payees/{payeeId}/resend-invite`); the old
102
102
  * link stops working. Allowed while the creator is `invited`, `rejected` or `expired`
103
- * (`409 INVITE_NOT_NEEDED` otherwise). Never auto-retried.
103
+ * (`409 INVITE_NOT_NEEDED` otherwise); `409 PAYEE_ERASED`; `429 INVITE_RATE_LIMITED` with
104
+ * `retry_after_seconds`. If INVO asked the creator to update their details, the resend sends
105
+ * INVO's update notice again. Never auto-retried.
104
106
  */
105
107
  async resendPayeeInvite(payeeId, opts) {
106
108
  const raw = await this.http.post(
@@ -112,12 +114,30 @@ var PayoutsServer = class {
112
114
  return raw["invite"];
113
115
  }
114
116
  /**
115
- * Ask INVO to pay out (`POST /api/partner-payouts/request`). With `payeeId`, INVO pays that
116
- * verified creator's bank account; otherwise your own verified bank account. The money comes
117
- * from the earnings INVO owes your game, and the payout fee is taken from the payout.
118
- * Creator refusals: `404 PAYEE_NOT_FOUND`, `409 PAYEE_NOT_VERIFIED`,
119
- * `409 PAYEE_VERIFICATION_EXPIRED`, `409 PAYEE_BANK_NOT_VERIFIED`, `409 PAYEE_NOT_PAYABLE`.
120
- * Retried safely only when `clientRequestId` is set.
117
+ * Remove a creator from your program (`POST /api/partner-payees/{payeeId}/remove`, 3.26.0).
118
+ * The status becomes `closed`. `409 PAYEE_HAS_PAYOUTS_IN_FLIGHT` while a payout to them is in
119
+ * progress, `409 ALREADY_CLOSED`, `409 PAYEE_NOT_CLOSABLE`. Not a block: the same person can
120
+ * be registered again under a new reference. Never auto-retried.
121
+ */
122
+ async removePayee(payeeId, opts) {
123
+ const raw = await this.http.post(
124
+ `${payeePath(payeeId)}/remove`,
125
+ void 0,
126
+ this.auth,
127
+ { signal: opts?.signal }
128
+ );
129
+ return raw["payee"];
130
+ }
131
+ /**
132
+ * Ask INVO to pay out (`POST /api/partner-payouts/request`). Send exactly one of `payeeId`
133
+ * (INVO pays that verified creator's bank account) or `bankAccountId` (your own verified bank
134
+ * account). The money comes from the earnings INVO owes your game, and the payout fee is
135
+ * taken from the payout. Creator refusals: `404 PAYEE_NOT_FOUND`, `409 PAYEE_NOT_VERIFIED`,
136
+ * `409 PAYEE_VERIFICATION_EXPIRED`, `409 PAYEE_BANK_NOT_VERIFIED`, `409 PAYEE_CLOSED`,
137
+ * `409 PAYEE_NOT_PAYABLE` (can't be paid right now; no action needed; try again later),
138
+ * `409 IDEMPOTENCY_KEY_REUSED`. The first payout to a creator registered with the game key
139
+ * carries `owner_confirmation_required: true`. Retried safely only when `clientRequestId` is
140
+ * set.
121
141
  */
122
142
  async requestPayout(input, opts) {
123
143
  if (input.payeeId !== void 0 && input.bankAccountId !== void 0) {
@@ -163,7 +183,7 @@ var PayoutsServer = class {
163
183
  /**
164
184
  * Cancel a creator payout that is still `requested`
165
185
  * (`POST /api/partner-payouts/{payoutId}/cancel`). Anything past `requested` is
166
- * `409 PAYOUT_NOT_CANCELLABLE`.
186
+ * `409 PAYOUT_NOT_CANCELLABLE`; a payout to your own bank is `404 NOT_FOUND`.
167
187
  */
168
188
  async cancelPayout(payoutIdValue, opts) {
169
189
  const raw = await this.http.post(
package/package.json CHANGED
@@ -1,77 +1,77 @@
1
- {
2
- "name": "@invonetwork/web-sdk",
3
- "version": "3.25.0",
4
- "description": "INVO Web SDK — currency purchase + passkey (WebAuthn) verification for partner web platforms.",
5
- "license": "SEE LICENSE IN LICENSE",
6
- "private": false,
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/Invo-Technologies/invo-web-sdk.git"
10
- },
11
- "homepage": "https://docs.invo.network",
12
- "bugs": {
13
- "url": "https://github.com/Invo-Technologies/invo-web-sdk/issues"
14
- },
15
- "type": "module",
16
- "engines": {
17
- "node": ">=18"
18
- },
19
- "sideEffects": false,
20
- "files": [
21
- "dist",
22
- "!dist/**/*.map",
23
- "README.md",
24
- "LICENSE",
25
- "CHANGELOG.md"
26
- ],
27
- "exports": {
28
- ".": {
29
- "types": "./dist/index.d.ts",
30
- "import": "./dist/index.js",
31
- "require": "./dist/index.cjs"
32
- },
33
- "./server": {
34
- "types": "./dist/server.d.ts",
35
- "import": "./dist/server.js",
36
- "require": "./dist/server.cjs"
37
- }
38
- },
39
- "main": "./dist/index.cjs",
40
- "module": "./dist/index.js",
41
- "types": "./dist/index.d.ts",
42
- "scripts": {
43
- "build": "tsup",
44
- "dev": "tsup --watch",
45
- "typecheck": "tsc --noEmit",
46
- "lint": "eslint .",
47
- "test": "vitest run",
48
- "test:watch": "vitest",
49
- "clean": "rimraf dist",
50
- "changeset": "changeset",
51
- "version-packages": "changeset version",
52
- "release": "npm run build && changeset publish",
53
- "prepublishOnly": "npm run clean && npm run build"
54
- },
55
- "keywords": [
56
- "invo",
57
- "webauthn",
58
- "passkey",
59
- "payments",
60
- "game-currency",
61
- "sdk"
62
- ],
63
- "publishConfig": {
64
- "access": "public"
65
- },
66
- "devDependencies": {
67
- "@changesets/cli": "^2.31.0",
68
- "@eslint/js": "^10.0.1",
69
- "eslint": "^10.6.0",
70
- "happy-dom": "^15.11.7",
71
- "rimraf": "^5.0.5",
72
- "tsup": "^8.0.1",
73
- "typescript": "^5.4.5",
74
- "typescript-eslint": "^8.62.1",
75
- "vitest": "^1.5.0"
76
- }
77
- }
1
+ {
2
+ "name": "@invonetwork/web-sdk",
3
+ "version": "3.26.0",
4
+ "description": "INVO Web SDK — currency purchase + passkey (WebAuthn) verification for partner web platforms.",
5
+ "license": "SEE LICENSE IN LICENSE",
6
+ "private": false,
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/Invo-Technologies/invo-web-sdk.git"
10
+ },
11
+ "homepage": "https://docs.invo.network",
12
+ "bugs": {
13
+ "url": "https://github.com/Invo-Technologies/invo-web-sdk/issues"
14
+ },
15
+ "type": "module",
16
+ "engines": {
17
+ "node": ">=18"
18
+ },
19
+ "sideEffects": false,
20
+ "files": [
21
+ "dist",
22
+ "!dist/**/*.map",
23
+ "README.md",
24
+ "LICENSE",
25
+ "CHANGELOG.md"
26
+ ],
27
+ "exports": {
28
+ ".": {
29
+ "types": "./dist/index.d.ts",
30
+ "import": "./dist/index.js",
31
+ "require": "./dist/index.cjs"
32
+ },
33
+ "./server": {
34
+ "types": "./dist/server.d.ts",
35
+ "import": "./dist/server.js",
36
+ "require": "./dist/server.cjs"
37
+ }
38
+ },
39
+ "main": "./dist/index.cjs",
40
+ "module": "./dist/index.js",
41
+ "types": "./dist/index.d.ts",
42
+ "scripts": {
43
+ "build": "tsup",
44
+ "dev": "tsup --watch",
45
+ "typecheck": "tsc --noEmit",
46
+ "lint": "eslint .",
47
+ "test": "vitest run",
48
+ "test:watch": "vitest",
49
+ "clean": "rimraf dist",
50
+ "changeset": "changeset",
51
+ "version-packages": "changeset version",
52
+ "release": "npm run build && changeset publish",
53
+ "prepublishOnly": "npm run clean && npm run build"
54
+ },
55
+ "keywords": [
56
+ "invo",
57
+ "webauthn",
58
+ "passkey",
59
+ "payments",
60
+ "game-currency",
61
+ "sdk"
62
+ ],
63
+ "publishConfig": {
64
+ "access": "public"
65
+ },
66
+ "devDependencies": {
67
+ "@changesets/cli": "^2.31.0",
68
+ "@eslint/js": "^10.0.1",
69
+ "eslint": "^10.6.0",
70
+ "happy-dom": "^15.11.7",
71
+ "rimraf": "^5.0.5",
72
+ "tsup": "^8.0.1",
73
+ "typescript": "^5.4.5",
74
+ "typescript-eslint": "^8.62.1",
75
+ "vitest": "^1.5.0"
76
+ }
77
+ }