@atlasent/sdk 2.12.0 → 2.13.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 +9 -0
- package/dist/hono.cjs +42 -0
- package/dist/hono.cjs.map +1 -1
- package/dist/hono.d.cts +2 -2
- package/dist/hono.d.ts +2 -2
- package/dist/hono.js +42 -0
- package/dist/hono.js.map +1 -1
- package/dist/index.cjs +42 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -3
- package/dist/index.d.ts +36 -3
- package/dist/index.js +42 -0
- package/dist/index.js.map +1 -1
- package/dist/{protect-B6w-WQMB.d.cts → protect-Bk9q12ia.d.cts} +75 -1
- package/dist/{protect-B6w-WQMB.d.ts → protect-Bk9q12ia.d.ts} +75 -1
- package/package.json +1 -1
|
@@ -1389,6 +1389,80 @@ interface DecisionStreamEvent {
|
|
|
1389
1389
|
previousHash?: string;
|
|
1390
1390
|
occurredAt?: string;
|
|
1391
1391
|
}
|
|
1392
|
+
/**
|
|
1393
|
+
* License status for a self-hosted or air-gapped AtlaSent deployment.
|
|
1394
|
+
*
|
|
1395
|
+
* Returned by `GET /v1/license`. Describes the current validity, posture,
|
|
1396
|
+
* features, and optional limits for the license key installed on this instance.
|
|
1397
|
+
*
|
|
1398
|
+
* Callers should check `status === "active"` before relying on `features`.
|
|
1399
|
+
* A `"grace"` status means the license has expired but a grace period
|
|
1400
|
+
* (`grace_until`) has not yet elapsed — enforcement is not yet suspended, but
|
|
1401
|
+
* the license should be renewed immediately.
|
|
1402
|
+
*/
|
|
1403
|
+
interface LicenseStatus {
|
|
1404
|
+
/**
|
|
1405
|
+
* Current validity state of the license.
|
|
1406
|
+
*
|
|
1407
|
+
* - `"active"` — license is valid and within its expiry window.
|
|
1408
|
+
* - `"grace"` — license has expired; a grace period (`grace_until`) applies.
|
|
1409
|
+
* - `"expired"` — license has expired and the grace period has elapsed.
|
|
1410
|
+
* - `"revoked"` — license has been explicitly revoked by AtlaSent.
|
|
1411
|
+
*/
|
|
1412
|
+
status: "active" | "grace" | "expired" | "revoked";
|
|
1413
|
+
/** Slug of the organization this license was issued to. */
|
|
1414
|
+
org_slug: string;
|
|
1415
|
+
/**
|
|
1416
|
+
* Deployment posture the license was issued for.
|
|
1417
|
+
*
|
|
1418
|
+
* - `"self_hosted"` — customer-managed deployment with network access to the
|
|
1419
|
+
* AtlaSent license endpoint for periodic renewal checks.
|
|
1420
|
+
* - `"air_gapped"` — fully offline deployment; license verification is
|
|
1421
|
+
* entirely local (signed blob checked against the embedded public key).
|
|
1422
|
+
*/
|
|
1423
|
+
posture: "self_hosted" | "air_gapped";
|
|
1424
|
+
/** ISO 8601 timestamp when the license expires. */
|
|
1425
|
+
expires_at: string;
|
|
1426
|
+
/**
|
|
1427
|
+
* ISO 8601 timestamp when the grace period ends.
|
|
1428
|
+
* Present only when `status === "grace"`.
|
|
1429
|
+
*/
|
|
1430
|
+
grace_until?: string;
|
|
1431
|
+
/**
|
|
1432
|
+
* Feature flags enabled by this license (e.g. `"governance"`, `"bvs"`,
|
|
1433
|
+
* `"federation"`). Check presence of a specific feature with
|
|
1434
|
+
* `status.features.includes("feature_name")`.
|
|
1435
|
+
*/
|
|
1436
|
+
features: string[];
|
|
1437
|
+
/**
|
|
1438
|
+
* Maximum evaluations per day allowed by this license.
|
|
1439
|
+
* `undefined` means unlimited.
|
|
1440
|
+
*/
|
|
1441
|
+
eval_limit?: number;
|
|
1442
|
+
/**
|
|
1443
|
+
* Maximum active seats (API key holders) allowed by this license.
|
|
1444
|
+
* `undefined` means unlimited.
|
|
1445
|
+
*/
|
|
1446
|
+
seat_limit?: number;
|
|
1447
|
+
}
|
|
1448
|
+
/**
|
|
1449
|
+
* Result of submitting a license blob to `POST /v1/license/verify`.
|
|
1450
|
+
*
|
|
1451
|
+
* `valid` is the contract field — pin to it. When `valid` is `false`, the
|
|
1452
|
+
* `error` field carries a machine-readable reason code such as
|
|
1453
|
+
* `"SIGNATURE_INVALID"`, `"ORG_MISMATCH"`, `"LICENSE_EXPIRED"`, or
|
|
1454
|
+
* `"LICENSE_REVOKED"`.
|
|
1455
|
+
*/
|
|
1456
|
+
interface LicenseVerifyResult {
|
|
1457
|
+
/** `true` when the submitted blob passes all verification checks. */
|
|
1458
|
+
valid: boolean;
|
|
1459
|
+
/** Slug of the organization the submitted license was issued to. Present when `valid` is `true`. */
|
|
1460
|
+
org_slug?: string;
|
|
1461
|
+
/** ISO 8601 expiry of the submitted license. Present when `valid` is `true`. */
|
|
1462
|
+
expires_at?: string;
|
|
1463
|
+
/** Machine-readable error code when `valid` is `false`. */
|
|
1464
|
+
error?: string;
|
|
1465
|
+
}
|
|
1392
1466
|
|
|
1393
1467
|
/**
|
|
1394
1468
|
* Override types — wire shapes for `/v1/overrides`.
|
|
@@ -2006,4 +2080,4 @@ interface ProtectWithEvidenceOptions {
|
|
|
2006
2080
|
*/
|
|
2007
2081
|
declare function protectWithEvidence(request: ProtectRequest, opts?: ProtectWithEvidenceOptions): Promise<PermitWithEvidence>;
|
|
2008
2082
|
|
|
2009
|
-
export {
|
|
2083
|
+
export { type AuditExport as $, AtlaSentDeniedError as A, type BatchEvalItem as B, type DecisionReceipt as C, type DecisionCanonical as D, type EvaluateRequest as E, type ComplianceEvidenceRun as F, type GetPermitResponse as G, type DecisionReceiptAlgorithm as H, protect as I, deployGate as J, configure as K, type ListPermitsRequest as L, type ActionEvidenceBundle as M, type AtlaSentDecision as N, type OverrideV1 as O, type Permit as P, type AtlaSentDeniedErrorInit as Q, type RateLimitState as R, type SubscribeDecisionsOptions as S, type AtlaSentErrorCode as T, type AtlaSentErrorInit as U, type VerifyPermitRequest as V, AtlaSentEscalateError as W, type AtlaSentEscalateErrorInit as X, type AuditDecision as Y, type AuditEvent as Z, type AuditEventsPage as _, AtlaSentError as a, nonPassingControls as a$, type AuditExportSignatureStatus as a0, BundleVerificationError as a1, type BvsSnapshot as a2, type CompletionProof as a3, type ComplianceControlCoverage as a4, type ComplianceEvidenceSummary as a5, type ComplianceFramework as a6, type ComplianceRunStatus as a7, type ConfigureOptions as a8, type ConsentClassProjection as a9, PRODUCTION_DEPLOY_ACTION as aA, type PermitOutcome as aB, type PermitRecord as aC, PermitRevoked as aD, type PermitStatus as aE, type PermitWithEvidence as aF, type ProtectWithEvidenceOptions as aG, type RetryPolicy as aH, type SOC2ControlId as aI, type StreamDecisionEvent as aJ, StreamParseError as aK, type StreamProgressEvent as aL, StreamTimeoutError as aM, type TriggerEvidenceRunRequest as aN, type TriggerEvidenceRunResponse as aO, type WhyPolicyEvaluation as aP, type WhyStage as aQ, type WhyTrace as aR, buildDecisionReceiptPayload as aS, buildWhyTrace as aT, computeBackoffMs as aU, computeBundleHash as aV, computeContextHash as aW, evidenceRunPasses as aX, hasAttemptsLeft as aY, isRetryable as aZ, mergePolicy as a_, type ConstraintTrace as aa, type ConstraintTracePolicy as ab, type ConstraintTraceStage as ac, type CreateOverrideRequest as ad, DEFAULT_RETRY_POLICY as ae, DEPLOYMENT_PRODUCTION_ACTION as af, DEPLOY_GATE_CODES as ag, type Decision as ah, type DecisionReceiptPayload as ai, type DeployGateContext as aj, type DeployGateDenyCode as ak, type DeployGateEvidence as al, type DeployOverrideClaim as am, type DeployPermitClaim as an, type EvaluateBatchResultItem as ao, type EvaluateResponsePermit as ap, type EvaluateRiskEnvelope as aq, type EvaluateRiskEnvelopeFactor as ar, type EvidenceControl as as, type EvidenceControlStatus as at, type ListEvidenceRunsResponse as au, type OverrideEvent as av, type OverrideEventType as aw, type OverrideEventsResponse as ax, type OverrideListResponse as ay, type OverrideStatus as az, type ProtectRequest as b, normalizePermitOutcome as b0, protectWithEvidence as b1, signDecisionReceiptHmac as b2, soc2ControlCoverageForDecision as b3, verifyDecisionReceiptHmac as b4, type AtlaSentClientOptions as c, type EvaluateResponse as d, type BatchEvalResponse as e, type DecisionStreamEvent as f, type EvaluatePreflightResponse as g, type VerifyPermitResponse as h, type DeployGateRequest as i, type DeployGateResponse as j, type RevokePermitRequest as k, type RevokePermitResponse as l, type RevokePermitByIdInput as m, type RevokePermitByIdResponse as n, type VerifyPermitByIdResponse as o, type PermitValidResponse as p, type ListPermitsResponse as q, type ApiKeySelfResponse as r, type AuditEventsQuery as s, type AuditEventsResult as t, type AuditExportRequest as u, type AuditExportResult as v, type StreamOptions as w, type StreamEvent as x, type LicenseStatus as y, type LicenseVerifyResult as z };
|
|
@@ -1389,6 +1389,80 @@ interface DecisionStreamEvent {
|
|
|
1389
1389
|
previousHash?: string;
|
|
1390
1390
|
occurredAt?: string;
|
|
1391
1391
|
}
|
|
1392
|
+
/**
|
|
1393
|
+
* License status for a self-hosted or air-gapped AtlaSent deployment.
|
|
1394
|
+
*
|
|
1395
|
+
* Returned by `GET /v1/license`. Describes the current validity, posture,
|
|
1396
|
+
* features, and optional limits for the license key installed on this instance.
|
|
1397
|
+
*
|
|
1398
|
+
* Callers should check `status === "active"` before relying on `features`.
|
|
1399
|
+
* A `"grace"` status means the license has expired but a grace period
|
|
1400
|
+
* (`grace_until`) has not yet elapsed — enforcement is not yet suspended, but
|
|
1401
|
+
* the license should be renewed immediately.
|
|
1402
|
+
*/
|
|
1403
|
+
interface LicenseStatus {
|
|
1404
|
+
/**
|
|
1405
|
+
* Current validity state of the license.
|
|
1406
|
+
*
|
|
1407
|
+
* - `"active"` — license is valid and within its expiry window.
|
|
1408
|
+
* - `"grace"` — license has expired; a grace period (`grace_until`) applies.
|
|
1409
|
+
* - `"expired"` — license has expired and the grace period has elapsed.
|
|
1410
|
+
* - `"revoked"` — license has been explicitly revoked by AtlaSent.
|
|
1411
|
+
*/
|
|
1412
|
+
status: "active" | "grace" | "expired" | "revoked";
|
|
1413
|
+
/** Slug of the organization this license was issued to. */
|
|
1414
|
+
org_slug: string;
|
|
1415
|
+
/**
|
|
1416
|
+
* Deployment posture the license was issued for.
|
|
1417
|
+
*
|
|
1418
|
+
* - `"self_hosted"` — customer-managed deployment with network access to the
|
|
1419
|
+
* AtlaSent license endpoint for periodic renewal checks.
|
|
1420
|
+
* - `"air_gapped"` — fully offline deployment; license verification is
|
|
1421
|
+
* entirely local (signed blob checked against the embedded public key).
|
|
1422
|
+
*/
|
|
1423
|
+
posture: "self_hosted" | "air_gapped";
|
|
1424
|
+
/** ISO 8601 timestamp when the license expires. */
|
|
1425
|
+
expires_at: string;
|
|
1426
|
+
/**
|
|
1427
|
+
* ISO 8601 timestamp when the grace period ends.
|
|
1428
|
+
* Present only when `status === "grace"`.
|
|
1429
|
+
*/
|
|
1430
|
+
grace_until?: string;
|
|
1431
|
+
/**
|
|
1432
|
+
* Feature flags enabled by this license (e.g. `"governance"`, `"bvs"`,
|
|
1433
|
+
* `"federation"`). Check presence of a specific feature with
|
|
1434
|
+
* `status.features.includes("feature_name")`.
|
|
1435
|
+
*/
|
|
1436
|
+
features: string[];
|
|
1437
|
+
/**
|
|
1438
|
+
* Maximum evaluations per day allowed by this license.
|
|
1439
|
+
* `undefined` means unlimited.
|
|
1440
|
+
*/
|
|
1441
|
+
eval_limit?: number;
|
|
1442
|
+
/**
|
|
1443
|
+
* Maximum active seats (API key holders) allowed by this license.
|
|
1444
|
+
* `undefined` means unlimited.
|
|
1445
|
+
*/
|
|
1446
|
+
seat_limit?: number;
|
|
1447
|
+
}
|
|
1448
|
+
/**
|
|
1449
|
+
* Result of submitting a license blob to `POST /v1/license/verify`.
|
|
1450
|
+
*
|
|
1451
|
+
* `valid` is the contract field — pin to it. When `valid` is `false`, the
|
|
1452
|
+
* `error` field carries a machine-readable reason code such as
|
|
1453
|
+
* `"SIGNATURE_INVALID"`, `"ORG_MISMATCH"`, `"LICENSE_EXPIRED"`, or
|
|
1454
|
+
* `"LICENSE_REVOKED"`.
|
|
1455
|
+
*/
|
|
1456
|
+
interface LicenseVerifyResult {
|
|
1457
|
+
/** `true` when the submitted blob passes all verification checks. */
|
|
1458
|
+
valid: boolean;
|
|
1459
|
+
/** Slug of the organization the submitted license was issued to. Present when `valid` is `true`. */
|
|
1460
|
+
org_slug?: string;
|
|
1461
|
+
/** ISO 8601 expiry of the submitted license. Present when `valid` is `true`. */
|
|
1462
|
+
expires_at?: string;
|
|
1463
|
+
/** Machine-readable error code when `valid` is `false`. */
|
|
1464
|
+
error?: string;
|
|
1465
|
+
}
|
|
1392
1466
|
|
|
1393
1467
|
/**
|
|
1394
1468
|
* Override types — wire shapes for `/v1/overrides`.
|
|
@@ -2006,4 +2080,4 @@ interface ProtectWithEvidenceOptions {
|
|
|
2006
2080
|
*/
|
|
2007
2081
|
declare function protectWithEvidence(request: ProtectRequest, opts?: ProtectWithEvidenceOptions): Promise<PermitWithEvidence>;
|
|
2008
2082
|
|
|
2009
|
-
export {
|
|
2083
|
+
export { type AuditExport as $, AtlaSentDeniedError as A, type BatchEvalItem as B, type DecisionReceipt as C, type DecisionCanonical as D, type EvaluateRequest as E, type ComplianceEvidenceRun as F, type GetPermitResponse as G, type DecisionReceiptAlgorithm as H, protect as I, deployGate as J, configure as K, type ListPermitsRequest as L, type ActionEvidenceBundle as M, type AtlaSentDecision as N, type OverrideV1 as O, type Permit as P, type AtlaSentDeniedErrorInit as Q, type RateLimitState as R, type SubscribeDecisionsOptions as S, type AtlaSentErrorCode as T, type AtlaSentErrorInit as U, type VerifyPermitRequest as V, AtlaSentEscalateError as W, type AtlaSentEscalateErrorInit as X, type AuditDecision as Y, type AuditEvent as Z, type AuditEventsPage as _, AtlaSentError as a, nonPassingControls as a$, type AuditExportSignatureStatus as a0, BundleVerificationError as a1, type BvsSnapshot as a2, type CompletionProof as a3, type ComplianceControlCoverage as a4, type ComplianceEvidenceSummary as a5, type ComplianceFramework as a6, type ComplianceRunStatus as a7, type ConfigureOptions as a8, type ConsentClassProjection as a9, PRODUCTION_DEPLOY_ACTION as aA, type PermitOutcome as aB, type PermitRecord as aC, PermitRevoked as aD, type PermitStatus as aE, type PermitWithEvidence as aF, type ProtectWithEvidenceOptions as aG, type RetryPolicy as aH, type SOC2ControlId as aI, type StreamDecisionEvent as aJ, StreamParseError as aK, type StreamProgressEvent as aL, StreamTimeoutError as aM, type TriggerEvidenceRunRequest as aN, type TriggerEvidenceRunResponse as aO, type WhyPolicyEvaluation as aP, type WhyStage as aQ, type WhyTrace as aR, buildDecisionReceiptPayload as aS, buildWhyTrace as aT, computeBackoffMs as aU, computeBundleHash as aV, computeContextHash as aW, evidenceRunPasses as aX, hasAttemptsLeft as aY, isRetryable as aZ, mergePolicy as a_, type ConstraintTrace as aa, type ConstraintTracePolicy as ab, type ConstraintTraceStage as ac, type CreateOverrideRequest as ad, DEFAULT_RETRY_POLICY as ae, DEPLOYMENT_PRODUCTION_ACTION as af, DEPLOY_GATE_CODES as ag, type Decision as ah, type DecisionReceiptPayload as ai, type DeployGateContext as aj, type DeployGateDenyCode as ak, type DeployGateEvidence as al, type DeployOverrideClaim as am, type DeployPermitClaim as an, type EvaluateBatchResultItem as ao, type EvaluateResponsePermit as ap, type EvaluateRiskEnvelope as aq, type EvaluateRiskEnvelopeFactor as ar, type EvidenceControl as as, type EvidenceControlStatus as at, type ListEvidenceRunsResponse as au, type OverrideEvent as av, type OverrideEventType as aw, type OverrideEventsResponse as ax, type OverrideListResponse as ay, type OverrideStatus as az, type ProtectRequest as b, normalizePermitOutcome as b0, protectWithEvidence as b1, signDecisionReceiptHmac as b2, soc2ControlCoverageForDecision as b3, verifyDecisionReceiptHmac as b4, type AtlaSentClientOptions as c, type EvaluateResponse as d, type BatchEvalResponse as e, type DecisionStreamEvent as f, type EvaluatePreflightResponse as g, type VerifyPermitResponse as h, type DeployGateRequest as i, type DeployGateResponse as j, type RevokePermitRequest as k, type RevokePermitResponse as l, type RevokePermitByIdInput as m, type RevokePermitByIdResponse as n, type VerifyPermitByIdResponse as o, type PermitValidResponse as p, type ListPermitsResponse as q, type ApiKeySelfResponse as r, type AuditEventsQuery as s, type AuditEventsResult as t, type AuditExportRequest as u, type AuditExportResult as v, type StreamOptions as w, type StreamEvent as x, type LicenseStatus as y, type LicenseVerifyResult as z };
|