@voltro/protocol 0.86.0 → 0.88.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/CHANGELOG.md +5484 -0
- package/THIRD-PARTY-NOTICES.md +3 -227
- package/dist/apiRoleEndpoints.js +107 -0
- package/dist/apiRoleObservation.js +67 -0
- package/dist/apikey.d.ts +10 -0
- package/dist/apikey.js +1 -2
- package/dist/approval.js +1 -2
- package/dist/approvalDescriptors.js +1 -2
- package/dist/auth.js +40 -21
- package/dist/boundedRing.js +1 -2
- package/dist/businessRule.js +1 -2
- package/dist/canonicalJson.js +13 -0
- package/dist/connection.js +1 -2
- package/dist/devActivity.js +1 -2
- package/dist/errorSchema.js +23 -0
- package/dist/errorValue.js +1 -2
- package/dist/event.js +52 -47
- package/dist/formCapture.js +11 -0
- package/dist/httpStreamMaxDuration.js +8 -0
- package/dist/idempotency.js +89 -35
- package/dist/idempotencyInput.js +122 -0
- package/dist/identity.js +1 -2
- package/dist/index.d.ts +876 -124
- package/dist/index.js +51 -40
- package/dist/inspect.d.ts +1 -1
- package/dist/inspect.js +1 -2
- package/dist/inspectBackfill.js +1 -2
- package/dist/inspectCommandRejection.js +1 -2
- package/dist/inspectProjection.js +1 -2
- package/dist/inspectStorageProjection.js +1 -2
- package/dist/inspectValueIdentity.js +1 -2
- package/dist/inspectWorkflowExecution.js +1 -2
- package/dist/inspectWorkflowQueuedStart.js +1 -2
- package/dist/jsonSchema.js +1 -2
- package/dist/jwt.d.ts +10 -0
- package/dist/jwt.js +2 -3
- package/dist/outbox.js +1 -2
- package/dist/pairing.js +1 -2
- package/dist/plugin.js +44 -19
- package/dist/pluginAccountMerge.js +87 -0
- package/dist/pluginNaming.js +1 -2
- package/dist/pluginPrivacy.js +165 -0
- package/dist/procedure.js +115 -98
- package/dist/publicApi.js +191 -211
- package/dist/queryOptionalSources.js +13 -0
- package/dist/reactivityChannel.js +1 -2
- package/dist/rest.d.ts +227 -64
- package/dist/rest.js +296 -194
- package/dist/restFormat.js +1 -2
- package/dist/restReceipt.js +42 -0
- package/dist/revalidate.js +12 -0
- package/dist/rowEquality.js +1 -2
- package/dist/rowPatch.js +1 -2
- package/dist/schemaShape.js +1 -2
- package/dist/scopes.js +72 -40
- package/dist/secretWindows.js +70 -0
- package/dist/serverErrorBus.js +1 -2
- package/dist/serviceCall.js +1 -2
- package/dist/session.d.ts +89 -6
- package/dist/session.js +56 -56
- package/dist/sessionHeader.js +1 -2
- package/dist/ssrfPolicy.js +29 -0
- package/dist/storageAccess.js +1 -2
- package/dist/storeErrors.js +1 -2
- package/dist/storeScreenshots.js +1 -2
- package/dist/strictInput.js +1 -2
- package/dist/subscriptionEvent.js +1 -2
- package/dist/tenantSelection.js +1 -2
- package/dist/time.js +1 -2
- package/dist/undo.js +1 -2
- package/dist/validation.js +1 -2
- package/dist/webSocketGateway.js +8 -3
- package/dist/workflow.js +1 -2
- package/dist/workflowAccess.js +1 -2
- package/dist/workflowRestart.js +1 -2
- package/dist/workflowRetry.js +1 -2
- package/dist/workflowStartOutcome.js +1 -2
- package/package.json +7 -5
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# Third-Party Notices — @voltro/protocol
|
|
2
2
|
|
|
3
|
-
This package uses the
|
|
3
|
+
This package uses the third-party software listed below. Each is the
|
|
4
4
|
property of its respective copyright holders and is used under the terms of
|
|
5
5
|
its license. This file is provided for attribution; it grants no rights in
|
|
6
6
|
@voltro/protocol itself, which is proprietary (see LICENSE).
|
|
7
7
|
|
|
8
|
-
Generated from the resolved runtime dependency closure (
|
|
8
|
+
Generated from the resolved runtime dependency closure (2 packages).
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
## jose@6.2.
|
|
12
|
+
## jose@6.2.13
|
|
13
13
|
|
|
14
14
|
License: MIT
|
|
15
15
|
|
|
@@ -37,214 +37,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
37
37
|
SOFTWARE.
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
## typeid-js@1.2.0
|
|
41
|
-
|
|
42
|
-
License: Apache-2.0
|
|
43
|
-
|
|
44
|
-
```
|
|
45
|
-
Apache License
|
|
46
|
-
Version 2.0, January 2004
|
|
47
|
-
http://www.apache.org/licenses/
|
|
48
|
-
|
|
49
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
50
|
-
|
|
51
|
-
1. Definitions.
|
|
52
|
-
|
|
53
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
54
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
55
|
-
|
|
56
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
57
|
-
the copyright owner that is granting the License.
|
|
58
|
-
|
|
59
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
60
|
-
other entities that control, are controlled by, or are under common
|
|
61
|
-
control with that entity. For the purposes of this definition,
|
|
62
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
63
|
-
direction or management of such entity, whether by contract or
|
|
64
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
65
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
66
|
-
|
|
67
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
68
|
-
exercising permissions granted by this License.
|
|
69
|
-
|
|
70
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
71
|
-
including but not limited to software source code, documentation
|
|
72
|
-
source, and configuration files.
|
|
73
|
-
|
|
74
|
-
"Object" form shall mean any form resulting from mechanical
|
|
75
|
-
transformation or translation of a Source form, including but
|
|
76
|
-
not limited to compiled object code, generated documentation,
|
|
77
|
-
and conversions to other media types.
|
|
78
|
-
|
|
79
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
80
|
-
Object form, made available under the License, as indicated by a
|
|
81
|
-
copyright notice that is included in or attached to the work
|
|
82
|
-
(an example is provided in the Appendix below).
|
|
83
|
-
|
|
84
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
85
|
-
form, that is based on (or derived from) the Work and for which the
|
|
86
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
87
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
88
|
-
of this License, Derivative Works shall not include works that remain
|
|
89
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
90
|
-
the Work and Derivative Works thereof.
|
|
91
|
-
|
|
92
|
-
"Contribution" shall mean any work of authorship, including
|
|
93
|
-
the original version of the Work and any modifications or additions
|
|
94
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
95
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
96
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
97
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
98
|
-
means any form of electronic, verbal, or written communication sent
|
|
99
|
-
to the Licensor or its representatives, including but not limited to
|
|
100
|
-
communication on electronic mailing lists, source code control systems,
|
|
101
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
102
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
103
|
-
excluding communication that is conspicuously marked or otherwise
|
|
104
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
105
|
-
|
|
106
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
107
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
108
|
-
subsequently incorporated within the Work.
|
|
109
|
-
|
|
110
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
111
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
112
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
113
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
114
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
115
|
-
Work and such Derivative Works in Source or Object form.
|
|
116
|
-
|
|
117
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
118
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
119
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
120
|
-
(except as stated in this section) patent license to make, have made,
|
|
121
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
122
|
-
where such license applies only to those patent claims licensable
|
|
123
|
-
by such Contributor that are necessarily infringed by their
|
|
124
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
125
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
126
|
-
institute patent litigation against any entity (including a
|
|
127
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
128
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
129
|
-
or contributory patent infringement, then any patent licenses
|
|
130
|
-
granted to You under this License for that Work shall terminate
|
|
131
|
-
as of the date such litigation is filed.
|
|
132
|
-
|
|
133
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
134
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
135
|
-
modifications, and in Source or Object form, provided that You
|
|
136
|
-
meet the following conditions:
|
|
137
|
-
|
|
138
|
-
(a) You must give any other recipients of the Work or
|
|
139
|
-
Derivative Works a copy of this License; and
|
|
140
|
-
|
|
141
|
-
(b) You must cause any modified files to carry prominent notices
|
|
142
|
-
stating that You changed the files; and
|
|
143
|
-
|
|
144
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
145
|
-
that You distribute, all copyright, patent, trademark, and
|
|
146
|
-
attribution notices from the Source form of the Work,
|
|
147
|
-
excluding those notices that do not pertain to any part of
|
|
148
|
-
the Derivative Works; and
|
|
149
|
-
|
|
150
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
151
|
-
distribution, then any Derivative Works that You distribute must
|
|
152
|
-
include a readable copy of the attribution notices contained
|
|
153
|
-
within such NOTICE file, excluding those notices that do not
|
|
154
|
-
pertain to any part of the Derivative Works, in at least one
|
|
155
|
-
of the following places: within a NOTICE text file distributed
|
|
156
|
-
as part of the Derivative Works; within the Source form or
|
|
157
|
-
documentation, if provided along with the Derivative Works; or,
|
|
158
|
-
within a display generated by the Derivative Works, if and
|
|
159
|
-
wherever such third-party notices normally appear. The contents
|
|
160
|
-
of the NOTICE file are for informational purposes only and
|
|
161
|
-
do not modify the License. You may add Your own attribution
|
|
162
|
-
notices within Derivative Works that You distribute, alongside
|
|
163
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
164
|
-
that such additional attribution notices cannot be construed
|
|
165
|
-
as modifying the License.
|
|
166
|
-
|
|
167
|
-
You may add Your own copyright statement to Your modifications and
|
|
168
|
-
may provide additional or different license terms and conditions
|
|
169
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
170
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
171
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
172
|
-
the conditions stated in this License.
|
|
173
|
-
|
|
174
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
175
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
176
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
177
|
-
this License, without any additional terms or conditions.
|
|
178
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
179
|
-
the terms of any separate license agreement you may have executed
|
|
180
|
-
with Licensor regarding such Contributions.
|
|
181
|
-
|
|
182
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
183
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
184
|
-
except as required for reasonable and customary use in describing the
|
|
185
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
186
|
-
|
|
187
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
188
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
189
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
190
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
191
|
-
implied, including, without limitation, any warranties or conditions
|
|
192
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
193
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
194
|
-
appropriateness of using or redistributing the Work and assume any
|
|
195
|
-
risks associated with Your exercise of permissions under this License.
|
|
196
|
-
|
|
197
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
198
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
199
|
-
unless required by applicable law (such as deliberate and grossly
|
|
200
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
201
|
-
liable to You for damages, including any direct, indirect, special,
|
|
202
|
-
incidental, or consequential damages of any character arising as a
|
|
203
|
-
result of this License or out of the use or inability to use the
|
|
204
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
205
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
206
|
-
other commercial damages or losses), even if such Contributor
|
|
207
|
-
has been advised of the possibility of such damages.
|
|
208
|
-
|
|
209
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
210
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
211
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
212
|
-
or other liability obligations and/or rights consistent with this
|
|
213
|
-
License. However, in accepting such obligations, You may act only
|
|
214
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
215
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
216
|
-
defend, and hold each Contributor harmless for any liability
|
|
217
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
218
|
-
of your accepting any such warranty or additional liability.
|
|
219
|
-
|
|
220
|
-
END OF TERMS AND CONDITIONS
|
|
221
|
-
|
|
222
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
223
|
-
|
|
224
|
-
To apply the Apache License to your work, attach the following
|
|
225
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
226
|
-
replaced with your own identifying information. (Don't include
|
|
227
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
228
|
-
comment syntax for the file format. We also recommend that a
|
|
229
|
-
file or class name and description of purpose be included on the
|
|
230
|
-
same "printed page" as the copyright notice for easier
|
|
231
|
-
identification within third-party archives.
|
|
232
|
-
|
|
233
|
-
Copyright [yyyy] [name of copyright owner]
|
|
234
|
-
|
|
235
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
236
|
-
you may not use this file except in compliance with the License.
|
|
237
|
-
You may obtain a copy of the License at
|
|
238
|
-
|
|
239
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
240
|
-
|
|
241
|
-
Unless required by applicable law or agreed to in writing, software
|
|
242
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
243
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
244
|
-
See the License for the specific language governing permissions and
|
|
245
|
-
limitations under the License.
|
|
246
|
-
```
|
|
247
|
-
|
|
248
40
|
## ulid@3.0.2
|
|
249
41
|
|
|
250
42
|
License: MIT
|
|
@@ -273,19 +65,3 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
273
65
|
SOFTWARE.
|
|
274
66
|
```
|
|
275
67
|
|
|
276
|
-
## uuid@11.1.1
|
|
277
|
-
|
|
278
|
-
License: MIT
|
|
279
|
-
|
|
280
|
-
```
|
|
281
|
-
The MIT License (MIT)
|
|
282
|
-
|
|
283
|
-
Copyright (c) 2010-2020 Robert Kieffer and other contributors
|
|
284
|
-
|
|
285
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
286
|
-
|
|
287
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
288
|
-
|
|
289
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
290
|
-
```
|
|
291
|
-
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// src/apiRoleEndpoints.ts
|
|
2
|
+
var e = (e, t) => {
|
|
3
|
+
if (!e || typeof e != "object" || Array.isArray(e) || ![Object.prototype, null].includes(Object.getPrototypeOf(e))) throw Error("Invalid role endpoint object");
|
|
4
|
+
let n = Object.create(null);
|
|
5
|
+
for (let r of Reflect.ownKeys(e)) {
|
|
6
|
+
let i = Object.getOwnPropertyDescriptor(e, r);
|
|
7
|
+
if (typeof r != "string" || !t.includes(r) || !i.enumerable || !("value" in i)) throw Error("Invalid role endpoint field");
|
|
8
|
+
n[r] = i.value;
|
|
9
|
+
}
|
|
10
|
+
return n;
|
|
11
|
+
}, t = (e, t, n = !1) => {
|
|
12
|
+
if (!Array.isArray(e) || e.length < +!n || e.length > t || Reflect.ownKeys(e).length !== e.length + 1) throw Error("Invalid role endpoint list");
|
|
13
|
+
let r = [];
|
|
14
|
+
for (let t = 0; t < e.length; t++) {
|
|
15
|
+
let n = Object.getOwnPropertyDescriptor(e, String(t));
|
|
16
|
+
if (!n?.enumerable || !("value" in n)) throw Error("Invalid role endpoint list item");
|
|
17
|
+
r.push(n.value);
|
|
18
|
+
}
|
|
19
|
+
return r;
|
|
20
|
+
}, n = /^(?:[A-Za-z][A-Za-z0-9_-]*\.)*[A-Za-z][A-Za-z0-9_-]*$/, r = /^(?:[A-Za-z_][A-Za-z0-9_-]*\.)*[A-Za-z_][A-Za-z0-9_-]*$/, i = [
|
|
21
|
+
"rpc",
|
|
22
|
+
"subscriptions",
|
|
23
|
+
"events",
|
|
24
|
+
"presence",
|
|
25
|
+
"workflows",
|
|
26
|
+
"schedules",
|
|
27
|
+
"directors",
|
|
28
|
+
"drainers",
|
|
29
|
+
"reapers",
|
|
30
|
+
"retention",
|
|
31
|
+
"rest",
|
|
32
|
+
"webhooks",
|
|
33
|
+
"inspect",
|
|
34
|
+
"cdc"
|
|
35
|
+
], a = (r) => {
|
|
36
|
+
let a = e(r, [
|
|
37
|
+
"version",
|
|
38
|
+
"transport",
|
|
39
|
+
"roles"
|
|
40
|
+
]);
|
|
41
|
+
if (a.version !== 1 || a.transport !== "compose-nginx" && a.transport !== "kubernetes-nginx") throw Error("Unknown role endpoint protocol");
|
|
42
|
+
let o = /* @__PURE__ */ new Set(), s = t(a.roles, 32, !0).map((r) => {
|
|
43
|
+
let a = e(r, [
|
|
44
|
+
"role",
|
|
45
|
+
"routes",
|
|
46
|
+
"workloads",
|
|
47
|
+
"httpPath",
|
|
48
|
+
"webSocketPath"
|
|
49
|
+
]), s = a.role;
|
|
50
|
+
if (typeof s != "string" || !/^[a-z][a-z0-9-]{0,63}$/.test(s) || o.has(s)) throw Error("Invalid or duplicate endpoint role");
|
|
51
|
+
o.add(s);
|
|
52
|
+
let c = t(a.workloads, 14).map((e) => {
|
|
53
|
+
if (typeof e != "string" || !i.includes(e)) throw Error("Unknown endpoint workload");
|
|
54
|
+
return e;
|
|
55
|
+
});
|
|
56
|
+
if (new Set(c).size !== c.length) throw Error("Duplicate endpoint workload");
|
|
57
|
+
let l = a.routes === null ? null : t(a.routes, 128).map((e) => {
|
|
58
|
+
if (typeof e != "string" || e.length > 191 || !n.test(e.endsWith(".*") ? e.slice(0, -2) : e)) throw Error("Invalid endpoint tag filter");
|
|
59
|
+
return e;
|
|
60
|
+
});
|
|
61
|
+
if (l && new Set(l).size !== l.length) throw Error("Duplicate endpoint tag filter");
|
|
62
|
+
let u = "/_voltro/roles/" + s;
|
|
63
|
+
if (a.webSocketPath !== u + "/ws" || a.httpPath !== (c.includes("rpc") ? u + "/rpc" : null)) throw Error("Role endpoints must use canonical same-origin paths");
|
|
64
|
+
return Object.freeze({
|
|
65
|
+
role: s,
|
|
66
|
+
routes: l && Object.freeze(l),
|
|
67
|
+
workloads: Object.freeze(c),
|
|
68
|
+
httpPath: a.httpPath,
|
|
69
|
+
webSocketPath: a.webSocketPath
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
return Object.freeze({
|
|
73
|
+
version: 1,
|
|
74
|
+
transport: a.transport,
|
|
75
|
+
roles: Object.freeze(s)
|
|
76
|
+
});
|
|
77
|
+
}, o = (e, t, n) => {
|
|
78
|
+
if (t.length > 191 || !r.test(t) || ![
|
|
79
|
+
"rpc",
|
|
80
|
+
"subscriptions",
|
|
81
|
+
"events"
|
|
82
|
+
].includes(n)) throw Error("Invalid role endpoint request");
|
|
83
|
+
let i, a = -1, o = !1;
|
|
84
|
+
for (let r of e.roles) {
|
|
85
|
+
if (!r.workloads.includes(n)) continue;
|
|
86
|
+
let e = r.routes === null ? 0 : Math.max(-1, ...r.routes.map((e) => e.endsWith(".*") ? t.startsWith(e.slice(0, -1)) ? e.length : -1 : e === t ? 1024 + e.length : -1));
|
|
87
|
+
e > a ? (i = r, a = e, o = !1) : e >= 0 && e === a && (o = !0);
|
|
88
|
+
}
|
|
89
|
+
if (!i || o) throw Error(o ? "Ambiguous role endpoint" : "No role endpoint owns this tag and workload");
|
|
90
|
+
return i;
|
|
91
|
+
}, s = (e) => {
|
|
92
|
+
if (!/^[A-Za-z0-9_][A-Za-z0-9_.-]{0,127}$/.test(e)) throw Error("Invalid role proxy API name");
|
|
93
|
+
return `/_voltro/role-api/api-${e}/ws`;
|
|
94
|
+
}, c = (e, t, n) => {
|
|
95
|
+
if (!/^[a-z][a-z0-9-]{0,63}$/.test(t.role) || !["http", "websocket"].includes(n)) throw Error("Invalid role transport");
|
|
96
|
+
let r = new URL(e);
|
|
97
|
+
if (![
|
|
98
|
+
"http:",
|
|
99
|
+
"https:",
|
|
100
|
+
"ws:",
|
|
101
|
+
"wss:"
|
|
102
|
+
].includes(r.protocol) || r.username || r.password) throw Error("Invalid role endpoint origin");
|
|
103
|
+
let i = n === "http" ? t.httpPath : t.webSocketPath;
|
|
104
|
+
if (!i || i !== "/_voltro/roles/" + t.role + (n === "http" ? "/rpc" : "/ws")) throw Error("Missing or noncanonical role transport");
|
|
105
|
+
return r.protocol = n === "http" ? r.protocol === "https:" || r.protocol === "wss:" ? "https:" : "http:" : r.protocol === "https:" || r.protocol === "wss:" ? "wss:" : "ws:", r.pathname = (/^\/_voltro\/role-api\/api-[A-Za-z0-9_][A-Za-z0-9_.-]{0,127}\/ws$/.test(r.pathname) ? r.pathname.slice(0, -3) : "") + i, r.search = "", r.hash = "", r.toString();
|
|
106
|
+
};
|
|
107
|
+
export { c as apiRoleEndpointUrl, s as apiRoleProxyBasePath, a as captureApiRoleEndpoints, o as selectApiRoleEndpoint };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { API_WORKLOADS as e } from "./plugin.js";
|
|
2
|
+
import { Schema as t } from "effect";
|
|
3
|
+
// src/apiRoleObservation.ts
|
|
4
|
+
var n = t.Literals(e), r = t.Number.pipe(t.check(t.isFinite()), t.check(t.isGreaterThanOrEqualTo(0))), i = r.pipe(t.check(t.isInt())), a = i.pipe(t.check(t.isLessThanOrEqualTo(864e13))), o = t.Struct({
|
|
5
|
+
workload: n,
|
|
6
|
+
seconds: r
|
|
7
|
+
}), s = t.Struct({
|
|
8
|
+
replicaId: t.NonEmptyString,
|
|
9
|
+
startedAt: a,
|
|
10
|
+
role: t.NonEmptyString,
|
|
11
|
+
workloads: t.Array(n),
|
|
12
|
+
capturedAt: a,
|
|
13
|
+
publisher: t.Struct({
|
|
14
|
+
ready: t.Boolean,
|
|
15
|
+
stopped: t.Boolean,
|
|
16
|
+
pendingBuckets: i,
|
|
17
|
+
droppedBuckets: i,
|
|
18
|
+
rejectedSegments: i,
|
|
19
|
+
writeFailures: i,
|
|
20
|
+
observationErrors: i
|
|
21
|
+
}),
|
|
22
|
+
currentMeasuredSeconds: t.Array(t.Struct({
|
|
23
|
+
role: t.NonEmptyString,
|
|
24
|
+
workload: n,
|
|
25
|
+
seconds: r
|
|
26
|
+
})),
|
|
27
|
+
history: t.Struct({
|
|
28
|
+
state: t.Literals([
|
|
29
|
+
"pending",
|
|
30
|
+
"available",
|
|
31
|
+
"unavailable"
|
|
32
|
+
]),
|
|
33
|
+
measuredSeconds: t.Array(o),
|
|
34
|
+
assessment: t.NullOr(t.Struct({
|
|
35
|
+
from: a,
|
|
36
|
+
until: a,
|
|
37
|
+
complete: t.Boolean,
|
|
38
|
+
missingBuckets: i.pipe(t.check(t.isLessThanOrEqualTo(288))),
|
|
39
|
+
incompleteWorkloads: t.Array(n),
|
|
40
|
+
reason: t.Literals([
|
|
41
|
+
"invalid-observation",
|
|
42
|
+
"incomplete",
|
|
43
|
+
"idle",
|
|
44
|
+
"observed"
|
|
45
|
+
]),
|
|
46
|
+
totals: t.Array(t.Struct({
|
|
47
|
+
workload: n,
|
|
48
|
+
seconds: r,
|
|
49
|
+
share: r.pipe(t.check(t.isLessThanOrEqualTo(1)))
|
|
50
|
+
})),
|
|
51
|
+
splitCandidates: t.Array(n)
|
|
52
|
+
}))
|
|
53
|
+
})
|
|
54
|
+
}).pipe(t.check(t.makeFilter((e) => {
|
|
55
|
+
let t = (e) => new Set(e).size === e.length, n = (n) => t(n) && n.every((t) => e.workloads.some((e) => e === t));
|
|
56
|
+
if (!e.workloads.length || !t(e.workloads) || e.startedAt > e.capturedAt || !n(e.currentMeasuredSeconds.map((e) => e.workload)) || e.currentMeasuredSeconds.some((t) => t.role !== e.role) || !n(e.history.measuredSeconds.map((e) => e.workload))) return !1;
|
|
57
|
+
let r = e.history.assessment;
|
|
58
|
+
if (e.history.state !== "available") return r === null && e.history.measuredSeconds.length === 0;
|
|
59
|
+
if (!r || r.until - r.from !== 864e5 || r.until % 3e5 != 0 || r.until > e.capturedAt || !n(r.incompleteWorkloads) || !n(r.splitCandidates) || !n(r.totals.map((e) => e.workload))) return !1;
|
|
60
|
+
if (!r.complete) return r.totals.length === 0 && r.splitCandidates.length === 0 && ["incomplete", "invalid-observation"].includes(r.reason);
|
|
61
|
+
if (r.from < e.startedAt || r.missingBuckets !== 0 || r.incompleteWorkloads.length !== 0 || r.totals.length !== e.workloads.length) return !1;
|
|
62
|
+
let i = r.totals.reduce((e, t) => e + t.seconds, 0);
|
|
63
|
+
if (i > 86400 || r.reason !== (i === 0 ? "idle" : "observed") || r.totals.some((e) => Math.abs(e.share - (i === 0 ? 0 : e.seconds / i)) > 1e-9)) return !1;
|
|
64
|
+
let a = r.totals.filter((e) => e.share > .3).map((e) => e.workload), o = a.length >= 2 ? a : [];
|
|
65
|
+
return o.length === r.splitCandidates.length && o.every((e) => r.splitCandidates.includes(e));
|
|
66
|
+
}, { message: "Inconsistent API role observation" })));
|
|
67
|
+
export { s as ApiRoleObservationSchema };
|
package/dist/apikey.d.ts
CHANGED
|
@@ -129,6 +129,13 @@ declare interface AuthStrategy {
|
|
|
129
129
|
declare interface AuthStrategyInput {
|
|
130
130
|
readonly headers: Readonly<Record<string, string | undefined>>;
|
|
131
131
|
readonly clientId: number;
|
|
132
|
+
/** HTTP request target, supplied by REST transports. Request selectors may
|
|
133
|
+
* read an explicit tenant hint here; it is never authentication or authority.
|
|
134
|
+
* Absent for connection transports and non-HTTP callers. */
|
|
135
|
+
readonly http?: {
|
|
136
|
+
readonly path: string;
|
|
137
|
+
readonly query: string;
|
|
138
|
+
};
|
|
132
139
|
/**
|
|
133
140
|
* The app's DataStore, for a strategy that must READ to identify the caller.
|
|
134
141
|
*
|
|
@@ -196,6 +203,9 @@ declare type StrategyResolution = {
|
|
|
196
203
|
|
|
197
204
|
declare const Subject: Schema.Union<readonly [Schema.Struct<{
|
|
198
205
|
readonly type: Schema.Literal<"user">;
|
|
206
|
+
/** A guest has a stable identity but has not linked a registered account.
|
|
207
|
+
* This identity mark survives session signing; it never grants authority. */
|
|
208
|
+
readonly kind: Schema.optional<Schema.Literal<"guest">>;
|
|
199
209
|
readonly id: Schema.String;
|
|
200
210
|
readonly tenantId: Schema.String;
|
|
201
211
|
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
package/dist/apikey.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHash as e } from "node:crypto";
|
|
2
|
-
|
|
2
|
+
// src/apiKeyStrategy.ts
|
|
3
3
|
var t = (t) => e("sha256").update(t, "utf8").digest("hex"), n = (e) => {
|
|
4
4
|
let t = {};
|
|
5
5
|
for (let [n, r] of Object.entries(e)) r !== void 0 && (t[n] = r);
|
|
@@ -38,5 +38,4 @@ var t = (t) => e("sha256").update(t, "utf8").digest("hex"), n = (e) => {
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
-
//#endregion
|
|
42
41
|
export { r as apiKeyStrategy };
|
package/dist/approval.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/approval.ts
|
|
3
3
|
var t = class extends e.TaggedError()("ApprovalRequired", {
|
|
4
4
|
approvalId: e.String,
|
|
5
5
|
procedure: e.String,
|
|
@@ -60,5 +60,4 @@ var t = class extends e.TaggedError()("ApprovalRequired", {
|
|
|
60
60
|
note: e.NullOr(e.String),
|
|
61
61
|
relation: e.Literals(["to-decide", "requested"])
|
|
62
62
|
});
|
|
63
|
-
//#endregion
|
|
64
63
|
export { u as ApprovalDecisionErrors, l as ApprovalErrors, a as ApprovalExpired, s as ApprovalForbidden, n as ApprovalNotFound, o as ApprovalNotPending, i as ApprovalRejected, t as ApprovalRequired, r as ApprovalSelfApproval, c as ApprovalUnavailable, d as PendingApproval };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApprovalDecisionErrors as e, PendingApproval as t } from "./approval.js";
|
|
2
2
|
import { defineMutation as n, defineQuery as r } from "./procedure.js";
|
|
3
3
|
import { Schema as i } from "effect";
|
|
4
|
-
|
|
4
|
+
// src/approvalDescriptors.ts
|
|
5
5
|
var a = "__voltro.approvals.pending", o = "__voltro.approvals.decide", s = r({
|
|
6
6
|
name: a,
|
|
7
7
|
source: "_voltro_approvals",
|
|
@@ -22,5 +22,4 @@ var a = "__voltro.approvals.pending", o = "__voltro.approvals.decide", s = r({
|
|
|
22
22
|
error: e,
|
|
23
23
|
openAccess: "the approver authority is the PENDING ROW's own recorded scopes (plus an unconditional self-approval refusal), checked in-handler — a descriptor-level scope would have to be the union of every approval-requiring procedure in the app"
|
|
24
24
|
});
|
|
25
|
-
//#endregion
|
|
26
25
|
export { o as APPROVALS_DECIDE_TAG, a as APPROVALS_PENDING_TAG, c as approvalsDecideDescriptor, s as approvalsPendingQueryDescriptor };
|
package/dist/auth.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { RequestedTenantRefused as e, TenantSelectionRefused as t, isTenantSelectable as n, selectSubjectTenant as r } from "./tenantSelection.js";
|
|
2
2
|
import { Context as i, Schema as a, Struct as o } from "effect";
|
|
3
3
|
import { RpcMiddleware as s } from "effect/rpc";
|
|
4
|
-
|
|
4
|
+
// src/auth.ts
|
|
5
5
|
var c = a.Record(a.String, a.Unknown), l = a.optional(a.Array(a.String)), u = a.Struct({
|
|
6
6
|
type: a.Literal("user"),
|
|
7
|
+
kind: a.optional(a.Literal("guest")),
|
|
7
8
|
id: a.String,
|
|
8
9
|
tenantId: a.String,
|
|
9
10
|
scopes: l,
|
|
@@ -103,7 +104,7 @@ var c = a.Record(a.String, a.Unknown), l = a.optional(a.Array(a.String)), u = a.
|
|
|
103
104
|
let n = F.get(e);
|
|
104
105
|
if (n === void 0) return await t?.(e), e;
|
|
105
106
|
let r = await n.resolve();
|
|
106
|
-
if (r.type !== e.type || r.id !== e.id || r.tenantId !== e.tenantId || e.type === "service" && (r.type !== "service" || r.service !== e.service)) throw new M({ reason: "
|
|
107
|
+
if (r.type !== e.type || r.id !== e.id || r.tenantId !== e.tenantId || e.type === "service" && (r.type !== "service" || r.service !== e.service) || e.type === "user" && (r.type !== "user" || r.kind !== e.kind) || e.type === "serviceAccount" && (r.type !== "serviceAccount" || r.auditActorId !== e.auditActorId)) throw new M({ reason: "request identity or tenant changed; authenticate again" });
|
|
107
108
|
return F.set(r, {
|
|
108
109
|
current: r,
|
|
109
110
|
resolve: n.resolve
|
|
@@ -140,14 +141,33 @@ var c = a.Record(a.String, a.Unknown), l = a.optional(a.Array(a.String)), u = a.
|
|
|
140
141
|
},
|
|
141
142
|
removed: i
|
|
142
143
|
};
|
|
143
|
-
}, H =
|
|
144
|
+
}, H = async (e, t, n) => {
|
|
145
|
+
let r = n?.resolveScopes, i = B(r === void 0 ? [] : await r(e, t));
|
|
146
|
+
if (i.kind === "unavailable") return {
|
|
147
|
+
kind: "unavailable",
|
|
148
|
+
reason: i.reason
|
|
149
|
+
};
|
|
150
|
+
let a = V(e, i).subject;
|
|
151
|
+
if (a.type !== "anonymous") for (let e of n?.subjectGuards ?? []) {
|
|
152
|
+
let n = await e(a, t);
|
|
153
|
+
if (!n.ok) return {
|
|
154
|
+
kind: "vetoed",
|
|
155
|
+
code: n.code,
|
|
156
|
+
message: n.message
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
return {
|
|
160
|
+
kind: "resolved",
|
|
161
|
+
subject: a
|
|
162
|
+
};
|
|
163
|
+
}, U = 3e4, W = 1e4, G = (e) => `${e.type}\u0000${e.tenantId ?? ""}\u0000${e.id ?? ""}`, K = () => {
|
|
144
164
|
if (typeof process > "u") return;
|
|
145
165
|
let e = process.env.VOLTRO_AUTH_SCOPE_CACHE_TTL_MS;
|
|
146
166
|
if (e === void 0 || e === "") return;
|
|
147
167
|
let t = Number(e);
|
|
148
168
|
return Number.isFinite(t) && t >= 0 ? t : void 0;
|
|
149
|
-
},
|
|
150
|
-
let t = e.ttlMs ??
|
|
169
|
+
}, q = (e = {}) => {
|
|
170
|
+
let t = e.ttlMs ?? K() ?? 3e4, n = e.maxEntries ?? 1e4, r = e.now ?? Date.now, i = /* @__PURE__ */ new Map(), a = () => {
|
|
151
171
|
if (i.size <= n) return;
|
|
152
172
|
let e = r();
|
|
153
173
|
for (let [t, n] of i) n.freshUntil <= e && i.delete(t);
|
|
@@ -183,10 +203,10 @@ var c = a.Record(a.String, a.Unknown), l = a.optional(a.Array(a.String)), u = a.
|
|
|
183
203
|
};
|
|
184
204
|
}
|
|
185
205
|
};
|
|
186
|
-
},
|
|
206
|
+
}, J = (e) => typeof e.resolve == "function", Y = (e) => {
|
|
187
207
|
let t = e.authorization ?? e.Authorization;
|
|
188
208
|
if (t !== void 0) return /^Bearer\s+(.+)$/i.exec(t.trim())?.[1]?.trim();
|
|
189
|
-
},
|
|
209
|
+
}, X = async (e, i, a, o) => {
|
|
190
210
|
let s;
|
|
191
211
|
try {
|
|
192
212
|
s = await a.source(e, i);
|
|
@@ -207,7 +227,7 @@ var c = a.Record(a.String, a.Unknown), l = a.optional(a.Array(a.String)), u = a.
|
|
|
207
227
|
} catch (e) {
|
|
208
228
|
throw e instanceof t ? o(e.reason) : e;
|
|
209
229
|
}
|
|
210
|
-
},
|
|
230
|
+
}, Z = async (e, i, a, o) => {
|
|
211
231
|
if (!n(e)) return e;
|
|
212
232
|
let s = {
|
|
213
233
|
type: e.type,
|
|
@@ -236,14 +256,14 @@ var c = a.Record(a.String, a.Unknown), l = a.optional(a.Array(a.String)), u = a.
|
|
|
236
256
|
}
|
|
237
257
|
return e;
|
|
238
258
|
}
|
|
239
|
-
},
|
|
240
|
-
let n =
|
|
259
|
+
}, Q = (e, t) => {
|
|
260
|
+
let n = Y(t);
|
|
241
261
|
if (n === void 0) return e;
|
|
242
262
|
let r = e.filter((e) => e.claimsBearerPrefix !== void 0 && e.claimsBearerPrefix !== "" && n.startsWith(e.claimsBearerPrefix));
|
|
243
263
|
if (r.length === 0) return e;
|
|
244
264
|
let i = new Set(r);
|
|
245
265
|
return [...r, ...e.filter((e) => !i.has(e))];
|
|
246
|
-
},
|
|
266
|
+
}, $ = (e, t) => {
|
|
247
267
|
if (e === "refuse") throw new M({ reason: "anonymous callers are refused" });
|
|
248
268
|
if (e === "no-tenant") return "";
|
|
249
269
|
if (e === "header") {
|
|
@@ -251,24 +271,24 @@ var c = a.Record(a.String, a.Unknown), l = a.optional(a.Array(a.String)), u = a.
|
|
|
251
271
|
return t;
|
|
252
272
|
}
|
|
253
273
|
return "tenantId" in e ? e.tenantId : t !== void 0 && t !== "" ? t : e.headerOrTenant;
|
|
254
|
-
},
|
|
274
|
+
}, ee = (t, n) => {
|
|
255
275
|
let r = n?.resolveScopes, i = n?.subjectGuards ?? [], a = n?.tenantSelection !== void 0 || n?.requestedTenant !== void 0;
|
|
256
276
|
if (n?.memberships !== void 0 !== a) throw Error("composeAuthStrategies: memberships and tenant selection come together; `memberships` requires `tenantSelection` or `requestedTenant`; each tenant selector requires `memberships` to authorize its target.");
|
|
257
277
|
let o = n?.memberships !== void 0 && n.tenantSelection !== void 0 ? {
|
|
258
278
|
memberships: n.memberships,
|
|
259
279
|
store: n.tenantSelection
|
|
260
|
-
} : void 0, s = r !== void 0 || i.length > 0, c = !s || n?.scopeCache === !1 ? null : n?.scopeCache !== void 0 &&
|
|
280
|
+
} : void 0, s = r !== void 0 || i.length > 0, c = !s || n?.scopeCache === !1 ? null : n?.scopeCache !== void 0 && J(n.scopeCache) ? n.scopeCache : q(n?.scopeCache ?? {}), l = async (a) => {
|
|
261
281
|
let l = n?.getStore?.(), u = l === void 0 ? a : {
|
|
262
282
|
...a,
|
|
263
283
|
store: l
|
|
264
284
|
}, d;
|
|
265
|
-
for (let a of
|
|
285
|
+
for (let a of Q(t, u.headers)) {
|
|
266
286
|
let t = await a.resolve(u);
|
|
267
287
|
if (t.kind === "matched") {
|
|
268
288
|
let l = (e) => (n?.onStrategyFailed?.({
|
|
269
289
|
strategyId: a.id,
|
|
270
290
|
reason: e
|
|
271
|
-
}), new M({ reason: e })), d = n?.requestedTenant === void 0 || n.memberships === void 0 ? void 0 : await
|
|
291
|
+
}), new M({ reason: e })), d = n?.requestedTenant === void 0 || n.memberships === void 0 ? void 0 : await X(t.subject, u, {
|
|
272
292
|
source: n.requestedTenant,
|
|
273
293
|
memberships: n.memberships
|
|
274
294
|
}, (t) => (n?.onStrategyFailed?.({
|
|
@@ -279,7 +299,7 @@ var c = a.Record(a.String, a.Unknown), l = a.optional(a.Array(a.String)), u = a.
|
|
|
279
299
|
...t.subject,
|
|
280
300
|
scopes: []
|
|
281
301
|
} };
|
|
282
|
-
let f = d ?? (o === void 0 ? t.subject : await
|
|
302
|
+
let f = d ?? (o === void 0 ? t.subject : await Z(t.subject, u, o, l)), p = f;
|
|
283
303
|
if (s) {
|
|
284
304
|
let e = async () => {
|
|
285
305
|
let e = r === void 0 ? {
|
|
@@ -305,7 +325,7 @@ var c = a.Record(a.String, a.Unknown), l = a.optional(a.Array(a.String)), u = a.
|
|
|
305
325
|
}, { decision: t, fresh: o } = c === null ? {
|
|
306
326
|
decision: await e(),
|
|
307
327
|
fresh: !0
|
|
308
|
-
} : await c.resolve(
|
|
328
|
+
} : await c.resolve(G(f), e);
|
|
309
329
|
if (t.kind === "vetoed") {
|
|
310
330
|
let e = `${t.code}: ${t.message}`;
|
|
311
331
|
throw n?.onStrategyFailed?.({
|
|
@@ -350,7 +370,7 @@ var c = a.Record(a.String, a.Unknown), l = a.optional(a.Array(a.String)), u = a.
|
|
|
350
370
|
} : e };
|
|
351
371
|
}
|
|
352
372
|
if (d !== void 0) throw new M({ reason: `credential rejected: ${d}` });
|
|
353
|
-
return { subject: b(
|
|
373
|
+
return { subject: b($(n?.anonymous ?? "no-tenant", u.headers["x-tenant"])) };
|
|
354
374
|
};
|
|
355
375
|
return async (e) => {
|
|
356
376
|
let t = {
|
|
@@ -362,8 +382,7 @@ var c = a.Record(a.String, a.Unknown), l = a.optional(a.Array(a.String)), u = a.
|
|
|
362
382
|
subject: r
|
|
363
383
|
};
|
|
364
384
|
};
|
|
365
|
-
},
|
|
385
|
+
}, te = (e, t) => {
|
|
366
386
|
if (e.type === "anonymous") throw new M(t === void 0 ? {} : { reason: t });
|
|
367
387
|
};
|
|
368
|
-
|
|
369
|
-
export { N as AuthMiddleware, j as ConnectionInfo, P as ConnectionInfoMiddleware, U as DEFAULT_SCOPE_CACHE_MAX_ENTRIES, H as DEFAULT_SCOPE_CACHE_TTL_MS, O as IMPERSONATION_METADATA_KEY, g as Subject, _ as SubjectIdentity, A as SubjectService, M as Unauthenticated, b as anonymousSubject, V as applyScopeDecision, ee as assertAuthenticated, I as bindSubjectAuthority, $ as composeAuthStrategies, L as currentSubjectAuthority, z as hasCallbackRoutes, w as isMachineSubject, C as isServiceSubject, D as isSystemSubject, K as makeScopeCache, Z as orderByBearerPrefix, k as rawImpersonationMark, R as reauthorizeSubject, W as scopeCacheKey, S as serviceSubject, T as subjectAuditActorId, v as subjectIdentity, x as systemSubject, E as tenantScopedSubject };
|
|
388
|
+
export { N as AuthMiddleware, j as ConnectionInfo, P as ConnectionInfoMiddleware, W as DEFAULT_SCOPE_CACHE_MAX_ENTRIES, U as DEFAULT_SCOPE_CACHE_TTL_MS, O as IMPERSONATION_METADATA_KEY, g as Subject, _ as SubjectIdentity, A as SubjectService, M as Unauthenticated, b as anonymousSubject, V as applyScopeDecision, te as assertAuthenticated, I as bindSubjectAuthority, ee as composeAuthStrategies, L as currentSubjectAuthority, z as hasCallbackRoutes, w as isMachineSubject, C as isServiceSubject, D as isSystemSubject, q as makeScopeCache, Q as orderByBearerPrefix, k as rawImpersonationMark, R as reauthorizeSubject, H as resolveIdentityAuthority, G as scopeCacheKey, S as serviceSubject, T as subjectAuditActorId, v as subjectIdentity, x as systemSubject, E as tenantScopedSubject };
|