@toa.io/extensions.exposition 1.0.0-alpha.271 → 1.0.0-alpha.273
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 +40 -0
- package/components/{exposition.stash → exposition.atom}/manifest.toa.yaml +4 -4
- package/components/{exposition.stash → exposition.atom}/operations/meter.js +1 -1
- package/components/exposition.octets/manifest.toa.yaml +28 -10
- package/components/exposition.octets/operations/put.js +20 -5
- package/components/identity.bans/manifest.toa.yaml +26 -7
- package/components/identity.bans/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.basic/manifest.toa.yaml +106 -30
- package/components/identity.basic/operations/authenticate.js +6 -3
- package/components/identity.basic/operations/authenticate.js.map +1 -1
- package/components/identity.basic/operations/incept.js +3 -2
- package/components/identity.basic/operations/incept.js.map +1 -1
- package/components/identity.basic/operations/transit.js +16 -5
- package/components/identity.basic/operations/transit.js.map +1 -1
- package/components/identity.basic/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.basic/source/authenticate.ts +7 -3
- package/components/identity.basic/source/incept.ts +3 -2
- package/components/identity.basic/source/transit.ts +19 -5
- package/components/identity.credentials/manifest.toa.yaml +34 -13
- package/components/identity.credentials/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.federation/manifest.toa.yaml +120 -28
- package/components/identity.federation/operations/authenticate.js +3 -2
- package/components/identity.federation/operations/authenticate.js.map +1 -1
- package/components/identity.federation/operations/create.js +4 -2
- package/components/identity.federation/operations/create.js.map +1 -1
- package/components/identity.federation/operations/lib/errors.d.ts +70 -11
- package/components/identity.federation/operations/lib/errors.js +40 -11
- package/components/identity.federation/operations/lib/errors.js.map +1 -1
- package/components/identity.federation/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.federation/source/authenticate.ts +3 -2
- package/components/identity.federation/source/create.ts +4 -2
- package/components/identity.federation/source/lib/errors.ts +49 -12
- package/components/identity.keys/manifest.toa.yaml +14 -6
- package/components/identity.keys/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.otp/manifest.toa.yaml +44 -15
- package/components/identity.otp/operations/authenticate.js +9 -4
- package/components/identity.otp/operations/authenticate.js.map +1 -1
- package/components/identity.otp/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.otp/source/authenticate.ts +11 -4
- package/components/identity.passkeys/manifest.toa.yaml +38 -8
- package/components/identity.passkeys/operations/authenticate.js +3 -2
- package/components/identity.passkeys/operations/authenticate.js.map +1 -1
- package/components/identity.passkeys/operations/create.js +6 -3
- package/components/identity.passkeys/operations/create.js.map +1 -1
- package/components/identity.passkeys/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.passkeys/operations/use.js +6 -3
- package/components/identity.passkeys/operations/use.js.map +1 -1
- package/components/identity.passkeys/source/authenticate.ts +3 -2
- package/components/identity.passkeys/source/create.ts +7 -3
- package/components/identity.passkeys/source/use.ts +7 -3
- package/components/identity.roles/manifest.toa.yaml +41 -10
- package/components/identity.roles/operations/grant.js +3 -2
- package/components/identity.roles/operations/grant.js.map +1 -1
- package/components/identity.roles/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.roles/source/grant.ts +3 -2
- package/components/identity.tokens/manifest.toa.yaml +99 -39
- package/components/identity.tokens/operations/authenticate.js +6 -3
- package/components/identity.tokens/operations/authenticate.js.map +1 -1
- package/components/identity.tokens/operations/decrypt.js +9 -4
- package/components/identity.tokens/operations/decrypt.js.map +1 -1
- package/components/identity.tokens/operations/encrypt.js +3 -2
- package/components/identity.tokens/operations/encrypt.js.map +1 -1
- package/components/identity.tokens/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.tokens/source/authenticate.ts +7 -3
- package/components/identity.tokens/source/decrypt.ts +11 -4
- package/components/identity.tokens/source/encrypt.ts +3 -2
- package/documentation/identity.md +4 -1
- package/documentation/notes/throttling.md +1 -1
- package/features/cors.feature +1 -1
- package/features/dev.feature +1 -1
- package/features/identity.federation.feature +3 -2
- package/features/{identtiy.tokens.custom.feature → identity.tokens.custom.feature} +39 -0
- package/features/introspection.feature +27 -34
- package/features/map.feature +1 -1
- package/features/octets.download.feature +1 -1
- package/features/octets.meta.feature +1 -1
- package/features/passkeys.feature +8 -8
- package/features/query.feature +27 -0
- package/features/require.feature +2 -2
- package/features/response.feature +3 -3
- package/features/steps/Components.ts +12 -4
- package/features/steps/Database.ts +9 -0
- package/features/steps/Gateway.ts +13 -13
- package/features/steps/HTTP.ts +3 -5
- package/features/steps/Parameters.ts +2 -3
- package/features/steps/Realtime.ts +4 -4
- package/features/steps/Workspace.ts +8 -3
- package/features/steps/components/audit/manifest.toa.yaml +12 -5
- package/features/steps/components/echo/manifest.toa.yaml +33 -8
- package/features/steps/components/notify/manifest.toa.yaml +12 -5
- package/features/steps/components/octets.tester/manifest.toa.yaml +43 -14
- package/features/steps/components/orders/manifest.toa.yaml +22 -5
- package/features/steps/components/pots/manifest.toa.yaml +71 -17
- package/features/steps/components/pricing/manifest.toa.yaml +8 -2
- package/features/steps/components/sequences/manifest.toa.yaml +3 -1
- package/features/steps/components/users/manifest.toa.yaml +18 -3
- package/features/steps/components/users.properties/manifest.toa.yaml +12 -2
- package/package.json +6 -7
- package/schemas/annotation.cos.yaml +37 -17
- package/schemas/directive.cos.yaml +7 -3
- package/schemas/io/throttle.cos.yaml +47 -8
- package/schemas/method.cos.yaml +21 -9
- package/schemas/node.cos.yaml +22 -7
- package/schemas/octets/delete.cos.yaml +15 -2
- package/schemas/octets/get.cos.yaml +5 -2
- package/schemas/octets/put.cos.yaml +6 -3
- package/schemas/octets/workflow.cos.yaml +0 -1
- package/schemas/query.cos.yaml +31 -14
- package/schemas/querystring.cos.yaml +19 -7
- package/schemas/range.cos.yaml +10 -2
- package/schemas/route.cos.yaml +6 -2
- package/source/Branch.test.ts +37 -0
- package/source/Branch.ts +37 -0
- package/source/Factory.ts +5 -5
- package/source/Gateway.ts +29 -14
- package/source/HTTP/formats/yaml.test.ts +4 -2
- package/source/RTD/Tree.ts +4 -1
- package/source/Tenant.ts +15 -4
- package/source/deployment.ts +3 -4
- package/source/directives/io/IO.ts +2 -2
- package/source/directives/io/lib/throttle/Sync.ts +4 -4
- package/source/directives/map/Headers.ts +8 -1
- package/source/directives/octets/Put.ts +6 -3
- package/source/root.ts +2 -2
- package/transpiled/Branch.d.ts +23 -0
- package/transpiled/Branch.js +16 -0
- package/transpiled/Branch.js.map +1 -1
- package/transpiled/Factory.js +4 -4
- package/transpiled/Factory.js.map +1 -1
- package/transpiled/Gateway.d.ts +7 -0
- package/transpiled/Gateway.js +26 -8
- package/transpiled/Gateway.js.map +1 -1
- package/transpiled/RTD/Tree.js +4 -1
- package/transpiled/RTD/Tree.js.map +1 -1
- package/transpiled/Tenant.d.ts +8 -2
- package/transpiled/Tenant.js +12 -2
- package/transpiled/Tenant.js.map +1 -1
- package/transpiled/deployment.js +3 -4
- package/transpiled/deployment.js.map +1 -1
- package/transpiled/directives/io/IO.d.ts +1 -1
- package/transpiled/directives/io/IO.js +2 -2
- package/transpiled/directives/io/IO.js.map +1 -1
- package/transpiled/directives/io/lib/throttle/Sync.d.ts +2 -2
- package/transpiled/directives/io/lib/throttle/Sync.js +4 -4
- package/transpiled/directives/io/lib/throttle/Sync.js.map +1 -1
- package/transpiled/directives/map/Headers.js +7 -1
- package/transpiled/directives/map/Headers.js.map +1 -1
- package/transpiled/directives/octets/Put.js.map +1 -1
- package/transpiled/root.js +1 -1
- package/transpiled/root.js.map +1 -1
- package/transpiled/tsconfig.tsbuildinfo +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Err } from 'error-value'
|
|
2
1
|
import type { Context } from './lib'
|
|
3
2
|
|
|
4
3
|
export async function effect (input: Input, context: Context): Promise<Output | Error> {
|
|
@@ -32,9 +31,17 @@ export async function effect (input: Input, context: Context): Promise<Output |
|
|
|
32
31
|
return { identity: { id } }
|
|
33
32
|
}
|
|
34
33
|
|
|
35
|
-
const ERR_INVALID_CREDENTIALS = new
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
const ERR_INVALID_CREDENTIALS = new (class InvalidCredentialsError extends Error {
|
|
35
|
+
public readonly code = 'INVALID_CREDENTIALS'
|
|
36
|
+
})()
|
|
37
|
+
|
|
38
|
+
const ERR_EXPIRED = new (class ExpiredError extends Error {
|
|
39
|
+
public readonly code = 'EXPIRED'
|
|
40
|
+
})()
|
|
41
|
+
|
|
42
|
+
const ERR_NOT_FOUND = new (class NotFoundError extends Error {
|
|
43
|
+
public readonly code = 'NOT_FOUND'
|
|
44
|
+
})()
|
|
38
45
|
|
|
39
46
|
interface Input {
|
|
40
47
|
authority: string
|
|
@@ -28,7 +28,7 @@ entity:
|
|
|
28
28
|
type: array
|
|
29
29
|
items:
|
|
30
30
|
type: string
|
|
31
|
-
label:
|
|
31
|
+
label:
|
|
32
32
|
type: string
|
|
33
33
|
minLength: 1
|
|
34
34
|
maxLength: 64
|
|
@@ -57,7 +57,9 @@ operations:
|
|
|
57
57
|
properties:
|
|
58
58
|
type:
|
|
59
59
|
type: string
|
|
60
|
-
enum:
|
|
60
|
+
enum:
|
|
61
|
+
- creation
|
|
62
|
+
- request
|
|
61
63
|
authority:
|
|
62
64
|
type: string
|
|
63
65
|
identity:
|
|
@@ -76,7 +78,10 @@ operations:
|
|
|
76
78
|
type: string
|
|
77
79
|
identity:
|
|
78
80
|
type: string
|
|
79
|
-
label:
|
|
81
|
+
label:
|
|
82
|
+
type: string
|
|
83
|
+
minLength: 1
|
|
84
|
+
maxLength: 64
|
|
80
85
|
id:
|
|
81
86
|
type: string
|
|
82
87
|
type:
|
|
@@ -128,7 +133,7 @@ operations:
|
|
|
128
133
|
query: true
|
|
129
134
|
input:
|
|
130
135
|
type: object
|
|
131
|
-
properties:
|
|
136
|
+
properties:
|
|
132
137
|
origin:
|
|
133
138
|
type: string
|
|
134
139
|
id:
|
|
@@ -160,7 +165,27 @@ operations:
|
|
|
160
165
|
properties:
|
|
161
166
|
authority:
|
|
162
167
|
type: string
|
|
163
|
-
|
|
168
|
+
origin:
|
|
169
|
+
type: string
|
|
170
|
+
id:
|
|
171
|
+
type: string
|
|
172
|
+
type:
|
|
173
|
+
type: string
|
|
174
|
+
response:
|
|
175
|
+
type: object
|
|
176
|
+
properties:
|
|
177
|
+
authenticatorData:
|
|
178
|
+
type: string
|
|
179
|
+
clientDataJSON:
|
|
180
|
+
type: string
|
|
181
|
+
signature:
|
|
182
|
+
type: string
|
|
183
|
+
userHandle:
|
|
184
|
+
type: string
|
|
185
|
+
authenticatorAttachment:
|
|
186
|
+
type: string
|
|
187
|
+
clientExtensionResults:
|
|
188
|
+
type: object
|
|
164
189
|
required:
|
|
165
190
|
- authority
|
|
166
191
|
- origin
|
|
@@ -256,21 +281,26 @@ configuration:
|
|
|
256
281
|
type: array
|
|
257
282
|
items:
|
|
258
283
|
type: number
|
|
259
|
-
default:
|
|
284
|
+
default:
|
|
285
|
+
- -7
|
|
286
|
+
- -257
|
|
260
287
|
timeout:
|
|
261
288
|
type: integer
|
|
262
289
|
default: 60000
|
|
263
290
|
verification:
|
|
264
291
|
description: AuthenticatorSelectionCriteria.userVerification
|
|
265
292
|
type: string
|
|
266
|
-
enum:
|
|
293
|
+
enum:
|
|
267
294
|
- required
|
|
268
295
|
- preferred
|
|
269
296
|
- discouraged
|
|
270
297
|
residence:
|
|
271
298
|
description: AuthenticatorSelectionCriteria.residentKey
|
|
272
299
|
type: string
|
|
273
|
-
enum:
|
|
300
|
+
enum:
|
|
301
|
+
- required
|
|
302
|
+
- preferred
|
|
303
|
+
- discouraged
|
|
274
304
|
default: required
|
|
275
305
|
|
|
276
306
|
stash: ~
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Effect = void 0;
|
|
4
|
-
const error_value_1 = require("error-value");
|
|
5
4
|
class Effect {
|
|
6
5
|
use;
|
|
7
6
|
logs;
|
|
@@ -30,5 +29,7 @@ class Effect {
|
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
exports.Effect = Effect;
|
|
33
|
-
const ERR_MISS = new
|
|
32
|
+
const ERR_MISS = new (class MissError extends Error {
|
|
33
|
+
code = 'MISS';
|
|
34
|
+
})();
|
|
34
35
|
//# sourceMappingURL=authenticate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authenticate.js","sourceRoot":"","sources":["../source/authenticate.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"authenticate.js","sourceRoot":"","sources":["../source/authenticate.ts"],"names":[],"mappings":";;;AAIA,MAAa,MAAM;IACT,GAAG,CAA0B;IAC7B,IAAI,CAAkB;IAEvB,KAAK,CAAE,OAAgB;QAC5B,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAA;QAC5B,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;IAC1B,CAAC;IAEM,KAAK,CAAC,OAAO,CAAE,KAAY;QAChC,MAAM,EAAE,SAAS,EAAE,GAAG,QAAQ,EAAE,GAAG,KAAK,CAAA;QAExC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC;YAC9B,KAAK,EAAE;gBACL,QAAQ,EAAE,eAAe,SAAS,WAAW,QAAQ,CAAC,EAAE,GAAG;aAC5D;YACD,KAAK,EAAE,QAAQ;SAChB,CAAC,CAAA;QAEF,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;YACtB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,mBAAmB,EAAE;gBACnC,SAAS;gBACT,EAAE,EAAE,QAAQ,CAAC,EAAE;aAChB,CAAC,CAAA;YAEF,OAAO,QAAQ,CAAA;QACjB,CAAC;QAED,IAAI,QAAQ,YAAY,KAAK;YAC3B,OAAO,QAAQ,CAAA;QAEjB,OAAO,EAAE,QAAQ,EAAE,CAAA;IACrB,CAAC;CACF;AAjCD,wBAiCC;AAED,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,SAAU,SAAQ,KAAK;IACjC,IAAI,GAAG,MAAM,CAAA;CAC9B,CAAC,EAAE,CAAA"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Transition = void 0;
|
|
4
4
|
const server_1 = require("@simplewebauthn/server");
|
|
5
|
-
const error_value_1 = require("error-value");
|
|
6
5
|
// https://github.com/MasterKale/SimpleWebAuthn/blob/master/packages/server/src/registration/verifyRegistrationResponse.ts#L51
|
|
7
6
|
class Transition {
|
|
8
7
|
algorithms;
|
|
@@ -53,6 +52,10 @@ class Transition {
|
|
|
53
52
|
}
|
|
54
53
|
}
|
|
55
54
|
exports.Transition = Transition;
|
|
56
|
-
const ERR_FAILED = new
|
|
57
|
-
|
|
55
|
+
const ERR_FAILED = new (class FailedError extends Error {
|
|
56
|
+
code = 'FAILED';
|
|
57
|
+
})();
|
|
58
|
+
const ERR_INVALID = new (class InvalidError extends Error {
|
|
59
|
+
code = 'INVALID';
|
|
60
|
+
})();
|
|
58
61
|
//# sourceMappingURL=create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../source/create.ts"],"names":[],"mappings":";;;AAAA,mDAAkG;
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../source/create.ts"],"names":[],"mappings":";;;AAAA,mDAAkG;AAIlG,8HAA8H;AAE9H,MAAa,UAAU;IACb,UAAU,CAAW;IACrB,KAAK,CAAmB;IACxB,IAAI,CAAkB;IACtB,YAAY,CAAU;IACtB,QAAQ,CAAU;IAEnB,KAAK,CAAE,OAAgB;QAC5B,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,UAAU,CAAA;QAClD,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC,YAAY,KAAK,UAAU,CAAA;QACrE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,aAAa,CAA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