@eide/foir-cli 0.42.0 → 0.43.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/cli.js +6 -3
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -980,7 +980,8 @@ function createIdentityMethods(client) {
|
|
|
980
980
|
rateLimitPerHour: params.rateLimitPerHour,
|
|
981
981
|
allowedModels: params.allowedModels,
|
|
982
982
|
allowedFileTypes: params.allowedFileTypes,
|
|
983
|
-
scopes: params.scopes
|
|
983
|
+
scopes: params.scopes,
|
|
984
|
+
configId: params.configId
|
|
984
985
|
})
|
|
985
986
|
);
|
|
986
987
|
return { apiKey: resp.apiKey ?? null };
|
|
@@ -5192,6 +5193,7 @@ async function reconcileConfig(client, configId, manifest, options = {}) {
|
|
|
5192
5193
|
await reconcileDesignTokens(client, manifest, summary, options.publishDesignTokens ?? false);
|
|
5193
5194
|
await reconcileApiKeys(
|
|
5194
5195
|
client,
|
|
5196
|
+
configId,
|
|
5195
5197
|
manifest.key,
|
|
5196
5198
|
manifest.apiKeys ?? [],
|
|
5197
5199
|
summary,
|
|
@@ -5645,7 +5647,7 @@ async function reconcileDesignTokens(client, manifest, summary, publishAfterAppl
|
|
|
5645
5647
|
summary.designTokensPublished = true;
|
|
5646
5648
|
}
|
|
5647
5649
|
}
|
|
5648
|
-
async function reconcileApiKeys(client, configKey, apiKeys, summary, rotateKeys) {
|
|
5650
|
+
async function reconcileApiKeys(client, configId, configKey, apiKeys, summary, rotateKeys) {
|
|
5649
5651
|
if (apiKeys.length === 0) return;
|
|
5650
5652
|
const existing = await client.identity.listApiKeys({ first: 200 });
|
|
5651
5653
|
const existingByName = new Map(
|
|
@@ -5677,7 +5679,8 @@ async function reconcileApiKeys(client, configKey, apiKeys, summary, rotateKeys)
|
|
|
5677
5679
|
keyType: key.keyType === "secret" ? 2 : 1,
|
|
5678
5680
|
allowedModels: key.allowedModels,
|
|
5679
5681
|
allowedFileTypes: key.allowedFileTypes,
|
|
5680
|
-
scopes: key.scopes
|
|
5682
|
+
scopes: key.scopes,
|
|
5683
|
+
configId
|
|
5681
5684
|
});
|
|
5682
5685
|
rawKey = result?.apiKey?.rawKey;
|
|
5683
5686
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eide/foir-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0",
|
|
4
4
|
"description": "Universal platform CLI for Foir platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@bufbuild/protovalidate": "^1.1.1",
|
|
51
51
|
"@connectrpc/connect": "^2.0.0",
|
|
52
52
|
"@connectrpc/connect-node": "^2.0.0",
|
|
53
|
-
"@eide/foir-proto-ts": "^0.
|
|
53
|
+
"@eide/foir-proto-ts": "^0.99.0",
|
|
54
54
|
"chalk": "^5.3.0",
|
|
55
55
|
"commander": "^12.1.0",
|
|
56
56
|
"dotenv": "^16.4.5",
|