@atlasent/sdk 1.5.0 → 2.10.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/README.md +141 -27
- package/dist/hono.cjs +1943 -64
- package/dist/hono.cjs.map +1 -1
- package/dist/hono.d.cts +4 -4
- package/dist/hono.d.ts +4 -4
- package/dist/hono.js +1933 -64
- package/dist/hono.js.map +1 -1
- package/dist/index.cjs +5299 -210
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5465 -502
- package/dist/index.d.ts +5465 -502
- package/dist/index.js +5177 -209
- package/dist/index.js.map +1 -1
- package/dist/protect-C0t0fP1y.d.cts +1776 -0
- package/dist/protect-C0t0fP1y.d.ts +1776 -0
- package/dist/state.cjs +46 -0
- package/dist/state.cjs.map +1 -0
- package/dist/state.d.cts +152 -0
- package/dist/state.d.ts +152 -0
- package/dist/state.js +21 -0
- package/dist/state.js.map +1 -0
- package/package.json +29 -2
- package/dist/protect-BKxcoR_2.d.cts +0 -159
- package/dist/protect-BKxcoR_2.d.ts +0 -159
package/dist/hono.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context, ErrorHandler, MiddlewareHandler } from 'hono';
|
|
2
|
-
import { A as AtlaSentDeniedError, a as AtlaSentError } from './protect-
|
|
3
|
-
export { P as Permit, b as ProtectRequest } from './protect-
|
|
2
|
+
import { A as AtlaSentDeniedError, a as AtlaSentError } from './protect-C0t0fP1y.cjs';
|
|
3
|
+
export { P as Permit, b as ProtectRequest } from './protect-C0t0fP1y.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Hono middleware for AtlaSent execution-time authorization.
|
|
@@ -15,7 +15,7 @@ export { P as Permit, b as ProtectRequest } from './protect-BKxcoR_2.cjs';
|
|
|
15
15
|
* app.post(
|
|
16
16
|
* "/deploy",
|
|
17
17
|
* atlaSentGuard({
|
|
18
|
-
* action: "
|
|
18
|
+
* action: "production.deploy",
|
|
19
19
|
* agent: (c) => c.req.header("x-agent-id") ?? "anonymous",
|
|
20
20
|
* context: async (c) => ({ commit: (await c.req.json()).commit }),
|
|
21
21
|
* }),
|
|
@@ -48,7 +48,7 @@ type Resolver<T extends string | Record<string, unknown>> = T | ((c: Context) =>
|
|
|
48
48
|
/** Options for {@link atlaSentGuard}. */
|
|
49
49
|
interface AtlaSentGuardOptions {
|
|
50
50
|
/**
|
|
51
|
-
* Action being authorized (e.g. `"
|
|
51
|
+
* Action being authorized (e.g. `"production.deploy"`). A string
|
|
52
52
|
* fixes the action; a function lets you derive it per-request (e.g.
|
|
53
53
|
* from route params or the HTTP verb).
|
|
54
54
|
*/
|
package/dist/hono.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context, ErrorHandler, MiddlewareHandler } from 'hono';
|
|
2
|
-
import { A as AtlaSentDeniedError, a as AtlaSentError } from './protect-
|
|
3
|
-
export { P as Permit, b as ProtectRequest } from './protect-
|
|
2
|
+
import { A as AtlaSentDeniedError, a as AtlaSentError } from './protect-C0t0fP1y.js';
|
|
3
|
+
export { P as Permit, b as ProtectRequest } from './protect-C0t0fP1y.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Hono middleware for AtlaSent execution-time authorization.
|
|
@@ -15,7 +15,7 @@ export { P as Permit, b as ProtectRequest } from './protect-BKxcoR_2.js';
|
|
|
15
15
|
* app.post(
|
|
16
16
|
* "/deploy",
|
|
17
17
|
* atlaSentGuard({
|
|
18
|
-
* action: "
|
|
18
|
+
* action: "production.deploy",
|
|
19
19
|
* agent: (c) => c.req.header("x-agent-id") ?? "anonymous",
|
|
20
20
|
* context: async (c) => ({ commit: (await c.req.json()).commit }),
|
|
21
21
|
* }),
|
|
@@ -48,7 +48,7 @@ type Resolver<T extends string | Record<string, unknown>> = T | ((c: Context) =>
|
|
|
48
48
|
/** Options for {@link atlaSentGuard}. */
|
|
49
49
|
interface AtlaSentGuardOptions {
|
|
50
50
|
/**
|
|
51
|
-
* Action being authorized (e.g. `"
|
|
51
|
+
* Action being authorized (e.g. `"production.deploy"`). A string
|
|
52
52
|
* fixes the action; a function lets you derive it per-request (e.g.
|
|
53
53
|
* from route params or the HTTP verb).
|
|
54
54
|
*/
|