chore: import upstream snapshot with attribution
CI / Migrate Dev DB (push) Has been skipped
CI / Detect Version (push) Has been cancelled
CI / Migrate DB (push) Has been cancelled
CI / Build Dev ECR (./docker/app.Dockerfile, ECR_APP) (push) Has been cancelled
CI / Build Dev ECR (./docker/db.Dockerfile, ECR_MIGRATIONS) (push) Has been cancelled
CI / Build Dev ECR (./docker/pii.Dockerfile, ECR_PII) (push) Has been cancelled
CI / Build Dev ECR (./docker/realtime.Dockerfile, ECR_REALTIME) (push) Has been cancelled
CI / Deploy Trigger.dev (Dev) (push) Has been cancelled
CI / Build AMD64 (./docker/app.Dockerfile, ECR_APP, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build AMD64 (./docker/db.Dockerfile, ECR_MIGRATIONS, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build AMD64 (./docker/pii.Dockerfile, ECR_PII, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build AMD64 (./docker/realtime.Dockerfile, ECR_REALTIME, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/app.Dockerfile, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/db.Dockerfile, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/pii.Dockerfile, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/realtime.Dockerfile, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Check Docs Changes (push) Has been cancelled
CI / Process Docs (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
CI / Test and Build (push) Has been cancelled
Publish CLI Package / publish-npm (push) Has been cancelled
Publish Python SDK / publish-pypi (push) Has been cancelled
Publish TypeScript SDK / publish-npm (push) Has been cancelled
CI / Migrate Dev DB (push) Has been skipped
CI / Detect Version (push) Has been cancelled
CI / Migrate DB (push) Has been cancelled
CI / Build Dev ECR (./docker/app.Dockerfile, ECR_APP) (push) Has been cancelled
CI / Build Dev ECR (./docker/db.Dockerfile, ECR_MIGRATIONS) (push) Has been cancelled
CI / Build Dev ECR (./docker/pii.Dockerfile, ECR_PII) (push) Has been cancelled
CI / Build Dev ECR (./docker/realtime.Dockerfile, ECR_REALTIME) (push) Has been cancelled
CI / Deploy Trigger.dev (Dev) (push) Has been cancelled
CI / Build AMD64 (./docker/app.Dockerfile, ECR_APP, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build AMD64 (./docker/db.Dockerfile, ECR_MIGRATIONS, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build AMD64 (./docker/pii.Dockerfile, ECR_PII, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build AMD64 (./docker/realtime.Dockerfile, ECR_REALTIME, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/app.Dockerfile, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/db.Dockerfile, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/pii.Dockerfile, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/realtime.Dockerfile, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Check Docs Changes (push) Has been cancelled
CI / Process Docs (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
CI / Test and Build (push) Has been cancelled
Publish CLI Package / publish-npm (push) Has been cancelled
Publish Python SDK / publish-pypi (push) Has been cancelled
Publish TypeScript SDK / publish-npm (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,193 @@
|
||||
import type {
|
||||
CrowdStrikeGetSensorDetailsParams,
|
||||
CrowdStrikeGetSensorDetailsResponse,
|
||||
} from '@/tools/crowdstrike/types'
|
||||
import type { ToolConfig } from '@/tools/types'
|
||||
|
||||
export const crowdstrikeGetSensorDetailsTool: ToolConfig<
|
||||
CrowdStrikeGetSensorDetailsParams,
|
||||
CrowdStrikeGetSensorDetailsResponse
|
||||
> = {
|
||||
id: 'crowdstrike_get_sensor_details',
|
||||
name: 'CrowdStrike Get Sensor Details',
|
||||
description:
|
||||
'Get documented CrowdStrike Identity Protection sensor details for one or more device IDs',
|
||||
version: '1.0.0',
|
||||
|
||||
params: {
|
||||
clientId: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
visibility: 'user-only',
|
||||
description: 'CrowdStrike Falcon API client ID',
|
||||
},
|
||||
clientSecret: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
visibility: 'user-only',
|
||||
description: 'CrowdStrike Falcon API client secret',
|
||||
},
|
||||
cloud: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
visibility: 'user-only',
|
||||
description: 'CrowdStrike Falcon cloud region',
|
||||
},
|
||||
ids: {
|
||||
type: 'json',
|
||||
required: true,
|
||||
visibility: 'user-or-llm',
|
||||
description: 'JSON array of CrowdStrike sensor device IDs',
|
||||
},
|
||||
},
|
||||
|
||||
request: {
|
||||
url: '/api/tools/crowdstrike/query',
|
||||
method: 'POST',
|
||||
headers: () => ({
|
||||
'Content-Type': 'application/json',
|
||||
}),
|
||||
body: (params) => ({
|
||||
cloud: params.cloud,
|
||||
clientId: params.clientId,
|
||||
clientSecret: params.clientSecret,
|
||||
ids: params.ids,
|
||||
operation: 'crowdstrike_get_sensor_details',
|
||||
}),
|
||||
},
|
||||
|
||||
transformResponse: async (response) => {
|
||||
const data = await response.json()
|
||||
|
||||
if (!response.ok || data.success === false) {
|
||||
throw new Error(data.error || 'Failed to fetch CrowdStrike sensor details')
|
||||
}
|
||||
|
||||
return {
|
||||
success: true,
|
||||
output: data.output,
|
||||
}
|
||||
},
|
||||
|
||||
outputs: {
|
||||
sensors: {
|
||||
type: 'array',
|
||||
description: 'CrowdStrike identity sensor detail records',
|
||||
items: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
agentVersion: {
|
||||
type: 'string',
|
||||
description: 'Sensor agent version',
|
||||
optional: true,
|
||||
},
|
||||
cid: {
|
||||
type: 'string',
|
||||
description: 'CrowdStrike customer identifier',
|
||||
},
|
||||
deviceId: {
|
||||
type: 'string',
|
||||
description: 'Sensor device identifier',
|
||||
},
|
||||
heartbeatTime: {
|
||||
type: 'number',
|
||||
description: 'Last heartbeat timestamp',
|
||||
optional: true,
|
||||
},
|
||||
hostname: {
|
||||
type: 'string',
|
||||
description: 'Sensor hostname',
|
||||
optional: true,
|
||||
},
|
||||
idpPolicyId: {
|
||||
type: 'string',
|
||||
description: 'Assigned Identity Protection policy ID',
|
||||
optional: true,
|
||||
},
|
||||
idpPolicyName: {
|
||||
type: 'string',
|
||||
description: 'Assigned Identity Protection policy name',
|
||||
optional: true,
|
||||
},
|
||||
ipAddress: {
|
||||
type: 'string',
|
||||
description: 'Sensor local IP address',
|
||||
optional: true,
|
||||
},
|
||||
kerberosConfig: {
|
||||
type: 'string',
|
||||
description: 'Kerberos configuration status',
|
||||
optional: true,
|
||||
},
|
||||
ldapConfig: {
|
||||
type: 'string',
|
||||
description: 'LDAP configuration status',
|
||||
optional: true,
|
||||
},
|
||||
ldapsConfig: {
|
||||
type: 'string',
|
||||
description: 'LDAPS configuration status',
|
||||
optional: true,
|
||||
},
|
||||
machineDomain: {
|
||||
type: 'string',
|
||||
description: 'Machine domain',
|
||||
optional: true,
|
||||
},
|
||||
ntlmConfig: {
|
||||
type: 'string',
|
||||
description: 'NTLM configuration status',
|
||||
optional: true,
|
||||
},
|
||||
osVersion: {
|
||||
type: 'string',
|
||||
description: 'Operating system version',
|
||||
optional: true,
|
||||
},
|
||||
rdpToDcConfig: {
|
||||
type: 'string',
|
||||
description: 'RDP to domain controller configuration status',
|
||||
optional: true,
|
||||
},
|
||||
smbToDcConfig: {
|
||||
type: 'string',
|
||||
description: 'SMB to domain controller configuration status',
|
||||
optional: true,
|
||||
},
|
||||
status: {
|
||||
type: 'string',
|
||||
description: 'Sensor protection status',
|
||||
optional: true,
|
||||
},
|
||||
statusCauses: {
|
||||
type: 'array',
|
||||
description: 'Documented causes behind the current status',
|
||||
optional: true,
|
||||
items: {
|
||||
type: 'string',
|
||||
},
|
||||
},
|
||||
tiEnabled: {
|
||||
type: 'string',
|
||||
description: 'Threat intelligence enablement status',
|
||||
optional: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
count: {
|
||||
type: 'number',
|
||||
description: 'Number of sensors returned',
|
||||
},
|
||||
pagination: {
|
||||
type: 'json',
|
||||
description: 'Pagination metadata when returned by the underlying API',
|
||||
optional: true,
|
||||
properties: {
|
||||
limit: { type: 'number', description: 'Page size used for the query', optional: true },
|
||||
offset: { type: 'number', description: 'Offset returned by CrowdStrike', optional: true },
|
||||
total: { type: 'number', description: 'Total records available', optional: true },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user