@quantcdn/quant-client 4.36.0 → 4.38.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.
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * QuantCDN API
3
3
  * Unified API for QuantCDN Admin and QuantCloud Platform services ## Rate limits - **Per token.** Each API token has a limit per organisation: by default 240 requests per minute. The limit counts after the token is validated, so tokens that share an IP address (for example Quant Cloud apps and CI runners) do not share a limit. An organisation can have a different limit (set per organisation or by subscription plan); contact Quant support to change it. - **Unauthenticated requests.** Requests that end without a valid token (no token, an invalid or expired token, public routes) have a coarse limit per client IP address: by default 600 requests per minute. A request with a valid token never counts against it and is never refused by it. A request with a valid token that is refused before the per-token limit runs (for example an organisation the token cannot use) still counts against the token. - **KV per project.** Some KV operations also have a limit per project, shared by every token: kv-admin 10 requests per minute (index create, delete and resume; upgrade; export create and resume; ledger declare, raise and drop), kv-erase 30 (ledger subject preview and shred), kv-verify 6 (ledger verify). - **Responses.** Over a limit the answer is 429 with a Retry-After header (seconds). KV routes answer the V2KvError body with code RATE_LIMITED and retryable true; other routes answer {\"message\": \"Too Many Attempts.\"}. Rate-limited routes send RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (IETF draft; Reset is seconds until the window resets) and X-RateLimit-Limit and X-RateLimit-Remaining on the responses of requests that reach a limiter, and X-RateLimit-Reset (Unix time) on a 429. A request refused before a limiter runs (for example a 401, 403 or 404 from an earlier check) can come back without these headers. When two limits apply, the headers describe the one with fewer requests left. Wait Retry-After seconds, then send the request again.
4
4
  *
5
- * The version of the OpenAPI document: 4.36.0
5
+ * The version of the OpenAPI document: 4.38.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2409,6 +2409,394 @@ export interface ChatWithAIAgentRequest {
2409
2409
  */
2410
2410
  'maxToolIterations'?: number;
2411
2411
  }
2412
+ /**
2413
+ * The scope to delete: either {\"all\": true} alone (the whole cache of the pool), or repoId with optionally ref, version and key, where a field needs every field before it (repoId, ref, version, key). An empty object is refused.
2414
+ * @export
2415
+ * @interface CiCacheDeleteRequest
2416
+ */
2417
+ export interface CiCacheDeleteRequest {
2418
+ /**
2419
+ * true clears the whole cache of the pool. Must be the only field.
2420
+ * @type {boolean}
2421
+ * @memberof CiCacheDeleteRequest
2422
+ */
2423
+ 'all'?: boolean;
2424
+ /**
2425
+ * GitHub repository id. A digit string is also accepted.
2426
+ * @type {number}
2427
+ * @memberof CiCacheDeleteRequest
2428
+ */
2429
+ 'repoId'?: number;
2430
+ /**
2431
+ * Git ref; starts with refs/, a valid git ref name without %.
2432
+ * @type {string}
2433
+ * @memberof CiCacheDeleteRequest
2434
+ */
2435
+ 'ref'?: string;
2436
+ /**
2437
+ *
2438
+ * @type {string}
2439
+ * @memberof CiCacheDeleteRequest
2440
+ */
2441
+ 'version'?: string;
2442
+ /**
2443
+ * The exact cache key. Deletes only that entry, not keys that start with it.
2444
+ * @type {string}
2445
+ * @memberof CiCacheDeleteRequest
2446
+ */
2447
+ 'key'?: string;
2448
+ }
2449
+ /**
2450
+ *
2451
+ * @export
2452
+ * @interface CiCacheDeleteResult
2453
+ */
2454
+ export interface CiCacheDeleteResult {
2455
+ /**
2456
+ *
2457
+ * @type {number}
2458
+ * @memberof CiCacheDeleteResult
2459
+ */
2460
+ 'deletedEntries': number;
2461
+ /**
2462
+ *
2463
+ * @type {number}
2464
+ * @memberof CiCacheDeleteResult
2465
+ */
2466
+ 'deletedBytes': number;
2467
+ /**
2468
+ * false when the delete stopped at its time limit (about 12 seconds), a storage call failed or timed out, or storage refused some objects. false means: send the same request again until it is true. If a call returns false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects.
2469
+ * @type {boolean}
2470
+ * @memberof CiCacheDeleteResult
2471
+ */
2472
+ 'complete': boolean;
2473
+ }
2474
+ /**
2475
+ *
2476
+ * @export
2477
+ * @interface CiCacheEntry
2478
+ */
2479
+ export interface CiCacheEntry {
2480
+ /**
2481
+ * GitHub repository id.
2482
+ * @type {number}
2483
+ * @memberof CiCacheEntry
2484
+ */
2485
+ 'repoId': number;
2486
+ /**
2487
+ * owner/name recorded for repoId, or null when none is recorded.
2488
+ * @type {string}
2489
+ * @memberof CiCacheEntry
2490
+ */
2491
+ 'repo': string | null;
2492
+ /**
2493
+ * The git ref that saved the entry. A pull request saves to refs/pull/<number>/merge.
2494
+ * @type {string}
2495
+ * @memberof CiCacheEntry
2496
+ */
2497
+ 'ref': string;
2498
+ /**
2499
+ * The actions/cache key.
2500
+ * @type {string}
2501
+ * @memberof CiCacheEntry
2502
+ */
2503
+ 'key': string;
2504
+ /**
2505
+ * The cache version (a hash of the paths and compression the job used).
2506
+ * @type {string}
2507
+ * @memberof CiCacheEntry
2508
+ */
2509
+ 'version': string;
2510
+ /**
2511
+ *
2512
+ * @type {number}
2513
+ * @memberof CiCacheEntry
2514
+ */
2515
+ 'sizeBytes': number;
2516
+ /**
2517
+ * When the entry was saved. Entries expire 14 days after they are saved.
2518
+ * @type {string}
2519
+ * @memberof CiCacheEntry
2520
+ */
2521
+ 'createdAt': string | null;
2522
+ }
2523
+ /**
2524
+ *
2525
+ * @export
2526
+ * @interface CiCacheList
2527
+ */
2528
+ export interface CiCacheList {
2529
+ /**
2530
+ * Size of every entry that matches the filter (partial when totalsComplete is false).
2531
+ * @type {number}
2532
+ * @memberof CiCacheList
2533
+ */
2534
+ 'totalBytes': number;
2535
+ /**
2536
+ * Number of entries that match the filter (partial when totalsComplete is false).
2537
+ * @type {number}
2538
+ * @memberof CiCacheList
2539
+ */
2540
+ 'entryCount': number;
2541
+ /**
2542
+ * false when the count stopped at its time limit (about 10 seconds) on a very large cache; totalBytes and entryCount then cover only the part counted.
2543
+ * @type {boolean}
2544
+ * @memberof CiCacheList
2545
+ */
2546
+ 'totalsComplete': boolean;
2547
+ /**
2548
+ *
2549
+ * @type {Array<CiCacheEntry>}
2550
+ * @memberof CiCacheList
2551
+ */
2552
+ 'entries': Array<CiCacheEntry>;
2553
+ /**
2554
+ * Opaque. Pass as cursor, with the same filter, for the next page; null on the last page.
2555
+ * @type {string}
2556
+ * @memberof CiCacheList
2557
+ */
2558
+ 'nextCursor': string | null;
2559
+ }
2560
+ /**
2561
+ *
2562
+ * @export
2563
+ * @interface CiCacheStats
2564
+ */
2565
+ export interface CiCacheStats {
2566
+ /**
2567
+ *
2568
+ * @type {number}
2569
+ * @memberof CiCacheStats
2570
+ */
2571
+ 'days': number;
2572
+ /**
2573
+ * Cache lookups that found an entry.
2574
+ * @type {number}
2575
+ * @memberof CiCacheStats
2576
+ */
2577
+ 'hits': number;
2578
+ /**
2579
+ * Cache lookups that found no entry.
2580
+ * @type {number}
2581
+ * @memberof CiCacheStats
2582
+ */
2583
+ 'misses': number;
2584
+ /**
2585
+ * Entries saved.
2586
+ * @type {number}
2587
+ * @memberof CiCacheStats
2588
+ */
2589
+ 'saves': number;
2590
+ /**
2591
+ * Bytes saved to the cache.
2592
+ * @type {number}
2593
+ * @memberof CiCacheStats
2594
+ */
2595
+ 'bytesIn': number;
2596
+ /**
2597
+ * Bytes restored from the cache.
2598
+ * @type {number}
2599
+ * @memberof CiCacheStats
2600
+ */
2601
+ 'bytesOut': number;
2602
+ /**
2603
+ * hits / (hits + misses); null when both are 0.
2604
+ * @type {number}
2605
+ * @memberof CiCacheStats
2606
+ */
2607
+ 'hitRate': number | null;
2608
+ }
2609
+ /**
2610
+ * The config of a ci-runner-pool resource. connection and alerts are set by Quant: they are ignored on input and kept on update.
2611
+ * @export
2612
+ * @interface CiRunnerPoolConfig
2613
+ */
2614
+ export interface CiRunnerPoolConfig {
2615
+ /**
2616
+ * Hard cap on concurrent jobs: small 2, medium 4, large 8. When the pool is full, jobs wait.
2617
+ * @type {string}
2618
+ * @memberof CiRunnerPoolConfig
2619
+ */
2620
+ 'tier': CiRunnerPoolConfigTierEnum;
2621
+ /**
2622
+ *
2623
+ * @type {Set<string>}
2624
+ * @memberof CiRunnerPoolConfig
2625
+ */
2626
+ 'architectures'?: Set<CiRunnerPoolConfigArchitecturesEnum>;
2627
+ /**
2628
+ *
2629
+ * @type {string}
2630
+ * @memberof CiRunnerPoolConfig
2631
+ */
2632
+ 'networkMode'?: CiRunnerPoolConfigNetworkModeEnum;
2633
+ /**
2634
+ * Domains allowed when networkMode is restricted. Wildcard only as a leading *. label.
2635
+ * @type {Array<string>}
2636
+ * @memberof CiRunnerPoolConfig
2637
+ */
2638
+ 'egressAllowlist'?: Array<string>;
2639
+ /**
2640
+ *
2641
+ * @type {number}
2642
+ * @memberof CiRunnerPoolConfig
2643
+ */
2644
+ 'idleTimeoutMinutes'?: number;
2645
+ /**
2646
+ *
2647
+ * @type {CiRunnerPoolConfigBusinessHoursWarm}
2648
+ * @memberof CiRunnerPoolConfig
2649
+ */
2650
+ 'businessHoursWarm'?: CiRunnerPoolConfigBusinessHoursWarm;
2651
+ /**
2652
+ *
2653
+ * @type {CiRunnerPoolConfigConnection}
2654
+ * @memberof CiRunnerPoolConfig
2655
+ */
2656
+ 'connection'?: CiRunnerPoolConfigConnection;
2657
+ /**
2658
+ * Where the pool\'s GitHub Actions build cache may live. au-only keeps cache data in Australia; if the pool\'s cache is unavailable, jobs run without a cache. allow-github lets jobs use GitHub\'s cache when the pool\'s cache is unavailable. When not set, a pool that accepts public repositories uses allow-github and every other pool uses au-only. A change applies to the next job each runner machine starts.
2659
+ * @type {string}
2660
+ * @memberof CiRunnerPoolConfig
2661
+ */
2662
+ 'cacheResidency'?: CiRunnerPoolConfigCacheResidencyEnum;
2663
+ /**
2664
+ *
2665
+ * @type {Array<CiRunnerPoolConfigAlertsInner>}
2666
+ * @memberof CiRunnerPoolConfig
2667
+ */
2668
+ 'alerts'?: Array<CiRunnerPoolConfigAlertsInner>;
2669
+ }
2670
+ export declare const CiRunnerPoolConfigTierEnum: {
2671
+ readonly Small: "small";
2672
+ readonly Medium: "medium";
2673
+ readonly Large: "large";
2674
+ };
2675
+ export type CiRunnerPoolConfigTierEnum = typeof CiRunnerPoolConfigTierEnum[keyof typeof CiRunnerPoolConfigTierEnum];
2676
+ export declare const CiRunnerPoolConfigArchitecturesEnum: {
2677
+ readonly Arm64: "arm64";
2678
+ readonly X64: "x64";
2679
+ };
2680
+ export type CiRunnerPoolConfigArchitecturesEnum = typeof CiRunnerPoolConfigArchitecturesEnum[keyof typeof CiRunnerPoolConfigArchitecturesEnum];
2681
+ export declare const CiRunnerPoolConfigNetworkModeEnum: {
2682
+ readonly Public: "public";
2683
+ readonly Restricted: "restricted";
2684
+ };
2685
+ export type CiRunnerPoolConfigNetworkModeEnum = typeof CiRunnerPoolConfigNetworkModeEnum[keyof typeof CiRunnerPoolConfigNetworkModeEnum];
2686
+ export declare const CiRunnerPoolConfigCacheResidencyEnum: {
2687
+ readonly AuOnly: "au-only";
2688
+ readonly AllowGithub: "allow-github";
2689
+ };
2690
+ export type CiRunnerPoolConfigCacheResidencyEnum = typeof CiRunnerPoolConfigCacheResidencyEnum[keyof typeof CiRunnerPoolConfigCacheResidencyEnum];
2691
+ /**
2692
+ *
2693
+ * @export
2694
+ * @interface CiRunnerPoolConfigAlertsInner
2695
+ */
2696
+ export interface CiRunnerPoolConfigAlertsInner {
2697
+ /**
2698
+ * pool_error: runner VMs failed to start, VMs reported themselves unhealthy, or a job never reached this pool\'s runners (detail says which). labels_unfit: a job asked for labels or an architecture this pool\'s runners do not have, so the pool did not take it.
2699
+ * @type {string}
2700
+ * @memberof CiRunnerPoolConfigAlertsInner
2701
+ */
2702
+ 'type'?: CiRunnerPoolConfigAlertsInnerTypeEnum;
2703
+ /**
2704
+ *
2705
+ * @type {string}
2706
+ * @memberof CiRunnerPoolConfigAlertsInner
2707
+ */
2708
+ 'since'?: string;
2709
+ /**
2710
+ *
2711
+ * @type {string}
2712
+ * @memberof CiRunnerPoolConfigAlertsInner
2713
+ */
2714
+ 'detail'?: string;
2715
+ }
2716
+ export declare const CiRunnerPoolConfigAlertsInnerTypeEnum: {
2717
+ readonly QueueWait: "queue_wait";
2718
+ readonly AtCapacity: "at_capacity";
2719
+ readonly PoolError: "pool_error";
2720
+ readonly LabelsUnfit: "labels_unfit";
2721
+ };
2722
+ export type CiRunnerPoolConfigAlertsInnerTypeEnum = typeof CiRunnerPoolConfigAlertsInnerTypeEnum[keyof typeof CiRunnerPoolConfigAlertsInnerTypeEnum];
2723
+ /**
2724
+ *
2725
+ * @export
2726
+ * @interface CiRunnerPoolConfigBusinessHoursWarm
2727
+ */
2728
+ export interface CiRunnerPoolConfigBusinessHoursWarm {
2729
+ /**
2730
+ *
2731
+ * @type {boolean}
2732
+ * @memberof CiRunnerPoolConfigBusinessHoursWarm
2733
+ */
2734
+ 'enabled'?: boolean;
2735
+ /**
2736
+ *
2737
+ * @type {string}
2738
+ * @memberof CiRunnerPoolConfigBusinessHoursWarm
2739
+ */
2740
+ 'timezone'?: string;
2741
+ /**
2742
+ * HH:MM
2743
+ * @type {string}
2744
+ * @memberof CiRunnerPoolConfigBusinessHoursWarm
2745
+ */
2746
+ 'start'?: string;
2747
+ /**
2748
+ * HH:MM
2749
+ * @type {string}
2750
+ * @memberof CiRunnerPoolConfigBusinessHoursWarm
2751
+ */
2752
+ 'end'?: string;
2753
+ }
2754
+ /**
2755
+ *
2756
+ * @export
2757
+ * @interface CiRunnerPoolConfigConnection
2758
+ */
2759
+ export interface CiRunnerPoolConfigConnection {
2760
+ /**
2761
+ *
2762
+ * @type {string}
2763
+ * @memberof CiRunnerPoolConfigConnection
2764
+ */
2765
+ 'provider'?: CiRunnerPoolConfigConnectionProviderEnum;
2766
+ /**
2767
+ *
2768
+ * @type {number}
2769
+ * @memberof CiRunnerPoolConfigConnection
2770
+ */
2771
+ 'installationId'?: number;
2772
+ /**
2773
+ *
2774
+ * @type {string}
2775
+ * @memberof CiRunnerPoolConfigConnection
2776
+ */
2777
+ 'githubOrg'?: string;
2778
+ /**
2779
+ * The GitHub App that owns the installation.
2780
+ * @type {number}
2781
+ * @memberof CiRunnerPoolConfigConnection
2782
+ */
2783
+ 'appId'?: number;
2784
+ /**
2785
+ *
2786
+ * @type {string}
2787
+ * @memberof CiRunnerPoolConfigConnection
2788
+ */
2789
+ 'status'?: CiRunnerPoolConfigConnectionStatusEnum;
2790
+ }
2791
+ export declare const CiRunnerPoolConfigConnectionProviderEnum: {
2792
+ readonly Github: "github";
2793
+ };
2794
+ export type CiRunnerPoolConfigConnectionProviderEnum = typeof CiRunnerPoolConfigConnectionProviderEnum[keyof typeof CiRunnerPoolConfigConnectionProviderEnum];
2795
+ export declare const CiRunnerPoolConfigConnectionStatusEnum: {
2796
+ readonly Connected: "connected";
2797
+ readonly Disconnected: "disconnected";
2798
+ };
2799
+ export type CiRunnerPoolConfigConnectionStatusEnum = typeof CiRunnerPoolConfigConnectionStatusEnum[keyof typeof CiRunnerPoolConfigConnectionStatusEnum];
2412
2800
  /**
2413
2801
  *
2414
2802
  * @export
@@ -2463,6 +2851,18 @@ export interface CiValue {
2463
2851
  * @memberof CiValue
2464
2852
  */
2465
2853
  'value'?: string;
2854
+ /**
2855
+ * Present on a repository value that jobs do not get. repo_identity_unproven: the value was saved before values were bound to repository IDs, and its repository was created after the value was last saved. Save the value again to fix this.
2856
+ * @type {string}
2857
+ * @memberof CiValue
2858
+ */
2859
+ 'withheldReason'?: string;
2860
+ /**
2861
+ * When the value was first withheld. Present with withheldReason.
2862
+ * @type {string}
2863
+ * @memberof CiValue
2864
+ */
2865
+ 'withheldAt'?: string;
2466
2866
  }
2467
2867
  export declare const CiValueKindEnum: {
2468
2868
  readonly Secret: "secret";
@@ -10783,7 +11183,7 @@ export interface OrgResource {
10783
11183
  */
10784
11184
  'scope'?: OrgResourceScopeEnum;
10785
11185
  /**
10786
- * Type-specific settings, such as dataStorageMaxGb for a cache
11186
+ * Type-specific settings: dataStorageMaxGb for a cache, and a CiRunnerPoolConfig for a CI runner pool.
10787
11187
  * @type {object}
10788
11188
  * @memberof OrgResource
10789
11189
  */
@@ -10794,6 +11194,12 @@ export interface OrgResource {
10794
11194
  * @memberof OrgResource
10795
11195
  */
10796
11196
  'physical'?: object;
11197
+ /**
11198
+ * CI runner pool only (absent on other types): the cache residency the pool runs with. It is config.cacheResidency when set; otherwise allow-github for a pool that accepts public repositories, and au-only for every other pool.
11199
+ * @type {string}
11200
+ * @memberof OrgResource
11201
+ */
11202
+ 'effectiveCacheResidency'?: OrgResourceEffectiveCacheResidencyEnum;
10797
11203
  /**
10798
11204
  *
10799
11205
  * @type {string}
@@ -10821,6 +11227,11 @@ export declare const OrgResourceScopeEnum: {
10821
11227
  readonly App: "app";
10822
11228
  };
10823
11229
  export type OrgResourceScopeEnum = typeof OrgResourceScopeEnum[keyof typeof OrgResourceScopeEnum];
11230
+ export declare const OrgResourceEffectiveCacheResidencyEnum: {
11231
+ readonly AuOnly: "au-only";
11232
+ readonly AllowGithub: "allow-github";
11233
+ };
11234
+ export type OrgResourceEffectiveCacheResidencyEnum = typeof OrgResourceEffectiveCacheResidencyEnum[keyof typeof OrgResourceEffectiveCacheResidencyEnum];
10824
11235
  /**
10825
11236
  *
10826
11237
  * @export
@@ -11415,6 +11826,32 @@ export interface PutApplicationMetadata400Response {
11415
11826
  */
11416
11827
  'errors'?: Array<string>;
11417
11828
  }
11829
+ /**
11830
+ *
11831
+ * @export
11832
+ * @interface PutCiValue502Response
11833
+ */
11834
+ export interface PutCiValue502Response {
11835
+ /**
11836
+ *
11837
+ * @type {string}
11838
+ * @memberof PutCiValue502Response
11839
+ */
11840
+ 'error'?: string;
11841
+ }
11842
+ /**
11843
+ *
11844
+ * @export
11845
+ * @interface PutCiValue503Response
11846
+ */
11847
+ export interface PutCiValue503Response {
11848
+ /**
11849
+ *
11850
+ * @type {string}
11851
+ * @memberof PutCiValue503Response
11852
+ */
11853
+ 'error'?: string;
11854
+ }
11418
11855
  /**
11419
11856
  *
11420
11857
  * @export
@@ -12702,19 +13139,6 @@ export interface UpdateAutoMode409Response {
12702
13139
  */
12703
13140
  'error': string;
12704
13141
  }
12705
- /**
12706
- *
12707
- * @export
12708
- * @interface UpdateContainer400Response
12709
- */
12710
- export interface UpdateContainer400Response {
12711
- /**
12712
- *
12713
- * @type {string}
12714
- * @memberof UpdateContainer400Response
12715
- */
12716
- 'error'?: string;
12717
- }
12718
13142
  /**
12719
13143
  *
12720
13144
  * @export
@@ -20876,6 +21300,12 @@ export interface V2Rule {
20876
21300
  * @memberof V2Rule
20877
21301
  */
20878
21302
  'traffic_source_is_not'?: Array<string>;
21303
+ /**
21304
+ *
21305
+ * @type {V2RuleSchedule}
21306
+ * @memberof V2Rule
21307
+ */
21308
+ 'schedule'?: V2RuleSchedule | null;
20879
21309
  /**
20880
21310
  * Country code
20881
21311
  * @type {string}
@@ -21045,6 +21475,12 @@ export interface V2RuleAuth {
21045
21475
  * @memberof V2RuleAuth
21046
21476
  */
21047
21477
  'traffic_source_is_not'?: Array<string>;
21478
+ /**
21479
+ *
21480
+ * @type {V2RuleSchedule}
21481
+ * @memberof V2RuleAuth
21482
+ */
21483
+ 'schedule'?: V2RuleSchedule;
21048
21484
  /**
21049
21485
  * Country code
21050
21486
  * @type {string}
@@ -21239,6 +21675,12 @@ export interface V2RuleAuthFunction {
21239
21675
  * @memberof V2RuleAuthFunction
21240
21676
  */
21241
21677
  'traffic_source_is_not'?: Array<string>;
21678
+ /**
21679
+ *
21680
+ * @type {V2RuleSchedule}
21681
+ * @memberof V2RuleAuthFunction
21682
+ */
21683
+ 'schedule'?: V2RuleSchedule;
21242
21684
  /**
21243
21685
  * Country code
21244
21686
  * @type {string}
@@ -21433,6 +21875,12 @@ export interface V2RuleAuthFunctionRequest {
21433
21875
  * @memberof V2RuleAuthFunctionRequest
21434
21876
  */
21435
21877
  'traffic_source_is_not'?: Array<V2RuleAuthFunctionRequestTrafficSourceIsNotEnum>;
21878
+ /**
21879
+ *
21880
+ * @type {V2RuleSchedule}
21881
+ * @memberof V2RuleAuthFunctionRequest
21882
+ */
21883
+ 'schedule'?: V2RuleSchedule | null;
21436
21884
  /**
21437
21885
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
21438
21886
  * @type {string}
@@ -21630,6 +22078,12 @@ export interface V2RuleAuthRequest {
21630
22078
  * @memberof V2RuleAuthRequest
21631
22079
  */
21632
22080
  'traffic_source_is_not'?: Array<V2RuleAuthRequestTrafficSourceIsNotEnum>;
22081
+ /**
22082
+ *
22083
+ * @type {V2RuleSchedule}
22084
+ * @memberof V2RuleAuthRequest
22085
+ */
22086
+ 'schedule'?: V2RuleSchedule;
21633
22087
  /**
21634
22088
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
21635
22089
  * @type {string}
@@ -21827,6 +22281,12 @@ export interface V2RuleBotChallenge {
21827
22281
  * @memberof V2RuleBotChallenge
21828
22282
  */
21829
22283
  'traffic_source_is_not'?: Array<string>;
22284
+ /**
22285
+ *
22286
+ * @type {V2RuleSchedule}
22287
+ * @memberof V2RuleBotChallenge
22288
+ */
22289
+ 'schedule'?: V2RuleSchedule;
21830
22290
  /**
21831
22291
  * Country code
21832
22292
  * @type {string}
@@ -22033,6 +22493,12 @@ export interface V2RuleBotChallengeRequest {
22033
22493
  * @memberof V2RuleBotChallengeRequest
22034
22494
  */
22035
22495
  'traffic_source_is_not'?: Array<V2RuleBotChallengeRequestTrafficSourceIsNotEnum>;
22496
+ /**
22497
+ *
22498
+ * @type {V2RuleSchedule}
22499
+ * @memberof V2RuleBotChallengeRequest
22500
+ */
22501
+ 'schedule'?: V2RuleSchedule;
22036
22502
  /**
22037
22503
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
22038
22504
  * @type {string}
@@ -22236,6 +22702,12 @@ export interface V2RuleContentFilter {
22236
22702
  * @memberof V2RuleContentFilter
22237
22703
  */
22238
22704
  'traffic_source_is_not'?: Array<string>;
22705
+ /**
22706
+ *
22707
+ * @type {V2RuleSchedule}
22708
+ * @memberof V2RuleContentFilter
22709
+ */
22710
+ 'schedule'?: V2RuleSchedule;
22239
22711
  /**
22240
22712
  * Country code
22241
22713
  * @type {string}
@@ -22430,6 +22902,12 @@ export interface V2RuleContentFilterRequest {
22430
22902
  * @memberof V2RuleContentFilterRequest
22431
22903
  */
22432
22904
  'traffic_source_is_not'?: Array<V2RuleContentFilterRequestTrafficSourceIsNotEnum>;
22905
+ /**
22906
+ *
22907
+ * @type {V2RuleSchedule}
22908
+ * @memberof V2RuleContentFilterRequest
22909
+ */
22910
+ 'schedule'?: V2RuleSchedule | null;
22433
22911
  /**
22434
22912
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
22435
22913
  * @type {string}
@@ -22621,6 +23099,12 @@ export interface V2RuleCustomResponse {
22621
23099
  * @memberof V2RuleCustomResponse
22622
23100
  */
22623
23101
  'traffic_source_is_not'?: Array<string>;
23102
+ /**
23103
+ *
23104
+ * @type {V2RuleSchedule}
23105
+ * @memberof V2RuleCustomResponse
23106
+ */
23107
+ 'schedule'?: V2RuleSchedule;
22624
23108
  /**
22625
23109
  * Country code
22626
23110
  * @type {string}
@@ -22821,6 +23305,12 @@ export interface V2RuleCustomResponseRequest {
22821
23305
  * @memberof V2RuleCustomResponseRequest
22822
23306
  */
22823
23307
  'traffic_source_is_not'?: Array<V2RuleCustomResponseRequestTrafficSourceIsNotEnum>;
23308
+ /**
23309
+ *
23310
+ * @type {V2RuleSchedule}
23311
+ * @memberof V2RuleCustomResponseRequest
23312
+ */
23313
+ 'schedule'?: V2RuleSchedule | null;
22824
23314
  /**
22825
23315
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
22826
23316
  * @type {string}
@@ -23030,6 +23520,12 @@ export interface V2RuleErrorPage {
23030
23520
  * @memberof V2RuleErrorPage
23031
23521
  */
23032
23522
  'traffic_source_is_not'?: Array<string>;
23523
+ /**
23524
+ *
23525
+ * @type {V2RuleSchedule}
23526
+ * @memberof V2RuleErrorPage
23527
+ */
23528
+ 'schedule'?: V2RuleSchedule;
23033
23529
  /**
23034
23530
  * Country code
23035
23531
  * @type {string}
@@ -23230,6 +23726,12 @@ export interface V2RuleErrorPageRequest {
23230
23726
  * @memberof V2RuleErrorPageRequest
23231
23727
  */
23232
23728
  'traffic_source_is_not'?: Array<V2RuleErrorPageRequestTrafficSourceIsNotEnum>;
23729
+ /**
23730
+ *
23731
+ * @type {V2RuleSchedule}
23732
+ * @memberof V2RuleErrorPageRequest
23733
+ */
23734
+ 'schedule'?: V2RuleSchedule;
23233
23735
  /**
23234
23736
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
23235
23737
  * @type {string}
@@ -23427,6 +23929,12 @@ export interface V2RuleFunction {
23427
23929
  * @memberof V2RuleFunction
23428
23930
  */
23429
23931
  'traffic_source_is_not'?: Array<string>;
23932
+ /**
23933
+ *
23934
+ * @type {V2RuleSchedule}
23935
+ * @memberof V2RuleFunction
23936
+ */
23937
+ 'schedule'?: V2RuleSchedule;
23430
23938
  /**
23431
23939
  * Country code
23432
23940
  * @type {string}
@@ -23621,6 +24129,12 @@ export interface V2RuleFunctionRequest {
23621
24129
  * @memberof V2RuleFunctionRequest
23622
24130
  */
23623
24131
  'traffic_source_is_not'?: Array<V2RuleFunctionRequestTrafficSourceIsNotEnum>;
24132
+ /**
24133
+ *
24134
+ * @type {V2RuleSchedule}
24135
+ * @memberof V2RuleFunctionRequest
24136
+ */
24137
+ 'schedule'?: V2RuleSchedule | null;
23624
24138
  /**
23625
24139
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
23626
24140
  * @type {string}
@@ -23812,6 +24326,12 @@ export interface V2RuleHeader {
23812
24326
  * @memberof V2RuleHeader
23813
24327
  */
23814
24328
  'traffic_source_is_not'?: Array<string>;
24329
+ /**
24330
+ *
24331
+ * @type {V2RuleSchedule}
24332
+ * @memberof V2RuleHeader
24333
+ */
24334
+ 'schedule'?: V2RuleSchedule;
23815
24335
  /**
23816
24336
  * Country code
23817
24337
  * @type {string}
@@ -24008,6 +24528,12 @@ export interface V2RuleHeaderRequest {
24008
24528
  * @memberof V2RuleHeaderRequest
24009
24529
  */
24010
24530
  'traffic_source_is_not'?: Array<V2RuleHeaderRequestTrafficSourceIsNotEnum>;
24531
+ /**
24532
+ *
24533
+ * @type {V2RuleSchedule}
24534
+ * @memberof V2RuleHeaderRequest
24535
+ */
24536
+ 'schedule'?: V2RuleSchedule;
24011
24537
  /**
24012
24538
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
24013
24539
  * @type {string}
@@ -24201,6 +24727,12 @@ export interface V2RuleProxy {
24201
24727
  * @memberof V2RuleProxy
24202
24728
  */
24203
24729
  'traffic_source_is_not'?: Array<string>;
24730
+ /**
24731
+ *
24732
+ * @type {V2RuleSchedule}
24733
+ * @memberof V2RuleProxy
24734
+ */
24735
+ 'schedule'?: V2RuleSchedule;
24204
24736
  /**
24205
24737
  * Country code
24206
24738
  * @type {string}
@@ -24620,6 +25152,12 @@ export interface V2RuleProxyRequest {
24620
25152
  * @memberof V2RuleProxyRequest
24621
25153
  */
24622
25154
  'traffic_source_is_not'?: Array<V2RuleProxyRequestTrafficSourceIsNotEnum>;
25155
+ /**
25156
+ *
25157
+ * @type {V2RuleSchedule}
25158
+ * @memberof V2RuleProxyRequest
25159
+ */
25160
+ 'schedule'?: V2RuleSchedule | null;
24623
25161
  /**
24624
25162
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
24625
25163
  * @type {string}
@@ -24963,6 +25501,12 @@ export interface V2RuleRedirect {
24963
25501
  * @memberof V2RuleRedirect
24964
25502
  */
24965
25503
  'traffic_source_is_not'?: Array<string>;
25504
+ /**
25505
+ *
25506
+ * @type {V2RuleSchedule}
25507
+ * @memberof V2RuleRedirect
25508
+ */
25509
+ 'schedule'?: V2RuleSchedule;
24966
25510
  /**
24967
25511
  * Country code
24968
25512
  * @type {string}
@@ -25163,6 +25707,12 @@ export interface V2RuleRedirectRequest {
25163
25707
  * @memberof V2RuleRedirectRequest
25164
25708
  */
25165
25709
  'traffic_source_is_not'?: Array<V2RuleRedirectRequestTrafficSourceIsNotEnum>;
25710
+ /**
25711
+ *
25712
+ * @type {V2RuleSchedule}
25713
+ * @memberof V2RuleRedirectRequest
25714
+ */
25715
+ 'schedule'?: V2RuleSchedule | null;
25166
25716
  /**
25167
25717
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
25168
25718
  * @type {string}
@@ -25366,6 +25916,12 @@ export interface V2RuleRequest {
25366
25916
  * @memberof V2RuleRequest
25367
25917
  */
25368
25918
  'traffic_source_is_not'?: Array<V2RuleRequestTrafficSourceIsNotEnum>;
25919
+ /**
25920
+ *
25921
+ * @type {V2RuleSchedule}
25922
+ * @memberof V2RuleRequest
25923
+ */
25924
+ 'schedule'?: V2RuleSchedule | null;
25369
25925
  /**
25370
25926
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
25371
25927
  * @type {string}
@@ -25407,6 +25963,96 @@ export declare const V2RuleRequestTrafficSourceIsNotEnum: {
25407
25963
  readonly Crawler: "crawler";
25408
25964
  };
25409
25965
  export type V2RuleRequestTrafficSourceIsNotEnum = typeof V2RuleRequestTrafficSourceIsNotEnum[keyof typeof V2RuleRequestTrafficSourceIsNotEnum];
25966
+ /**
25967
+ * Weekly windows and one-off ranges in local wall time for one IANA time zone. Start is inclusive, end is exclusive. A weekly window whose end is not later than its start crosses midnight. With no windows the rule always applies.
25968
+ * @export
25969
+ * @interface V2RuleSchedule
25970
+ */
25971
+ export interface V2RuleSchedule {
25972
+ /**
25973
+ * IANA time zone name, or UTC. Invalid values return 422.
25974
+ * @type {string}
25975
+ * @memberof V2RuleSchedule
25976
+ */
25977
+ 'timezone': string;
25978
+ /**
25979
+ * active_during: the rule applies only inside the windows. inactive_during: the rule applies only outside them.
25980
+ * @type {string}
25981
+ * @memberof V2RuleSchedule
25982
+ */
25983
+ 'mode': V2RuleScheduleModeEnum;
25984
+ /**
25985
+ * Weekly windows. Stored as an empty list when omitted.
25986
+ * @type {Array<V2RuleScheduleWeeklyInner>}
25987
+ * @memberof V2RuleSchedule
25988
+ */
25989
+ 'weekly'?: Array<V2RuleScheduleWeeklyInner>;
25990
+ /**
25991
+ * One-off ranges. Stored as an empty list when omitted.
25992
+ * @type {Array<V2RuleScheduleOnceInner>}
25993
+ * @memberof V2RuleSchedule
25994
+ */
25995
+ 'once'?: Array<V2RuleScheduleOnceInner>;
25996
+ }
25997
+ export declare const V2RuleScheduleModeEnum: {
25998
+ readonly ActiveDuring: "active_during";
25999
+ readonly InactiveDuring: "inactive_during";
26000
+ };
26001
+ export type V2RuleScheduleModeEnum = typeof V2RuleScheduleModeEnum[keyof typeof V2RuleScheduleModeEnum];
26002
+ /**
26003
+ *
26004
+ * @export
26005
+ * @interface V2RuleScheduleOnceInner
26006
+ */
26007
+ export interface V2RuleScheduleOnceInner {
26008
+ /**
26009
+ * Local date and time, YYYY-MM-DDTHH:MM, no offset.
26010
+ * @type {string}
26011
+ * @memberof V2RuleScheduleOnceInner
26012
+ */
26013
+ 'start': string;
26014
+ /**
26015
+ * Local date and time after start, YYYY-MM-DDTHH:MM, no offset.
26016
+ * @type {string}
26017
+ * @memberof V2RuleScheduleOnceInner
26018
+ */
26019
+ 'end': string;
26020
+ }
26021
+ /**
26022
+ *
26023
+ * @export
26024
+ * @interface V2RuleScheduleWeeklyInner
26025
+ */
26026
+ export interface V2RuleScheduleWeeklyInner {
26027
+ /**
26028
+ *
26029
+ * @type {Array<string>}
26030
+ * @memberof V2RuleScheduleWeeklyInner
26031
+ */
26032
+ 'days': Array<V2RuleScheduleWeeklyInnerDaysEnum>;
26033
+ /**
26034
+ * Local time HH:MM, 00:00 to 23:59.
26035
+ * @type {string}
26036
+ * @memberof V2RuleScheduleWeeklyInner
26037
+ */
26038
+ 'start': string;
26039
+ /**
26040
+ * Local time HH:MM, 00:00 to 24:00.
26041
+ * @type {string}
26042
+ * @memberof V2RuleScheduleWeeklyInner
26043
+ */
26044
+ 'end': string;
26045
+ }
26046
+ export declare const V2RuleScheduleWeeklyInnerDaysEnum: {
26047
+ readonly Mon: "mon";
26048
+ readonly Tue: "tue";
26049
+ readonly Wed: "wed";
26050
+ readonly Thu: "thu";
26051
+ readonly Fri: "fri";
26052
+ readonly Sat: "sat";
26053
+ readonly Sun: "sun";
26054
+ };
26055
+ export type V2RuleScheduleWeeklyInnerDaysEnum = typeof V2RuleScheduleWeeklyInnerDaysEnum[keyof typeof V2RuleScheduleWeeklyInnerDaysEnum];
25410
26056
  /**
25411
26057
  *
25412
26058
  * @export
@@ -25551,6 +26197,12 @@ export interface V2RuleServeStatic {
25551
26197
  * @memberof V2RuleServeStatic
25552
26198
  */
25553
26199
  'traffic_source_is_not'?: Array<string>;
26200
+ /**
26201
+ *
26202
+ * @type {V2RuleSchedule}
26203
+ * @memberof V2RuleServeStatic
26204
+ */
26205
+ 'schedule'?: V2RuleSchedule;
25554
26206
  /**
25555
26207
  * Country code
25556
26208
  * @type {string}
@@ -25745,6 +26397,12 @@ export interface V2RuleServeStaticRequest {
25745
26397
  * @memberof V2RuleServeStaticRequest
25746
26398
  */
25747
26399
  'traffic_source_is_not'?: Array<V2RuleServeStaticRequestTrafficSourceIsNotEnum>;
26400
+ /**
26401
+ *
26402
+ * @type {V2RuleSchedule}
26403
+ * @memberof V2RuleServeStaticRequest
26404
+ */
26405
+ 'schedule'?: V2RuleSchedule;
25748
26406
  /**
25749
26407
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
25750
26408
  * @type {string}
@@ -39167,6 +39825,16 @@ export declare const ResourcesApiAxiosParamCreator: (configuration?: Configurati
39167
39825
  * @throws {RequiredError}
39168
39826
  */
39169
39827
  createOrgResource: (organisation: string, createOrgResourceRequest: CreateOrgResourceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39828
+ /**
39829
+ * Deletes the part of the pool\'s build cache that the body names: one entry (repoId, ref, version and key), one version of a ref (repoId, ref, version), one ref (repoId, ref), one repository (repoId) or, with exactly {\"all\": true}, the whole cache. A missing or empty body is refused. Only the named scope is deleted; a delete is permanent, and a later job saves a new entry. A large delete stops after about 12 seconds and returns complete false with what it deleted so far; send the same request again until complete is true. complete false means: send the same request again. If a call returns complete false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects. After a 502 the delete may still be running on the platform; the request is idempotent, so a client can send the same request again.
39830
+ * @summary Delete build cache entries of a CI runner pool
39831
+ * @param {string} organisation The organisation ID
39832
+ * @param {string} resource The CI runner pool resource ID
39833
+ * @param {CiCacheDeleteRequest} ciCacheDeleteRequest
39834
+ * @param {*} [options] Override http request option.
39835
+ * @throws {RequiredError}
39836
+ */
39837
+ deleteCiRunnerPoolCache: (organisation: string, resource: string, ciCacheDeleteRequest: CiCacheDeleteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39170
39838
  /**
39171
39839
  * Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
39172
39840
  * @summary Delete a shared resource
@@ -39188,6 +39856,16 @@ export declare const ResourcesApiAxiosParamCreator: (configuration?: Configurati
39188
39856
  * @throws {RequiredError}
39189
39857
  */
39190
39858
  detachOrgResource: (organisation: string, resource: string, application: string, environment: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39859
+ /**
39860
+ * Sums of the pool\'s build cache hits, misses, saves and bytes over the last days days. hitRate is hits / (hits + misses), or null when both are 0.
39861
+ * @summary Get build cache statistics of a CI runner pool
39862
+ * @param {string} organisation The organisation ID
39863
+ * @param {string} resource The CI runner pool resource ID
39864
+ * @param {number} [days]
39865
+ * @param {*} [options] Override http request option.
39866
+ * @throws {RequiredError}
39867
+ */
39868
+ getCiRunnerPoolCacheStats: (organisation: string, resource: string, days?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39191
39869
  /**
39192
39870
  *
39193
39871
  * @summary Get a shared resource and its attachments
@@ -39206,6 +39884,18 @@ export declare const ResourcesApiAxiosParamCreator: (configuration?: Configurati
39206
39884
  * @throws {RequiredError}
39207
39885
  */
39208
39886
  getOrgResourceCredentials: (organisation: string, resource: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39887
+ /**
39888
+ * Lists the GitHub Actions cache entries of a CI runner pool, in storage order (repository id, then ref, version and key). totalBytes and entryCount cover every entry that matches the filter, not only this page; on a very large cache the count stops after about 10 seconds and totalsComplete is false. A page holds at most 500 entries; pass nextCursor as cursor, with the same filter, until it is null. repo is null when no repository name is recorded.
39889
+ * @summary List the build cache entries of a CI runner pool
39890
+ * @param {string} organisation The organisation ID
39891
+ * @param {string} resource The CI runner pool resource ID
39892
+ * @param {number} [repoId] Only the entries of this GitHub repository id.
39893
+ * @param {string} [ref] Only the entries saved by this git ref. Needs repoId. Must start with refs/ and be a valid git ref name without %.
39894
+ * @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
39895
+ * @param {*} [options] Override http request option.
39896
+ * @throws {RequiredError}
39897
+ */
39898
+ listCiRunnerPoolCache: (organisation: string, resource: string, repoId?: number, ref?: string, cursor?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39209
39899
  /**
39210
39900
  *
39211
39901
  * @summary List an organisation\'s shared resources
@@ -39249,6 +39939,16 @@ export declare const ResourcesApiFp: (configuration?: Configuration) => {
39249
39939
  * @throws {RequiredError}
39250
39940
  */
39251
39941
  createOrgResource(organisation: string, createOrgResourceRequest: CreateOrgResourceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgResource>>;
39942
+ /**
39943
+ * Deletes the part of the pool\'s build cache that the body names: one entry (repoId, ref, version and key), one version of a ref (repoId, ref, version), one ref (repoId, ref), one repository (repoId) or, with exactly {\"all\": true}, the whole cache. A missing or empty body is refused. Only the named scope is deleted; a delete is permanent, and a later job saves a new entry. A large delete stops after about 12 seconds and returns complete false with what it deleted so far; send the same request again until complete is true. complete false means: send the same request again. If a call returns complete false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects. After a 502 the delete may still be running on the platform; the request is idempotent, so a client can send the same request again.
39944
+ * @summary Delete build cache entries of a CI runner pool
39945
+ * @param {string} organisation The organisation ID
39946
+ * @param {string} resource The CI runner pool resource ID
39947
+ * @param {CiCacheDeleteRequest} ciCacheDeleteRequest
39948
+ * @param {*} [options] Override http request option.
39949
+ * @throws {RequiredError}
39950
+ */
39951
+ deleteCiRunnerPoolCache(organisation: string, resource: string, ciCacheDeleteRequest: CiCacheDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CiCacheDeleteResult>>;
39252
39952
  /**
39253
39953
  * Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
39254
39954
  * @summary Delete a shared resource
@@ -39270,6 +39970,16 @@ export declare const ResourcesApiFp: (configuration?: Configuration) => {
39270
39970
  * @throws {RequiredError}
39271
39971
  */
39272
39972
  detachOrgResource(organisation: string, resource: string, application: string, environment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
39973
+ /**
39974
+ * Sums of the pool\'s build cache hits, misses, saves and bytes over the last days days. hitRate is hits / (hits + misses), or null when both are 0.
39975
+ * @summary Get build cache statistics of a CI runner pool
39976
+ * @param {string} organisation The organisation ID
39977
+ * @param {string} resource The CI runner pool resource ID
39978
+ * @param {number} [days]
39979
+ * @param {*} [options] Override http request option.
39980
+ * @throws {RequiredError}
39981
+ */
39982
+ getCiRunnerPoolCacheStats(organisation: string, resource: string, days?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CiCacheStats>>;
39273
39983
  /**
39274
39984
  *
39275
39985
  * @summary Get a shared resource and its attachments
@@ -39288,6 +39998,18 @@ export declare const ResourcesApiFp: (configuration?: Configuration) => {
39288
39998
  * @throws {RequiredError}
39289
39999
  */
39290
40000
  getOrgResourceCredentials(organisation: string, resource: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrgResourceCredentials200Response>>;
40001
+ /**
40002
+ * Lists the GitHub Actions cache entries of a CI runner pool, in storage order (repository id, then ref, version and key). totalBytes and entryCount cover every entry that matches the filter, not only this page; on a very large cache the count stops after about 10 seconds and totalsComplete is false. A page holds at most 500 entries; pass nextCursor as cursor, with the same filter, until it is null. repo is null when no repository name is recorded.
40003
+ * @summary List the build cache entries of a CI runner pool
40004
+ * @param {string} organisation The organisation ID
40005
+ * @param {string} resource The CI runner pool resource ID
40006
+ * @param {number} [repoId] Only the entries of this GitHub repository id.
40007
+ * @param {string} [ref] Only the entries saved by this git ref. Needs repoId. Must start with refs/ and be a valid git ref name without %.
40008
+ * @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
40009
+ * @param {*} [options] Override http request option.
40010
+ * @throws {RequiredError}
40011
+ */
40012
+ listCiRunnerPoolCache(organisation: string, resource: string, repoId?: number, ref?: string, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CiCacheList>>;
39291
40013
  /**
39292
40014
  *
39293
40015
  * @summary List an organisation\'s shared resources
@@ -39331,6 +40053,16 @@ export declare const ResourcesApiFactory: (configuration?: Configuration, basePa
39331
40053
  * @throws {RequiredError}
39332
40054
  */
39333
40055
  createOrgResource(organisation: string, createOrgResourceRequest: CreateOrgResourceRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgResource>;
40056
+ /**
40057
+ * Deletes the part of the pool\'s build cache that the body names: one entry (repoId, ref, version and key), one version of a ref (repoId, ref, version), one ref (repoId, ref), one repository (repoId) or, with exactly {\"all\": true}, the whole cache. A missing or empty body is refused. Only the named scope is deleted; a delete is permanent, and a later job saves a new entry. A large delete stops after about 12 seconds and returns complete false with what it deleted so far; send the same request again until complete is true. complete false means: send the same request again. If a call returns complete false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects. After a 502 the delete may still be running on the platform; the request is idempotent, so a client can send the same request again.
40058
+ * @summary Delete build cache entries of a CI runner pool
40059
+ * @param {string} organisation The organisation ID
40060
+ * @param {string} resource The CI runner pool resource ID
40061
+ * @param {CiCacheDeleteRequest} ciCacheDeleteRequest
40062
+ * @param {*} [options] Override http request option.
40063
+ * @throws {RequiredError}
40064
+ */
40065
+ deleteCiRunnerPoolCache(organisation: string, resource: string, ciCacheDeleteRequest: CiCacheDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CiCacheDeleteResult>;
39334
40066
  /**
39335
40067
  * Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
39336
40068
  * @summary Delete a shared resource
@@ -39352,6 +40084,16 @@ export declare const ResourcesApiFactory: (configuration?: Configuration, basePa
39352
40084
  * @throws {RequiredError}
39353
40085
  */
39354
40086
  detachOrgResource(organisation: string, resource: string, application: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
40087
+ /**
40088
+ * Sums of the pool\'s build cache hits, misses, saves and bytes over the last days days. hitRate is hits / (hits + misses), or null when both are 0.
40089
+ * @summary Get build cache statistics of a CI runner pool
40090
+ * @param {string} organisation The organisation ID
40091
+ * @param {string} resource The CI runner pool resource ID
40092
+ * @param {number} [days]
40093
+ * @param {*} [options] Override http request option.
40094
+ * @throws {RequiredError}
40095
+ */
40096
+ getCiRunnerPoolCacheStats(organisation: string, resource: string, days?: number, options?: RawAxiosRequestConfig): AxiosPromise<CiCacheStats>;
39355
40097
  /**
39356
40098
  *
39357
40099
  * @summary Get a shared resource and its attachments
@@ -39370,6 +40112,18 @@ export declare const ResourcesApiFactory: (configuration?: Configuration, basePa
39370
40112
  * @throws {RequiredError}
39371
40113
  */
39372
40114
  getOrgResourceCredentials(organisation: string, resource: string, options?: RawAxiosRequestConfig): AxiosPromise<GetOrgResourceCredentials200Response>;
40115
+ /**
40116
+ * Lists the GitHub Actions cache entries of a CI runner pool, in storage order (repository id, then ref, version and key). totalBytes and entryCount cover every entry that matches the filter, not only this page; on a very large cache the count stops after about 10 seconds and totalsComplete is false. A page holds at most 500 entries; pass nextCursor as cursor, with the same filter, until it is null. repo is null when no repository name is recorded.
40117
+ * @summary List the build cache entries of a CI runner pool
40118
+ * @param {string} organisation The organisation ID
40119
+ * @param {string} resource The CI runner pool resource ID
40120
+ * @param {number} [repoId] Only the entries of this GitHub repository id.
40121
+ * @param {string} [ref] Only the entries saved by this git ref. Needs repoId. Must start with refs/ and be a valid git ref name without %.
40122
+ * @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
40123
+ * @param {*} [options] Override http request option.
40124
+ * @throws {RequiredError}
40125
+ */
40126
+ listCiRunnerPoolCache(organisation: string, resource: string, repoId?: number, ref?: string, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise<CiCacheList>;
39373
40127
  /**
39374
40128
  *
39375
40129
  * @summary List an organisation\'s shared resources
@@ -39417,6 +40171,17 @@ export declare class ResourcesApi extends BaseAPI {
39417
40171
  * @memberof ResourcesApi
39418
40172
  */
39419
40173
  createOrgResource(organisation: string, createOrgResourceRequest: CreateOrgResourceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrgResource, any, {}, any>>;
40174
+ /**
40175
+ * Deletes the part of the pool\'s build cache that the body names: one entry (repoId, ref, version and key), one version of a ref (repoId, ref, version), one ref (repoId, ref), one repository (repoId) or, with exactly {\"all\": true}, the whole cache. A missing or empty body is refused. Only the named scope is deleted; a delete is permanent, and a later job saves a new entry. A large delete stops after about 12 seconds and returns complete false with what it deleted so far; send the same request again until complete is true. complete false means: send the same request again. If a call returns complete false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects. After a 502 the delete may still be running on the platform; the request is idempotent, so a client can send the same request again.
40176
+ * @summary Delete build cache entries of a CI runner pool
40177
+ * @param {string} organisation The organisation ID
40178
+ * @param {string} resource The CI runner pool resource ID
40179
+ * @param {CiCacheDeleteRequest} ciCacheDeleteRequest
40180
+ * @param {*} [options] Override http request option.
40181
+ * @throws {RequiredError}
40182
+ * @memberof ResourcesApi
40183
+ */
40184
+ deleteCiRunnerPoolCache(organisation: string, resource: string, ciCacheDeleteRequest: CiCacheDeleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CiCacheDeleteResult, any, {}, any>>;
39420
40185
  /**
39421
40186
  * Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
39422
40187
  * @summary Delete a shared resource
@@ -39440,6 +40205,17 @@ export declare class ResourcesApi extends BaseAPI {
39440
40205
  * @memberof ResourcesApi
39441
40206
  */
39442
40207
  detachOrgResource(organisation: string, resource: string, application: string, environment: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
40208
+ /**
40209
+ * Sums of the pool\'s build cache hits, misses, saves and bytes over the last days days. hitRate is hits / (hits + misses), or null when both are 0.
40210
+ * @summary Get build cache statistics of a CI runner pool
40211
+ * @param {string} organisation The organisation ID
40212
+ * @param {string} resource The CI runner pool resource ID
40213
+ * @param {number} [days]
40214
+ * @param {*} [options] Override http request option.
40215
+ * @throws {RequiredError}
40216
+ * @memberof ResourcesApi
40217
+ */
40218
+ getCiRunnerPoolCacheStats(organisation: string, resource: string, days?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CiCacheStats, any, {}, any>>;
39443
40219
  /**
39444
40220
  *
39445
40221
  * @summary Get a shared resource and its attachments
@@ -39460,6 +40236,19 @@ export declare class ResourcesApi extends BaseAPI {
39460
40236
  * @memberof ResourcesApi
39461
40237
  */
39462
40238
  getOrgResourceCredentials(organisation: string, resource: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetOrgResourceCredentials200Response, any, {}, any>>;
40239
+ /**
40240
+ * Lists the GitHub Actions cache entries of a CI runner pool, in storage order (repository id, then ref, version and key). totalBytes and entryCount cover every entry that matches the filter, not only this page; on a very large cache the count stops after about 10 seconds and totalsComplete is false. A page holds at most 500 entries; pass nextCursor as cursor, with the same filter, until it is null. repo is null when no repository name is recorded.
40241
+ * @summary List the build cache entries of a CI runner pool
40242
+ * @param {string} organisation The organisation ID
40243
+ * @param {string} resource The CI runner pool resource ID
40244
+ * @param {number} [repoId] Only the entries of this GitHub repository id.
40245
+ * @param {string} [ref] Only the entries saved by this git ref. Needs repoId. Must start with refs/ and be a valid git ref name without %.
40246
+ * @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
40247
+ * @param {*} [options] Override http request option.
40248
+ * @throws {RequiredError}
40249
+ * @memberof ResourcesApi
40250
+ */
40251
+ listCiRunnerPoolCache(organisation: string, resource: string, repoId?: number, ref?: string, cursor?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CiCacheList, any, {}, any>>;
39463
40252
  /**
39464
40253
  *
39465
40254
  * @summary List an organisation\'s shared resources