@authhero/kysely-adapter 0.7.14 → 0.8.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.
@@ -3386,20 +3386,13 @@ i.object({
3386
3386
  created_at: i.string(),
3387
3387
  ...xr.shape
3388
3388
  });
3389
- i.object({
3390
- private_key: i.string().optional(),
3391
- public_key: i.string().optional(),
3392
- kid: i.string(),
3393
- created_at: i.string().optional(),
3394
- revoked_at: i.string().optional()
3395
- });
3396
3389
  i.object({
3397
3390
  kid: i.string().openapi({ description: "The key id of the signing key" }),
3398
3391
  cert: i.string().openapi({ description: "The public certificate of the signing key" }),
3399
3392
  fingerprint: i.string().openapi({ description: "The cert fingerprint" }),
3400
3393
  thumbprint: i.string().openapi({ description: "The cert thumbprint" }),
3401
3394
  pkcs7: i.string().optional().openapi({
3402
- description: "The public certificate of the signing key in pkcs7 format"
3395
+ description: "The private key in pkcs7 format"
3403
3396
  }),
3404
3397
  current: i.boolean().optional().openapi({ description: "True if the key is the current key" }),
3405
3398
  next: i.boolean().optional().openapi({ description: "True if the key is the next key" }),
@@ -4175,13 +4168,13 @@ function ja(n) {
4175
4168
  };
4176
4169
  }
4177
4170
  function Na(n) {
4178
- return async (e, t) => !!(await n.updateTable("keys").set({ revoked_at: t.toISOString() }).where("kid", "=", e).execute()).length;
4171
+ return async (e, t) => !!(await n.updateTable("keys").set(t).where("kid", "=", e).execute()).length;
4179
4172
  }
4180
4173
  function Ca(n) {
4181
4174
  return {
4182
4175
  create: ja(n),
4183
4176
  list: Za(n),
4184
- revoke: Na(n)
4177
+ update: Na(n)
4185
4178
  };
4186
4179
  }
4187
4180
  function Ia(n) {
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.7.14",
14
+ "version": "0.8.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.12.0"
44
+ "@authhero/adapter-interfaces": "^0.13.0"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "tsc && vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts",