@gadicc/loom 1.33.1 → 1.35.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/README.md +108 -41
- package/esm/src/apiKeys/authorize.d.ts.map +1 -1
- package/esm/src/apiKeys/authorize.js +71 -0
- package/esm/src/apiKeys/betterAuth.d.ts +123 -0
- package/esm/src/apiKeys/betterAuth.d.ts.map +1 -0
- package/esm/src/apiKeys/betterAuth.js +164 -0
- package/esm/src/apiKeys/credentials.d.ts +37 -2
- package/esm/src/apiKeys/credentials.d.ts.map +1 -1
- package/esm/src/apiKeys/credentials.js +69 -8
- package/esm/src/apiKeys/lifecycle.d.ts +41 -0
- package/esm/src/apiKeys/lifecycle.d.ts.map +1 -0
- package/esm/src/apiKeys/lifecycle.js +6 -0
- package/esm/src/apiKeys/limits.d.ts +132 -0
- package/esm/src/apiKeys/limits.d.ts.map +1 -0
- package/esm/src/apiKeys/limits.js +246 -0
- package/esm/src/apiKeys/mod.d.ts +4 -0
- package/esm/src/apiKeys/mod.d.ts.map +1 -1
- package/esm/src/apiKeys/mod.js +4 -0
- package/esm/src/apiKeys/permissions.d.ts +56 -0
- package/esm/src/apiKeys/permissions.d.ts.map +1 -0
- package/esm/src/apiKeys/permissions.js +128 -0
- package/esm/src/apiKeys/policy.d.ts +3 -1
- package/esm/src/apiKeys/policy.d.ts.map +1 -1
- package/esm/src/apiKeys/policy.js +3 -1
- package/esm/src/apiKeys/types.d.ts +68 -1
- package/esm/src/apiKeys/types.d.ts.map +1 -1
- package/esm/src/cli/localDb.d.ts +28 -0
- package/esm/src/cli/localDb.d.ts.map +1 -0
- package/esm/src/cli/localDb.js +366 -0
- package/esm/src/cli/localDevLock.d.ts +97 -0
- package/esm/src/cli/localDevLock.d.ts.map +1 -0
- package/esm/src/cli/localDevLock.js +312 -0
- package/esm/src/cli/localDevPackage.d.ts +172 -0
- package/esm/src/cli/localDevPackage.d.ts.map +1 -0
- package/esm/src/cli/localDevPackage.js +617 -0
- package/esm/src/cli/migrationEnv.d.ts +19 -0
- package/esm/src/cli/migrationEnv.d.ts.map +1 -1
- package/esm/src/cli/migrationEnv.js +44 -1
- package/esm/src/cli/mod.d.ts +69 -4
- package/esm/src/cli/mod.d.ts.map +1 -1
- package/esm/src/cli/mod.js +2822 -419
- package/esm/src/cli/projectTooling.d.ts +19 -1
- package/esm/src/cli/projectTooling.d.ts.map +1 -1
- package/esm/src/cli/projectTooling.js +142 -12
- package/esm/src/mui/apiKeys.d.ts +123 -17
- package/esm/src/mui/apiKeys.d.ts.map +1 -1
- package/esm/src/mui/apiKeys.js +219 -78
- package/esm/src/mui/apiKeysView.d.ts +145 -0
- package/esm/src/mui/apiKeysView.d.ts.map +1 -1
- package/esm/src/mui/apiKeysView.js +278 -0
- package/esm/src/next/apiKeys/mod.d.ts +8 -1
- package/esm/src/next/apiKeys/mod.d.ts.map +1 -1
- package/esm/src/next/apiKeys/mod.js +5 -2
- package/package.json +2 -6
- package/script/src/apiKeys/authorize.d.ts.map +1 -1
- package/script/src/apiKeys/authorize.js +71 -0
- package/script/src/apiKeys/betterAuth.d.ts +123 -0
- package/script/src/apiKeys/betterAuth.d.ts.map +1 -0
- package/script/src/apiKeys/betterAuth.js +169 -0
- package/script/src/apiKeys/credentials.d.ts +37 -2
- package/script/src/apiKeys/credentials.d.ts.map +1 -1
- package/script/src/apiKeys/credentials.js +71 -8
- package/script/src/apiKeys/lifecycle.d.ts +41 -0
- package/script/src/apiKeys/lifecycle.d.ts.map +1 -0
- package/script/src/apiKeys/lifecycle.js +7 -0
- package/script/src/apiKeys/limits.d.ts +132 -0
- package/script/src/apiKeys/limits.d.ts.map +1 -0
- package/script/src/apiKeys/limits.js +254 -0
- package/script/src/apiKeys/mod.d.ts +4 -0
- package/script/src/apiKeys/mod.d.ts.map +1 -1
- package/script/src/apiKeys/mod.js +4 -0
- package/script/src/apiKeys/permissions.d.ts +56 -0
- package/script/src/apiKeys/permissions.d.ts.map +1 -0
- package/script/src/apiKeys/permissions.js +136 -0
- package/script/src/apiKeys/policy.d.ts +3 -1
- package/script/src/apiKeys/policy.d.ts.map +1 -1
- package/script/src/apiKeys/policy.js +3 -1
- package/script/src/apiKeys/types.d.ts +68 -1
- package/script/src/apiKeys/types.d.ts.map +1 -1
- package/script/src/cli/localDb.d.ts +28 -0
- package/script/src/cli/localDb.d.ts.map +1 -0
- package/script/src/cli/localDb.js +370 -0
- package/script/src/cli/localDevLock.d.ts +97 -0
- package/script/src/cli/localDevLock.d.ts.map +1 -0
- package/script/src/cli/localDevLock.js +320 -0
- package/script/src/cli/localDevPackage.d.ts +172 -0
- package/script/src/cli/localDevPackage.d.ts.map +1 -0
- package/script/src/cli/localDevPackage.js +635 -0
- package/script/src/cli/migrationEnv.d.ts +19 -0
- package/script/src/cli/migrationEnv.d.ts.map +1 -1
- package/script/src/cli/migrationEnv.js +48 -1
- package/script/src/cli/mod.d.ts +69 -4
- package/script/src/cli/mod.d.ts.map +1 -1
- package/script/src/cli/mod.js +2823 -419
- package/script/src/cli/projectTooling.d.ts +19 -1
- package/script/src/cli/projectTooling.d.ts.map +1 -1
- package/script/src/cli/projectTooling.js +176 -12
- package/script/src/mui/apiKeys.d.ts +123 -17
- package/script/src/mui/apiKeys.d.ts.map +1 -1
- package/script/src/mui/apiKeys.js +220 -77
- package/script/src/mui/apiKeysView.d.ts +145 -0
- package/script/src/mui/apiKeysView.d.ts.map +1 -1
- package/script/src/mui/apiKeysView.js +291 -0
- package/script/src/next/apiKeys/mod.d.ts +8 -1
- package/script/src/next/apiKeys/mod.d.ts.map +1 -1
- package/script/src/next/apiKeys/mod.js +5 -2
- package/skills/loom/SKILL.md +116 -18
- package/skills/loom-api-keys/SKILL.md +101 -7
- package/skills/loom-auth/SKILL.md +9 -0
- package/skills/loom-db/SKILL.md +33 -1
|
@@ -27,6 +27,8 @@ export type ProjectPackageJson = {
|
|
|
27
27
|
devDependencies?: Record<string, string>;
|
|
28
28
|
name?: string;
|
|
29
29
|
packageManager?: string;
|
|
30
|
+
pnpm?: Record<string, unknown>;
|
|
31
|
+
resolutions?: Record<string, unknown>;
|
|
30
32
|
scripts?: Record<string, string>;
|
|
31
33
|
version?: string;
|
|
32
34
|
};
|
|
@@ -87,10 +89,26 @@ export declare function mutateProjectDependencies(cwd: string, tooling: ProjectT
|
|
|
87
89
|
config: TaskConfigPath;
|
|
88
90
|
removedKeys: string[];
|
|
89
91
|
}>;
|
|
92
|
+
/** A package.json map that pnpm 10 and older read as dependency overrides. */
|
|
93
|
+
export type PackageJsonOverrideField = "pnpm.overrides" | "resolutions";
|
|
94
|
+
/**
|
|
95
|
+
* Sets, replaces, or (with an undefined value) removes one entry of a
|
|
96
|
+
* package.json override map with a minimal text edit that keeps the file's
|
|
97
|
+
* formatting. A missing map is created. Removing a map's last entry leaves
|
|
98
|
+
* the map in place unless `removeEmptyMap` says the caller created it.
|
|
99
|
+
*/
|
|
100
|
+
export declare function mutatePackageJsonOverride(cwd: string, field: PackageJsonOverrideField, name: string, value: string | undefined, options?: {
|
|
101
|
+
/** Remove the map too when removing its last entry. */
|
|
102
|
+
removeEmptyMap?: boolean;
|
|
103
|
+
/** Remove an emptied `pnpm` object too (with `pnpm.overrides`). */
|
|
104
|
+
removeEmptyPnpm?: boolean;
|
|
105
|
+
}): Promise<{
|
|
106
|
+
changed: boolean;
|
|
107
|
+
}>;
|
|
90
108
|
/** Adds or removes local dependency links in a Deno config. */
|
|
91
109
|
export declare function mutateDenoLinks(cwd: string, config: "deno.json" | "deno.jsonc", mutation: {
|
|
92
110
|
add?: string;
|
|
93
|
-
remove?: string;
|
|
111
|
+
remove?: string | readonly string[];
|
|
94
112
|
}): Promise<{
|
|
95
113
|
changed: boolean;
|
|
96
114
|
links: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectTooling.d.ts","sourceRoot":"","sources":["../../../src/src/cli/projectTooling.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"projectTooling.d.ts","s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AU,CAC9B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,EAChC,OAAO,EAAE,iBAAiB;;;;;GA+B3B;AAED;;;GAGG;AACH,wBAAsB,sBAAsB,CAC1C,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,EAChC,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM;;;GAiCrB;AAED,gFAAgF;AAChF,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,EAChC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM;;;GAqBjB;AAaD,0EAA0E;AAC1E,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,MAAM,EACX,aAAa,EAAE,cAAc,CAAC,OAAO,CAAC,GACrC,OAAO,CAAC,YAAY,EAAE,CAAC,CAoCzB"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { readFile, writeFile } from "node:fs/promises";
|
|
2
|
-
import { createRequire } from "node:module";
|
|
3
2
|
import { join } from "node:path";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
import * as jsoncParserNamespace from "jsonc-parser";
|
|
4
|
+
// A static import, not a lazy createRequire(), so jsonc-parser is part of
|
|
5
|
+
// every module graph that reaches these exported helpers. It is UMD without
|
|
6
|
+
// an `exports` map: Node's ESM loader exposes its named exports only when
|
|
7
|
+
// cjs-module-lexer recognises them, so fall back to the CommonJS object that
|
|
8
|
+
// it always provides as `default`.
|
|
9
|
+
const jsoncParser = typeof jsoncParserNamespace.modify === "function"
|
|
10
|
+
? jsoncParserNamespace
|
|
11
|
+
: jsoncParserNamespace.default;
|
|
10
12
|
async function readTextIfExists(path) {
|
|
11
13
|
try {
|
|
12
14
|
return await readFile(path, "utf8");
|
|
@@ -19,7 +21,7 @@ async function readTextIfExists(path) {
|
|
|
19
21
|
}
|
|
20
22
|
/** Parses Deno JSON/JSONC while reporting every syntax error. */
|
|
21
23
|
export function parseJsonc(text, filename) {
|
|
22
|
-
const { parse, printParseErrorCode } =
|
|
24
|
+
const { parse, printParseErrorCode } = jsoncParser;
|
|
23
25
|
const errors = [];
|
|
24
26
|
const value = parse(text, errors, {
|
|
25
27
|
allowEmptyContent: false,
|
|
@@ -53,7 +55,7 @@ function formattingOptions(text) {
|
|
|
53
55
|
};
|
|
54
56
|
}
|
|
55
57
|
function updateJsonPath(text, path, value) {
|
|
56
|
-
const { applyEdits, modify } =
|
|
58
|
+
const { applyEdits, modify } = jsoncParser;
|
|
57
59
|
return applyEdits(text, modify(text, path, value, { formattingOptions: formattingOptions(text) }));
|
|
58
60
|
}
|
|
59
61
|
function hasOwn(value, key) {
|
|
@@ -370,6 +372,133 @@ export async function mutateProjectDependencies(cwd, tooling, mutation) {
|
|
|
370
372
|
removedKeys: [...new Set(removedKeys)],
|
|
371
373
|
};
|
|
372
374
|
}
|
|
375
|
+
function isPlainObject(value) {
|
|
376
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
377
|
+
}
|
|
378
|
+
function getJsonPath(value, path) {
|
|
379
|
+
let current = value;
|
|
380
|
+
for (const key of path) {
|
|
381
|
+
current = isPlainObject(current) ? current[key] : undefined;
|
|
382
|
+
}
|
|
383
|
+
return current;
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Sets, replaces, or (with an undefined value) removes one entry of a
|
|
387
|
+
* package.json override map with a minimal text edit that keeps the file's
|
|
388
|
+
* formatting. A missing map is created. Removing a map's last entry leaves
|
|
389
|
+
* the map in place unless `removeEmptyMap` says the caller created it.
|
|
390
|
+
*/
|
|
391
|
+
export async function mutatePackageJsonOverride(cwd, field, name, value, options = {}) {
|
|
392
|
+
const path = join(cwd, "package.json");
|
|
393
|
+
const original = await readTextIfExists(path);
|
|
394
|
+
if (original === null)
|
|
395
|
+
throw new Error("Missing package.json");
|
|
396
|
+
const config = parseStrictJson(original, "package.json");
|
|
397
|
+
const mapPath = field === "resolutions" ? ["resolutions"] : [
|
|
398
|
+
"pnpm",
|
|
399
|
+
"overrides",
|
|
400
|
+
];
|
|
401
|
+
if (getJsonPath(config, [...mapPath, name]) === value) {
|
|
402
|
+
return { changed: false };
|
|
403
|
+
}
|
|
404
|
+
let editPath = [...mapPath, name];
|
|
405
|
+
let editValue = value;
|
|
406
|
+
const map = getJsonPath(config, mapPath);
|
|
407
|
+
if (value === undefined) {
|
|
408
|
+
if (options.removeEmptyMap && isPlainObject(map) &&
|
|
409
|
+
Object.keys(map).length === 1) {
|
|
410
|
+
editPath = mapPath;
|
|
411
|
+
if (options.removeEmptyPnpm && field === "pnpm.overrides" &&
|
|
412
|
+
isPlainObject(config.pnpm) && Object.keys(config.pnpm).length === 1) {
|
|
413
|
+
editPath = ["pnpm"];
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
else if (map === undefined) {
|
|
418
|
+
if (field === "pnpm.overrides" && config.pnpm === undefined) {
|
|
419
|
+
editPath = ["pnpm"];
|
|
420
|
+
editValue = { overrides: { [name]: value } };
|
|
421
|
+
}
|
|
422
|
+
else {
|
|
423
|
+
editPath = mapPath;
|
|
424
|
+
editValue = { [name]: value };
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
const text = editSingleLineObjectEntry(original, editPath.slice(0, -1), editPath[editPath.length - 1], editValue) ?? updateJsonPath(original, editPath, editValue);
|
|
428
|
+
if (text !== original)
|
|
429
|
+
await writeFile(path, text, "utf8");
|
|
430
|
+
return { changed: text !== original };
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Appends or removes one entry of an object written on a single line without
|
|
434
|
+
* reformatting it, so a compact map such as `{ "a": "1" }` round-trips byte
|
|
435
|
+
* for byte (jsonc `modify` would expand it). Returns null when the object is
|
|
436
|
+
* missing, spans lines, or the edit is not a plain append or removal.
|
|
437
|
+
*/
|
|
438
|
+
function editSingleLineObjectEntry(text, objectPath, name, value) {
|
|
439
|
+
const { findNodeAtLocation, parseTree } = jsoncParser;
|
|
440
|
+
const tree = parseTree(text);
|
|
441
|
+
const object = tree
|
|
442
|
+
? objectPath.length ? findNodeAtLocation(tree, objectPath) : tree
|
|
443
|
+
: undefined;
|
|
444
|
+
const properties = object?.type === "object" ? object.children ?? [] : [];
|
|
445
|
+
const objectText = object
|
|
446
|
+
? text.slice(object.offset, object.offset + object.length)
|
|
447
|
+
: "";
|
|
448
|
+
if (!object || object.type !== "object" || objectText.includes("\n")) {
|
|
449
|
+
return null;
|
|
450
|
+
}
|
|
451
|
+
const end = (node) => node.offset + node.length;
|
|
452
|
+
const index = properties.findIndex((property) => property.children?.[0]?.value === name);
|
|
453
|
+
let edited;
|
|
454
|
+
if (value === undefined) {
|
|
455
|
+
if (index === -1)
|
|
456
|
+
return null;
|
|
457
|
+
const property = properties[index];
|
|
458
|
+
// Removing the only entry of `{"a":1}` gives back `{}`.
|
|
459
|
+
const start = properties.length === 1
|
|
460
|
+
? property.offset
|
|
461
|
+
: index > 0
|
|
462
|
+
? end(properties[index - 1])
|
|
463
|
+
: property.offset;
|
|
464
|
+
const stop = properties.length === 1 || index > 0
|
|
465
|
+
? end(property)
|
|
466
|
+
: properties[index + 1].offset;
|
|
467
|
+
edited = text.slice(0, start) + text.slice(stop);
|
|
468
|
+
}
|
|
469
|
+
else if (properties.length === 0) {
|
|
470
|
+
if (objectText !== "{}")
|
|
471
|
+
return null;
|
|
472
|
+
edited = `${text.slice(0, object.offset + 1)}${JSON.stringify(name)}:${JSON.stringify(value)}${text.slice(object.offset + 1)}`;
|
|
473
|
+
}
|
|
474
|
+
else {
|
|
475
|
+
if (index !== -1)
|
|
476
|
+
return null;
|
|
477
|
+
const last = properties[properties.length - 1];
|
|
478
|
+
const [lastKey, lastValue] = last.children ?? [];
|
|
479
|
+
if (!lastKey || !lastValue)
|
|
480
|
+
return null;
|
|
481
|
+
const colon = text.slice(end(lastKey), lastValue.offset);
|
|
482
|
+
const separator = properties.length > 1
|
|
483
|
+
? text.slice(end(properties[properties.length - 2]), last.offset)
|
|
484
|
+
: /^\{\s/.test(text.slice(object.offset))
|
|
485
|
+
? ", "
|
|
486
|
+
: ",";
|
|
487
|
+
edited = `${text.slice(0, end(last))}${separator}${JSON.stringify(name)}${colon}${JSON.stringify(value)}${text.slice(end(last))}`;
|
|
488
|
+
}
|
|
489
|
+
// Keep the textual edit only when it parses to exactly the intended value.
|
|
490
|
+
let parsed;
|
|
491
|
+
try {
|
|
492
|
+
parsed = JSON.parse(edited);
|
|
493
|
+
}
|
|
494
|
+
catch {
|
|
495
|
+
return null;
|
|
496
|
+
}
|
|
497
|
+
return JSON.stringify(getJsonPath(parsed, [...objectPath, name])) ===
|
|
498
|
+
JSON.stringify(value)
|
|
499
|
+
? edited
|
|
500
|
+
: null;
|
|
501
|
+
}
|
|
373
502
|
/** Adds or removes local dependency links in a Deno config. */
|
|
374
503
|
export async function mutateDenoLinks(cwd, config, mutation) {
|
|
375
504
|
const path = join(cwd, config);
|
|
@@ -378,9 +507,10 @@ export async function mutateDenoLinks(cwd, config, mutation) {
|
|
|
378
507
|
throw new Error(`Missing Deno config: ${config}`);
|
|
379
508
|
const denoConfig = parseJsonc(original, config);
|
|
380
509
|
let links = [...(denoConfig.links ?? [])];
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
510
|
+
const remove = typeof mutation.remove === "string"
|
|
511
|
+
? [mutation.remove]
|
|
512
|
+
: mutation.remove ?? [];
|
|
513
|
+
links = links.filter((link) => !remove.includes(link));
|
|
384
514
|
if (mutation.add && !links.includes(mutation.add))
|
|
385
515
|
links.push(mutation.add);
|
|
386
516
|
const text = JSON.stringify(links) === JSON.stringify(denoConfig.links ?? [])
|
package/esm/src/mui/apiKeys.d.ts
CHANGED
|
@@ -1,44 +1,126 @@
|
|
|
1
1
|
import "../../_dnt.polyfills.js";
|
|
2
|
+
/**
|
|
3
|
+
* MUI components for API-key management.
|
|
4
|
+
*
|
|
5
|
+
* Requires `@mui/material` 6 or newer (TextField `slotProps`), although the
|
|
6
|
+
* package's optional `@mui/material` peer stays `>=5` for `mui/mail` and
|
|
7
|
+
* `mui/confirm`. The dialogs track pending requests with React 19 async
|
|
8
|
+
* transitions; on React 18 they work but do not disable while pending.
|
|
9
|
+
*
|
|
10
|
+
* @module
|
|
11
|
+
*/
|
|
12
|
+
import { type AlertProps } from "@mui/material/Alert";
|
|
2
13
|
import { type ReactNode } from "react";
|
|
3
|
-
import
|
|
14
|
+
import type { ApiKeyCredentialOptions } from "../apiKeys/types.js";
|
|
15
|
+
import type { ApiKeyCreateActionResult, ApiKeyCreateInput, ApiKeyCreateResult, ApiKeyMutationResult } from "../apiKeys/lifecycle.js";
|
|
16
|
+
import type { ApiKeyLimits } from "../apiKeys/limits.js";
|
|
17
|
+
import { type ApiKeyAuditRow, type ApiKeyRow, type ApiKeyScopeDefinition, type ApiKeyThrownErrorMessages } from "./apiKeysView.js";
|
|
4
18
|
export * from "./apiKeysView.js";
|
|
5
|
-
export interface ApiKeyCreateInput {
|
|
6
|
-
expiresAt: string | null;
|
|
7
|
-
name: string;
|
|
8
|
-
scopeIds: string[];
|
|
9
|
-
}
|
|
10
|
-
export interface ApiKeyCreateResult {
|
|
11
|
-
key: string;
|
|
12
|
-
keyStart?: string;
|
|
13
|
-
name: string;
|
|
14
|
-
}
|
|
15
19
|
export interface ApiKeyTableColumn {
|
|
16
20
|
header: ReactNode;
|
|
17
21
|
id: string;
|
|
18
22
|
render: (row: ApiKeyRow) => ReactNode;
|
|
19
23
|
}
|
|
20
24
|
export interface ApiKeyCreateDialogProps {
|
|
25
|
+
/** Offer "Never" as an expiry. Defaults to `true`. */
|
|
26
|
+
allowNoExpiry?: boolean;
|
|
21
27
|
error?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* Preset lifetimes in days. Presets outside `limits` are hidden. Defaults
|
|
30
|
+
* to `[7, 30]`.
|
|
31
|
+
*/
|
|
32
|
+
expiryPresetDays?: readonly number[];
|
|
33
|
+
/**
|
|
34
|
+
* Name and expiry bounds, checked before `onCreate` with the same messages
|
|
35
|
+
* as server-side validation. Pass the limits given to the plugin; omitted
|
|
36
|
+
* bounds are not checked here.
|
|
37
|
+
*/
|
|
38
|
+
limits?: Partial<ApiKeyLimits>;
|
|
22
39
|
onClose: () => void;
|
|
23
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Creates the key. Return `{ ok: false, message }` for a user-correctable
|
|
42
|
+
* problem: Next.js masks thrown Server Function messages in production.
|
|
43
|
+
* A thrown error's message is shown unless `thrownErrorMessages` is
|
|
44
|
+
* `"generic"`.
|
|
45
|
+
*/
|
|
46
|
+
onCreate: (input: ApiKeyCreateInput) => Promise<ApiKeyCreateResult | ApiKeyCreateActionResult>;
|
|
24
47
|
onCreated: (result: ApiKeyCreateResult) => void;
|
|
25
48
|
open: boolean;
|
|
26
49
|
scopes: ApiKeyScopeDefinition[];
|
|
50
|
+
/**
|
|
51
|
+
* `"show"` (default, the original behaviour) displays a thrown error's
|
|
52
|
+
* message; `"generic"` shows a fixed message instead. Use `"generic"` with
|
|
53
|
+
* result-returning `onCreate` callbacks.
|
|
54
|
+
*/
|
|
55
|
+
thrownErrorMessages?: ApiKeyThrownErrorMessages;
|
|
27
56
|
}
|
|
28
57
|
export declare function ApiKeyCreateDialog(props: ApiKeyCreateDialogProps): any;
|
|
58
|
+
export interface ApiKeyTransportGuidanceProps {
|
|
59
|
+
/**
|
|
60
|
+
* The same plain options object the authorizer uses, so the copy cannot
|
|
61
|
+
* drift from the transports the app accepts.
|
|
62
|
+
*/
|
|
63
|
+
credentialOptions: ApiKeyCredentialOptions;
|
|
64
|
+
sx?: AlertProps["sx"];
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Tells key holders how to send a key: the preferred transport (Bearer when
|
|
68
|
+
* enabled), the other accepted ones, and a URL-leakage warning when query
|
|
69
|
+
* credentials are enabled.
|
|
70
|
+
*/
|
|
71
|
+
export declare function ApiKeyTransportGuidance(props: ApiKeyTransportGuidanceProps): any;
|
|
29
72
|
export interface ApiKeySecretDialogProps {
|
|
73
|
+
/**
|
|
74
|
+
* The app's accepted transports. When given, the dialog shows
|
|
75
|
+
* `ApiKeyTransportGuidance` and ignores `queryCredentialsEnabled`.
|
|
76
|
+
*/
|
|
77
|
+
credentialOptions?: ApiKeyCredentialOptions;
|
|
30
78
|
open: boolean;
|
|
31
79
|
onClose: () => void;
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated Pass `credentialOptions`, so the copy matches the transports
|
|
82
|
+
* the authorizer accepts. Without `credentialOptions`, `true` still shows
|
|
83
|
+
* the original query-parameter warning.
|
|
84
|
+
*/
|
|
32
85
|
queryCredentialsEnabled?: boolean;
|
|
33
86
|
result: ApiKeyCreateResult | null;
|
|
34
87
|
}
|
|
35
88
|
export declare function ApiKeySecretDialog(props: ApiKeySecretDialogProps): any;
|
|
89
|
+
export interface ApiKeyRenameDialogProps {
|
|
90
|
+
/** The key's current name; the field starts with it on every open. */
|
|
91
|
+
currentName: string;
|
|
92
|
+
/** Name bounds, checked with the same messages as server validation. */
|
|
93
|
+
limits?: Partial<ApiKeyLimits>;
|
|
94
|
+
onClose: () => void;
|
|
95
|
+
/**
|
|
96
|
+
* Renames the key to the trimmed, validated name. Return
|
|
97
|
+
* `{ ok: false, message }` for a user-correctable problem; a thrown error
|
|
98
|
+
* shows a generic message because Next.js masks its text in production.
|
|
99
|
+
*/
|
|
100
|
+
onRename: (name: string) => Promise<void | ApiKeyMutationResult>;
|
|
101
|
+
open: boolean;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Edits one key name with inline validation. A failed rename keeps the dialog
|
|
105
|
+
* open with the typed value; an unchanged name closes it without a call.
|
|
106
|
+
*/
|
|
107
|
+
export declare function ApiKeyRenameDialog(props: ApiKeyRenameDialogProps): any;
|
|
36
108
|
export interface ApiKeysTableProps {
|
|
37
109
|
admin?: boolean;
|
|
38
110
|
extraColumns?: ApiKeyTableColumn[];
|
|
111
|
+
/** Name bounds for the rename dialog. */
|
|
112
|
+
limits?: Partial<ApiKeyLimits>;
|
|
39
113
|
loading?: boolean;
|
|
40
|
-
|
|
41
|
-
|
|
114
|
+
/**
|
|
115
|
+
* Renames a key. Return `{ ok: false, message }` for a user-correctable
|
|
116
|
+
* problem; thrown errors show a generic message.
|
|
117
|
+
*/
|
|
118
|
+
onRename?: (id: string, name: string) => Promise<void | ApiKeyMutationResult>;
|
|
119
|
+
/**
|
|
120
|
+
* Revokes a key after a confirmation prompt. Return `{ ok: false, message }`
|
|
121
|
+
* for a user-correctable problem; thrown errors show a generic message.
|
|
122
|
+
*/
|
|
123
|
+
onRevoke?: (id: string) => Promise<void | ApiKeyMutationResult>;
|
|
42
124
|
rows: ApiKeyRow[];
|
|
43
125
|
scopes?: ApiKeyScopeDefinition[];
|
|
44
126
|
}
|
|
@@ -51,15 +133,39 @@ export interface ApiKeyAuditTableProps {
|
|
|
51
133
|
page: number;
|
|
52
134
|
rows: ApiKeyAuditRow[];
|
|
53
135
|
rowsPerPage: number;
|
|
136
|
+
/**
|
|
137
|
+
* Show the Key column. Defaults to whether any row on the current page has
|
|
138
|
+
* a `keyName` or `keyStart` snapshot; pass it when the app maps snapshots,
|
|
139
|
+
* so the column does not appear and disappear between pages.
|
|
140
|
+
*/
|
|
141
|
+
showKey?: boolean;
|
|
54
142
|
}
|
|
55
143
|
export declare function ApiKeyAuditTable(props: ApiKeyAuditTableProps): any;
|
|
56
144
|
export interface ApiKeysManagerProps extends Omit<ApiKeysTableProps, "onRevoke" | "onRename"> {
|
|
145
|
+
/** Offer "Never" as an expiry in the create dialog. Defaults to `true`. */
|
|
146
|
+
allowNoExpiry?: boolean;
|
|
57
147
|
error?: string | null;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
148
|
+
/** Create-dialog expiry presets in days. Defaults to `[7, 30]`. */
|
|
149
|
+
expiryPresetDays?: readonly number[];
|
|
150
|
+
/** See `ApiKeyCreateDialogProps.onCreate`. */
|
|
151
|
+
onCreate?: (input: ApiKeyCreateInput) => Promise<ApiKeyCreateResult | ApiKeyCreateActionResult>;
|
|
152
|
+
/** See `ApiKeysTableProps.onRename`. */
|
|
153
|
+
onRename?: (id: string, name: string) => Promise<void | ApiKeyMutationResult>;
|
|
154
|
+
/** See `ApiKeysTableProps.onRevoke`. */
|
|
155
|
+
onRevoke?: (id: string) => Promise<void | ApiKeyMutationResult>;
|
|
156
|
+
/**
|
|
157
|
+
* The same plain options object the authorizer uses. The secret dialog
|
|
158
|
+
* then derives its transport guidance from it; render
|
|
159
|
+
* `ApiKeyTransportGuidance` elsewhere on the page for the same copy.
|
|
160
|
+
*/
|
|
161
|
+
credentialOptions?: ApiKeyCredentialOptions;
|
|
162
|
+
/**
|
|
163
|
+
* @deprecated Pass `credentialOptions` instead; it overrides this prop.
|
|
164
|
+
*/
|
|
61
165
|
queryCredentialsEnabled?: boolean;
|
|
62
166
|
scopes: ApiKeyScopeDefinition[];
|
|
167
|
+
/** See `ApiKeyCreateDialogProps.thrownErrorMessages`. */
|
|
168
|
+
thrownErrorMessages?: ApiKeyThrownErrorMessages;
|
|
63
169
|
}
|
|
64
170
|
export declare function ApiKeysManager(props: ApiKeysManagerProps): any;
|
|
65
171
|
//# sourceMappingURL=apiKeys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiKeys.d.ts","sourceRoot":"","sources":["../../../src/src/mui/apiKeys.tsx"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"apiKeys.d.ts","sourceRoot":"","sources":["../../../src/src/mui/apiKeys.tsx"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AAGjC;;;;;;;;;GASG;AAEH,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAwB7D,OAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9C,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