@camstack/addon-google-services 0.1.6 → 0.1.7

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.
@@ -18195,14 +18195,14 @@ var LlmProfileSchema = object({
18195
18195
  /** ConfigUISchema tree passed through untyped on the wire (the
18196
18196
  * notification-output `ConfigSchemaPassthrough` precedent at
18197
18197
  * notification-output.cap.ts:151); the exported TS type re-tightens it. */
18198
- var ConfigSchemaPassthrough$2 = unknown();
18198
+ var ConfigSchemaPassthrough$3 = unknown();
18199
18199
  var LlmProfileKindDescriptorSchema = object({
18200
18200
  kind: LlmProfileKindSchema,
18201
18201
  label: string(),
18202
18202
  icon: string(),
18203
18203
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
18204
18204
  addonId: string(),
18205
- configSchema: ConfigSchemaPassthrough$2
18205
+ configSchema: ConfigSchemaPassthrough$3
18206
18206
  });
18207
18207
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
18208
18208
  var LlmDefaultSchema = object({
@@ -19323,7 +19323,7 @@ var TargetKindCapsSchema = object({
19323
19323
  * the union is large and not meant for runtime validation here; the exported
19324
19324
  * `TargetKind` type re-tightens `configSchema` to `ConfigUISchema`.
19325
19325
  */
19326
- var ConfigSchemaPassthrough$1 = unknown();
19326
+ var ConfigSchemaPassthrough$2 = unknown();
19327
19327
  var TargetKindSchema = object({
19328
19328
  kind: string(),
19329
19329
  label: string(),
@@ -19360,7 +19360,7 @@ var TargetKindSchema = object({
19360
19360
  * its raster path, which is the safe default for an unknown image.
19361
19361
  */
19362
19362
  iconMediaType: string().optional(),
19363
- configSchema: ConfigSchemaPassthrough$1,
19363
+ configSchema: ConfigSchemaPassthrough$2,
19364
19364
  /**
19365
19365
  * The config keys that decide WHERE this kind's secrets are sent (server,
19366
19366
  * base URL, instance, chat, recipient). A save that changes any of them
@@ -22659,6 +22659,61 @@ var OauthIntegrationDescriptorSchema = object({
22659
22659
  });
22660
22660
  method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
22661
22661
  /**
22662
+ * `oidc-connections` — CRUD for IdP rows under `auth-oidc` (D828 sibling).
22663
+ *
22664
+ * One hub-only singleton (`auth-oidc`). The Settings UI is a DataTable +
22665
+ * ItemFormDialog; there is no `editable-array` in `globalSettingsSchema`.
22666
+ * Operator-chosen `id` is the URL slug (`/addon/auth-oidc/<id>/…`) and is
22667
+ * immutable after create.
22668
+ */
22669
+ var ConfigSchemaPassthrough$1 = unknown();
22670
+ var OidcConnectionSchema = object({
22671
+ id: string().min(1),
22672
+ displayName: string(),
22673
+ icon: string(),
22674
+ issuerUrl: string(),
22675
+ clientId: string(),
22676
+ /** Client id + secret present — never the secret value. */
22677
+ configured: boolean(),
22678
+ /**
22679
+ * Values for the connection form schema. `clientSecret` is a keychain
22680
+ * {@link SecretFieldView} or `null` / `''`, never plaintext (D789).
22681
+ */
22682
+ formValues: record(string(), unknown()).optional()
22683
+ });
22684
+ /**
22685
+ * Patch one connection. Omitted or empty `clientSecret` keeps the stored
22686
+ * secret (D787). `{ $secretClear: true }` clears it. `id` is never renamed.
22687
+ */
22688
+ var OidcConnectionUpdateInputSchema = object({
22689
+ id: string().min(1),
22690
+ displayName: string().min(1),
22691
+ icon: string().optional(),
22692
+ issuerUrl: string().optional(),
22693
+ clientId: string().optional(),
22694
+ clientSecret: union([string(), object({ $secretClear: literal(true) })]).optional(),
22695
+ redirectUri: string().optional(),
22696
+ scopes: string().optional(),
22697
+ usernameClaim: _enum([
22698
+ "preferred_username",
22699
+ "email",
22700
+ "sub"
22701
+ ]).optional()
22702
+ });
22703
+ method(object({}), ConfigSchemaPassthrough$1, { auth: "admin" }), method(object({}), array(OidcConnectionSchema).readonly(), { auth: "admin" }), method(object({
22704
+ id: string().min(1).regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "id must be a lowercase slug"),
22705
+ displayName: string().min(1)
22706
+ }), object({ id: string() }), {
22707
+ kind: "mutation",
22708
+ auth: "admin"
22709
+ }), method(OidcConnectionUpdateInputSchema, object({ ok: literal(true) }), {
22710
+ kind: "mutation",
22711
+ auth: "admin"
22712
+ }), method(object({ id: string().min(1) }), object({ ok: literal(true) }), {
22713
+ kind: "mutation",
22714
+ auth: "admin"
22715
+ });
22716
+ /**
22662
22717
  * What started a camera's onboard motion (D672). `camera` is the camera's own
22663
22718
  * firmware; `sensor` is a device the operator ATTACHED to it. Absent on the
22664
22719
  * wire means the camera: only the camera-sensors bridge ever says `sensor`.
@@ -44022,6 +44077,36 @@ Object.freeze({
44022
44077
  addonId: null,
44023
44078
  access: "view"
44024
44079
  },
44080
+ "oidcConnections.connectionFormSchema": {
44081
+ capName: "oidc-connections",
44082
+ capScope: "system",
44083
+ addonId: null,
44084
+ access: "view"
44085
+ },
44086
+ "oidcConnections.createConnection": {
44087
+ capName: "oidc-connections",
44088
+ capScope: "system",
44089
+ addonId: null,
44090
+ access: "create"
44091
+ },
44092
+ "oidcConnections.deleteConnection": {
44093
+ capName: "oidc-connections",
44094
+ capScope: "system",
44095
+ addonId: null,
44096
+ access: "delete"
44097
+ },
44098
+ "oidcConnections.listConnections": {
44099
+ capName: "oidc-connections",
44100
+ capScope: "system",
44101
+ addonId: null,
44102
+ access: "view"
44103
+ },
44104
+ "oidcConnections.updateConnection": {
44105
+ capName: "oidc-connections",
44106
+ capScope: "system",
44107
+ addonId: null,
44108
+ access: "create"
44109
+ },
44025
44110
  "osd.getStatus": {
44026
44111
  capName: "osd",
44027
44112
  capScope: "device",
@@ -18191,14 +18191,14 @@ var LlmProfileSchema = object({
18191
18191
  /** ConfigUISchema tree passed through untyped on the wire (the
18192
18192
  * notification-output `ConfigSchemaPassthrough` precedent at
18193
18193
  * notification-output.cap.ts:151); the exported TS type re-tightens it. */
18194
- var ConfigSchemaPassthrough$2 = unknown();
18194
+ var ConfigSchemaPassthrough$3 = unknown();
18195
18195
  var LlmProfileKindDescriptorSchema = object({
18196
18196
  kind: LlmProfileKindSchema,
18197
18197
  label: string(),
18198
18198
  icon: string(),
18199
18199
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
18200
18200
  addonId: string(),
18201
- configSchema: ConfigSchemaPassthrough$2
18201
+ configSchema: ConfigSchemaPassthrough$3
18202
18202
  });
18203
18203
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
18204
18204
  var LlmDefaultSchema = object({
@@ -19319,7 +19319,7 @@ var TargetKindCapsSchema = object({
19319
19319
  * the union is large and not meant for runtime validation here; the exported
19320
19320
  * `TargetKind` type re-tightens `configSchema` to `ConfigUISchema`.
19321
19321
  */
19322
- var ConfigSchemaPassthrough$1 = unknown();
19322
+ var ConfigSchemaPassthrough$2 = unknown();
19323
19323
  var TargetKindSchema = object({
19324
19324
  kind: string(),
19325
19325
  label: string(),
@@ -19356,7 +19356,7 @@ var TargetKindSchema = object({
19356
19356
  * its raster path, which is the safe default for an unknown image.
19357
19357
  */
19358
19358
  iconMediaType: string().optional(),
19359
- configSchema: ConfigSchemaPassthrough$1,
19359
+ configSchema: ConfigSchemaPassthrough$2,
19360
19360
  /**
19361
19361
  * The config keys that decide WHERE this kind's secrets are sent (server,
19362
19362
  * base URL, instance, chat, recipient). A save that changes any of them
@@ -22655,6 +22655,61 @@ var OauthIntegrationDescriptorSchema = object({
22655
22655
  });
22656
22656
  method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
22657
22657
  /**
22658
+ * `oidc-connections` — CRUD for IdP rows under `auth-oidc` (D828 sibling).
22659
+ *
22660
+ * One hub-only singleton (`auth-oidc`). The Settings UI is a DataTable +
22661
+ * ItemFormDialog; there is no `editable-array` in `globalSettingsSchema`.
22662
+ * Operator-chosen `id` is the URL slug (`/addon/auth-oidc/<id>/…`) and is
22663
+ * immutable after create.
22664
+ */
22665
+ var ConfigSchemaPassthrough$1 = unknown();
22666
+ var OidcConnectionSchema = object({
22667
+ id: string().min(1),
22668
+ displayName: string(),
22669
+ icon: string(),
22670
+ issuerUrl: string(),
22671
+ clientId: string(),
22672
+ /** Client id + secret present — never the secret value. */
22673
+ configured: boolean(),
22674
+ /**
22675
+ * Values for the connection form schema. `clientSecret` is a keychain
22676
+ * {@link SecretFieldView} or `null` / `''`, never plaintext (D789).
22677
+ */
22678
+ formValues: record(string(), unknown()).optional()
22679
+ });
22680
+ /**
22681
+ * Patch one connection. Omitted or empty `clientSecret` keeps the stored
22682
+ * secret (D787). `{ $secretClear: true }` clears it. `id` is never renamed.
22683
+ */
22684
+ var OidcConnectionUpdateInputSchema = object({
22685
+ id: string().min(1),
22686
+ displayName: string().min(1),
22687
+ icon: string().optional(),
22688
+ issuerUrl: string().optional(),
22689
+ clientId: string().optional(),
22690
+ clientSecret: union([string(), object({ $secretClear: literal(true) })]).optional(),
22691
+ redirectUri: string().optional(),
22692
+ scopes: string().optional(),
22693
+ usernameClaim: _enum([
22694
+ "preferred_username",
22695
+ "email",
22696
+ "sub"
22697
+ ]).optional()
22698
+ });
22699
+ method(object({}), ConfigSchemaPassthrough$1, { auth: "admin" }), method(object({}), array(OidcConnectionSchema).readonly(), { auth: "admin" }), method(object({
22700
+ id: string().min(1).regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "id must be a lowercase slug"),
22701
+ displayName: string().min(1)
22702
+ }), object({ id: string() }), {
22703
+ kind: "mutation",
22704
+ auth: "admin"
22705
+ }), method(OidcConnectionUpdateInputSchema, object({ ok: literal(true) }), {
22706
+ kind: "mutation",
22707
+ auth: "admin"
22708
+ }), method(object({ id: string().min(1) }), object({ ok: literal(true) }), {
22709
+ kind: "mutation",
22710
+ auth: "admin"
22711
+ });
22712
+ /**
22658
22713
  * What started a camera's onboard motion (D672). `camera` is the camera's own
22659
22714
  * firmware; `sensor` is a device the operator ATTACHED to it. Absent on the
22660
22715
  * wire means the camera: only the camera-sensors bridge ever says `sensor`.
@@ -44018,6 +44073,36 @@ Object.freeze({
44018
44073
  addonId: null,
44019
44074
  access: "view"
44020
44075
  },
44076
+ "oidcConnections.connectionFormSchema": {
44077
+ capName: "oidc-connections",
44078
+ capScope: "system",
44079
+ addonId: null,
44080
+ access: "view"
44081
+ },
44082
+ "oidcConnections.createConnection": {
44083
+ capName: "oidc-connections",
44084
+ capScope: "system",
44085
+ addonId: null,
44086
+ access: "create"
44087
+ },
44088
+ "oidcConnections.deleteConnection": {
44089
+ capName: "oidc-connections",
44090
+ capScope: "system",
44091
+ addonId: null,
44092
+ access: "delete"
44093
+ },
44094
+ "oidcConnections.listConnections": {
44095
+ capName: "oidc-connections",
44096
+ capScope: "system",
44097
+ addonId: null,
44098
+ access: "view"
44099
+ },
44100
+ "oidcConnections.updateConnection": {
44101
+ capName: "oidc-connections",
44102
+ capScope: "system",
44103
+ addonId: null,
44104
+ access: "create"
44105
+ },
44021
44106
  "osd.getStatus": {
44022
44107
  capName: "osd",
44023
44108
  capScope: "device",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-google-services",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Google Services — Google Calendar (calendar-source) and Gmail send (smtp-provider) via one OAuth2 account.",
5
5
  "keywords": [
6
6
  "camstack",