kavachos 0.1.1 → 0.1.3

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 KavachOS
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.js CHANGED
@@ -15631,6 +15631,31 @@ function buildStatements(provider) {
15631
15631
  resource TEXT,
15632
15632
  expires_at ${ts} NOT NULL,
15633
15633
  created_at ${ts} NOT NULL
15634
+ )`,
15635
+ // ------------------------------------------------------------------
15636
+ // kavach_oauth_accounts (provider account linking)
15637
+ // ------------------------------------------------------------------
15638
+ `CREATE TABLE ${ifne} kavach_oauth_accounts (
15639
+ id TEXT NOT NULL PRIMARY KEY,
15640
+ user_id TEXT NOT NULL,
15641
+ provider TEXT NOT NULL,
15642
+ provider_account_id TEXT NOT NULL,
15643
+ access_token TEXT NOT NULL,
15644
+ refresh_token TEXT,
15645
+ expires_at ${tsNull},
15646
+ created_at ${ts} NOT NULL,
15647
+ updated_at ${ts} NOT NULL
15648
+ )`,
15649
+ // ------------------------------------------------------------------
15650
+ // kavach_oauth_states (PKCE state for CSRF protection)
15651
+ // ------------------------------------------------------------------
15652
+ `CREATE TABLE ${ifne} kavach_oauth_states (
15653
+ state TEXT NOT NULL PRIMARY KEY,
15654
+ code_verifier TEXT NOT NULL,
15655
+ redirect_uri TEXT NOT NULL,
15656
+ provider TEXT NOT NULL,
15657
+ expires_at ${ts} NOT NULL,
15658
+ created_at ${ts} NOT NULL
15634
15659
  )`,
15635
15660
  // ------------------------------------------------------------------
15636
15661
  // kavach_budget_policies