@authhero/kysely-adapter 0.9.6 → 0.10.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.
@@ -3155,17 +3155,7 @@ const pr = i.object({
3155
3155
  enabled_clients: i.array(i.string()).default([]).optional(),
3156
3156
  authorization_endpoint: i.string().default("").optional(),
3157
3157
  response_type: i.custom().optional(),
3158
- response_mode: i.custom().optional(),
3159
- // Deprecated
3160
- client_id: i.string().optional(),
3161
- client_secret: i.string().optional(),
3162
- private_key: i.string().optional(),
3163
- kid: i.string().optional(),
3164
- team_id: i.string().optional(),
3165
- token_endpoint: i.string().optional(),
3166
- token_exchange_basic_auth: i.boolean().optional(),
3167
- userinfo_endpoint: i.string().optional(),
3168
- scope: i.string().optional()
3158
+ response_mode: i.custom().optional()
3169
3159
  }), $n = i.object({
3170
3160
  id: i.string(),
3171
3161
  created_at: i.string().transform((n) => n === null ? "" : n),
@@ -4063,7 +4053,7 @@ function va(n) {
4063
4053
  created_at: (/* @__PURE__ */ new Date()).toISOString(),
4064
4054
  updated_at: (/* @__PURE__ */ new Date()).toISOString(),
4065
4055
  ...t
4066
- }, r = JSON.stringify(t.allowed_origins), a = JSON.stringify(t.callbacks), o = JSON.stringify(t.web_origins), c = JSON.stringify(t.allowed_logout_urls);
4056
+ }, r = JSON.stringify(t.allowed_origins), a = JSON.stringify(t.callbacks), o = JSON.stringify(t.web_origins), c = JSON.stringify(t.allowed_logout_urls), d = JSON.stringify(t.allowed_clients);
4067
4057
  return await n.insertInto("applications").values({
4068
4058
  ...s,
4069
4059
  tenant_id: e,
@@ -4072,7 +4062,8 @@ function va(n) {
4072
4062
  callbacks: a,
4073
4063
  allowed_origins: r,
4074
4064
  web_origins: o,
4075
- allowed_logout_urls: c
4065
+ allowed_logout_urls: c,
4066
+ allowed_clients: d
4076
4067
  }).execute(), s;
4077
4068
  };
4078
4069
  }
@@ -4085,7 +4076,8 @@ function wa(n) {
4085
4076
  callbacks: a.callbacks ? JSON.parse(a.callbacks) : [],
4086
4077
  allowed_origins: a.allowed_origins ? JSON.parse(a.allowed_origins) : [],
4087
4078
  web_origins: a.web_origins ? JSON.parse(a.web_origins) : [],
4088
- allowed_logout_urls: a.allowed_logout_urls ? JSON.parse(a.allowed_logout_urls) : []
4079
+ allowed_logout_urls: a.allowed_logout_urls ? JSON.parse(a.allowed_logout_urls) : [],
4080
+ allowed_clients: a.allowed_logout_urls ? JSON.parse(a.allowed_logout_urls) : []
4089
4081
  }))
4090
4082
  });
4091
4083
  }
@@ -4115,6 +4107,7 @@ function xa(n) {
4115
4107
  callbacks: s.callbacks ? JSON.stringify(s.callbacks) : void 0,
4116
4108
  web_origins: s.web_origins ? JSON.stringify(s.web_origins) : void 0,
4117
4109
  allowed_logout_urls: s.allowed_logout_urls ? JSON.stringify(s.allowed_logout_urls) : void 0,
4110
+ allowed_clients: s.allowed_clients ? JSON.stringify(s.allowed_clients) : void 0,
4118
4111
  addons: s.addons ? JSON.stringify(s.addons) : "{}",
4119
4112
  disable_sign_ups: s.disable_sign_ups ? 1 : 0
4120
4113
  };
@@ -7159,6 +7152,7 @@ function Di(n) {
7159
7152
  allowed_origins: t.allowed_origins ? JSON.parse(t.allowed_origins) : [],
7160
7153
  web_origins: t.web_origins ? JSON.parse(t.web_origins) : [],
7161
7154
  allowed_logout_urls: t.allowed_logout_urls ? JSON.parse(t.allowed_logout_urls) : [],
7155
+ allowed_clients: t.allowed_clients ? JSON.parse(t.allowed_clients) : [],
7162
7156
  tenant: R(s),
7163
7157
  // this is really an integer in the database
7164
7158
  disable_sign_ups: !!t.disable_sign_ups
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "0.9.6",
14
+ "version": "0.10.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],
@@ -41,7 +41,7 @@
41
41
  "kysely-bun-sqlite": "^0.3.2",
42
42
  "kysely-planetscale": "^1.4.0",
43
43
  "nanoid": "^5.0.7",
44
- "@authhero/adapter-interfaces": "^0.15.5"
44
+ "@authhero/adapter-interfaces": "^0.16.0"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "tsc && vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts",