@eide/foir-cli 0.41.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.
Files changed (2) hide show
  1. package/dist/cli.js +10 -8
  2. 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;
@@ -4049,7 +4050,7 @@ function registerMediaCommands(program2, globalOpts) {
4049
4050
  }
4050
4051
  )
4051
4052
  );
4052
- 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>", "Offset", "0").action(
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(
4053
4054
  withErrorHandler(
4054
4055
  globalOpts,
4055
4056
  async (flags) => {
@@ -5185,7 +5186,7 @@ async function reconcileConfig(client, configId, manifest, options = {}) {
5185
5186
  await reconcileHooks(client, configId, manifest.hooks ?? [], summary);
5186
5187
  await reconcileSegments(client, configId, manifest.segments ?? [], summary);
5187
5188
  await reconcileCronSchedules(client, configId, manifest.schedules ?? [], summary);
5188
- await reconcileAuthProviders(client, manifest.authProviders ?? [], summary);
5189
+ await reconcileAuthProviders(client, configId, manifest.authProviders ?? [], summary);
5189
5190
  await reconcilePlacements(client, configId, manifest.placements ?? [], summary);
5190
5191
  await reconcileProfileSchema(client, manifest, summary);
5191
5192
  await reconcileDesignTokens(client, manifest, summary, options.publishDesignTokens ?? false);
@@ -5564,7 +5565,7 @@ async function reconcileCronSchedules(client, configId, schedules, summary) {
5564
5565
  }
5565
5566
  }
5566
5567
  }
5567
- async function reconcileAuthProviders(client, providers, summary) {
5568
+ async function reconcileAuthProviders(client, configId, providers, summary) {
5568
5569
  const existing = await client.identity.listAuthProviders({ first: 200 });
5569
5570
  const existingByKey = new Map(
5570
5571
  existing.items.map((p) => [p.key, p])
@@ -5591,7 +5592,8 @@ async function reconcileAuthProviders(client, providers, summary) {
5591
5592
  config: prov.config,
5592
5593
  enabled: prov.enabled ?? true,
5593
5594
  isDefault: prov.isDefault ?? false,
5594
- priority: prov.priority ?? 0
5595
+ priority: prov.priority ?? 0,
5596
+ configId
5595
5597
  });
5596
5598
  summary.authProviders.created++;
5597
5599
  }
@@ -6688,7 +6690,7 @@ import {
6688
6690
  } from "@eide/foir-proto-ts/models/v1/models_pb";
6689
6691
  function registerModelsCommands(program2, globalOpts) {
6690
6692
  const models = program2.command("models").description("Manage models");
6691
- 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", "0").action(
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(
6692
6694
  withErrorHandler(globalOpts, async (cmdOpts) => {
6693
6695
  const opts = globalOpts();
6694
6696
  const client = await createPlatformClient(opts);
@@ -7089,7 +7091,7 @@ function registerCustomersCommands(program2, globalOpts) {
7089
7091
  customers.command("list").description("List customers").option(
7090
7092
  "--status <status>",
7091
7093
  "Filter by status (ACTIVE, PENDING, SUSPENDED)"
7092
- ).option("--search <term>", "Search by email").option("--first <n>", "Max results", "20").option("--after <cursor>", "Opaque cursor from previous page", "0").action(
7094
+ ).option("--search <term>", "Search by email").option("--first <n>", "Max results", "20").option("--after <cursor>", "Opaque cursor from previous page").action(
7093
7095
  withErrorHandler(globalOpts, async (cmdOpts) => {
7094
7096
  const opts = globalOpts();
7095
7097
  const client = await createPlatformClient(opts);
@@ -9111,7 +9113,7 @@ import {
9111
9113
  } from "@eide/foir-proto-ts/storage/v1/storage_pb";
9112
9114
  function registerFilesCommands(program2, globalOpts) {
9113
9115
  const files = program2.command("files").description("Manage files (for upload, use `foir media upload`)");
9114
- 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", "0").action(
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(
9115
9117
  withErrorHandler(globalOpts, async (cmdOpts) => {
9116
9118
  const opts = globalOpts();
9117
9119
  const client = await createPlatformClient(opts);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eide/foir-cli",
3
- "version": "0.41.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.92.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",