cauthy-auth 0.5.0 → 0.5.2

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.
@@ -1,4 +1,4 @@
1
- import { J as JsonValue, S as Session, f as SessionStatus, e as SessionOrganization, c as CauthySystem, P as PublicSession, b as CauthyOptions } from './system-CL3Q30FT.js';
1
+ import { J as JsonValue, S as Session, f as SessionStatus, e as SessionOrganization, c as CauthySystem, P as PublicSession, b as CauthyOptions } from './system-DvcQjORr.js';
2
2
  import { JWTVerifyGetKey } from 'jose';
3
3
 
4
4
  /** Something that happened in Cauthy, as a subscriber is told. Moments are UTC. */
@@ -1,4 +1,4 @@
1
- import { J as JsonValue, S as Session, f as SessionStatus, e as SessionOrganization, c as CauthySystem, P as PublicSession, b as CauthyOptions } from './system-CdvktS7x.mjs';
1
+ import { J as JsonValue, S as Session, f as SessionStatus, e as SessionOrganization, c as CauthySystem, P as PublicSession, b as CauthyOptions } from './system-CR8p4BjB.mjs';
2
2
  import { JWTVerifyGetKey } from 'jose';
3
3
 
4
4
  /** Something that happened in Cauthy, as a subscriber is told. Moments are UTC. */
package/dist/cli.js CHANGED
@@ -272,7 +272,9 @@ function toWire(theme) {
272
272
  panelColors: "panel_colors",
273
273
  panelText: "panel_text",
274
274
  panelIconUrl: "panel_icon_url",
275
- texts: "texts"
275
+ texts: "texts",
276
+ inputBackground: "input_background",
277
+ inputBorder: "input_border"
276
278
  };
277
279
  const wire = {};
278
280
  for (const [k, v] of Object.entries(theme)) {
@@ -1,6 +1,6 @@
1
1
  import { FastifyReply, FastifyPluginAsync } from 'fastify';
2
- import { C as Cauthy } from './cauthy-Dg-DNIo9.mjs';
3
- import { S as Session } from './system-CdvktS7x.mjs';
2
+ import { C as Cauthy } from './cauthy-hswMoS7B.mjs';
3
+ import { S as Session } from './system-CR8p4BjB.mjs';
4
4
  import 'jose';
5
5
  import './theme.mjs';
6
6
 
package/dist/fastify.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { FastifyReply, FastifyPluginAsync } from 'fastify';
2
- import { C as Cauthy } from './cauthy--iqtLWNa.js';
3
- import { S as Session } from './system-CL3Q30FT.js';
2
+ import { C as Cauthy } from './cauthy-BCTCqubt.js';
3
+ import { S as Session } from './system-DvcQjORr.js';
4
4
  import 'jose';
5
5
  import './theme.js';
6
6
 
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- export { C as Cauthy, a as CauthyEvent, b as CauthyWebhookError, R as Resolved, V as VerifyWebhookOptions, c as createCauthy, v as verifyWebhook } from './cauthy-Dg-DNIo9.mjs';
2
- export { C as CauthyApiError, a as CauthyConfigError, b as CauthyOptions, c as CauthySystem, J as JsonValue, N as NewMember, O as Organization, d as OrganizationMember, P as PublicSession, S as Session, e as SessionOrganization, f as SessionStatus, g as SessionUser, h as SystemKey, i as SystemOptions, j as createSystem } from './system-CdvktS7x.mjs';
1
+ export { C as Cauthy, a as CauthyEvent, b as CauthyWebhookError, R as Resolved, V as VerifyWebhookOptions, c as createCauthy, v as verifyWebhook } from './cauthy-hswMoS7B.mjs';
2
+ export { C as CauthyApiError, a as CauthyConfigError, b as CauthyOptions, c as CauthySystem, J as JsonValue, N as NewMember, O as Organization, d as OrganizationMember, P as PublicSession, S as Session, e as SessionOrganization, f as SessionStatus, g as SessionUser, h as SystemKey, i as SystemOptions, j as createSystem } from './system-CR8p4BjB.mjs';
3
3
  export { CauthyTheme, ImportedTheme, PushThemeOptions, StackmythThemeOptions, ThemeFont, ThemeTexts, pushTheme, themeFromStackmyth } from './theme.mjs';
4
4
  export { P as Permitted, a as PolicyPermission, b as PolicyRole, c as PushPolicyOptions, d as can, p as pushPolicy } from './permissions-B-a3eN0h.mjs';
5
5
  import 'jose';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { C as Cauthy, a as CauthyEvent, b as CauthyWebhookError, R as Resolved, V as VerifyWebhookOptions, c as createCauthy, v as verifyWebhook } from './cauthy--iqtLWNa.js';
2
- export { C as CauthyApiError, a as CauthyConfigError, b as CauthyOptions, c as CauthySystem, J as JsonValue, N as NewMember, O as Organization, d as OrganizationMember, P as PublicSession, S as Session, e as SessionOrganization, f as SessionStatus, g as SessionUser, h as SystemKey, i as SystemOptions, j as createSystem } from './system-CL3Q30FT.js';
1
+ export { C as Cauthy, a as CauthyEvent, b as CauthyWebhookError, R as Resolved, V as VerifyWebhookOptions, c as createCauthy, v as verifyWebhook } from './cauthy-BCTCqubt.js';
2
+ export { C as CauthyApiError, a as CauthyConfigError, b as CauthyOptions, c as CauthySystem, J as JsonValue, N as NewMember, O as Organization, d as OrganizationMember, P as PublicSession, S as Session, e as SessionOrganization, f as SessionStatus, g as SessionUser, h as SystemKey, i as SystemOptions, j as createSystem } from './system-DvcQjORr.js';
3
3
  export { CauthyTheme, ImportedTheme, PushThemeOptions, StackmythThemeOptions, ThemeFont, ThemeTexts, pushTheme, themeFromStackmyth } from './theme.js';
4
4
  export { P as Permitted, a as PolicyPermission, b as PolicyRole, c as PushPolicyOptions, d as can, p as pushPolicy } from './permissions-B-a3eN0h.js';
5
5
  import 'jose';
package/dist/index.js CHANGED
@@ -293,7 +293,9 @@ function toWire(theme) {
293
293
  panelColors: "panel_colors",
294
294
  panelText: "panel_text",
295
295
  panelIconUrl: "panel_icon_url",
296
- texts: "texts"
296
+ texts: "texts",
297
+ inputBackground: "input_background",
298
+ inputBorder: "input_border"
297
299
  };
298
300
  const wire = {};
299
301
  for (const [k, v] of Object.entries(theme)) {
@@ -325,7 +327,9 @@ function fromWire(wire) {
325
327
  panel_colors: "panelColors",
326
328
  panel_text: "panelText",
327
329
  panel_icon_url: "panelIconUrl",
328
- texts: "texts"
330
+ texts: "texts",
331
+ input_background: "inputBackground",
332
+ input_border: "inputBorder"
329
333
  };
330
334
  const theme = {};
331
335
  for (const [k, v] of Object.entries(wire ?? {})) if (names[k] && v !== void 0 && v !== null && v !== "") theme[names[k]] = v;
@@ -514,10 +518,6 @@ function createSystem(given = {}) {
514
518
  theme: {
515
519
  async get(of = clientId) {
516
520
  return fromWire(await data("GET", `/v1/oauth/clients/${id(of)}/theme`));
517
- },
518
- async set(theme, of = clientId) {
519
- if (theme === null) await call("DELETE", `/v1/oauth/clients/${id(of)}/theme`);
520
- else await call("PUT", `/v1/oauth/clients/${id(of)}/theme`, toWire(theme));
521
521
  }
522
522
  },
523
523
  async publicJwks() {