prividium 0.19.0 → 0.19.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.
@@ -10,6 +10,10 @@ export const INTERNAL_RPC_ERROR = -32603;
10
10
  * Invalid Request (-32600). Standard JSON-RPC 2.0 code for malformed requests.
11
11
  */
12
12
  export const INVALID_REQUEST_ERROR_CODE = -32600;
13
+ /**
14
+ * Method not found (-32601). Standard JSON-RPC 2.0 code for unknown/unavailable methods.
15
+ */
16
+ export const METHOD_NOT_FOUND_ERROR_CODE = -32601;
13
17
  /**
14
18
  * Invalid params (-32602). Standard JSON-RPC 2.0 code for bad parameters.
15
19
  */
@@ -1,7 +1,7 @@
1
1
  export { createPrividiumClient } from './create-prividium-client.js';
2
2
  export { type AuthCallbackMessage, handleAuthCallback, type OauthScope, PopupAuth } from './popup-auth.js';
3
3
  export { createPrividiumChain } from './prividium-chain.js';
4
- export { FORBIDDEN_ERROR_CODE, UNAUTHORIZED_ERROR_CODE } from './rpc-error-codes.js';
4
+ export { FORBIDDEN_ERROR_CODE, METHOD_NOT_FOUND_ERROR_CODE, UNAUTHORIZED_ERROR_CODE } from './rpc-error-codes.js';
5
5
  export * from './selective-disclosure/index.js';
6
6
  export { LocalStorage, TokenManager } from './storage.js';
7
7
  export { generateRandomState } from './token-utils.js';
package/dist/sdk/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { createPrividiumClient } from './create-prividium-client.js';
2
2
  export { handleAuthCallback, PopupAuth } from './popup-auth.js';
3
3
  export { createPrividiumChain } from './prividium-chain.js';
4
- export { FORBIDDEN_ERROR_CODE, UNAUTHORIZED_ERROR_CODE } from './rpc-error-codes.js';
4
+ export { FORBIDDEN_ERROR_CODE, METHOD_NOT_FOUND_ERROR_CODE, UNAUTHORIZED_ERROR_CODE } from './rpc-error-codes.js';
5
5
  export * from './selective-disclosure/index.js';
6
6
  export { LocalStorage, TokenManager } from './storage.js';
7
7
  export { generateRandomState } from './token-utils.js';
@@ -10,6 +10,10 @@ export declare const INTERNAL_RPC_ERROR = -32603;
10
10
  * Invalid Request (-32600). Standard JSON-RPC 2.0 code for malformed requests.
11
11
  */
12
12
  export declare const INVALID_REQUEST_ERROR_CODE = -32600;
13
+ /**
14
+ * Method not found (-32601). Standard JSON-RPC 2.0 code for unknown/unavailable methods.
15
+ */
16
+ export declare const METHOD_NOT_FOUND_ERROR_CODE = -32601;
13
17
  /**
14
18
  * Invalid params (-32602). Standard JSON-RPC 2.0 code for bad parameters.
15
19
  */
@@ -10,6 +10,10 @@ export const INTERNAL_RPC_ERROR = -32603;
10
10
  * Invalid Request (-32600). Standard JSON-RPC 2.0 code for malformed requests.
11
11
  */
12
12
  export const INVALID_REQUEST_ERROR_CODE = -32600;
13
+ /**
14
+ * Method not found (-32601). Standard JSON-RPC 2.0 code for unknown/unavailable methods.
15
+ */
16
+ export const METHOD_NOT_FOUND_ERROR_CODE = -32601;
13
17
  /**
14
18
  * Invalid params (-32602). Standard JSON-RPC 2.0 code for bad parameters.
15
19
  */
@@ -1,6 +1,6 @@
1
1
  export { createPrividiumClient } from './create-prividium-client.js';
2
2
  export { MemoryStorage } from './memory-storage.js';
3
- export { FORBIDDEN_ERROR_CODE, UNAUTHORIZED_ERROR_CODE } from './rpc-error-codes.js';
3
+ export { FORBIDDEN_ERROR_CODE, METHOD_NOT_FOUND_ERROR_CODE, UNAUTHORIZED_ERROR_CODE } from './rpc-error-codes.js';
4
4
  export type { SiweAuthConfig } from './siwe-auth.js';
5
5
  export { SiweAuth } from './siwe-auth.js';
6
6
  export type { PrividiumSiweChain, PrividiumSiweConfig } from './siwe-chain.js';
package/dist/sdk/siwe.js CHANGED
@@ -3,7 +3,7 @@
3
3
  export { createPrividiumClient } from './create-prividium-client.js';
4
4
  // Storage (MemoryStorage is the default for SIWE, but expose both + interface)
5
5
  export { MemoryStorage } from './memory-storage.js';
6
- export { FORBIDDEN_ERROR_CODE, UNAUTHORIZED_ERROR_CODE } from './rpc-error-codes.js';
6
+ export { FORBIDDEN_ERROR_CODE, METHOD_NOT_FOUND_ERROR_CODE, UNAUTHORIZED_ERROR_CODE } from './rpc-error-codes.js';
7
7
  // Auth strategy
8
8
  export { SiweAuth } from './siwe-auth.js';
9
9
  export { createPrividiumSiweChain } from './siwe-chain.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prividium",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "prividium": "bin/cli.js"