@grepr/cli 1.8.0-25614d0 → 1.8.2-5d2db79

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.
@@ -1831,6 +1831,78 @@ export interface paths {
1831
1831
  patch?: never;
1832
1832
  trace?: never;
1833
1833
  };
1834
+ "/v1/integrations/webhooks": {
1835
+ parameters: {
1836
+ query?: never;
1837
+ header?: never;
1838
+ path?: never;
1839
+ cookie?: never;
1840
+ };
1841
+ /**
1842
+ * List webhook integrations
1843
+ * @description Get all webhook integrations for your organization, optionally filtered to integrations that target the given agent.
1844
+ */
1845
+ get: operations["list_17"];
1846
+ put?: never;
1847
+ /**
1848
+ * Create a webhook integration
1849
+ * @description Creates a webhook integration. Senders POST events to /v1/integrations/webhooks/{id}/events and authenticate with a Grepr API key (GREPR-API-KEY header).
1850
+ */
1851
+ post: operations["create_17"];
1852
+ delete?: never;
1853
+ options?: never;
1854
+ head?: never;
1855
+ patch?: never;
1856
+ trace?: never;
1857
+ };
1858
+ "/v1/integrations/webhooks/{id}": {
1859
+ parameters: {
1860
+ query?: never;
1861
+ header?: never;
1862
+ path?: never;
1863
+ cookie?: never;
1864
+ };
1865
+ /**
1866
+ * Get a webhook integration
1867
+ * @description Get a webhook integration by ID.
1868
+ */
1869
+ get: operations["get_16"];
1870
+ /**
1871
+ * Update a webhook integration
1872
+ * @description Updates a webhook integration. The version should be increased by one for every new update in order for the write to succeed. Otherwise, a '409 Conflict' will be returned.
1873
+ */
1874
+ put: operations["update_16"];
1875
+ post?: never;
1876
+ /**
1877
+ * Delete a webhook integration
1878
+ * @description Deletes a webhook integration. No-op if already deleted.
1879
+ */
1880
+ delete: operations["delete_17"];
1881
+ options?: never;
1882
+ head?: never;
1883
+ patch?: never;
1884
+ trace?: never;
1885
+ };
1886
+ "/v1/integrations/webhooks/{id}/events": {
1887
+ parameters: {
1888
+ query?: never;
1889
+ header?: never;
1890
+ path?: never;
1891
+ cookie?: never;
1892
+ };
1893
+ get?: never;
1894
+ put?: never;
1895
+ /**
1896
+ * Submit a webhook event
1897
+ * @description Accepts one JSON event from the sending system and starts an investigation on each target agent of the integration. The org is taken from the Grepr API key and the integration id from the path. Returns 202 with the started investigation ids. Retries after a 5xx may start duplicate investigations.
1898
+ */
1899
+ post: operations["postEvent"];
1900
+ delete?: never;
1901
+ options?: never;
1902
+ head?: never;
1903
+ patch?: never;
1904
+ trace?: never;
1905
+ };
1834
1906
  "/v1/integrations/{integrationId}/exceptions/estimation-datasets": {
1835
1907
  parameters: {
1836
1908
  query?: never;
@@ -2879,7 +2951,7 @@ export interface paths {
2879
2951
  * List all users
2880
2952
  * @description Get all users in the system.
2881
2953
  */
2882
- get: operations["list_17"];
2954
+ get: operations["list_18"];
2883
2955
  put?: never;
2884
2956
  /**
2885
2957
  * Create a new user
@@ -3118,6 +3190,9 @@ export interface components {
3118
3190
  /** Format: int32 */
3119
3191
  failed?: number;
3120
3192
  };
3193
+ AgentSignalSubscription: {
3194
+ integrationId: string;
3195
+ };
3121
3196
  AgentSubscriptionCounts: {
3122
3197
  /** Format: int32 */
3123
3198
  pipelines?: number;
@@ -3168,6 +3243,7 @@ export interface components {
3168
3243
  parsers: components["schemas"]["Operation"][];
3169
3244
  patternMatcher: components["schemas"]["PatternMatcher"];
3170
3245
  processedLogsSink?: components["schemas"]["LogsIcebergTableSink"];
3246
+ processedLogsSinkFilter?: components["schemas"]["LogsFilter"];
3171
3247
  sampler?: components["schemas"]["LogsEventSampler"];
3172
3248
  /** @description A list of template log sinks, each specific to a vendor with optional filter configuration. */
3173
3249
  sinks: components["schemas"]["TemplateLogSink"][];
@@ -5516,6 +5592,10 @@ export interface components {
5516
5592
  /** @default [] */
5517
5593
  items?: components["schemas"]["ReadUser"][];
5518
5594
  };
5595
+ ItemsCollectionReadWebhookIntegration: {
5596
+ /** @default [] */
5597
+ items?: components["schemas"]["ReadWebhookIntegration"][];
5598
+ };
5519
5599
  ItemsCollectionServiceAccountRead: {
5520
5600
  /** @default [] */
5521
5601
  items?: components["schemas"]["ServiceAccountRead"][];
@@ -6323,6 +6403,7 @@ export interface components {
6323
6403
  /** @description A list of parsers to be applied to the data. */
6324
6404
  parsers: components["schemas"]["Operation"][];
6325
6405
  processedLogsSink?: components["schemas"]["LogsIcebergTableSink"];
6406
+ processedLogsSinkFilter?: components["schemas"]["LogsFilter"];
6326
6407
  rawSinkConfig?: components["schemas"]["RawLogsSinkConfig"];
6327
6408
  reducer: components["schemas"]["LogReducer"];
6328
6409
  sampler?: components["schemas"]["LogsEventSampler"];
@@ -8765,6 +8846,43 @@ export interface components {
8765
8846
  /** @description The teams that this user is a member of. */
8766
8847
  teamIds: string[];
8767
8848
  };
8849
+ ReadWebhookIntegration: {
8850
+ /**
8851
+ * Format: date-time
8852
+ * @description Timestamp when the integration was created.
8853
+ */
8854
+ readonly createdAt: string;
8855
+ /** @description The integration id */
8856
+ id: string;
8857
+ /** @description List of job IDs associated with the integration. */
8858
+ jobIds: string[];
8859
+ /**
8860
+ * @description Name of the integration.
8861
+ * @example my_integration
8862
+ */
8863
+ name: string;
8864
+ /** @description Organization ID of the integration. */
8865
+ organizationId: string;
8866
+ payload: components["schemas"]["WebhookIntegration"];
8867
+ /** @description The team IDs that this integration is associated with. */
8868
+ teamIds?: string[];
8869
+ /**
8870
+ * @description The type of the integration. This is used to determine the payload type.
8871
+ * @enum {string}
8872
+ */
8873
+ type: ReadWebhookIntegrationType;
8874
+ /**
8875
+ * Format: date-time
8876
+ * @description Timestamp when the integration was last updated.
8877
+ */
8878
+ readonly updatedAt: string;
8879
+ /**
8880
+ * Format: int32
8881
+ * @description Version of the integration. Should be increased by one for every new update in order for the write to succeed. Otherwise, a '409 Conflict' will be returned.
8882
+ * @example 0
8883
+ */
8884
+ version: number;
8885
+ };
8768
8886
  /** @description Readable data via a synchronous job. */
8769
8887
  ReadableData: {
8770
8888
  type: string;
@@ -11144,6 +11262,13 @@ export interface components {
11144
11262
  type: VendorLogEventDedupIcebergTableSinkType;
11145
11263
  vendorSinkId: string;
11146
11264
  };
11265
+ /** @description The payload containing integration data. */
11266
+ WebhookIntegration: {
11267
+ /** @default [] */
11268
+ agentSubscriptions: components["schemas"]["AgentSignalSubscription"][];
11269
+ schemaDescription: string;
11270
+ systemType: string;
11271
+ };
11147
11272
  WindowBasedLogarithmicSampling: {
11148
11273
  /**
11149
11274
  * Format: int32
@@ -11563,6 +11688,30 @@ export interface components {
11563
11688
  */
11564
11689
  roleIds: string[];
11565
11690
  };
11691
+ WriteWebhookIntegration: {
11692
+ /**
11693
+ * @description Name of the integration.
11694
+ * @example my_integration
11695
+ */
11696
+ name: string;
11697
+ payload: components["schemas"]["WebhookIntegration"];
11698
+ /**
11699
+ * @description The team IDs that this integration is associated with.
11700
+ * @default []
11701
+ */
11702
+ teamIds?: string[];
11703
+ /**
11704
+ * @description The type of the integration. This is used to determine the payload type.
11705
+ * @enum {string}
11706
+ */
11707
+ type: ReadWebhookIntegrationType;
11708
+ /**
11709
+ * Format: int32
11710
+ * @description Version of the integration. Should be increased by one for every new update in order for the write to succeed. Otherwise, a '409 Conflict' will be returned.
11711
+ * @example 0
11712
+ */
11713
+ version: number;
11714
+ };
11566
11715
  /**
11567
11716
  * @description The query to use for the backfill. This scopes the data that will be backfilled into the sink. It can also refer to variables generated by a trigger. Variables use __ (a double underscore) at the beginning and they are specified as part of the trigger description.
11568
11717
  * @example {
@@ -11603,6 +11752,7 @@ export type SchemaAgentDetail = components["schemas"]["AgentDetail"];
11603
11752
  export type SchemaAgentInvestigationMetrics = components["schemas"]["AgentInvestigationMetrics"];
11604
11753
  export type SchemaAgentMcpIntegrations = components["schemas"]["AgentMcpIntegrations"];
11605
11754
  export type SchemaAgentRecentHealth = components["schemas"]["AgentRecentHealth"];
11755
+ export type SchemaAgentSignalSubscription = components["schemas"]["AgentSignalSubscription"];
11606
11756
  export type SchemaAgentSubscriptionCounts = components["schemas"]["AgentSubscriptionCounts"];
11607
11757
  export type SchemaAgentSummary = components["schemas"]["AgentSummary"];
11608
11758
  export type SchemaAggregationAccumulator = components["schemas"]["AggregationAccumulator"];
@@ -11756,6 +11906,7 @@ export type SchemaItemsCollectionReadSlackMcp = components["schemas"]["ItemsColl
11756
11906
  export type SchemaItemsCollectionReadSplunk = components["schemas"]["ItemsCollectionReadSplunk"];
11757
11907
  export type SchemaItemsCollectionReadSumo = components["schemas"]["ItemsCollectionReadSumo"];
11758
11908
  export type SchemaItemsCollectionReadUser = components["schemas"]["ItemsCollectionReadUser"];
11909
+ export type SchemaItemsCollectionReadWebhookIntegration = components["schemas"]["ItemsCollectionReadWebhookIntegration"];
11759
11910
  export type SchemaItemsCollectionServiceAccountRead = components["schemas"]["ItemsCollectionServiceAccountRead"];
11760
11911
  export type SchemaItemsCollectionTemplate = components["schemas"]["ItemsCollectionTemplate"];
11761
11912
  export type SchemaItemsCollectionVendorImportedException = components["schemas"]["ItemsCollectionVendorImportedException"];
@@ -11891,6 +12042,7 @@ export type SchemaReadSsoClaimMapping = components["schemas"]["ReadSsoClaimMappi
11891
12042
  export type SchemaReadSumo = components["schemas"]["ReadSumo"];
11892
12043
  export type SchemaReadTeam = components["schemas"]["ReadTeam"];
11893
12044
  export type SchemaReadUser = components["schemas"]["ReadUser"];
12045
+ export type SchemaReadWebhookIntegration = components["schemas"]["ReadWebhookIntegration"];
11894
12046
  export type SchemaReadableData = components["schemas"]["ReadableData"];
11895
12047
  export type SchemaReducerLogsQuerySource = components["schemas"]["ReducerLogsQuerySource"];
11896
12048
  export type SchemaRemoveKeyAttributeAction = components["schemas"]["RemoveKeyAttributeAction"];
@@ -12016,6 +12168,7 @@ export type SchemaVectorData = components["schemas"]["VectorData"];
12016
12168
  export type SchemaVectorResult = components["schemas"]["VectorResult"];
12017
12169
  export type SchemaVendorImportedException = components["schemas"]["VendorImportedException"];
12018
12170
  export type SchemaVendorLogEventDedupIcebergTableSink = components["schemas"]["VendorLogEventDedupIcebergTableSink"];
12171
+ export type SchemaWebhookIntegration = components["schemas"]["WebhookIntegration"];
12019
12172
  export type SchemaWindowBasedLogarithmicSampling = components["schemas"]["WindowBasedLogarithmicSampling"];
12020
12173
  export type SchemaWriteAnthropic = components["schemas"]["WriteAnthropic"];
12021
12174
  export type SchemaWriteDataWarehouse = components["schemas"]["WriteDataWarehouse"];
@@ -12035,6 +12188,7 @@ export type SchemaWriteSplunk = components["schemas"]["WriteSplunk"];
12035
12188
  export type SchemaWriteSsoClaimMapping = components["schemas"]["WriteSsoClaimMapping"];
12036
12189
  export type SchemaWriteSumo = components["schemas"]["WriteSumo"];
12037
12190
  export type SchemaWriteUser = components["schemas"]["WriteUser"];
12191
+ export type SchemaWriteWebhookIntegration = components["schemas"]["WriteWebhookIntegration"];
12038
12192
  export type SchemaBackfillQuery = components["schemas"]["backfillQuery"];
12039
12193
  export type SchemaQuery = components["schemas"]["query"];
12040
12194
  export type $defs = Record<string, never>;
@@ -17104,6 +17258,237 @@ export interface operations {
17104
17258
  };
17105
17259
  };
17106
17260
  };
17261
+ list_17: {
17262
+ parameters: {
17263
+ query?: {
17264
+ /** @description Only return integrations targeting this agent. */
17265
+ agentId?: string;
17266
+ };
17267
+ header?: never;
17268
+ path?: never;
17269
+ cookie?: never;
17270
+ };
17271
+ requestBody?: never;
17272
+ responses: {
17273
+ /** @description Integrations retrieved successfully */
17274
+ 200: {
17275
+ headers: {
17276
+ [name: string]: unknown;
17277
+ };
17278
+ content: {
17279
+ "application/json": components["schemas"]["ItemsCollectionReadWebhookIntegration"];
17280
+ };
17281
+ };
17282
+ /** @description Unauthorized */
17283
+ 401: {
17284
+ headers: {
17285
+ [name: string]: unknown;
17286
+ };
17287
+ content?: never;
17288
+ };
17289
+ };
17290
+ };
17291
+ create_17: {
17292
+ parameters: {
17293
+ query?: never;
17294
+ header?: never;
17295
+ path?: never;
17296
+ cookie?: never;
17297
+ };
17298
+ requestBody?: {
17299
+ content: {
17300
+ "application/json": components["schemas"]["WriteWebhookIntegration"];
17301
+ };
17302
+ };
17303
+ responses: {
17304
+ /** @description Integration created successfully */
17305
+ 200: {
17306
+ headers: {
17307
+ [name: string]: unknown;
17308
+ };
17309
+ content: {
17310
+ "application/json": components["schemas"]["ReadWebhookIntegration"];
17311
+ };
17312
+ };
17313
+ /** @description Unauthorized */
17314
+ 401: {
17315
+ headers: {
17316
+ [name: string]: unknown;
17317
+ };
17318
+ content?: never;
17319
+ };
17320
+ /** @description Integration already exists. */
17321
+ 409: {
17322
+ headers: {
17323
+ [name: string]: unknown;
17324
+ };
17325
+ content?: never;
17326
+ };
17327
+ };
17328
+ };
17329
+ get_16: {
17330
+ parameters: {
17331
+ query?: never;
17332
+ header?: never;
17333
+ path: {
17334
+ id: string;
17335
+ };
17336
+ cookie?: never;
17337
+ };
17338
+ requestBody?: never;
17339
+ responses: {
17340
+ /** @description Integration retrieved successfully */
17341
+ 200: {
17342
+ headers: {
17343
+ [name: string]: unknown;
17344
+ };
17345
+ content: {
17346
+ "application/json": components["schemas"]["ReadWebhookIntegration"];
17347
+ };
17348
+ };
17349
+ /** @description Unauthorized */
17350
+ 401: {
17351
+ headers: {
17352
+ [name: string]: unknown;
17353
+ };
17354
+ content?: never;
17355
+ };
17356
+ /** @description Integration not found. */
17357
+ 404: {
17358
+ headers: {
17359
+ [name: string]: unknown;
17360
+ };
17361
+ content?: never;
17362
+ };
17363
+ };
17364
+ };
17365
+ update_16: {
17366
+ parameters: {
17367
+ query?: never;
17368
+ header?: never;
17369
+ path: {
17370
+ id: string;
17371
+ };
17372
+ cookie?: never;
17373
+ };
17374
+ requestBody?: {
17375
+ content: {
17376
+ "application/json": components["schemas"]["WriteWebhookIntegration"];
17377
+ };
17378
+ };
17379
+ responses: {
17380
+ /** @description Integration updated successfully */
17381
+ 200: {
17382
+ headers: {
17383
+ [name: string]: unknown;
17384
+ };
17385
+ content: {
17386
+ "application/json": components["schemas"]["ReadWebhookIntegration"];
17387
+ };
17388
+ };
17389
+ /** @description Unauthorized */
17390
+ 401: {
17391
+ headers: {
17392
+ [name: string]: unknown;
17393
+ };
17394
+ content?: never;
17395
+ };
17396
+ /** @description Integration not found. */
17397
+ 404: {
17398
+ headers: {
17399
+ [name: string]: unknown;
17400
+ };
17401
+ content?: never;
17402
+ };
17403
+ /** @description Integration was modified or deleted concurrently. */
17404
+ 409: {
17405
+ headers: {
17406
+ [name: string]: unknown;
17407
+ };
17408
+ content?: never;
17409
+ };
17410
+ };
17411
+ };
17412
+ delete_17: {
17413
+ parameters: {
17414
+ query?: never;
17415
+ header?: never;
17416
+ path: {
17417
+ id: string;
17418
+ };
17419
+ cookie?: never;
17420
+ };
17421
+ requestBody?: never;
17422
+ responses: {
17423
+ /** @description Integration deleted successfully */
17424
+ 204: {
17425
+ headers: {
17426
+ [name: string]: unknown;
17427
+ };
17428
+ content?: never;
17429
+ };
17430
+ /** @description Unauthorized */
17431
+ 401: {
17432
+ headers: {
17433
+ [name: string]: unknown;
17434
+ };
17435
+ content?: never;
17436
+ };
17437
+ };
17438
+ };
17439
+ postEvent: {
17440
+ parameters: {
17441
+ query?: never;
17442
+ header?: never;
17443
+ path: {
17444
+ /** @description The webhook integration id. */
17445
+ id: string;
17446
+ };
17447
+ cookie?: never;
17448
+ };
17449
+ requestBody?: {
17450
+ content: {
17451
+ "application/json": string;
17452
+ };
17453
+ };
17454
+ responses: {
17455
+ /** @description Investigation(s) started */
17456
+ 202: {
17457
+ headers: {
17458
+ [name: string]: unknown;
17459
+ };
17460
+ content?: never;
17461
+ };
17462
+ /** @description Body is not valid JSON */
17463
+ 400: {
17464
+ headers: {
17465
+ [name: string]: unknown;
17466
+ };
17467
+ content?: never;
17468
+ };
17469
+ /** @description API key is invalid */
17470
+ 401: {
17471
+ headers: {
17472
+ [name: string]: unknown;
17473
+ };
17474
+ content?: never;
17475
+ };
17476
+ /** @description No such webhook integration */
17477
+ 404: {
17478
+ headers: {
17479
+ [name: string]: unknown;
17480
+ };
17481
+ content?: never;
17482
+ };
17483
+ /** @description Body exceeds the size limit */
17484
+ 413: {
17485
+ headers: {
17486
+ [name: string]: unknown;
17487
+ };
17488
+ content?: never;
17489
+ };
17490
+ };
17491
+ };
17107
17492
  getEstimationDatasets: {
17108
17493
  parameters: {
17109
17494
  query?: never;
@@ -19725,7 +20110,7 @@ export interface operations {
19725
20110
  };
19726
20111
  };
19727
20112
  };
19728
- list_17: {
20113
+ list_18: {
19729
20114
  parameters: {
19730
20115
  query?: {
19731
20116
  page?: number;
@@ -20528,6 +20913,9 @@ export declare enum ReadSplunkType {
20528
20913
  export declare enum ReadSumoType {
20529
20914
  sumo = "sumo"
20530
20915
  }
20916
+ export declare enum ReadWebhookIntegrationType {
20917
+ webhook = "webhook"
20918
+ }
20531
20919
  export declare enum ReducerLogsQuerySourceType {
20532
20920
  reducer_logs_iceberg_table_source = "reducer-logs-iceberg-table-source"
20533
20921
  }