@camstack/addon-auth 1.2.137 → 1.2.140

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.
@@ -18246,14 +18246,14 @@ var LlmProfileSchema = object({
18246
18246
  /** ConfigUISchema tree passed through untyped on the wire (the
18247
18247
  * notification-output `ConfigSchemaPassthrough` precedent at
18248
18248
  * notification-output.cap.ts:151); the exported TS type re-tightens it. */
18249
- var ConfigSchemaPassthrough$2 = unknown();
18249
+ var ConfigSchemaPassthrough$3 = unknown();
18250
18250
  var LlmProfileKindDescriptorSchema = object({
18251
18251
  kind: LlmProfileKindSchema,
18252
18252
  label: string(),
18253
18253
  icon: string(),
18254
18254
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
18255
18255
  addonId: string(),
18256
- configSchema: ConfigSchemaPassthrough$2
18256
+ configSchema: ConfigSchemaPassthrough$3
18257
18257
  });
18258
18258
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
18259
18259
  var LlmDefaultSchema = object({
@@ -19382,7 +19382,7 @@ var TargetKindCapsSchema = object({
19382
19382
  * the union is large and not meant for runtime validation here; the exported
19383
19383
  * `TargetKind` type re-tightens `configSchema` to `ConfigUISchema`.
19384
19384
  */
19385
- var ConfigSchemaPassthrough$1 = unknown();
19385
+ var ConfigSchemaPassthrough$2 = unknown();
19386
19386
  var TargetKindSchema = object({
19387
19387
  kind: string(),
19388
19388
  label: string(),
@@ -19419,7 +19419,7 @@ var TargetKindSchema = object({
19419
19419
  * its raster path, which is the safe default for an unknown image.
19420
19420
  */
19421
19421
  iconMediaType: string().optional(),
19422
- configSchema: ConfigSchemaPassthrough$1,
19422
+ configSchema: ConfigSchemaPassthrough$2,
19423
19423
  /**
19424
19424
  * The config keys that decide WHERE this kind's secrets are sent (server,
19425
19425
  * base URL, instance, chat, recipient). A save that changes any of them
@@ -22718,6 +22718,77 @@ var OauthIntegrationDescriptorSchema = object({
22718
22718
  });
22719
22719
  method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
22720
22720
  /**
22721
+ * `oidc-connections` — CRUD for IdP rows under `auth-oidc` (D828 sibling).
22722
+ *
22723
+ * One hub-only singleton (`auth-oidc`). The Settings UI is a DataTable +
22724
+ * ItemFormDialog; there is no `editable-array` in `globalSettingsSchema`.
22725
+ * Operator-chosen `id` is the URL slug (`/addon/auth-oidc/<id>/…`) and is
22726
+ * immutable after create.
22727
+ */
22728
+ var ConfigSchemaPassthrough$1 = unknown();
22729
+ var OidcConnectionSchema = object({
22730
+ id: string().min(1),
22731
+ displayName: string(),
22732
+ icon: string(),
22733
+ issuerUrl: string(),
22734
+ clientId: string(),
22735
+ /** Client id + secret present — never the secret value. */
22736
+ configured: boolean(),
22737
+ /**
22738
+ * Values for the connection form schema. `clientSecret` is a keychain
22739
+ * {@link SecretFieldView} or `null` / `''`, never plaintext (D789).
22740
+ */
22741
+ formValues: record(string(), unknown()).optional()
22742
+ });
22743
+ /**
22744
+ * Patch one connection. Omitted or empty `clientSecret` keeps the stored
22745
+ * secret (D787). `{ $secretClear: true }` clears it. `id` is never renamed.
22746
+ */
22747
+ var OidcConnectionUpdateInputSchema = object({
22748
+ id: string().min(1),
22749
+ displayName: string().min(1),
22750
+ icon: string().optional(),
22751
+ issuerUrl: string().optional(),
22752
+ clientId: string().optional(),
22753
+ clientSecret: union([string(), object({ $secretClear: literal(true) })]).optional(),
22754
+ redirectUri: string().optional(),
22755
+ scopes: string().optional(),
22756
+ usernameClaim: _enum([
22757
+ "preferred_username",
22758
+ "email",
22759
+ "sub"
22760
+ ]).optional()
22761
+ });
22762
+ var oidcConnectionsCapability = {
22763
+ name: "oidc-connections",
22764
+ scope: "system",
22765
+ mode: "singleton",
22766
+ methods: {
22767
+ /** Form fields for Add/Edit (ConfigFormBuilder). */
22768
+ connectionFormSchema: method(object({}), ConfigSchemaPassthrough$1, { auth: "admin" }),
22769
+ listConnections: method(object({}), array(OidcConnectionSchema).readonly(), { auth: "admin" }),
22770
+ /**
22771
+ * Create a row with the operator-chosen URL slug. Credentials follow via
22772
+ * `updateConnection` (same Save path as Training Providers).
22773
+ */
22774
+ createConnection: method(object({
22775
+ id: string().min(1).regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "id must be a lowercase slug"),
22776
+ displayName: string().min(1)
22777
+ }), object({ id: string() }), {
22778
+ kind: "mutation",
22779
+ auth: "admin"
22780
+ }),
22781
+ updateConnection: method(OidcConnectionUpdateInputSchema, object({ ok: literal(true) }), {
22782
+ kind: "mutation",
22783
+ auth: "admin"
22784
+ }),
22785
+ deleteConnection: method(object({ id: string().min(1) }), object({ ok: literal(true) }), {
22786
+ kind: "mutation",
22787
+ auth: "admin"
22788
+ })
22789
+ }
22790
+ };
22791
+ /**
22721
22792
  * What started a camera's onboard motion (D672). `camera` is the camera's own
22722
22793
  * firmware; `sensor` is a device the operator ATTACHED to it. Absent on the
22723
22794
  * wire means the camera: only the camera-sensors bridge ever says `sensor`.
@@ -44093,6 +44164,36 @@ Object.freeze({
44093
44164
  addonId: null,
44094
44165
  access: "view"
44095
44166
  },
44167
+ "oidcConnections.connectionFormSchema": {
44168
+ capName: "oidc-connections",
44169
+ capScope: "system",
44170
+ addonId: null,
44171
+ access: "view"
44172
+ },
44173
+ "oidcConnections.createConnection": {
44174
+ capName: "oidc-connections",
44175
+ capScope: "system",
44176
+ addonId: null,
44177
+ access: "create"
44178
+ },
44179
+ "oidcConnections.deleteConnection": {
44180
+ capName: "oidc-connections",
44181
+ capScope: "system",
44182
+ addonId: null,
44183
+ access: "delete"
44184
+ },
44185
+ "oidcConnections.listConnections": {
44186
+ capName: "oidc-connections",
44187
+ capScope: "system",
44188
+ addonId: null,
44189
+ access: "view"
44190
+ },
44191
+ "oidcConnections.updateConnection": {
44192
+ capName: "oidc-connections",
44193
+ capScope: "system",
44194
+ addonId: null,
44195
+ access: "create"
44196
+ },
44096
44197
  "osd.getStatus": {
44097
44198
  capName: "osd",
44098
44199
  capScope: "device",
@@ -52874,4 +52975,4 @@ DEFAULT_NATIVE_LEASE_SETTINGS.admission;
52874
52975
  var MB = 1024 * 1024;
52875
52976
  1024 * MB, 3072 * MB;
52876
52977
  //#endregion
52877
- export { buildAddonRouteProvider as a, userPasskeysCapability as c, array as d, boolean as f, string as h, authProviderCapability as i, errMsg as l, object as m, addonRoutesCapability as n, isDisplayIconKey as o, number as p, addonWidgetsSourceCapability as r, loginMethodCapability as s, SSO_STATE_COOKIE as t, BaseAddon as u };
52978
+ export { string as S, toSecretFieldView as _, buildAddonRouteProvider as a, number as b, oidcConnectionsCapability as c, BaseAddon as d, SECRET_CLEAR as f, isSecretMarker as g, isSecretClear as h, authProviderCapability as i, userPasskeysCapability as l, globalSecretScope as m, addonRoutesCapability as n, isDisplayIconKey as o, arrayItemFieldPath as p, addonWidgetsSourceCapability as r, loginMethodCapability as s, SSO_STATE_COOKIE as t, errMsg as u, array as v, object as x, boolean as y };
@@ -18280,14 +18280,14 @@ var LlmProfileSchema = object({
18280
18280
  /** ConfigUISchema tree passed through untyped on the wire (the
18281
18281
  * notification-output `ConfigSchemaPassthrough` precedent at
18282
18282
  * notification-output.cap.ts:151); the exported TS type re-tightens it. */
18283
- var ConfigSchemaPassthrough$2 = unknown();
18283
+ var ConfigSchemaPassthrough$3 = unknown();
18284
18284
  var LlmProfileKindDescriptorSchema = object({
18285
18285
  kind: LlmProfileKindSchema,
18286
18286
  label: string(),
18287
18287
  icon: string(),
18288
18288
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
18289
18289
  addonId: string(),
18290
- configSchema: ConfigSchemaPassthrough$2
18290
+ configSchema: ConfigSchemaPassthrough$3
18291
18291
  });
18292
18292
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
18293
18293
  var LlmDefaultSchema = object({
@@ -19416,7 +19416,7 @@ var TargetKindCapsSchema = object({
19416
19416
  * the union is large and not meant for runtime validation here; the exported
19417
19417
  * `TargetKind` type re-tightens `configSchema` to `ConfigUISchema`.
19418
19418
  */
19419
- var ConfigSchemaPassthrough$1 = unknown();
19419
+ var ConfigSchemaPassthrough$2 = unknown();
19420
19420
  var TargetKindSchema = object({
19421
19421
  kind: string(),
19422
19422
  label: string(),
@@ -19453,7 +19453,7 @@ var TargetKindSchema = object({
19453
19453
  * its raster path, which is the safe default for an unknown image.
19454
19454
  */
19455
19455
  iconMediaType: string().optional(),
19456
- configSchema: ConfigSchemaPassthrough$1,
19456
+ configSchema: ConfigSchemaPassthrough$2,
19457
19457
  /**
19458
19458
  * The config keys that decide WHERE this kind's secrets are sent (server,
19459
19459
  * base URL, instance, chat, recipient). A save that changes any of them
@@ -22752,6 +22752,77 @@ var OauthIntegrationDescriptorSchema = object({
22752
22752
  });
22753
22753
  method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
22754
22754
  /**
22755
+ * `oidc-connections` — CRUD for IdP rows under `auth-oidc` (D828 sibling).
22756
+ *
22757
+ * One hub-only singleton (`auth-oidc`). The Settings UI is a DataTable +
22758
+ * ItemFormDialog; there is no `editable-array` in `globalSettingsSchema`.
22759
+ * Operator-chosen `id` is the URL slug (`/addon/auth-oidc/<id>/…`) and is
22760
+ * immutable after create.
22761
+ */
22762
+ var ConfigSchemaPassthrough$1 = unknown();
22763
+ var OidcConnectionSchema = object({
22764
+ id: string().min(1),
22765
+ displayName: string(),
22766
+ icon: string(),
22767
+ issuerUrl: string(),
22768
+ clientId: string(),
22769
+ /** Client id + secret present — never the secret value. */
22770
+ configured: boolean(),
22771
+ /**
22772
+ * Values for the connection form schema. `clientSecret` is a keychain
22773
+ * {@link SecretFieldView} or `null` / `''`, never plaintext (D789).
22774
+ */
22775
+ formValues: record(string(), unknown()).optional()
22776
+ });
22777
+ /**
22778
+ * Patch one connection. Omitted or empty `clientSecret` keeps the stored
22779
+ * secret (D787). `{ $secretClear: true }` clears it. `id` is never renamed.
22780
+ */
22781
+ var OidcConnectionUpdateInputSchema = object({
22782
+ id: string().min(1),
22783
+ displayName: string().min(1),
22784
+ icon: string().optional(),
22785
+ issuerUrl: string().optional(),
22786
+ clientId: string().optional(),
22787
+ clientSecret: union([string(), object({ $secretClear: literal(true) })]).optional(),
22788
+ redirectUri: string().optional(),
22789
+ scopes: string().optional(),
22790
+ usernameClaim: _enum([
22791
+ "preferred_username",
22792
+ "email",
22793
+ "sub"
22794
+ ]).optional()
22795
+ });
22796
+ var oidcConnectionsCapability = {
22797
+ name: "oidc-connections",
22798
+ scope: "system",
22799
+ mode: "singleton",
22800
+ methods: {
22801
+ /** Form fields for Add/Edit (ConfigFormBuilder). */
22802
+ connectionFormSchema: method(object({}), ConfigSchemaPassthrough$1, { auth: "admin" }),
22803
+ listConnections: method(object({}), array(OidcConnectionSchema).readonly(), { auth: "admin" }),
22804
+ /**
22805
+ * Create a row with the operator-chosen URL slug. Credentials follow via
22806
+ * `updateConnection` (same Save path as Training Providers).
22807
+ */
22808
+ createConnection: method(object({
22809
+ id: string().min(1).regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "id must be a lowercase slug"),
22810
+ displayName: string().min(1)
22811
+ }), object({ id: string() }), {
22812
+ kind: "mutation",
22813
+ auth: "admin"
22814
+ }),
22815
+ updateConnection: method(OidcConnectionUpdateInputSchema, object({ ok: literal(true) }), {
22816
+ kind: "mutation",
22817
+ auth: "admin"
22818
+ }),
22819
+ deleteConnection: method(object({ id: string().min(1) }), object({ ok: literal(true) }), {
22820
+ kind: "mutation",
22821
+ auth: "admin"
22822
+ })
22823
+ }
22824
+ };
22825
+ /**
22755
22826
  * What started a camera's onboard motion (D672). `camera` is the camera's own
22756
22827
  * firmware; `sensor` is a device the operator ATTACHED to it. Absent on the
22757
22828
  * wire means the camera: only the camera-sensors bridge ever says `sensor`.
@@ -44127,6 +44198,36 @@ Object.freeze({
44127
44198
  addonId: null,
44128
44199
  access: "view"
44129
44200
  },
44201
+ "oidcConnections.connectionFormSchema": {
44202
+ capName: "oidc-connections",
44203
+ capScope: "system",
44204
+ addonId: null,
44205
+ access: "view"
44206
+ },
44207
+ "oidcConnections.createConnection": {
44208
+ capName: "oidc-connections",
44209
+ capScope: "system",
44210
+ addonId: null,
44211
+ access: "create"
44212
+ },
44213
+ "oidcConnections.deleteConnection": {
44214
+ capName: "oidc-connections",
44215
+ capScope: "system",
44216
+ addonId: null,
44217
+ access: "delete"
44218
+ },
44219
+ "oidcConnections.listConnections": {
44220
+ capName: "oidc-connections",
44221
+ capScope: "system",
44222
+ addonId: null,
44223
+ access: "view"
44224
+ },
44225
+ "oidcConnections.updateConnection": {
44226
+ capName: "oidc-connections",
44227
+ capScope: "system",
44228
+ addonId: null,
44229
+ access: "create"
44230
+ },
44130
44231
  "osd.getStatus": {
44131
44232
  capName: "osd",
44132
44233
  capScope: "device",
@@ -52914,6 +53015,12 @@ Object.defineProperty(exports, "BaseAddon", {
52914
53015
  return BaseAddon;
52915
53016
  }
52916
53017
  });
53018
+ Object.defineProperty(exports, "SECRET_CLEAR", {
53019
+ enumerable: true,
53020
+ get: function() {
53021
+ return SECRET_CLEAR;
53022
+ }
53023
+ });
52917
53024
  Object.defineProperty(exports, "SSO_STATE_COOKIE", {
52918
53025
  enumerable: true,
52919
53026
  get: function() {
@@ -52968,6 +53075,12 @@ Object.defineProperty(exports, "array", {
52968
53075
  return array;
52969
53076
  }
52970
53077
  });
53078
+ Object.defineProperty(exports, "arrayItemFieldPath", {
53079
+ enumerable: true,
53080
+ get: function() {
53081
+ return arrayItemFieldPath;
53082
+ }
53083
+ });
52971
53084
  Object.defineProperty(exports, "authProviderCapability", {
52972
53085
  enumerable: true,
52973
53086
  get: function() {
@@ -52992,12 +53105,30 @@ Object.defineProperty(exports, "errMsg", {
52992
53105
  return errMsg;
52993
53106
  }
52994
53107
  });
53108
+ Object.defineProperty(exports, "globalSecretScope", {
53109
+ enumerable: true,
53110
+ get: function() {
53111
+ return globalSecretScope;
53112
+ }
53113
+ });
52995
53114
  Object.defineProperty(exports, "isDisplayIconKey", {
52996
53115
  enumerable: true,
52997
53116
  get: function() {
52998
53117
  return isDisplayIconKey;
52999
53118
  }
53000
53119
  });
53120
+ Object.defineProperty(exports, "isSecretClear", {
53121
+ enumerable: true,
53122
+ get: function() {
53123
+ return isSecretClear;
53124
+ }
53125
+ });
53126
+ Object.defineProperty(exports, "isSecretMarker", {
53127
+ enumerable: true,
53128
+ get: function() {
53129
+ return isSecretMarker;
53130
+ }
53131
+ });
53001
53132
  Object.defineProperty(exports, "loginMethodCapability", {
53002
53133
  enumerable: true,
53003
53134
  get: function() {
@@ -53016,12 +53147,24 @@ Object.defineProperty(exports, "object", {
53016
53147
  return object;
53017
53148
  }
53018
53149
  });
53150
+ Object.defineProperty(exports, "oidcConnectionsCapability", {
53151
+ enumerable: true,
53152
+ get: function() {
53153
+ return oidcConnectionsCapability;
53154
+ }
53155
+ });
53019
53156
  Object.defineProperty(exports, "string", {
53020
53157
  enumerable: true,
53021
53158
  get: function() {
53022
53159
  return string;
53023
53160
  }
53024
53161
  });
53162
+ Object.defineProperty(exports, "toSecretFieldView", {
53163
+ enumerable: true,
53164
+ get: function() {
53165
+ return toSecretFieldView;
53166
+ }
53167
+ });
53025
53168
  Object.defineProperty(exports, "userPasskeysCapability", {
53026
53169
  enumerable: true,
53027
53170
  get: function() {