@frogbotai/plugin-api-keys 0.24.0 → 0.26.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 CHANGED
@@ -25,7 +25,7 @@ Plaintext keys are returned only when created. The collection stores SHA-256 has
25
25
 
26
26
  With AI configured, usage rows include an optional `apiKey` relationship to the authenticating key. Cookie-authenticated requests omit it, and the relationship follows `collectionSlug`.
27
27
 
28
- Build and start-only workflows must run `frogbot generate:importmap` after adding the plugin. Add it as a `prebuild` step when CI invokes `next build` directly. If the server console suggests `payload generate:importmap`, run `frogbot generate:importmap` instead, or restart `frogbot dev`.
28
+ Build and start-only workflows must run `frogbot generate:importmap` after adding the plugin. Add it as a `prebuild` step when CI invokes `next build` directly. If the server console reports a component missing from the import map, run `frogbot generate:importmap` and rebuild, or restart `frogbot dev`.
29
29
 
30
30
  ```ts
31
31
  apiKeysPlugin({
@@ -1,10 +1,10 @@
1
- import type { CollectionConfig, FrogbotRequest } from 'frogbot';
1
+ import type { CollectionConfig, FrogBotRequest } from 'frogbot';
2
2
  type CollectionOptions = {
3
3
  authCollection: string;
4
4
  collectionSlug: string;
5
5
  tokenPrefix: string;
6
6
  usageCollection?: string;
7
- canRevokeAnyKey?: (req: FrogbotRequest) => boolean | Promise<boolean>;
7
+ canRevokeAnyKey?: (req: FrogBotRequest) => boolean | Promise<boolean>;
8
8
  collection?: Partial<CollectionConfig>;
9
9
  existing?: CollectionConfig;
10
10
  };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type CollectionConfig, type FrogbotRequest, type Plugin } from 'frogbot';
1
+ import { type CollectionConfig, type FrogBotRequest, type Plugin } from 'frogbot';
2
2
  export type { MintApiKeyOptions, RevokeApiKeyOptions, RotateApiKeyOptions, } from './server/services.js';
3
3
  export { ApiKeyServiceError, mintApiKey, revokeApiKey, rotateApiKey } from './server/services.js';
4
4
  export type { ApiKeyHeaderOptions, ApiKeyTokenOptions } from './server/token.js';
@@ -11,7 +11,7 @@ export type ApiKeysPluginOptions = {
11
11
  tokenPrefix?: string;
12
12
  headerNames?: string[];
13
13
  collection?: Partial<CollectionConfig>;
14
- canRevokeAnyKey?: (req: FrogbotRequest) => boolean | Promise<boolean>;
14
+ canRevokeAnyKey?: (req: FrogBotRequest) => boolean | Promise<boolean>;
15
15
  };
16
16
  export declare function apiKeysPlugin(options?: ApiKeysPluginOptions): Plugin;
17
17
  //# sourceMappingURL=index.d.ts.map
@@ -1,12 +1,12 @@
1
- import type { FrogbotRequest } from 'frogbot';
1
+ import type { FrogBotRequest } from 'frogbot';
2
2
  export type MintApiKeyOptions = {
3
- req: FrogbotRequest;
3
+ req: FrogBotRequest;
4
4
  collectionSlug: string;
5
5
  tokenPrefix: string;
6
6
  name: string;
7
7
  };
8
8
  export type RevokeApiKeyOptions = {
9
- req: FrogbotRequest;
9
+ req: FrogBotRequest;
10
10
  collectionSlug: string;
11
11
  id: string;
12
12
  anyOwner?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frogbotai/plugin-api-keys",
3
- "version": "0.24.0",
3
+ "version": "0.26.0",
4
4
  "description": "Multiple named API keys for FrogBot.",
5
5
  "license": "MIT",
6
6
  "author": "Colby Gilbert",
@@ -38,8 +38,8 @@
38
38
  "@payloadcms/ui": "3.90.1",
39
39
  "react": "^19.0.1 || ^19.1.2 || ^19.2.1",
40
40
  "react-dom": "^19.0.1 || ^19.1.2 || ^19.2.1",
41
- "frogbot": "0.24.0",
42
- "@frogbotai/gateway": "0.24.0"
41
+ "@frogbotai/gateway": "0.26.0",
42
+ "frogbot": "0.26.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@payloadcms/ui": "3.90.1",
@@ -48,9 +48,9 @@
48
48
  "react": "19.2.6",
49
49
  "react-dom": "19.2.6",
50
50
  "typescript": "5.6.2",
51
- "@frogbotai/gateway": "0.24.0",
52
- "@frogbotai/plugin-roles": "0.24.0",
53
- "frogbot": "0.24.0"
51
+ "@frogbotai/gateway": "0.26.0",
52
+ "frogbot": "0.26.0",
53
+ "@frogbotai/plugin-roles": "0.26.0"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"