@absolutejs/auth 0.56.14 → 0.56.15

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.
@@ -10,4 +10,4 @@ export { agentHasScopes, resolveAgentPrincipal } from './principal';
10
10
  export { agentAuthChallenge, agentAuthContextPlugin } from './context';
11
11
  export { agentAuthPlugin } from './routes';
12
12
  export { createInMemoryAgentDelegationStore, createInMemoryAgentIdentityRegistrationStore, createInMemoryAgentRegistrationStore } from './inMemoryStores';
13
- export { agentDelegationsTable, agentIdentityRegistrationsTable, agentRegistrationsTable, createNeonAgentDelegationStore, createNeonAgentIdentityRegistrationStore, createNeonAgentRegistrationStore, createPostgresAgentDelegationStore, createPostgresAgentIdentityRegistrationStore, createPostgresAgentRegistrationStore } from './postgresStores';
13
+ export { agentDelegationsTable, agentIdentityRegistrationsTable, agentRegistrationsTable, createNeonAgentDelegationStore, createNeonAgentIdentityRegistrationStore, createNeonAgentRegistrationStore, createDrizzleAgentDelegationStore, createPostgresAgentDelegationStore, createPostgresAgentIdentityRegistrationStore, createPostgresAgentRegistrationStore } from './postgresStores';
@@ -13568,10 +13568,10 @@ var identityRegistrationValues = (registration) => ({
13568
13568
  user_id: registration.userId ?? null,
13569
13569
  version: registration.version
13570
13570
  });
13571
- var createNeonAgentDelegationStore = (databaseUrl) => createPostgresAgentDelegationStore(createNeonDatabase(databaseUrl));
13571
+ var createNeonAgentDelegationStore = (databaseUrl) => createDrizzleAgentDelegationStore(createNeonDatabase(databaseUrl));
13572
13572
  var createNeonAgentIdentityRegistrationStore = (databaseUrl) => createPostgresAgentIdentityRegistrationStore(createNeonDatabase(databaseUrl));
13573
13573
  var createNeonAgentRegistrationStore = (databaseUrl) => createPostgresAgentRegistrationStore(createNeonDatabase(databaseUrl));
13574
- var createPostgresAgentDelegationStore = (db) => ({
13574
+ var createDrizzleAgentDelegationStore = (db) => ({
13575
13575
  findActiveDelegation: async ({
13576
13576
  agentId,
13577
13577
  now = Date.now(),
@@ -13610,6 +13610,7 @@ var createPostgresAgentDelegationStore = (db) => ({
13610
13610
  });
13611
13611
  }
13612
13612
  });
13613
+ var createPostgresAgentDelegationStore = createDrizzleAgentDelegationStore;
13613
13614
  var createPostgresAgentIdentityRegistrationStore = (db) => ({
13614
13615
  create: async (registration) => {
13615
13616
  const rows = await db.insert(agentIdentityRegistrationsTable).values(identityRegistrationValues(registration)).onConflictDoNothing().returning({ id: agentIdentityRegistrationsTable.registration_id });
@@ -13697,6 +13698,7 @@ export {
13697
13698
  createInMemoryAgentIdentityRegistrationStore,
13698
13699
  createInMemoryAgentIdentityAssertionJtiStore,
13699
13700
  createInMemoryAgentDelegationStore,
13701
+ createDrizzleAgentDelegationStore,
13700
13702
  createClientIdMetadataResolver,
13701
13703
  createAgentRegistrationCredentialVerifier,
13702
13704
  createAgentRegistrationClient,
@@ -13722,5 +13724,5 @@ export {
13722
13724
  AGENT_CLAIM_GRANT_TYPE
13723
13725
  };
13724
13726
 
13725
- //# debugId=DE3C9B11A35558B764756E2164756E21
13727
+ //# debugId=44573BF0288F41C864756E2164756E21
13726
13728
  //# sourceMappingURL=index.js.map