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,161 @@
|
||||
import type {
|
||||
CrowdStrikeGetSensorAggregatesParams,
|
||||
CrowdStrikeGetSensorAggregatesResponse,
|
||||
} from '@/tools/crowdstrike/types'
|
||||
import type { ToolConfig } from '@/tools/types'
|
||||
|
||||
export const crowdstrikeGetSensorAggregatesTool: ToolConfig<
|
||||
CrowdStrikeGetSensorAggregatesParams,
|
||||
CrowdStrikeGetSensorAggregatesResponse
|
||||
> = {
|
||||
id: 'crowdstrike_get_sensor_aggregates',
|
||||
name: 'CrowdStrike Get Sensor Aggregates',
|
||||
description:
|
||||
'Get documented CrowdStrike Identity Protection sensor aggregates from a JSON aggregate query body',
|
||||
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',
|
||||
},
|
||||
aggregateQuery: {
|
||||
type: 'json',
|
||||
required: true,
|
||||
visibility: 'user-or-llm',
|
||||
description: 'JSON aggregate query body documented by CrowdStrike for sensor aggregates',
|
||||
},
|
||||
},
|
||||
|
||||
request: {
|
||||
url: '/api/tools/crowdstrike/query',
|
||||
method: 'POST',
|
||||
headers: () => ({
|
||||
'Content-Type': 'application/json',
|
||||
}),
|
||||
body: (params) => ({
|
||||
aggregateQuery: params.aggregateQuery,
|
||||
cloud: params.cloud,
|
||||
clientId: params.clientId,
|
||||
clientSecret: params.clientSecret,
|
||||
operation: 'crowdstrike_get_sensor_aggregates',
|
||||
}),
|
||||
},
|
||||
|
||||
transformResponse: async (response) => {
|
||||
const data = await response.json()
|
||||
|
||||
if (!response.ok || data.success === false) {
|
||||
throw new Error(data.error || 'Failed to fetch CrowdStrike sensor aggregates')
|
||||
}
|
||||
|
||||
return {
|
||||
success: true,
|
||||
output: data.output,
|
||||
}
|
||||
},
|
||||
|
||||
outputs: {
|
||||
aggregates: {
|
||||
type: 'array',
|
||||
description: 'Aggregate result groups returned by CrowdStrike',
|
||||
items: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
buckets: {
|
||||
type: 'array',
|
||||
description: 'Buckets within the aggregate result',
|
||||
items: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
count: {
|
||||
type: 'number',
|
||||
description: 'Bucket document count',
|
||||
optional: true,
|
||||
},
|
||||
from: {
|
||||
type: 'number',
|
||||
description: 'Bucket lower bound',
|
||||
optional: true,
|
||||
},
|
||||
keyAsString: {
|
||||
type: 'string',
|
||||
description: 'String representation of the bucket key',
|
||||
optional: true,
|
||||
},
|
||||
label: {
|
||||
type: 'json',
|
||||
description: 'Bucket label object',
|
||||
optional: true,
|
||||
},
|
||||
stringFrom: {
|
||||
type: 'string',
|
||||
description: 'String lower bound',
|
||||
optional: true,
|
||||
},
|
||||
stringTo: {
|
||||
type: 'string',
|
||||
description: 'String upper bound',
|
||||
optional: true,
|
||||
},
|
||||
subAggregates: {
|
||||
type: 'json',
|
||||
description: 'Nested aggregate results for this bucket',
|
||||
optional: true,
|
||||
},
|
||||
to: {
|
||||
type: 'number',
|
||||
description: 'Bucket upper bound',
|
||||
optional: true,
|
||||
},
|
||||
value: {
|
||||
type: 'number',
|
||||
description: 'Bucket metric value',
|
||||
optional: true,
|
||||
},
|
||||
valueAsString: {
|
||||
type: 'string',
|
||||
description: 'String representation of the bucket value',
|
||||
optional: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
docCountErrorUpperBound: {
|
||||
type: 'number',
|
||||
description: 'Upper bound for bucket count error',
|
||||
optional: true,
|
||||
},
|
||||
name: {
|
||||
type: 'string',
|
||||
description: 'Aggregate result name',
|
||||
optional: true,
|
||||
},
|
||||
sumOtherDocCount: {
|
||||
type: 'number',
|
||||
description: 'Document count not included in the returned buckets',
|
||||
optional: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
count: {
|
||||
type: 'number',
|
||||
description: 'Number of aggregate result groups returned',
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user