@invonetwork/web-sdk 3.25.0 → 3.26.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/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.1";
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,31 @@ 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_TERMS_NOT_ACCEPTED` (the creator hasn't accepted INVO's current Payee Terms yet),
1663
+ * `409 PAYEE_NOT_PAYABLE` (can't be paid right now; no action needed; try again later),
1664
+ * `409 IDEMPOTENCY_KEY_REUSED`. The first payout to a creator registered with the game key
1665
+ * carries `owner_confirmation_required: true`. Retried safely only when `clientRequestId` is
1666
+ * set.
1646
1667
  */
1647
1668
  async requestPayout(input, opts) {
1648
1669
  if (input.payeeId !== void 0 && input.bankAccountId !== void 0) {
@@ -1688,7 +1709,7 @@ var PayoutsServer = class {
1688
1709
  /**
1689
1710
  * Cancel a creator payout that is still `requested`
1690
1711
  * (`POST /api/partner-payouts/{payoutId}/cancel`). Anything past `requested` is
1691
- * `409 PAYOUT_NOT_CANCELLABLE`.
1712
+ * `409 PAYOUT_NOT_CANCELLABLE`; a payout to your own bank is `404 NOT_FOUND`.
1692
1713
  */
1693
1714
  async cancelPayout(payoutIdValue, opts) {
1694
1715
  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,8 +945,16 @@ 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;
950
+ /** 3.26.1. `true` when nothing on INVO's side stops a payout to this creator right now. */
951
+ payable?: boolean;
952
+ /** 3.26.1. Why `payable` is false: see {@link PayableBlocker}. Empty when payable. */
953
+ payable_blockers?: PayableBlocker[];
939
954
  [key: string]: unknown;
940
955
  }
956
+ /** 3.26.1. `not_payable_now`: no action is needed from you; try again later. */
957
+ type PayableBlocker = "erased" | "closed" | "not_verified" | "verification_expired" | "terms_not_accepted" | "bank_not_verified" | "not_payable_now" | (string & {});
941
958
  interface PayeeInvite {
942
959
  sent: boolean;
943
960
  expires_at?: string | null;
@@ -990,6 +1007,16 @@ interface Payout {
990
1007
  client_request_id?: string | null;
991
1008
  paid_at?: string | null;
992
1009
  returned_at?: string | null;
1010
+ /** On `returned`: the bank's reason for a payout to your own bank; always `"returned"` on a creator payout. */
1011
+ return_reason_code?: ReturnReasonCode | null;
1012
+ /** 3.26.0. A note INVO wrote for you, or `null`. */
1013
+ partner_message?: string | null;
1014
+ /**
1015
+ * 3.26.0. `true` on the first payout to a creator registered with the game secret key: INVO
1016
+ * approves it only after the account owner confirms it in the console.
1017
+ */
1018
+ owner_confirmation_required?: boolean;
1019
+ owner_confirmed_at?: string | null;
993
1020
  created_at?: string | null;
994
1021
  [key: string]: unknown;
995
1022
  }
@@ -997,7 +1024,7 @@ interface RequestPayoutInput {
997
1024
  /** USD, positive, at most two decimal places. */
998
1025
  amountUsd: string | number;
999
1026
  contactEmail: string;
1000
- /** Pay a verified creator. Don't combine with `bankAccountId`. */
1027
+ /** Pay a verified creator. Send exactly one of `payeeId` or `bankAccountId`. */
1001
1028
  payeeId?: string;
1002
1029
  /** Pay your own verified bank account (id from the INVO console). */
1003
1030
  bankAccountId?: number;
@@ -1044,16 +1071,29 @@ declare class PayoutsServer {
1044
1071
  /**
1045
1072
  * Email the creator a new link (`POST /api/partner-payees/{payeeId}/resend-invite`); the old
1046
1073
  * link stops working. Allowed while the creator is `invited`, `rejected` or `expired`
1047
- * (`409 INVITE_NOT_NEEDED` otherwise). Never auto-retried.
1074
+ * (`409 INVITE_NOT_NEEDED` otherwise); `409 PAYEE_ERASED`; `429 INVITE_RATE_LIMITED` with
1075
+ * `retry_after_seconds`. If INVO asked the creator to update their details, the resend sends
1076
+ * INVO's update notice again. Never auto-retried.
1048
1077
  */
1049
1078
  resendPayeeInvite(payeeId: string, opts?: CallOptions): Promise<PayeeInvite>;
1050
1079
  /**
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.
1080
+ * Remove a creator from your program (`POST /api/partner-payees/{payeeId}/remove`, 3.26.0).
1081
+ * The status becomes `closed`. `409 PAYEE_HAS_PAYOUTS_IN_FLIGHT` while a payout to them is in
1082
+ * progress, `409 ALREADY_CLOSED`, `409 PAYEE_NOT_CLOSABLE`. Not a block: the same person can
1083
+ * be registered again under a new reference. Never auto-retried.
1084
+ */
1085
+ removePayee(payeeId: string, opts?: CallOptions): Promise<Payee>;
1086
+ /**
1087
+ * Ask INVO to pay out (`POST /api/partner-payouts/request`). Send exactly one of `payeeId`
1088
+ * (INVO pays that verified creator's bank account) or `bankAccountId` (your own verified bank
1089
+ * account). The money comes from the earnings INVO owes your game, and the payout fee is
1090
+ * taken from the payout. Creator refusals: `404 PAYEE_NOT_FOUND`, `409 PAYEE_NOT_VERIFIED`,
1091
+ * `409 PAYEE_VERIFICATION_EXPIRED`, `409 PAYEE_BANK_NOT_VERIFIED`, `409 PAYEE_CLOSED`,
1092
+ * `409 PAYEE_TERMS_NOT_ACCEPTED` (the creator hasn't accepted INVO's current Payee Terms yet),
1093
+ * `409 PAYEE_NOT_PAYABLE` (can't be paid right now; no action needed; try again later),
1094
+ * `409 IDEMPOTENCY_KEY_REUSED`. The first payout to a creator registered with the game key
1095
+ * carries `owner_confirmation_required: true`. Retried safely only when `clientRequestId` is
1096
+ * set.
1057
1097
  */
1058
1098
  requestPayout(input: RequestPayoutInput, opts?: CallOptions): Promise<RequestPayoutResult>;
1059
1099
  /** One payout (`GET /api/partner-payouts/{payoutId}`). */
@@ -1063,7 +1103,7 @@ declare class PayoutsServer {
1063
1103
  /**
1064
1104
  * Cancel a creator payout that is still `requested`
1065
1105
  * (`POST /api/partner-payouts/{payoutId}/cancel`). Anything past `requested` is
1066
- * `409 PAYOUT_NOT_CANCELLABLE`.
1106
+ * `409 PAYOUT_NOT_CANCELLABLE`; a payout to your own bank is `404 NOT_FOUND`.
1067
1107
  */
1068
1108
  cancelPayout(payoutIdValue: number, opts?: CallOptions): Promise<Payout>;
1069
1109
  }
@@ -1073,7 +1113,7 @@ declare class PayoutsServer {
1073
1113
  * `package.json` so it cannot drift silently (it did: the UA read 3.0.0 through 3.7.0).
1074
1114
  * Bump it with the changeset flow.
1075
1115
  */
1076
- declare const SDK_VERSION = "3.25.0";
1116
+ declare const SDK_VERSION = "3.26.1";
1077
1117
 
1078
1118
  /**
1079
1119
  * @invonetwork/web-sdk/server — NODE entry.
@@ -2073,4 +2113,4 @@ declare class InvoServer {
2073
2113
  private toInitiateResult;
2074
2114
  }
2075
2115
 
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 };
2116
+ 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 PayableBlocker, 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,8 +945,16 @@ 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;
950
+ /** 3.26.1. `true` when nothing on INVO's side stops a payout to this creator right now. */
951
+ payable?: boolean;
952
+ /** 3.26.1. Why `payable` is false: see {@link PayableBlocker}. Empty when payable. */
953
+ payable_blockers?: PayableBlocker[];
939
954
  [key: string]: unknown;
940
955
  }
956
+ /** 3.26.1. `not_payable_now`: no action is needed from you; try again later. */
957
+ type PayableBlocker = "erased" | "closed" | "not_verified" | "verification_expired" | "terms_not_accepted" | "bank_not_verified" | "not_payable_now" | (string & {});
941
958
  interface PayeeInvite {
942
959
  sent: boolean;
943
960
  expires_at?: string | null;
@@ -990,6 +1007,16 @@ interface Payout {
990
1007
  client_request_id?: string | null;
991
1008
  paid_at?: string | null;
992
1009
  returned_at?: string | null;
1010
+ /** On `returned`: the bank's reason for a payout to your own bank; always `"returned"` on a creator payout. */
1011
+ return_reason_code?: ReturnReasonCode | null;
1012
+ /** 3.26.0. A note INVO wrote for you, or `null`. */
1013
+ partner_message?: string | null;
1014
+ /**
1015
+ * 3.26.0. `true` on the first payout to a creator registered with the game secret key: INVO
1016
+ * approves it only after the account owner confirms it in the console.
1017
+ */
1018
+ owner_confirmation_required?: boolean;
1019
+ owner_confirmed_at?: string | null;
993
1020
  created_at?: string | null;
994
1021
  [key: string]: unknown;
995
1022
  }
@@ -997,7 +1024,7 @@ interface RequestPayoutInput {
997
1024
  /** USD, positive, at most two decimal places. */
998
1025
  amountUsd: string | number;
999
1026
  contactEmail: string;
1000
- /** Pay a verified creator. Don't combine with `bankAccountId`. */
1027
+ /** Pay a verified creator. Send exactly one of `payeeId` or `bankAccountId`. */
1001
1028
  payeeId?: string;
1002
1029
  /** Pay your own verified bank account (id from the INVO console). */
1003
1030
  bankAccountId?: number;
@@ -1044,16 +1071,29 @@ declare class PayoutsServer {
1044
1071
  /**
1045
1072
  * Email the creator a new link (`POST /api/partner-payees/{payeeId}/resend-invite`); the old
1046
1073
  * link stops working. Allowed while the creator is `invited`, `rejected` or `expired`
1047
- * (`409 INVITE_NOT_NEEDED` otherwise). Never auto-retried.
1074
+ * (`409 INVITE_NOT_NEEDED` otherwise); `409 PAYEE_ERASED`; `429 INVITE_RATE_LIMITED` with
1075
+ * `retry_after_seconds`. If INVO asked the creator to update their details, the resend sends
1076
+ * INVO's update notice again. Never auto-retried.
1048
1077
  */
1049
1078
  resendPayeeInvite(payeeId: string, opts?: CallOptions): Promise<PayeeInvite>;
1050
1079
  /**
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.
1080
+ * Remove a creator from your program (`POST /api/partner-payees/{payeeId}/remove`, 3.26.0).
1081
+ * The status becomes `closed`. `409 PAYEE_HAS_PAYOUTS_IN_FLIGHT` while a payout to them is in
1082
+ * progress, `409 ALREADY_CLOSED`, `409 PAYEE_NOT_CLOSABLE`. Not a block: the same person can
1083
+ * be registered again under a new reference. Never auto-retried.
1084
+ */
1085
+ removePayee(payeeId: string, opts?: CallOptions): Promise<Payee>;
1086
+ /**
1087
+ * Ask INVO to pay out (`POST /api/partner-payouts/request`). Send exactly one of `payeeId`
1088
+ * (INVO pays that verified creator's bank account) or `bankAccountId` (your own verified bank
1089
+ * account). The money comes from the earnings INVO owes your game, and the payout fee is
1090
+ * taken from the payout. Creator refusals: `404 PAYEE_NOT_FOUND`, `409 PAYEE_NOT_VERIFIED`,
1091
+ * `409 PAYEE_VERIFICATION_EXPIRED`, `409 PAYEE_BANK_NOT_VERIFIED`, `409 PAYEE_CLOSED`,
1092
+ * `409 PAYEE_TERMS_NOT_ACCEPTED` (the creator hasn't accepted INVO's current Payee Terms yet),
1093
+ * `409 PAYEE_NOT_PAYABLE` (can't be paid right now; no action needed; try again later),
1094
+ * `409 IDEMPOTENCY_KEY_REUSED`. The first payout to a creator registered with the game key
1095
+ * carries `owner_confirmation_required: true`. Retried safely only when `clientRequestId` is
1096
+ * set.
1057
1097
  */
1058
1098
  requestPayout(input: RequestPayoutInput, opts?: CallOptions): Promise<RequestPayoutResult>;
1059
1099
  /** One payout (`GET /api/partner-payouts/{payoutId}`). */
@@ -1063,7 +1103,7 @@ declare class PayoutsServer {
1063
1103
  /**
1064
1104
  * Cancel a creator payout that is still `requested`
1065
1105
  * (`POST /api/partner-payouts/{payoutId}/cancel`). Anything past `requested` is
1066
- * `409 PAYOUT_NOT_CANCELLABLE`.
1106
+ * `409 PAYOUT_NOT_CANCELLABLE`; a payout to your own bank is `404 NOT_FOUND`.
1067
1107
  */
1068
1108
  cancelPayout(payoutIdValue: number, opts?: CallOptions): Promise<Payout>;
1069
1109
  }
@@ -1073,7 +1113,7 @@ declare class PayoutsServer {
1073
1113
  * `package.json` so it cannot drift silently (it did: the UA read 3.0.0 through 3.7.0).
1074
1114
  * Bump it with the changeset flow.
1075
1115
  */
1076
- declare const SDK_VERSION = "3.25.0";
1116
+ declare const SDK_VERSION = "3.26.1";
1077
1117
 
1078
1118
  /**
1079
1119
  * @invonetwork/web-sdk/server — NODE entry.
@@ -2073,4 +2113,4 @@ declare class InvoServer {
2073
2113
  private toInitiateResult;
2074
2114
  }
2075
2115
 
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 };
2116
+ 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 PayableBlocker, 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.1";
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,31 @@ 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_TERMS_NOT_ACCEPTED` (the creator hasn't accepted INVO's current Payee Terms yet),
138
+ * `409 PAYEE_NOT_PAYABLE` (can't be paid right now; no action needed; try again later),
139
+ * `409 IDEMPOTENCY_KEY_REUSED`. The first payout to a creator registered with the game key
140
+ * carries `owner_confirmation_required: true`. Retried safely only when `clientRequestId` is
141
+ * set.
121
142
  */
122
143
  async requestPayout(input, opts) {
123
144
  if (input.payeeId !== void 0 && input.bankAccountId !== void 0) {
@@ -163,7 +184,7 @@ var PayoutsServer = class {
163
184
  /**
164
185
  * Cancel a creator payout that is still `requested`
165
186
  * (`POST /api/partner-payouts/{payoutId}/cancel`). Anything past `requested` is
166
- * `409 PAYOUT_NOT_CANCELLABLE`.
187
+ * `409 PAYOUT_NOT_CANCELLABLE`; a payout to your own bank is `404 NOT_FOUND`.
167
188
  */
168
189
  async cancelPayout(payoutIdValue, opts) {
169
190
  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.1",
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
+ }