@kya-os/checkpoint-shared 1.8.0 → 1.9.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/CHANGELOG.md +37 -0
- package/dist/agent-catalog.d.mts +12 -0
- package/dist/agent-catalog.d.mts.map +1 -0
- package/dist/agent-catalog.d.ts +12 -0
- package/dist/agent-catalog.d.ts.map +1 -0
- package/dist/agent-catalog.js +105 -0
- package/dist/agent-catalog.mjs +105 -0
- package/dist/agent-catalog.mjs.map +1 -0
- package/dist/beacon-types/index.d.mts +18 -0
- package/dist/beacon-types/index.d.mts.map +1 -1
- package/dist/beacon-types/index.d.ts +18 -0
- package/dist/beacon-types/index.d.ts.map +1 -1
- package/dist/beacon-types/index.js +116 -12
- package/dist/beacon-types/index.mjs +105 -13
- package/dist/beacon-types/index.mjs.map +1 -1
- package/dist/browser-posture-5fPrsxx7.d.mts.map +1 -1
- package/dist/browser-posture-CCR1kh5e.d.ts.map +1 -1
- package/dist/browser-posture-cookie.js +1 -1
- package/dist/browser-posture-cookie.mjs +1 -1
- package/dist/browser-posture-cookie.mjs.map +1 -1
- package/dist/browser-posture-proof-verifier-DvsOmFrM.js +202 -0
- package/dist/browser-posture-proof-verifier-I0HP2Ics.mjs +180 -0
- package/dist/browser-posture-proof-verifier-I0HP2Ics.mjs.map +1 -0
- package/dist/browser-posture-proof-verifier.d.mts +25 -0
- package/dist/browser-posture-proof-verifier.d.mts.map +1 -0
- package/dist/browser-posture-proof-verifier.d.ts +25 -0
- package/dist/browser-posture-proof-verifier.d.ts.map +1 -0
- package/dist/browser-posture-proof-verifier.js +7 -0
- package/dist/browser-posture-proof-verifier.mjs +3 -0
- package/dist/browser-posture-proof.d.mts +3 -18
- package/dist/browser-posture-proof.d.mts.map +1 -1
- package/dist/browser-posture-proof.d.ts +3 -18
- package/dist/browser-posture-proof.d.ts.map +1 -1
- package/dist/browser-posture-proof.js +6 -131
- package/dist/browser-posture-proof.mjs +1 -126
- package/dist/browser-posture-proof.mjs.map +1 -1
- package/dist/browser-posture.js +1 -1
- package/dist/browser-posture.mjs +1 -1
- package/dist/browser-posture.mjs.map +1 -1
- package/dist/browser.d.mts +0 -282
- package/dist/browser.d.mts.map +1 -1
- package/dist/browser.d.ts +0 -282
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +1 -1
- package/dist/browser.mjs +1 -1
- package/dist/browser.mjs.map +1 -1
- package/dist/canonical-signer/index.mjs.map +1 -1
- package/dist/consent-handoff.d.mts +0 -3
- package/dist/consent-handoff.d.mts.map +1 -1
- package/dist/consent-handoff.d.ts +0 -3
- package/dist/consent-handoff.d.ts.map +1 -1
- package/dist/consent-handoff.mjs.map +1 -1
- package/dist/default-sign-in-host.d.mts +10 -0
- package/dist/default-sign-in-host.d.mts.map +1 -0
- package/dist/default-sign-in-host.d.ts +10 -0
- package/dist/default-sign-in-host.d.ts.map +1 -0
- package/dist/default-sign-in-host.js +72 -0
- package/dist/default-sign-in-host.mjs +66 -0
- package/dist/default-sign-in-host.mjs.map +1 -0
- package/dist/errors/index.d.mts +1 -0
- package/dist/errors/index.d.mts.map +1 -1
- package/dist/errors/index.d.ts +1 -0
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +5 -2
- package/dist/errors/index.mjs +5 -2
- package/dist/errors/index.mjs.map +1 -1
- package/dist/{fetcher-CivUCbhL.d.ts → fetcher-C8qvwdnA.d.ts} +2 -2
- package/dist/{fetcher-CivUCbhL.d.ts.map → fetcher-C8qvwdnA.d.ts.map} +1 -1
- package/dist/{fetcher-cXQsbm6s.d.mts → fetcher-D2vjr7jB.d.mts} +2 -2
- package/dist/{fetcher-cXQsbm6s.d.mts.map → fetcher-D2vjr7jB.d.mts.map} +1 -1
- package/dist/gateway-client-ip.d.mts +0 -2
- package/dist/gateway-client-ip.d.mts.map +1 -1
- package/dist/gateway-client-ip.d.ts +0 -2
- package/dist/gateway-client-ip.d.ts.map +1 -1
- package/dist/gateway-client-ip.mjs.map +1 -1
- package/dist/host-adapter/index.d.mts +1 -1
- package/dist/host-adapter/index.d.ts +1 -1
- package/dist/host-adapter/index.js +1 -1
- package/dist/host-adapter/index.mjs +1 -1
- package/dist/{host-adapter-DHyISsIf.mjs → host-adapter-BKdQHwbi.mjs} +2 -2
- package/dist/{host-adapter-DHyISsIf.mjs.map → host-adapter-BKdQHwbi.mjs.map} +1 -1
- package/dist/{host-adapter-0F8EpbD6.js → host-adapter-bWftXA9T.js} +1 -1
- package/dist/{index-CXbOY7gB.d.ts → index-DnFsmr_o.d.ts} +3 -3
- package/dist/{index-CXbOY7gB.d.ts.map → index-DnFsmr_o.d.ts.map} +1 -1
- package/dist/{index-B3cHxr3O.d.mts → index-rvw5Bz-r.d.mts} +3 -3
- package/dist/{index-B3cHxr3O.d.mts.map → index-rvw5Bz-r.d.mts.map} +1 -1
- package/dist/index.d.mts +94 -449
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +94 -449
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -455
- package/dist/index.mjs +17 -422
- package/dist/index.mjs.map +1 -1
- package/dist/{kya-http-error-codes-UYb1zpGM.js → kya-http-error-codes-B4rUmUEI.js} +2 -0
- package/dist/{kya-http-error-codes-7ewV5RuK.d.ts → kya-http-error-codes-C14E4gi3.d.mts} +2 -1
- package/dist/kya-http-error-codes-C14E4gi3.d.mts.map +1 -0
- package/dist/{kya-http-error-codes-7ewV5RuK.d.mts → kya-http-error-codes-C14E4gi3.d.ts} +2 -1
- package/dist/kya-http-error-codes-C14E4gi3.d.ts.map +1 -0
- package/dist/{kya-http-error-codes-C2JiWPsi.mjs → kya-http-error-codes-DSBrxNry.mjs} +3 -1
- package/dist/kya-http-error-codes-DSBrxNry.mjs.map +1 -0
- package/dist/kya-http.d.mts +1 -1
- package/dist/kya-http.d.ts +1 -1
- package/dist/kya-http.js +1 -1
- package/dist/kya-http.mjs +1 -1
- package/dist/mcpi/dashboard-config/index.d.mts.map +1 -1
- package/dist/mcpi/dashboard-config/index.d.ts.map +1 -1
- package/dist/mcpi/dashboard-config/index.mjs.map +1 -1
- package/dist/{patterns-B2r7M9wR.js → patterns-CiMpbdAF.js} +1 -1
- package/dist/{patterns-B7dQoeE3.mjs → patterns-D4OAsNQY.mjs} +2 -2
- package/dist/{patterns-B7dQoeE3.mjs.map → patterns-D4OAsNQY.mjs.map} +1 -1
- package/dist/patterns.js +1 -1
- package/dist/patterns.mjs +1 -1
- package/dist/policy/fetcher.d.mts +1 -1
- package/dist/policy/fetcher.d.ts +1 -1
- package/dist/policy/schemas.d.mts +1 -1
- package/dist/policy/schemas.d.ts +1 -1
- package/dist/{schemas-C_3C72SR.d.ts → schemas-CGKHzcMV.d.ts} +21 -21
- package/dist/{schemas-C_3C72SR.d.ts.map → schemas-CGKHzcMV.d.ts.map} +1 -1
- package/dist/{schemas-02CI7jgm.d.mts → schemas-m-GqyfyO.d.mts} +21 -21
- package/dist/{schemas-02CI7jgm.d.mts.map → schemas-m-GqyfyO.d.mts.map} +1 -1
- package/dist/tool-protection/index.d.mts +12 -0
- package/dist/tool-protection/index.d.mts.map +1 -1
- package/dist/tool-protection/index.d.ts +12 -0
- package/dist/tool-protection/index.d.ts.map +1 -1
- package/dist/tool-protection/index.js +46 -0
- package/dist/tool-protection/index.mjs +44 -1
- package/dist/tool-protection/index.mjs.map +1 -1
- package/fixtures/kya-http/error-codes.json +2 -1
- package/package.json +19 -3
- package/dist/kya-http-error-codes-7ewV5RuK.d.mts.map +0 -1
- package/dist/kya-http-error-codes-7ewV5RuK.d.ts.map +0 -1
- package/dist/kya-http-error-codes-C2JiWPsi.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -31,16 +31,18 @@ const require_schemas = require('./schemas-BlScS1it.js');
|
|
|
31
31
|
const require_detection_reason_mapping = require('./detection-reason-mapping-B9RSkOs8.js');
|
|
32
32
|
const require_ruleset_hash = require('./ruleset-hash-Cmv8MSO5.js');
|
|
33
33
|
const require_verification = require('./verification-BAw9N8Pt.js');
|
|
34
|
-
const
|
|
34
|
+
const require_agent_catalog = require('./agent-catalog.js');
|
|
35
|
+
const require_patterns = require('./patterns-CiMpbdAF.js');
|
|
35
36
|
const require_posture_origins = require('./posture-origins-Ci6k4Zh1.js');
|
|
36
|
-
const require_host_adapter = require('./host-adapter-
|
|
37
|
+
const require_host_adapter = require('./host-adapter-bWftXA9T.js');
|
|
37
38
|
const require_client_ip = require('./client-ip-B8wFzJ5f.js');
|
|
38
39
|
const require_schemas$1 = require('./schemas-Cm4C4Z5G.js');
|
|
39
40
|
const require_engine_enforcing = require('./engine-enforcing-AYEcgNsb.js');
|
|
40
41
|
const require_step_up = require('./step-up-Bp8RAQwv.js');
|
|
41
42
|
const require_policy_fetcher = require('./policy/fetcher.js');
|
|
42
|
-
const require_kya_http_error_codes = require('./kya-http-error-codes-
|
|
43
|
+
const require_kya_http_error_codes = require('./kya-http-error-codes-B4rUmUEI.js');
|
|
43
44
|
const require_registered_sid = require('./registered-sid-DVGTSH0L.js');
|
|
45
|
+
const require_default_sign_in_host = require('./default-sign-in-host.js');
|
|
44
46
|
let _noble_hashes_sha2_js = require("@noble/hashes/sha2.js");
|
|
45
47
|
let _noble_hashes_utils_js = require("@noble/hashes/utils.js");
|
|
46
48
|
let js_yaml = require("js-yaml");
|
|
@@ -2019,7 +2021,8 @@ const INTERNAL_ERRORS = {
|
|
|
2019
2021
|
SERVICE_UNAVAILABLE_TRANSIENT: "SERVICE_UNAVAILABLE_TRANSIENT",
|
|
2020
2022
|
TRANSACTION_FAILED: "TRANSACTION_FAILED",
|
|
2021
2023
|
DELETE_FAILED: "DELETE_FAILED",
|
|
2022
|
-
PARTITION_RETIREMENT_IN_PROGRESS: "PARTITION_RETIREMENT_IN_PROGRESS"
|
|
2024
|
+
PARTITION_RETIREMENT_IN_PROGRESS: "PARTITION_RETIREMENT_IN_PROGRESS",
|
|
2025
|
+
FLY_CLEANUP_FAILED: "FLY_CLEANUP_FAILED"
|
|
2023
2026
|
};
|
|
2024
2027
|
/**
|
|
2025
2028
|
* Session Error Codes
|
|
@@ -2430,9 +2433,10 @@ const ERROR_MESSAGES = {
|
|
|
2430
2433
|
[INTERNAL_ERRORS.PROCESSING_ERROR]: "Processing error",
|
|
2431
2434
|
[INTERNAL_ERRORS.UNKNOWN_ERROR]: "An unknown error occurred",
|
|
2432
2435
|
[INTERNAL_ERRORS.SERVICE_UNAVAILABLE_TRANSIENT]: "A dependency is temporarily unavailable. Retry shortly.",
|
|
2433
|
-
[INTERNAL_ERRORS.TRANSACTION_FAILED]: "The deletion failed because of a database error.
|
|
2436
|
+
[INTERNAL_ERRORS.TRANSACTION_FAILED]: "The deletion failed because of a database error. The project was not deleted.",
|
|
2434
2437
|
[INTERNAL_ERRORS.DELETE_FAILED]: "Failed to delete project",
|
|
2435
2438
|
[INTERNAL_ERRORS.PARTITION_RETIREMENT_IN_PROGRESS]: "The project data is being archived. Retry shortly.",
|
|
2439
|
+
[INTERNAL_ERRORS.FLY_CLEANUP_FAILED]: "Couldn't stop a managed agent's machine, so the delete was refused. Retry the delete.",
|
|
2436
2440
|
[SESSION_ERRORS.SESSION_NOT_FOUND]: "Session not found",
|
|
2437
2441
|
[SESSION_ERRORS.SESSION_EXPIRED]: "Session has expired",
|
|
2438
2442
|
[SESSION_ERRORS.SESSION_INVALID]: "Session is invalid",
|
|
@@ -2771,6 +2775,7 @@ const ERROR_STATUS_CODES = {
|
|
|
2771
2775
|
[AUDIT_PROTOCOL_ERRORS.AUDIT_MIRROR_OUT_OF_ORDER]: 500,
|
|
2772
2776
|
[GATEWAY_VAULT_ERRORS.GATEWAY_NOT_CONFIGURED]: 500,
|
|
2773
2777
|
[NETWORK_ERRORS.UPSTREAM_ERROR]: 502,
|
|
2778
|
+
[INTERNAL_ERRORS.FLY_CLEANUP_FAILED]: 502,
|
|
2774
2779
|
[INTERNAL_ERRORS.INITIALIZATION_ERROR]: 503,
|
|
2775
2780
|
[INTERNAL_ERRORS.SERVICE_UNAVAILABLE_TRANSIENT]: 503,
|
|
2776
2781
|
[INTERNAL_ERRORS.PARTITION_RETIREMENT_IN_PROGRESS]: 503,
|
|
@@ -5593,6 +5598,7 @@ const CredentialProviderSchema = BaseAuthProviderSchema.extend({
|
|
|
5593
5598
|
type: require_schemas.literal("credential"),
|
|
5594
5599
|
authEndpoint: require_schemas.string().max(500),
|
|
5595
5600
|
requestBodyTemplate: require_schemas.record(require_schemas.string(), require_schemas.string()).optional(),
|
|
5601
|
+
requestEncoding: require_schemas._enum(["json", "form"]).optional(),
|
|
5596
5602
|
responseFields: require_schemas.object({
|
|
5597
5603
|
sessionToken: require_schemas.string(),
|
|
5598
5604
|
userId: require_schemas.string().optional(),
|
|
@@ -5865,16 +5871,6 @@ const ConsentConfigSchema = require_schemas.object({
|
|
|
5865
5871
|
scopeLabels: ConsentScopeLabelsSchema.optional()
|
|
5866
5872
|
});
|
|
5867
5873
|
/**
|
|
5868
|
-
* Tool Consent Overrides (CRED-002)
|
|
5869
|
-
* Per-tool customization for consent pages
|
|
5870
|
-
*/
|
|
5871
|
-
const ToolConsentOverridesSchema = require_schemas.object({
|
|
5872
|
-
branding: ConsentBrandingSchema.partial().optional(),
|
|
5873
|
-
terms: ConsentTermsSchema.partial().optional(),
|
|
5874
|
-
headerText: require_schemas.string().max(255).optional(),
|
|
5875
|
-
description: require_schemas.string().max(1e3).optional()
|
|
5876
|
-
}).optional();
|
|
5877
|
-
/**
|
|
5878
5874
|
* Bouncer Config (for GET response)
|
|
5879
5875
|
*/
|
|
5880
5876
|
const BouncerConfigSchema = require_schemas.object({
|
|
@@ -5937,85 +5933,13 @@ const UpdateBouncerConfigSchema = require_schemas.object({
|
|
|
5937
5933
|
* Refresh Scopes Request
|
|
5938
5934
|
*/
|
|
5939
5935
|
const RefreshScopesRequestSchema = require_schemas.object({ mcpServerUrl: httpUrlSchema().optional() }).strict();
|
|
5940
|
-
|
|
5941
|
-
* Delegation Status
|
|
5942
|
-
*/
|
|
5943
|
-
const DelegationStatusSchema = require_schemas._enum([
|
|
5944
|
-
"active",
|
|
5945
|
-
"expired",
|
|
5946
|
-
"revoked"
|
|
5947
|
-
]);
|
|
5948
|
-
/**
|
|
5949
|
-
* Delegation (for GET response)
|
|
5950
|
-
*/
|
|
5951
|
-
const DelegationSchema = require_schemas.object({
|
|
5952
|
-
id: require_schemas.string().uuid(),
|
|
5953
|
-
projectId: require_schemas.string().uuid(),
|
|
5954
|
-
agentDid: require_schemas.string().max(500),
|
|
5955
|
-
agentName: require_schemas.string().max(255).nullable().optional(),
|
|
5956
|
-
userDid: require_schemas.string().max(500).nullable().optional(),
|
|
5957
|
-
userId: require_schemas.string().max(500).nullable().optional(),
|
|
5958
|
-
userIdentifier: require_schemas.string().max(500).nullable().optional(),
|
|
5959
|
-
scopes: require_schemas.array(require_schemas.string()),
|
|
5960
|
-
constraints: require_schemas.record(require_schemas.string(), require_schemas.unknown()).nullable().optional(),
|
|
5961
|
-
status: DelegationStatusSchema.default("active"),
|
|
5962
|
-
issuedAt: require_schemas.string().datetime(),
|
|
5963
|
-
expiresAt: require_schemas.string().datetime().nullable().optional(),
|
|
5964
|
-
revokedAt: require_schemas.string().datetime().nullable().optional(),
|
|
5965
|
-
revocationReason: require_schemas.string().max(500).nullable().optional(),
|
|
5966
|
-
credentialJwt: require_schemas.string().nullable().optional(),
|
|
5967
|
-
metadata: require_schemas.record(require_schemas.string(), require_schemas.unknown()).default({}),
|
|
5968
|
-
createdAt: require_schemas.string().datetime(),
|
|
5969
|
-
updatedAt: require_schemas.string().datetime()
|
|
5970
|
-
});
|
|
5971
|
-
/**
|
|
5972
|
-
* Bouncer Proof Outcome
|
|
5973
|
-
*/
|
|
5974
|
-
const BouncerOutcomeSchema = require_schemas._enum([
|
|
5936
|
+
require_schemas._enum([
|
|
5975
5937
|
"success",
|
|
5976
5938
|
"failed",
|
|
5977
5939
|
"blocked",
|
|
5978
5940
|
"error"
|
|
5979
5941
|
]);
|
|
5980
5942
|
/**
|
|
5981
|
-
* Bouncer Proof (for GET response)
|
|
5982
|
-
*/
|
|
5983
|
-
const BouncerProofSchema = require_schemas.object({
|
|
5984
|
-
id: require_schemas.string().uuid(),
|
|
5985
|
-
projectId: require_schemas.string().uuid(),
|
|
5986
|
-
delegationId: require_schemas.string().uuid().nullable().optional(),
|
|
5987
|
-
sessionId: require_schemas.string().max(100),
|
|
5988
|
-
agentDid: require_schemas.string().max(500),
|
|
5989
|
-
userIdentifier: require_schemas.string().max(500).nullable().optional(),
|
|
5990
|
-
toolName: require_schemas.string().max(255),
|
|
5991
|
-
toolArgs: require_schemas.record(require_schemas.string(), require_schemas.unknown()).nullable().optional(),
|
|
5992
|
-
toolResult: require_schemas.record(require_schemas.string(), require_schemas.unknown()).nullable().optional(),
|
|
5993
|
-
scopes: require_schemas.array(require_schemas.string()).nullable().optional(),
|
|
5994
|
-
signature: require_schemas.string(),
|
|
5995
|
-
publicKey: require_schemas.string(),
|
|
5996
|
-
timestamp: require_schemas.number().int(),
|
|
5997
|
-
nonce: require_schemas.string().max(100),
|
|
5998
|
-
crispDelta: require_schemas.record(require_schemas.string(), require_schemas.unknown()).nullable().optional(),
|
|
5999
|
-
outcome: BouncerOutcomeSchema.default("success"),
|
|
6000
|
-
errorMessage: require_schemas.string().nullable().optional(),
|
|
6001
|
-
createdAt: require_schemas.string().datetime()
|
|
6002
|
-
});
|
|
6003
|
-
/**
|
|
6004
|
-
* Delegation Polling Status
|
|
6005
|
-
*/
|
|
6006
|
-
const DelegationPollingStatusSchema = require_schemas.object({
|
|
6007
|
-
status: require_schemas._enum([
|
|
6008
|
-
"pending",
|
|
6009
|
-
"completed",
|
|
6010
|
-
"expired",
|
|
6011
|
-
"error"
|
|
6012
|
-
]),
|
|
6013
|
-
delegationJwt: require_schemas.string().optional(),
|
|
6014
|
-
authUrl: httpUrlSchema().optional(),
|
|
6015
|
-
errorMessage: require_schemas.string().optional(),
|
|
6016
|
-
expiresAt: require_schemas.string().datetime().optional()
|
|
6017
|
-
});
|
|
6018
|
-
/**
|
|
6019
5943
|
* Custom URL validator that allows:
|
|
6020
5944
|
* - Valid URLs (standard URL format)
|
|
6021
5945
|
* - Empty strings (for optional endpoints)
|
|
@@ -6113,9 +6037,6 @@ const OAuthTokensResponseSchema = require_schemas.object({
|
|
|
6113
6037
|
* | tokenUrl | oauthConfig.tokenEndpoint | Nested in registry |
|
|
6114
6038
|
* | userInfoUrl | oauthConfig.userInfoEndpoint | Nested in registry |
|
|
6115
6039
|
*
|
|
6116
|
-
* For mapping between formats, use `toProviderRegistryFormat()` and
|
|
6117
|
-
* `fromProviderRegistryFormat()` helper functions.
|
|
6118
|
-
*
|
|
6119
6040
|
* SECURITY: This schema NEVER contains actual secret values.
|
|
6120
6041
|
* Only metadata.clientSecretName (reference to secure storage) is included.
|
|
6121
6042
|
*
|
|
@@ -6167,94 +6088,6 @@ const ProvidersConfigEnvelopeSchema = require_schemas.object({
|
|
|
6167
6088
|
signature: require_schemas.string().regex(/^[a-f0-9]{64}$/).optional(),
|
|
6168
6089
|
signedFields: require_schemas.array(require_schemas.string()).optional()
|
|
6169
6090
|
});
|
|
6170
|
-
/**
|
|
6171
|
-
* Convert Checkpoint ProviderDefinition to canonical @kya-os/provider-registry format.
|
|
6172
|
-
*
|
|
6173
|
-
* Use this when sending provider config to KYA-OS agents that expect the canonical format.
|
|
6174
|
-
*
|
|
6175
|
-
* @example
|
|
6176
|
-
* ```typescript
|
|
6177
|
-
* const agentShieldProvider: ProviderDefinition = { ... };
|
|
6178
|
-
* const canonicalProvider = toProviderRegistryFormat(agentShieldProvider);
|
|
6179
|
-
* // Now canonicalProvider has nested oauthConfig structure
|
|
6180
|
-
* ```
|
|
6181
|
-
*/
|
|
6182
|
-
function toProviderRegistryFormat(provider) {
|
|
6183
|
-
const { type, authorizationUrl, tokenUrl, userInfoUrl, ...rest } = provider;
|
|
6184
|
-
const authType = type;
|
|
6185
|
-
const result = {
|
|
6186
|
-
id: rest.id,
|
|
6187
|
-
authType,
|
|
6188
|
-
displayName: rest.displayName,
|
|
6189
|
-
defaultScopes: rest.defaultScopes || rest.scopes,
|
|
6190
|
-
metadata: rest.metadata
|
|
6191
|
-
};
|
|
6192
|
-
if (authType === "oauth2" && (authorizationUrl || tokenUrl)) result.oauthConfig = {
|
|
6193
|
-
authorizationEndpoint: authorizationUrl || "",
|
|
6194
|
-
tokenEndpoint: tokenUrl || "",
|
|
6195
|
-
userInfoEndpoint: userInfoUrl,
|
|
6196
|
-
supportsPKCE: rest.supportsPKCE,
|
|
6197
|
-
requiresClientSecret: rest.requiresClientSecret,
|
|
6198
|
-
defaultScopes: rest.defaultScopes || rest.scopes
|
|
6199
|
-
};
|
|
6200
|
-
return result;
|
|
6201
|
-
}
|
|
6202
|
-
/**
|
|
6203
|
-
* Check if a provider auth type is supported by Checkpoint.
|
|
6204
|
-
*/
|
|
6205
|
-
function isSupportedAuthType(authType) {
|
|
6206
|
-
return authType === "oauth2" || authType === "password";
|
|
6207
|
-
}
|
|
6208
|
-
/**
|
|
6209
|
-
* Convert canonical @kya-os/provider-registry format to Checkpoint ProviderDefinition.
|
|
6210
|
-
*
|
|
6211
|
-
* Use this when receiving provider config from external sources in canonical format.
|
|
6212
|
-
*
|
|
6213
|
-
* **Note:** Only 'oauth2' and 'password' auth types are currently supported.
|
|
6214
|
-
* Providers with other auth types (passkey, magic_link, otp, etc.) will throw an error.
|
|
6215
|
-
* Use `isSupportedAuthType()` to check before calling this function.
|
|
6216
|
-
*
|
|
6217
|
-
* @throws {Error} If the provider's auth type is not supported
|
|
6218
|
-
*
|
|
6219
|
-
* @example
|
|
6220
|
-
* ```typescript
|
|
6221
|
-
* import { defaultProviderRegistry } from '@kya-os/provider-registry';
|
|
6222
|
-
*
|
|
6223
|
-
* const canonicalProvider = defaultProviderRegistry.getProvider('github');
|
|
6224
|
-
* if (canonicalProvider && isSupportedAuthType(canonicalProvider.authType)) {
|
|
6225
|
-
* const agentShieldProvider = fromProviderRegistryFormat(canonicalProvider);
|
|
6226
|
-
* // Now agentShieldProvider has flat structure for Checkpoint APIs
|
|
6227
|
-
* }
|
|
6228
|
-
* ```
|
|
6229
|
-
*/
|
|
6230
|
-
function fromProviderRegistryFormat(provider) {
|
|
6231
|
-
if (!isSupportedAuthType(provider.authType)) throw new Error(`Auth type '${provider.authType}' is not yet supported in AgentShield. Provider '${provider.id}' cannot be converted. Supported types: 'oauth2', 'password'.`);
|
|
6232
|
-
return {
|
|
6233
|
-
id: provider.id,
|
|
6234
|
-
type: provider.authType,
|
|
6235
|
-
displayName: provider.displayName,
|
|
6236
|
-
configured: false,
|
|
6237
|
-
authorizationUrl: provider.oauthConfig?.authorizationEndpoint,
|
|
6238
|
-
tokenUrl: provider.oauthConfig?.tokenEndpoint,
|
|
6239
|
-
userInfoUrl: provider.oauthConfig?.userInfoEndpoint,
|
|
6240
|
-
supportsPKCE: provider.oauthConfig?.supportsPKCE,
|
|
6241
|
-
requiresClientSecret: provider.oauthConfig?.requiresClientSecret,
|
|
6242
|
-
clientId: null,
|
|
6243
|
-
hasClientSecret: false,
|
|
6244
|
-
scopes: provider.defaultScopes,
|
|
6245
|
-
defaultScopes: provider.defaultScopes,
|
|
6246
|
-
metadata: provider.metadata
|
|
6247
|
-
};
|
|
6248
|
-
}
|
|
6249
|
-
/**
|
|
6250
|
-
* Safely convert canonical format to Checkpoint format, returning null for unsupported types.
|
|
6251
|
-
*
|
|
6252
|
-
* Use this when you want to gracefully skip unsupported providers instead of throwing.
|
|
6253
|
-
*/
|
|
6254
|
-
function fromProviderRegistryFormatSafe(provider) {
|
|
6255
|
-
if (!isSupportedAuthType(provider.authType)) return null;
|
|
6256
|
-
return fromProviderRegistryFormat(provider);
|
|
6257
|
-
}
|
|
6258
6091
|
|
|
6259
6092
|
//#endregion
|
|
6260
6093
|
//#region src/types/organization.ts
|
|
@@ -6830,7 +6663,7 @@ const UpdateOrganizationSchema = UpdateOrganizationInputSchema;
|
|
|
6830
6663
|
/**
|
|
6831
6664
|
* Analytics Schemas
|
|
6832
6665
|
*/
|
|
6833
|
-
const AnalyticsQuerySchema
|
|
6666
|
+
const AnalyticsQuerySchema = require_schemas.object({
|
|
6834
6667
|
projectId: ProjectIdSchema.optional(),
|
|
6835
6668
|
pixelId: require_schemas.string().uuid().optional(),
|
|
6836
6669
|
organizationId: require_schemas.string().uuid().optional(),
|
|
@@ -9076,29 +8909,6 @@ function deriveCorrelationId(headers, fallback) {
|
|
|
9076
8909
|
*/
|
|
9077
8910
|
const passwordSchema = require_schemas.string().min(8, "Password must be at least 8 characters long").max(128, "Password must not exceed 128 characters").regex(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)/, "Password must contain at least one lowercase letter, one uppercase letter, and one number");
|
|
9078
8911
|
/**
|
|
9079
|
-
* Sign in validation schema
|
|
9080
|
-
*/
|
|
9081
|
-
const signInSchema = require_schemas.object({
|
|
9082
|
-
email: require_schemas.string().email("Invalid email address"),
|
|
9083
|
-
password: require_schemas.string().min(1, "Password is required")
|
|
9084
|
-
});
|
|
9085
|
-
/**
|
|
9086
|
-
* Sign up validation schema
|
|
9087
|
-
*/
|
|
9088
|
-
const signUpSchema = require_schemas.object({
|
|
9089
|
-
email: require_schemas.string().email("Invalid email address"),
|
|
9090
|
-
name: require_schemas.string().optional(),
|
|
9091
|
-
password: passwordSchema,
|
|
9092
|
-
confirmPassword: require_schemas.string()
|
|
9093
|
-
}).refine((data) => data.password === data.confirmPassword, {
|
|
9094
|
-
message: "Passwords don't match",
|
|
9095
|
-
path: ["confirmPassword"]
|
|
9096
|
-
});
|
|
9097
|
-
/**
|
|
9098
|
-
* Password reset request validation schema
|
|
9099
|
-
*/
|
|
9100
|
-
const forgotPasswordSchema = require_schemas.object({ email: require_schemas.string().email("Invalid email address") });
|
|
9101
|
-
/**
|
|
9102
8912
|
* Password reset confirmation validation schema
|
|
9103
8913
|
* Validates token and ensures passwords match
|
|
9104
8914
|
*/
|
|
@@ -9110,22 +8920,6 @@ const resetPasswordSchema = require_schemas.object({
|
|
|
9110
8920
|
message: "Passwords don't match",
|
|
9111
8921
|
path: ["confirmPassword"]
|
|
9112
8922
|
});
|
|
9113
|
-
/**
|
|
9114
|
-
* Change password validation schema
|
|
9115
|
-
* For authenticated users changing their password
|
|
9116
|
-
*/
|
|
9117
|
-
const changePasswordSchema = require_schemas.object({
|
|
9118
|
-
currentPassword: require_schemas.string().optional(),
|
|
9119
|
-
newPassword: passwordSchema,
|
|
9120
|
-
confirmPassword: require_schemas.string()
|
|
9121
|
-
}).refine((data) => data.newPassword === data.confirmPassword, {
|
|
9122
|
-
message: "Passwords don't match",
|
|
9123
|
-
path: ["confirmPassword"]
|
|
9124
|
-
});
|
|
9125
|
-
/**
|
|
9126
|
-
* Email verification validation schema
|
|
9127
|
-
*/
|
|
9128
|
-
const verifyEmailSchema = require_schemas.object({ token: require_schemas.string().min(1, "Token is required") });
|
|
9129
8923
|
|
|
9130
8924
|
//#endregion
|
|
9131
8925
|
//#region src/schemas/admin.ts
|
|
@@ -9742,190 +9536,6 @@ function strict(schema) {
|
|
|
9742
9536
|
return schema.strict();
|
|
9743
9537
|
}
|
|
9744
9538
|
|
|
9745
|
-
//#endregion
|
|
9746
|
-
//#region src/schemas/analytics.ts
|
|
9747
|
-
/**
|
|
9748
|
-
* Analytics Schemas
|
|
9749
|
-
*
|
|
9750
|
-
* Schemas for analytics API endpoints
|
|
9751
|
-
* Used for validation and type safety in analytics routes
|
|
9752
|
-
*/
|
|
9753
|
-
/**
|
|
9754
|
-
* Base Analytics Query Schema
|
|
9755
|
-
* Extended by specific analytics endpoints
|
|
9756
|
-
*/
|
|
9757
|
-
const AnalyticsQuerySchema = require_schemas.object({
|
|
9758
|
-
duration: require_schemas._enum([
|
|
9759
|
-
"week",
|
|
9760
|
-
"month",
|
|
9761
|
-
"quarter",
|
|
9762
|
-
"year"
|
|
9763
|
-
]).optional().default("week"),
|
|
9764
|
-
groupBy: require_schemas._enum([
|
|
9765
|
-
"day",
|
|
9766
|
-
"hour",
|
|
9767
|
-
"week",
|
|
9768
|
-
"month"
|
|
9769
|
-
]).optional().default("day"),
|
|
9770
|
-
startDate: require_schemas.string().datetime().optional(),
|
|
9771
|
-
endDate: require_schemas.string().datetime().optional()
|
|
9772
|
-
});
|
|
9773
|
-
/**
|
|
9774
|
-
* Sessions Analytics Query Schema
|
|
9775
|
-
* Used for session-specific analytics endpoints
|
|
9776
|
-
*/
|
|
9777
|
-
const AnalyticsSessionsQuerySchema = require_schemas.object({
|
|
9778
|
-
duration: require_schemas._enum(["week", "month"]).optional().default("week"),
|
|
9779
|
-
groupBy: require_schemas._enum(["day", "hour"]).optional().default("day")
|
|
9780
|
-
});
|
|
9781
|
-
/**
|
|
9782
|
-
* Agent Sources Analytics Query Schema
|
|
9783
|
-
* Used for agent source analytics endpoints
|
|
9784
|
-
*/
|
|
9785
|
-
const AnalyticsAgentSourcesQuerySchema = require_schemas.object({
|
|
9786
|
-
duration: require_schemas._enum([
|
|
9787
|
-
"week",
|
|
9788
|
-
"month",
|
|
9789
|
-
"quarter"
|
|
9790
|
-
]).optional().default("week"),
|
|
9791
|
-
limit: number().min(1).max(100).optional().default(10),
|
|
9792
|
-
sortBy: require_schemas._enum([
|
|
9793
|
-
"count",
|
|
9794
|
-
"name",
|
|
9795
|
-
"confidence"
|
|
9796
|
-
]).optional().default("count"),
|
|
9797
|
-
order: require_schemas._enum(["asc", "desc"]).optional().default("desc")
|
|
9798
|
-
});
|
|
9799
|
-
/**
|
|
9800
|
-
* Agent Types Analytics Query Schema
|
|
9801
|
-
* Used for agent type analytics endpoints
|
|
9802
|
-
*/
|
|
9803
|
-
const AnalyticsAgentTypesQuerySchema = require_schemas.object({
|
|
9804
|
-
duration: require_schemas._enum([
|
|
9805
|
-
"week",
|
|
9806
|
-
"month",
|
|
9807
|
-
"quarter"
|
|
9808
|
-
]).optional().default("week"),
|
|
9809
|
-
limit: number().min(1).max(100).optional().default(10),
|
|
9810
|
-
includeRaw: boolean().optional().default(false)
|
|
9811
|
-
});
|
|
9812
|
-
/**
|
|
9813
|
-
* Analytics Export Query Schema
|
|
9814
|
-
* Used for data export endpoints
|
|
9815
|
-
*/
|
|
9816
|
-
const AnalyticsExportQuerySchema = require_schemas.object({
|
|
9817
|
-
format: require_schemas._enum([
|
|
9818
|
-
"csv",
|
|
9819
|
-
"json",
|
|
9820
|
-
"excel"
|
|
9821
|
-
]).optional().default("csv"),
|
|
9822
|
-
startDate: require_schemas.string().datetime(),
|
|
9823
|
-
endDate: require_schemas.string().datetime(),
|
|
9824
|
-
includeMetadata: boolean().optional().default(false),
|
|
9825
|
-
includeRawData: boolean().optional().default(false)
|
|
9826
|
-
});
|
|
9827
|
-
/**
|
|
9828
|
-
* Real-time Analytics Query Schema
|
|
9829
|
-
* Used for real-time analytics endpoints
|
|
9830
|
-
*/
|
|
9831
|
-
const AnalyticsRealtimeQuerySchema = require_schemas.object({
|
|
9832
|
-
timeWindow: require_schemas._enum([
|
|
9833
|
-
"1h",
|
|
9834
|
-
"6h",
|
|
9835
|
-
"24h"
|
|
9836
|
-
]).optional().default("1h"),
|
|
9837
|
-
refreshInterval: number().min(5).max(300).optional().default(30)
|
|
9838
|
-
});
|
|
9839
|
-
/**
|
|
9840
|
-
* Analytics Time Series Data Schema
|
|
9841
|
-
* Response schema for time series data
|
|
9842
|
-
*/
|
|
9843
|
-
const AnalyticsTimeSeriesSchema = require_schemas.object({
|
|
9844
|
-
timestamp: require_schemas.string().datetime(),
|
|
9845
|
-
totalDetections: require_schemas.number().nonnegative(),
|
|
9846
|
-
agentDetections: require_schemas.number().nonnegative(),
|
|
9847
|
-
humanDetections: require_schemas.number().nonnegative(),
|
|
9848
|
-
uniqueSessions: require_schemas.number().nonnegative(),
|
|
9849
|
-
avgConfidence: require_schemas.number().min(0).max(1)
|
|
9850
|
-
});
|
|
9851
|
-
/**
|
|
9852
|
-
* Analytics Summary Stats Schema
|
|
9853
|
-
* Response schema for summary statistics
|
|
9854
|
-
*/
|
|
9855
|
-
const AnalyticsSummarySchema = require_schemas.object({
|
|
9856
|
-
totalAgentDetections: require_schemas.number().nonnegative(),
|
|
9857
|
-
totalDetections: require_schemas.number().nonnegative(),
|
|
9858
|
-
uniqueAgentSessions: require_schemas.number().nonnegative(),
|
|
9859
|
-
totalSessions: require_schemas.number().nonnegative(),
|
|
9860
|
-
avgConfidence: require_schemas.number().min(0).max(1),
|
|
9861
|
-
agentDetectionsChange: require_schemas.number(),
|
|
9862
|
-
agentDetectionsChangeCount: require_schemas.number(),
|
|
9863
|
-
totalDetectionsChange: require_schemas.number(),
|
|
9864
|
-
totalDetectionsChangeCount: require_schemas.number(),
|
|
9865
|
-
agentSessionsChange: require_schemas.number(),
|
|
9866
|
-
agentSessionsChangeCount: require_schemas.number()
|
|
9867
|
-
});
|
|
9868
|
-
/**
|
|
9869
|
-
* Analytics Chart Data Schema
|
|
9870
|
-
* Response schema for chart data points
|
|
9871
|
-
*/
|
|
9872
|
-
const AnalyticsChartDataSchema = require_schemas.object({
|
|
9873
|
-
month: require_schemas.string(),
|
|
9874
|
-
timestamp: require_schemas.string().datetime(),
|
|
9875
|
-
agentDetections: require_schemas.number().nonnegative(),
|
|
9876
|
-
totalDetections: require_schemas.number().nonnegative(),
|
|
9877
|
-
humanDetections: require_schemas.number().nonnegative(),
|
|
9878
|
-
uniqueSessions: require_schemas.number().nonnegative(),
|
|
9879
|
-
avgConfidence: require_schemas.number().min(0).max(1)
|
|
9880
|
-
});
|
|
9881
|
-
/**
|
|
9882
|
-
* Analytics Sessions Response Schema
|
|
9883
|
-
* Complete response schema for sessions analytics
|
|
9884
|
-
*/
|
|
9885
|
-
const AnalyticsSessionsResponseSchema = require_schemas.object({
|
|
9886
|
-
success: require_schemas.literal(true),
|
|
9887
|
-
data: require_schemas.object({
|
|
9888
|
-
chartData: require_schemas.array(AnalyticsChartDataSchema),
|
|
9889
|
-
stats: AnalyticsSummarySchema,
|
|
9890
|
-
period: require_schemas._enum(["week", "month"]),
|
|
9891
|
-
dateRange: require_schemas.object({
|
|
9892
|
-
start: require_schemas.string().datetime(),
|
|
9893
|
-
end: require_schemas.string().datetime()
|
|
9894
|
-
})
|
|
9895
|
-
})
|
|
9896
|
-
});
|
|
9897
|
-
/**
|
|
9898
|
-
* Agent Type Distribution Schema
|
|
9899
|
-
* Used for agent type analytics
|
|
9900
|
-
*/
|
|
9901
|
-
const AgentTypeDistributionSchema = require_schemas.object({
|
|
9902
|
-
agentType: require_schemas.string(),
|
|
9903
|
-
count: require_schemas.number().nonnegative(),
|
|
9904
|
-
uniqueSessions: require_schemas.number().nonnegative(),
|
|
9905
|
-
avgConfidence: require_schemas.number().min(0).max(1),
|
|
9906
|
-
percentage: require_schemas.number().min(0).max(100)
|
|
9907
|
-
});
|
|
9908
|
-
/**
|
|
9909
|
-
* Agent Source Distribution Schema
|
|
9910
|
-
* Used for agent source analytics
|
|
9911
|
-
*/
|
|
9912
|
-
const AgentSourceDistributionSchema = require_schemas.object({
|
|
9913
|
-
source: require_schemas.string(),
|
|
9914
|
-
count: require_schemas.number().nonnegative(),
|
|
9915
|
-
avgConfidence: require_schemas.number().min(0).max(1),
|
|
9916
|
-
percentage: require_schemas.number().min(0).max(100),
|
|
9917
|
-
userAgents: require_schemas.array(require_schemas.string()).optional()
|
|
9918
|
-
});
|
|
9919
|
-
/**
|
|
9920
|
-
* Confidence Distribution Schema
|
|
9921
|
-
* Used for confidence distribution analytics
|
|
9922
|
-
*/
|
|
9923
|
-
const ConfidenceDistributionSchema = require_schemas.object({
|
|
9924
|
-
range: require_schemas.string(),
|
|
9925
|
-
count: require_schemas.number().nonnegative(),
|
|
9926
|
-
percentage: require_schemas.number().min(0).max(100)
|
|
9927
|
-
});
|
|
9928
|
-
|
|
9929
9539
|
//#endregion
|
|
9930
9540
|
//#region src/schemas/rules.ts
|
|
9931
9541
|
/**
|
|
@@ -10060,10 +9670,7 @@ const DetectionRulesSchema = require_schemas.object({
|
|
|
10060
9670
|
headers: HeaderRulesSchema
|
|
10061
9671
|
})
|
|
10062
9672
|
});
|
|
10063
|
-
|
|
10064
|
-
* Rule load options schema
|
|
10065
|
-
*/
|
|
10066
|
-
const RuleLoadOptionsSchema = require_schemas.object({
|
|
9673
|
+
require_schemas.object({
|
|
10067
9674
|
/** @deprecated Refused at runtime; see `RuleLoader.loadRules`. */
|
|
10068
9675
|
cdnUrl: require_schemas.string().url().optional(),
|
|
10069
9676
|
forceRefresh: require_schemas.boolean().optional(),
|
|
@@ -10089,10 +9696,7 @@ const RuleValidationResultSchema = require_schemas.object({
|
|
|
10089
9696
|
message: require_schemas.string()
|
|
10090
9697
|
})).optional()
|
|
10091
9698
|
});
|
|
10092
|
-
|
|
10093
|
-
* Rule update event schema
|
|
10094
|
-
*/
|
|
10095
|
-
const RuleUpdateEventSchema = require_schemas.object({
|
|
9699
|
+
require_schemas.object({
|
|
10096
9700
|
previousVersion: require_schemas.string(),
|
|
10097
9701
|
newVersion: require_schemas.string(),
|
|
10098
9702
|
timestamp: require_schemas.string(),
|
|
@@ -10102,10 +9706,7 @@ const RuleUpdateEventSchema = require_schemas.object({
|
|
|
10102
9706
|
removed: require_schemas.array(require_schemas.string())
|
|
10103
9707
|
}).optional()
|
|
10104
9708
|
});
|
|
10105
|
-
|
|
10106
|
-
* Rule match result schema
|
|
10107
|
-
*/
|
|
10108
|
-
const RuleMatchResultSchema = require_schemas.object({
|
|
9709
|
+
require_schemas.object({
|
|
10109
9710
|
matched: require_schemas.boolean(),
|
|
10110
9711
|
rule: require_schemas.string().optional(),
|
|
10111
9712
|
category: require_schemas._enum([
|
|
@@ -10145,12 +9746,6 @@ function validateRules(rules) {
|
|
|
10145
9746
|
}
|
|
10146
9747
|
}
|
|
10147
9748
|
/**
|
|
10148
|
-
* Validate and parse rules with type safety
|
|
10149
|
-
*/
|
|
10150
|
-
function parseRules(rules) {
|
|
10151
|
-
return DetectionRulesSchema.parse(rules);
|
|
10152
|
-
}
|
|
10153
|
-
/**
|
|
10154
9749
|
* Validate rules with loose mode (allows extra fields)
|
|
10155
9750
|
*/
|
|
10156
9751
|
function validateRulesLoose(rules) {
|
|
@@ -13922,6 +13517,7 @@ exports.ADMIN_OVERVIEW_LIST_LIMIT_MAX = ADMIN_OVERVIEW_LIST_LIMIT_MAX;
|
|
|
13922
13517
|
exports.ADMIN_OVERVIEW_SECTIONS = ADMIN_OVERVIEW_SECTIONS;
|
|
13923
13518
|
exports.ADMIN_OVERVIEW_WINDOWS = ADMIN_OVERVIEW_WINDOWS;
|
|
13924
13519
|
exports.ADMIN_TRUSTED_METRICS = ADMIN_TRUSTED_METRICS;
|
|
13520
|
+
exports.AGENT_CATALOG = require_agent_catalog.AGENT_CATALOG;
|
|
13925
13521
|
exports.AGENT_CATEGORY_META = AGENT_CATEGORY_META;
|
|
13926
13522
|
exports.AI_AGENT_HEADERS = AI_AGENT_HEADERS;
|
|
13927
13523
|
exports.ANALYTICS_ERRORS = ANALYTICS_ERRORS;
|
|
@@ -13932,6 +13528,7 @@ exports.ATTESTED_BEARER_MAX_TTL_SECONDS = ATTESTED_BEARER_MAX_TTL_SECONDS;
|
|
|
13932
13528
|
exports.AUDIT_ERRORS = AUDIT_ERRORS;
|
|
13933
13529
|
exports.AUDIT_PROTOCOL_ERRORS = AUDIT_PROTOCOL_ERRORS;
|
|
13934
13530
|
exports.AUTHORIZATION_MODES = AUTHORIZATION_MODES;
|
|
13531
|
+
exports.AUTH_DOMAIN = require_default_sign_in_host.AUTH_DOMAIN;
|
|
13935
13532
|
exports.AUTH_ERRORS = AUTH_ERRORS;
|
|
13936
13533
|
exports.AcceptanceWithdrawalSchema = AcceptanceWithdrawalSchema;
|
|
13937
13534
|
exports.AcceptedArtifactRevisionSchema = AcceptedArtifactRevisionSchema;
|
|
@@ -13945,23 +13542,13 @@ exports.AgentClassificationResultSchema = AgentClassificationResultSchema;
|
|
|
13945
13542
|
exports.AgentClassificationSchema = AgentClassificationSchema;
|
|
13946
13543
|
exports.AgentInfoSchema = AgentInfoSchema;
|
|
13947
13544
|
exports.AgentPatternSchema = AgentPatternSchema;
|
|
13948
|
-
exports.AgentSourceDistributionSchema = AgentSourceDistributionSchema;
|
|
13949
13545
|
exports.AgentStatisticsSchema = AgentStatisticsSchema;
|
|
13950
13546
|
exports.AgentTypeDefinitionSchema = AgentTypeDefinitionSchema;
|
|
13951
13547
|
exports.AgentTypeSchema = AgentTypeSchema;
|
|
13952
13548
|
exports.AllowListEntrySchema = require_schemas$1.AllowListEntrySchema;
|
|
13953
13549
|
exports.AllowedDomainsSchema = AllowedDomainsSchema;
|
|
13954
|
-
exports.AnalyticsAgentSourcesQuerySchema = AnalyticsAgentSourcesQuerySchema;
|
|
13955
|
-
exports.AnalyticsAgentTypesQuerySchema = AnalyticsAgentTypesQuerySchema;
|
|
13956
|
-
exports.AnalyticsChartDataSchema = AnalyticsChartDataSchema;
|
|
13957
13550
|
exports.AnalyticsExportParamsSchema = AnalyticsExportParamsSchema;
|
|
13958
|
-
exports.AnalyticsExportQuerySchema = AnalyticsExportQuerySchema;
|
|
13959
13551
|
exports.AnalyticsQuerySchema = AnalyticsQuerySchema;
|
|
13960
|
-
exports.AnalyticsRealtimeQuerySchema = AnalyticsRealtimeQuerySchema;
|
|
13961
|
-
exports.AnalyticsSessionsQuerySchema = AnalyticsSessionsQuerySchema;
|
|
13962
|
-
exports.AnalyticsSessionsResponseSchema = AnalyticsSessionsResponseSchema;
|
|
13963
|
-
exports.AnalyticsSessionsSummarySchema = AnalyticsSummarySchema;
|
|
13964
|
-
exports.AnalyticsTimeSeriesSchema = AnalyticsTimeSeriesSchema;
|
|
13965
13552
|
exports.ApiKeyPermissionSchema = ApiKeyPermissionSchema;
|
|
13966
13553
|
exports.ApiKeyRateLimitsSchema = ApiKeyRateLimitsSchema;
|
|
13967
13554
|
exports.ApiKeySchema = ApiKeySchema;
|
|
@@ -13977,7 +13564,6 @@ exports.ApprovedTaskPublicationSchema = ApprovedTaskPublicationSchema;
|
|
|
13977
13564
|
exports.ArtifactIdentitySchema = ArtifactIdentitySchema;
|
|
13978
13565
|
exports.AssuranceTierSchema = require_schemas$1.AssuranceTierSchema;
|
|
13979
13566
|
exports.AuthErrorType = AuthErrorType;
|
|
13980
|
-
exports.AuthProviderTypeSchema = AuthProviderTypeSchema;
|
|
13981
13567
|
exports.BARE_ERRORS = BARE_ERRORS;
|
|
13982
13568
|
exports.BASELINE_ALLOW_POLICY_ID = require_step_up.BASELINE_ALLOW_POLICY_ID;
|
|
13983
13569
|
exports.BESPOKE_POLICY_IDS = require_step_up.BESPOKE_POLICY_IDS;
|
|
@@ -14005,8 +13591,6 @@ exports.BlockReasonSchema = require_schemas$1.BlockReasonSchema;
|
|
|
14005
13591
|
exports.BotPatternSchema = BotPatternSchema;
|
|
14006
13592
|
exports.BotTypeSchema = BotTypeSchema;
|
|
14007
13593
|
exports.BouncerConfigSchema = BouncerConfigSchema;
|
|
14008
|
-
exports.BouncerOutcomeSchema = BouncerOutcomeSchema;
|
|
14009
|
-
exports.BouncerProofSchema = BouncerProofSchema;
|
|
14010
13594
|
exports.BulkDeletePreviewStatsSchema = BulkDeletePreviewStatsSchema;
|
|
14011
13595
|
exports.BulkDeleteResponseSchema = BulkDeleteResponseSchema;
|
|
14012
13596
|
exports.BulkOperationOptionsSchema = BulkOperationOptionsSchema;
|
|
@@ -14110,12 +13694,9 @@ exports.DelegationListStatusFilterSchema = DelegationListStatusFilterSchema;
|
|
|
14110
13694
|
exports.DelegationManagementDetailSchema = DelegationManagementDetailSchema;
|
|
14111
13695
|
exports.DelegationManagementItemSchema = DelegationManagementItemSchema;
|
|
14112
13696
|
exports.DelegationManagementListSchema = DelegationManagementListSchema;
|
|
14113
|
-
exports.DelegationPollingStatusSchema = DelegationPollingStatusSchema;
|
|
14114
13697
|
exports.DelegationResultSchema = DelegationResultSchema;
|
|
14115
13698
|
exports.DelegationRevokeRequestSchema = DelegationRevokeRequestSchema;
|
|
14116
13699
|
exports.DelegationRevokeResponseSchema = DelegationRevokeResponseSchema;
|
|
14117
|
-
exports.DelegationSchema = DelegationSchema;
|
|
14118
|
-
exports.DelegationStatusSchema = DelegationStatusSchema;
|
|
14119
13700
|
exports.DelegationStoredStatusSchema = DelegationStoredStatusSchema;
|
|
14120
13701
|
exports.DelegationVerifiedBySchema = DelegationVerifiedBySchema;
|
|
14121
13702
|
exports.DeleteAccountSchema = DeleteAccountSchema;
|
|
@@ -14348,7 +13929,6 @@ exports.ProjectsBulkDeleteItemSchema = ProjectsBulkDeleteItemSchema;
|
|
|
14348
13929
|
exports.ProjectsBulkRequestSchema = ProjectsBulkRequestSchema;
|
|
14349
13930
|
exports.ProjectsBulkUpdateItemSchema = ProjectsBulkUpdateItemSchema;
|
|
14350
13931
|
exports.ProjectsQuerySchema = ProjectsQuerySchema;
|
|
14351
|
-
exports.ProviderDefinitionSchema = ProviderDefinitionSchema;
|
|
14352
13932
|
exports.ProvidersResponseSchema = ProvidersResponseSchema;
|
|
14353
13933
|
exports.ProvisionKeyRequestSchema = ProvisionKeyRequestSchema;
|
|
14354
13934
|
exports.ProvisionKeyResponseSchema = ProvisionKeyResponseSchema;
|
|
@@ -14403,12 +13983,9 @@ exports.RiskScoreSourceSchema = RiskScoreSourceSchema;
|
|
|
14403
13983
|
exports.RotateModelCredentialSchema = RotateModelCredentialSchema;
|
|
14404
13984
|
exports.RotateWorkloadEnrollmentSchema = RotateWorkloadEnrollmentSchema;
|
|
14405
13985
|
exports.RoutingTypeSchema = RoutingTypeSchema;
|
|
14406
|
-
exports.RuleLoadOptionsSchema = RuleLoadOptionsSchema;
|
|
14407
13986
|
exports.RuleLoader = RuleLoader;
|
|
14408
|
-
exports.RuleMatchResultSchema = RuleMatchResultSchema;
|
|
14409
13987
|
exports.RuleMetadataSchema = require_schemas$1.RuleMetadataSchema;
|
|
14410
13988
|
exports.RuleParser = RuleParser;
|
|
14411
|
-
exports.RuleUpdateEventSchema = RuleUpdateEventSchema;
|
|
14412
13989
|
exports.RuleValidationResultSchema = RuleValidationResultSchema;
|
|
14413
13990
|
exports.RuleValidator = RuleValidator;
|
|
14414
13991
|
exports.SECURITY_LIMITS = SECURITY_LIMITS;
|
|
@@ -14424,8 +14001,6 @@ exports.ScopeSchema = ScopeSchema;
|
|
|
14424
14001
|
exports.ScrollEventSchema = ScrollEventSchema;
|
|
14425
14002
|
exports.SdkSessionDataSchema = SdkSessionDataSchema;
|
|
14426
14003
|
exports.SessionSchema = SessionSchema;
|
|
14427
|
-
exports.SharedAgentTypeDistributionSchema = AgentTypeDistributionSchema;
|
|
14428
|
-
exports.SharedConfidenceDistributionSchema = ConfidenceDistributionSchema;
|
|
14429
14004
|
exports.ShopifyProjectProvisionRequestSchema = ShopifyProjectProvisionRequestSchema;
|
|
14430
14005
|
exports.ShopifyProjectProvisionResultSchema = ShopifyProjectProvisionResultSchema;
|
|
14431
14006
|
exports.ShopifyProjectSettingsUpdateSchema = ShopifyProjectSettingsUpdateSchema;
|
|
@@ -14502,7 +14077,6 @@ exports.TaskStatusProjectionListSchema = TaskStatusProjectionListSchema;
|
|
|
14502
14077
|
exports.TaskStatusProjectionSchema = TaskStatusProjectionSchema;
|
|
14503
14078
|
exports.TestDetectionRequestSchema = TestDetectionRequestSchema;
|
|
14504
14079
|
exports.ThresholdConfigSchema = require_schemas$1.ThresholdConfigSchema;
|
|
14505
|
-
exports.ToolConsentOverridesSchema = ToolConsentOverridesSchema;
|
|
14506
14080
|
exports.TouchEventSchema = TouchEventSchema;
|
|
14507
14081
|
exports.TraceStepSchema = TraceStepSchema;
|
|
14508
14082
|
exports.TrackDependencyV2Schema = TrackDependencyV2Schema;
|
|
@@ -14566,7 +14140,6 @@ exports.buildKnownPatternLookup = buildKnownPatternLookup;
|
|
|
14566
14140
|
exports.buildVerdictEvidence = buildVerdictEvidence;
|
|
14567
14141
|
exports.calculateDeployProgress = calculateDeployProgress;
|
|
14568
14142
|
exports.cedarQuotedValueRegExp = require_step_up.cedarQuotedValueRegExp;
|
|
14569
|
-
exports.changePasswordSchema = changePasswordSchema;
|
|
14570
14143
|
exports.classifyAgentTaxonomy = classifyAgentTaxonomy;
|
|
14571
14144
|
exports.classifyResponseShape = require_host_adapter.classifyResponseShape;
|
|
14572
14145
|
exports.claudeRuntimeLabel = claudeRuntimeLabel;
|
|
@@ -14579,6 +14152,8 @@ exports.decisionPolicyId = require_step_up.decisionPolicyId;
|
|
|
14579
14152
|
exports.decodeDidKeyEd25519 = decodeDidKeyEd25519;
|
|
14580
14153
|
exports.decodeDidKeyP256 = decodeDidKeyP256;
|
|
14581
14154
|
exports.decodeEd25519PublicKeyMultibaseTolerant = decodeEd25519PublicKeyMultibaseTolerant;
|
|
14155
|
+
exports.defaultSignInHost = require_default_sign_in_host.defaultSignInHost;
|
|
14156
|
+
exports.defaultSignInHostLabel = require_default_sign_in_host.defaultSignInHostLabel;
|
|
14582
14157
|
exports.deriveConflictId = deriveConflictId;
|
|
14583
14158
|
exports.deriveCorrelationId = deriveCorrelationId;
|
|
14584
14159
|
exports.deriveDelegationPickupUri = require_host_adapter.deriveDelegationPickupUri;
|
|
@@ -14598,13 +14173,10 @@ exports.extractCorrelationIdFromHeaders = extractCorrelationIdFromHeaders;
|
|
|
14598
14173
|
exports.extractMatch = require_patterns.extractMatch;
|
|
14599
14174
|
exports.findMatchingPattern = require_patterns.findMatchingPattern;
|
|
14600
14175
|
exports.findStaleVendorRanges = findStaleVendorRanges;
|
|
14601
|
-
exports.forgotPasswordSchema = forgotPasswordSchema;
|
|
14602
14176
|
exports.formatAgentCategory = formatAgentCategory;
|
|
14603
14177
|
exports.formatAgentCategoryInline = formatAgentCategoryInline;
|
|
14604
14178
|
exports.formatConfidence = formatConfidence;
|
|
14605
14179
|
exports.formatReasonCodesHeader = require_detection_reason_mapping.formatReasonCodesHeader;
|
|
14606
|
-
exports.fromProviderRegistryFormat = fromProviderRegistryFormat;
|
|
14607
|
-
exports.fromProviderRegistryFormatSafe = fromProviderRegistryFormatSafe;
|
|
14608
14180
|
exports.gatewayConfigInputSchema = gatewayConfigInputSchema;
|
|
14609
14181
|
exports.gatewayConfigSchema = gatewayConfigSchema;
|
|
14610
14182
|
exports.gatewayConnectedAgentSchema = gatewayConnectedAgentSchema;
|
|
@@ -14636,6 +14208,8 @@ exports.isAuthorizedLead = isAuthorizedLead;
|
|
|
14636
14208
|
exports.isBespokePolicyId = require_step_up.isBespokePolicyId;
|
|
14637
14209
|
exports.isBlockingAction = isBlockingAction;
|
|
14638
14210
|
exports.isClaudeProductLabel = isClaudeProductLabel;
|
|
14211
|
+
exports.isDefaultSignInHostLabel = require_default_sign_in_host.isDefaultSignInHostLabel;
|
|
14212
|
+
exports.isDnsLabel = require_default_sign_in_host.isDnsLabel;
|
|
14639
14213
|
exports.isEngineEnforcing = require_engine_enforcing.isEngineEnforcing;
|
|
14640
14214
|
exports.isHighConfidenceVerification = require_verification.isHighConfidenceVerification;
|
|
14641
14215
|
exports.isKnownAiCrawler = isKnownAiCrawler;
|
|
@@ -14648,8 +14222,8 @@ exports.isMcpiOrgKeyId = isMcpiOrgKeyId;
|
|
|
14648
14222
|
exports.isNonNavigablePolicyId = require_step_up.isNonNavigablePolicyId;
|
|
14649
14223
|
exports.isPolicyUnavailableError = require_policy_fetcher.isPolicyUnavailableError;
|
|
14650
14224
|
exports.isPrivateOrReservedHost = isPrivateOrReservedHost;
|
|
14651
|
-
exports.isSupportedAuthType = isSupportedAuthType;
|
|
14652
14225
|
exports.isTraditionalBot = isTraditionalBot;
|
|
14226
|
+
exports.isUnderAuthDomain = require_default_sign_in_host.isUnderAuthDomain;
|
|
14653
14227
|
exports.isValidAuthorizationHost = isValidAuthorizationHost;
|
|
14654
14228
|
exports.isValidMcpiOrgSlug = isValidMcpiOrgSlug;
|
|
14655
14229
|
exports.lintMissingBaselinePermit = lintMissingBaselinePermit;
|
|
@@ -14686,7 +14260,6 @@ exports.parseImportIssueV2 = parseImportIssueV2;
|
|
|
14686
14260
|
exports.parseIpv6 = require_client_ip.parseIpv6;
|
|
14687
14261
|
exports.parseJafarFeed = parseJafarFeed;
|
|
14688
14262
|
exports.parseMaterializationPlan = parseMaterializationPlan;
|
|
14689
|
-
exports.parseRules = parseRules;
|
|
14690
14263
|
exports.partial = partial;
|
|
14691
14264
|
exports.passwordSchema = passwordSchema;
|
|
14692
14265
|
exports.pathHasUnnarrowedDenyRuleFor = require_step_up.pathHasUnnarrowedDenyRuleFor;
|
|
@@ -14715,8 +14288,6 @@ exports.safeParsePolicyConfig = require_schemas$1.safeParsePolicyConfig;
|
|
|
14715
14288
|
exports.safeUrl = safeUrl;
|
|
14716
14289
|
exports.selectBodyReadable200 = require_host_adapter.selectBodyReadable200;
|
|
14717
14290
|
exports.serveBodyReadable200 = require_host_adapter.serveBodyReadable200;
|
|
14718
|
-
exports.signInSchema = signInSchema;
|
|
14719
|
-
exports.signUpSchema = signUpSchema;
|
|
14720
14291
|
exports.splitCedarBlocks = require_step_up.splitCedarBlocks;
|
|
14721
14292
|
exports.statementApplies = require_step_up.statementApplies;
|
|
14722
14293
|
exports.statementId = require_step_up.statementId;
|
|
@@ -14730,7 +14301,6 @@ exports.testPatterns = require_patterns.testPatterns;
|
|
|
14730
14301
|
exports.toBareHost = toBareHost;
|
|
14731
14302
|
exports.toCoarseReasonKind = toCoarseReasonKind;
|
|
14732
14303
|
exports.toPercent = toPercent;
|
|
14733
|
-
exports.toProviderRegistryFormat = toProviderRegistryFormat;
|
|
14734
14304
|
exports.toStoredCorrelationId = toStoredCorrelationId;
|
|
14735
14305
|
exports.unescapeCedarString = require_step_up.unescapeCedarString;
|
|
14736
14306
|
exports.updateStepsState = updateStepsState;
|
|
@@ -14749,5 +14319,5 @@ exports.vaultResolveMetaSchema = vaultResolveMetaSchema;
|
|
|
14749
14319
|
exports.vaultResolveResponseSchema = vaultResolveResponseSchema;
|
|
14750
14320
|
exports.vaultResolveSuccessSchema = vaultResolveSuccessSchema;
|
|
14751
14321
|
exports.verifyContractRecordIdentity = verifyContractRecordIdentity;
|
|
14752
|
-
exports.
|
|
14753
|
-
exports.
|
|
14322
|
+
exports.withNoEvidenceExclusion = require_step_up.withNoEvidenceExclusion;
|
|
14323
|
+
exports.withoutTrailingDots = require_default_sign_in_host.withoutTrailingDots;
|