@delopay/sdk 0.193.0 → 0.198.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/{chunk-72DLUJCI.js → chunk-AUVCCOH6.js} +59 -7
- package/dist/chunk-AUVCCOH6.js.map +1 -0
- package/dist/index.cjs +58 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +267 -28
- package/dist/index.d.ts +267 -28
- package/dist/index.js +1 -1
- package/dist/internal.cjs +70 -6
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +33 -3
- package/dist/internal.d.ts +33 -3
- package/dist/internal.js +13 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-72DLUJCI.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -3900,6 +3900,31 @@ var Users = class {
|
|
|
3900
3900
|
async signIn(params) {
|
|
3901
3901
|
return this.request("POST", "/user/signin", { body: params });
|
|
3902
3902
|
}
|
|
3903
|
+
/** Providers currently configured for dashboard sign-in. */
|
|
3904
|
+
async listOAuthProviders() {
|
|
3905
|
+
return this.request("GET", "/user/oauth/providers");
|
|
3906
|
+
}
|
|
3907
|
+
/** Current account's links; disabled providers remain visible. */
|
|
3908
|
+
async listLinkedOAuthProviders() {
|
|
3909
|
+
return this.request("GET", "/user/oauth/linked");
|
|
3910
|
+
}
|
|
3911
|
+
async startOAuthSignIn(params) {
|
|
3912
|
+
return this.request("POST", "/user/oauth/start", { body: params });
|
|
3913
|
+
}
|
|
3914
|
+
async startOAuthLink(params) {
|
|
3915
|
+
return this.request("POST", "/user/oauth/link/start", { body: params });
|
|
3916
|
+
}
|
|
3917
|
+
async completeOAuthSignIn(params) {
|
|
3918
|
+
return this.request("POST", "/user/oauth/complete", { body: params });
|
|
3919
|
+
}
|
|
3920
|
+
async completeOAuthLink(params) {
|
|
3921
|
+
return this.request("POST", "/user/oauth/link/complete", { body: params });
|
|
3922
|
+
}
|
|
3923
|
+
async disconnectOAuthProvider(provider, params) {
|
|
3924
|
+
return this.request("DELETE", `/user/oauth/linked/${encodeURIComponent(provider)}`, {
|
|
3925
|
+
body: params
|
|
3926
|
+
});
|
|
3927
|
+
}
|
|
3903
3928
|
async signOut() {
|
|
3904
3929
|
return this.request("POST", "/user/signout");
|
|
3905
3930
|
}
|
|
@@ -5978,7 +6003,13 @@ var Subscriptions = class {
|
|
|
5978
6003
|
...options
|
|
5979
6004
|
});
|
|
5980
6005
|
}
|
|
5981
|
-
/**
|
|
6006
|
+
/**
|
|
6007
|
+
* Update a subscription's plan/price. `PUT /subscriptions/{subscriptionId}/update`
|
|
6008
|
+
*
|
|
6009
|
+
* From the dashboard this counts against the caller's `subscription_change`
|
|
6010
|
+
* operation limit; an over-limit call fails with `DE_01` and nothing reaches
|
|
6011
|
+
* the processor. Calls made with an API key are not limited.
|
|
6012
|
+
*/
|
|
5982
6013
|
async update(subscriptionId, params, options) {
|
|
5983
6014
|
return this.request("PUT", `/subscriptions/${encodeURIComponent(subscriptionId)}/update`, {
|
|
5984
6015
|
body: params,
|
|
@@ -6034,6 +6065,10 @@ var Subscriptions = class {
|
|
|
6034
6065
|
/**
|
|
6035
6066
|
* Pause a subscription. `POST /subscriptions/{subscriptionId}/pause`
|
|
6036
6067
|
*
|
|
6068
|
+
* From the dashboard this counts against the caller's `subscription_change`
|
|
6069
|
+
* operation limit; an over-limit call fails with `DE_01` and nothing reaches
|
|
6070
|
+
* the processor. Calls made with an API key are not limited.
|
|
6071
|
+
*
|
|
6037
6072
|
* The body defaults to `{}` so the request still carries
|
|
6038
6073
|
* `Content-Type: application/json` even when no params are passed — the
|
|
6039
6074
|
* backend rejects the POST otherwise ("Unsupported content type").
|
|
@@ -6044,7 +6079,13 @@ var Subscriptions = class {
|
|
|
6044
6079
|
...options
|
|
6045
6080
|
});
|
|
6046
6081
|
}
|
|
6047
|
-
/**
|
|
6082
|
+
/**
|
|
6083
|
+
* Resume a paused subscription. `POST /subscriptions/{subscriptionId}/resume`
|
|
6084
|
+
*
|
|
6085
|
+
* From the dashboard this counts against the caller's `subscription_change`
|
|
6086
|
+
* operation limit; an over-limit call fails with `DE_01` and nothing reaches
|
|
6087
|
+
* the processor. Calls made with an API key are not limited.
|
|
6088
|
+
*/
|
|
6048
6089
|
async resume(subscriptionId, params, options) {
|
|
6049
6090
|
return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/resume`, {
|
|
6050
6091
|
body: params ?? {},
|
|
@@ -6056,6 +6097,10 @@ var Subscriptions = class {
|
|
|
6056
6097
|
*
|
|
6057
6098
|
* A subscription in a state it cannot be cancelled from is refused with
|
|
6058
6099
|
* `DE_11`; `error.data.reason` then names why (`SubscriptionActionRefusal`).
|
|
6100
|
+
*
|
|
6101
|
+
* From the dashboard this counts against the caller's `subscription_change`
|
|
6102
|
+
* operation limit; an over-limit call fails with `DE_01` and nothing reaches
|
|
6103
|
+
* the processor. Calls made with an API key are not limited.
|
|
6059
6104
|
*/
|
|
6060
6105
|
async cancel(subscriptionId, params, options) {
|
|
6061
6106
|
return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/cancel`, {
|
|
@@ -6560,10 +6605,13 @@ var Settlement = class {
|
|
|
6560
6605
|
* Add a manual adjustment to a statement. Positive `amount_usd` charges
|
|
6561
6606
|
* the shop (reducing their payout); negative credits them.
|
|
6562
6607
|
*
|
|
6563
|
-
* Subject to the caller's `settlement_adjustment` operation limit
|
|
6564
|
-
*
|
|
6565
|
-
*
|
|
6566
|
-
*
|
|
6608
|
+
* Subject to the caller's `settlement_adjustment` operation limit: an
|
|
6609
|
+
* over-limit call fails with `DE_01` and no adjustment is added. Both
|
|
6610
|
+
* windows count every add, and a credit counts at its magnitude. A
|
|
6611
|
+
* settlement rule can only block — approval is refund-only, for the reason
|
|
6612
|
+
* given on `updateStatementPayout()`. When another add by the same user
|
|
6613
|
+
* changes the window while this one is being admitted, the call fails with
|
|
6614
|
+
* HTTP 412 and nothing is written; retrying the same request is safe.
|
|
6567
6615
|
*
|
|
6568
6616
|
* `POST /settlement/statements/{statementId}/adjustments`
|
|
6569
6617
|
*/
|
|
@@ -6577,6 +6625,10 @@ var Settlement = class {
|
|
|
6577
6625
|
/**
|
|
6578
6626
|
* Remove a manual adjustment from a statement.
|
|
6579
6627
|
*
|
|
6628
|
+
* The adjustment still counts against the caller's `settlement_adjustment`
|
|
6629
|
+
* limit window it was added in: removing it does not give back its count or
|
|
6630
|
+
* amount.
|
|
6631
|
+
*
|
|
6580
6632
|
* `DELETE /settlement/statements/{statementId}/adjustments/{adjustmentId}`
|
|
6581
6633
|
*/
|
|
6582
6634
|
async deleteStatementAdjustment(statementId, adjustmentId, options) {
|