@alpacakit/integrations-conventions 0.1.0-beta.21 → 0.1.0-beta.25
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.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntegrationAuthProfileId, SecretRef } from "@alpacakit/integrations";
|
|
1
|
+
import type { IntegrationAuthMaterialKind, IntegrationAuthProfile, IntegrationAuthProfileId, SecretRef } from "@alpacakit/integrations";
|
|
2
2
|
import { integrationsConfigPaths } from "@alpacakit/integrations/config";
|
|
3
3
|
export declare const ALPACA_LOOP_KEYRING_SERVICE = "alpacaloop.agents-home";
|
|
4
4
|
export declare const ALPACA_LOOP_INTEGRATIONS_KEYRING_RESOLVER = "integrations-keyring";
|
|
@@ -8,7 +8,8 @@ export type IntegrationsConventionInput = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare function resolveIntegrationsConfigRoot(input: IntegrationsConventionInput): string;
|
|
10
10
|
export declare function resolveIntegrationsConfigPaths(input: IntegrationsConventionInput): ReturnType<typeof integrationsConfigPaths>;
|
|
11
|
-
export declare function createIntegrationKeyringSecretRef(profileId: IntegrationAuthProfileId): SecretRef;
|
|
11
|
+
export declare function createIntegrationKeyringSecretRef(profileId: IntegrationAuthProfileId, materialKind: IntegrationAuthMaterialKind): SecretRef;
|
|
12
|
+
export declare function isManagedIntegrationKeyringProfile(profile: IntegrationAuthProfile): boolean;
|
|
12
13
|
export declare function integrationKeyringResolver(): import("@alpacakit/integrations").SecretResolver;
|
|
13
14
|
export declare function integrationKeyringSecretStore(): import("@alpacakit/integrations/keyring").KeyringSecretStore;
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot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,CAC5C,KAAK,EAAE,2BAA2B,GACjC,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAE5C;AAED,wBAAgB,iCAAiC,CAC/C,SAAS,EAAE,wBAAwB,EACnC,YAAY,EAAE,2BAA2B,GACxC,SAAS,CAKX;AAED,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAST;AAED,wBAAgB,0BAA0B,qDAEzC;AAED,wBAAgB,6BAA6B,iEAE5C"}
|
package/dist/index.js
CHANGED
|
@@ -18,12 +18,17 @@ export function resolveIntegrationsConfigRoot(input) {
|
|
|
18
18
|
export function resolveIntegrationsConfigPaths(input) {
|
|
19
19
|
return integrationsConfigPaths(resolveIntegrationsConfigRoot(input));
|
|
20
20
|
}
|
|
21
|
-
export function createIntegrationKeyringSecretRef(profileId) {
|
|
21
|
+
export function createIntegrationKeyringSecretRef(profileId, materialKind) {
|
|
22
22
|
return {
|
|
23
23
|
resolver: ALPACA_LOOP_INTEGRATIONS_KEYRING_RESOLVER,
|
|
24
|
-
id: `profile:${profileId}
|
|
24
|
+
id: `profile:${profileId}:${materialKind}`,
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
+
export function isManagedIntegrationKeyringProfile(profile) {
|
|
28
|
+
const expected = createIntegrationKeyringSecretRef(profile.id, profile.material.kind);
|
|
29
|
+
return (profile.material.secret.resolver === expected.resolver &&
|
|
30
|
+
profile.material.secret.id === expected.id);
|
|
31
|
+
}
|
|
27
32
|
export function integrationKeyringResolver() {
|
|
28
33
|
return keyringResolver(ALPACA_LOOP_KEYRING_SERVICE);
|
|
29
34
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alpacakit/integrations-conventions",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.25",
|
|
4
4
|
"description": "AlpacaKit-family conventions for @alpacakit/integrations machine-local config.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"LICENSE"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@alpacakit/integrations": "0.1.0-beta.
|
|
24
|
+
"@alpacakit/integrations": "0.1.0-beta.25"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"typescript": "^5.9.3",
|