apiblaze 0.15.1 → 0.15.2

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/index.js +1 -14
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -579,7 +579,7 @@ var import_commander = require("commander");
579
579
  var import_chalk34 = __toESM(require("chalk"));
580
580
 
581
581
  // package.json
582
- var version = "0.15.1";
582
+ var version = "0.15.2";
583
583
 
584
584
  // src/index.ts
585
585
  init_types();
@@ -2912,7 +2912,6 @@ var import_crypto = require("crypto");
2912
2912
  init_admin();
2913
2913
  init_auth();
2914
2914
  init_tenant_pick();
2915
- init_api();
2916
2915
  var trailingComma = /\s*,\s*/;
2917
2916
  var parseList = (s) => s.split(trailingComma).map((x) => x.trim()).filter(Boolean);
2918
2917
  async function runTenantManage(query, opts) {
@@ -3152,27 +3151,15 @@ async function clientsMenu(teamId, tenant2, base) {
3152
3151
  }]);
3153
3152
  if (pick2 === " back") return;
3154
3153
  if (pick2 === " create") {
3155
- const projects = await getProjects(teamId).catch(() => []);
3156
3154
  const a = await inquirer2.prompt([
3157
3155
  { type: "input", name: "name", message: "Client name:", validate: (s) => !!s.trim() || "required" },
3158
- ...projects.length ? [{
3159
- type: "list",
3160
- name: "proj",
3161
- message: "Reference a project? (adds its portal/MCP token audiences)",
3162
- choices: [
3163
- ...projects.map((p) => ({ name: `${p.projectName} ${import_chalk24.default.dim("v" + p.apiVersion)}`, value: p })),
3164
- { name: import_chalk24.default.dim("Skip \u2014 tenant-only client"), value: null }
3165
- ]
3166
- }] : [],
3167
3156
  { type: "input", name: "callbacks", message: "Callback URLs (comma-separated, empty = none):" }
3168
3157
  ]);
3169
- if (!projects.length) console.log(import_chalk24.default.dim(" (no projects in this team yet \u2014 creating a tenant-only client; you can reference a project later)"));
3170
3158
  const created = await admin({
3171
3159
  method: "POST",
3172
3160
  path: `${base}/app-clients`,
3173
3161
  body: {
3174
3162
  name: a.name.trim(),
3175
- ...a.proj ? { projectName: a.proj.projectName, apiVersion: a.proj.apiVersion } : {},
3176
3163
  ...a.callbacks.trim() ? { authorizedCallbackUrls: parseList(a.callbacks) } : {}
3177
3164
  },
3178
3165
  summary: `Create app client "${a.name.trim()}"`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apiblaze",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "description": "APIblaze CLI + sidecar — manage API proxies, run dev tunnels, and route a Next.js app's egress through APIblaze with one command",
5
5
  "keywords": [
6
6
  "apiblaze",