@stxapp/stx-typescript 0.10.0 → 0.12.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/CHANGELOG.md +21 -0
- package/README.md +2 -0
- package/dist/{chunk-42OCIF3G.cjs → chunk-B3JQFXMJ.cjs} +198 -46
- package/dist/chunk-B3JQFXMJ.cjs.map +1 -0
- package/dist/{chunk-FTZCBXT7.js → chunk-JJRK3Z27.js} +169 -17
- package/dist/chunk-JJRK3Z27.js.map +1 -0
- package/dist/{client-DJr0UUvB.d.cts → client-CwshT5D4.d.cts} +211 -36
- package/dist/{client-DJr0UUvB.d.ts → client-CwshT5D4.d.ts} +211 -36
- package/dist/index.cjs +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -1
- package/dist/oauth.cjs +30 -30
- package/dist/oauth.d.cts +2 -2
- package/dist/oauth.d.ts +2 -2
- package/dist/oauth.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-42OCIF3G.cjs.map +0 -1
- package/dist/chunk-FTZCBXT7.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -23,24 +23,29 @@ import {
|
|
|
23
23
|
STX,
|
|
24
24
|
STXAPIException,
|
|
25
25
|
STXAuthenticationException,
|
|
26
|
+
STXBlockedException,
|
|
26
27
|
STXChannelException,
|
|
27
28
|
STXComboPriceMovedException,
|
|
28
29
|
STXComboRefusedException,
|
|
29
30
|
STXCombosUnavailableException,
|
|
30
31
|
STXConfigException,
|
|
31
32
|
STXException,
|
|
33
|
+
STXFillModeNotAllowedException,
|
|
32
34
|
STXForbiddenException,
|
|
33
35
|
STXIPNotAllowedException,
|
|
34
36
|
STXInsufficientScopeException,
|
|
35
37
|
STXInvalidTokenException,
|
|
36
38
|
STXNotAvailableException,
|
|
37
39
|
STXNotFoundException,
|
|
40
|
+
STXPostOnlyWouldMatchException,
|
|
38
41
|
STXRateLimitException,
|
|
39
42
|
STXRejectedException,
|
|
43
|
+
STXRestrictedJurisdictionException,
|
|
40
44
|
STXServerException,
|
|
41
45
|
STXTermsRequiredException,
|
|
42
46
|
STXTimeoutException,
|
|
43
47
|
STXTransportException,
|
|
48
|
+
STXUnusualNetworkException,
|
|
44
49
|
STXValidationException,
|
|
45
50
|
STXWebSocket,
|
|
46
51
|
Stats,
|
|
@@ -69,7 +74,7 @@ import {
|
|
|
69
74
|
socketUrlFor,
|
|
70
75
|
toDollarString,
|
|
71
76
|
toQuantity
|
|
72
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-JJRK3Z27.js";
|
|
73
78
|
export {
|
|
74
79
|
AccountView,
|
|
75
80
|
ApiKeyCredentials,
|
|
@@ -95,24 +100,29 @@ export {
|
|
|
95
100
|
STX,
|
|
96
101
|
STXAPIException,
|
|
97
102
|
STXAuthenticationException,
|
|
103
|
+
STXBlockedException,
|
|
98
104
|
STXChannelException,
|
|
99
105
|
STXComboPriceMovedException,
|
|
100
106
|
STXComboRefusedException,
|
|
101
107
|
STXCombosUnavailableException,
|
|
102
108
|
STXConfigException,
|
|
103
109
|
STXException,
|
|
110
|
+
STXFillModeNotAllowedException,
|
|
104
111
|
STXForbiddenException,
|
|
105
112
|
STXIPNotAllowedException,
|
|
106
113
|
STXInsufficientScopeException,
|
|
107
114
|
STXInvalidTokenException,
|
|
108
115
|
STXNotAvailableException,
|
|
109
116
|
STXNotFoundException,
|
|
117
|
+
STXPostOnlyWouldMatchException,
|
|
110
118
|
STXRateLimitException,
|
|
111
119
|
STXRejectedException,
|
|
120
|
+
STXRestrictedJurisdictionException,
|
|
112
121
|
STXServerException,
|
|
113
122
|
STXTermsRequiredException,
|
|
114
123
|
STXTimeoutException,
|
|
115
124
|
STXTransportException,
|
|
125
|
+
STXUnusualNetworkException,
|
|
116
126
|
STXValidationException,
|
|
117
127
|
STXWebSocket,
|
|
118
128
|
Stats,
|
package/dist/oauth.cjs
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkB3JQFXMJcjs = require('./chunk-B3JQFXMJ.cjs');
|
|
15
15
|
|
|
16
16
|
// src/oauth/endpoints.ts
|
|
17
17
|
var DEFAULT_ENDPOINTS = {
|
|
@@ -28,12 +28,12 @@ var WELL_KNOWN = {
|
|
|
28
28
|
function resolveOAuthConfig(input) {
|
|
29
29
|
const env = _nullishCoalesce(_optionalChain([globalThis, 'access', _ => _.process, 'optionalAccess', _2 => _2.env]), () => ( {}));
|
|
30
30
|
const host = _nullishCoalesce(_nullishCoalesce(input.baseUrl, () => ( env.STX_HOST)), () => ( env.STX_BASE_URL));
|
|
31
|
-
if (!host) throw new (0,
|
|
31
|
+
if (!host) throw new (0, _chunkB3JQFXMJcjs.STXConfigException)("An OAuth base URL is required. Pass { baseUrl } or set STX_HOST.");
|
|
32
32
|
const fetchImpl = _nullishCoalesce(input.fetch, () => ( globalThis.fetch));
|
|
33
33
|
if (typeof fetchImpl !== "function") {
|
|
34
|
-
throw new (0,
|
|
34
|
+
throw new (0, _chunkB3JQFXMJcjs.STXConfigException)("No fetch implementation available. Use Node 18+, or pass { fetch }.");
|
|
35
35
|
}
|
|
36
|
-
return { baseUrl:
|
|
36
|
+
return { baseUrl: _chunkB3JQFXMJcjs.baseUrlFor.call(void 0, null, null, host), fetch: fetchImpl };
|
|
37
37
|
}
|
|
38
38
|
function joinUrl(baseUrl, path) {
|
|
39
39
|
if (/^https?:\/\//i.test(path)) return path;
|
|
@@ -41,7 +41,7 @@ function joinUrl(baseUrl, path) {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
// src/oauth/errors.ts
|
|
44
|
-
var STXOAuthException = class extends
|
|
44
|
+
var STXOAuthException = class extends _chunkB3JQFXMJcjs.STXAuthenticationException {
|
|
45
45
|
/** The RFC error code: `invalid_client`, `invalid_grant`, `invalid_scope`, ... */
|
|
46
46
|
|
|
47
47
|
|
|
@@ -82,7 +82,7 @@ function callbackError(error, errorDescription, endpoint) {
|
|
|
82
82
|
const Class = error === "account_pending" ? STXAccountPendingException : error === "terms_required" ? STXTermsNotAcceptedException : error === "access_denied" ? STXAccessDeniedException : STXOAuthException;
|
|
83
83
|
return new Class(error, errorDescription, 400, endpoint);
|
|
84
84
|
}
|
|
85
|
-
var STXGrantRevokedException = class extends
|
|
85
|
+
var STXGrantRevokedException = class extends _chunkB3JQFXMJcjs.STXAuthenticationException {
|
|
86
86
|
constructor(message = "OAuth grant revoked: the member must re-authorize.") {
|
|
87
87
|
super(message, { statusCode: 400 });
|
|
88
88
|
}
|
|
@@ -120,8 +120,8 @@ async function fetchWellKnown(baseUrl, path, opts) {
|
|
|
120
120
|
headers: { Accept: "application/json" }
|
|
121
121
|
});
|
|
122
122
|
const text = await res.text();
|
|
123
|
-
if (res.status === 404 ||
|
|
124
|
-
throw new (0,
|
|
123
|
+
if (res.status === 404 || _chunkB3JQFXMJcjs.isEdgeBlock.call(void 0, res.status, text)) {
|
|
124
|
+
throw new (0, _chunkB3JQFXMJcjs.STXNotAvailableException)("oauth", new URL(cfg.baseUrl).host, {
|
|
125
125
|
statusCode: res.status,
|
|
126
126
|
body: text,
|
|
127
127
|
method: "GET",
|
|
@@ -136,7 +136,7 @@ async function fetchWellKnown(baseUrl, path, opts) {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
function httpError(status, text, path) {
|
|
139
|
-
return new (0,
|
|
139
|
+
return new (0, _chunkB3JQFXMJcjs.STXAPIException)(`HTTP ${status} from ${path}: ${text.slice(0, 500)}`, {
|
|
140
140
|
statusCode: status,
|
|
141
141
|
body: text,
|
|
142
142
|
path
|
|
@@ -224,7 +224,7 @@ function rfcError(text) {
|
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
function httpError2(status, text, path) {
|
|
227
|
-
return new (0,
|
|
227
|
+
return new (0, _chunkB3JQFXMJcjs.STXAPIException)(`HTTP ${status} from ${path}: ${text.slice(0, 500)}`, {
|
|
228
228
|
statusCode: status,
|
|
229
229
|
body: text,
|
|
230
230
|
path
|
|
@@ -402,7 +402,7 @@ var OAuthClient = (_class = class _OAuthClient {
|
|
|
402
402
|
*/
|
|
403
403
|
async beginAuthorization(pending, params = {}) {
|
|
404
404
|
const redirectUri = _nullishCoalesce(params.redirectUri, () => ( this.redirectUri));
|
|
405
|
-
if (!redirectUri) throw new (0,
|
|
405
|
+
if (!redirectUri) throw new (0, _chunkB3JQFXMJcjs.STXConfigException)("redirectUri is required to build an authorize URL.");
|
|
406
406
|
const auth = await this.authorizationUrl({ ...params, redirectUri });
|
|
407
407
|
await pending.put(auth.state, {
|
|
408
408
|
codeVerifier: auth.codeVerifier,
|
|
@@ -448,12 +448,12 @@ var OAuthClient = (_class = class _OAuthClient {
|
|
|
448
448
|
if (!offered || !requested) return void 0;
|
|
449
449
|
const missing = parseScopes(requested).find((s) => !offered.includes(s));
|
|
450
450
|
if (!missing) return void 0;
|
|
451
|
-
return new (0,
|
|
451
|
+
return new (0, _chunkB3JQFXMJcjs.STXNotAvailableException)(`scope:${missing}`, this.host, { statusCode: 400, cause });
|
|
452
452
|
}
|
|
453
453
|
/** `STXNotAvailableException` (feature `oauth`) for an OAuth endpoint the exchange does not have. */
|
|
454
454
|
oauthMissing(status, text, endpoint) {
|
|
455
|
-
if (status !== 404 && !
|
|
456
|
-
return new (0,
|
|
455
|
+
if (status !== 404 && !_chunkB3JQFXMJcjs.isEdgeBlock.call(void 0, status, text)) return void 0;
|
|
456
|
+
return new (0, _chunkB3JQFXMJcjs.STXNotAvailableException)("oauth", this.host, {
|
|
457
457
|
statusCode: status,
|
|
458
458
|
body: text,
|
|
459
459
|
method: "POST",
|
|
@@ -475,7 +475,7 @@ var OAuthClient = (_class = class _OAuthClient {
|
|
|
475
475
|
let memberKey;
|
|
476
476
|
if (opts.store) {
|
|
477
477
|
memberKey = typeof opts.memberKey === "function" ? opts.memberKey(entry.data) : opts.memberKey;
|
|
478
|
-
if (!memberKey) throw new (0,
|
|
478
|
+
if (!memberKey) throw new (0, _chunkB3JQFXMJcjs.STXConfigException)("Pass memberKey along with store.");
|
|
479
479
|
await opts.store.set(memberKey, tokenSetToStored(tokens));
|
|
480
480
|
}
|
|
481
481
|
return { tokens, scopes: parseScopes(tokens.scope), data: entry.data, memberKey };
|
|
@@ -484,7 +484,7 @@ var OAuthClient = (_class = class _OAuthClient {
|
|
|
484
484
|
buildAuthorizeUrl(params) {
|
|
485
485
|
const redirectUri = _nullishCoalesce(params.redirectUri, () => ( this.redirectUri));
|
|
486
486
|
if (!redirectUri) {
|
|
487
|
-
throw new (0,
|
|
487
|
+
throw new (0, _chunkB3JQFXMJcjs.STXConfigException)("redirectUri is required to build an authorize URL.");
|
|
488
488
|
}
|
|
489
489
|
const url = new URL(joinUrl(this.baseUrl, this.endpoints.authorize));
|
|
490
490
|
const search = {
|
|
@@ -506,7 +506,7 @@ var OAuthClient = (_class = class _OAuthClient {
|
|
|
506
506
|
exchangeCode(args) {
|
|
507
507
|
const redirectUri = _nullishCoalesce(args.redirectUri, () => ( this.redirectUri));
|
|
508
508
|
if (!redirectUri) {
|
|
509
|
-
throw new (0,
|
|
509
|
+
throw new (0, _chunkB3JQFXMJcjs.STXConfigException)("redirectUri is required to exchange a code.");
|
|
510
510
|
}
|
|
511
511
|
return this.postToken(
|
|
512
512
|
new URLSearchParams({
|
|
@@ -550,7 +550,7 @@ var OAuthClient = (_class = class _OAuthClient {
|
|
|
550
550
|
*/
|
|
551
551
|
clientCredentials(scope) {
|
|
552
552
|
if (this.isPublic) {
|
|
553
|
-
throw new (0,
|
|
553
|
+
throw new (0, _chunkB3JQFXMJcjs.STXConfigException)(
|
|
554
554
|
"client_credentials needs a client secret; a public client cannot mint an app token."
|
|
555
555
|
);
|
|
556
556
|
}
|
|
@@ -659,7 +659,7 @@ var OAuthClient = (_class = class _OAuthClient {
|
|
|
659
659
|
*/
|
|
660
660
|
memberClient(store, memberKey, opts = {}) {
|
|
661
661
|
const { session, ...rest } = opts;
|
|
662
|
-
return new (0,
|
|
662
|
+
return new (0, _chunkB3JQFXMJcjs.STX)({
|
|
663
663
|
...rest,
|
|
664
664
|
host: this.baseUrl,
|
|
665
665
|
fetch: _nullishCoalesce(rest.fetch, () => ( this.fetch)),
|
|
@@ -672,7 +672,7 @@ var OAuthClient = (_class = class _OAuthClient {
|
|
|
672
672
|
* market channels. Scope defaults to every app scope the client may hold.
|
|
673
673
|
*/
|
|
674
674
|
appClient(scope, opts = {}) {
|
|
675
|
-
return new (0,
|
|
675
|
+
return new (0, _chunkB3JQFXMJcjs.STX)({ ...opts, host: this.baseUrl, fetch: _nullishCoalesce(opts.fetch, () => ( this.fetch)), auth: this.app(scope) });
|
|
676
676
|
}
|
|
677
677
|
/** @internal The in-flight refresh map for one store; see `OAuthSessionAuth`. */
|
|
678
678
|
_refreshesFor(store) {
|
|
@@ -880,7 +880,7 @@ var OAuthSessionAuth = (_class4 = class {
|
|
|
880
880
|
async tokens() {
|
|
881
881
|
let tokens = await this.load();
|
|
882
882
|
if (!tokens) {
|
|
883
|
-
throw new (0,
|
|
883
|
+
throw new (0, _chunkB3JQFXMJcjs.STXConfigException)(`No tokens stored for member "${this.memberKey}". Complete the OAuth flow first.`);
|
|
884
884
|
}
|
|
885
885
|
if (tokens.refreshToken && tokens.expiresAt !== void 0 && tokens.expiresAt - Date.now() <= this.skewMs) {
|
|
886
886
|
const refreshed = await this.refresh(tokens.refreshToken);
|
|
@@ -1050,13 +1050,13 @@ function termsUrlWithReturn(termsUrl, returnTo) {
|
|
|
1050
1050
|
|
|
1051
1051
|
// src/oauth/connect.ts
|
|
1052
1052
|
function createConnect(opts) {
|
|
1053
|
-
if (!opts.issuer) throw new (0,
|
|
1054
|
-
if (!opts.clientId || !opts.clientSecret) throw new (0,
|
|
1055
|
-
if (!opts.redirectUri) throw new (0,
|
|
1053
|
+
if (!opts.issuer) throw new (0, _chunkB3JQFXMJcjs.STXConfigException)("issuer is required.");
|
|
1054
|
+
if (!opts.clientId || !opts.clientSecret) throw new (0, _chunkB3JQFXMJcjs.STXConfigException)("clientId and clientSecret are required.");
|
|
1055
|
+
if (!opts.redirectUri) throw new (0, _chunkB3JQFXMJcjs.STXConfigException)("redirectUri is required.");
|
|
1056
1056
|
const issuer = opts.issuer.replace(/\/+$/, "");
|
|
1057
1057
|
const fetchImpl = _nullishCoalesce(opts.fetch, () => ( globalThis.fetch));
|
|
1058
1058
|
if (typeof fetchImpl !== "function") {
|
|
1059
|
-
throw new (0,
|
|
1059
|
+
throw new (0, _chunkB3JQFXMJcjs.STXConfigException)("No fetch implementation available. Use Node 18+, or pass { fetch }.");
|
|
1060
1060
|
}
|
|
1061
1061
|
const skew = _nullishCoalesce(opts.clockSkewSeconds, () => ( 60));
|
|
1062
1062
|
let config;
|
|
@@ -1195,8 +1195,8 @@ function createConnect(opts) {
|
|
|
1195
1195
|
headers: { Accept: "application/json", Authorization: `Bearer ${accessToken}` }
|
|
1196
1196
|
});
|
|
1197
1197
|
const text = await res.text();
|
|
1198
|
-
if (res.status === 404 ||
|
|
1199
|
-
throw new (0,
|
|
1198
|
+
if (res.status === 404 || _chunkB3JQFXMJcjs.isEdgeBlock.call(void 0, res.status, text)) {
|
|
1199
|
+
throw new (0, _chunkB3JQFXMJcjs.STXNotAvailableException)("connect", new URL(endpoint).host, {
|
|
1200
1200
|
statusCode: res.status,
|
|
1201
1201
|
body: text,
|
|
1202
1202
|
method: "GET",
|
|
@@ -1262,8 +1262,8 @@ function withOpenId(scopes) {
|
|
|
1262
1262
|
async function fetchJson(fetchImpl, url, feature) {
|
|
1263
1263
|
const res = await fetchImpl(url, { method: "GET", headers: { Accept: "application/json" } });
|
|
1264
1264
|
const text = await res.text();
|
|
1265
|
-
if (feature && (res.status === 404 ||
|
|
1266
|
-
throw new (0,
|
|
1265
|
+
if (feature && (res.status === 404 || _chunkB3JQFXMJcjs.isEdgeBlock.call(void 0, res.status, text))) {
|
|
1266
|
+
throw new (0, _chunkB3JQFXMJcjs.STXNotAvailableException)(feature, new URL(url).host, {
|
|
1267
1267
|
statusCode: res.status,
|
|
1268
1268
|
body: text,
|
|
1269
1269
|
method: "GET",
|
|
@@ -1437,5 +1437,5 @@ var MemoryPendingAuthorizationStore = (_class7 = class {constructor() { _class7.
|
|
|
1437
1437
|
|
|
1438
1438
|
|
|
1439
1439
|
|
|
1440
|
-
exports.ALL_APP_SCOPES = ALL_APP_SCOPES; exports.ALL_MEMBER_SCOPES = ALL_MEMBER_SCOPES; exports.AppScopes = AppScopes; exports.AppTokenProvider = AppTokenProvider; exports.DEFAULT_ENDPOINTS = DEFAULT_ENDPOINTS; exports.LEGACY_SCOPES = LEGACY_SCOPES; exports.MemberScopes = MemberScopes; exports.MemoryPendingAuthorizationStore = MemoryPendingAuthorizationStore; exports.MemoryTokenStore = MemoryTokenStore; exports.OAuthAppAuth = OAuthAppAuth; exports.OAuthBearerAuth = OAuthBearerAuth; exports.OAuthClient = OAuthClient; exports.OAuthSessionAuth = OAuthSessionAuth; exports.STXAccessDeniedException = STXAccessDeniedException; exports.STXAccountPendingException = STXAccountPendingException; exports.STXAuthenticationException =
|
|
1440
|
+
exports.ALL_APP_SCOPES = ALL_APP_SCOPES; exports.ALL_MEMBER_SCOPES = ALL_MEMBER_SCOPES; exports.AppScopes = AppScopes; exports.AppTokenProvider = AppTokenProvider; exports.DEFAULT_ENDPOINTS = DEFAULT_ENDPOINTS; exports.LEGACY_SCOPES = LEGACY_SCOPES; exports.MemberScopes = MemberScopes; exports.MemoryPendingAuthorizationStore = MemoryPendingAuthorizationStore; exports.MemoryTokenStore = MemoryTokenStore; exports.OAuthAppAuth = OAuthAppAuth; exports.OAuthBearerAuth = OAuthBearerAuth; exports.OAuthClient = OAuthClient; exports.OAuthSessionAuth = OAuthSessionAuth; exports.STXAccessDeniedException = STXAccessDeniedException; exports.STXAccountPendingException = STXAccountPendingException; exports.STXAuthenticationException = _chunkB3JQFXMJcjs.STXAuthenticationException; exports.STXForbiddenException = _chunkB3JQFXMJcjs.STXForbiddenException; exports.STXGrantRevokedException = STXGrantRevokedException; exports.STXIPNotAllowedException = _chunkB3JQFXMJcjs.STXIPNotAllowedException; exports.STXInsufficientScopeException = _chunkB3JQFXMJcjs.STXInsufficientScopeException; exports.STXInvalidTokenException = _chunkB3JQFXMJcjs.STXInvalidTokenException; exports.STXNotAvailableException = _chunkB3JQFXMJcjs.STXNotAvailableException; exports.STXOAuthException = STXOAuthException; exports.STXTermsNotAcceptedException = STXTermsNotAcceptedException; exports.STXTermsRequiredException = _chunkB3JQFXMJcjs.STXTermsRequiredException; exports.Scopes = Scopes; exports.WELL_KNOWN = WELL_KNOWN; exports.base64url = base64url; exports.canonicalScope = canonicalScope; exports.codeChallengeS256 = codeChallengeS256; exports.createConnect = createConnect; exports.createPkce = createPkce; exports.discoverMetadata = discoverMetadata; exports.discoverProtectedResource = discoverProtectedResource; exports.formatScopes = formatScopes; exports.generateCodeVerifier = generateCodeVerifier; exports.generateState = generateState; exports.isAppScope = isAppScope; exports.isMemberScope = isMemberScope; exports.joinUrl = joinUrl; exports.parseScopes = parseScopes; exports.parseTokenResponse = parseTokenResponse; exports.readCallback = readCallback; exports.registerClient = registerClient; exports.rfcError = rfcError; exports.termsUrlWithReturn = termsUrlWithReturn; exports.tokenSetToStored = tokenSetToStored;
|
|
1441
1441
|
//# sourceMappingURL=oauth.cjs.map
|
package/dist/oauth.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { b2 as STXAuthenticationException, g as AuthProvider, h as AuthRequest, bH as WebSocketAuthContext, bi as STXOptions, b0 as STX } from './client-CwshT5D4.cjs';
|
|
2
|
+
export { bc as STXForbiddenException, bd as STXIPNotAllowedException, be as STXInsufficientScopeException, bf as STXInvalidTokenException, bg as STXNotAvailableException, bo as STXTermsRequiredException } from './client-CwshT5D4.cjs';
|
|
3
3
|
import 'node:crypto';
|
|
4
4
|
|
|
5
5
|
interface OAuthEndpoints$1 {
|
package/dist/oauth.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { b2 as STXAuthenticationException, g as AuthProvider, h as AuthRequest, bH as WebSocketAuthContext, bi as STXOptions, b0 as STX } from './client-CwshT5D4.js';
|
|
2
|
+
export { bc as STXForbiddenException, bd as STXIPNotAllowedException, be as STXInsufficientScopeException, bf as STXInvalidTokenException, bg as STXNotAvailableException, bo as STXTermsRequiredException } from './client-CwshT5D4.js';
|
|
3
3
|
import 'node:crypto';
|
|
4
4
|
|
|
5
5
|
interface OAuthEndpoints$1 {
|
package/dist/oauth.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stxapp/stx-typescript",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "The TypeScript SDK for the STX exchange: markets, trading, your account and live WebSocket channels, with API-key signing and typed responses.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|