@absolutejs/auth 0.65.5 → 0.66.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 (61) hide show
  1. package/dist/agents/context.d.ts +5 -18
  2. package/dist/agents/index.js +3 -3
  3. package/dist/agents/index.js.map +3 -3
  4. package/dist/agents/routes.d.ts +24 -56
  5. package/dist/apikeys/routes.d.ts +169 -78
  6. package/dist/authContext.d.ts +34 -79
  7. package/dist/authorization/protectPermission.d.ts +11 -23
  8. package/dist/cli/migrate.js +2 -2
  9. package/dist/cli/migrate.js.map +4 -4
  10. package/dist/compliance/routes.d.ts +179 -54
  11. package/dist/credentials/emailVerification.d.ts +173 -56
  12. package/dist/credentials/login.d.ts +192 -63
  13. package/dist/credentials/passwordReset.d.ts +171 -60
  14. package/dist/credentials/register.d.ts +182 -41
  15. package/dist/credentials/routes.d.ts +46 -36
  16. package/dist/htmx/configuredRoutes.d.ts +263 -114
  17. package/dist/htmx/routes.d.ts +261 -89
  18. package/dist/index.d.ts +663 -443
  19. package/dist/index.js +475 -448
  20. package/dist/index.js.map +48 -48
  21. package/dist/manifest.js +86 -4
  22. package/dist/manifest.js.map +3 -3
  23. package/dist/mfa/challenge.d.ts +189 -59
  24. package/dist/mfa/management.d.ts +179 -54
  25. package/dist/mfa/routes.d.ts +34 -40
  26. package/dist/mfa/sms.d.ts +187 -59
  27. package/dist/mfa/totp.d.ts +187 -57
  28. package/dist/oidc/routes.d.ts +73 -74
  29. package/dist/oidc/vciRoutes.d.ts +9 -45
  30. package/dist/organizations/routes.d.ts +215 -77
  31. package/dist/passwordless/routes.d.ts +22 -34
  32. package/dist/portal/routes.d.ts +162 -55
  33. package/dist/roles/routes.d.ts +198 -67
  34. package/dist/routes/authorize.d.ts +182 -90
  35. package/dist/routes/callback.d.ts +189 -38
  36. package/dist/routes/profile.d.ts +177 -51
  37. package/dist/routes/protectRoute.d.ts +11 -23
  38. package/dist/routes/refresh.d.ts +177 -51
  39. package/dist/routes/requireAuth.d.ts +9 -21
  40. package/dist/routes/revoke.d.ts +177 -51
  41. package/dist/routes/sessions.d.ts +187 -61
  42. package/dist/routes/signout.d.ts +174 -50
  43. package/dist/routes/stepUp.d.ts +11 -23
  44. package/dist/routes/userStatus.d.ts +174 -52
  45. package/dist/scim/routes.d.ts +208 -73
  46. package/dist/server.js +475 -448
  47. package/dist/server.js.map +48 -48
  48. package/dist/session/cleanup.d.ts +5 -18
  49. package/dist/session/state.d.ts +3 -23
  50. package/dist/sso/discoveryRoute.d.ts +158 -52
  51. package/dist/sso/oidcRoutes.d.ts +211 -59
  52. package/dist/sso/samlIdpRoutes.d.ts +175 -46
  53. package/dist/sso/samlRoutes.d.ts +217 -69
  54. package/dist/typebox.d.ts +4 -4
  55. package/dist/types.d.ts +3 -5
  56. package/dist/vault/index.js +3 -3
  57. package/dist/vault/index.js.map +3 -3
  58. package/dist/vc/statusListRoutes.d.ts +158 -52
  59. package/dist/vc/vpRoutes.d.ts +170 -66
  60. package/dist/webauthn/routes.d.ts +199 -66
  61. package/package.json +8 -120
package/dist/manifest.js CHANGED
@@ -825,7 +825,7 @@ function Literal(value, options) {
825
825
  }
826
826
 
827
827
  // node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs
828
- function Boolean(options) {
828
+ function Boolean2(options) {
829
829
  return CreateType({ [Kind]: "Boolean", type: "boolean" }, options);
830
830
  }
831
831
 
@@ -847,7 +847,7 @@ function String2(options) {
847
847
  // node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs
848
848
  function* FromUnion(syntax) {
849
849
  const trim = syntax.trim().replace(/"|'/g, "");
850
- return trim === "boolean" ? yield Boolean() : trim === "number" ? yield Number2() : trim === "bigint" ? yield BigInt2() : trim === "string" ? yield String2() : yield (() => {
850
+ return trim === "boolean" ? yield Boolean2() : trim === "number" ? yield Number2() : trim === "bigint" ? yield BigInt2() : trim === "string" ? yield String2() : yield (() => {
851
851
  const literals = trim.split("|").map((literal) => Literal(literal.trim()));
852
852
  return literals.length === 0 ? Never() : literals.length === 1 ? literals[0] : UnionEvaluated(literals);
853
853
  })();
@@ -6029,7 +6029,7 @@ __export(exports_type3, {
6029
6029
  Const: () => Const,
6030
6030
  Composite: () => Composite,
6031
6031
  Capitalize: () => Capitalize,
6032
- Boolean: () => Boolean,
6032
+ Boolean: () => Boolean2,
6033
6033
  BigInt: () => BigInt2,
6034
6034
  Awaited: () => Awaited,
6035
6035
  AsyncIterator: () => AsyncIterator,
@@ -6207,6 +6207,79 @@ var serializedTool = Type.Object({
6207
6207
  input: jsonSchemaObject,
6208
6208
  kind: Type.Union([Type.Literal("runtime"), Type.Literal("workspace")])
6209
6209
  });
6210
+ var productId = Type.String({ pattern: "^[a-z][a-z0-9_-]{0,63}$" });
6211
+ var productCopy = {
6212
+ description: Type.String({ minLength: 1 }),
6213
+ id: productId,
6214
+ title: Type.String({ minLength: 1 })
6215
+ };
6216
+ var productOperation = Type.Union([
6217
+ Type.Literal("aggregate"),
6218
+ Type.Literal("create"),
6219
+ Type.Literal("delete"),
6220
+ Type.Literal("detail"),
6221
+ Type.Literal("list"),
6222
+ Type.Literal("update")
6223
+ ]);
6224
+ var productProjection = Type.Object({
6225
+ blocks: Type.Optional(Type.Array(Type.Object({
6226
+ ...productCopy,
6227
+ category: Type.String({ minLength: 1 }),
6228
+ componentExport: Type.String({ minLength: 1 }),
6229
+ frameworks: Type.Optional(Type.Array(Type.Union(clientFrameworks.map((framework) => Type.Literal(framework))))),
6230
+ props: jsonSchemaObject
6231
+ }))),
6232
+ connections: Type.Optional(Type.Array(Type.Object({
6233
+ ...productCopy,
6234
+ envKeys: Type.Optional(Type.Array(Type.String({ minLength: 1 }))),
6235
+ kind: Type.Union([
6236
+ Type.Literal("none"),
6237
+ Type.Literal("oauth"),
6238
+ Type.Literal("secret")
6239
+ ]),
6240
+ setupTool: Type.Optional(Type.String({ pattern: TOOL_NAME_PATTERN.source })),
6241
+ testTool: Type.Optional(Type.String({ pattern: TOOL_NAME_PATTERN.source }))
6242
+ }))),
6243
+ dataSources: Type.Optional(Type.Array(Type.Object({
6244
+ ...productCopy,
6245
+ operations: Type.Array(productOperation, { minItems: 1 }),
6246
+ schema: jsonSchemaObject,
6247
+ tools: Type.Optional(Type.Partial(Type.Object({
6248
+ aggregate: Type.String({ pattern: TOOL_NAME_PATTERN.source }),
6249
+ create: Type.String({ pattern: TOOL_NAME_PATTERN.source }),
6250
+ delete: Type.String({ pattern: TOOL_NAME_PATTERN.source }),
6251
+ detail: Type.String({ pattern: TOOL_NAME_PATTERN.source }),
6252
+ list: Type.String({ pattern: TOOL_NAME_PATTERN.source }),
6253
+ update: Type.String({ pattern: TOOL_NAME_PATTERN.source })
6254
+ })))
6255
+ }))),
6256
+ events: Type.Optional(Type.Array(Type.Object({
6257
+ ...productCopy,
6258
+ schema: jsonSchemaObject,
6259
+ source: Type.Union([
6260
+ Type.Literal("data"),
6261
+ Type.Literal("package"),
6262
+ Type.Literal("ui"),
6263
+ Type.Literal("webhook")
6264
+ ])
6265
+ }))),
6266
+ healthChecks: Type.Optional(Type.Array(Type.Object({
6267
+ ...productCopy,
6268
+ tool: Type.String({ pattern: TOOL_NAME_PATTERN.source })
6269
+ }))),
6270
+ releaseChecks: Type.Optional(Type.Array(Type.Object({
6271
+ ...productCopy,
6272
+ healthCheckIds: Type.Optional(Type.Array(productId)),
6273
+ severity: Type.Union([
6274
+ Type.Literal("blocking"),
6275
+ Type.Literal("warning")
6276
+ ])
6277
+ }))),
6278
+ workflowActions: Type.Optional(Type.Array(Type.Object({
6279
+ ...productCopy,
6280
+ tool: Type.String({ pattern: TOOL_NAME_PATTERN.source })
6281
+ })))
6282
+ });
6210
6283
  var manifestSchema = Type.Object({
6211
6284
  contract: Type.Union([Type.Literal(1), Type.Literal(2)]),
6212
6285
  discovery: Type.Optional(Type.Object({
@@ -6232,6 +6305,14 @@ var manifestSchema = Type.Object({
6232
6305
  tagline: Type.String({ minLength: 1 })
6233
6306
  }),
6234
6307
  implements: Type.Optional(Type.Array(adapterImplementation)),
6308
+ integration: Type.Optional(Type.Object({
6309
+ description: Type.Optional(Type.String({ minLength: 1 })),
6310
+ mode: Type.Union([
6311
+ Type.Literal("adapter"),
6312
+ Type.Literal("code-first"),
6313
+ Type.Literal("recipe")
6314
+ ])
6315
+ })),
6235
6316
  lifecycle: Type.Optional(Type.Array(lifecycleStep)),
6236
6317
  presets: Type.Optional(Type.Array(Type.Object({
6237
6318
  description: Type.Optional(Type.String()),
@@ -6239,6 +6320,7 @@ var manifestSchema = Type.Object({
6239
6320
  title: Type.String(),
6240
6321
  values: Type.Record(Type.String(), Type.Unknown())
6241
6322
  }))),
6323
+ product: Type.Optional(productProjection),
6242
6324
  requires: Type.Optional(manifestRequirements),
6243
6325
  settings: jsonSchemaObject,
6244
6326
  slots: Type.Optional(Type.Record(Type.String(), adapterSlot)),
@@ -6516,5 +6598,5 @@ export {
6516
6598
  manifest
6517
6599
  };
6518
6600
 
6519
- //# debugId=DD68AAA0E471ACE564756E2164756E21
6601
+ //# debugId=90FE00A23A34FAC664756E2164756E21
6520
6602
  //# sourceMappingURL=manifest.js.map