@vess-id/ai-identity 0.0.2 → 0.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.
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -481,7 +481,7 @@ declare class OrganizationManager {
|
|
|
481
481
|
interface GrantSuggestion {
|
|
482
482
|
id: string;
|
|
483
483
|
oauthTokenId: string;
|
|
484
|
-
|
|
484
|
+
userId?: string;
|
|
485
485
|
projectId: string;
|
|
486
486
|
provider: string;
|
|
487
487
|
suggestedActions: string[];
|
|
@@ -533,13 +533,13 @@ declare class GrantManager {
|
|
|
533
533
|
* Grant提案を取得
|
|
534
534
|
* @param options - 提案オプション
|
|
535
535
|
* @param options.oauthTokenId - OAuthトークンID
|
|
536
|
-
* @param options.
|
|
536
|
+
* @param options.userId - 対象ユーザーID
|
|
537
537
|
* @param options.projectId - プロジェクトID
|
|
538
538
|
* @param authOptions - 認証オプション(VP or issuerDid)
|
|
539
539
|
*/
|
|
540
540
|
suggest(options: {
|
|
541
541
|
oauthTokenId: string;
|
|
542
|
-
|
|
542
|
+
userId: string;
|
|
543
543
|
projectId: string;
|
|
544
544
|
}, authOptions: {
|
|
545
545
|
vpJwt?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -481,7 +481,7 @@ declare class OrganizationManager {
|
|
|
481
481
|
interface GrantSuggestion {
|
|
482
482
|
id: string;
|
|
483
483
|
oauthTokenId: string;
|
|
484
|
-
|
|
484
|
+
userId?: string;
|
|
485
485
|
projectId: string;
|
|
486
486
|
provider: string;
|
|
487
487
|
suggestedActions: string[];
|
|
@@ -533,13 +533,13 @@ declare class GrantManager {
|
|
|
533
533
|
* Grant提案を取得
|
|
534
534
|
* @param options - 提案オプション
|
|
535
535
|
* @param options.oauthTokenId - OAuthトークンID
|
|
536
|
-
* @param options.
|
|
536
|
+
* @param options.userId - 対象ユーザーID
|
|
537
537
|
* @param options.projectId - プロジェクトID
|
|
538
538
|
* @param authOptions - 認証オプション(VP or issuerDid)
|
|
539
539
|
*/
|
|
540
540
|
suggest(options: {
|
|
541
541
|
oauthTokenId: string;
|
|
542
|
-
|
|
542
|
+
userId: string;
|
|
543
543
|
projectId: string;
|
|
544
544
|
}, authOptions: {
|
|
545
545
|
vpJwt?: string;
|
package/dist/index.js
CHANGED
|
@@ -158,7 +158,7 @@ var os = __toESM(require("os"));
|
|
|
158
158
|
var FilesystemKeyStorage = class {
|
|
159
159
|
keyStorePath;
|
|
160
160
|
constructor(config) {
|
|
161
|
-
this.keyStorePath = config?.options?.path || path.join(os.homedir(), ".vess", "keys");
|
|
161
|
+
this.keyStorePath = config?.options?.path || path.join(os.homedir(), ".vess-aidentity", "keys");
|
|
162
162
|
}
|
|
163
163
|
async store(id, encryptedKey) {
|
|
164
164
|
await this.ensureKeyStoreExists();
|
|
@@ -967,7 +967,7 @@ var AgentDIDManager = class {
|
|
|
967
967
|
const fs3 = await import("fs/promises");
|
|
968
968
|
const path3 = await import("path");
|
|
969
969
|
const os2 = await import("os");
|
|
970
|
-
const mappingDir = path3.join(os2.homedir(), ".vess", "agent-dids");
|
|
970
|
+
const mappingDir = path3.join(os2.homedir(), ".vess-aidentity", "agent-dids");
|
|
971
971
|
try {
|
|
972
972
|
const files = await fs3.readdir(mappingDir);
|
|
973
973
|
const results = [];
|
|
@@ -993,7 +993,7 @@ var AgentDIDManager = class {
|
|
|
993
993
|
const fs3 = await import("fs/promises");
|
|
994
994
|
const path3 = await import("path");
|
|
995
995
|
const os2 = await import("os");
|
|
996
|
-
const mappingDir = path3.join(os2.homedir(), ".vess", "agent-dids");
|
|
996
|
+
const mappingDir = path3.join(os2.homedir(), ".vess-aidentity", "agent-dids");
|
|
997
997
|
await fs3.mkdir(mappingDir, { recursive: true });
|
|
998
998
|
const mappingFile = path3.join(mappingDir, `${agentId}.did`);
|
|
999
999
|
await fs3.writeFile(mappingFile, did, "utf-8");
|
|
@@ -1296,7 +1296,7 @@ var UserIdentityManager = class {
|
|
|
1296
1296
|
const fs3 = await import("fs/promises");
|
|
1297
1297
|
const path3 = await import("path");
|
|
1298
1298
|
const os2 = await import("os");
|
|
1299
|
-
const configDir = path3.join(os2.homedir(), ".vess");
|
|
1299
|
+
const configDir = path3.join(os2.homedir(), ".vess-aidentity");
|
|
1300
1300
|
await fs3.mkdir(configDir, { recursive: true });
|
|
1301
1301
|
const userDIDFile = path3.join(configDir, "user-did.txt");
|
|
1302
1302
|
await fs3.writeFile(userDIDFile, did, "utf-8");
|
|
@@ -1308,7 +1308,7 @@ var UserIdentityManager = class {
|
|
|
1308
1308
|
const fs3 = await import("fs/promises");
|
|
1309
1309
|
const path3 = await import("path");
|
|
1310
1310
|
const os2 = await import("os");
|
|
1311
|
-
const userDIDFile = path3.join(os2.homedir(), ".vess", "user-did.txt");
|
|
1311
|
+
const userDIDFile = path3.join(os2.homedir(), ".vess-aidentity", "user-did.txt");
|
|
1312
1312
|
try {
|
|
1313
1313
|
return await fs3.readFile(userDIDFile, "utf-8");
|
|
1314
1314
|
} catch {
|
|
@@ -1322,7 +1322,7 @@ var UserIdentityManager = class {
|
|
|
1322
1322
|
const fs3 = await import("fs/promises");
|
|
1323
1323
|
const path3 = await import("path");
|
|
1324
1324
|
const os2 = await import("os");
|
|
1325
|
-
const userDIDFile = path3.join(os2.homedir(), ".vess", "user-did.txt");
|
|
1325
|
+
const userDIDFile = path3.join(os2.homedir(), ".vess-aidentity", "user-did.txt");
|
|
1326
1326
|
try {
|
|
1327
1327
|
await fs3.unlink(userDIDFile);
|
|
1328
1328
|
} catch {
|
|
@@ -2439,7 +2439,7 @@ var GrantManager = class {
|
|
|
2439
2439
|
* Grant提案を取得
|
|
2440
2440
|
* @param options - 提案オプション
|
|
2441
2441
|
* @param options.oauthTokenId - OAuthトークンID
|
|
2442
|
-
* @param options.
|
|
2442
|
+
* @param options.userId - 対象ユーザーID
|
|
2443
2443
|
* @param options.projectId - プロジェクトID
|
|
2444
2444
|
* @param authOptions - 認証オプション(VP or issuerDid)
|
|
2445
2445
|
*/
|