@absolutejs/auth 0.44.3 → 0.45.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.
package/LICENSE CHANGED
@@ -1,24 +1,88 @@
1
- ```
2
- # Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0)
1
+ # Business Source License 1.1
3
2
 
4
- By using this project, you agree to the following terms under the Creative Commons Attribution-NonCommercial 4.0 International License.
3
+ **Licensor:** Alex Kahn
5
4
 
6
- ## License Summary
7
- This license allows you to:
8
- - **Share**: Copy and redistribute the material in any medium or format.
9
- - **Adapt**: Remix, transform, and build upon the material.
5
+ **Licensed Work:** @absolutejs/auth (https://github.com/absolutejs/auth)
10
6
 
11
- **Under the following conditions**:
12
- - **Attribution**: You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
13
- - **Non-Commercial**: You may not use the material for commercial purposes.
7
+ **Change Date:** May 29, 2030
14
8
 
15
- ## Full License Text
16
- The full license text can be found at: https://creativecommons.org/licenses/by-nc/4.0/legalcode
9
+ **Change License:** Apache License, Version 2.0
17
10
 
18
- ## Contact Information for Commercial Use
19
- For commercial use, licensing inquiries, or additional permissions, please contact:
20
- Alex Kahn
21
- alexkahndev@gmail.com
22
- alexkahndev.github.io
23
- ```
11
+ ---
24
12
 
13
+ ## Terms
14
+
15
+ The Licensor hereby grants you the right to copy, modify, create derivative
16
+ works, redistribute, and make non-production use of the Licensed Work. The
17
+ Licensor may make an Additional Use Grant, permitting limited production use.
18
+
19
+ ### Additional Use Grant
20
+
21
+ You may use the Licensed Work in production, provided your use does not include
22
+ any of the following:
23
+
24
+ 1. **Offering a Competing Service.** You may not offer the Licensed Work, or
25
+ any derivative or substantial portion of it, to third parties as a hosted or
26
+ managed service that competes with a hosted authentication, identity, or user-management service (including, but not limited to, services like Auth0, Clerk, Stytch, WorkOS, Supabase Auth, or Firebase Auth). This includes any
27
+ product whose primary value to its users is the functionality the Licensed
28
+ Work provides.
29
+
30
+ 2. **Resale or Redistribution as a Standalone Product.** You may not sell,
31
+ license, or distribute the Licensed Work, or any derivative or fork of it,
32
+ as a standalone commercial product.
33
+
34
+ 3. **Removal of Attribution.** Any derivative work, fork, or redistribution of
35
+ the Licensed Work must prominently credit AbsoluteJS and include a link to
36
+ the original project repository (https://github.com/absolutejs/auth).
37
+
38
+ For clarity, the following uses are expressly permitted:
39
+
40
+ - Using the Licensed Work to build and operate your own applications, websites,
41
+ internal tools, or SaaS products (whether commercial or non-commercial), so
42
+ long as the Licensed Work itself is not the primary product you are selling.
43
+ - Using the Licensed Work as a dependency in commercial software you build and
44
+ sell, as long as the software is not itself a competing managed service of
45
+ the kind described in clause 1.
46
+ - Providing consulting, development, or professional services to clients using
47
+ the Licensed Work.
48
+ - Forking and modifying the Licensed Work for your own internal use, provided
49
+ attribution is maintained.
50
+
51
+ ### Change Date and Change License
52
+
53
+ On the Change Date specified above, or on such other date as the Licensor may
54
+ specify by written notice, the Licensed Work will be made available under the
55
+ Change License (Apache License, Version 2.0). Until the Change Date, the terms
56
+ of this Business Source License 1.1 apply.
57
+
58
+ ### Trademark
59
+
60
+ This license does not grant you any rights to use the "AbsoluteJS" or
61
+ "@absolutejs" name, logo, or any related trademarks. Forks and derivative works
62
+ must not be named or branded in a manner that suggests endorsement by or
63
+ affiliation with AbsoluteJS or the Licensor.
64
+
65
+ ### Notices
66
+
67
+ You must not remove or obscure any licensing, copyright, or other notices
68
+ included in the Licensed Work.
69
+
70
+ ### No Warranty
71
+
72
+ THE LICENSED WORK IS PROVIDED "AS IS". THE LICENSOR HEREBY DISCLAIMS ALL
73
+ WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
74
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO
75
+ EVENT SHALL THE LICENSOR BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY,
76
+ WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR
77
+ IN CONNECTION WITH THE LICENSED WORK OR THE USE OR OTHER DEALINGS IN THE
78
+ LICENSED WORK.
79
+
80
+ ---
81
+
82
+ ## Contact
83
+
84
+ For commercial licensing inquiries or additional permissions, contact:
85
+
86
+ - **Alex Kahn**
87
+ - alexkahndev@gmail.com
88
+ - alexkahndev.github.io
@@ -1,4 +1,4 @@
1
- import { type AnyPgDatabase } from '../stores/postgres';
1
+ import { type AnyPgDatabase, type PgQueryResultHKT } from '../stores/postgres';
2
2
  import type { AccessTokenStore, ApiClientStore, ApiKeyStore } from './types';
3
3
  export declare const accessTokensTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
4
4
  name: "auth_access_tokens";
@@ -502,6 +502,6 @@ export declare const apiKeysTable: import("drizzle-orm/pg-core").PgTableWithColu
502
502
  export declare const createNeonAccessTokenStore: (databaseUrl: string) => AccessTokenStore;
503
503
  export declare const createNeonApiClientStore: (databaseUrl: string) => ApiClientStore;
504
504
  export declare const createNeonApiKeyStore: (databaseUrl: string) => ApiKeyStore;
505
- export declare const createPostgresAccessTokenStore: (db: AnyPgDatabase) => AccessTokenStore;
506
- export declare const createPostgresApiClientStore: (db: AnyPgDatabase) => ApiClientStore;
507
- export declare const createPostgresApiKeyStore: (db: AnyPgDatabase) => ApiKeyStore;
505
+ export declare const createPostgresAccessTokenStore: <Q extends PgQueryResultHKT>(db: AnyPgDatabase<Q>) => AccessTokenStore;
506
+ export declare const createPostgresApiClientStore: <Q extends PgQueryResultHKT>(db: AnyPgDatabase<Q>) => ApiClientStore;
507
+ export declare const createPostgresApiKeyStore: <Q extends PgQueryResultHKT>(db: AnyPgDatabase<Q>) => ApiKeyStore;
@@ -2498,7 +2498,9 @@ var oauthDeviceAuthorizationsTable = pgTable9("auth_oauth_device_authorizations"
2498
2498
  length: ID_LENGTH7
2499
2499
  }).primaryKey(),
2500
2500
  expires_at_ms: bigint7("expires_at_ms", { mode: "number" }).notNull(),
2501
- interval_seconds: bigint7("interval_seconds", { mode: "number" }).notNull(),
2501
+ interval_seconds: bigint7("interval_seconds", {
2502
+ mode: "number"
2503
+ }).notNull(),
2502
2504
  scopes: text5("scopes").array().notNull(),
2503
2505
  status: varchar9("status", { length: 16 }).notNull(),
2504
2506
  user_code: varchar9("user_code", { length: 16 }).notNull().unique(),
@@ -2748,7 +2750,13 @@ var vcPresentationRequestsTable = pgTable18("auth_vc_presentation_requests", {
2748
2750
 
2749
2751
  // src/vault/postgresVaultStore.ts
2750
2752
  import { and as and7, eq as eq19 } from "drizzle-orm";
2751
- import { bigint as bigint17, pgTable as pgTable19, primaryKey as primaryKey4, text as text8, varchar as varchar19 } from "drizzle-orm/pg-core";
2753
+ import {
2754
+ bigint as bigint17,
2755
+ pgTable as pgTable19,
2756
+ primaryKey as primaryKey4,
2757
+ text as text8,
2758
+ varchar as varchar19
2759
+ } from "drizzle-orm/pg-core";
2752
2760
  var ID_LENGTH16 = 255;
2753
2761
  var vaultEntriesTable = pgTable19("auth_vault_entries", {
2754
2762
  created_at_ms: bigint17("created_at_ms", { mode: "number" }).notNull(),
@@ -3133,5 +3141,5 @@ var main = async () => {
3133
3141
  };
3134
3142
  await main();
3135
3143
 
3136
- //# debugId=6E4C57DBFBD5A3C964756E2164756E21
3144
+ //# debugId=A939370FFB3E484364756E2164756E21
3137
3145
  //# sourceMappingURL=migrate.js.map