@groundcover/api-client 0.90.0 → 0.91.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.
@@ -2206,6 +2206,12 @@ export type CreateAssetsResponse = {
2206
2206
  * CreateBackendInvestigationRequest opens a root for a backend caller acting for a user, with how it started.
2207
2207
  */
2208
2208
  export type CreateBackendInvestigationRequest = {
2209
+ /**
2210
+ * The trigger investigates an issue at most once per this many seconds: within it, an open of a new firing
2211
+ * cycle is refused with 409 TRIGGER_IN_COOLDOWN, naming the trigger's latest root of the issue, open or closed.
2212
+ * Omitted: once per firing cycle. Only for an automation source.
2213
+ */
2214
+ cooldownSeconds?: number;
2209
2215
  /**
2210
2216
  * Sent to the root's investigator after the statement.
2211
2217
  */
@@ -3279,7 +3285,7 @@ export type EnvType = string;
3279
3285
  * (message + machine-readable code + trace_id, plus optional metadata).
3280
3286
  */
3281
3287
  export type ErrorResponse = {
3282
- code?: 'EXCEEDED_MAX_ROWS_TO_GROUP_BY' | 'MONITOR_EVAL_FAILED' | 'MONITOR_VALIDATION_FAILED' | 'MONITOR_DUPLICATE_TITLE' | 'CONNECTED_APP_IN_USE' | 'VIEW_REVISION_CONFLICT' | 'CONNECTED_APP_ORPHANED_SECRET' | 'INVALID_ARGUMENT' | 'INVESTIGATION_EXISTS' | 'SYNC_TARGET_TAKEN' | 'TRIGGER_AT_CAPACITY' | 'RUN_IDENTITY_REQUIRED' | 'INVESTIGATIONS_DISABLED' | 'INVESTIGATION_CLOSED' | 'FINDING_OUT_OF_SCOPE' | 'FINDING_RETRACTED' | 'NOT_AUTHOR' | 'INVESTIGATION_GRAMMAR' | 'EVIDENCE_REQUIRED' | 'REFUTE_REQUIRES_HYPOTHESIS' | 'HYPOTHESIS_REQUIRED';
3288
+ code?: 'EXCEEDED_MAX_ROWS_TO_GROUP_BY' | 'MONITOR_EVAL_FAILED' | 'MONITOR_VALIDATION_FAILED' | 'MONITOR_DUPLICATE_TITLE' | 'CONNECTED_APP_IN_USE' | 'VIEW_REVISION_CONFLICT' | 'CONNECTED_APP_ORPHANED_SECRET' | 'INVALID_ARGUMENT' | 'INVESTIGATION_EXISTS' | 'SYNC_TARGET_TAKEN' | 'TRIGGER_AT_CAPACITY' | 'TRIGGER_IN_COOLDOWN' | 'RUN_IDENTITY_REQUIRED' | 'INVESTIGATIONS_DISABLED' | 'INVESTIGATION_CLOSED' | 'FINDING_OUT_OF_SCOPE' | 'FINDING_RETRACTED' | 'NOT_AUTHOR' | 'INVESTIGATION_GRAMMAR' | 'EVIDENCE_REQUIRED' | 'REFUTE_REQUIRES_HYPOTHESIS' | 'HYPOTHESIS_REQUIRED';
3283
3289
  details?: unknown;
3284
3290
  docs_url?: string;
3285
3291
  message?: string;
@@ -4363,13 +4369,18 @@ export type InvestigationEvidence = {
4363
4369
  relation: 'supports' | 'contradicts';
4364
4370
  };
4365
4371
  /**
4366
- * InvestigationExistsDetails is the details of a 409 INVESTIGATION_EXISTS: the root to join.
4372
+ * InvestigationExistsDetails is the details of a 409 INVESTIGATION_EXISTS, the root to join, or of a 409
4373
+ * TRIGGER_IN_COOLDOWN, the trigger's root of the issue from within its cooldown.
4367
4374
  */
4368
4375
  export type InvestigationExistsDetails = {
4369
4376
  investigationId: string;
4377
+ /**
4378
+ * The issue timestamp of the root to join, which names its firing cycle; only on INVESTIGATION_EXISTS.
4379
+ */
4380
+ issueTimestamp?: string;
4370
4381
  };
4371
4382
  /**
4372
- * InvestigationExistsError is the 409 body of createInvestigation: the issue already has an open root to join.
4383
+ * InvestigationExistsError is the 409 body of createInvestigation: the issue's firing cycle has an open root to join.
4373
4384
  */
4374
4385
  export type InvestigationExistsError = {
4375
4386
  code: 'INVESTIGATION_EXISTS';
@@ -4549,7 +4560,7 @@ export type InvestigationSourceRef = {
4549
4560
  triggerId?: string;
4550
4561
  };
4551
4562
  /**
4552
- * Subject is what a root investigates. At most one root per subject is open at a time.
4563
+ * Subject is what a root investigates. At most one root per issue firing cycle is open at a time.
4553
4564
  */
4554
4565
  export type InvestigationSubject = {
4555
4566
  ref: InvestigationSubjectRef;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@groundcover/api-client",
3
- "version": "0.90.0",
3
+ "version": "0.91.0",
4
4
  "description": "groundcover TypeScript API Client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -2352,6 +2352,12 @@ export type CreateAssetsResponse = {
2352
2352
  * CreateBackendInvestigationRequest opens a root for a backend caller acting for a user, with how it started.
2353
2353
  */
2354
2354
  export type CreateBackendInvestigationRequest = {
2355
+ /**
2356
+ * The trigger investigates an issue at most once per this many seconds: within it, an open of a new firing
2357
+ * cycle is refused with 409 TRIGGER_IN_COOLDOWN, naming the trigger's latest root of the issue, open or closed.
2358
+ * Omitted: once per firing cycle. Only for an automation source.
2359
+ */
2360
+ cooldownSeconds?: number;
2355
2361
  /**
2356
2362
  * Sent to the root's investigator after the statement.
2357
2363
  */
@@ -3517,7 +3523,7 @@ export type EnvType = string;
3517
3523
  * (message + machine-readable code + trace_id, plus optional metadata).
3518
3524
  */
3519
3525
  export type ErrorResponse = {
3520
- code?: 'EXCEEDED_MAX_ROWS_TO_GROUP_BY' | 'MONITOR_EVAL_FAILED' | 'MONITOR_VALIDATION_FAILED' | 'MONITOR_DUPLICATE_TITLE' | 'CONNECTED_APP_IN_USE' | 'VIEW_REVISION_CONFLICT' | 'CONNECTED_APP_ORPHANED_SECRET' | 'INVALID_ARGUMENT' | 'INVESTIGATION_EXISTS' | 'SYNC_TARGET_TAKEN' | 'TRIGGER_AT_CAPACITY' | 'RUN_IDENTITY_REQUIRED' | 'INVESTIGATIONS_DISABLED' | 'INVESTIGATION_CLOSED' | 'FINDING_OUT_OF_SCOPE' | 'FINDING_RETRACTED' | 'NOT_AUTHOR' | 'INVESTIGATION_GRAMMAR' | 'EVIDENCE_REQUIRED' | 'REFUTE_REQUIRES_HYPOTHESIS' | 'HYPOTHESIS_REQUIRED';
3526
+ code?: 'EXCEEDED_MAX_ROWS_TO_GROUP_BY' | 'MONITOR_EVAL_FAILED' | 'MONITOR_VALIDATION_FAILED' | 'MONITOR_DUPLICATE_TITLE' | 'CONNECTED_APP_IN_USE' | 'VIEW_REVISION_CONFLICT' | 'CONNECTED_APP_ORPHANED_SECRET' | 'INVALID_ARGUMENT' | 'INVESTIGATION_EXISTS' | 'SYNC_TARGET_TAKEN' | 'TRIGGER_AT_CAPACITY' | 'TRIGGER_IN_COOLDOWN' | 'RUN_IDENTITY_REQUIRED' | 'INVESTIGATIONS_DISABLED' | 'INVESTIGATION_CLOSED' | 'FINDING_OUT_OF_SCOPE' | 'FINDING_RETRACTED' | 'NOT_AUTHOR' | 'INVESTIGATION_GRAMMAR' | 'EVIDENCE_REQUIRED' | 'REFUTE_REQUIRES_HYPOTHESIS' | 'HYPOTHESIS_REQUIRED';
3521
3527
  details?: unknown;
3522
3528
  docs_url?: string;
3523
3529
  message?: string;
@@ -4677,14 +4683,19 @@ export type InvestigationEvidence = {
4677
4683
  };
4678
4684
 
4679
4685
  /**
4680
- * InvestigationExistsDetails is the details of a 409 INVESTIGATION_EXISTS: the root to join.
4686
+ * InvestigationExistsDetails is the details of a 409 INVESTIGATION_EXISTS, the root to join, or of a 409
4687
+ * TRIGGER_IN_COOLDOWN, the trigger's root of the issue from within its cooldown.
4681
4688
  */
4682
4689
  export type InvestigationExistsDetails = {
4683
4690
  investigationId: string;
4691
+ /**
4692
+ * The issue timestamp of the root to join, which names its firing cycle; only on INVESTIGATION_EXISTS.
4693
+ */
4694
+ issueTimestamp?: string;
4684
4695
  };
4685
4696
 
4686
4697
  /**
4687
- * InvestigationExistsError is the 409 body of createInvestigation: the issue already has an open root to join.
4698
+ * InvestigationExistsError is the 409 body of createInvestigation: the issue's firing cycle has an open root to join.
4688
4699
  */
4689
4700
  export type InvestigationExistsError = {
4690
4701
  code: 'INVESTIGATION_EXISTS';
@@ -4877,7 +4888,7 @@ export type InvestigationSourceRef = {
4877
4888
  };
4878
4889
 
4879
4890
  /**
4880
- * Subject is what a root investigates. At most one root per subject is open at a time.
4891
+ * Subject is what a root investigates. At most one root per issue firing cycle is open at a time.
4881
4892
  */
4882
4893
  export type InvestigationSubject = {
4883
4894
  ref: InvestigationSubjectRef;