@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/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-BKxcoR_2.cjs';
3
- export { P as Permit, b as ProtectRequest } from './protect-BKxcoR_2.cjs';
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: "deploy_to_production",
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. `"deploy_to_production"`). A string
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-BKxcoR_2.js';
3
- export { P as Permit, b as ProtectRequest } from './protect-BKxcoR_2.js';
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: "deploy_to_production",
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. `"deploy_to_production"`). A string
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
  */