@huaweidevtools/aishell-dsh-client-credentials 0.0.9 → 0.0.10
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.
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
*
|
|
10
10
|
* The card shows **one** of two things, and nothing else:
|
|
11
11
|
*
|
|
12
|
-
* - **Signed in** — the account name and a way out. No
|
|
13
|
-
* question a signed-in person has is "who am I and
|
|
14
|
-
* "what is your access key".
|
|
12
|
+
* - **Signed in** — the account name, a way to accept it, and a way out. No
|
|
13
|
+
* inputs, because the question a signed-in person has is "who am I, and am
|
|
14
|
+
* I done", not "what is your access key". `确认` answers a waiting
|
|
15
|
+
* `aishell__auth`; `退出` clears the credential.
|
|
15
16
|
* - **Not signed in** — both ways to obtain a credential, side by side.
|
|
16
17
|
*
|
|
17
18
|
* An earlier version spread this across four pages (`choose` / `manual` /
|
|
@@ -83,6 +84,17 @@ export interface CredentialRequestFormInjected {
|
|
|
83
84
|
clear: () => Promise<SaveVerdict>;
|
|
84
85
|
/** Withdraw the card after saving — restores the ordinary composer. */
|
|
85
86
|
close: () => void;
|
|
87
|
+
/**
|
|
88
|
+
* Accept the stored credentials and withdraw the card.
|
|
89
|
+
*
|
|
90
|
+
* The signed-in card's affirmative action: the person looked at the account
|
|
91
|
+
* and is done. Distinct from {@link close} because it also answers a waiting
|
|
92
|
+
* `aishell__auth` — without it, a blocked call could only be answered by
|
|
93
|
+
* logging out, which destroys the credential it was waiting to use.
|
|
94
|
+
*
|
|
95
|
+
* Writes nothing and verifies nothing; the caller re-reads the store.
|
|
96
|
+
*/
|
|
97
|
+
confirm: () => void;
|
|
86
98
|
/**
|
|
87
99
|
* Decline: withdraw the card and tell the host this request was refused.
|
|
88
100
|
*
|
|
@@ -16,13 +16,14 @@ export declare const zh: {
|
|
|
16
16
|
readonly 'mode.unavailable.hint': "无法读取权限模式;切换按钮暂不可用";
|
|
17
17
|
readonly 'mode.switchToReadonly': "切换为只读模式";
|
|
18
18
|
readonly 'mode.switchToReadwrite': "切换为读写模式";
|
|
19
|
-
readonly 'section.credentials.hint.prefix': "
|
|
19
|
+
readonly 'section.credentials.hint.prefix': "建议从";
|
|
20
20
|
readonly 'section.credentials.hint.link': "API Explorer";
|
|
21
21
|
readonly 'section.credentials.hint.suffix': "获取临时凭据,避免使用永久凭据。";
|
|
22
22
|
readonly 'section.credentials.saving': "保存中…";
|
|
23
23
|
readonly 'form.title': "华为云 IAM 认证";
|
|
24
24
|
readonly 'form.or': "或者";
|
|
25
25
|
readonly 'form.signedIn': "已登录";
|
|
26
|
+
readonly 'form.confirm': "确认";
|
|
26
27
|
readonly 'form.logout': "退出";
|
|
27
28
|
readonly 'form.browser.section': "选项一:浏览器登录";
|
|
28
29
|
readonly 'form.browser.action': "登录";
|
|
@@ -67,18 +68,19 @@ export declare const en: {
|
|
|
67
68
|
readonly 'mode.unavailable.hint': "Could not read the permission mode; the toggle is unavailable";
|
|
68
69
|
readonly 'mode.switchToReadonly': "Switch to read-only mode";
|
|
69
70
|
readonly 'mode.switchToReadwrite': "Switch to read-write mode";
|
|
70
|
-
readonly 'section.credentials.hint.prefix': "
|
|
71
|
+
readonly 'section.credentials.hint.prefix': "Obtain temporary credentials from";
|
|
71
72
|
readonly 'section.credentials.hint.link': "API Explorer";
|
|
72
73
|
readonly 'section.credentials.hint.suffix': "and avoid permanent ones.";
|
|
73
74
|
readonly 'section.credentials.saving': "Saving…";
|
|
74
75
|
readonly 'form.title': "Huawei Cloud IAM authentication";
|
|
75
76
|
readonly 'form.or': "or";
|
|
76
77
|
readonly 'form.signedIn': "Signed in";
|
|
78
|
+
readonly 'form.confirm': "Confirm";
|
|
77
79
|
readonly 'form.logout': "Logout";
|
|
78
80
|
readonly 'form.browser.section': "Option 1: sign in with a browser";
|
|
79
81
|
readonly 'form.browser.action': "Sign in";
|
|
80
82
|
readonly 'form.browser.checking': "Checking this environment…";
|
|
81
|
-
readonly 'form.browser.unsupported': "This environment does not support
|
|
83
|
+
readonly 'form.browser.unsupported': "This environment does not support this method.";
|
|
82
84
|
readonly 'form.browser.unsupportedLabel': "Unsupported";
|
|
83
85
|
readonly 'form.browser.cancelLabel': "Cancel sign-in";
|
|
84
86
|
readonly 'form.browser.running': "Signing in ({time})";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huaweidevtools/aishell-dsh-client-credentials",
|
|
3
3
|
"description": "AI Shell credentials — chip-opened web form for storing Huawei Cloud AK/SK in the credential store",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.10",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"license": "Apache-2.0",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@huaweidevtools/aishell-dsh-credentials-store": "0.0.
|
|
44
|
+
"@huaweidevtools/aishell-dsh-credentials-store": "0.0.10"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@deepseek-ai/cordis": "^4.0.4",
|