kassza 0.12.0 → 0.14.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.
- package/README.en.md +48 -0
- package/README.md +427 -32
- package/agents/README.md +26 -6
- package/agents/api.md +218 -3
- package/agents/pitfalls.md +27 -3
- package/agents/recipes.md +280 -51
- package/agents/skills/kassza/SKILL.md +14 -8
- package/agents/skills/migrate-from-szamlazz-js/SKILL.md +39 -0
- package/dist/batch/index.cjs +346 -0
- package/dist/batch/index.d.cts +91 -0
- package/dist/batch/index.d.ts +91 -0
- package/dist/batch/index.js +339 -0
- package/dist/cli.cjs +643 -0
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +643 -0
- package/dist/client-CLFvJCVW.cjs +1452 -0
- package/dist/{client-CL3fuH6A.js → client-Cvf-hTz_.js} +306 -515
- package/dist/client-DeWWQ-RZ.d.ts +341 -0
- package/dist/client-SVZu25MB.d.cts +341 -0
- package/dist/context-CFNKzStE.d.cts +449 -0
- package/dist/context-kb33TgzE.d.ts +449 -0
- package/dist/cookie-stores/index.cjs +21 -150
- package/dist/cookie-stores/index.d.cts +4 -63
- package/dist/cookie-stores/index.d.ts +4 -63
- package/dist/cookie-stores/index.js +3 -144
- package/dist/create-CflXrPip.js +204 -0
- package/dist/create-CvUvLUaT.cjs +257 -0
- package/dist/{create-once-D0pwuenl.cjs → create-once-9yxR_Er_.cjs} +291 -33
- package/dist/create-once-Bh6fOWkW.d.cts +20 -0
- package/dist/{create-once-CqdYmQD8.js → create-once-Ca2gMk1h.js} +250 -34
- package/dist/create-once-VKp0tVow.d.ts +20 -0
- package/dist/{crypto-B8lERvR1.cjs → crypto-Dpn4FHQ6.cjs} +9 -0
- package/dist/{crypto-DK_osBVy.js → crypto-usDg8L2K.js} +4 -1
- package/dist/data-link/index.cjs +232 -0
- package/dist/data-link/index.d.cts +29 -0
- package/dist/data-link/index.d.ts +29 -0
- package/dist/data-link/index.js +224 -0
- package/dist/delegation/index.cjs +35 -34
- package/dist/delegation/index.d.cts +2 -1
- package/dist/delegation/index.d.ts +2 -1
- package/dist/delegation/index.js +4 -3
- package/dist/{errors-DLrb0g64.js → errors-DtN4g5Z9.js} +9 -1
- package/dist/{errors-DxeuTslP.cjs → errors-EE96_6D_.cjs} +20 -0
- package/dist/get-BdMTseh4.cjs +271 -0
- package/dist/get-Byc9T5WO.d.cts +151 -0
- package/dist/get-Byc9T5WO.d.ts +151 -0
- package/dist/get-CZEShCcj.js +260 -0
- package/dist/index-BhUPY_EH.d.cts +109 -0
- package/dist/index-BqGgQ4t3.d.ts +109 -0
- package/dist/{index-CYAGCdKJ.d.cts → index-C-7yWV7L.d.cts} +24 -1
- package/dist/{index-CYAGCdKJ.d.ts → index-C-7yWV7L.d.ts} +24 -1
- package/dist/index.cjs +19 -5
- package/dist/index.d.cts +11 -19
- package/dist/index.d.ts +11 -19
- package/dist/index.js +6 -6
- package/dist/ipn/index.cjs +26 -5
- package/dist/ipn/index.d.cts +12 -1
- package/dist/ipn/index.d.ts +12 -1
- package/dist/ipn/index.js +26 -6
- package/dist/issue-Bin4tKD_.cjs +988 -0
- package/dist/issue-DMA1Nbr1.js +905 -0
- package/dist/journal/index.cjs +454 -0
- package/dist/journal/index.d.cts +18 -0
- package/dist/journal/index.d.ts +18 -0
- package/dist/journal/index.js +445 -0
- package/dist/journal-DvI81Kt7.d.cts +114 -0
- package/dist/journal-Y9qrIB8G.d.ts +114 -0
- package/dist/mcp/index.cjs +10 -0
- package/dist/mcp/index.d.cts +71 -0
- package/dist/mcp/index.d.ts +71 -0
- package/dist/mcp/index.js +2 -0
- package/dist/money/index.cjs +2 -1
- package/dist/money/index.d.cts +2 -2
- package/dist/money/index.d.ts +2 -2
- package/dist/money/index.js +2 -2
- package/dist/{money-DAA7OwiO.js → money-Cw457SD6.js} +120 -12
- package/dist/{money-DrhGkWHW.cjs → money-K9j0wPit.cjs} +124 -10
- package/dist/nav/index.cjs +1046 -0
- package/dist/nav/index.d.cts +247 -0
- package/dist/nav/index.d.ts +247 -0
- package/dist/nav/index.js +1012 -0
- package/dist/nav-BNbc8U0R.cjs +203 -0
- package/dist/nav-BcCerwWS.js +156 -0
- package/dist/node/index.cjs +124 -0
- package/dist/node/index.d.cts +35 -0
- package/dist/node/index.d.ts +35 -0
- package/dist/node/index.js +120 -0
- package/dist/observe/index.cjs +311 -0
- package/dist/observe/index.d.cts +53 -0
- package/dist/observe/index.d.ts +53 -0
- package/dist/observe/index.js +303 -0
- package/dist/once-BN_3B5OF.cjs +103 -0
- package/dist/once-CqqZxsXG.js +74 -0
- package/dist/parse-Cr7yQ3_z.js +291 -0
- package/dist/parse-DOA2XQ3e.cjs +380 -0
- package/dist/payments/barion.cjs +26 -2
- package/dist/payments/barion.d.cts +2 -2
- package/dist/payments/barion.d.ts +2 -2
- package/dist/payments/barion.js +26 -2
- package/dist/payments/index.cjs +7 -2
- package/dist/payments/index.d.cts +4 -4
- package/dist/payments/index.d.ts +4 -4
- package/dist/payments/index.js +3 -3
- package/dist/payments/paypal.cjs +16 -2
- package/dist/payments/paypal.d.cts +2 -2
- package/dist/payments/paypal.d.ts +2 -2
- package/dist/payments/paypal.js +16 -2
- package/dist/payments/revolut.cjs +17 -3
- package/dist/payments/revolut.d.cts +2 -2
- package/dist/payments/revolut.d.ts +2 -2
- package/dist/payments/revolut.js +17 -3
- package/dist/payments/simplepay.cjs +37 -5
- package/dist/payments/simplepay.d.cts +2 -2
- package/dist/payments/simplepay.d.ts +2 -2
- package/dist/payments/simplepay.js +37 -5
- package/dist/payments/stripe.cjs +20 -3
- package/dist/payments/stripe.d.cts +2 -2
- package/dist/payments/stripe.d.ts +2 -2
- package/dist/payments/stripe.js +20 -3
- package/dist/push-BXj0Sf0Z.d.ts +52 -0
- package/dist/push-D4nNbCNV.d.cts +52 -0
- package/dist/reference-B5TATqb5.js +124 -0
- package/dist/reference-BIdYMK0t.cjs +183 -0
- package/dist/reports/index.cjs +11 -164
- package/dist/reports/index.d.cts +1 -1
- package/dist/reports/index.d.ts +1 -1
- package/dist/reports/index.js +1 -154
- package/dist/request-body-CH6ZGOrq.cjs +34 -0
- package/dist/request-body-uZHMRlQr.js +29 -0
- package/dist/serialize-B2eFh3D-.js +219 -0
- package/dist/serialize-CquIsxA-.cjs +290 -0
- package/dist/server-BrJUbXs7.js +1505 -0
- package/dist/server-Dw9j8Mnd.cjs +1558 -0
- package/dist/session-Ckl5eJhV.d.ts +7 -0
- package/dist/{session-CKOuE6Jc.cjs → session-DeM5vjvC.cjs} +69 -13
- package/dist/{session-rMKaJcmq.js → session-SaEEXu2N.js} +58 -14
- package/dist/session-YbChChx7.d.cts +7 -0
- package/dist/storage/fs.cjs +1 -1
- package/dist/storage/fs.js +1 -1
- package/dist/storage/index.cjs +1 -1
- package/dist/storage/index.js +1 -1
- package/dist/store-C1rHd9DB.d.cts +19 -0
- package/dist/store-C1rHd9DB.d.ts +19 -0
- package/dist/stores/index.cjs +24 -0
- package/dist/stores/index.d.cts +4 -0
- package/dist/stores/index.d.ts +4 -0
- package/dist/stores/index.js +3 -0
- package/dist/stores-BNrS0dWl.cjs +506 -0
- package/dist/stores-DhjGBrl_.js +441 -0
- package/dist/testing/index.cjs +1500 -15
- package/dist/testing/index.d.cts +198 -3
- package/dist/testing/index.d.ts +198 -3
- package/dist/testing/index.js +1498 -15
- package/dist/{types-COf1LAD-.d.ts → types-B1A8mUIE.d.cts} +14 -2
- package/dist/{types-COf1LAD-.d.cts → types-ByAEvGsZ.d.ts} +14 -2
- package/dist/{types-k--zHf4l.d.ts → types-D1zDOH_F.d.ts} +1 -1
- package/dist/{types-DH8QoNZK.d.cts → types-lnKkQdot.d.cts} +1 -1
- package/dist/warnings-B3DXnveC.d.cts +31 -0
- package/dist/warnings-B3DXnveC.d.ts +31 -0
- package/dist/warnings-DeIw5RFj.cjs +20 -0
- package/dist/warnings-DwTl5J-2.js +15 -0
- package/dist/{webhook-D4lvtex1.js → webhook-CQVShAfI.js} +47 -26
- package/dist/{webhook-C76bV-4R.cjs → webhook-Ckj-_hPD.cjs} +70 -25
- package/dist/webhook-CmdhGiH5.d.cts +11 -0
- package/dist/webhook-D6lEejob.d.ts +11 -0
- package/llms.txt +6 -5
- package/package.json +134 -4
- package/dist/client-CickRRFr.d.ts +0 -838
- package/dist/client-CsmGIFRS.cjs +0 -1637
- package/dist/client-DvWZoX_E.d.cts +0 -838
- package/dist/issue-BsyYdrIG.cjs +0 -1531
- package/dist/issue-C6Fcjvln.js +0 -1274
- package/dist/session-Dm_45x8K.d.cts +0 -11
- package/dist/session-Dm_45x8K.d.ts +0 -11
- package/dist/webhook-CfaDgcL0.d.cts +0 -6
- package/dist/webhook-q2OzNwd7.d.ts +0 -6
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { n as KeyValueStore } from "./store-C1rHd9DB.js";
|
|
2
|
+
//#region src/core/session.d.ts
|
|
3
|
+
type CookieStore = KeyValueStore;
|
|
4
|
+
declare const SESSION_TTL_SECONDS: number;
|
|
5
|
+
declare function memoryCookieStore(): CookieStore;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { SESSION_TTL_SECONDS as n, memoryCookieStore as r, CookieStore as t };
|
|
@@ -1,28 +1,72 @@
|
|
|
1
|
-
//#region src/core/
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
//#region src/core/store.ts
|
|
2
|
+
function storeCapabilities(store) {
|
|
3
|
+
return {
|
|
4
|
+
setIfAbsent: typeof store.setIfAbsent === "function",
|
|
5
|
+
increment: typeof store.increment === "function",
|
|
6
|
+
deleteIfEquals: typeof store.deleteIfEquals === "function"
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
function expiryOf(ttlSeconds) {
|
|
10
|
+
if (ttlSeconds === Number.POSITIVE_INFINITY) return ttlSeconds;
|
|
11
|
+
if (Number.isNaN(ttlSeconds)) return Date.now() + 1e3;
|
|
12
|
+
return Date.now() + ttlSeconds * 1e3;
|
|
13
|
+
}
|
|
14
|
+
function parseCounter(value) {
|
|
15
|
+
if (value === void 0) return 0;
|
|
16
|
+
const parsed = Number.parseInt(value, 10);
|
|
17
|
+
return Number.isInteger(parsed) ? parsed : 0;
|
|
18
|
+
}
|
|
19
|
+
function memoryStore() {
|
|
4
20
|
const entries = /* @__PURE__ */ new Map();
|
|
21
|
+
const read = (key) => {
|
|
22
|
+
const entry = entries.get(key);
|
|
23
|
+
if (!entry) return void 0;
|
|
24
|
+
if (entry.expiresAt <= Date.now()) {
|
|
25
|
+
entries.delete(key);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
return entry.value;
|
|
29
|
+
};
|
|
5
30
|
return {
|
|
6
|
-
get
|
|
7
|
-
const entry = entries.get(key);
|
|
8
|
-
if (!entry) return void 0;
|
|
9
|
-
if (entry.expiresAt <= Date.now()) {
|
|
10
|
-
entries.delete(key);
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
return entry.value;
|
|
14
|
-
},
|
|
31
|
+
get: read,
|
|
15
32
|
set(key, value, ttlSeconds) {
|
|
16
33
|
entries.set(key, {
|
|
17
34
|
value,
|
|
18
|
-
expiresAt:
|
|
35
|
+
expiresAt: expiryOf(ttlSeconds)
|
|
19
36
|
});
|
|
20
37
|
},
|
|
21
38
|
delete(key) {
|
|
22
39
|
entries.delete(key);
|
|
40
|
+
},
|
|
41
|
+
setIfAbsent(key, value, ttlSeconds) {
|
|
42
|
+
if (read(key) !== void 0) return false;
|
|
43
|
+
entries.set(key, {
|
|
44
|
+
value,
|
|
45
|
+
expiresAt: expiryOf(ttlSeconds)
|
|
46
|
+
});
|
|
47
|
+
return true;
|
|
48
|
+
},
|
|
49
|
+
increment(key, ttlSeconds) {
|
|
50
|
+
const next = parseCounter(read(key)) + 1;
|
|
51
|
+
entries.set(key, {
|
|
52
|
+
value: String(next),
|
|
53
|
+
expiresAt: expiryOf(ttlSeconds)
|
|
54
|
+
});
|
|
55
|
+
return next;
|
|
56
|
+
},
|
|
57
|
+
deleteIfEquals(key, value) {
|
|
58
|
+
if (read(key) !== value) return false;
|
|
59
|
+
entries.delete(key);
|
|
60
|
+
return true;
|
|
23
61
|
}
|
|
24
62
|
};
|
|
25
63
|
}
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/core/session.ts
|
|
66
|
+
const SESSION_TTL_SECONDS = 5100;
|
|
67
|
+
function memoryCookieStore() {
|
|
68
|
+
return memoryStore();
|
|
69
|
+
}
|
|
26
70
|
const SESSION_KEY_PREFIX = "szamlazz:session:";
|
|
27
71
|
const sessionKeyEncoder = new TextEncoder();
|
|
28
72
|
async function sessionKeyFor(secret) {
|
|
@@ -78,6 +122,12 @@ Object.defineProperty(exports, "memoryCookieStore", {
|
|
|
78
122
|
return memoryCookieStore;
|
|
79
123
|
}
|
|
80
124
|
});
|
|
125
|
+
Object.defineProperty(exports, "memoryStore", {
|
|
126
|
+
enumerable: true,
|
|
127
|
+
get: function() {
|
|
128
|
+
return memoryStore;
|
|
129
|
+
}
|
|
130
|
+
});
|
|
81
131
|
Object.defineProperty(exports, "mergeSetCookies", {
|
|
82
132
|
enumerable: true,
|
|
83
133
|
get: function() {
|
|
@@ -90,3 +140,9 @@ Object.defineProperty(exports, "sessionKeyFor", {
|
|
|
90
140
|
return sessionKeyFor;
|
|
91
141
|
}
|
|
92
142
|
});
|
|
143
|
+
Object.defineProperty(exports, "storeCapabilities", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function() {
|
|
146
|
+
return storeCapabilities;
|
|
147
|
+
}
|
|
148
|
+
});
|
|
@@ -1,28 +1,72 @@
|
|
|
1
|
-
//#region src/core/
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
//#region src/core/store.ts
|
|
2
|
+
function storeCapabilities(store) {
|
|
3
|
+
return {
|
|
4
|
+
setIfAbsent: typeof store.setIfAbsent === "function",
|
|
5
|
+
increment: typeof store.increment === "function",
|
|
6
|
+
deleteIfEquals: typeof store.deleteIfEquals === "function"
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
function expiryOf(ttlSeconds) {
|
|
10
|
+
if (ttlSeconds === Number.POSITIVE_INFINITY) return ttlSeconds;
|
|
11
|
+
if (Number.isNaN(ttlSeconds)) return Date.now() + 1e3;
|
|
12
|
+
return Date.now() + ttlSeconds * 1e3;
|
|
13
|
+
}
|
|
14
|
+
function parseCounter(value) {
|
|
15
|
+
if (value === void 0) return 0;
|
|
16
|
+
const parsed = Number.parseInt(value, 10);
|
|
17
|
+
return Number.isInteger(parsed) ? parsed : 0;
|
|
18
|
+
}
|
|
19
|
+
function memoryStore() {
|
|
4
20
|
const entries = /* @__PURE__ */ new Map();
|
|
21
|
+
const read = (key) => {
|
|
22
|
+
const entry = entries.get(key);
|
|
23
|
+
if (!entry) return void 0;
|
|
24
|
+
if (entry.expiresAt <= Date.now()) {
|
|
25
|
+
entries.delete(key);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
return entry.value;
|
|
29
|
+
};
|
|
5
30
|
return {
|
|
6
|
-
get
|
|
7
|
-
const entry = entries.get(key);
|
|
8
|
-
if (!entry) return void 0;
|
|
9
|
-
if (entry.expiresAt <= Date.now()) {
|
|
10
|
-
entries.delete(key);
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
return entry.value;
|
|
14
|
-
},
|
|
31
|
+
get: read,
|
|
15
32
|
set(key, value, ttlSeconds) {
|
|
16
33
|
entries.set(key, {
|
|
17
34
|
value,
|
|
18
|
-
expiresAt:
|
|
35
|
+
expiresAt: expiryOf(ttlSeconds)
|
|
19
36
|
});
|
|
20
37
|
},
|
|
21
38
|
delete(key) {
|
|
22
39
|
entries.delete(key);
|
|
40
|
+
},
|
|
41
|
+
setIfAbsent(key, value, ttlSeconds) {
|
|
42
|
+
if (read(key) !== void 0) return false;
|
|
43
|
+
entries.set(key, {
|
|
44
|
+
value,
|
|
45
|
+
expiresAt: expiryOf(ttlSeconds)
|
|
46
|
+
});
|
|
47
|
+
return true;
|
|
48
|
+
},
|
|
49
|
+
increment(key, ttlSeconds) {
|
|
50
|
+
const next = parseCounter(read(key)) + 1;
|
|
51
|
+
entries.set(key, {
|
|
52
|
+
value: String(next),
|
|
53
|
+
expiresAt: expiryOf(ttlSeconds)
|
|
54
|
+
});
|
|
55
|
+
return next;
|
|
56
|
+
},
|
|
57
|
+
deleteIfEquals(key, value) {
|
|
58
|
+
if (read(key) !== value) return false;
|
|
59
|
+
entries.delete(key);
|
|
60
|
+
return true;
|
|
23
61
|
}
|
|
24
62
|
};
|
|
25
63
|
}
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/core/session.ts
|
|
66
|
+
const SESSION_TTL_SECONDS = 5100;
|
|
67
|
+
function memoryCookieStore() {
|
|
68
|
+
return memoryStore();
|
|
69
|
+
}
|
|
26
70
|
const SESSION_KEY_PREFIX = "szamlazz:session:";
|
|
27
71
|
const sessionKeyEncoder = new TextEncoder();
|
|
28
72
|
async function sessionKeyFor(secret) {
|
|
@@ -66,4 +110,4 @@ function mergeSetCookies(existing, headers) {
|
|
|
66
110
|
return [...pairs].map(([name, value]) => `${name}=${value}`).join("; ");
|
|
67
111
|
}
|
|
68
112
|
//#endregion
|
|
69
|
-
export { sessionKeyFor as i, memoryCookieStore as n, mergeSetCookies as r, SESSION_TTL_SECONDS as t };
|
|
113
|
+
export { memoryStore as a, sessionKeyFor as i, memoryCookieStore as n, storeCapabilities as o, mergeSetCookies as r, SESSION_TTL_SECONDS as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { n as KeyValueStore } from "./store-C1rHd9DB.cjs";
|
|
2
|
+
//#region src/core/session.d.ts
|
|
3
|
+
type CookieStore = KeyValueStore;
|
|
4
|
+
declare const SESSION_TTL_SECONDS: number;
|
|
5
|
+
declare function memoryCookieStore(): CookieStore;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { SESSION_TTL_SECONDS as n, memoryCookieStore as r, CookieStore as t };
|
package/dist/storage/fs.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_errors = require("../errors-
|
|
2
|
+
const require_errors = require("../errors-EE96_6D_.cjs");
|
|
3
3
|
const require_shared = require("../shared-CrxlxI8n.cjs");
|
|
4
4
|
let node_fs_promises = require("node:fs/promises");
|
|
5
5
|
let node_path = require("node:path");
|
package/dist/storage/fs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as SzamlazzError } from "../errors-DtN4g5Z9.js";
|
|
2
2
|
import { _ as guardStorageCall, d as normalizePrefix, f as resolveKey, h as StorageError, l as joinPublicUrl, m as unsupportedSignedUrl, u as missingPublicBaseUrl } from "../shared-D6DLa4b7.js";
|
|
3
3
|
import { mkdir, readFile, realpath, rename, rm, writeFile } from "node:fs/promises";
|
|
4
4
|
import { dirname, isAbsolute, relative, resolve } from "node:path";
|
package/dist/storage/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_errors = require("../errors-
|
|
2
|
+
const require_errors = require("../errors-EE96_6D_.cjs");
|
|
3
3
|
const require_binary = require("../binary-B89HM03_.cjs");
|
|
4
4
|
const require_dates = require("../dates-CPgBodkP.cjs");
|
|
5
5
|
const require_shared = require("../shared-CrxlxI8n.cjs");
|
package/dist/storage/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as SzamlazzError } from "../errors-DtN4g5Z9.js";
|
|
2
2
|
import { a as isPdf } from "../binary-D0M9U2MD.js";
|
|
3
3
|
import { a as todayInBudapest, n as toAgentDate } from "../dates-CXyj7Azy.js";
|
|
4
4
|
import { _ as guardStorageCall, a as assertStorageKey, c as encodeRfc3986, d as normalizePrefix, f as resolveKey, g as describeError, h as StorageError, i as assertExpires, l as joinPublicUrl, m as unsupportedSignedUrl, n as PDF_CONTENT_TYPE, o as basename, p as toArrayBuffer, r as S3_MAX_PRESIGN_SECONDS, s as encodeKeyPath, u as missingPublicBaseUrl, v as isStorageError } from "../shared-D6DLa4b7.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/core/store.d.ts
|
|
2
|
+
type Awaitable<T> = T | Promise<T>;
|
|
3
|
+
interface KeyValueStore {
|
|
4
|
+
get(key: string): Awaitable<string | undefined | null>;
|
|
5
|
+
set(key: string, value: string, ttlSeconds: number): Awaitable<void>;
|
|
6
|
+
delete(key: string): Awaitable<void>;
|
|
7
|
+
setIfAbsent?(key: string, value: string, ttlSeconds: number): Awaitable<boolean>;
|
|
8
|
+
increment?(key: string, ttlSeconds: number): Awaitable<number>;
|
|
9
|
+
deleteIfEquals?(key: string, value: string): Awaitable<boolean>;
|
|
10
|
+
}
|
|
11
|
+
interface StoreCapabilities {
|
|
12
|
+
readonly setIfAbsent: boolean;
|
|
13
|
+
readonly increment: boolean;
|
|
14
|
+
readonly deleteIfEquals: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare function storeCapabilities(store: KeyValueStore): StoreCapabilities;
|
|
17
|
+
declare function memoryStore(): KeyValueStore;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { storeCapabilities as a, memoryStore as i, KeyValueStore as n, StoreCapabilities as r, Awaitable as t };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/core/store.d.ts
|
|
2
|
+
type Awaitable<T> = T | Promise<T>;
|
|
3
|
+
interface KeyValueStore {
|
|
4
|
+
get(key: string): Awaitable<string | undefined | null>;
|
|
5
|
+
set(key: string, value: string, ttlSeconds: number): Awaitable<void>;
|
|
6
|
+
delete(key: string): Awaitable<void>;
|
|
7
|
+
setIfAbsent?(key: string, value: string, ttlSeconds: number): Awaitable<boolean>;
|
|
8
|
+
increment?(key: string, ttlSeconds: number): Awaitable<number>;
|
|
9
|
+
deleteIfEquals?(key: string, value: string): Awaitable<boolean>;
|
|
10
|
+
}
|
|
11
|
+
interface StoreCapabilities {
|
|
12
|
+
readonly setIfAbsent: boolean;
|
|
13
|
+
readonly increment: boolean;
|
|
14
|
+
readonly deleteIfEquals: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare function storeCapabilities(store: KeyValueStore): StoreCapabilities;
|
|
17
|
+
declare function memoryStore(): KeyValueStore;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { storeCapabilities as a, memoryStore as i, KeyValueStore as n, StoreCapabilities as r, Awaitable as t };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_session = require("../session-DeM5vjvC.cjs");
|
|
3
|
+
const require_stores = require("../stores-BNrS0dWl.cjs");
|
|
4
|
+
exports.CLOUDFLARE_KV_MIN_TTL_SECONDS = require_stores.CLOUDFLARE_KV_MIN_TTL_SECONDS;
|
|
5
|
+
exports.DURABLE_OBJECT_STORE_URL = require_stores.DURABLE_OBJECT_STORE_URL;
|
|
6
|
+
exports.SESSION_TTL_SECONDS = require_session.SESSION_TTL_SECONDS;
|
|
7
|
+
exports.cloudflareKvCookieStore = require_stores.cloudflareKvCookieStore;
|
|
8
|
+
exports.cloudflareKvStore = require_stores.cloudflareKvCookieStore;
|
|
9
|
+
exports.customCookieStore = require_stores.customCookieStore;
|
|
10
|
+
exports.customStore = require_stores.customCookieStore;
|
|
11
|
+
exports.diagnoseStore = require_stores.diagnoseStore;
|
|
12
|
+
exports.durableObjectStore = require_stores.durableObjectStore;
|
|
13
|
+
exports.handleDurableObjectStoreRequest = require_stores.handleDurableObjectStoreRequest;
|
|
14
|
+
exports.ioredisCookieStore = require_stores.ioredisCookieStore;
|
|
15
|
+
exports.ioredisStore = require_stores.ioredisCookieStore;
|
|
16
|
+
exports.memoryCookieStore = require_session.memoryCookieStore;
|
|
17
|
+
exports.memoryStore = require_session.memoryStore;
|
|
18
|
+
exports.nodeRedisCookieStore = require_stores.nodeRedisCookieStore;
|
|
19
|
+
exports.nodeRedisStore = require_stores.nodeRedisCookieStore;
|
|
20
|
+
exports.resilientCookieStore = require_stores.resilientCookieStore;
|
|
21
|
+
exports.resilientStore = require_stores.resilientCookieStore;
|
|
22
|
+
exports.storeCapabilities = require_session.storeCapabilities;
|
|
23
|
+
exports.upstashRedisCookieStore = require_stores.upstashRedisCookieStore;
|
|
24
|
+
exports.upstashRedisStore = require_stores.upstashRedisCookieStore;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { a as storeCapabilities, i as memoryStore, n as KeyValueStore, r as StoreCapabilities, t as Awaitable } from "../store-C1rHd9DB.cjs";
|
|
2
|
+
import { n as SESSION_TTL_SECONDS, r as memoryCookieStore, t as CookieStore } from "../session-YbChChx7.cjs";
|
|
3
|
+
import { C as CookieStoreErrorEvent, E as resilientCookieStore, S as CookieStoreAdapterOptions, T as ResilientCookieStoreOptions, _ as ioredisCookieStore, a as DurableObjectStubLike, b as CloudflareKvNamespaceLike, c as DiagnoseStoreOptions, d as diagnoseStore, f as UpstashRedisLike, g as IoRedisLike, h as nodeRedisCookieStore, i as DurableObjectStoreOperation, l as StoreDiagnosis, m as NodeRedisLike, n as DurableObjectStorageLike, o as durableObjectStore, p as upstashRedisCookieStore, r as DurableObjectStoreEntry, s as handleDurableObjectStoreRequest, t as DURABLE_OBJECT_STORE_URL, u as StoreSuitability, v as customCookieStore, w as CookieStoreOperation, x as cloudflareKvCookieStore, y as CLOUDFLARE_KV_MIN_TTL_SECONDS } from "../index-BhUPY_EH.cjs";
|
|
4
|
+
export { type Awaitable, CLOUDFLARE_KV_MIN_TTL_SECONDS, type CloudflareKvNamespaceLike, type CookieStore, type CookieStoreAdapterOptions, type CookieStoreErrorEvent, type CookieStoreOperation, DURABLE_OBJECT_STORE_URL, type DiagnoseStoreOptions, type DurableObjectStorageLike, type DurableObjectStoreEntry, type DurableObjectStoreOperation, type DurableObjectStubLike, type IoRedisLike, type KeyValueStore, type NodeRedisLike, type ResilientCookieStoreOptions, SESSION_TTL_SECONDS, type StoreCapabilities, type StoreDiagnosis, type StoreSuitability, type UpstashRedisLike, cloudflareKvCookieStore, cloudflareKvCookieStore as cloudflareKvStore, customCookieStore, customCookieStore as customStore, diagnoseStore, durableObjectStore, handleDurableObjectStoreRequest, ioredisCookieStore, ioredisCookieStore as ioredisStore, memoryCookieStore, memoryStore, nodeRedisCookieStore, nodeRedisCookieStore as nodeRedisStore, resilientCookieStore, resilientCookieStore as resilientStore, storeCapabilities, upstashRedisCookieStore, upstashRedisCookieStore as upstashRedisStore };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { a as storeCapabilities, i as memoryStore, n as KeyValueStore, r as StoreCapabilities, t as Awaitable } from "../store-C1rHd9DB.js";
|
|
2
|
+
import { n as SESSION_TTL_SECONDS, r as memoryCookieStore, t as CookieStore } from "../session-Ckl5eJhV.js";
|
|
3
|
+
import { C as CookieStoreErrorEvent, E as resilientCookieStore, S as CookieStoreAdapterOptions, T as ResilientCookieStoreOptions, _ as ioredisCookieStore, a as DurableObjectStubLike, b as CloudflareKvNamespaceLike, c as DiagnoseStoreOptions, d as diagnoseStore, f as UpstashRedisLike, g as IoRedisLike, h as nodeRedisCookieStore, i as DurableObjectStoreOperation, l as StoreDiagnosis, m as NodeRedisLike, n as DurableObjectStorageLike, o as durableObjectStore, p as upstashRedisCookieStore, r as DurableObjectStoreEntry, s as handleDurableObjectStoreRequest, t as DURABLE_OBJECT_STORE_URL, u as StoreSuitability, v as customCookieStore, w as CookieStoreOperation, x as cloudflareKvCookieStore, y as CLOUDFLARE_KV_MIN_TTL_SECONDS } from "../index-BqGgQ4t3.js";
|
|
4
|
+
export { type Awaitable, CLOUDFLARE_KV_MIN_TTL_SECONDS, type CloudflareKvNamespaceLike, type CookieStore, type CookieStoreAdapterOptions, type CookieStoreErrorEvent, type CookieStoreOperation, DURABLE_OBJECT_STORE_URL, type DiagnoseStoreOptions, type DurableObjectStorageLike, type DurableObjectStoreEntry, type DurableObjectStoreOperation, type DurableObjectStubLike, type IoRedisLike, type KeyValueStore, type NodeRedisLike, type ResilientCookieStoreOptions, SESSION_TTL_SECONDS, type StoreCapabilities, type StoreDiagnosis, type StoreSuitability, type UpstashRedisLike, cloudflareKvCookieStore, cloudflareKvCookieStore as cloudflareKvStore, customCookieStore, customCookieStore as customStore, diagnoseStore, durableObjectStore, handleDurableObjectStoreRequest, ioredisCookieStore, ioredisCookieStore as ioredisStore, memoryCookieStore, memoryStore, nodeRedisCookieStore, nodeRedisCookieStore as nodeRedisStore, resilientCookieStore, resilientCookieStore as resilientStore, storeCapabilities, upstashRedisCookieStore, upstashRedisCookieStore as upstashRedisStore };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as memoryStore, n as memoryCookieStore, o as storeCapabilities, t as SESSION_TTL_SECONDS } from "../session-SaEEXu2N.js";
|
|
2
|
+
import { a as upstashRedisCookieStore, c as customCookieStore, d as resilientCookieStore, i as diagnoseStore, l as CLOUDFLARE_KV_MIN_TTL_SECONDS, n as durableObjectStore, o as nodeRedisCookieStore, r as handleDurableObjectStoreRequest, s as ioredisCookieStore, t as DURABLE_OBJECT_STORE_URL, u as cloudflareKvCookieStore } from "../stores-DhjGBrl_.js";
|
|
3
|
+
export { CLOUDFLARE_KV_MIN_TTL_SECONDS, DURABLE_OBJECT_STORE_URL, SESSION_TTL_SECONDS, cloudflareKvCookieStore, cloudflareKvCookieStore as cloudflareKvStore, customCookieStore, customCookieStore as customStore, diagnoseStore, durableObjectStore, handleDurableObjectStoreRequest, ioredisCookieStore, ioredisCookieStore as ioredisStore, memoryCookieStore, memoryStore, nodeRedisCookieStore, nodeRedisCookieStore as nodeRedisStore, resilientCookieStore, resilientCookieStore as resilientStore, storeCapabilities, upstashRedisCookieStore, upstashRedisCookieStore as upstashRedisStore };
|