@sixb/core 0.1.19 → 0.1.20
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/dist/actions/index.js +24 -24
- package/dist/agents/index.js +25 -25
- package/dist/agents/index.js.map +1 -1
- package/dist/auth/cookies.d.ts +2 -4
- package/dist/auth/cookies.d.ts.map +1 -1
- package/dist/auth/index.d.ts +0 -2
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +8 -14
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/runtime.d.ts +8 -10
- package/dist/auth/runtime.d.ts.map +1 -1
- package/dist/auth/session-cache.d.ts +1 -5
- package/dist/auth/session-cache.d.ts.map +1 -1
- package/dist/auth/strategy.js +1 -1
- package/dist/auth/types.d.ts +4 -8
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/auth/validation.d.ts +0 -1
- package/dist/auth/validation.d.ts.map +1 -1
- package/dist/authorization/decision.d.ts +0 -4
- package/dist/authorization/decision.d.ts.map +1 -1
- package/dist/authorization/grant-kinds.d.ts +6 -8
- package/dist/authorization/grant-kinds.d.ts.map +1 -1
- package/dist/authorization/index.d.ts +0 -1
- package/dist/authorization/index.d.ts.map +1 -1
- package/dist/authorization/index.js +3 -7
- package/dist/authorization/index.js.map +1 -1
- package/dist/authorization/resolve.d.ts +1 -1
- package/dist/authorization/resolve.d.ts.map +1 -1
- package/dist/bootstrap/index.js +26 -26
- package/dist/{chunk-aff7cyea.js → chunk-0rbyz4qy.js} +21 -21
- package/dist/{chunk-aff7cyea.js.map → chunk-0rbyz4qy.js.map} +1 -1
- package/dist/{chunk-rz53yb4v.js → chunk-0yh890a4.js} +1 -1
- package/dist/{chunk-7mbzgd9m.js → chunk-1zq2p6g0.js} +1 -1
- package/dist/{chunk-dnmadg9k.js → chunk-3t2hgbgd.js} +2 -2
- package/dist/{chunk-wwdfe68s.js → chunk-4vyr1j8f.js} +2 -2
- package/dist/{chunk-kyzq4wy9.js → chunk-5j58wjct.js} +15 -15
- package/dist/chunk-5j58wjct.js.map +18 -0
- package/dist/{chunk-ey3pyej1.js → chunk-6c6sn0bh.js} +29 -24
- package/dist/{chunk-ey3pyej1.js.map → chunk-6c6sn0bh.js.map} +3 -3
- package/dist/{chunk-q1vkr2ys.js → chunk-6p49a5cq.js} +2 -2
- package/dist/{chunk-nre82s12.js → chunk-9dmt152s.js} +1 -1
- package/dist/{chunk-7kg3k1m9.js → chunk-9w055r5b.js} +1 -1
- package/dist/{chunk-4tcx876c.js → chunk-bx9q3cwv.js} +15 -15
- package/dist/{chunk-4tcx876c.js.map → chunk-bx9q3cwv.js.map} +1 -1
- package/dist/{chunk-bpgy64fw.js → chunk-d09tj99x.js} +1 -1
- package/dist/{chunk-y7rqfrgg.js → chunk-d0bqz29d.js} +23 -36
- package/dist/chunk-d0bqz29d.js.map +23 -0
- package/dist/{chunk-rhg02hxq.js → chunk-dk8tkk5f.js} +3 -3
- package/dist/{chunk-xt1zt7gv.js → chunk-es1gxsbf.js} +24 -15
- package/dist/chunk-es1gxsbf.js.map +13 -0
- package/dist/{chunk-52bk93x8.js → chunk-fkgc1wt8.js} +1 -1
- package/dist/{chunk-enpsx8k5.js → chunk-gsjm1wms.js} +16 -20
- package/dist/chunk-gsjm1wms.js.map +10 -0
- package/dist/{chunk-2jntasmh.js → chunk-hcbyfxbe.js} +25 -49
- package/dist/chunk-hcbyfxbe.js.map +12 -0
- package/dist/{chunk-zrmy8zvw.js → chunk-hjzdd750.js} +3 -3
- package/dist/chunk-hkc3jct7.js.map +1 -1
- package/dist/{chunk-85yvv5n0.js → chunk-k6q3n2sc.js} +3 -3
- package/dist/{chunk-j2bp5ryw.js → chunk-n33z5bjw.js} +11 -10
- package/dist/{chunk-j2bp5ryw.js.map → chunk-n33z5bjw.js.map} +3 -3
- package/dist/{chunk-80mc0971.js → chunk-ren4kg2j.js} +8 -8
- package/dist/{chunk-1f7wpmyp.js → chunk-rrzt8jdy.js} +2 -2
- package/dist/{chunk-6gmfggss.js → chunk-t7x8dmn0.js} +2 -2
- package/dist/{chunk-wz0xs816.js → chunk-tg2cw67r.js} +1 -1
- package/dist/{chunk-3gnrh4ve.js → chunk-vpq4shxz.js} +46 -106
- package/dist/chunk-vpq4shxz.js.map +39 -0
- package/dist/{chunk-bwjcehza.js → chunk-way52z4h.js} +1 -1
- package/dist/{chunk-tjb1mk5t.js → chunk-x6m907x7.js} +2 -2
- package/dist/{chunk-t6vq7bff.js → chunk-xfs8x8m9.js} +3 -3
- package/dist/{chunk-d2ync1v3.js → chunk-yevzdx4y.js} +3 -3
- package/dist/{chunk-kg5j6fct.js → chunk-z4m0yz8c.js} +1 -1
- package/dist/datasets/write.js +5 -5
- package/dist/deploy/internal.js +4 -3
- package/dist/deploy/internal.js.map +4 -4
- package/dist/deploy/services.d.ts.map +1 -1
- package/dist/deploy/types.d.ts +1 -2
- package/dist/deploy/types.d.ts.map +1 -1
- package/dist/execution/agent.js +24 -24
- package/dist/execution/authorization.d.ts.map +1 -1
- package/dist/execution/primitive.js +24 -24
- package/dist/execution/request.js +23 -23
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -46
- package/dist/index.js.map +1 -1
- package/dist/lake-storage/index.js +5 -5
- package/dist/materializer/index.js +13 -13
- package/dist/models/execution/index.js +10 -10
- package/dist/objects/index.js +24 -24
- package/dist/objects/query/index.js +12 -12
- package/dist/objects/vectors/handle.d.ts.map +1 -1
- package/dist/objects/vectors/profile.d.ts +5 -0
- package/dist/objects/vectors/profile.d.ts.map +1 -1
- package/dist/ontology/index.js +3 -3
- package/dist/pipelines/index.js +15 -15
- package/dist/projections/internal.js +13 -13
- package/dist/runtime/internal.js +13 -13
- package/dist/security/builders.d.ts.map +1 -1
- package/dist/security/every.d.ts +1 -4
- package/dist/security/every.d.ts.map +1 -1
- package/dist/security/grants.d.ts +2 -4
- package/dist/security/grants.d.ts.map +1 -1
- package/dist/security/index.d.ts +1 -2
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/membership-policies.d.ts.map +1 -1
- package/dist/security/public.d.ts +10 -0
- package/dist/security/public.d.ts.map +1 -0
- package/dist/security/public.js +10 -0
- package/dist/security/public.js.map +9 -0
- package/dist/security/registry.d.ts +0 -1
- package/dist/security/registry.d.ts.map +1 -1
- package/dist/security/types.d.ts +13 -18
- package/dist/security/types.d.ts.map +1 -1
- package/dist/security/validation.d.ts +0 -6
- package/dist/security/validation.d.ts.map +1 -1
- package/dist/shares/internal.js +10 -10
- package/dist/storage/agents/types.d.ts +1 -1
- package/dist/storage/auth/in-memory/auth-storage.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/magic-links.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/oidc-attempts.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/sessions.d.ts +0 -10
- package/dist/storage/auth/in-memory/sessions.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/shared.d.ts +1 -2
- package/dist/storage/auth/in-memory/shared.d.ts.map +1 -1
- package/dist/storage/auth/types.d.ts +1 -17
- package/dist/storage/auth/types.d.ts.map +1 -1
- package/dist/storage/file-upload-sessions/provider.js +6 -6
- package/dist/storage/index.js +21 -21
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/workflow-runs/provider.js +6 -6
- package/dist/syncs/index.js +16 -16
- package/dist/testing/auth-storage-contract.d.ts.map +1 -1
- package/dist/testing/index.js +41 -124
- package/dist/testing/index.js.map +4 -4
- package/dist/webhooks/internal.js +11 -11
- package/dist/workflows/index.js +25 -25
- package/package.json +8 -2
- package/src/auth/cookies.ts +3 -20
- package/src/auth/index.ts +0 -6
- package/src/auth/runtime.ts +59 -76
- package/src/auth/session-cache.ts +2 -9
- package/src/auth/types.ts +4 -8
- package/src/auth/validation.ts +0 -2
- package/src/authorization/decision.ts +8 -23
- package/src/authorization/grant-kinds.ts +20 -27
- package/src/authorization/index.ts +0 -1
- package/src/authorization/resolve.ts +10 -6
- package/src/deploy/services.ts +0 -1
- package/src/deploy/types.ts +1 -2
- package/src/deploy/validation.ts +3 -1
- package/src/execution/authorization.ts +11 -5
- package/src/index.ts +1 -14
- package/src/models/execution/embedding.ts +6 -6
- package/src/objects/vectors/README.md +4 -0
- package/src/objects/vectors/handle.ts +11 -2
- package/src/objects/vectors/indexing-generate.ts +2 -2
- package/src/objects/vectors/profile.ts +5 -0
- package/src/security/builders.ts +7 -2
- package/src/security/every.ts +0 -4
- package/src/security/grants.ts +5 -25
- package/src/security/index.ts +0 -3
- package/src/security/membership-policies.ts +3 -1
- package/src/security/public.ts +10 -0
- package/src/security/registry.ts +0 -8
- package/src/security/types.ts +19 -25
- package/src/security/validation.ts +19 -17
- package/src/storage/agents/types.ts +1 -1
- package/src/storage/auth/in-memory/auth-storage.ts +0 -18
- package/src/storage/auth/in-memory/magic-links.ts +0 -3
- package/src/storage/auth/in-memory/oidc-attempts.ts +0 -3
- package/src/storage/auth/in-memory/sessions.ts +1 -25
- package/src/storage/auth/in-memory/shared.ts +1 -10
- package/src/storage/auth/types.ts +2 -18
- package/src/testing/auth-storage-contract.ts +14 -107
- package/src/testing/execution-storage-contract.ts +0 -2
- package/dist/auth/audience.d.ts +0 -8
- package/dist/auth/audience.d.ts.map +0 -1
- package/dist/authorization/application-access.d.ts +0 -18
- package/dist/authorization/application-access.d.ts.map +0 -1
- package/dist/chunk-2jntasmh.js.map +0 -13
- package/dist/chunk-3gnrh4ve.js.map +0 -40
- package/dist/chunk-enpsx8k5.js.map +0 -10
- package/dist/chunk-kyzq4wy9.js.map +0 -18
- package/dist/chunk-xt1zt7gv.js.map +0 -13
- package/dist/chunk-y7rqfrgg.js.map +0 -24
- package/dist/security/applications.d.ts +0 -15
- package/dist/security/applications.d.ts.map +0 -1
- package/src/auth/audience.ts +0 -28
- package/src/authorization/application-access.ts +0 -34
- package/src/security/applications.ts +0 -11
- /package/dist/{chunk-rz53yb4v.js.map → chunk-0yh890a4.js.map} +0 -0
- /package/dist/{chunk-7mbzgd9m.js.map → chunk-1zq2p6g0.js.map} +0 -0
- /package/dist/{chunk-dnmadg9k.js.map → chunk-3t2hgbgd.js.map} +0 -0
- /package/dist/{chunk-wwdfe68s.js.map → chunk-4vyr1j8f.js.map} +0 -0
- /package/dist/{chunk-q1vkr2ys.js.map → chunk-6p49a5cq.js.map} +0 -0
- /package/dist/{chunk-nre82s12.js.map → chunk-9dmt152s.js.map} +0 -0
- /package/dist/{chunk-7kg3k1m9.js.map → chunk-9w055r5b.js.map} +0 -0
- /package/dist/{chunk-bpgy64fw.js.map → chunk-d09tj99x.js.map} +0 -0
- /package/dist/{chunk-rhg02hxq.js.map → chunk-dk8tkk5f.js.map} +0 -0
- /package/dist/{chunk-52bk93x8.js.map → chunk-fkgc1wt8.js.map} +0 -0
- /package/dist/{chunk-zrmy8zvw.js.map → chunk-hjzdd750.js.map} +0 -0
- /package/dist/{chunk-85yvv5n0.js.map → chunk-k6q3n2sc.js.map} +0 -0
- /package/dist/{chunk-80mc0971.js.map → chunk-ren4kg2j.js.map} +0 -0
- /package/dist/{chunk-1f7wpmyp.js.map → chunk-rrzt8jdy.js.map} +0 -0
- /package/dist/{chunk-6gmfggss.js.map → chunk-t7x8dmn0.js.map} +0 -0
- /package/dist/{chunk-wz0xs816.js.map → chunk-tg2cw67r.js.map} +0 -0
- /package/dist/{chunk-bwjcehza.js.map → chunk-way52z4h.js.map} +0 -0
- /package/dist/{chunk-tjb1mk5t.js.map → chunk-x6m907x7.js.map} +0 -0
- /package/dist/{chunk-t6vq7bff.js.map → chunk-xfs8x8m9.js.map} +0 -0
- /package/dist/{chunk-d2ync1v3.js.map → chunk-yevzdx4y.js.map} +0 -0
- /package/dist/{chunk-kg5j6fct.js.map → chunk-z4m0yz8c.js.map} +0 -0
package/dist/testing/index.js
CHANGED
|
@@ -6,13 +6,13 @@ import"../chunk-b38szspf.js";
|
|
|
6
6
|
import {
|
|
7
7
|
AuthStorageError2,
|
|
8
8
|
SYSTEM_PRINCIPAL2
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import"../chunk-
|
|
9
|
+
} from "../chunk-vpq4shxz.js";
|
|
10
|
+
import"../chunk-gsjm1wms.js";
|
|
11
11
|
import {
|
|
12
12
|
agentServiceAccountId2,
|
|
13
13
|
MAX_OBJECT_READ_FACETS2,
|
|
14
14
|
defineProjection2
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-d0bqz29d.js";
|
|
16
16
|
import {
|
|
17
17
|
compileSelectedObjectReadScope2
|
|
18
18
|
} from "../chunk-v4jbb3rs.js";
|
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
blobIdFromDigest2
|
|
21
21
|
} from "../chunk-jhm3zsa7.js";
|
|
22
22
|
import"../chunk-hvsb78a1.js";
|
|
23
|
-
import"../chunk-
|
|
23
|
+
import"../chunk-es1gxsbf.js";
|
|
24
24
|
import {
|
|
25
25
|
ref2
|
|
26
26
|
} from "../chunk-v9xd5wzd.js";
|
|
27
|
-
import"../chunk-
|
|
27
|
+
import"../chunk-hcbyfxbe.js";
|
|
28
28
|
import"../chunk-pqajwytd.js";
|
|
29
29
|
import"../chunk-29yx306f.js";
|
|
30
30
|
import"../chunk-gfdh9kqa.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
import {
|
|
45
45
|
DEFAULT_FILE_UPLOAD_TERMINAL_SESSION_TTL_MS2
|
|
46
46
|
} from "../chunk-h89wz928.js";
|
|
47
|
-
import"../chunk-
|
|
47
|
+
import"../chunk-9w055r5b.js";
|
|
48
48
|
import"../chunk-tw03bsmb.js";
|
|
49
49
|
import {
|
|
50
50
|
OntologyRegistry2,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
prop2,
|
|
53
53
|
link2,
|
|
54
54
|
stringEnum2
|
|
55
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-d09tj99x.js";
|
|
56
56
|
import {
|
|
57
57
|
createEventId2
|
|
58
58
|
} from "../chunk-7n440zgt.js";
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
objectLinkCursor2,
|
|
65
65
|
WorkflowInterventionError2,
|
|
66
66
|
InMemoryStorage2
|
|
67
|
-
} from "../chunk-
|
|
67
|
+
} from "../chunk-n33z5bjw.js";
|
|
68
68
|
import"../chunk-pbcbn83d.js";
|
|
69
69
|
import"../chunk-qczk96d9.js";
|
|
70
70
|
import"../chunk-mmagke4x.js";
|
|
@@ -72,18 +72,18 @@ import"../chunk-hn2r7z41.js";
|
|
|
72
72
|
import"../chunk-9ybhtmg4.js";
|
|
73
73
|
import"../chunk-jmfet9r4.js";
|
|
74
74
|
import"../chunk-qf954wje.js";
|
|
75
|
-
import"../chunk-
|
|
75
|
+
import"../chunk-rrzt8jdy.js";
|
|
76
76
|
import {
|
|
77
77
|
ProjectionRegistry2,
|
|
78
78
|
createLinkScopeFingerprint2,
|
|
79
79
|
createOntologyMaterializer2
|
|
80
|
-
} from "../chunk-
|
|
80
|
+
} from "../chunk-hjzdd750.js";
|
|
81
81
|
import {
|
|
82
82
|
bindModelExecutionAttempt,
|
|
83
83
|
isBoundSixb
|
|
84
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-6c6sn0bh.js";
|
|
85
85
|
import"../chunk-fa02jy15.js";
|
|
86
|
-
import"../chunk-
|
|
86
|
+
import"../chunk-4vyr1j8f.js";
|
|
87
87
|
import {
|
|
88
88
|
validateObjectQuery2,
|
|
89
89
|
collectObjectQueryValidationIssues2,
|
|
@@ -93,32 +93,32 @@ import {
|
|
|
93
93
|
existsObjects2,
|
|
94
94
|
facetObjects2,
|
|
95
95
|
executeObjectQueryLinks2
|
|
96
|
-
} from "../chunk-
|
|
96
|
+
} from "../chunk-bx9q3cwv.js";
|
|
97
97
|
import"../chunk-vyf9kfqf.js";
|
|
98
98
|
import"../chunk-pfp1txq2.js";
|
|
99
99
|
import"../chunk-5e43w60z.js";
|
|
100
100
|
import"../chunk-3zxk45er.js";
|
|
101
101
|
import"../chunk-5a4a52tq.js";
|
|
102
|
-
import"../chunk-
|
|
102
|
+
import"../chunk-tg2cw67r.js";
|
|
103
103
|
import {
|
|
104
104
|
col2,
|
|
105
105
|
defineDataset2,
|
|
106
106
|
change2
|
|
107
|
-
} from "../chunk-
|
|
107
|
+
} from "../chunk-0yh890a4.js";
|
|
108
108
|
import {
|
|
109
109
|
writeDataset2
|
|
110
|
-
} from "../chunk-
|
|
110
|
+
} from "../chunk-t7x8dmn0.js";
|
|
111
111
|
import"../chunk-99nd4rc1.js";
|
|
112
112
|
import"../chunk-3qms4nax.js";
|
|
113
113
|
import"../chunk-m427qgq0.js";
|
|
114
114
|
import {
|
|
115
115
|
SixbHost2
|
|
116
|
-
} from "../chunk-
|
|
116
|
+
} from "../chunk-0rbyz4qy.js";
|
|
117
117
|
import"../chunk-yzwja0mj.js";
|
|
118
118
|
import"../chunk-bkpke1sg.js";
|
|
119
119
|
import"../chunk-yxd3nnqt.js";
|
|
120
|
-
import"../chunk-
|
|
121
|
-
import"../chunk-
|
|
120
|
+
import"../chunk-5j58wjct.js";
|
|
121
|
+
import"../chunk-6p49a5cq.js";
|
|
122
122
|
import"../chunk-fb3feg1e.js";
|
|
123
123
|
import"../chunk-yw9pyg66.js";
|
|
124
124
|
import"../chunk-tpn40322.js";
|
|
@@ -126,7 +126,7 @@ import"../chunk-nq6gpjt7.js";
|
|
|
126
126
|
import"../chunk-1sr8ryzk.js";
|
|
127
127
|
import {
|
|
128
128
|
workflowAgentStepActorId2
|
|
129
|
-
} from "../chunk-
|
|
129
|
+
} from "../chunk-k6q3n2sc.js";
|
|
130
130
|
import {
|
|
131
131
|
BrokerError2,
|
|
132
132
|
InMemoryBroker2
|
|
@@ -135,31 +135,31 @@ import {
|
|
|
135
135
|
QueueError2,
|
|
136
136
|
InMemoryQueues2
|
|
137
137
|
} from "../chunk-nzapm6p0.js";
|
|
138
|
-
import"../chunk-
|
|
138
|
+
import"../chunk-3t2hgbgd.js";
|
|
139
139
|
import {
|
|
140
140
|
SandboxNotRunningError2
|
|
141
141
|
} from "../chunk-9gyp8hg1.js";
|
|
142
|
-
import"../chunk-
|
|
143
|
-
import"../chunk-
|
|
142
|
+
import"../chunk-dk8tkk5f.js";
|
|
143
|
+
import"../chunk-x6m907x7.js";
|
|
144
144
|
import"../chunk-7n30ybym.js";
|
|
145
|
-
import"../chunk-
|
|
145
|
+
import"../chunk-ren4kg2j.js";
|
|
146
146
|
import {
|
|
147
147
|
createTestingScope
|
|
148
|
-
} from "../chunk-
|
|
148
|
+
} from "../chunk-z4m0yz8c.js";
|
|
149
149
|
import"../chunk-x9v4cx1d.js";
|
|
150
150
|
import"../chunk-1k89ecfr.js";
|
|
151
|
-
import"../chunk-
|
|
152
|
-
import"../chunk-
|
|
151
|
+
import"../chunk-xfs8x8m9.js";
|
|
152
|
+
import"../chunk-fkgc1wt8.js";
|
|
153
153
|
import"../chunk-mfs23znk.js";
|
|
154
|
-
import"../chunk-
|
|
154
|
+
import"../chunk-1zq2p6g0.js";
|
|
155
155
|
import {
|
|
156
156
|
ObjectQueryPlanningError2,
|
|
157
157
|
normalizeObjectQuery2
|
|
158
158
|
} from "../chunk-91mg3nj9.js";
|
|
159
|
-
import"../chunk-
|
|
159
|
+
import"../chunk-yevzdx4y.js";
|
|
160
160
|
import {
|
|
161
161
|
restoreTrustedPrimitiveExecutionScope
|
|
162
|
-
} from "../chunk-
|
|
162
|
+
} from "../chunk-9dmt152s.js";
|
|
163
163
|
import"../chunk-br3k6qbf.js";
|
|
164
164
|
import"../chunk-s16apyk9.js";
|
|
165
165
|
import {
|
|
@@ -172,7 +172,7 @@ import {
|
|
|
172
172
|
import"../chunk-7t429e3f.js";
|
|
173
173
|
import {
|
|
174
174
|
LakeStorageError2
|
|
175
|
-
} from "../chunk-
|
|
175
|
+
} from "../chunk-way52z4h.js";
|
|
176
176
|
import"../chunk-c85m1hyj.js";
|
|
177
177
|
|
|
178
178
|
// src/testing/action-execution.ts
|
|
@@ -4211,10 +4211,9 @@ var otherProjectId2 = "project-b";
|
|
|
4211
4211
|
function at4(value) {
|
|
4212
4212
|
return new Date(value);
|
|
4213
4213
|
}
|
|
4214
|
-
function sessionInput(id, tokenHash = `${id}-hash`,
|
|
4214
|
+
function sessionInput(id, tokenHash = `${id}-hash`, absoluteExpiresAt) {
|
|
4215
4215
|
return {
|
|
4216
4216
|
id,
|
|
4217
|
-
audience,
|
|
4218
4217
|
tokenHash,
|
|
4219
4218
|
createdAt: at4("2026-05-14T10:10:00.000Z"),
|
|
4220
4219
|
expiresAt: at4("2026-05-21T10:10:00.000Z"),
|
|
@@ -4227,7 +4226,6 @@ function bearerSessionInput(id) {
|
|
|
4227
4226
|
projectId: projectId7,
|
|
4228
4227
|
userId: "usr_1",
|
|
4229
4228
|
strategyId: "magic-link",
|
|
4230
|
-
audience: "atlas",
|
|
4231
4229
|
tokenHash: "access-1",
|
|
4232
4230
|
createdAt: at4("2026-05-14T10:00:00.000Z"),
|
|
4233
4231
|
expiresAt: at4("2026-06-14T10:00:00.000Z"),
|
|
@@ -4256,7 +4254,6 @@ async function completeOidcSignInForAva(storage, directoryGroupIds) {
|
|
|
4256
4254
|
id: "oidc_directory",
|
|
4257
4255
|
projectId: projectId7,
|
|
4258
4256
|
strategyId: "entra",
|
|
4259
|
-
audience: "atlas",
|
|
4260
4257
|
stateHash: "directory-state",
|
|
4261
4258
|
nonceHash: "nonce-hash",
|
|
4262
4259
|
codeVerifier: "verifier",
|
|
@@ -4343,7 +4340,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4343
4340
|
projectId: projectId7,
|
|
4344
4341
|
userId: "usr_1",
|
|
4345
4342
|
strategyId: "magic-link",
|
|
4346
|
-
audience: "atlas",
|
|
4347
4343
|
tokenHash: "hash-1",
|
|
4348
4344
|
createdAt: at4("2026-05-14T10:00:00.000Z"),
|
|
4349
4345
|
expiresAt: at4("2026-05-21T10:00:00.000Z")
|
|
@@ -4353,7 +4349,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4353
4349
|
projectId: projectId7,
|
|
4354
4350
|
userId: "usr_1",
|
|
4355
4351
|
strategyId: "magic-link",
|
|
4356
|
-
audience: "atlas",
|
|
4357
4352
|
tokenHash: "hash-2",
|
|
4358
4353
|
createdAt: at4("2026-05-14T10:05:00.000Z"),
|
|
4359
4354
|
expiresAt: at4("2026-05-21T10:05:00.000Z")
|
|
@@ -4365,30 +4360,21 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4365
4360
|
await expect7(storage.sessions.findValidByTokenHash({
|
|
4366
4361
|
projectId: projectId7,
|
|
4367
4362
|
id: "ses_1",
|
|
4368
|
-
audience: "atlas",
|
|
4369
4363
|
tokenHash: "hash-1",
|
|
4370
4364
|
now: at4("2026-05-14T10:06:00.000Z")
|
|
4371
4365
|
})).resolves.toMatchObject({ id: "ses_1" });
|
|
4372
4366
|
await expect7(storage.sessions.findValidByTokenHash({
|
|
4373
4367
|
projectId: projectId7,
|
|
4374
4368
|
id: "ses_2",
|
|
4375
|
-
audience: "atlas",
|
|
4376
4369
|
tokenHash: "hash-2",
|
|
4377
4370
|
now: at4("2026-05-14T10:06:00.000Z")
|
|
4378
4371
|
})).resolves.toMatchObject({ id: "ses_2" });
|
|
4379
4372
|
await expect7(storage.sessions.findValidByTokenHash({
|
|
4380
4373
|
projectId: projectId7,
|
|
4381
4374
|
id: "ses_2",
|
|
4382
|
-
audience: "atlas",
|
|
4383
4375
|
tokenHash: "wrong",
|
|
4384
4376
|
now: at4("2026-05-14T10:06:00.000Z")
|
|
4385
4377
|
})).resolves.toBeNull();
|
|
4386
|
-
await expect7(storage.sessions.getActiveByUserId({
|
|
4387
|
-
projectId: projectId7,
|
|
4388
|
-
userId: "usr_1",
|
|
4389
|
-
audience: "atlas",
|
|
4390
|
-
now: at4("2026-05-14T10:06:00.000Z")
|
|
4391
|
-
})).resolves.toMatchObject({ id: "ses_2" });
|
|
4392
4378
|
const touched = await storage.sessions.touch({
|
|
4393
4379
|
projectId: projectId7,
|
|
4394
4380
|
id: second.id,
|
|
@@ -4396,24 +4382,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4396
4382
|
});
|
|
4397
4383
|
expect7(touched.lastSeenAt?.toISOString()).toBe("2026-05-15T10:00:00.000Z");
|
|
4398
4384
|
expect7(touched.expiresAt.toISOString()).toBe("2026-05-21T10:05:00.000Z");
|
|
4399
|
-
const appSession = await storage.sessions.create({
|
|
4400
|
-
id: "ses_app",
|
|
4401
|
-
projectId: projectId7,
|
|
4402
|
-
userId: "usr_1",
|
|
4403
|
-
strategyId: "magic-link",
|
|
4404
|
-
audience: "app",
|
|
4405
|
-
tokenHash: "hash-app",
|
|
4406
|
-
createdAt: at4("2026-05-14T10:06:00.000Z"),
|
|
4407
|
-
expiresAt: at4("2026-05-21T10:06:00.000Z")
|
|
4408
|
-
});
|
|
4409
|
-
expect7(appSession.revokedAt).toBeUndefined();
|
|
4410
|
-
await expect7(storage.sessions.findValidByTokenHash({
|
|
4411
|
-
projectId: projectId7,
|
|
4412
|
-
id: "ses_app",
|
|
4413
|
-
audience: "atlas",
|
|
4414
|
-
tokenHash: "hash-app",
|
|
4415
|
-
now: at4("2026-05-14T10:07:00.000Z")
|
|
4416
|
-
})).resolves.toBeNull();
|
|
4417
4385
|
await storage.sessions.revoke({
|
|
4418
4386
|
projectId: projectId7,
|
|
4419
4387
|
id: "ses_1",
|
|
@@ -4422,14 +4390,12 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4422
4390
|
await expect7(storage.sessions.findValidByTokenHash({
|
|
4423
4391
|
projectId: projectId7,
|
|
4424
4392
|
id: "ses_1",
|
|
4425
|
-
audience: "atlas",
|
|
4426
4393
|
tokenHash: "hash-1",
|
|
4427
4394
|
now: at4("2026-05-14T10:09:00.000Z")
|
|
4428
4395
|
})).resolves.toBeNull();
|
|
4429
4396
|
await expect7(storage.sessions.findValidByTokenHash({
|
|
4430
4397
|
projectId: projectId7,
|
|
4431
4398
|
id: "ses_2",
|
|
4432
|
-
audience: "atlas",
|
|
4433
4399
|
tokenHash: "hash-2",
|
|
4434
4400
|
now: at4("2026-05-14T10:09:00.000Z")
|
|
4435
4401
|
})).resolves.toMatchObject({ id: "ses_2" });
|
|
@@ -4438,13 +4404,12 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4438
4404
|
userId: "usr_1",
|
|
4439
4405
|
revokedAt: at4("2026-05-14T10:10:00.000Z")
|
|
4440
4406
|
});
|
|
4441
|
-
expect7(revoked.map((entry) => entry.id).sort()).toEqual(["ses_2"
|
|
4442
|
-
await expect7(storage.sessions.
|
|
4407
|
+
expect7(revoked.map((entry) => entry.id).sort()).toEqual(["ses_2"]);
|
|
4408
|
+
await expect7(storage.sessions.listActiveByUserId({
|
|
4443
4409
|
projectId: projectId7,
|
|
4444
4410
|
userId: "usr_1",
|
|
4445
|
-
audience: "atlas",
|
|
4446
4411
|
now: at4("2026-05-14T10:11:00.000Z")
|
|
4447
|
-
})).resolves.
|
|
4412
|
+
})).resolves.toEqual([]);
|
|
4448
4413
|
});
|
|
4449
4414
|
});
|
|
4450
4415
|
test7("persists and enforces an optional absolute session deadline", async () => {
|
|
@@ -4455,7 +4420,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4455
4420
|
projectId: projectId7,
|
|
4456
4421
|
userId: "usr_1",
|
|
4457
4422
|
strategyId: "magic-link",
|
|
4458
|
-
audience: "atlas",
|
|
4459
4423
|
tokenHash: "hash-capped",
|
|
4460
4424
|
createdAt: at4("2026-05-14T10:00:00.000Z"),
|
|
4461
4425
|
expiresAt: at4("2026-05-21T10:00:00.000Z"),
|
|
@@ -4466,7 +4430,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4466
4430
|
projectId: projectId7,
|
|
4467
4431
|
userId: "usr_1",
|
|
4468
4432
|
strategyId: "magic-link",
|
|
4469
|
-
audience: "app",
|
|
4470
4433
|
tokenHash: "hash-uncapped",
|
|
4471
4434
|
createdAt: at4("2026-05-14T10:01:00.000Z"),
|
|
4472
4435
|
expiresAt: at4("2026-05-21T10:01:00.000Z")
|
|
@@ -4476,14 +4439,12 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4476
4439
|
await expect7(storage.sessions.findValidByTokenHash({
|
|
4477
4440
|
projectId: projectId7,
|
|
4478
4441
|
id: capped.id,
|
|
4479
|
-
audience: "atlas",
|
|
4480
4442
|
tokenHash: "hash-capped",
|
|
4481
4443
|
now: at4("2026-05-16T09:59:59.999Z")
|
|
4482
4444
|
})).resolves.toMatchObject({ id: capped.id });
|
|
4483
4445
|
await expect7(storage.sessions.findValidByTokenHash({
|
|
4484
4446
|
projectId: projectId7,
|
|
4485
4447
|
id: capped.id,
|
|
4486
|
-
audience: "atlas",
|
|
4487
4448
|
tokenHash: "hash-capped",
|
|
4488
4449
|
now: at4("2026-05-16T10:00:00.000Z")
|
|
4489
4450
|
})).resolves.toBeNull();
|
|
@@ -4493,18 +4454,12 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4493
4454
|
now: at4("2026-05-16T10:00:00.000Z")
|
|
4494
4455
|
});
|
|
4495
4456
|
expect7(active.map((session) => session.id)).toEqual([uncapped.id]);
|
|
4496
|
-
await
|
|
4497
|
-
projectId: projectId7,
|
|
4498
|
-
userId: "usr_1",
|
|
4499
|
-
audience: "atlas",
|
|
4500
|
-
now: at4("2026-05-16T10:00:00.000Z")
|
|
4501
|
-
})).resolves.toBeNull();
|
|
4502
|
-
await expect7(storage.sessions.revokeActiveForUser({
|
|
4457
|
+
const revoked = await storage.sessions.revokeActiveForUser({
|
|
4503
4458
|
projectId: projectId7,
|
|
4504
4459
|
userId: "usr_1",
|
|
4505
|
-
audience: "atlas",
|
|
4506
4460
|
revokedAt: at4("2026-05-16T10:00:00.000Z")
|
|
4507
|
-
})
|
|
4461
|
+
});
|
|
4462
|
+
expect7(revoked.map((session) => session.id)).toEqual([uncapped.id]);
|
|
4508
4463
|
});
|
|
4509
4464
|
});
|
|
4510
4465
|
test7("atomically renews valid sessions without exceeding the absolute deadline", async () => {
|
|
@@ -4515,7 +4470,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4515
4470
|
projectId: projectId7,
|
|
4516
4471
|
userId: "usr_1",
|
|
4517
4472
|
strategyId: "magic-link",
|
|
4518
|
-
audience: "atlas",
|
|
4519
4473
|
tokenHash: "hash-renew",
|
|
4520
4474
|
createdAt: at4("2026-05-14T10:00:00.000Z"),
|
|
4521
4475
|
expiresAt: at4("2026-05-15T10:00:00.000Z"),
|
|
@@ -4524,7 +4478,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4524
4478
|
const renewed = await storage.sessions.renewIfValid({
|
|
4525
4479
|
projectId: projectId7,
|
|
4526
4480
|
id: "ses_renew",
|
|
4527
|
-
audience: "atlas",
|
|
4528
4481
|
tokenHash: "hash-renew",
|
|
4529
4482
|
now: at4("2026-05-14T11:00:00.000Z"),
|
|
4530
4483
|
expiresAt: at4("2026-05-25T10:00:00.000Z")
|
|
@@ -4534,7 +4487,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4534
4487
|
const monotonic = await storage.sessions.renewIfValid({
|
|
4535
4488
|
projectId: projectId7,
|
|
4536
4489
|
id: "ses_renew",
|
|
4537
|
-
audience: "atlas",
|
|
4538
4490
|
tokenHash: "hash-renew",
|
|
4539
4491
|
now: at4("2026-05-14T12:00:00.000Z"),
|
|
4540
4492
|
expiresAt: at4("2026-05-18T10:00:00.000Z")
|
|
@@ -4543,7 +4495,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4543
4495
|
await expect7(storage.sessions.renewIfValid({
|
|
4544
4496
|
projectId: projectId7,
|
|
4545
4497
|
id: "ses_renew",
|
|
4546
|
-
audience: "atlas",
|
|
4547
4498
|
tokenHash: "wrong-hash",
|
|
4548
4499
|
now: at4("2026-05-14T13:00:00.000Z"),
|
|
4549
4500
|
expiresAt: at4("2026-05-19T10:00:00.000Z")
|
|
@@ -4551,7 +4502,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4551
4502
|
await expect7(storage.sessions.renewIfValid({
|
|
4552
4503
|
projectId: projectId7,
|
|
4553
4504
|
id: "ses_renew",
|
|
4554
|
-
audience: "atlas",
|
|
4555
4505
|
tokenHash: "hash-renew",
|
|
4556
4506
|
now: at4("2026-05-20T10:00:00.000Z"),
|
|
4557
4507
|
expiresAt: at4("2026-05-21T10:00:00.000Z")
|
|
@@ -4561,7 +4511,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4561
4511
|
projectId: projectId7,
|
|
4562
4512
|
userId: "usr_1",
|
|
4563
4513
|
strategyId: "magic-link",
|
|
4564
|
-
audience: "atlas",
|
|
4565
4514
|
tokenHash: "hash-concurrent",
|
|
4566
4515
|
createdAt: at4("2026-05-14T10:00:00.000Z"),
|
|
4567
4516
|
expiresAt: at4("2026-05-15T10:00:00.000Z")
|
|
@@ -4570,7 +4519,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4570
4519
|
storage.sessions.renewIfValid({
|
|
4571
4520
|
projectId: projectId7,
|
|
4572
4521
|
id: "ses_concurrent",
|
|
4573
|
-
audience: "atlas",
|
|
4574
4522
|
tokenHash: "hash-concurrent",
|
|
4575
4523
|
now: at4("2026-05-14T11:00:00.000Z"),
|
|
4576
4524
|
expiresAt: at4("2026-05-18T10:00:00.000Z")
|
|
@@ -4578,7 +4526,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4578
4526
|
storage.sessions.renewIfValid({
|
|
4579
4527
|
projectId: projectId7,
|
|
4580
4528
|
id: "ses_concurrent",
|
|
4581
|
-
audience: "atlas",
|
|
4582
4529
|
tokenHash: "hash-concurrent",
|
|
4583
4530
|
now: at4("2026-05-14T11:00:00.000Z"),
|
|
4584
4531
|
expiresAt: at4("2026-05-19T10:00:00.000Z")
|
|
@@ -4596,7 +4543,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4596
4543
|
projectId: projectId7,
|
|
4597
4544
|
userId: "usr_1",
|
|
4598
4545
|
strategyId: "magic-link",
|
|
4599
|
-
audience: "atlas",
|
|
4600
4546
|
tokenHash: "hash-device",
|
|
4601
4547
|
createdAt: at4("2026-05-14T10:00:00.000Z"),
|
|
4602
4548
|
expiresAt: at4("2026-05-21T10:00:00.000Z"),
|
|
@@ -4614,7 +4560,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4614
4560
|
projectId: projectId7,
|
|
4615
4561
|
userId: "usr_1",
|
|
4616
4562
|
strategyId: "magic-link",
|
|
4617
|
-
audience: "atlas",
|
|
4618
4563
|
tokenHash: "hash-plain",
|
|
4619
4564
|
createdAt: at4("2026-05-14T10:01:00.000Z"),
|
|
4620
4565
|
expiresAt: at4("2026-05-21T10:01:00.000Z")
|
|
@@ -4623,7 +4568,7 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4623
4568
|
expect7(withoutDevice.ipAddress).toBeUndefined();
|
|
4624
4569
|
});
|
|
4625
4570
|
});
|
|
4626
|
-
test7("lists a user's active sessions
|
|
4571
|
+
test7("lists a user's active sessions, newest activity first", async () => {
|
|
4627
4572
|
await withStorage(async (storage) => {
|
|
4628
4573
|
await createUser(storage);
|
|
4629
4574
|
await storage.sessions.create({
|
|
@@ -4631,7 +4576,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4631
4576
|
projectId: projectId7,
|
|
4632
4577
|
userId: "usr_1",
|
|
4633
4578
|
strategyId: "magic-link",
|
|
4634
|
-
audience: "atlas",
|
|
4635
4579
|
tokenHash: "hash-a",
|
|
4636
4580
|
createdAt: at4("2026-05-14T10:00:00.000Z"),
|
|
4637
4581
|
expiresAt: at4("2026-05-21T10:00:00.000Z")
|
|
@@ -4641,7 +4585,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4641
4585
|
projectId: projectId7,
|
|
4642
4586
|
userId: "usr_1",
|
|
4643
4587
|
strategyId: "magic-link",
|
|
4644
|
-
audience: "app",
|
|
4645
4588
|
tokenHash: "hash-b",
|
|
4646
4589
|
createdAt: at4("2026-05-14T10:05:00.000Z"),
|
|
4647
4590
|
expiresAt: at4("2026-05-21T10:05:00.000Z")
|
|
@@ -4651,7 +4594,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4651
4594
|
projectId: projectId7,
|
|
4652
4595
|
userId: "usr_1",
|
|
4653
4596
|
strategyId: "magic-link",
|
|
4654
|
-
audience: "atlas",
|
|
4655
4597
|
tokenHash: "hash-revoked",
|
|
4656
4598
|
createdAt: at4("2026-05-14T10:01:00.000Z"),
|
|
4657
4599
|
expiresAt: at4("2026-05-21T10:01:00.000Z")
|
|
@@ -4667,7 +4609,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
4667
4609
|
projectId: projectId7,
|
|
4668
4610
|
userId: "usr_2",
|
|
4669
4611
|
strategyId: "magic-link",
|
|
4670
|
-
audience: "atlas",
|
|
4671
4612
|
tokenHash: "hash-other",
|
|
4672
4613
|
createdAt: at4("2026-05-14T10:03:00.000Z"),
|
|
4673
4614
|
expiresAt: at4("2026-05-21T10:03:00.000Z")
|
|
@@ -5001,7 +4942,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5001
4942
|
projectId: projectId7,
|
|
5002
4943
|
userId: "usr_creator",
|
|
5003
4944
|
strategyId: "magic-link",
|
|
5004
|
-
audience: "atlas",
|
|
5005
4945
|
tokenHash: "hash-creator",
|
|
5006
4946
|
createdAt: at4("2026-05-14T10:00:30.000Z"),
|
|
5007
4947
|
expiresAt: at4("2026-05-21T10:00:30.000Z")
|
|
@@ -5222,7 +5162,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5222
5162
|
id: "ml_1",
|
|
5223
5163
|
projectId: projectId7,
|
|
5224
5164
|
strategyId: "magic-link",
|
|
5225
|
-
audience: "atlas",
|
|
5226
5165
|
email: "ava@acme.com",
|
|
5227
5166
|
tokenHash: "hash-1",
|
|
5228
5167
|
createdAt: at4("2026-05-14T10:00:00.000Z"),
|
|
@@ -5232,7 +5171,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5232
5171
|
id: "ml_2",
|
|
5233
5172
|
projectId: projectId7,
|
|
5234
5173
|
strategyId: "magic-link",
|
|
5235
|
-
audience: "atlas",
|
|
5236
5174
|
email: " ava@acme.com ",
|
|
5237
5175
|
tokenHash: "hash-2",
|
|
5238
5176
|
returnTo: "/dashboard",
|
|
@@ -5254,7 +5192,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5254
5192
|
tokenHash: "hash-2",
|
|
5255
5193
|
consumedAt: at4("2026-05-14T10:02:00.000Z")
|
|
5256
5194
|
})).resolves.toMatchObject({
|
|
5257
|
-
audience: "atlas",
|
|
5258
5195
|
returnTo: "/dashboard",
|
|
5259
5196
|
consumedAt: at4("2026-05-14T10:02:00.000Z")
|
|
5260
5197
|
});
|
|
@@ -5272,7 +5209,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5272
5209
|
id: "oidc_1",
|
|
5273
5210
|
projectId: projectId7,
|
|
5274
5211
|
strategyId: "okta",
|
|
5275
|
-
audience: "atlas",
|
|
5276
5212
|
stateHash: "state-hash",
|
|
5277
5213
|
nonceHash: "nonce-hash",
|
|
5278
5214
|
codeVerifier: "verifier",
|
|
@@ -5292,7 +5228,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5292
5228
|
stateHash: "state-hash",
|
|
5293
5229
|
consumedAt: at4("2026-05-14T10:01:00.000Z")
|
|
5294
5230
|
})).resolves.toMatchObject({
|
|
5295
|
-
audience: "atlas",
|
|
5296
5231
|
codeVerifier: "verifier",
|
|
5297
5232
|
consumedAt: at4("2026-05-14T10:01:00.000Z")
|
|
5298
5233
|
});
|
|
@@ -5312,7 +5247,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5312
5247
|
projectId: projectId7,
|
|
5313
5248
|
userId: "usr_1",
|
|
5314
5249
|
strategyId: "magic-link",
|
|
5315
|
-
audience: "atlas",
|
|
5316
5250
|
tokenHash: "session-hash",
|
|
5317
5251
|
createdAt: at4("2026-05-14T10:00:00.000Z"),
|
|
5318
5252
|
expiresAt: at4("2026-05-21T10:00:00.000Z")
|
|
@@ -5371,7 +5305,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5371
5305
|
await expect7(storage.sessions.findValidByTokenHash({
|
|
5372
5306
|
projectId: projectId7,
|
|
5373
5307
|
id: "ses_cli",
|
|
5374
|
-
audience: "atlas",
|
|
5375
5308
|
tokenHash: "access-1",
|
|
5376
5309
|
now
|
|
5377
5310
|
})).resolves.toBeNull();
|
|
@@ -5444,7 +5377,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5444
5377
|
projectId: projectId7,
|
|
5445
5378
|
userId: "usr_1",
|
|
5446
5379
|
strategyId: "magic-link",
|
|
5447
|
-
audience: "atlas",
|
|
5448
5380
|
tokenHash: "old-hash",
|
|
5449
5381
|
createdAt: at4("2026-05-14T10:00:00.000Z"),
|
|
5450
5382
|
expiresAt: at4("2026-05-21T10:00:00.000Z")
|
|
@@ -5453,7 +5385,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5453
5385
|
id: "ml_1",
|
|
5454
5386
|
projectId: projectId7,
|
|
5455
5387
|
strategyId: "magic-link",
|
|
5456
|
-
audience: "atlas",
|
|
5457
5388
|
email: "ava@acme.com",
|
|
5458
5389
|
tokenHash: "link-hash",
|
|
5459
5390
|
createdAt: at4("2026-05-14T10:01:00.000Z"),
|
|
@@ -5465,7 +5396,7 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5465
5396
|
tokenHash: "link-hash",
|
|
5466
5397
|
completedAt: at4("2026-05-14T10:02:00.000Z"),
|
|
5467
5398
|
newUserId: "usr_unused",
|
|
5468
|
-
session: sessionInput("ses_new", "session-hash",
|
|
5399
|
+
session: sessionInput("ses_new", "session-hash", at4("2026-06-21T10:10:00.000Z"))
|
|
5469
5400
|
});
|
|
5470
5401
|
expect7(result.user.id).toBe("usr_1");
|
|
5471
5402
|
expect7(result.session).toMatchObject({
|
|
@@ -5500,7 +5431,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5500
5431
|
id: "ml_1",
|
|
5501
5432
|
projectId: projectId7,
|
|
5502
5433
|
strategyId: "magic-link",
|
|
5503
|
-
audience: "atlas",
|
|
5504
5434
|
email: "ava@acme.com",
|
|
5505
5435
|
tokenHash: "link-hash",
|
|
5506
5436
|
createdAt: at4("2026-05-14T10:02:00.000Z"),
|
|
@@ -5552,7 +5482,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5552
5482
|
id: "ml_1",
|
|
5553
5483
|
projectId: projectId7,
|
|
5554
5484
|
strategyId: "magic-link",
|
|
5555
|
-
audience: "atlas",
|
|
5556
5485
|
email: "ava@acme.com",
|
|
5557
5486
|
tokenHash: "link-hash",
|
|
5558
5487
|
createdAt: at4("2026-05-14T10:02:00.000Z"),
|
|
@@ -5589,7 +5518,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5589
5518
|
id: "ml_1",
|
|
5590
5519
|
projectId: projectId7,
|
|
5591
5520
|
strategyId: "magic-link",
|
|
5592
|
-
audience: "atlas",
|
|
5593
5521
|
email: "ava@acme.com",
|
|
5594
5522
|
tokenHash: "link-hash",
|
|
5595
5523
|
createdAt: at4("2026-05-14T10:01:00.000Z"),
|
|
@@ -5620,7 +5548,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5620
5548
|
id: "ml_1",
|
|
5621
5549
|
projectId: projectId7,
|
|
5622
5550
|
strategyId: "magic-link",
|
|
5623
|
-
audience: "atlas",
|
|
5624
5551
|
email: "founder@acme.com",
|
|
5625
5552
|
tokenHash: "link-hash",
|
|
5626
5553
|
createdAt: at4("2026-05-14T10:01:00.000Z"),
|
|
@@ -5650,7 +5577,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5650
5577
|
id: "ml_1",
|
|
5651
5578
|
projectId: projectId7,
|
|
5652
5579
|
strategyId: "magic-link",
|
|
5653
|
-
audience: "atlas",
|
|
5654
5580
|
email: "ava@acme.com",
|
|
5655
5581
|
tokenHash: "link-hash",
|
|
5656
5582
|
createdAt: at4("2026-05-14T10:01:00.000Z"),
|
|
@@ -5684,7 +5610,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5684
5610
|
id: "oidc_1",
|
|
5685
5611
|
projectId: projectId7,
|
|
5686
5612
|
strategyId: "okta",
|
|
5687
|
-
audience: "atlas",
|
|
5688
5613
|
stateHash: "state-hash",
|
|
5689
5614
|
nonceHash: "nonce-hash",
|
|
5690
5615
|
codeVerifier: "verifier",
|
|
@@ -5720,7 +5645,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5720
5645
|
id: "oidc_1",
|
|
5721
5646
|
projectId: projectId7,
|
|
5722
5647
|
strategyId: "okta",
|
|
5723
|
-
audience: "atlas",
|
|
5724
5648
|
stateHash: "state-hash",
|
|
5725
5649
|
nonceHash: "nonce-hash",
|
|
5726
5650
|
codeVerifier: "verifier",
|
|
@@ -5756,7 +5680,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5756
5680
|
id: "oidc_1",
|
|
5757
5681
|
projectId: projectId7,
|
|
5758
5682
|
strategyId: "okta",
|
|
5759
|
-
audience: "atlas",
|
|
5760
5683
|
stateHash: "state-hash",
|
|
5761
5684
|
nonceHash: "nonce-hash",
|
|
5762
5685
|
codeVerifier: "verifier",
|
|
@@ -5797,7 +5720,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5797
5720
|
id: "oidc_1",
|
|
5798
5721
|
projectId: projectId7,
|
|
5799
5722
|
strategyId: "okta",
|
|
5800
|
-
audience: "atlas",
|
|
5801
5723
|
stateHash: "state-hash",
|
|
5802
5724
|
nonceHash: "nonce-hash",
|
|
5803
5725
|
codeVerifier: "verifier",
|
|
@@ -5823,7 +5745,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5823
5745
|
id: "oidc_bootstrap",
|
|
5824
5746
|
projectId: projectId7,
|
|
5825
5747
|
strategyId: "okta",
|
|
5826
|
-
audience: "atlas",
|
|
5827
5748
|
stateHash: "bootstrap-state",
|
|
5828
5749
|
nonceHash: "nonce-hash",
|
|
5829
5750
|
codeVerifier: "verifier",
|
|
@@ -5907,7 +5828,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5907
5828
|
projectId: projectId7,
|
|
5908
5829
|
userId: "usr_1",
|
|
5909
5830
|
strategyId: "magic-link",
|
|
5910
|
-
audience: "atlas",
|
|
5911
5831
|
tokenHash: "hash-1",
|
|
5912
5832
|
createdAt: at4("2026-05-14T10:00:00.000Z"),
|
|
5913
5833
|
expiresAt: at4("2026-05-21T10:00:00.000Z")
|
|
@@ -5917,7 +5837,6 @@ function runAuthStorageContractSuite(label, options) {
|
|
|
5917
5837
|
projectId: projectId7,
|
|
5918
5838
|
userId: "usr_1",
|
|
5919
5839
|
strategyId: "magic-link",
|
|
5920
|
-
audience: "app",
|
|
5921
5840
|
tokenHash: "hash-app",
|
|
5922
5841
|
createdAt: at4("2026-05-14T10:01:00.000Z"),
|
|
5923
5842
|
expiresAt: at4("2026-05-21T10:01:00.000Z")
|
|
@@ -8236,7 +8155,6 @@ async function seedAuth(auth) {
|
|
|
8236
8155
|
projectId: projectId10,
|
|
8237
8156
|
userId: "user-one",
|
|
8238
8157
|
strategyId: "contract",
|
|
8239
|
-
audience: "atlas",
|
|
8240
8158
|
tokenHash: "session-user-hash",
|
|
8241
8159
|
createdAt,
|
|
8242
8160
|
expiresAt
|
|
@@ -8246,7 +8164,6 @@ async function seedAuth(auth) {
|
|
|
8246
8164
|
projectId: projectId10,
|
|
8247
8165
|
userId: "user-other",
|
|
8248
8166
|
strategyId: "contract",
|
|
8249
|
-
audience: "atlas",
|
|
8250
8167
|
tokenHash: "session-other-hash",
|
|
8251
8168
|
createdAt,
|
|
8252
8169
|
expiresAt
|
|
@@ -17637,4 +17554,4 @@ export {
|
|
|
17637
17554
|
startTestWebhookRun
|
|
17638
17555
|
};
|
|
17639
17556
|
|
|
17640
|
-
//# debugId=
|
|
17557
|
+
//# debugId=C16BFB6859C8E37964756E2164756E21
|