web3bio-profile-kit 0.1.21 → 0.1.23
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/dist/hooks/useBaseQuery.cjs +1 -0
- package/dist/hooks/useBaseQuery.js +1 -0
- package/dist/hooks/useBatchNS.cjs +1 -0
- package/dist/hooks/useBatchNS.js +1 -0
- package/dist/hooks/useBatchProfile.cjs +1 -0
- package/dist/hooks/useBatchProfile.js +1 -0
- package/dist/hooks/useDomain.cjs +1 -0
- package/dist/hooks/useDomain.js +1 -0
- package/dist/hooks/useNS.cjs +1 -0
- package/dist/hooks/useNS.js +1 -0
- package/dist/hooks/useProfile.cjs +1 -0
- package/dist/hooks/useProfile.js +1 -0
- package/dist/hooks/useUniversalNS.cjs +1 -0
- package/dist/hooks/useUniversalNS.js +1 -0
- package/dist/hooks/useUniversalProfile.cjs +1 -0
- package/dist/hooks/useUniversalProfile.js +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +1 -0
- package/dist/types/ceredential.cjs +30 -0
- package/dist/types/ceredential.d.ts +45 -0
- package/dist/types/ceredential.js +30 -0
- package/dist/types/index.cjs +9 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/utils/helpers.cjs +1 -0
- package/dist/utils/helpers.js +1 -0
- package/dist/utils/platform.cjs +2 -2
- package/dist/utils/platform.js +2 -2
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ require('../types/network.cjs');
|
|
|
5
5
|
var hook = require('../types/hook.cjs');
|
|
6
6
|
require('../types/source.cjs');
|
|
7
7
|
require('../types/cointype.cjs');
|
|
8
|
+
require('../types/ceredential.cjs');
|
|
8
9
|
var reactQuery = require('@tanstack/react-query');
|
|
9
10
|
var helpers = require('../utils/helpers.cjs');
|
|
10
11
|
|
|
@@ -3,6 +3,7 @@ import '../types/network.js';
|
|
|
3
3
|
import { ErrorMessages, QueryEndpoint } from '../types/hook.js';
|
|
4
4
|
import '../types/source.js';
|
|
5
5
|
import '../types/cointype.js';
|
|
6
|
+
import '../types/ceredential.js';
|
|
6
7
|
import { useQuery } from '@tanstack/react-query';
|
|
7
8
|
import { getApiKey, PROD_API_ENDPOINT, resolveIdentity } from '../utils/helpers.js';
|
|
8
9
|
|
package/dist/hooks/useBatchNS.js
CHANGED
package/dist/hooks/useDomain.cjs
CHANGED
package/dist/hooks/useDomain.js
CHANGED
package/dist/hooks/useNS.cjs
CHANGED
package/dist/hooks/useNS.js
CHANGED
package/dist/hooks/useProfile.js
CHANGED
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
exports.CredentialCategory = void 0;
|
|
4
|
+
(function (CredentialCategory) {
|
|
5
|
+
CredentialCategory["isHuman"] = "isHuman";
|
|
6
|
+
CredentialCategory["isRisky"] = "isRisky";
|
|
7
|
+
CredentialCategory["isSpam"] = "isSpam";
|
|
8
|
+
})(exports.CredentialCategory || (exports.CredentialCategory = {}));
|
|
9
|
+
exports.CredentialSource = void 0;
|
|
10
|
+
(function (CredentialSource) {
|
|
11
|
+
// isHuman
|
|
12
|
+
CredentialSource["talent"] = "talent";
|
|
13
|
+
CredentialSource["binance"] = "binance";
|
|
14
|
+
CredentialSource["coinbase"] = "coinbase";
|
|
15
|
+
CredentialSource["farcasterPro"] = "farcaster-pro";
|
|
16
|
+
CredentialSource["galxePassport"] = "galxe-passport";
|
|
17
|
+
CredentialSource["world_id"] = "world_id";
|
|
18
|
+
CredentialSource["humanPassport"] = "human-passport";
|
|
19
|
+
CredentialSource["zkme"] = "zkme";
|
|
20
|
+
CredentialSource["humanode"] = "humanode";
|
|
21
|
+
CredentialSource["self_xyz"] = "self_xyz";
|
|
22
|
+
CredentialSource["dentity"] = "dentity";
|
|
23
|
+
// isRisky
|
|
24
|
+
CredentialSource["hacker"] = "hacker";
|
|
25
|
+
CredentialSource["hacked"] = "hacked";
|
|
26
|
+
CredentialSource["dmca"] = "dmca";
|
|
27
|
+
CredentialSource["google"] = "google";
|
|
28
|
+
// isSpam
|
|
29
|
+
CredentialSource["warpcast"] = "warpcast";
|
|
30
|
+
})(exports.CredentialSource || (exports.CredentialSource = {}));
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Platform } from "./platform";
|
|
2
|
+
export declare enum CredentialCategory {
|
|
3
|
+
isHuman = "isHuman",
|
|
4
|
+
isRisky = "isRisky",
|
|
5
|
+
isSpam = "isSpam"
|
|
6
|
+
}
|
|
7
|
+
export declare enum CredentialSource {
|
|
8
|
+
talent = "talent",
|
|
9
|
+
binance = "binance",
|
|
10
|
+
coinbase = "coinbase",
|
|
11
|
+
farcasterPro = "farcaster-pro",
|
|
12
|
+
galxePassport = "galxe-passport",
|
|
13
|
+
world_id = "world_id",
|
|
14
|
+
humanPassport = "human-passport",
|
|
15
|
+
zkme = "zkme",
|
|
16
|
+
humanode = "humanode",
|
|
17
|
+
self_xyz = "self_xyz",
|
|
18
|
+
dentity = "dentity",
|
|
19
|
+
hacker = "hacker",
|
|
20
|
+
hacked = "hacked",
|
|
21
|
+
dmca = "dmca",
|
|
22
|
+
google = "google",
|
|
23
|
+
warpcast = "warpcast"
|
|
24
|
+
}
|
|
25
|
+
export interface CredentialMetaData {
|
|
26
|
+
platform?: Platform;
|
|
27
|
+
description: string;
|
|
28
|
+
label: string;
|
|
29
|
+
icon: string;
|
|
30
|
+
}
|
|
31
|
+
export interface CredentialData extends CredentialMetaData {
|
|
32
|
+
id: string;
|
|
33
|
+
category: CredentialCategory;
|
|
34
|
+
dataSource: CredentialSource;
|
|
35
|
+
type: string;
|
|
36
|
+
value: string;
|
|
37
|
+
updatedAt: number | null;
|
|
38
|
+
expiredAt: number | null;
|
|
39
|
+
link: string | null;
|
|
40
|
+
}
|
|
41
|
+
export interface CredentialResponse {
|
|
42
|
+
[CredentialCategory.isHuman]: CredentialData[] | null;
|
|
43
|
+
[CredentialCategory.isRisky]: CredentialData[] | null;
|
|
44
|
+
[CredentialCategory.isSpam]: CredentialData[] | null;
|
|
45
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var CredentialCategory;
|
|
2
|
+
(function (CredentialCategory) {
|
|
3
|
+
CredentialCategory["isHuman"] = "isHuman";
|
|
4
|
+
CredentialCategory["isRisky"] = "isRisky";
|
|
5
|
+
CredentialCategory["isSpam"] = "isSpam";
|
|
6
|
+
})(CredentialCategory || (CredentialCategory = {}));
|
|
7
|
+
var CredentialSource;
|
|
8
|
+
(function (CredentialSource) {
|
|
9
|
+
// isHuman
|
|
10
|
+
CredentialSource["talent"] = "talent";
|
|
11
|
+
CredentialSource["binance"] = "binance";
|
|
12
|
+
CredentialSource["coinbase"] = "coinbase";
|
|
13
|
+
CredentialSource["farcasterPro"] = "farcaster-pro";
|
|
14
|
+
CredentialSource["galxePassport"] = "galxe-passport";
|
|
15
|
+
CredentialSource["world_id"] = "world_id";
|
|
16
|
+
CredentialSource["humanPassport"] = "human-passport";
|
|
17
|
+
CredentialSource["zkme"] = "zkme";
|
|
18
|
+
CredentialSource["humanode"] = "humanode";
|
|
19
|
+
CredentialSource["self_xyz"] = "self_xyz";
|
|
20
|
+
CredentialSource["dentity"] = "dentity";
|
|
21
|
+
// isRisky
|
|
22
|
+
CredentialSource["hacker"] = "hacker";
|
|
23
|
+
CredentialSource["hacked"] = "hacked";
|
|
24
|
+
CredentialSource["dmca"] = "dmca";
|
|
25
|
+
CredentialSource["google"] = "google";
|
|
26
|
+
// isSpam
|
|
27
|
+
CredentialSource["warpcast"] = "warpcast";
|
|
28
|
+
})(CredentialSource || (CredentialSource = {}));
|
|
29
|
+
|
|
30
|
+
export { CredentialCategory, CredentialSource };
|
package/dist/types/index.cjs
CHANGED
|
@@ -5,6 +5,7 @@ var network = require('./network.cjs');
|
|
|
5
5
|
var hook = require('./hook.cjs');
|
|
6
6
|
var source = require('./source.cjs');
|
|
7
7
|
var cointype = require('./cointype.cjs');
|
|
8
|
+
var ceredential = require('./ceredential.cjs');
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
@@ -32,3 +33,11 @@ Object.defineProperty(exports, 'CoinType', {
|
|
|
32
33
|
enumerable: true,
|
|
33
34
|
get: function () { return cointype.CoinType; }
|
|
34
35
|
});
|
|
36
|
+
Object.defineProperty(exports, 'CredentialCategory', {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return ceredential.CredentialCategory; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, 'CredentialSource', {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return ceredential.CredentialSource; }
|
|
43
|
+
});
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ export { Network, type NetworkType } from "./network";
|
|
|
3
3
|
export { ErrorMessages, QueryEndpoint, type AddressRecord, type SocialLinksItem, type SocialLinks, type SocialRecord, type ProfileResponse, type NSResponse, type DomainResponse, type QueryOptions, type IdentityString, type QueryResult, type ProfileResult, type NSResult, type ProfileBatchResult, type NSBatchResult, type ProfileUniversalResult, type NSUniversalResult, type DomainResult, } from "./hook";
|
|
4
4
|
export { Source, type SourceType } from "./source";
|
|
5
5
|
export { CoinType } from "./cointype";
|
|
6
|
+
export { type CredentialData, type CredentialResponse, type CredentialMetaData, CredentialSource, CredentialCategory, } from "./ceredential";
|
package/dist/types/index.js
CHANGED
package/dist/utils/helpers.cjs
CHANGED
package/dist/utils/helpers.js
CHANGED
package/dist/utils/platform.cjs
CHANGED
|
@@ -324,7 +324,7 @@ const PLATFORM_DATA = new Map([
|
|
|
324
324
|
[
|
|
325
325
|
platform.Platform.farcaster,
|
|
326
326
|
{
|
|
327
|
-
color: "#
|
|
327
|
+
color: "#6a3cff",
|
|
328
328
|
icon: "icons/icon-farcaster.svg",
|
|
329
329
|
label: "Farcaster",
|
|
330
330
|
description: "Farcaster social identity (Fname handle)",
|
|
@@ -340,7 +340,7 @@ const PLATFORM_DATA = new Map([
|
|
|
340
340
|
color: "#1A183D",
|
|
341
341
|
icon: "icons/icon-firefly.svg",
|
|
342
342
|
label: "Firefly",
|
|
343
|
-
urlPrefix: "https://firefly.social/",
|
|
343
|
+
urlPrefix: "https://firefly.social/profile/",
|
|
344
344
|
},
|
|
345
345
|
],
|
|
346
346
|
[
|
package/dist/utils/platform.js
CHANGED
|
@@ -322,7 +322,7 @@ const PLATFORM_DATA = new Map([
|
|
|
322
322
|
[
|
|
323
323
|
Platform.farcaster,
|
|
324
324
|
{
|
|
325
|
-
color: "#
|
|
325
|
+
color: "#6a3cff",
|
|
326
326
|
icon: "icons/icon-farcaster.svg",
|
|
327
327
|
label: "Farcaster",
|
|
328
328
|
description: "Farcaster social identity (Fname handle)",
|
|
@@ -338,7 +338,7 @@ const PLATFORM_DATA = new Map([
|
|
|
338
338
|
color: "#1A183D",
|
|
339
339
|
icon: "icons/icon-firefly.svg",
|
|
340
340
|
label: "Firefly",
|
|
341
|
-
urlPrefix: "https://firefly.social/",
|
|
341
|
+
urlPrefix: "https://firefly.social/profile/",
|
|
342
342
|
},
|
|
343
343
|
],
|
|
344
344
|
[
|