@eide/foir-cli 0.40.0 → 0.42.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 +14 -16
- package/dist/lib/config-helpers.d.ts +0 -5
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -1068,7 +1068,8 @@ function createIdentityMethods(client) {
|
|
|
1068
1068
|
config: params.config,
|
|
1069
1069
|
enabled: params.enabled,
|
|
1070
1070
|
isDefault: params.isDefault,
|
|
1071
|
-
priority: params.priority
|
|
1071
|
+
priority: params.priority,
|
|
1072
|
+
configId: params.configId
|
|
1072
1073
|
})
|
|
1073
1074
|
);
|
|
1074
1075
|
return resp.provider ?? null;
|
|
@@ -2841,8 +2842,7 @@ function createOperationsMethods(client) {
|
|
|
2841
2842
|
cacheControl: params.cacheControl,
|
|
2842
2843
|
secretBindings: params.secretBindings ?? [],
|
|
2843
2844
|
requestTemplate: params.requestTemplate,
|
|
2844
|
-
responseTransform: params.responseTransform
|
|
2845
|
-
allowInternalEndpoint: params.allowInternalEndpoint
|
|
2845
|
+
responseTransform: params.responseTransform
|
|
2846
2846
|
})
|
|
2847
2847
|
);
|
|
2848
2848
|
return resp.operation ?? null;
|
|
@@ -2871,8 +2871,7 @@ function createOperationsMethods(client) {
|
|
|
2871
2871
|
cacheControl: params.cacheControl,
|
|
2872
2872
|
secretBindings: params.secretBindings ?? [],
|
|
2873
2873
|
requestTemplate: params.requestTemplate,
|
|
2874
|
-
responseTransform: params.responseTransform
|
|
2875
|
-
allowInternalEndpoint: params.allowInternalEndpoint
|
|
2874
|
+
responseTransform: params.responseTransform
|
|
2876
2875
|
})
|
|
2877
2876
|
);
|
|
2878
2877
|
return resp.operation ?? null;
|
|
@@ -4051,7 +4050,7 @@ function registerMediaCommands(program2, globalOpts) {
|
|
|
4051
4050
|
}
|
|
4052
4051
|
)
|
|
4053
4052
|
);
|
|
4054
|
-
media.command("list").description("List files").option("--folder <folder>", "Filter by folder").option("--mime-type <type>", "Filter by MIME type").option("--search <query>", "Search files").option("--include-deleted", "Include soft-deleted files").option("--first <n>", "Max results", "50").option("--after <cursor>", "
|
|
4053
|
+
media.command("list").description("List files").option("--folder <folder>", "Filter by folder").option("--mime-type <type>", "Filter by MIME type").option("--search <query>", "Search files").option("--include-deleted", "Include soft-deleted files").option("--first <n>", "Max results", "50").option("--after <cursor>", "Opaque cursor from previous page").action(
|
|
4055
4054
|
withErrorHandler(
|
|
4056
4055
|
globalOpts,
|
|
4057
4056
|
async (flags) => {
|
|
@@ -5187,7 +5186,7 @@ async function reconcileConfig(client, configId, manifest, options = {}) {
|
|
|
5187
5186
|
await reconcileHooks(client, configId, manifest.hooks ?? [], summary);
|
|
5188
5187
|
await reconcileSegments(client, configId, manifest.segments ?? [], summary);
|
|
5189
5188
|
await reconcileCronSchedules(client, configId, manifest.schedules ?? [], summary);
|
|
5190
|
-
await reconcileAuthProviders(client, manifest.authProviders ?? [], summary);
|
|
5189
|
+
await reconcileAuthProviders(client, configId, manifest.authProviders ?? [], summary);
|
|
5191
5190
|
await reconcilePlacements(client, configId, manifest.placements ?? [], summary);
|
|
5192
5191
|
await reconcileProfileSchema(client, manifest, summary);
|
|
5193
5192
|
await reconcileDesignTokens(client, manifest, summary, options.publishDesignTokens ?? false);
|
|
@@ -5369,8 +5368,7 @@ async function reconcileOperations(client, configId, operations, operationBaseUr
|
|
|
5369
5368
|
cacheControl: op.cacheControl,
|
|
5370
5369
|
secretBindings: op.secretBindings,
|
|
5371
5370
|
requestTemplate: op.requestTemplate,
|
|
5372
|
-
responseTransform: op.responseTransform
|
|
5373
|
-
allowInternalEndpoint: op.allowInternalEndpoint
|
|
5371
|
+
responseTransform: op.responseTransform
|
|
5374
5372
|
});
|
|
5375
5373
|
summary.operations.updated++;
|
|
5376
5374
|
summary.updatedOperationIds.push(ex.id);
|
|
@@ -5401,8 +5399,7 @@ async function reconcileOperations(client, configId, operations, operationBaseUr
|
|
|
5401
5399
|
cacheControl: op.cacheControl,
|
|
5402
5400
|
secretBindings: op.secretBindings,
|
|
5403
5401
|
requestTemplate: op.requestTemplate,
|
|
5404
|
-
responseTransform: op.responseTransform
|
|
5405
|
-
allowInternalEndpoint: op.allowInternalEndpoint
|
|
5402
|
+
responseTransform: op.responseTransform
|
|
5406
5403
|
});
|
|
5407
5404
|
summary.operations.created++;
|
|
5408
5405
|
}
|
|
@@ -5568,7 +5565,7 @@ async function reconcileCronSchedules(client, configId, schedules, summary) {
|
|
|
5568
5565
|
}
|
|
5569
5566
|
}
|
|
5570
5567
|
}
|
|
5571
|
-
async function reconcileAuthProviders(client, providers, summary) {
|
|
5568
|
+
async function reconcileAuthProviders(client, configId, providers, summary) {
|
|
5572
5569
|
const existing = await client.identity.listAuthProviders({ first: 200 });
|
|
5573
5570
|
const existingByKey = new Map(
|
|
5574
5571
|
existing.items.map((p) => [p.key, p])
|
|
@@ -5595,7 +5592,8 @@ async function reconcileAuthProviders(client, providers, summary) {
|
|
|
5595
5592
|
config: prov.config,
|
|
5596
5593
|
enabled: prov.enabled ?? true,
|
|
5597
5594
|
isDefault: prov.isDefault ?? false,
|
|
5598
|
-
priority: prov.priority ?? 0
|
|
5595
|
+
priority: prov.priority ?? 0,
|
|
5596
|
+
configId
|
|
5599
5597
|
});
|
|
5600
5598
|
summary.authProviders.created++;
|
|
5601
5599
|
}
|
|
@@ -6692,7 +6690,7 @@ import {
|
|
|
6692
6690
|
} from "@eide/foir-proto-ts/models/v1/models_pb";
|
|
6693
6691
|
function registerModelsCommands(program2, globalOpts) {
|
|
6694
6692
|
const models = program2.command("models").description("Manage models");
|
|
6695
|
-
models.command("list").description("List all models").option("--category <cat>", "Filter by category").option("--search <term>", "Search by name").option("--first <n>", "Max results", "50").option("--after <cursor>", "Opaque cursor from previous page"
|
|
6693
|
+
models.command("list").description("List all models").option("--category <cat>", "Filter by category").option("--search <term>", "Search by name").option("--first <n>", "Max results", "50").option("--after <cursor>", "Opaque cursor from previous page").action(
|
|
6696
6694
|
withErrorHandler(globalOpts, async (cmdOpts) => {
|
|
6697
6695
|
const opts = globalOpts();
|
|
6698
6696
|
const client = await createPlatformClient(opts);
|
|
@@ -7093,7 +7091,7 @@ function registerCustomersCommands(program2, globalOpts) {
|
|
|
7093
7091
|
customers.command("list").description("List customers").option(
|
|
7094
7092
|
"--status <status>",
|
|
7095
7093
|
"Filter by status (ACTIVE, PENDING, SUSPENDED)"
|
|
7096
|
-
).option("--search <term>", "Search by email").option("--first <n>", "Max results", "20").option("--after <cursor>", "Opaque cursor from previous page"
|
|
7094
|
+
).option("--search <term>", "Search by email").option("--first <n>", "Max results", "20").option("--after <cursor>", "Opaque cursor from previous page").action(
|
|
7097
7095
|
withErrorHandler(globalOpts, async (cmdOpts) => {
|
|
7098
7096
|
const opts = globalOpts();
|
|
7099
7097
|
const client = await createPlatformClient(opts);
|
|
@@ -9115,7 +9113,7 @@ import {
|
|
|
9115
9113
|
} from "@eide/foir-proto-ts/storage/v1/storage_pb";
|
|
9116
9114
|
function registerFilesCommands(program2, globalOpts) {
|
|
9117
9115
|
const files = program2.command("files").description("Manage files (for upload, use `foir media upload`)");
|
|
9118
|
-
files.command("list").description("List files").option("--folder <folder>", "Filter by folder").option("--mime-type <type>", "Filter by MIME type").option("--search <term>", "Search by filename").option("--first <n>", "Max results", "50").option("--after <cursor>", "Opaque cursor from previous page"
|
|
9116
|
+
files.command("list").description("List files").option("--folder <folder>", "Filter by folder").option("--mime-type <type>", "Filter by MIME type").option("--search <term>", "Search by filename").option("--first <n>", "Max results", "50").option("--after <cursor>", "Opaque cursor from previous page").action(
|
|
9119
9117
|
withErrorHandler(globalOpts, async (cmdOpts) => {
|
|
9120
9118
|
const opts = globalOpts();
|
|
9121
9119
|
const client = await createPlatformClient(opts);
|
|
@@ -269,11 +269,6 @@ interface ApplyConfigOperationInput {
|
|
|
269
269
|
* returned to the caller. QUERY / FIELD only.
|
|
270
270
|
*/
|
|
271
271
|
responseTransform?: string;
|
|
272
|
-
/**
|
|
273
|
-
* Allow the resolver to call an internal (private-network) endpoint.
|
|
274
|
-
* Off by default; only meaningful for QUERY / FIELD operations.
|
|
275
|
-
*/
|
|
276
|
-
allowInternalEndpoint?: boolean;
|
|
277
272
|
}
|
|
278
273
|
interface ApplyConfigSegmentInput {
|
|
279
274
|
key: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eide/foir-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.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.97.0",
|
|
54
54
|
"chalk": "^5.3.0",
|
|
55
55
|
"commander": "^12.1.0",
|
|
56
56
|
"dotenv": "^16.4.5",
|