@theholocron/holocron-plugin-infisical 5.0.0-alpha.270 → 5.0.0-alpha.272

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 CHANGED
@@ -1,6 +1,8 @@
1
- import { AuthError, EnsureResult, ResolveTokenInput, Vault, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess } from "@theholocron/cli";
1
+ import { AuthError, EnsureResult, PluginToken, ResolveTokenInput, Vault, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess } from "@theholocron/cli";
2
2
  import { InfisicalClient, InfisicalClient as InfisicalClient$1, InfisicalClientOptions, createInfisicalClient } from "@theholocron/infisical-client";
3
- export declare const resolveToken: (input?: ResolveTokenInput) => string;
3
+ export declare const resolveToken: import("@theholocron/cli").TokenResolver;
4
+ /** Every token this plugin takes, for `holocron doctor tokens`. */
5
+ export declare const tokens: PluginToken[];
4
6
  interface InfisicalVaultOptions {
5
7
  /** Default workspace (project) id — read/list/etc. operate here unless overridden. */
6
8
  workspace: string;
package/dist/index.mjs CHANGED
@@ -8,6 +8,8 @@ const resolveToken = createResolveToken({
8
8
  keyringService: "infisical",
9
9
  errorMessage: "no Infisical token found. Pass --token <TOKEN>, set HOLOCRON_INFISICAL_TOKEN / INFISICAL_TOKEN, or run: holocron auth set infisical <TOKEN>"
10
10
  });
11
+ /** Every token this plugin takes, for `holocron doctor tokens`. */
12
+ const tokens = [resolveToken.token];
11
13
  // src/capabilities/vault.ts
12
14
  var InfisicalVault = class {
13
15
  client;
@@ -218,4 +220,4 @@ function createPlugin(options) {
218
220
  * token is supplied or the supplied token is rejected.
219
221
  */
220
222
  const AUTH_HINT = "generate a Token Auth token on your machine identity (organization → access control → identities → your identity → add auth method → Token Auth → create token) OR a Personal API Token, then: holocron auth set infisical <TOKEN>. NOT Universal Auth's Client Secret — that needs a login exchange this plugin doesn't do yet.";
221
- export { AUTH_HINT, AuthError, InfisicalVault, createContext, createInfisicalClient, createPlugin, resolveToken, vault, verifyToken };
223
+ export { AUTH_HINT, AuthError, InfisicalVault, createContext, createInfisicalClient, createPlugin, resolveToken, tokens, vault, verifyToken };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-infisical",
3
- "version": "5.0.0-alpha.270",
3
+ "version": "5.0.0-alpha.272",
4
4
  "description": "Holocron plugin for Infisical. Implements the vault capability against Infisical's REST API, plus exports verifyToken + AUTH_HINT for `holocron auth`.",
5
5
  "keywords": [
6
6
  "holocron",
@@ -40,19 +40,19 @@
40
40
  "tsx": "4.23.15",
41
41
  "typescript": "^5.9.3",
42
42
  "vitest": "^5.0.5",
43
- "@theholocron/cli": "5.0.0-alpha.270",
44
- "@theholocron/http-client": "^1.58.0-alpha.2",
45
- "@theholocron/misc-utils": "^1.16.1-alpha.1",
46
- "@theholocron/infisical-client": "^1.58.0-alpha.2",
43
+ "@theholocron/cli": "5.0.0-alpha.272",
47
44
  "@theholocron/eslint-config": "^8.9.0-alpha.3",
48
- "@theholocron/tsdown-config": "^8.9.0-alpha.3",
45
+ "@theholocron/infisical-client": "^1.58.0-alpha.2",
49
46
  "@theholocron/tsconfig": "^8.9.0-alpha.3",
50
- "@theholocron/vitest-config": "^8.9.0-alpha.3"
47
+ "@theholocron/misc-utils": "^1.16.1-alpha.1",
48
+ "@theholocron/vitest-config": "^8.9.0-alpha.3",
49
+ "@theholocron/http-client": "^1.58.0-alpha.2",
50
+ "@theholocron/tsdown-config": "^8.9.0-alpha.3"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@theholocron/infisical-client": "^1.43.1",
54
54
  "@theholocron/misc-utils": "^1.16.0",
55
- "@theholocron/cli": "5.0.0-alpha.270"
55
+ "@theholocron/cli": "5.0.0-alpha.272"
56
56
  },
57
57
  "peerDependenciesMeta": {
58
58
  "@theholocron/infisical-client": {}