cauthy-auth 0.4.0 → 0.5.1

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
@@ -267,7 +267,12 @@ function toWire(theme) {
267
267
  buttonRadius: "button_radius",
268
268
  fontFamily: "font_family",
269
269
  logoUrl: "logo_url",
270
- fonts: "fonts"
270
+ fonts: "fonts",
271
+ layout: "layout",
272
+ panelColors: "panel_colors",
273
+ panelText: "panel_text",
274
+ panelIconUrl: "panel_icon_url",
275
+ texts: "texts"
271
276
  };
272
277
  const wire = {};
273
278
  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,6 +1,6 @@
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';
3
- export { CauthyTheme, ImportedTheme, PushThemeOptions, StackmythThemeOptions, ThemeFont, pushTheme, themeFromStackmyth } from './theme.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
+ 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';
6
6
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
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';
3
- export { CauthyTheme, ImportedTheme, PushThemeOptions, StackmythThemeOptions, ThemeFont, pushTheme, themeFromStackmyth } from './theme.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
+ 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';
6
6
 
package/dist/index.js CHANGED
@@ -288,7 +288,12 @@ function toWire(theme) {
288
288
  buttonRadius: "button_radius",
289
289
  fontFamily: "font_family",
290
290
  logoUrl: "logo_url",
291
- fonts: "fonts"
291
+ fonts: "fonts",
292
+ layout: "layout",
293
+ panelColors: "panel_colors",
294
+ panelText: "panel_text",
295
+ panelIconUrl: "panel_icon_url",
296
+ texts: "texts"
292
297
  };
293
298
  const wire = {};
294
299
  for (const [k, v] of Object.entries(theme)) {
@@ -315,7 +320,12 @@ function fromWire(wire) {
315
320
  button_radius: "buttonRadius",
316
321
  font_family: "fontFamily",
317
322
  logo_url: "logoUrl",
318
- fonts: "fonts"
323
+ fonts: "fonts",
324
+ layout: "layout",
325
+ panel_colors: "panelColors",
326
+ panel_text: "panelText",
327
+ panel_icon_url: "panelIconUrl",
328
+ texts: "texts"
319
329
  };
320
330
  const theme = {};
321
331
  for (const [k, v] of Object.entries(wire ?? {})) if (names[k] && v !== void 0 && v !== null && v !== "") theme[names[k]] = v;
@@ -504,10 +514,6 @@ function createSystem(given = {}) {
504
514
  theme: {
505
515
  async get(of = clientId) {
506
516
  return fromWire(await data("GET", `/v1/oauth/clients/${id(of)}/theme`));
507
- },
508
- async set(theme, of = clientId) {
509
- if (theme === null) await call("DELETE", `/v1/oauth/clients/${id(of)}/theme`);
510
- else await call("PUT", `/v1/oauth/clients/${id(of)}/theme`, toWire(theme));
511
517
  }
512
518
  },
513
519
  async publicJwks() {