@bajustone/fortress 1.0.1 → 1.0.2
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 +6 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +4 -3
- package/src/index.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [
|
|
3
|
+
## [1.0.2] - 2026-07-14
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- Export `ErrorEnvelopeBody` from the package root so consumer declaration emit can name endpoint types inferred through `.errorResponse()`.
|
|
7
|
+
|
|
8
|
+
- fix: export ErrorEnvelopeBody from package root
|
|
4
9
|
|
|
5
10
|
## [1.0.1] - 2026-07-14
|
|
6
11
|
|
package/dist/index.d.cts
CHANGED
|
@@ -714,4 +714,4 @@ declare function validateRequest(input: EndpointInput | undefined, data: {
|
|
|
714
714
|
params?: unknown;
|
|
715
715
|
}): Promise<void>;
|
|
716
716
|
|
|
717
|
-
export { type ApplyPolicyResult, DEFAULT_POLICY_FILE, DatabaseAdapter, type DiffPolicyOptions, EndpointBuilder, EndpointDefinition, EndpointInput, ErrorEnvelope, Errors, FortressError, type FortressErrorCode, FortressSchema, HttpMethod, IamService, Infer, JSONSchema, type LoadPolicyOptions, type NumberOptions, type OAuthErrorCode, Permission, PermissionContext, type PermissionExplanation, type PermissionExplanationSource, type PolicyDocument, type PolicyGroup, type PolicyOp, type PolicyPermission, type PolicyPlan, type PolicyResource, type PolicyRole, type PolicyServiceAccount, type SchemaInput, SecurityRequirement, Simplify, StandardSchemaV1, type StringOptions, anyOf, applyPolicyPlan, applyResourceOps, arr, bool, date, datetime, defineComponents, diffPolicy, discriminatedUnion, email, endpoint, enums, explainPermission, extractJsonSchema, id, int, intersect, isFortressSchema, isStandardSchema, literal, loadPolicy, nullType, nullable, num, obj, oneOf, parsePolicyDocument, record, recordOf, ref, resolvePolicyPath, str, strFormat, strict, time, url, uuid, validateRequest };
|
|
717
|
+
export { type ApplyPolicyResult, DEFAULT_POLICY_FILE, DatabaseAdapter, type DiffPolicyOptions, EndpointBuilder, EndpointDefinition, EndpointInput, ErrorEnvelope, type ErrorEnvelopeBody, Errors, FortressError, type FortressErrorCode, FortressSchema, HttpMethod, IamService, Infer, JSONSchema, type LoadPolicyOptions, type NumberOptions, type OAuthErrorCode, Permission, PermissionContext, type PermissionExplanation, type PermissionExplanationSource, type PolicyDocument, type PolicyGroup, type PolicyOp, type PolicyPermission, type PolicyPlan, type PolicyResource, type PolicyRole, type PolicyServiceAccount, type SchemaInput, SecurityRequirement, Simplify, StandardSchemaV1, type StringOptions, anyOf, applyPolicyPlan, applyResourceOps, arr, bool, date, datetime, defineComponents, diffPolicy, discriminatedUnion, email, endpoint, enums, explainPermission, extractJsonSchema, id, int, intersect, isFortressSchema, isStandardSchema, literal, loadPolicy, nullType, nullable, num, obj, oneOf, parsePolicyDocument, record, recordOf, ref, resolvePolicyPath, str, strFormat, strict, time, url, uuid, validateRequest };
|
package/dist/index.d.ts
CHANGED
|
@@ -714,4 +714,4 @@ declare function validateRequest(input: EndpointInput | undefined, data: {
|
|
|
714
714
|
params?: unknown;
|
|
715
715
|
}): Promise<void>;
|
|
716
716
|
|
|
717
|
-
export { type ApplyPolicyResult, DEFAULT_POLICY_FILE, DatabaseAdapter, type DiffPolicyOptions, EndpointBuilder, EndpointDefinition, EndpointInput, ErrorEnvelope, Errors, FortressError, type FortressErrorCode, FortressSchema, HttpMethod, IamService, Infer, JSONSchema, type LoadPolicyOptions, type NumberOptions, type OAuthErrorCode, Permission, PermissionContext, type PermissionExplanation, type PermissionExplanationSource, type PolicyDocument, type PolicyGroup, type PolicyOp, type PolicyPermission, type PolicyPlan, type PolicyResource, type PolicyRole, type PolicyServiceAccount, type SchemaInput, SecurityRequirement, Simplify, StandardSchemaV1, type StringOptions, anyOf, applyPolicyPlan, applyResourceOps, arr, bool, date, datetime, defineComponents, diffPolicy, discriminatedUnion, email, endpoint, enums, explainPermission, extractJsonSchema, id, int, intersect, isFortressSchema, isStandardSchema, literal, loadPolicy, nullType, nullable, num, obj, oneOf, parsePolicyDocument, record, recordOf, ref, resolvePolicyPath, str, strFormat, strict, time, url, uuid, validateRequest };
|
|
717
|
+
export { type ApplyPolicyResult, DEFAULT_POLICY_FILE, DatabaseAdapter, type DiffPolicyOptions, EndpointBuilder, EndpointDefinition, EndpointInput, ErrorEnvelope, type ErrorEnvelopeBody, Errors, FortressError, type FortressErrorCode, FortressSchema, HttpMethod, IamService, Infer, JSONSchema, type LoadPolicyOptions, type NumberOptions, type OAuthErrorCode, Permission, PermissionContext, type PermissionExplanation, type PermissionExplanationSource, type PolicyDocument, type PolicyGroup, type PolicyOp, type PolicyPermission, type PolicyPlan, type PolicyResource, type PolicyRole, type PolicyServiceAccount, type SchemaInput, SecurityRequirement, Simplify, StandardSchemaV1, type StringOptions, anyOf, applyPolicyPlan, applyResourceOps, arr, bool, date, datetime, defineComponents, diffPolicy, discriminatedUnion, email, endpoint, enums, explainPermission, extractJsonSchema, id, int, intersect, isFortressSchema, isStandardSchema, literal, loadPolicy, nullType, nullable, num, obj, oneOf, parsePolicyDocument, record, recordOf, ref, resolvePolicyPath, str, strFormat, strict, time, url, uuid, validateRequest };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bajustone/fortress",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Framework-agnostic, adapter-based authentication and authorization library for TypeScript. Core auth (JWT, refresh tokens, password hashing) plus IAM (resource+action permissions, groups, roles) with a plugin system for OAuth, 2FA, tenancy, WebAuthn, magic links, audit logging, rate limiting, and more.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -338,13 +338,14 @@
|
|
|
338
338
|
"changelog:dry-run": "bun scripts/changelog.ts --dry-run",
|
|
339
339
|
"check:version": "bun scripts/check-version-sync.ts",
|
|
340
340
|
"check:exports": "bun scripts/check-exports-parity.ts",
|
|
341
|
+
"check:declarations": "tsc -p scripts/tsconfig.declaration-emit.json",
|
|
341
342
|
"check:testing-esm": "node scripts/check-testing-esm.mjs",
|
|
342
|
-
"check:release": "bun run check:version && bun run check:exports && bun run lint && bun run typecheck && bun run typecheck:examples && bun run test && bun run test:integration && bun run build && bun run check:testing-esm",
|
|
343
|
+
"check:release": "bun run check:version && bun run check:exports && bun run lint && bun run typecheck && bun run typecheck:examples && bun run test && bun run test:integration && bun run build && bun run check:declarations && bun run check:testing-esm",
|
|
343
344
|
"publish:npm": "bun run check:release && npm publish --access public",
|
|
344
345
|
"publish:npm:next": "bun run check:release && npm publish --access public --tag next",
|
|
345
346
|
"publish:jsr": "bun run check:release && npx jsr publish",
|
|
346
347
|
"publish:jsr:dry": "bun run check:release && npx jsr publish --dry-run --allow-dirty",
|
|
347
|
-
"prepublishOnly": "bun run build && bun run check:exports && bun run check:testing-esm",
|
|
348
|
+
"prepublishOnly": "bun run build && bun run check:exports && bun run check:declarations && bun run check:testing-esm",
|
|
348
349
|
"prepare": "husky"
|
|
349
350
|
},
|
|
350
351
|
"devDependencies": {
|
package/src/index.ts
CHANGED
|
@@ -227,8 +227,8 @@ export {
|
|
|
227
227
|
uuid,
|
|
228
228
|
} from './core/schema-builder';
|
|
229
229
|
|
|
230
|
-
/**
|
|
231
|
-
export type { NumberOptions, SchemaInput, StringOptions } from './core/schema-builder';
|
|
230
|
+
/** Public types used by the schema builder and inferred endpoint responses. */
|
|
231
|
+
export type { ErrorEnvelopeBody, NumberOptions, SchemaInput, StringOptions } from './core/schema-builder';
|
|
232
232
|
/** Standard Schema v1 interop type — fortress schemas implement this. */
|
|
233
233
|
export type { StandardSchemaV1 } from './core/standard-schema';
|
|
234
234
|
|