@schemavaults/auth-common 0.35.0 → 0.36.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.
@@ -4,3 +4,5 @@ export { API_SCOPE_GRANTEES, apiScopeGranteeSchema, appApiScopePolicySchema, upd
4
4
  export type { ApiScopeGrantee, AppApiScopePolicy, UpdateAppApiScopePolicyRequest, } from "./scope-grants";
5
5
  export { consentScopeSchema, appConsentStatusSchema, approvedApiScopesSchema, connectedAppScopeSchema, connectedAppSchema, listConnectedAppsResponseSchema, } from "./consent";
6
6
  export type { ConsentScope, AppConsentStatus, ConnectedAppScope, ConnectedApp, ListConnectedAppsResponse, } from "./consent";
7
+ export { API_SERVER_SCOPES_JSON_SCHEMA_PATH, apiScopeManifestEntrySchema, syncApiServerScopesRequestSchema, apiScopeManifestEntries, syncedApiScopeSchema, updatedApiScopeSchema, apiServerScopeSyncResultSchema, syncApiServerScopesResponseSchema, hasApiScopeSyncDrift, } from "./scope-sync";
8
+ export type { ApiScopeManifestEntry, ApiScopeManifestEntryInput, SyncApiServerScopesRequest, SyncApiServerScopesRequestInput, SyncedApiScope, UpdatedApiScope, ApiServerScopeSyncResult, SyncApiServerScopesResponse, } from "./scope-sync";
@@ -1,4 +1,5 @@
1
1
  export { MAX_API_SCOPE_VALUE_LENGTH, MAX_API_SCOPE_DESCRIPTION_LENGTH, MAX_API_SCOPES_PER_API_SERVER, API_SCOPE_VALUE_REGEX, apiScopeValueSchema, apiScopeDescriptionSchema, resourceIndicatorSchema, apiServerScopeSchema, createApiServerScopeRequestSchema, updateApiServerScopeRequestSchema, } from "./api-server-scope";
2
2
  export { API_SCOPE_GRANTEES, apiScopeGranteeSchema, appApiScopePolicySchema, updateAppApiScopePolicyRequestSchema, } from "./scope-grants";
3
3
  export { consentScopeSchema, appConsentStatusSchema, approvedApiScopesSchema, connectedAppScopeSchema, connectedAppSchema, listConnectedAppsResponseSchema, } from "./consent";
4
+ export { API_SERVER_SCOPES_JSON_SCHEMA_PATH, apiScopeManifestEntrySchema, syncApiServerScopesRequestSchema, apiScopeManifestEntries, syncedApiScopeSchema, updatedApiScopeSchema, apiServerScopeSyncResultSchema, syncApiServerScopesResponseSchema, hasApiScopeSyncDrift, } from "./scope-sync";
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api-scopes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,EAChC,6BAA6B,EAC7B,qBAAqB,EACrB,mBAAmB,EACnB,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,iCAAiC,EACjC,iCAAiC,GAClC,MAAM,oBAAoB,CAAC;AAQ5B,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,oCAAoC,GACrC,MAAM,gBAAgB,CAAC;AAOxB,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAClB,+BAA+B,GAChC,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api-scopes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,EAChC,6BAA6B,EAC7B,qBAAqB,EACrB,mBAAmB,EACnB,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,iCAAiC,EACjC,iCAAiC,GAClC,MAAM,oBAAoB,CAAC;AAQ5B,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,oCAAoC,GACrC,MAAM,gBAAgB,CAAC;AAOxB,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAClB,+BAA+B,GAChC,MAAM,WAAW,CAAC;AASnB,OAAO,EACL,kCAAkC,EAClC,2BAA2B,EAC3B,gCAAgC,EAChC,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,EACrB,8BAA8B,EAC9B,iCAAiC,EACjC,oBAAoB,GACrB,MAAM,cAAc,CAAC"}
@@ -0,0 +1,127 @@
1
+ /**
2
+ * Scope sync: a resource server declares its whole list of API scopes in
3
+ * code (a "scope manifest") and sends it to
4
+ * `PUT /api/resource-server/apis/{api_server_id}/scopes`, authenticated
5
+ * with its JWKS access key. The auth server creates the scopes that are
6
+ * missing and updates the ones whose description (or, when the entry
7
+ * gives it, `allow_dynamic_clients`) changed. It never deletes a scope:
8
+ * deleting one drops users' consents and the per-app allowances set for
9
+ * it, so scopes missing from the list are only reported
10
+ * (`not_in_manifest`) and stay a decision for a person in the console.
11
+ *
12
+ * The request schema is also the source of the manifest JSON Schema the
13
+ * auth server serves at {@link API_SERVER_SCOPES_JSON_SCHEMA_PATH}, so
14
+ * editors, the SDK and the endpoint check the same rules.
15
+ */
16
+ import { z } from "zod";
17
+ /**
18
+ * Path (on every auth server deployment) of the JSON Schema of scope
19
+ * manifests; a manifest names `<auth server URL><path>` in its `$schema`.
20
+ */
21
+ export declare const API_SERVER_SCOPES_JSON_SCHEMA_PATH: "/json-schema/api-server-scopes.json";
22
+ /** One scope of a manifest. */
23
+ export declare const apiScopeManifestEntrySchema: z.ZodObject<{
24
+ scope: z.ZodString;
25
+ description: z.ZodString;
26
+ allow_dynamic_clients: z.ZodOptional<z.ZodBoolean>;
27
+ }, z.core.$strict>;
28
+ export type ApiScopeManifestEntry = z.infer<typeof apiScopeManifestEntrySchema>;
29
+ /** An entry as written, before its description is trimmed. */
30
+ export type ApiScopeManifestEntryInput = z.input<typeof apiScopeManifestEntrySchema>;
31
+ /**
32
+ * Body of `PUT /api/resource-server/apis/{api_server_id}/scopes`, and the
33
+ * shape of a scope manifest file: the API server's whole scope list, at
34
+ * most {@link MAX_API_SCOPES_PER_API_SERVER} entries with no scope value
35
+ * repeated, plus an optional `$schema` the endpoint ignores (so a manifest
36
+ * file is sent as it is).
37
+ */
38
+ export declare const syncApiServerScopesRequestSchema: z.ZodObject<{
39
+ $schema: z.ZodOptional<z.ZodString>;
40
+ scopes: z.ZodArray<z.ZodObject<{
41
+ scope: z.ZodString;
42
+ description: z.ZodString;
43
+ allow_dynamic_clients: z.ZodOptional<z.ZodBoolean>;
44
+ }, z.core.$strict>>;
45
+ }, z.core.$strict>;
46
+ export type SyncApiServerScopesRequest = z.infer<typeof syncApiServerScopesRequestSchema>;
47
+ export type SyncApiServerScopesRequestInput = z.input<typeof syncApiServerScopesRequestSchema>;
48
+ /**
49
+ * The entries of a manifest given either as a list or as the shorthand
50
+ * `{ [scope]: description }` (which keeps every scope's current
51
+ * `allow_dynamic_clients`). Not validated: parse the result with
52
+ * {@link syncApiServerScopesRequestSchema}.
53
+ */
54
+ export declare function apiScopeManifestEntries(scopes: readonly ApiScopeManifestEntryInput[] | Readonly<Record<string, string>>): ApiScopeManifestEntryInput[];
55
+ /** A scope as the sync left it (created, or updated). */
56
+ export declare const syncedApiScopeSchema: z.ZodObject<{
57
+ scope: z.ZodString;
58
+ description: z.ZodString;
59
+ allow_dynamic_clients: z.ZodBoolean;
60
+ }, z.core.$strip>;
61
+ export type SyncedApiScope = z.infer<typeof syncedApiScopeSchema>;
62
+ /** An updated scope, with the previous values of the fields that changed. */
63
+ export declare const updatedApiScopeSchema: z.ZodObject<{
64
+ scope: z.ZodString;
65
+ description: z.ZodString;
66
+ allow_dynamic_clients: z.ZodBoolean;
67
+ previous: z.ZodObject<{
68
+ description: z.ZodOptional<z.ZodString>;
69
+ allow_dynamic_clients: z.ZodOptional<z.ZodBoolean>;
70
+ }, z.core.$strip>;
71
+ }, z.core.$strip>;
72
+ export type UpdatedApiScope = z.infer<typeof updatedApiScopeSchema>;
73
+ /** What a sync did (or, for a dry run, would do). */
74
+ export declare const apiServerScopeSyncResultSchema: z.ZodObject<{
75
+ api_server_id: z.ZodString;
76
+ dry_run: z.ZodBoolean;
77
+ created: z.ZodArray<z.ZodObject<{
78
+ scope: z.ZodString;
79
+ description: z.ZodString;
80
+ allow_dynamic_clients: z.ZodBoolean;
81
+ }, z.core.$strip>>;
82
+ updated: z.ZodArray<z.ZodObject<{
83
+ scope: z.ZodString;
84
+ description: z.ZodString;
85
+ allow_dynamic_clients: z.ZodBoolean;
86
+ previous: z.ZodObject<{
87
+ description: z.ZodOptional<z.ZodString>;
88
+ allow_dynamic_clients: z.ZodOptional<z.ZodBoolean>;
89
+ }, z.core.$strip>;
90
+ }, z.core.$strip>>;
91
+ unchanged: z.ZodArray<z.ZodString>;
92
+ not_in_manifest: z.ZodArray<z.ZodObject<{
93
+ scope: z.ZodString;
94
+ description: z.ZodString;
95
+ }, z.core.$strip>>;
96
+ }, z.core.$strip>;
97
+ export type ApiServerScopeSyncResult = z.infer<typeof apiServerScopeSyncResultSchema>;
98
+ /** Success body of `PUT /api/resource-server/apis/{api_server_id}/scopes`. */
99
+ export declare const syncApiServerScopesResponseSchema: z.ZodObject<{
100
+ success: z.ZodLiteral<true>;
101
+ data: z.ZodObject<{
102
+ api_server_id: z.ZodString;
103
+ dry_run: z.ZodBoolean;
104
+ created: z.ZodArray<z.ZodObject<{
105
+ scope: z.ZodString;
106
+ description: z.ZodString;
107
+ allow_dynamic_clients: z.ZodBoolean;
108
+ }, z.core.$strip>>;
109
+ updated: z.ZodArray<z.ZodObject<{
110
+ scope: z.ZodString;
111
+ description: z.ZodString;
112
+ allow_dynamic_clients: z.ZodBoolean;
113
+ previous: z.ZodObject<{
114
+ description: z.ZodOptional<z.ZodString>;
115
+ allow_dynamic_clients: z.ZodOptional<z.ZodBoolean>;
116
+ }, z.core.$strip>;
117
+ }, z.core.$strip>>;
118
+ unchanged: z.ZodArray<z.ZodString>;
119
+ not_in_manifest: z.ZodArray<z.ZodObject<{
120
+ scope: z.ZodString;
121
+ description: z.ZodString;
122
+ }, z.core.$strip>>;
123
+ }, z.core.$strip>;
124
+ }, z.core.$strip>;
125
+ export type SyncApiServerScopesResponse = z.infer<typeof syncApiServerScopesResponseSchema>;
126
+ /** Whether a sync created or updated anything (drift, for `--check`). */
127
+ export declare function hasApiScopeSyncDrift(result: ApiServerScopeSyncResult): boolean;
@@ -0,0 +1,149 @@
1
+ /**
2
+ * Scope sync: a resource server declares its whole list of API scopes in
3
+ * code (a "scope manifest") and sends it to
4
+ * `PUT /api/resource-server/apis/{api_server_id}/scopes`, authenticated
5
+ * with its JWKS access key. The auth server creates the scopes that are
6
+ * missing and updates the ones whose description (or, when the entry
7
+ * gives it, `allow_dynamic_clients`) changed. It never deletes a scope:
8
+ * deleting one drops users' consents and the per-app allowances set for
9
+ * it, so scopes missing from the list are only reported
10
+ * (`not_in_manifest`) and stay a decision for a person in the console.
11
+ *
12
+ * The request schema is also the source of the manifest JSON Schema the
13
+ * auth server serves at {@link API_SERVER_SCOPES_JSON_SCHEMA_PATH}, so
14
+ * editors, the SDK and the endpoint check the same rules.
15
+ */
16
+ import { z } from "zod";
17
+ import { apiServerIdSchema } from "@schemavaults/app-definitions";
18
+ import { API_SCOPE_VALUE_REGEX, MAX_API_SCOPES_PER_API_SERVER, MAX_API_SCOPE_DESCRIPTION_LENGTH, MAX_API_SCOPE_VALUE_LENGTH, apiScopeDescriptionSchema, apiScopeValueSchema, } from "./api-server-scope";
19
+ /**
20
+ * Path (on every auth server deployment) of the JSON Schema of scope
21
+ * manifests; a manifest names `<auth server URL><path>` in its `$schema`.
22
+ */
23
+ export const API_SERVER_SCOPES_JSON_SCHEMA_PATH = "/json-schema/api-server-scopes.json";
24
+ /** One scope of a manifest. */
25
+ export const apiScopeManifestEntrySchema = z
26
+ .object({
27
+ scope: apiScopeValueSchema.meta({
28
+ title: "Scope",
29
+ description: "The OAuth 2.0 scope value: one RFC 6749 scope-token (printable ASCII without spaces, '\"' or '\\'), at most 128 characters, and never an OpenID Connect scope name. It cannot be renamed once defined.",
30
+ examples: ["notes:read", "notes:write"],
31
+ }),
32
+ description: apiScopeDescriptionSchema.meta({
33
+ title: "Description",
34
+ description: "What the scope allows, shown to users on the consent screen (1 to 256 characters after trimming). A changed description updates the scope on the next sync.",
35
+ examples: ["Read your notes."],
36
+ }),
37
+ allow_dynamic_clients: z
38
+ .boolean()
39
+ .optional()
40
+ .meta({
41
+ title: "Allow dynamically registered clients",
42
+ description: "Whether dynamically registered clients may be granted this scope. Omit it to keep the current value; a new scope defaults to true.",
43
+ examples: [true],
44
+ }),
45
+ })
46
+ .strict()
47
+ .meta({ title: "API scope" });
48
+ /**
49
+ * Body of `PUT /api/resource-server/apis/{api_server_id}/scopes`, and the
50
+ * shape of a scope manifest file: the API server's whole scope list, at
51
+ * most {@link MAX_API_SCOPES_PER_API_SERVER} entries with no scope value
52
+ * repeated, plus an optional `$schema` the endpoint ignores (so a manifest
53
+ * file is sent as it is).
54
+ */
55
+ export const syncApiServerScopesRequestSchema = z
56
+ .object({
57
+ $schema: z
58
+ .string()
59
+ .optional()
60
+ .meta({
61
+ description: "URL of this JSON Schema, for editor auto-complete and checks. Ignored by the auth server.",
62
+ }),
63
+ scopes: z
64
+ .array(apiScopeManifestEntrySchema)
65
+ .max(MAX_API_SCOPES_PER_API_SERVER)
66
+ .superRefine((entries, ctx) => {
67
+ const seen = new Set();
68
+ entries.forEach((entry, index) => {
69
+ if (seen.has(entry.scope)) {
70
+ ctx.addIssue({
71
+ code: "custom",
72
+ path: [index, "scope"],
73
+ message: `The scope '${entry.scope}' is listed more than once`,
74
+ });
75
+ }
76
+ seen.add(entry.scope);
77
+ });
78
+ })
79
+ .meta({
80
+ title: "Scopes",
81
+ description: `Every scope the API server defines (at most ${MAX_API_SCOPES_PER_API_SERVER}, each value listed once). Missing scopes are created and changed ones updated; scopes the auth server knows but the list leaves out are reported and never deleted.`,
82
+ }),
83
+ })
84
+ .strict()
85
+ .meta({
86
+ title: "API server scope manifest",
87
+ description: "The API scopes a resource server defines, synced to the auth server with `auth-server-sdk sync-scopes` or `syncApiServerScopes()` from `@schemavaults/auth-server-sdk/api-scopes` (PUT /api/resource-server/apis/{api_server_id}/scopes).",
88
+ });
89
+ /**
90
+ * The entries of a manifest given either as a list or as the shorthand
91
+ * `{ [scope]: description }` (which keeps every scope's current
92
+ * `allow_dynamic_clients`). Not validated: parse the result with
93
+ * {@link syncApiServerScopesRequestSchema}.
94
+ */
95
+ export function apiScopeManifestEntries(scopes) {
96
+ if (Array.isArray(scopes)) {
97
+ return [...scopes];
98
+ }
99
+ return Object.entries(scopes).map(([scope, description]) => ({ scope, description }));
100
+ }
101
+ // Format only (no reserved-name check), like apiServerScopeSchema, so the
102
+ // stored definitions always parse on the way out.
103
+ const syncedScopeValueSchema = z
104
+ .string()
105
+ .min(1)
106
+ .max(MAX_API_SCOPE_VALUE_LENGTH)
107
+ .regex(API_SCOPE_VALUE_REGEX);
108
+ const syncedScopeDescriptionSchema = z
109
+ .string()
110
+ .max(MAX_API_SCOPE_DESCRIPTION_LENGTH);
111
+ /** A scope as the sync left it (created, or updated). */
112
+ export const syncedApiScopeSchema = z.object({
113
+ scope: syncedScopeValueSchema,
114
+ description: syncedScopeDescriptionSchema,
115
+ allow_dynamic_clients: z.boolean(),
116
+ });
117
+ /** An updated scope, with the previous values of the fields that changed. */
118
+ export const updatedApiScopeSchema = syncedApiScopeSchema.extend({
119
+ previous: z.object({
120
+ description: syncedScopeDescriptionSchema.optional(),
121
+ allow_dynamic_clients: z.boolean().optional(),
122
+ }),
123
+ });
124
+ /** What a sync did (or, for a dry run, would do). */
125
+ export const apiServerScopeSyncResultSchema = z.object({
126
+ api_server_id: apiServerIdSchema,
127
+ dry_run: z.boolean(),
128
+ /** Scopes that were missing, in manifest order. */
129
+ created: z.array(syncedApiScopeSchema),
130
+ /** Scopes whose description or `allow_dynamic_clients` changed, in manifest order. */
131
+ updated: z.array(updatedApiScopeSchema),
132
+ /** Values of the listed scopes that already matched, in manifest order. */
133
+ unchanged: z.array(syncedScopeValueSchema),
134
+ /** Scopes the API server defines that the manifest leaves out (kept), oldest first. */
135
+ not_in_manifest: z.array(z.object({
136
+ scope: syncedScopeValueSchema,
137
+ description: syncedScopeDescriptionSchema,
138
+ })),
139
+ });
140
+ /** Success body of `PUT /api/resource-server/apis/{api_server_id}/scopes`. */
141
+ export const syncApiServerScopesResponseSchema = z.object({
142
+ success: z.literal(true),
143
+ data: apiServerScopeSyncResultSchema,
144
+ });
145
+ /** Whether a sync created or updated anything (drift, for `--check`). */
146
+ export function hasApiScopeSyncDrift(result) {
147
+ return result.created.length > 0 || result.updated.length > 0;
148
+ }
149
+ //# sourceMappingURL=scope-sync.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scope-sync.js","sourceRoot":"","sources":["../../src/api-scopes/scope-sync.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,qBAAqB,EACrB,6BAA6B,EAC7B,gCAAgC,EAChC,0BAA0B,EAC1B,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAC7C,qCAA8C,CAAC;AAEjD,+BAA+B;AAC/B,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC;KACzC,MAAM,CAAC;IACN,KAAK,EAAE,mBAAmB,CAAC,IAAI,CAAC;QAC9B,KAAK,EAAE,OAAO;QACd,WAAW,EACT,wMAAwM;QAC1M,QAAQ,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;KACxC,CAAC;IACF,WAAW,EAAE,yBAAyB,CAAC,IAAI,CAAC;QAC1C,KAAK,EAAE,aAAa;QACpB,WAAW,EACT,6JAA6J;QAC/J,QAAQ,EAAE,CAAC,kBAAkB,CAAC;KAC/B,CAAC;IACF,qBAAqB,EAAE,CAAC;SACrB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,IAAI,CAAC;QACJ,KAAK,EAAE,sCAAsC;QAC7C,WAAW,EACT,oIAAoI;Q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CAAC;IACtC,sFAAsF;IACtF,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC;IACvC,2EAA2E;IAC3E,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC;IAC1C,uFAAuF;IACvF,eAAe,EAAE,CAAC,CAAC,KAAK,CACtB,CAAC,CAAC,MAAM,CAAC;QACP,KAAK,EAAE,sBAAsB;QAC7B,WAAW,EAAE,4BAA4B;KAC1C,CAAC,CACH;CACF,CAAC,CAAC;AAIH,8EAA8E;AAC9E,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,IAAI,EAAE,8BAA8B;CACrC,CAAC,CAAC;AAIH,yEAAyE;AACzE,MAAM,UAAU,oBAAoB,CAAC,MAAgC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;AAChE,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@schemavaults/auth-common",
3
3
  "description": "Types and utility functions for authentication and authorization",
4
- "version": "0.35.0",
4
+ "version": "0.36.0",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
7
7
  "repository": {