@zkid/bridge-spec 0.0.1 → 0.0.3

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.
@@ -0,0 +1,5 @@
1
+ export declare const ALGORITHM_TYPES: {
2
+ readonly PROXY: "proxytls";
3
+ readonly MPC: "mpctls";
4
+ };
5
+ export type AlgorithmType = (typeof ALGORITHM_TYPES)[keyof typeof ALGORITHM_TYPES];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={INIT:"init",START:"start",CHECK_DATA_SOURCE:"checkDataSource",CHECK_DATA_SOURCE_RES:"checkDataSourceRes",CLOSE_DATA_SOURCE:"closeDataSource",VISITED_PAGE_PATHS:"visitedPagePaths",FAVICON_URL_CHANGED:"faviconUrlChanged",INIT_ATT:"initAttestation",START_ATT:"startAttestation",GET_ATT_RESULT:"getAttestationResult",GET_ATT_RESULT_TIMEOUT:"getAttestationResultTimeout",INIT_ATT_RES:"initAttestationRes",GET_ATT_RES:"getAttestationRes",START_ATT_RES:"startAttestationRes",OFFSCREEN_RECEIVE_GET_ATT:"offscreenReceiveGetAttestation",OFFSCREEN_GET_ATT:"getAttestation",OFFSCREEN_GET_ATT_RESULT:"getAttestationResult",START_OFFLINE:"startOffline"},T={EXTENSION:"hashKeyExtension",DEVHUB:"devhub",SDK:"sdk",EXT_BACKGROUND:"background",EXT_CONTENT:"content",EXT_POPUP:"popup",EXT_SIDEPANEL:"sidepanel",EXT_OFFSCREEN:"offscreen",EXT_OFFSCREEN_ALGORITHM:"offscreenAlgorithm",EXT_OFFSCREEN_REPORT:"offscreenReport"};exports.BRIDGE_METHODS=t;exports.BRIDGE_TARGET=T;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={INIT:"init",START:"start",CHECK_DATA_SOURCE:"checkDataSource",CHECK_DATA_SOURCE_RES:"checkDataSourceRes",CLOSE_DATA_SOURCE:"closeDataSource",VISITED_PAGE_PATHS:"visitedPagePaths",FAVICON_URL_CHANGED:"faviconUrlChanged",INIT_ATT:"initAttestation",START_ATT:"startAttestation",GET_ATT_RESULT:"getAttestationResult",GET_ATT_RESULT_TIMEOUT:"getAttestationResultTimeout",INIT_ATT_RES:"initAttestationRes",GET_ATT_RES:"getAttestationRes",START_ATT_RES:"startAttestationRes",OFFSCREEN_RECEIVE_GET_ATT:"offscreenReceiveGetAttestation",OFFSCREEN_GET_ATT:"getAttestation",OFFSCREEN_GET_ATT_RESULT:"getAttestationResult",START_OFFLINE:"startOffline"},T={EXTENSION:"hashKeyExtension",DEVHUB:"devhub",SDK:"sdk",EXT_BACKGROUND:"background",EXT_CONTENT:"content",EXT_POPUP:"popup",EXT_SIDEPANEL:"sidepanel",EXT_OFFSCREEN:"offscreen",EXT_OFFSCREEN_ALGORITHM:"offscreenAlgorithm",EXT_OFFSCREEN_REPORT:"offscreenReport"},E={PROXY:"proxytls",MPC:"mpctls"},e={NETWORK:"network",ZKTLS:"zktls"};exports.ALGORITHM_TYPES=E;exports.BRIDGE_METHODS=t;exports.BRIDGE_SDK_TYPES=e;exports.BRIDGE_TARGET=T;
@@ -2,3 +2,10 @@ export { BRIDGE_METHODS } from './methods';
2
2
  export type { BridgeMethod } from './methods';
3
3
  export { BRIDGE_TARGET } from './target';
4
4
  export type { BridgeTarget } from './target';
5
+ export { ALGORITHM_TYPES } from './algorithm';
6
+ export type { AlgorithmType } from './algorithm';
7
+ export declare const BRIDGE_SDK_TYPES: {
8
+ readonly NETWORK: "network";
9
+ readonly ZKTLS: "zktls";
10
+ };
11
+ export type BridgeSdkType = (typeof BRIDGE_SDK_TYPES)[keyof typeof BRIDGE_SDK_TYPES];
@@ -33,8 +33,16 @@ const t = {
33
33
  EXT_OFFSCREEN: "offscreen",
34
34
  EXT_OFFSCREEN_ALGORITHM: "offscreenAlgorithm",
35
35
  EXT_OFFSCREEN_REPORT: "offscreenReport"
36
+ }, E = {
37
+ PROXY: "proxytls",
38
+ MPC: "mpctls"
39
+ }, e = {
40
+ NETWORK: "network",
41
+ ZKTLS: "zktls"
36
42
  };
37
43
  export {
44
+ E as ALGORITHM_TYPES,
38
45
  t as BRIDGE_METHODS,
46
+ e as BRIDGE_SDK_TYPES,
39
47
  T as BRIDGE_TARGET
40
48
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkid/bridge-spec",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -26,7 +26,9 @@
26
26
  "build:types": "tsc -p tsconfig.build.json",
27
27
  "typecheck": "tsc --noEmit",
28
28
  "publish:dry": "bun run build && npm publish --access public --dry-run",
29
- "publish:npm": "bun run build && npm publish --access public"
29
+ "publish:patch": "npm version patch && npm run build && npm publish --access public",
30
+ "publish:minor": "npm version minor && npm run build && npm publish --access public",
31
+ "publish:major": "npm version major && npm run build && npm publish --access public"
30
32
  },
31
33
  "devDependencies": {
32
34
  "typescript": "~5.9.3",