@grepr/cli 1.8.0-25614d0 → 1.8.1-09af546

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;
@@ -5516,6 +5591,10 @@ export interface components {
5516
5591
  /** @default [] */
5517
5592
  items?: components["schemas"]["ReadUser"][];
5518
5593
  };
5594
+ ItemsCollectionReadWebhookIntegration: {
5595
+ /** @default [] */
5596
+ items?: components["schemas"]["ReadWebhookIntegration"][];
5597
+ };
5519
5598
  ItemsCollectionServiceAccountRead: {
5520
5599
  /** @default [] */
5521
5600
  items?: components["schemas"]["ServiceAccountRead"][];
@@ -8765,6 +8844,43 @@ export interface components {
8765
8844
  /** @description The teams that this user is a member of. */
8766
8845
  teamIds: string[];
8767
8846
  };
8847
+ ReadWebhookIntegration: {
8848
+ /**
8849
+ * Format: date-time
8850
+ * @description Timestamp when the integration was created.
8851
+ */
8852
+ readonly createdAt: string;
8853
+ /** @description The integration id */
8854
+ id: string;
8855
+ /** @description List of job IDs associated with the integration. */
8856
+ jobIds: string[];
8857
+ /**
8858
+ * @description Name of the integration.
8859
+ * @example my_integration
8860
+ */
8861
+ name: string;
8862
+ /** @description Organization ID of the integration. */
8863
+ organizationId: string;
8864
+ payload: components["schemas"]["WebhookIntegration"];
8865
+ /** @description The team IDs that this integration is associated with. */
8866
+ teamIds?: string[];
8867
+ /**
8868
+ * @description The type of the integration. This is used to determine the payload type.
8869
+ * @enum {string}
8870
+ */
8871
+ type: ReadWebhookIntegrationType;
8872
+ /**
8873
+ * Format: date-time
8874
+ * @description Timestamp when the integration was last updated.
8875
+ */
8876
+ readonly updatedAt: string;
8877
+ /**
8878
+ * Format: int32
8879
+ * @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.
8880
+ * @example 0
8881
+ */
8882
+ version: number;
8883
+ };
8768
8884
  /** @description Readable data via a synchronous job. */
8769
8885
  ReadableData: {
8770
8886
  type: string;
@@ -11144,6 +11260,13 @@ export interface components {
11144
11260
  type: VendorLogEventDedupIcebergTableSinkType;
11145
11261
  vendorSinkId: string;
11146
11262
  };
11263
+ /** @description The payload containing integration data. */
11264
+ WebhookIntegration: {
11265
+ /** @default [] */
11266
+ agentSubscriptions: components["schemas"]["AgentSignalSubscription"][];
11267
+ schemaDescription: string;
11268
+ systemType: string;
11269
+ };
11147
11270
  WindowBasedLogarithmicSampling: {
11148
11271
  /**
11149
11272
  * Format: int32
@@ -11563,6 +11686,30 @@ export interface components {
11563
11686
  */
11564
11687
  roleIds: string[];
11565
11688
  };
11689
+ WriteWebhookIntegration: {
11690
+ /**
11691
+ * @description Name of the integration.
11692
+ * @example my_integration
11693
+ */
11694
+ name: string;
11695
+ payload: components["schemas"]["WebhookIntegration"];
11696
+ /**
11697
+ * @description The team IDs that this integration is associated with.
11698
+ * @default []
11699
+ */
11700
+ teamIds?: string[];
11701
+ /**
11702
+ * @description The type of the integration. This is used to determine the payload type.
11703
+ * @enum {string}
11704
+ */
11705
+ type: ReadWebhookIntegrationType;
11706
+ /**
11707
+ * Format: int32
11708
+ * @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.
11709
+ * @example 0
11710
+ */
11711
+ version: number;
11712
+ };
11566
11713
  /**
11567
11714
  * @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
11715
  * @example {
@@ -11603,6 +11750,7 @@ export type SchemaAgentDetail = components["schemas"]["AgentDetail"];
11603
11750
  export type SchemaAgentInvestigationMetrics = components["schemas"]["AgentInvestigationMetrics"];
11604
11751
  export type SchemaAgentMcpIntegrations = components["schemas"]["AgentMcpIntegrations"];
11605
11752
  export type SchemaAgentRecentHealth = components["schemas"]["AgentRecentHealth"];
11753
+ export type SchemaAgentSignalSubscription = components["schemas"]["AgentSignalSubscription"];
11606
11754
  export type SchemaAgentSubscriptionCounts = components["schemas"]["AgentSubscriptionCounts"];
11607
11755
  export type SchemaAgentSummary = components["schemas"]["AgentSummary"];
11608
11756
  export type SchemaAggregationAccumulator = components["schemas"]["AggregationAccumulator"];
@@ -11756,6 +11904,7 @@ export type SchemaItemsCollectionReadSlackMcp = components["schemas"]["ItemsColl
11756
11904
  export type SchemaItemsCollectionReadSplunk = components["schemas"]["ItemsCollectionReadSplunk"];
11757
11905
  export type SchemaItemsCollectionReadSumo = components["schemas"]["ItemsCollectionReadSumo"];
11758
11906
  export type SchemaItemsCollectionReadUser = components["schemas"]["ItemsCollectionReadUser"];
11907
+ export type SchemaItemsCollectionReadWebhookIntegration = components["schemas"]["ItemsCollectionReadWebhookIntegration"];
11759
11908
  export type SchemaItemsCollectionServiceAccountRead = components["schemas"]["ItemsCollectionServiceAccountRead"];
11760
11909
  export type SchemaItemsCollectionTemplate = components["schemas"]["ItemsCollectionTemplate"];
11761
11910
  export type SchemaItemsCollectionVendorImportedException = components["schemas"]["ItemsCollectionVendorImportedException"];
@@ -11891,6 +12040,7 @@ export type SchemaReadSsoClaimMapping = components["schemas"]["ReadSsoClaimMappi
11891
12040
  export type SchemaReadSumo = components["schemas"]["ReadSumo"];
11892
12041
  export type SchemaReadTeam = components["schemas"]["ReadTeam"];
11893
12042
  export type SchemaReadUser = components["schemas"]["ReadUser"];
12043
+ export type SchemaReadWebhookIntegration = components["schemas"]["ReadWebhookIntegration"];
11894
12044
  export type SchemaReadableData = components["schemas"]["ReadableData"];
11895
12045
  export type SchemaReducerLogsQuerySource = components["schemas"]["ReducerLogsQuerySource"];
11896
12046
  export type SchemaRemoveKeyAttributeAction = components["schemas"]["RemoveKeyAttributeAction"];
@@ -12016,6 +12166,7 @@ export type SchemaVectorData = components["schemas"]["VectorData"];
12016
12166
  export type SchemaVectorResult = components["schemas"]["VectorResult"];
12017
12167
  export type SchemaVendorImportedException = components["schemas"]["VendorImportedException"];
12018
12168
  export type SchemaVendorLogEventDedupIcebergTableSink = components["schemas"]["VendorLogEventDedupIcebergTableSink"];
12169
+ export type SchemaWebhookIntegration = components["schemas"]["WebhookIntegration"];
12019
12170
  export type SchemaWindowBasedLogarithmicSampling = components["schemas"]["WindowBasedLogarithmicSampling"];
12020
12171
  export type SchemaWriteAnthropic = components["schemas"]["WriteAnthropic"];
12021
12172
  export type SchemaWriteDataWarehouse = components["schemas"]["WriteDataWarehouse"];
@@ -12035,6 +12186,7 @@ export type SchemaWriteSplunk = components["schemas"]["WriteSplunk"];
12035
12186
  export type SchemaWriteSsoClaimMapping = components["schemas"]["WriteSsoClaimMapping"];
12036
12187
  export type SchemaWriteSumo = components["schemas"]["WriteSumo"];
12037
12188
  export type SchemaWriteUser = components["schemas"]["WriteUser"];
12189
+ export type SchemaWriteWebhookIntegration = components["schemas"]["WriteWebhookIntegration"];
12038
12190
  export type SchemaBackfillQuery = components["schemas"]["backfillQuery"];
12039
12191
  export type SchemaQuery = components["schemas"]["query"];
12040
12192
  export type $defs = Record<string, never>;
@@ -17104,6 +17256,237 @@ export interface operations {
17104
17256
  };
17105
17257
  };
17106
17258
  };
17259
+ list_17: {
17260
+ parameters: {
17261
+ query?: {
17262
+ /** @description Only return integrations targeting this agent. */
17263
+ agentId?: string;
17264
+ };
17265
+ header?: never;
17266
+ path?: never;
17267
+ cookie?: never;
17268
+ };
17269
+ requestBody?: never;
17270
+ responses: {
17271
+ /** @description Integrations retrieved successfully */
17272
+ 200: {
17273
+ headers: {
17274
+ [name: string]: unknown;
17275
+ };
17276
+ content: {
17277
+ "application/json": components["schemas"]["ItemsCollectionReadWebhookIntegration"];
17278
+ };
17279
+ };
17280
+ /** @description Unauthorized */
17281
+ 401: {
17282
+ headers: {
17283
+ [name: string]: unknown;
17284
+ };
17285
+ content?: never;
17286
+ };
17287
+ };
17288
+ };
17289
+ create_17: {
17290
+ parameters: {
17291
+ query?: never;
17292
+ header?: never;
17293
+ path?: never;
17294
+ cookie?: never;
17295
+ };
17296
+ requestBody?: {
17297
+ content: {
17298
+ "application/json": components["schemas"]["WriteWebhookIntegration"];
17299
+ };
17300
+ };
17301
+ responses: {
17302
+ /** @description Integration created successfully */
17303
+ 200: {
17304
+ headers: {
17305
+ [name: string]: unknown;
17306
+ };
17307
+ content: {
17308
+ "application/json": components["schemas"]["ReadWebhookIntegration"];
17309
+ };
17310
+ };
17311
+ /** @description Unauthorized */
17312
+ 401: {
17313
+ headers: {
17314
+ [name: string]: unknown;
17315
+ };
17316
+ content?: never;
17317
+ };
17318
+ /** @description Integration already exists. */
17319
+ 409: {
17320
+ headers: {
17321
+ [name: string]: unknown;
17322
+ };
17323
+ content?: never;
17324
+ };
17325
+ };
17326
+ };
17327
+ get_16: {
17328
+ parameters: {
17329
+ query?: never;
17330
+ header?: never;
17331
+ path: {
17332
+ id: string;
17333
+ };
17334
+ cookie?: never;
17335
+ };
17336
+ requestBody?: never;
17337
+ responses: {
17338
+ /** @description Integration retrieved successfully */
17339
+ 200: {
17340
+ headers: {
17341
+ [name: string]: unknown;
17342
+ };
17343
+ content: {
17344
+ "application/json": components["schemas"]["ReadWebhookIntegration"];
17345
+ };
17346
+ };
17347
+ /** @description Unauthorized */
17348
+ 401: {
17349
+ headers: {
17350
+ [name: string]: unknown;
17351
+ };
17352
+ content?: never;
17353
+ };
17354
+ /** @description Integration not found. */
17355
+ 404: {
17356
+ headers: {
17357
+ [name: string]: unknown;
17358
+ };
17359
+ content?: never;
17360
+ };
17361
+ };
17362
+ };
17363
+ update_16: {
17364
+ parameters: {
17365
+ query?: never;
17366
+ header?: never;
17367
+ path: {
17368
+ id: string;
17369
+ };
17370
+ cookie?: never;
17371
+ };
17372
+ requestBody?: {
17373
+ content: {
17374
+ "application/json": components["schemas"]["WriteWebhookIntegration"];
17375
+ };
17376
+ };
17377
+ responses: {
17378
+ /** @description Integration updated successfully */
17379
+ 200: {
17380
+ headers: {
17381
+ [name: string]: unknown;
17382
+ };
17383
+ content: {
17384
+ "application/json": components["schemas"]["ReadWebhookIntegration"];
17385
+ };
17386
+ };
17387
+ /** @description Unauthorized */
17388
+ 401: {
17389
+ headers: {
17390
+ [name: string]: unknown;
17391
+ };
17392
+ content?: never;
17393
+ };
17394
+ /** @description Integration not found. */
17395
+ 404: {
17396
+ headers: {
17397
+ [name: string]: unknown;
17398
+ };
17399
+ content?: never;
17400
+ };
17401
+ /** @description Integration was modified or deleted concurrently. */
17402
+ 409: {
17403
+ headers: {
17404
+ [name: string]: unknown;
17405
+ };
17406
+ content?: never;
17407
+ };
17408
+ };
17409
+ };
17410
+ delete_17: {
17411
+ parameters: {
17412
+ query?: never;
17413
+ header?: never;
17414
+ path: {
17415
+ id: string;
17416
+ };
17417
+ cookie?: never;
17418
+ };
17419
+ requestBody?: never;
17420
+ responses: {
17421
+ /** @description Integration deleted successfully */
17422
+ 204: {
17423
+ headers: {
17424
+ [name: string]: unknown;
17425
+ };
17426
+ content?: never;
17427
+ };
17428
+ /** @description Unauthorized */
17429
+ 401: {
17430
+ headers: {
17431
+ [name: string]: unknown;
17432
+ };
17433
+ content?: never;
17434
+ };
17435
+ };
17436
+ };
17437
+ postEvent: {
17438
+ parameters: {
17439
+ query?: never;
17440
+ header?: never;
17441
+ path: {
17442
+ /** @description The webhook integration id. */
17443
+ id: string;
17444
+ };
17445
+ cookie?: never;
17446
+ };
17447
+ requestBody?: {
17448
+ content: {
17449
+ "application/json": string;
17450
+ };
17451
+ };
17452
+ responses: {
17453
+ /** @description Investigation(s) started */
17454
+ 202: {
17455
+ headers: {
17456
+ [name: string]: unknown;
17457
+ };
17458
+ content?: never;
17459
+ };
17460
+ /** @description Body is not valid JSON */
17461
+ 400: {
17462
+ headers: {
17463
+ [name: string]: unknown;
17464
+ };
17465
+ content?: never;
17466
+ };
17467
+ /** @description API key is invalid */
17468
+ 401: {
17469
+ headers: {
17470
+ [name: string]: unknown;
17471
+ };
17472
+ content?: never;
17473
+ };
17474
+ /** @description No such webhook integration */
17475
+ 404: {
17476
+ headers: {
17477
+ [name: string]: unknown;
17478
+ };
17479
+ content?: never;
17480
+ };
17481
+ /** @description Body exceeds the size limit */
17482
+ 413: {
17483
+ headers: {
17484
+ [name: string]: unknown;
17485
+ };
17486
+ content?: never;
17487
+ };
17488
+ };
17489
+ };
17107
17490
  getEstimationDatasets: {
17108
17491
  parameters: {
17109
17492
  query?: never;
@@ -19725,7 +20108,7 @@ export interface operations {
19725
20108
  };
19726
20109
  };
19727
20110
  };
19728
- list_17: {
20111
+ list_18: {
19729
20112
  parameters: {
19730
20113
  query?: {
19731
20114
  page?: number;
@@ -20528,6 +20911,9 @@ export declare enum ReadSplunkType {
20528
20911
  export declare enum ReadSumoType {
20529
20912
  sumo = "sumo"
20530
20913
  }
20914
+ export declare enum ReadWebhookIntegrationType {
20915
+ webhook = "webhook"
20916
+ }
20531
20917
  export declare enum ReducerLogsQuerySourceType {
20532
20918
  reducer_logs_iceberg_table_source = "reducer-logs-iceberg-table-source"
20533
20919
  }