@axonflow/sdk 9.0.0 → 9.2.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.
Files changed (54) hide show
  1. package/README.md +117 -22
  2. package/dist/cjs/authzen.d.ts +328 -0
  3. package/dist/cjs/authzen.d.ts.map +1 -0
  4. package/dist/cjs/authzen.js +875 -0
  5. package/dist/cjs/authzen.js.map +1 -0
  6. package/dist/cjs/client.d.ts +67 -0
  7. package/dist/cjs/client.d.ts.map +1 -1
  8. package/dist/cjs/client.js +122 -3
  9. package/dist/cjs/client.js.map +1 -1
  10. package/dist/cjs/index.d.ts +3 -0
  11. package/dist/cjs/index.d.ts.map +1 -1
  12. package/dist/cjs/index.js +45 -1
  13. package/dist/cjs/index.js.map +1 -1
  14. package/dist/cjs/telemetry.d.ts +68 -13
  15. package/dist/cjs/telemetry.d.ts.map +1 -1
  16. package/dist/cjs/telemetry.js +92 -9
  17. package/dist/cjs/telemetry.js.map +1 -1
  18. package/dist/cjs/types/authzen.gen.d.ts +405 -0
  19. package/dist/cjs/types/authzen.gen.d.ts.map +1 -0
  20. package/dist/cjs/types/authzen.gen.js +798 -0
  21. package/dist/cjs/types/authzen.gen.js.map +1 -0
  22. package/dist/cjs/types/gateway.d.ts +68 -8
  23. package/dist/cjs/types/gateway.d.ts.map +1 -1
  24. package/dist/cjs/types/masfeat.d.ts +98 -0
  25. package/dist/cjs/types/masfeat.d.ts.map +1 -1
  26. package/dist/cjs/version.d.ts +1 -1
  27. package/dist/cjs/version.js +1 -1
  28. package/dist/esm/authzen.d.ts +328 -0
  29. package/dist/esm/authzen.d.ts.map +1 -0
  30. package/dist/esm/authzen.js +862 -0
  31. package/dist/esm/authzen.js.map +1 -0
  32. package/dist/esm/client.d.ts +67 -0
  33. package/dist/esm/client.d.ts.map +1 -1
  34. package/dist/esm/client.js +122 -3
  35. package/dist/esm/client.js.map +1 -1
  36. package/dist/esm/index.d.ts +3 -0
  37. package/dist/esm/index.d.ts.map +1 -1
  38. package/dist/esm/index.js +12 -0
  39. package/dist/esm/index.js.map +1 -1
  40. package/dist/esm/telemetry.d.ts +68 -13
  41. package/dist/esm/telemetry.d.ts.map +1 -1
  42. package/dist/esm/telemetry.js +91 -9
  43. package/dist/esm/telemetry.js.map +1 -1
  44. package/dist/esm/types/authzen.gen.d.ts +405 -0
  45. package/dist/esm/types/authzen.gen.d.ts.map +1 -0
  46. package/dist/esm/types/authzen.gen.js +773 -0
  47. package/dist/esm/types/authzen.gen.js.map +1 -0
  48. package/dist/esm/types/gateway.d.ts +68 -8
  49. package/dist/esm/types/gateway.d.ts.map +1 -1
  50. package/dist/esm/types/masfeat.d.ts +98 -0
  51. package/dist/esm/types/masfeat.d.ts.map +1 -1
  52. package/dist/esm/version.d.ts +1 -1
  53. package/dist/esm/version.js +1 -1
  54. package/package.json +1 -1
@@ -0,0 +1,405 @@
1
+ /**
2
+ * AuthZEN wire types and validators. GENERATED FILE — DO NOT EDIT.
3
+ *
4
+ * Source: tests/fixtures/authzen-surface.json
5
+ * artifact: axonflow-authzen-surface v1
6
+ * profile: axonflow-authzen-profile-2026-08-29
7
+ * contract schema: 2026-08-29
8
+ * schema digest: sha256:647e16f769766f0ee8cf4913aaf5ac5c4567660fd2903da6766eead5db279efe
9
+ *
10
+ * Regenerate with:
11
+ *
12
+ * node scripts/gen-authzen-types/generate.js
13
+ *
14
+ * Editing this file by hand is pointless: tests/authzen-generator.test.ts
15
+ * regenerates it in memory and compares bytes, so a hand edit fails CI on the
16
+ * next run.
17
+ */
18
+ export declare const AUTHZEN_PROFILE_V1 = "axonflow-authzen-profile-2026-08-29";
19
+ export declare const AUTHZEN_CONTRACT_SCHEMA_VERSION = "2026-08-29";
20
+ export declare const AUTHZEN_SOURCE_SCHEMA_SHA256 = "sha256:647e16f769766f0ee8cf4913aaf5ac5c4567660fd2903da6766eead5db279efe";
21
+ /**
22
+ * Raised when a value does not match the AuthZEN contract. The message always
23
+ * names a JSON Pointer, because on this surface the pointer IS the diagnosis:
24
+ * "unsupported_subject" without the offending member is a puzzle.
25
+ */
26
+ export declare class AuthZENSchemaError extends Error {
27
+ readonly pointer: string;
28
+ constructor(pointer: string, detail: string);
29
+ }
30
+ export declare function authzenFail(pointer: string, detail: string): never;
31
+ export declare function authzenObject(value: unknown, at: string): Record<string, unknown>;
32
+ export declare function authzenString(value: unknown, at: string): string;
33
+ export declare function authzenBoolean(value: unknown, at: string): boolean;
34
+ export declare function authzenInteger(value: unknown, at: string): number;
35
+ export declare function authzenArray(value: unknown, at: string): unknown[];
36
+ /**
37
+ * Refuse a member the contract does not declare.
38
+ *
39
+ * On the RESPONSE path this is the whole strictness argument: a member this
40
+ * build has never heard of means the server is speaking a profile it cannot
41
+ * fully read, and dropping it silently would mean acting on a partial reading
42
+ * of an authorization decision. On the REQUEST path it catches a member the
43
+ * caller invented before it becomes a 422.
44
+ */
45
+ export declare function authzenNoExtraMembers(obj: Record<string, unknown>, at: string, known: readonly string[]): void;
46
+ /**
47
+ * AuthZENErrorCode is a closed set of values the server may send. The trailing
48
+ * `(string & {})` keeps an unrecognised value from a newer server assignable instead
49
+ * of a compile error, while the named members still autocomplete. Use
50
+ * AUTHZEN_ERROR_CODE_VALUES to tell a value this build knows from one it does not.
51
+ */
52
+ export type AuthZENErrorCode = 'malformed_envelope' | 'incomplete_evaluation' | 'unsupported_subject' | 'unsupported_action' | 'unsupported_resource' | 'unevaluable_attribute' | 'missing_evaluable_content' | 'evaluation_unavailable' | (string & {});
53
+ export declare const AUTHZEN_ERROR_CODE_MALFORMED_ENVELOPE: AuthZENErrorCode;
54
+ export declare const AUTHZEN_ERROR_CODE_INCOMPLETE_EVALUATION: AuthZENErrorCode;
55
+ export declare const AUTHZEN_ERROR_CODE_UNSUPPORTED_SUBJECT: AuthZENErrorCode;
56
+ export declare const AUTHZEN_ERROR_CODE_UNSUPPORTED_ACTION: AuthZENErrorCode;
57
+ export declare const AUTHZEN_ERROR_CODE_UNSUPPORTED_RESOURCE: AuthZENErrorCode;
58
+ export declare const AUTHZEN_ERROR_CODE_UNEVALUABLE_ATTRIBUTE: AuthZENErrorCode;
59
+ export declare const AUTHZEN_ERROR_CODE_MISSING_EVALUABLE_CONTENT: AuthZENErrorCode;
60
+ export declare const AUTHZEN_ERROR_CODE_EVALUATION_UNAVAILABLE: AuthZENErrorCode;
61
+ export declare const AUTHZEN_ERROR_CODE_VALUES: readonly AuthZENErrorCode[];
62
+ /**
63
+ * AuthZENCategory is a closed set of values the server may send. The trailing `(string
64
+ * & {})` keeps an unrecognised value from a newer server assignable instead of a
65
+ * compile error, while the named members still autocomplete. Use
66
+ * AUTHZEN_CATEGORY_VALUES to tell a value this build knows from one it does not.
67
+ */
68
+ export type AuthZENCategory = 'allowed' | 'not_permitted' | 'approval_required' | 'temporarily_unavailable' | 'invalid_request' | (string & {});
69
+ export declare const AUTHZEN_CATEGORY_ALLOWED: AuthZENCategory;
70
+ export declare const AUTHZEN_CATEGORY_NOT_PERMITTED: AuthZENCategory;
71
+ export declare const AUTHZEN_CATEGORY_APPROVAL_REQUIRED: AuthZENCategory;
72
+ export declare const AUTHZEN_CATEGORY_TEMPORARILY_UNAVAILABLE: AuthZENCategory;
73
+ export declare const AUTHZEN_CATEGORY_INVALID_REQUEST: AuthZENCategory;
74
+ export declare const AUTHZEN_CATEGORY_VALUES: readonly AuthZENCategory[];
75
+ /**
76
+ * AuthZENIdentifierKind is a closed set of values the server may send. The trailing
77
+ * `(string & {})` keeps an unrecognised value from a newer server assignable instead
78
+ * of a compile error, while the named members still autocomplete. Use
79
+ * AUTHZEN_IDENTIFIER_KIND_VALUES to tell a value this build knows from one it does
80
+ * not.
81
+ */
82
+ export type AuthZENIdentifierKind = 'organization' | 'principal' | 'group' | 'resource' | 'action' | 'tool' | 'client' | 'session' | (string & {});
83
+ export declare const AUTHZEN_IDENTIFIER_KIND_ORGANIZATION: AuthZENIdentifierKind;
84
+ export declare const AUTHZEN_IDENTIFIER_KIND_PRINCIPAL: AuthZENIdentifierKind;
85
+ export declare const AUTHZEN_IDENTIFIER_KIND_GROUP: AuthZENIdentifierKind;
86
+ export declare const AUTHZEN_IDENTIFIER_KIND_RESOURCE: AuthZENIdentifierKind;
87
+ export declare const AUTHZEN_IDENTIFIER_KIND_ACTION: AuthZENIdentifierKind;
88
+ export declare const AUTHZEN_IDENTIFIER_KIND_TOOL: AuthZENIdentifierKind;
89
+ export declare const AUTHZEN_IDENTIFIER_KIND_CLIENT: AuthZENIdentifierKind;
90
+ export declare const AUTHZEN_IDENTIFIER_KIND_SESSION: AuthZENIdentifierKind;
91
+ export declare const AUTHZEN_IDENTIFIER_KIND_VALUES: readonly AuthZENIdentifierKind[];
92
+ /**
93
+ * AuthZENObligationType is a closed set of values the server may send. The trailing
94
+ * `(string & {})` keeps an unrecognised value from a newer server assignable instead
95
+ * of a compile error, while the named members still autocomplete. Use
96
+ * AUTHZEN_OBLIGATION_TYPE_VALUES to tell a value this build knows from one it does
97
+ * not.
98
+ */
99
+ export type AuthZENObligationType = 'approval_challenge' | 'field_remove' | 'field_redact' | 'field_hash' | 'field_mask' | 'field_annotate' | 'field_tokenize' | 'schema_transform' | 'response_filter' | 'route_restriction' | 'step_up_authentication' | 'quota_reservation' | 'immutable_audit' | 'notification' | (string & {});
100
+ export declare const AUTHZEN_OBLIGATION_TYPE_APPROVAL_CHALLENGE: AuthZENObligationType;
101
+ export declare const AUTHZEN_OBLIGATION_TYPE_FIELD_REMOVE: AuthZENObligationType;
102
+ export declare const AUTHZEN_OBLIGATION_TYPE_FIELD_REDACT: AuthZENObligationType;
103
+ export declare const AUTHZEN_OBLIGATION_TYPE_FIELD_HASH: AuthZENObligationType;
104
+ export declare const AUTHZEN_OBLIGATION_TYPE_FIELD_MASK: AuthZENObligationType;
105
+ export declare const AUTHZEN_OBLIGATION_TYPE_FIELD_ANNOTATE: AuthZENObligationType;
106
+ export declare const AUTHZEN_OBLIGATION_TYPE_FIELD_TOKENIZE: AuthZENObligationType;
107
+ export declare const AUTHZEN_OBLIGATION_TYPE_SCHEMA_TRANSFORM: AuthZENObligationType;
108
+ export declare const AUTHZEN_OBLIGATION_TYPE_RESPONSE_FILTER: AuthZENObligationType;
109
+ export declare const AUTHZEN_OBLIGATION_TYPE_ROUTE_RESTRICTION: AuthZENObligationType;
110
+ export declare const AUTHZEN_OBLIGATION_TYPE_STEP_UP_AUTHENTICATION: AuthZENObligationType;
111
+ export declare const AUTHZEN_OBLIGATION_TYPE_QUOTA_RESERVATION: AuthZENObligationType;
112
+ export declare const AUTHZEN_OBLIGATION_TYPE_IMMUTABLE_AUDIT: AuthZENObligationType;
113
+ export declare const AUTHZEN_OBLIGATION_TYPE_NOTIFICATION: AuthZENObligationType;
114
+ export declare const AUTHZEN_OBLIGATION_TYPE_VALUES: readonly AuthZENObligationType[];
115
+ /**
116
+ * AuthZENOperationalState is a closed set of values the server may send. The trailing
117
+ * `(string & {})` keeps an unrecognised value from a newer server assignable instead
118
+ * of a compile error, while the named members still autocomplete. Use
119
+ * AUTHZEN_OPERATIONAL_STATE_VALUES to tell a value this build knows from one it does
120
+ * not.
121
+ */
122
+ export type AuthZENOperationalState = 'ALLOW' | 'DENY' | 'CHALLENGE' | 'ERROR' | (string & {});
123
+ export declare const AUTHZEN_OPERATIONAL_STATE_ALLOW: AuthZENOperationalState;
124
+ export declare const AUTHZEN_OPERATIONAL_STATE_DENY: AuthZENOperationalState;
125
+ export declare const AUTHZEN_OPERATIONAL_STATE_CHALLENGE: AuthZENOperationalState;
126
+ export declare const AUTHZEN_OPERATIONAL_STATE_ERROR: AuthZENOperationalState;
127
+ export declare const AUTHZEN_OPERATIONAL_STATE_VALUES: readonly AuthZENOperationalState[];
128
+ /**
129
+ * AuthZENReasonCode is a closed set of values the server may send. The trailing
130
+ * `(string & {})` keeps an unrecognised value from a newer server assignable instead
131
+ * of a compile error, while the named members still autocomplete. Use
132
+ * AUTHZEN_REASON_CODE_VALUES to tell a value this build knows from one it does not.
133
+ */
134
+ export type AuthZENReasonCode = 'permitted' | 'approval_required' | 'explicit_constraint' | 'no_matching_permission' | 'unknown_constraint' | 'unknown_permission' | 'unknown_requirement' | 'invalid_input' | 'evaluation_error' | 'unsupported_obligation' | 'obligation_conflict' | 'unknown_action' | 'unknown_realm' | 'schema_violation' | 'delegation_depth_exceeded' | 'budget_exhausted' | 'binding_mismatch' | 'approval_unsatisfiable' | 'approval_expired' | 'authoring_rejected' | (string & {});
135
+ export declare const AUTHZEN_REASON_CODE_PERMITTED: AuthZENReasonCode;
136
+ export declare const AUTHZEN_REASON_CODE_APPROVAL_REQUIRED: AuthZENReasonCode;
137
+ export declare const AUTHZEN_REASON_CODE_EXPLICIT_CONSTRAINT: AuthZENReasonCode;
138
+ export declare const AUTHZEN_REASON_CODE_NO_MATCHING_PERMISSION: AuthZENReasonCode;
139
+ export declare const AUTHZEN_REASON_CODE_UNKNOWN_CONSTRAINT: AuthZENReasonCode;
140
+ export declare const AUTHZEN_REASON_CODE_UNKNOWN_PERMISSION: AuthZENReasonCode;
141
+ export declare const AUTHZEN_REASON_CODE_UNKNOWN_REQUIREMENT: AuthZENReasonCode;
142
+ export declare const AUTHZEN_REASON_CODE_INVALID_INPUT: AuthZENReasonCode;
143
+ export declare const AUTHZEN_REASON_CODE_EVALUATION_ERROR: AuthZENReasonCode;
144
+ export declare const AUTHZEN_REASON_CODE_UNSUPPORTED_OBLIGATION: AuthZENReasonCode;
145
+ export declare const AUTHZEN_REASON_CODE_OBLIGATION_CONFLICT: AuthZENReasonCode;
146
+ export declare const AUTHZEN_REASON_CODE_UNKNOWN_ACTION: AuthZENReasonCode;
147
+ export declare const AUTHZEN_REASON_CODE_UNKNOWN_REALM: AuthZENReasonCode;
148
+ export declare const AUTHZEN_REASON_CODE_SCHEMA_VIOLATION: AuthZENReasonCode;
149
+ export declare const AUTHZEN_REASON_CODE_DELEGATION_DEPTH_EXCEEDED: AuthZENReasonCode;
150
+ export declare const AUTHZEN_REASON_CODE_BUDGET_EXHAUSTED: AuthZENReasonCode;
151
+ export declare const AUTHZEN_REASON_CODE_BINDING_MISMATCH: AuthZENReasonCode;
152
+ export declare const AUTHZEN_REASON_CODE_APPROVAL_UNSATISFIABLE: AuthZENReasonCode;
153
+ export declare const AUTHZEN_REASON_CODE_APPROVAL_EXPIRED: AuthZENReasonCode;
154
+ export declare const AUTHZEN_REASON_CODE_AUTHORING_REJECTED: AuthZENReasonCode;
155
+ export declare const AUTHZEN_REASON_CODE_VALUES: readonly AuthZENReasonCode[];
156
+ /**
157
+ * One immutable threshold clause: a quorum of distinct approvers drawn from a named
158
+ * eligible set. It is named here rather than inlined under approval_requirement so it
159
+ * corresponds one-to-one with the Go ApprovalClause, which is what lets the drift
160
+ * guard compare it and every SDK generate it as a type rather than an anonymous shape.
161
+ */
162
+ export interface AuthZENApprovalClause {
163
+ quorum: number;
164
+ eligible: AuthZENIdentifier[];
165
+ }
166
+ /**
167
+ * A conjunction of immutable threshold clauses. Clauses are never collapsed by pool
168
+ * intersection or union.
169
+ */
170
+ export interface AuthZENApprovalRequirement {
171
+ all_of: AuthZENApprovalClause[];
172
+ separation_of_duties: boolean;
173
+ expires_at: string;
174
+ }
175
+ /**
176
+ * The AuthZEN action object.
177
+ */
178
+ export interface AuthZENAction {
179
+ name: string;
180
+ properties?: Record<string, unknown>;
181
+ }
182
+ /**
183
+ * The plural envelope: a shared subject, action, resource and context at the top
184
+ * level, with one entry per decision. The number of decisions is fixed by the MAPPING,
185
+ * never by argument data, so an empty evaluations array is malformed rather than a
186
+ * request for zero decisions.
187
+ */
188
+ export interface AuthZENBulk {
189
+ subject?: AuthZENSubject;
190
+ action?: AuthZENAction;
191
+ resource?: AuthZENResource;
192
+ context?: Record<string, unknown>;
193
+ evaluations: AuthZENRequest[];
194
+ }
195
+ /**
196
+ * The top level. Exactly two members are defined and exactly one may be PRESENT.
197
+ * Presence is decided on the KEY SET, not on a decoded pointer, so {"evaluation":
198
+ * {...}, "evaluations": null} carries both declared members and is malformed.
199
+ */
200
+ export interface AuthZENEnvelope {
201
+ /**
202
+ * The singular member. Unlike a plural entry it has no shared base to inherit from,
203
+ * so it must carry its own subject, action and resource.
204
+ */
205
+ evaluation?: AuthZENRequest;
206
+ evaluations?: AuthZENBulk;
207
+ }
208
+ /**
209
+ * The structured refusal body, returned when a request could not be EVALUATED. It is a
210
+ * separate shape from the response rather than an extra member on it, because a
211
+ * refusal is not a decision: a response carrying decision=false says the request was
212
+ * evaluated and denied, and returning that for a request that was never evaluated
213
+ * would make 'denied' and 'unevaluable' the same event in every audit and every client
214
+ * branch.
215
+ */
216
+ export interface AuthZENError {
217
+ code: AuthZENErrorCode;
218
+ pointer?: string;
219
+ message: string;
220
+ supported?: string[];
221
+ request_id?: string;
222
+ }
223
+ /**
224
+ * One subject-action-resource-context evaluation. Every member is structurally
225
+ * OPTIONAL here because a plural-envelope entry inherits any member it omits from the
226
+ * envelope's shared base. The completeness invariant - that the MERGED entry carries a
227
+ * subject, an action and a resource - is a cross-object property this document cannot
228
+ * express, and AuthZENEnvelope.Project enforces it. A validator that passes this
229
+ * schema has therefore NOT established completeness, which is why the singular member
230
+ * below carries its own required list.
231
+ */
232
+ export interface AuthZENRequest {
233
+ subject?: AuthZENSubject;
234
+ action?: AuthZENAction;
235
+ resource?: AuthZENResource;
236
+ context?: Record<string, unknown>;
237
+ }
238
+ /**
239
+ * The AuthZEN resource object.
240
+ */
241
+ export interface AuthZENResource {
242
+ type: string;
243
+ id: string;
244
+ properties?: Record<string, unknown>;
245
+ }
246
+ /**
247
+ * The AuthZEN reply. `decision` is the collapsed boolean: ALLOW is true and every
248
+ * other state is false. It is the only member an un-negotiated enforcement point
249
+ * receives.
250
+ */
251
+ export interface AuthZENResponse {
252
+ decision: boolean;
253
+ context?: AuthZENResponseContext;
254
+ }
255
+ /**
256
+ * The versioned AxonFlow profile payload. It is present only for a Policy Enforcement
257
+ * Point that NEGOTIATED the profile; one that did not receives the boolean alone,
258
+ * because handing a partial interpretation to a plane that cannot act on it is the
259
+ * failure ADR-065 invariant 12 forbids.
260
+ */
261
+ export interface AuthZENResponseContext {
262
+ profile: string;
263
+ state: AuthZENOperationalState;
264
+ category: AuthZENCategory;
265
+ reason?: AuthZENReasonCode;
266
+ obligations?: AuthZENObligation[];
267
+ approval?: AuthZENApprovalRequirement;
268
+ decision_id: string;
269
+ schema_version: string;
270
+ }
271
+ /**
272
+ * The AuthZEN subject object. type and id are canonical identifier components; a
273
+ * display name, an email or a token claim is never one of them.
274
+ */
275
+ export interface AuthZENSubject {
276
+ type: string;
277
+ id: string;
278
+ properties?: Record<string, unknown>;
279
+ }
280
+ /**
281
+ * A canonical identifier. Display names, emails, token claims, connector names and
282
+ * aliases are never identifiers.
283
+ */
284
+ export interface AuthZENIdentifier {
285
+ kind: AuthZENIdentifierKind;
286
+ type: string;
287
+ qualifier?: string;
288
+ local: string;
289
+ }
290
+ /**
291
+ * One typed instruction owned by a named enforcement component.
292
+ */
293
+ export interface AuthZENObligation {
294
+ type: AuthZENObligationType;
295
+ target?: string;
296
+ params?: Record<string, string>;
297
+ mandatory: boolean;
298
+ source_policy: string;
299
+ schema_version: number;
300
+ }
301
+ /**
302
+ * Validate an unknown value as AuthZENApprovalClause, or throw naming the member at
303
+ * fault. Unknown members are REFUSED rather than dropped: on the response path an
304
+ * unrecognised member is a server speaking a profile this build does not understand,
305
+ * and quietly ignoring it would mean acting on a partial reading of an authorization
306
+ * decision.
307
+ */
308
+ export declare function validateAuthZENApprovalClause(value: unknown, at: string): AuthZENApprovalClause;
309
+ /**
310
+ * Validate an unknown value as AuthZENApprovalRequirement, or throw naming the member
311
+ * at fault. Unknown members are REFUSED rather than dropped: on the response path an
312
+ * unrecognised member is a server speaking a profile this build does not understand,
313
+ * and quietly ignoring it would mean acting on a partial reading of an authorization
314
+ * decision.
315
+ */
316
+ export declare function validateAuthZENApprovalRequirement(value: unknown, at: string): AuthZENApprovalRequirement;
317
+ /**
318
+ * Validate an unknown value as AuthZENAction, or throw naming the member at fault.
319
+ * Unknown members are REFUSED rather than dropped: on the response path an
320
+ * unrecognised member is a server speaking a profile this build does not understand,
321
+ * and quietly ignoring it would mean acting on a partial reading of an authorization
322
+ * decision.
323
+ */
324
+ export declare function validateAuthZENAction(value: unknown, at: string): AuthZENAction;
325
+ /**
326
+ * Validate an unknown value as AuthZENBulk, or throw naming the member at fault.
327
+ * Unknown members are REFUSED rather than dropped: on the response path an
328
+ * unrecognised member is a server speaking a profile this build does not understand,
329
+ * and quietly ignoring it would mean acting on a partial reading of an authorization
330
+ * decision.
331
+ */
332
+ export declare function validateAuthZENBulk(value: unknown, at: string): AuthZENBulk;
333
+ /**
334
+ * Validate an unknown value as AuthZENEnvelope, or throw naming the member at fault.
335
+ * Unknown members are REFUSED rather than dropped: on the response path an
336
+ * unrecognised member is a server speaking a profile this build does not understand,
337
+ * and quietly ignoring it would mean acting on a partial reading of an authorization
338
+ * decision.
339
+ */
340
+ export declare function validateAuthZENEnvelope(value: unknown, at: string): AuthZENEnvelope;
341
+ /**
342
+ * Validate an unknown value as AuthZENError, or throw naming the member at fault.
343
+ * Unknown members are REFUSED rather than dropped: on the response path an
344
+ * unrecognised member is a server speaking a profile this build does not understand,
345
+ * and quietly ignoring it would mean acting on a partial reading of an authorization
346
+ * decision.
347
+ */
348
+ export declare function validateAuthZENError(value: unknown, at: string): AuthZENError;
349
+ /**
350
+ * Validate an unknown value as AuthZENRequest, or throw naming the member at fault.
351
+ * Unknown members are REFUSED rather than dropped: on the response path an
352
+ * unrecognised member is a server speaking a profile this build does not understand,
353
+ * and quietly ignoring it would mean acting on a partial reading of an authorization
354
+ * decision.
355
+ */
356
+ export declare function validateAuthZENRequest(value: unknown, at: string): AuthZENRequest;
357
+ /**
358
+ * Validate an unknown value as AuthZENResource, or throw naming the member at fault.
359
+ * Unknown members are REFUSED rather than dropped: on the response path an
360
+ * unrecognised member is a server speaking a profile this build does not understand,
361
+ * and quietly ignoring it would mean acting on a partial reading of an authorization
362
+ * decision.
363
+ */
364
+ export declare function validateAuthZENResource(value: unknown, at: string): AuthZENResource;
365
+ /**
366
+ * Validate an unknown value as AuthZENResponse, or throw naming the member at fault.
367
+ * Unknown members are REFUSED rather than dropped: on the response path an
368
+ * unrecognised member is a server speaking a profile this build does not understand,
369
+ * and quietly ignoring it would mean acting on a partial reading of an authorization
370
+ * decision.
371
+ */
372
+ export declare function validateAuthZENResponse(value: unknown, at: string): AuthZENResponse;
373
+ /**
374
+ * Validate an unknown value as AuthZENResponseContext, or throw naming the member at
375
+ * fault. Unknown members are REFUSED rather than dropped: on the response path an
376
+ * unrecognised member is a server speaking a profile this build does not understand,
377
+ * and quietly ignoring it would mean acting on a partial reading of an authorization
378
+ * decision.
379
+ */
380
+ export declare function validateAuthZENResponseContext(value: unknown, at: string): AuthZENResponseContext;
381
+ /**
382
+ * Validate an unknown value as AuthZENSubject, or throw naming the member at fault.
383
+ * Unknown members are REFUSED rather than dropped: on the response path an
384
+ * unrecognised member is a server speaking a profile this build does not understand,
385
+ * and quietly ignoring it would mean acting on a partial reading of an authorization
386
+ * decision.
387
+ */
388
+ export declare function validateAuthZENSubject(value: unknown, at: string): AuthZENSubject;
389
+ /**
390
+ * Validate an unknown value as AuthZENIdentifier, or throw naming the member at fault.
391
+ * Unknown members are REFUSED rather than dropped: on the response path an
392
+ * unrecognised member is a server speaking a profile this build does not understand,
393
+ * and quietly ignoring it would mean acting on a partial reading of an authorization
394
+ * decision.
395
+ */
396
+ export declare function validateAuthZENIdentifier(value: unknown, at: string): AuthZENIdentifier;
397
+ /**
398
+ * Validate an unknown value as AuthZENObligation, or throw naming the member at fault.
399
+ * Unknown members are REFUSED rather than dropped: on the response path an
400
+ * unrecognised member is a server speaking a profile this build does not understand,
401
+ * and quietly ignoring it would mean acting on a partial reading of an authorization
402
+ * decision.
403
+ */
404
+ export declare function validateAuthZENObligation(value: unknown, at: string): AuthZENObligation;
405
+ //# sourceMappingURL=authzen.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authzen.gen.d.ts","sourceRoot":"","sources":["../../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