@tuwaio/siwx-server 0.7.1 → 0.8.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/README.md CHANGED
@@ -30,7 +30,7 @@ pnpm add @tuwaio/siwx-server @tuwaio/siwx-core @tuwaio/orbit-core
30
30
 
31
31
  # Chain verifiers, loaded at runtime for the chains you accept:
32
32
  pnpm add @tuwaio/siwx-evm viem @wagmi/core
33
- pnpm add @tuwaio/siwx-solana @solana/kit @wallet-standard/base
33
+ pnpm add @tuwaio/siwx-solana @tuwaio/orbit-solana @solana/kit @wallet-standard/base
34
34
  ```
35
35
 
36
36
  > [!IMPORTANT]
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as SiwxSession, a as SiwxJwtKey, b as SiwxJwks, c as SiwxPublicJwk, d as SiwxJwtPayload, e as SiwxJwtAlgorithm } from './server-DF9N4Mq4.mjs';
2
- export { C as CookieOptions, G as GetSiwxServerSessionOptions, M as MemorySiwxNonceStore, f as MemorySiwxSessionStore, g as ServerVerifyOptions, h as ServerVerifyResult, i as SiwxJwtOptions, j as SiwxNonceStore, k as SiwxSessionRecord, l as SiwxSessionStore, m as SiwxVerificationMethod, n as StatelessDemoLimits, o as StatelessDemoTokenPayload, p as createClearCookie, q as createSessionCookie, r as getSiwxServerSession, s as issueStatelessDemoNonce, t as parseCookie, u as signStatelessDemoSession, v as toSession, w as verifySiwxPayload, x as verifyStatelessDemoNonce, y as verifyStatelessDemoSession } from './server-DF9N4Mq4.mjs';
1
+ import { S as SiwxSession, a as SiwxJwtKey, b as SiwxJwks, c as SiwxPublicJwk, d as SiwxJwtPayload, e as SiwxJwtAlgorithm } from './server-JNFafIiy.mjs';
2
+ export { C as CookieOptions, G as GetSiwxServerSessionOptions, M as MemorySiwxNonceStore, f as MemorySiwxSessionStore, g as ServerVerifyOptions, h as ServerVerifyResult, i as SiwxJwtOptions, j as SiwxNonceStore, k as SiwxSessionRecord, l as SiwxSessionStore, m as SiwxVerificationMethod, n as StatelessDemoLimits, o as StatelessDemoTokenPayload, p as createClearCookie, q as createSessionCookie, r as getSiwxServerSession, s as issueStatelessDemoNonce, t as parseCookie, u as signStatelessDemoSession, v as toSession, w as verifySiwxPayload, x as verifyStatelessDemoNonce, y as verifyStatelessDemoSession } from './server-JNFafIiy.mjs';
3
3
  export { ParsedSiwxMessage, SiwxMessageFields, SiwxSessionLike, SiwxVerificationPolicy, ValidateMessageOptions, generateNonce, generateNonce as generateServerNonce, isSessionMatchingTarget, validateMessage, validatePolicy } from '@tuwaio/siwx-core';
4
4
  import '@tuwaio/siwx-evm';
5
5
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as SiwxSession, a as SiwxJwtKey, b as SiwxJwks, c as SiwxPublicJwk, d as SiwxJwtPayload, e as SiwxJwtAlgorithm } from './server-DF9N4Mq4.js';
2
- export { C as CookieOptions, G as GetSiwxServerSessionOptions, M as MemorySiwxNonceStore, f as MemorySiwxSessionStore, g as ServerVerifyOptions, h as ServerVerifyResult, i as SiwxJwtOptions, j as SiwxNonceStore, k as SiwxSessionRecord, l as SiwxSessionStore, m as SiwxVerificationMethod, n as StatelessDemoLimits, o as StatelessDemoTokenPayload, p as createClearCookie, q as createSessionCookie, r as getSiwxServerSession, s as issueStatelessDemoNonce, t as parseCookie, u as signStatelessDemoSession, v as toSession, w as verifySiwxPayload, x as verifyStatelessDemoNonce, y as verifyStatelessDemoSession } from './server-DF9N4Mq4.js';
1
+ import { S as SiwxSession, a as SiwxJwtKey, b as SiwxJwks, c as SiwxPublicJwk, d as SiwxJwtPayload, e as SiwxJwtAlgorithm } from './server-JNFafIiy.js';
2
+ export { C as CookieOptions, G as GetSiwxServerSessionOptions, M as MemorySiwxNonceStore, f as MemorySiwxSessionStore, g as ServerVerifyOptions, h as ServerVerifyResult, i as SiwxJwtOptions, j as SiwxNonceStore, k as SiwxSessionRecord, l as SiwxSessionStore, m as SiwxVerificationMethod, n as StatelessDemoLimits, o as StatelessDemoTokenPayload, p as createClearCookie, q as createSessionCookie, r as getSiwxServerSession, s as issueStatelessDemoNonce, t as parseCookie, u as signStatelessDemoSession, v as toSession, w as verifySiwxPayload, x as verifyStatelessDemoNonce, y as verifyStatelessDemoSession } from './server-JNFafIiy.js';
3
3
  export { ParsedSiwxMessage, SiwxMessageFields, SiwxSessionLike, SiwxVerificationPolicy, ValidateMessageOptions, generateNonce, generateNonce as generateServerNonce, isSessionMatchingTarget, validateMessage, validatePolicy } from '@tuwaio/siwx-core';
4
4
  import '@tuwaio/siwx-evm';
5
5
 
package/dist/next.d.mts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { SiwxVerificationPolicy } from '@tuwaio/siwx-core';
2
- import { l as SiwxSessionStore, j as SiwxNonceStore, C as CookieOptions, g as ServerVerifyOptions, i as SiwxJwtOptions, n as StatelessDemoLimits } from './server-DF9N4Mq4.mjs';
3
- export { G as GetSiwxServerSessionOptions, r as getSiwxServerSession } from './server-DF9N4Mq4.mjs';
2
+ import { i as SiwxJwtOptions } from './server-JNFafIiy.mjs';
3
+ import { SiwxSessionStore, SiwxNonceStore, CookieOptions, ServerVerifyOptions, StatelessDemoLimits } from './index.mjs';
4
+ export { G as GetSiwxServerSessionOptions, r as getSiwxServerSession } from './server-JNFafIiy.mjs';
4
5
  import '@tuwaio/siwx-evm';
5
6
 
6
7
  /**
@@ -169,4 +170,5 @@ declare function createStatelessDemoSiwxHandler(options: StatelessDemoSiwxHandle
169
170
  DELETE: (req: Request) => Promise<Response>;
170
171
  };
171
172
 
172
- export { type SiwxApiHandlerOptions, SiwxJwtOptions, type StatelessDemoSiwxHandlerOptions, createSiwxApiHandler, createStatelessDemoSiwxHandler };
173
+ export { SiwxJwtOptions, createSiwxApiHandler, createStatelessDemoSiwxHandler };
174
+ export type { SiwxApiHandlerOptions, StatelessDemoSiwxHandlerOptions };
package/dist/next.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { SiwxVerificationPolicy } from '@tuwaio/siwx-core';
2
- import { l as SiwxSessionStore, j as SiwxNonceStore, C as CookieOptions, g as ServerVerifyOptions, i as SiwxJwtOptions, n as StatelessDemoLimits } from './server-DF9N4Mq4.js';
3
- export { G as GetSiwxServerSessionOptions, r as getSiwxServerSession } from './server-DF9N4Mq4.js';
2
+ import { i as SiwxJwtOptions } from './server-JNFafIiy.js';
3
+ import { SiwxSessionStore, SiwxNonceStore, CookieOptions, ServerVerifyOptions, StatelessDemoLimits } from './index.js';
4
+ export { G as GetSiwxServerSessionOptions, r as getSiwxServerSession } from './server-JNFafIiy.js';
4
5
  import '@tuwaio/siwx-evm';
5
6
 
6
7
  /**
@@ -169,4 +170,5 @@ declare function createStatelessDemoSiwxHandler(options: StatelessDemoSiwxHandle
169
170
  DELETE: (req: Request) => Promise<Response>;
170
171
  };
171
172
 
172
- export { type SiwxApiHandlerOptions, SiwxJwtOptions, type StatelessDemoSiwxHandlerOptions, createSiwxApiHandler, createStatelessDemoSiwxHandler };
173
+ export { SiwxJwtOptions, createSiwxApiHandler, createStatelessDemoSiwxHandler };
174
+ export type { SiwxApiHandlerOptions, StatelessDemoSiwxHandlerOptions };
@@ -574,4 +574,5 @@ declare class MemorySiwxNonceStore implements SiwxNonceStore {
574
574
  */
575
575
  declare function getSiwxServerSession(options: GetSiwxServerSessionOptions): Promise<SiwxSession | null>;
576
576
 
577
- export { type CookieOptions as C, type GetSiwxServerSessionOptions as G, MemorySiwxNonceStore as M, type SiwxSession as S, type SiwxJwtKey as a, type SiwxJwks as b, type SiwxPublicJwk as c, type SiwxJwtPayload as d, type SiwxJwtAlgorithm as e, MemorySiwxSessionStore as f, type ServerVerifyOptions as g, type ServerVerifyResult as h, type SiwxJwtOptions as i, type SiwxNonceStore as j, type SiwxSessionRecord as k, type SiwxSessionStore as l, type SiwxVerificationMethod as m, type StatelessDemoLimits as n, type StatelessDemoTokenPayload as o, createClearCookie as p, createSessionCookie as q, getSiwxServerSession as r, issueStatelessDemoNonce as s, parseCookie as t, signStatelessDemoSession as u, toSession as v, verifySiwxPayload as w, verifyStatelessDemoNonce as x, verifyStatelessDemoSession as y };
577
+ export { MemorySiwxNonceStore as M, MemorySiwxSessionStore as f, createClearCookie as p, createSessionCookie as q, getSiwxServerSession as r, issueStatelessDemoNonce as s, parseCookie as t, signStatelessDemoSession as u, toSession as v, verifySiwxPayload as w, verifyStatelessDemoNonce as x, verifyStatelessDemoSession as y };
578
+ export type { CookieOptions as C, GetSiwxServerSessionOptions as G, SiwxSession as S, SiwxJwtKey as a, SiwxJwks as b, SiwxPublicJwk as c, SiwxJwtPayload as d, SiwxJwtAlgorithm as e, ServerVerifyOptions as g, ServerVerifyResult as h, SiwxJwtOptions as i, SiwxNonceStore as j, SiwxSessionRecord as k, SiwxSessionStore as l, SiwxVerificationMethod as m, StatelessDemoLimits as n, StatelessDemoTokenPayload as o };
@@ -574,4 +574,5 @@ declare class MemorySiwxNonceStore implements SiwxNonceStore {
574
574
  */
575
575
  declare function getSiwxServerSession(options: GetSiwxServerSessionOptions): Promise<SiwxSession | null>;
576
576
 
577
- export { type CookieOptions as C, type GetSiwxServerSessionOptions as G, MemorySiwxNonceStore as M, type SiwxSession as S, type SiwxJwtKey as a, type SiwxJwks as b, type SiwxPublicJwk as c, type SiwxJwtPayload as d, type SiwxJwtAlgorithm as e, MemorySiwxSessionStore as f, type ServerVerifyOptions as g, type ServerVerifyResult as h, type SiwxJwtOptions as i, type SiwxNonceStore as j, type SiwxSessionRecord as k, type SiwxSessionStore as l, type SiwxVerificationMethod as m, type StatelessDemoLimits as n, type StatelessDemoTokenPayload as o, createClearCookie as p, createSessionCookie as q, getSiwxServerSession as r, issueStatelessDemoNonce as s, parseCookie as t, signStatelessDemoSession as u, toSession as v, verifySiwxPayload as w, verifyStatelessDemoNonce as x, verifyStatelessDemoSession as y };
577
+ export { MemorySiwxNonceStore as M, MemorySiwxSessionStore as f, createClearCookie as p, createSessionCookie as q, getSiwxServerSession as r, issueStatelessDemoNonce as s, parseCookie as t, signStatelessDemoSession as u, toSession as v, verifySiwxPayload as w, verifyStatelessDemoNonce as x, verifyStatelessDemoSession as y };
578
+ export type { CookieOptions as C, GetSiwxServerSessionOptions as G, SiwxSession as S, SiwxJwtKey as a, SiwxJwks as b, SiwxPublicJwk as c, SiwxJwtPayload as d, SiwxJwtAlgorithm as e, ServerVerifyOptions as g, ServerVerifyResult as h, SiwxJwtOptions as i, SiwxNonceStore as j, SiwxSessionRecord as k, SiwxSessionStore as l, SiwxVerificationMethod as m, StatelessDemoLimits as n, StatelessDemoTokenPayload as o };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuwaio/siwx-server",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "private": false,
5
5
  "author": "Oleksandr Tkach",
6
6
  "license": "Apache-2.0",
@@ -87,13 +87,13 @@
87
87
  }
88
88
  },
89
89
  "devDependencies": {
90
- "@tuwaio/orbit-core": "^0.5.0",
91
- "@tuwaio/siwx-core": "0.7.0",
92
- "@tuwaio/siwx-evm": "0.5.1",
93
- "@tuwaio/siwx-solana": "0.6.0",
94
- "tsup": "^8.5.1",
90
+ "@tuwaio/orbit-core": "^0.6.0",
91
+ "@tuwaio/siwx-core": "0.7.1",
92
+ "@tuwaio/siwx-evm": "0.5.2",
93
+ "@tuwaio/siwx-solana": "0.7.0",
94
+ "tsup": "^9.0.0",
95
95
  "typescript": "6.0.3",
96
- "viem": "^2.57.1"
96
+ "viem": "^2.57.7"
97
97
  },
98
98
  "scripts": {
99
99
  "start": "tsup src/index.ts --watch",