@worldcoin/idkit-core 1.0.0 → 1.1.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.
|
@@ -14,8 +14,8 @@ declare enum CredentialType {
|
|
|
14
14
|
Device = "device"
|
|
15
15
|
}
|
|
16
16
|
declare enum VerificationLevel {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
Orb = "orb",
|
|
18
|
+
Device = "device"
|
|
19
19
|
}
|
|
20
20
|
type IDKitConfig = {
|
|
21
21
|
/** Unique identifier for the app verifying the action. This should be the app ID obtained from the Developer Portal. */
|
package/build/index.cjs
CHANGED
|
@@ -61,8 +61,8 @@ var CredentialType = /* @__PURE__ */ ((CredentialType2) => {
|
|
|
61
61
|
return CredentialType2;
|
|
62
62
|
})(CredentialType || {});
|
|
63
63
|
var VerificationLevel = /* @__PURE__ */ ((VerificationLevel2) => {
|
|
64
|
-
VerificationLevel2["Lite"] = "lite";
|
|
65
64
|
VerificationLevel2["Orb"] = "orb";
|
|
65
|
+
VerificationLevel2["Device"] = "device";
|
|
66
66
|
return VerificationLevel2;
|
|
67
67
|
})(VerificationLevel || {});
|
|
68
68
|
|
|
@@ -121,7 +121,7 @@ var buffer_decode = (encoded) => {
|
|
|
121
121
|
};
|
|
122
122
|
var verification_level_to_credential_types = (verification_level) => {
|
|
123
123
|
switch (verification_level) {
|
|
124
|
-
case "
|
|
124
|
+
case "device" /* Device */:
|
|
125
125
|
return ["orb" /* Orb */, "device" /* Device */];
|
|
126
126
|
case "orb" /* Orb */:
|
|
127
127
|
return ["orb" /* Orb */];
|
|
@@ -134,7 +134,7 @@ var credential_type_to_verification_level = (credential_type) => {
|
|
|
134
134
|
case "orb" /* Orb */:
|
|
135
135
|
return "orb" /* Orb */;
|
|
136
136
|
case "device" /* Device */:
|
|
137
|
-
return "
|
|
137
|
+
return "device" /* Device */;
|
|
138
138
|
default:
|
|
139
139
|
throw new Error(`Unknown credential_type: ${credential_type}`);
|
|
140
140
|
}
|
package/build/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VerificationLevel, I as IDKitConfig } from './config-
|
|
2
|
-
export { A as AbiEncodedValue, C as CredentialType } from './config-
|
|
1
|
+
import { V as VerificationLevel, I as IDKitConfig } from './config-325e0567.js';
|
|
2
|
+
export { A as AbiEncodedValue, C as CredentialType } from './config-325e0567.js';
|
|
3
3
|
import * as zustand from 'zustand';
|
|
4
4
|
|
|
5
5
|
declare enum AppErrorCodes {
|
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VerificationLevel, I as IDKitConfig } from './config-
|
|
2
|
-
export { A as AbiEncodedValue, C as CredentialType } from './config-
|
|
1
|
+
import { V as VerificationLevel, I as IDKitConfig } from './config-325e0567.js';
|
|
2
|
+
export { A as AbiEncodedValue, C as CredentialType } from './config-325e0567.js';
|
|
3
3
|
import * as zustand from 'zustand';
|
|
4
4
|
|
|
5
5
|
declare enum AppErrorCodes {
|
package/build/index.js
CHANGED
|
@@ -34,8 +34,8 @@ var CredentialType = /* @__PURE__ */ ((CredentialType2) => {
|
|
|
34
34
|
return CredentialType2;
|
|
35
35
|
})(CredentialType || {});
|
|
36
36
|
var VerificationLevel = /* @__PURE__ */ ((VerificationLevel2) => {
|
|
37
|
-
VerificationLevel2["Lite"] = "lite";
|
|
38
37
|
VerificationLevel2["Orb"] = "orb";
|
|
38
|
+
VerificationLevel2["Device"] = "device";
|
|
39
39
|
return VerificationLevel2;
|
|
40
40
|
})(VerificationLevel || {});
|
|
41
41
|
|
|
@@ -53,7 +53,7 @@ var buffer_decode = (encoded) => {
|
|
|
53
53
|
};
|
|
54
54
|
var verification_level_to_credential_types = (verification_level) => {
|
|
55
55
|
switch (verification_level) {
|
|
56
|
-
case "
|
|
56
|
+
case "device" /* Device */:
|
|
57
57
|
return ["orb" /* Orb */, "device" /* Device */];
|
|
58
58
|
case "orb" /* Orb */:
|
|
59
59
|
return ["orb" /* Orb */];
|
|
@@ -66,7 +66,7 @@ var credential_type_to_verification_level = (credential_type) => {
|
|
|
66
66
|
case "orb" /* Orb */:
|
|
67
67
|
return "orb" /* Orb */;
|
|
68
68
|
case "device" /* Device */:
|
|
69
|
-
return "
|
|
69
|
+
return "device" /* Device */;
|
|
70
70
|
default:
|
|
71
71
|
throw new Error(`Unknown credential_type: ${credential_type}`);
|
|
72
72
|
}
|
package/build/lib/hashing.d.cts
CHANGED
package/build/lib/hashing.d.ts
CHANGED