@abtnode/auth 1.16.52-beta-20250928-042319-ff3f0e04 → 1.16.52-beta-20251002-030549-0f91dab2

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.
Files changed (2) hide show
  1. package/locales/en.js +80 -80
  2. package/package.json +20 -20
package/locales/en.js CHANGED
@@ -1,92 +1,92 @@
1
1
  /* eslint-disable prettier/prettier */
2
2
  module.exports = {
3
- description: 'Connect your DID Wallet',
4
- requestProfile: 'Please provide following information to continue',
5
- requestDidSpace: 'Please authorize DID Space to continue',
6
- requestNFT: 'Please present NFT to exchange for passport',
7
- requestCredential: 'Please provide credential',
8
- requestPassport: 'Please provide passport',
9
- requestOwnerPassport: 'Please provide owner passport',
10
- requestBlockletNft: 'Please provide Blocklet Purchase NFT',
11
- receivePassport: 'Please sign the text to claim passport',
12
- requestEmailKyc: 'Please provide email verification NFT',
13
- receiveEmailKyc: 'Please sign the text to claim email verification NFT',
14
- requestPhoneKyc: 'Please provide phone verification NFT',
15
- receivePhoneKyc: 'Please sign the text to claim phone verification NFT',
16
- actionForbidden: 'You are not allowed perform this action',
17
- notInitialized: 'This node is not initialized, login is disabled',
18
- appNotInitialized: 'This application is not initialized',
19
- alreadyInitiated: 'This Node already have an owner verified',
20
- notAllowed: 'You are not allowed to login to this node',
21
- notAllowedAppUser: 'You access to this app has been revoked',
22
- notInvited: 'You need to be invited to login in to this app',
23
- notAppOwner: 'You are not the owner of this application',
24
- notSupported: 'This application is not supported on this server',
25
- notEnabled: 'Not enabled',
26
- missingPassport: 'Passport is not provided',
27
- missingEmailKyc: 'Email verification NFT is not provided',
28
- noKycRequired: 'No email verification required or already verified',
29
- emailAlreadyUsed: 'Email already used',
30
- emailMismatch: 'Email mismatch between your profile and email verification NFT',
31
- emailBlocked: 'Email domain is blocked or not allowed to login',
32
- missingPhoneKyc: 'Phone verification NFT is not provided',
33
- phoneAlreadyUsed: 'Phone already used',
34
- phoneMismatch: 'Phone mismatch between your profile and phone verification NFT',
35
- missingBlockletCredentialClaim: 'Blocklet credential is not provided',
36
- missingChallenge: 'Credential presentation does not include valid challenge',
37
- invalidCredentialHolder: 'Invalid credential holder',
38
- invalidCredentialProof: 'Invalid credential signature proof',
3
+ description: 'Connect your wallet',
4
+ requestProfile: 'Provide the following information to continue',
5
+ requestDidSpace: 'Authorize DID Spaces to continue',
6
+ requestNFT: 'Present your NFT to get a passport',
7
+ requestCredential: 'Provide your credential',
8
+ requestPassport: 'Provide your passport',
9
+ requestOwnerPassport: 'Provide owner passport',
10
+ requestBlockletNft: 'Provide Blocklet Purchase NFT',
11
+ receivePassport: 'Sign to claim your passport',
12
+ requestEmailKyc: 'Provide email verification NFT',
13
+ receiveEmailKyc: 'Sign to claim email verification NFT',
14
+ requestPhoneKyc: 'Provide phone verification NFT',
15
+ receivePhoneKyc: 'Sign to claim phone verification NFT',
16
+ actionForbidden: 'You don\'t have permission for this action',
17
+ notInitialized: 'This server isn\'t set up yet. Login is unavailable.',
18
+ appNotInitialized: 'This application isn\'t set up yet',
19
+ alreadyInitiated: 'This server already has an owner',
20
+ notAllowed: 'You don\'t have access to this server',
21
+ notAllowedAppUser: 'Your access to this app has been revoked',
22
+ notInvited: 'This app is invite-only. Please request an invitation.',
23
+ notAppOwner: 'Only the app owner can access this',
24
+ notSupported: 'This application isn\'t supported on this server',
25
+ notEnabled: 'This feature isn\'t enabled',
26
+ missingPassport: 'Passport required',
27
+ missingEmailKyc: 'Email verification NFT required',
28
+ noKycRequired: 'Email verification not required or already complete',
29
+ emailAlreadyUsed: 'This email is already in use',
30
+ emailMismatch: 'Email doesn\'t match your verification NFT',
31
+ emailBlocked: 'This email domain isn\'t allowed',
32
+ missingPhoneKyc: 'Phone verification NFT required',
33
+ phoneAlreadyUsed: 'This phone number is already in use',
34
+ phoneMismatch: 'Phone number doesn\'t match your verification NFT',
35
+ missingBlockletCredentialClaim: 'Blocklet credential required',
36
+ missingChallenge: 'Credential is missing a valid challenge',
37
+ invalidCredentialHolder: 'Credential holder is invalid',
38
+ invalidCredentialProof: 'Credential signature is invalid',
39
39
  notOwner:
40
- 'The account does not match the owner account of this passport, please use the DID wallet that contains the owner account of this passport to receive.',
41
- userMismatch: 'User mismatch, please use connected DID wallet to continue.',
42
- lowVersion: 'Your DID wallet version is too low, please upgrade to the latest version',
43
- unKnownStatus: 'unknown status',
44
- statusNotFound: 'status not found',
40
+ 'This passport belongs to a different account. Use the wallet that owns this passport.',
41
+ userMismatch: 'Account mismatch. Use your connected wallet to continue.',
42
+ lowVersion: 'Your wallet version is outdated. Please update to the latest version.',
43
+ unKnownStatus: 'Unknown status',
44
+ statusNotFound: 'Status not found',
45
45
  statusLabel: 'Status',
46
46
  passportNotFound: 'Passport not found',
47
- passportExpired: 'Passport has expired',
48
- passportRevoked: 'Passport has been revoked',
49
- noPassportFound: 'Seems you have no valid passport on this blocklet',
47
+ passportExpired: 'Your passport has expired',
48
+ passportRevoked: 'Your passport has been revoked',
49
+ noPassportFound: 'You don\'t have a valid passport for this blocklet',
50
50
  userNotFound: 'User not found',
51
- notAuthorized: 'No permission to perform this operation',
52
- invalidParams: 'Invalid Params',
53
- missingKeyPair: 'Missing app key pair',
54
- missingBlockletUrl: 'Missing blocklet url',
55
- missingBlockletDid: 'Missing blocklet did',
56
- missingChainHost: 'Missing chain host',
57
- missingLauncherSession: 'Missing launcherUrl and launcherSessionId',
58
- invalidBlocklet: 'Invalid Blocklet',
59
- blockletExists: 'The blocklet already exists',
60
- invalidBlockletVc: 'Invalid Blocklet VC',
61
- invalidAppVersion: 'App key-pair rotating can only be performed on the latest version',
62
- missingProfileClaim: 'Owner profile not provided',
63
- invalidNftClaim: 'Invalid Asset Claim: ownerPk, ownerDid and ownerProof are required',
64
- invalidNft: 'Invalid server ownership NFT state',
65
- invalidNftHolder: 'Invalid server ownership NFT holder',
66
- invalidNftProof: 'Invalid server ownership NFT signature proof',
67
- invalidNftIssuer: 'Invalid server ownership NFT issuer',
68
- invalidNftParent: 'Unexpected NFT Collection',
69
- tagNotMatch: 'This NFT is for another blocklet server',
70
- requestBlockletSpaceNFT: 'Please provide Blocklet Space NFT',
51
+ notAuthorized: 'You don\'t have permission for this operation',
52
+ invalidParams: 'Please check your information and try again',
53
+ missingKeyPair: 'App key pair required',
54
+ missingBlockletUrl: 'Blocklet URL required',
55
+ missingBlockletDid: 'Blocklet DID required',
56
+ missingChainHost: 'Chain host required',
57
+ missingLauncherSession: 'Launcher URL and session ID required',
58
+ invalidBlocklet: 'Invalid blocklet',
59
+ blockletExists: 'This blocklet already exists',
60
+ invalidBlockletVc: 'Invalid blocklet credential',
61
+ invalidAppVersion: 'Key-pair rotation only works on the latest version',
62
+ missingProfileClaim: 'Owner profile required',
63
+ invalidNftClaim: 'Invalid asset claim: owner public key, DID, and proof are required',
64
+ invalidNft: 'Invalid ownership NFT',
65
+ invalidNftHolder: 'NFT holder is invalid',
66
+ invalidNftProof: 'NFT signature is invalid',
67
+ invalidNftIssuer: 'NFT issuer is invalid',
68
+ invalidNftParent: 'NFT collection doesn\'t match',
69
+ tagNotMatch: 'This NFT belongs to a different server',
70
+ requestBlockletSpaceNFT: 'Blocklet Space NFT required',
71
71
  blockletSpaceNftIdRequired: 'Blocklet Space NFT ID is required',
72
72
  nftAlreadyConsumed: 'This NFT has already been used',
73
73
  sessionAlreadyConsumed: 'This session has already been used',
74
74
  nftAlreadyExpired: 'This NFT has expired',
75
- nftAlreadyUsed: 'This NFT has already been connected to another user',
76
- missingNftClaim: 'Ownership NFT not provided',
77
- noNft: 'This server is not initialized to accept ownership NFT',
78
- noLauncherDid: 'Launcher DID not found from server launcher info',
79
- noNftDid: 'NFT DID not found from server launcher info',
80
- noChainHost: 'chainHost not found from server launcher info',
81
- alreadyTransferred: 'The Blocklet Server already belongs to {owner}',
75
+ nftAlreadyUsed: 'This NFT is already linked to another user',
76
+ missingNftClaim: 'Ownership NFT required',
77
+ noNft: 'This server isn\'t configured to accept ownership NFTs',
78
+ noLauncherDid: 'Launcher DID not found',
79
+ noNftDid: 'NFT DID not found',
80
+ noChainHost: 'Chain host not found',
81
+ alreadyTransferred: 'This server already belongs to {owner}',
82
82
  delegateTransferOwnerNFT:
83
- 'Sign the delegation transaction to authorize blocklet server to transfer your ownership NFT to new owner when he/she claims the transfer.',
84
- notAllowedTransferToSelf: 'Not allowed to transfer the Server to yourself',
85
- tagRequired: 'tag is required',
86
- appIsInProgress: 'The application is in progress, please wait for it to finish',
87
- cannotImportFromDidSpace: 'Unable to find data from DID Space({spaceName}) that can be imported',
88
- destroyMyself: 'Confirm to delete your personal data, note: data deletion is not recoverable!',
89
- userNotExist: 'User {did} does not exist',
90
- notAllowedToDelete: 'You are not allowed to delete user {did}',
91
- notAllowedToDeleteOwner: 'You are not allowed to delete the owner of this application',
83
+ 'Sign to authorize the server to transfer your ownership NFT when the new owner claims it.',
84
+ notAllowedTransferToSelf: 'You can\'t transfer the server to yourself',
85
+ tagRequired: 'Tag is required',
86
+ appIsInProgress: 'This application is still processing. Please wait.',
87
+ cannotImportFromDidSpace: 'No importable data found in DID Spaces ({spaceName})',
88
+ destroyMyself: 'Confirm deletion of your personal data. This action cannot be undone.',
89
+ userNotExist: 'User {did} doesn\'t exist',
90
+ notAllowedToDelete: 'You can\'t delete user {did}',
91
+ notAllowedToDeleteOwner: 'You can\'t delete the application owner',
92
92
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.52-beta-20250928-042319-ff3f0e04",
6
+ "version": "1.16.52-beta-20251002-030549-0f91dab2",
7
7
  "description": "Simple lib to manage auth in ABT Node",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -20,25 +20,25 @@
20
20
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@abtnode/constant": "1.16.52-beta-20250928-042319-ff3f0e04",
24
- "@abtnode/logger": "1.16.52-beta-20250928-042319-ff3f0e04",
25
- "@abtnode/util": "1.16.52-beta-20250928-042319-ff3f0e04",
26
- "@arcblock/did": "1.24.0",
27
- "@arcblock/did-connect-js": "1.24.0",
28
- "@arcblock/did-ext": "1.24.0",
29
- "@arcblock/did-util": "1.24.0",
30
- "@arcblock/jwt": "1.24.0",
31
- "@arcblock/nft-display": "^3.1.41",
32
- "@arcblock/validator": "1.24.0",
33
- "@arcblock/vc": "1.24.0",
34
- "@blocklet/constant": "1.16.52-beta-20250928-042319-ff3f0e04",
23
+ "@abtnode/constant": "1.16.52-beta-20251002-030549-0f91dab2",
24
+ "@abtnode/logger": "1.16.52-beta-20251002-030549-0f91dab2",
25
+ "@abtnode/util": "1.16.52-beta-20251002-030549-0f91dab2",
26
+ "@arcblock/did": "1.25.6",
27
+ "@arcblock/did-connect-js": "1.25.6",
28
+ "@arcblock/did-ext": "1.25.6",
29
+ "@arcblock/did-util": "1.25.6",
30
+ "@arcblock/jwt": "1.25.6",
31
+ "@arcblock/nft-display": "^3.1.44",
32
+ "@arcblock/validator": "1.25.6",
33
+ "@arcblock/vc": "1.25.6",
34
+ "@blocklet/constant": "1.16.52-beta-20251002-030549-0f91dab2",
35
35
  "@blocklet/error": "^0.2.5",
36
- "@blocklet/meta": "1.16.52-beta-20250928-042319-ff3f0e04",
37
- "@blocklet/sdk": "1.16.52-beta-20250928-042319-ff3f0e04",
38
- "@ocap/client": "1.24.0",
39
- "@ocap/mcrypto": "1.24.0",
40
- "@ocap/util": "1.24.0",
41
- "@ocap/wallet": "1.24.0",
36
+ "@blocklet/meta": "1.16.52-beta-20251002-030549-0f91dab2",
37
+ "@blocklet/sdk": "1.16.52-beta-20251002-030549-0f91dab2",
38
+ "@ocap/client": "1.25.6",
39
+ "@ocap/mcrypto": "1.25.6",
40
+ "@ocap/util": "1.25.6",
41
+ "@ocap/wallet": "1.25.6",
42
42
  "@simplewebauthn/server": "^13.1.1",
43
43
  "axios": "^1.7.9",
44
44
  "flat": "^5.0.2",
@@ -56,5 +56,5 @@
56
56
  "devDependencies": {
57
57
  "jest": "^29.7.0"
58
58
  },
59
- "gitHead": "2390501ff6e05cbf356f751ced062803e3562465"
59
+ "gitHead": "57e57e5edc99bfbb7e4591d682f1057ec05655a8"
60
60
  }