@quantcdn/quant-client 4.36.0 → 4.39.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/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * QuantCDN API
5
5
  * 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.
6
6
  *
7
- * The version of the OpenAPI document: 4.36.0
7
+ * The version of the OpenAPI document: 4.39.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2479,6 +2479,408 @@ export interface ChatWithAIAgentRequest {
2479
2479
  */
2480
2480
  'maxToolIterations'?: number;
2481
2481
  }
2482
+ /**
2483
+ * 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.
2484
+ * @export
2485
+ * @interface CiCacheDeleteRequest
2486
+ */
2487
+ export interface CiCacheDeleteRequest {
2488
+ /**
2489
+ * true clears the whole cache of the pool. Must be the only field.
2490
+ * @type {boolean}
2491
+ * @memberof CiCacheDeleteRequest
2492
+ */
2493
+ 'all'?: boolean;
2494
+ /**
2495
+ * GitHub repository id. A digit string is also accepted.
2496
+ * @type {number}
2497
+ * @memberof CiCacheDeleteRequest
2498
+ */
2499
+ 'repoId'?: number;
2500
+ /**
2501
+ * Git ref; starts with refs/, a valid git ref name without %.
2502
+ * @type {string}
2503
+ * @memberof CiCacheDeleteRequest
2504
+ */
2505
+ 'ref'?: string;
2506
+ /**
2507
+ *
2508
+ * @type {string}
2509
+ * @memberof CiCacheDeleteRequest
2510
+ */
2511
+ 'version'?: string;
2512
+ /**
2513
+ * The exact cache key. Deletes only that entry, not keys that start with it.
2514
+ * @type {string}
2515
+ * @memberof CiCacheDeleteRequest
2516
+ */
2517
+ 'key'?: string;
2518
+ }
2519
+ /**
2520
+ *
2521
+ * @export
2522
+ * @interface CiCacheDeleteResult
2523
+ */
2524
+ export interface CiCacheDeleteResult {
2525
+ /**
2526
+ *
2527
+ * @type {number}
2528
+ * @memberof CiCacheDeleteResult
2529
+ */
2530
+ 'deletedEntries': number;
2531
+ /**
2532
+ *
2533
+ * @type {number}
2534
+ * @memberof CiCacheDeleteResult
2535
+ */
2536
+ 'deletedBytes': number;
2537
+ /**
2538
+ * 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.
2539
+ * @type {boolean}
2540
+ * @memberof CiCacheDeleteResult
2541
+ */
2542
+ 'complete': boolean;
2543
+ }
2544
+ /**
2545
+ *
2546
+ * @export
2547
+ * @interface CiCacheEntry
2548
+ */
2549
+ export interface CiCacheEntry {
2550
+ /**
2551
+ * GitHub repository id.
2552
+ * @type {number}
2553
+ * @memberof CiCacheEntry
2554
+ */
2555
+ 'repoId': number;
2556
+ /**
2557
+ * owner/name recorded for repoId, or null when none is recorded.
2558
+ * @type {string}
2559
+ * @memberof CiCacheEntry
2560
+ */
2561
+ 'repo': string | null;
2562
+ /**
2563
+ * The git ref that saved the entry. A pull request saves to refs/pull/<number>/merge.
2564
+ * @type {string}
2565
+ * @memberof CiCacheEntry
2566
+ */
2567
+ 'ref': string;
2568
+ /**
2569
+ * The actions/cache key.
2570
+ * @type {string}
2571
+ * @memberof CiCacheEntry
2572
+ */
2573
+ 'key': string;
2574
+ /**
2575
+ * The cache version (a hash of the paths and compression the job used).
2576
+ * @type {string}
2577
+ * @memberof CiCacheEntry
2578
+ */
2579
+ 'version': string;
2580
+ /**
2581
+ *
2582
+ * @type {number}
2583
+ * @memberof CiCacheEntry
2584
+ */
2585
+ 'sizeBytes': number;
2586
+ /**
2587
+ * When the entry was saved. Entries expire 14 days after they are saved.
2588
+ * @type {string}
2589
+ * @memberof CiCacheEntry
2590
+ */
2591
+ 'createdAt': string | null;
2592
+ }
2593
+ /**
2594
+ *
2595
+ * @export
2596
+ * @interface CiCacheList
2597
+ */
2598
+ export interface CiCacheList {
2599
+ /**
2600
+ * Size of every entry that matches the filter (partial when totalsComplete is false).
2601
+ * @type {number}
2602
+ * @memberof CiCacheList
2603
+ */
2604
+ 'totalBytes': number;
2605
+ /**
2606
+ * Number of entries that match the filter (partial when totalsComplete is false).
2607
+ * @type {number}
2608
+ * @memberof CiCacheList
2609
+ */
2610
+ 'entryCount': number;
2611
+ /**
2612
+ * 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.
2613
+ * @type {boolean}
2614
+ * @memberof CiCacheList
2615
+ */
2616
+ 'totalsComplete': boolean;
2617
+ /**
2618
+ *
2619
+ * @type {Array<CiCacheEntry>}
2620
+ * @memberof CiCacheList
2621
+ */
2622
+ 'entries': Array<CiCacheEntry>;
2623
+ /**
2624
+ * Opaque. Pass as cursor, with the same filter, for the next page; null on the last page.
2625
+ * @type {string}
2626
+ * @memberof CiCacheList
2627
+ */
2628
+ 'nextCursor': string | null;
2629
+ }
2630
+ /**
2631
+ *
2632
+ * @export
2633
+ * @interface CiCacheStats
2634
+ */
2635
+ export interface CiCacheStats {
2636
+ /**
2637
+ *
2638
+ * @type {number}
2639
+ * @memberof CiCacheStats
2640
+ */
2641
+ 'days': number;
2642
+ /**
2643
+ * Cache lookups that found an entry.
2644
+ * @type {number}
2645
+ * @memberof CiCacheStats
2646
+ */
2647
+ 'hits': number;
2648
+ /**
2649
+ * Cache lookups that found no entry.
2650
+ * @type {number}
2651
+ * @memberof CiCacheStats
2652
+ */
2653
+ 'misses': number;
2654
+ /**
2655
+ * Entries saved.
2656
+ * @type {number}
2657
+ * @memberof CiCacheStats
2658
+ */
2659
+ 'saves': number;
2660
+ /**
2661
+ * Bytes saved to the cache.
2662
+ * @type {number}
2663
+ * @memberof CiCacheStats
2664
+ */
2665
+ 'bytesIn': number;
2666
+ /**
2667
+ * Bytes restored from the cache.
2668
+ * @type {number}
2669
+ * @memberof CiCacheStats
2670
+ */
2671
+ 'bytesOut': number;
2672
+ /**
2673
+ * hits / (hits + misses); null when both are 0.
2674
+ * @type {number}
2675
+ * @memberof CiCacheStats
2676
+ */
2677
+ 'hitRate': number | null;
2678
+ }
2679
+ /**
2680
+ * The config of a ci-runner-pool resource. connection and alerts are set by Quant: they are ignored on input and kept on update.
2681
+ * @export
2682
+ * @interface CiRunnerPoolConfig
2683
+ */
2684
+ export interface CiRunnerPoolConfig {
2685
+ /**
2686
+ * Hard cap on concurrent jobs: small 2, medium 4, large 8. When the pool is full, jobs wait.
2687
+ * @type {string}
2688
+ * @memberof CiRunnerPoolConfig
2689
+ */
2690
+ 'tier': CiRunnerPoolConfigTierEnum;
2691
+ /**
2692
+ *
2693
+ * @type {Set<string>}
2694
+ * @memberof CiRunnerPoolConfig
2695
+ */
2696
+ 'architectures'?: Set<CiRunnerPoolConfigArchitecturesEnum>;
2697
+ /**
2698
+ *
2699
+ * @type {string}
2700
+ * @memberof CiRunnerPoolConfig
2701
+ */
2702
+ 'networkMode'?: CiRunnerPoolConfigNetworkModeEnum;
2703
+ /**
2704
+ * Domains allowed when networkMode is restricted. Wildcard only as a leading *. label.
2705
+ * @type {Array<string>}
2706
+ * @memberof CiRunnerPoolConfig
2707
+ */
2708
+ 'egressAllowlist'?: Array<string>;
2709
+ /**
2710
+ * A VM stops when the pool has not needed it (on that architecture) for this many minutes, also while other VMs of the pool run jobs. A stopped VM starts again from the warm pool in about 20 s. The default was 15 before 2026-11-30; pools keep the value they have.
2711
+ * @type {number}
2712
+ * @memberof CiRunnerPoolConfig
2713
+ */
2714
+ 'idleTimeoutMinutes'?: number;
2715
+ /**
2716
+ *
2717
+ * @type {CiRunnerPoolConfigBusinessHoursWarm}
2718
+ * @memberof CiRunnerPoolConfig
2719
+ */
2720
+ 'businessHoursWarm'?: CiRunnerPoolConfigBusinessHoursWarm;
2721
+ /**
2722
+ *
2723
+ * @type {CiRunnerPoolConfigConnection}
2724
+ * @memberof CiRunnerPoolConfig
2725
+ */
2726
+ 'connection'?: CiRunnerPoolConfigConnection;
2727
+ /**
2728
+ * 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.
2729
+ * @type {string}
2730
+ * @memberof CiRunnerPoolConfig
2731
+ */
2732
+ 'cacheResidency'?: CiRunnerPoolConfigCacheResidencyEnum;
2733
+ /**
2734
+ *
2735
+ * @type {Array<CiRunnerPoolConfigAlertsInner>}
2736
+ * @memberof CiRunnerPoolConfig
2737
+ */
2738
+ 'alerts'?: Array<CiRunnerPoolConfigAlertsInner>;
2739
+ }
2740
+
2741
+ export const CiRunnerPoolConfigTierEnum = {
2742
+ Small: 'small',
2743
+ Medium: 'medium',
2744
+ Large: 'large'
2745
+ } as const;
2746
+
2747
+ export type CiRunnerPoolConfigTierEnum = typeof CiRunnerPoolConfigTierEnum[keyof typeof CiRunnerPoolConfigTierEnum];
2748
+ export const CiRunnerPoolConfigArchitecturesEnum = {
2749
+ Arm64: 'arm64',
2750
+ X64: 'x64'
2751
+ } as const;
2752
+
2753
+ export type CiRunnerPoolConfigArchitecturesEnum = typeof CiRunnerPoolConfigArchitecturesEnum[keyof typeof CiRunnerPoolConfigArchitecturesEnum];
2754
+ export const CiRunnerPoolConfigNetworkModeEnum = {
2755
+ Public: 'public',
2756
+ Restricted: 'restricted'
2757
+ } as const;
2758
+
2759
+ export type CiRunnerPoolConfigNetworkModeEnum = typeof CiRunnerPoolConfigNetworkModeEnum[keyof typeof CiRunnerPoolConfigNetworkModeEnum];
2760
+ export const CiRunnerPoolConfigCacheResidencyEnum = {
2761
+ AuOnly: 'au-only',
2762
+ AllowGithub: 'allow-github'
2763
+ } as const;
2764
+
2765
+ export type CiRunnerPoolConfigCacheResidencyEnum = typeof CiRunnerPoolConfigCacheResidencyEnum[keyof typeof CiRunnerPoolConfigCacheResidencyEnum];
2766
+
2767
+ /**
2768
+ *
2769
+ * @export
2770
+ * @interface CiRunnerPoolConfigAlertsInner
2771
+ */
2772
+ export interface CiRunnerPoolConfigAlertsInner {
2773
+ /**
2774
+ * 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. vm_hours_included: the pool used 80% (then 100%) of its included VM-hours this month; jobs keep running and VM-hours over the allowance are billed.
2775
+ * @type {string}
2776
+ * @memberof CiRunnerPoolConfigAlertsInner
2777
+ */
2778
+ 'type'?: CiRunnerPoolConfigAlertsInnerTypeEnum;
2779
+ /**
2780
+ *
2781
+ * @type {string}
2782
+ * @memberof CiRunnerPoolConfigAlertsInner
2783
+ */
2784
+ 'since'?: string;
2785
+ /**
2786
+ *
2787
+ * @type {string}
2788
+ * @memberof CiRunnerPoolConfigAlertsInner
2789
+ */
2790
+ 'detail'?: string;
2791
+ }
2792
+
2793
+ export const CiRunnerPoolConfigAlertsInnerTypeEnum = {
2794
+ QueueWait: 'queue_wait',
2795
+ AtCapacity: 'at_capacity',
2796
+ PoolError: 'pool_error',
2797
+ LabelsUnfit: 'labels_unfit',
2798
+ VmHoursIncluded: 'vm_hours_included'
2799
+ } as const;
2800
+
2801
+ export type CiRunnerPoolConfigAlertsInnerTypeEnum = typeof CiRunnerPoolConfigAlertsInnerTypeEnum[keyof typeof CiRunnerPoolConfigAlertsInnerTypeEnum];
2802
+
2803
+ /**
2804
+ *
2805
+ * @export
2806
+ * @interface CiRunnerPoolConfigBusinessHoursWarm
2807
+ */
2808
+ export interface CiRunnerPoolConfigBusinessHoursWarm {
2809
+ /**
2810
+ *
2811
+ * @type {boolean}
2812
+ * @memberof CiRunnerPoolConfigBusinessHoursWarm
2813
+ */
2814
+ 'enabled'?: boolean;
2815
+ /**
2816
+ *
2817
+ * @type {string}
2818
+ * @memberof CiRunnerPoolConfigBusinessHoursWarm
2819
+ */
2820
+ 'timezone'?: string;
2821
+ /**
2822
+ * HH:MM
2823
+ * @type {string}
2824
+ * @memberof CiRunnerPoolConfigBusinessHoursWarm
2825
+ */
2826
+ 'start'?: string;
2827
+ /**
2828
+ * HH:MM
2829
+ * @type {string}
2830
+ * @memberof CiRunnerPoolConfigBusinessHoursWarm
2831
+ */
2832
+ 'end'?: string;
2833
+ }
2834
+ /**
2835
+ *
2836
+ * @export
2837
+ * @interface CiRunnerPoolConfigConnection
2838
+ */
2839
+ export interface CiRunnerPoolConfigConnection {
2840
+ /**
2841
+ *
2842
+ * @type {string}
2843
+ * @memberof CiRunnerPoolConfigConnection
2844
+ */
2845
+ 'provider'?: CiRunnerPoolConfigConnectionProviderEnum;
2846
+ /**
2847
+ *
2848
+ * @type {number}
2849
+ * @memberof CiRunnerPoolConfigConnection
2850
+ */
2851
+ 'installationId'?: number;
2852
+ /**
2853
+ *
2854
+ * @type {string}
2855
+ * @memberof CiRunnerPoolConfigConnection
2856
+ */
2857
+ 'githubOrg'?: string;
2858
+ /**
2859
+ * The GitHub App that owns the installation.
2860
+ * @type {number}
2861
+ * @memberof CiRunnerPoolConfigConnection
2862
+ */
2863
+ 'appId'?: number;
2864
+ /**
2865
+ *
2866
+ * @type {string}
2867
+ * @memberof CiRunnerPoolConfigConnection
2868
+ */
2869
+ 'status'?: CiRunnerPoolConfigConnectionStatusEnum;
2870
+ }
2871
+
2872
+ export const CiRunnerPoolConfigConnectionProviderEnum = {
2873
+ Github: 'github'
2874
+ } as const;
2875
+
2876
+ export type CiRunnerPoolConfigConnectionProviderEnum = typeof CiRunnerPoolConfigConnectionProviderEnum[keyof typeof CiRunnerPoolConfigConnectionProviderEnum];
2877
+ export const CiRunnerPoolConfigConnectionStatusEnum = {
2878
+ Connected: 'connected',
2879
+ Disconnected: 'disconnected'
2880
+ } as const;
2881
+
2882
+ export type CiRunnerPoolConfigConnectionStatusEnum = typeof CiRunnerPoolConfigConnectionStatusEnum[keyof typeof CiRunnerPoolConfigConnectionStatusEnum];
2883
+
2482
2884
  /**
2483
2885
  *
2484
2886
  * @export
@@ -2533,6 +2935,18 @@ export interface CiValue {
2533
2935
  * @memberof CiValue
2534
2936
  */
2535
2937
  'value'?: string;
2938
+ /**
2939
+ * 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.
2940
+ * @type {string}
2941
+ * @memberof CiValue
2942
+ */
2943
+ 'withheldReason'?: string;
2944
+ /**
2945
+ * When the value was first withheld. Present with withheldReason.
2946
+ * @type {string}
2947
+ * @memberof CiValue
2948
+ */
2949
+ 'withheldAt'?: string;
2536
2950
  }
2537
2951
 
2538
2952
  export const CiValueKindEnum = {
@@ -11005,7 +11419,7 @@ export interface OrgResource {
11005
11419
  */
11006
11420
  'scope'?: OrgResourceScopeEnum;
11007
11421
  /**
11008
- * Type-specific settings, such as dataStorageMaxGb for a cache
11422
+ * Type-specific settings: dataStorageMaxGb for a cache, and a CiRunnerPoolConfig for a CI runner pool.
11009
11423
  * @type {object}
11010
11424
  * @memberof OrgResource
11011
11425
  */
@@ -11016,6 +11430,12 @@ export interface OrgResource {
11016
11430
  * @memberof OrgResource
11017
11431
  */
11018
11432
  'physical'?: object;
11433
+ /**
11434
+ * 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.
11435
+ * @type {string}
11436
+ * @memberof OrgResource
11437
+ */
11438
+ 'effectiveCacheResidency'?: OrgResourceEffectiveCacheResidencyEnum;
11019
11439
  /**
11020
11440
  *
11021
11441
  * @type {string}
@@ -11047,6 +11467,12 @@ export const OrgResourceScopeEnum = {
11047
11467
  } as const;
11048
11468
 
11049
11469
  export type OrgResourceScopeEnum = typeof OrgResourceScopeEnum[keyof typeof OrgResourceScopeEnum];
11470
+ export const OrgResourceEffectiveCacheResidencyEnum = {
11471
+ AuOnly: 'au-only',
11472
+ AllowGithub: 'allow-github'
11473
+ } as const;
11474
+
11475
+ export type OrgResourceEffectiveCacheResidencyEnum = typeof OrgResourceEffectiveCacheResidencyEnum[keyof typeof OrgResourceEffectiveCacheResidencyEnum];
11050
11476
 
11051
11477
  /**
11052
11478
  *
@@ -11660,6 +12086,32 @@ export interface PutApplicationMetadata400Response {
11660
12086
  */
11661
12087
  'errors'?: Array<string>;
11662
12088
  }
12089
+ /**
12090
+ *
12091
+ * @export
12092
+ * @interface PutCiValue502Response
12093
+ */
12094
+ export interface PutCiValue502Response {
12095
+ /**
12096
+ *
12097
+ * @type {string}
12098
+ * @memberof PutCiValue502Response
12099
+ */
12100
+ 'error'?: string;
12101
+ }
12102
+ /**
12103
+ *
12104
+ * @export
12105
+ * @interface PutCiValue503Response
12106
+ */
12107
+ export interface PutCiValue503Response {
12108
+ /**
12109
+ *
12110
+ * @type {string}
12111
+ * @memberof PutCiValue503Response
12112
+ */
12113
+ 'error'?: string;
12114
+ }
11663
12115
  /**
11664
12116
  *
11665
12117
  * @export
@@ -12574,6 +13026,12 @@ export interface TokensCreate201Response {
12574
13026
  * @memberof TokensCreate201Response
12575
13027
  */
12576
13028
  'projects'?: Array<number> | null;
13029
+ /**
13030
+ *
13031
+ * @type {Array<string>}
13032
+ * @memberof TokensCreate201Response
13033
+ */
13034
+ 'applications'?: Array<string> | null;
12577
13035
  /**
12578
13036
  *
12579
13037
  * @type {string}
@@ -12629,6 +13087,12 @@ export interface TokensCreateRequest {
12629
13087
  * @memberof TokensCreateRequest
12630
13088
  */
12631
13089
  'projects'?: Array<number> | null;
13090
+ /**
13091
+ * Quant Cloud application names to restrict this token to. The token can then reach only these applications and their environments. Each application must exist in the organization.
13092
+ * @type {Array<string>}
13093
+ * @memberof TokensCreateRequest
13094
+ */
13095
+ 'applications'?: Array<string> | null;
12632
13096
  /**
12633
13097
  * Token expiration period
12634
13098
  * @type {string}
@@ -12978,19 +13442,6 @@ export interface UpdateAutoMode409Response {
12978
13442
  */
12979
13443
  'error': string;
12980
13444
  }
12981
- /**
12982
- *
12983
- * @export
12984
- * @interface UpdateContainer400Response
12985
- */
12986
- export interface UpdateContainer400Response {
12987
- /**
12988
- *
12989
- * @type {string}
12990
- * @memberof UpdateContainer400Response
12991
- */
12992
- 'error'?: string;
12993
- }
12994
13445
  /**
12995
13446
  *
12996
13447
  * @export
@@ -21302,6 +21753,12 @@ export interface V2Rule {
21302
21753
  * @memberof V2Rule
21303
21754
  */
21304
21755
  'traffic_source_is_not'?: Array<string>;
21756
+ /**
21757
+ *
21758
+ * @type {V2RuleSchedule}
21759
+ * @memberof V2Rule
21760
+ */
21761
+ 'schedule'?: V2RuleSchedule | null;
21305
21762
  /**
21306
21763
  * Country code
21307
21764
  * @type {string}
@@ -21471,6 +21928,12 @@ export interface V2RuleAuth {
21471
21928
  * @memberof V2RuleAuth
21472
21929
  */
21473
21930
  'traffic_source_is_not'?: Array<string>;
21931
+ /**
21932
+ *
21933
+ * @type {V2RuleSchedule}
21934
+ * @memberof V2RuleAuth
21935
+ */
21936
+ 'schedule'?: V2RuleSchedule;
21474
21937
  /**
21475
21938
  * Country code
21476
21939
  * @type {string}
@@ -21665,6 +22128,12 @@ export interface V2RuleAuthFunction {
21665
22128
  * @memberof V2RuleAuthFunction
21666
22129
  */
21667
22130
  'traffic_source_is_not'?: Array<string>;
22131
+ /**
22132
+ *
22133
+ * @type {V2RuleSchedule}
22134
+ * @memberof V2RuleAuthFunction
22135
+ */
22136
+ 'schedule'?: V2RuleSchedule;
21668
22137
  /**
21669
22138
  * Country code
21670
22139
  * @type {string}
@@ -21859,6 +22328,12 @@ export interface V2RuleAuthFunctionRequest {
21859
22328
  * @memberof V2RuleAuthFunctionRequest
21860
22329
  */
21861
22330
  'traffic_source_is_not'?: Array<V2RuleAuthFunctionRequestTrafficSourceIsNotEnum>;
22331
+ /**
22332
+ *
22333
+ * @type {V2RuleSchedule}
22334
+ * @memberof V2RuleAuthFunctionRequest
22335
+ */
22336
+ 'schedule'?: V2RuleSchedule | null;
21862
22337
  /**
21863
22338
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
21864
22339
  * @type {string}
@@ -22063,6 +22538,12 @@ export interface V2RuleAuthRequest {
22063
22538
  * @memberof V2RuleAuthRequest
22064
22539
  */
22065
22540
  'traffic_source_is_not'?: Array<V2RuleAuthRequestTrafficSourceIsNotEnum>;
22541
+ /**
22542
+ *
22543
+ * @type {V2RuleSchedule}
22544
+ * @memberof V2RuleAuthRequest
22545
+ */
22546
+ 'schedule'?: V2RuleSchedule;
22066
22547
  /**
22067
22548
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
22068
22549
  * @type {string}
@@ -22267,6 +22748,12 @@ export interface V2RuleBotChallenge {
22267
22748
  * @memberof V2RuleBotChallenge
22268
22749
  */
22269
22750
  'traffic_source_is_not'?: Array<string>;
22751
+ /**
22752
+ *
22753
+ * @type {V2RuleSchedule}
22754
+ * @memberof V2RuleBotChallenge
22755
+ */
22756
+ 'schedule'?: V2RuleSchedule;
22270
22757
  /**
22271
22758
  * Country code
22272
22759
  * @type {string}
@@ -22322,7 +22809,87 @@ export interface V2RuleBotChallengeAction {
22322
22809
  * @memberof V2RuleBotChallengeAction
22323
22810
  */
22324
22811
  'robot_challenge_challenge_ttl'?: number;
22812
+ /**
22813
+ *
22814
+ * @type {V2RuleBotChallengeActionRobotChallengeVerifiedBots}
22815
+ * @memberof V2RuleBotChallengeAction
22816
+ */
22817
+ 'robot_challenge_verified_bots'?: V2RuleBotChallengeActionRobotChallengeVerifiedBots;
22325
22818
  }
22819
+ /**
22820
+ * What a verified bot of each category gets on this rule: allow (skip the challenge), challenge (as any visitor) or block (403). An omitted category is allow. On PATCH, only the supplied categories change. Applies only to bots Quant verifies; AI training crawlers are never verified and are always challenged.
22821
+ * @export
22822
+ * @interface V2RuleBotChallengeActionRobotChallengeVerifiedBots
22823
+ */
22824
+ export interface V2RuleBotChallengeActionRobotChallengeVerifiedBots {
22825
+ /**
22826
+ * Search crawlers: Googlebot, Bingbot, Applebot, DuckDuckBot, Yandex, Baidu
22827
+ * @type {string}
22828
+ * @memberof V2RuleBotChallengeActionRobotChallengeVerifiedBots
22829
+ */
22830
+ 'search'?: V2RuleBotChallengeActionRobotChallengeVerifiedBotsSearchEnum;
22831
+ /**
22832
+ * AI search and user fetchers: OAI-SearchBot, ChatGPT-User, PerplexityBot, Meta-ExternalFetcher
22833
+ * @type {string}
22834
+ * @memberof V2RuleBotChallengeActionRobotChallengeVerifiedBots
22835
+ */
22836
+ 'ai_search'?: V2RuleBotChallengeActionRobotChallengeVerifiedBotsAiSearchEnum;
22837
+ /**
22838
+ * Link previews: Facebook, WhatsApp, LinkedIn, X, Telegram, BingPreview
22839
+ * @type {string}
22840
+ * @memberof V2RuleBotChallengeActionRobotChallengeVerifiedBots
22841
+ */
22842
+ 'preview'?: V2RuleBotChallengeActionRobotChallengeVerifiedBotsPreviewEnum;
22843
+ /**
22844
+ * Uptime monitors: UptimeRobot, Pingdom
22845
+ * @type {string}
22846
+ * @memberof V2RuleBotChallengeActionRobotChallengeVerifiedBots
22847
+ */
22848
+ 'monitor'?: V2RuleBotChallengeActionRobotChallengeVerifiedBotsMonitorEnum;
22849
+ /**
22850
+ * Other verified bots: AdsBot-Google, Mediapartners-Google, GoogleOther, adidxbot
22851
+ * @type {string}
22852
+ * @memberof V2RuleBotChallengeActionRobotChallengeVerifiedBots
22853
+ */
22854
+ 'other'?: V2RuleBotChallengeActionRobotChallengeVerifiedBotsOtherEnum;
22855
+ }
22856
+
22857
+ export const V2RuleBotChallengeActionRobotChallengeVerifiedBotsSearchEnum = {
22858
+ Allow: 'allow',
22859
+ Challenge: 'challenge',
22860
+ Block: 'block'
22861
+ } as const;
22862
+
22863
+ export type V2RuleBotChallengeActionRobotChallengeVerifiedBotsSearchEnum = typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsSearchEnum[keyof typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsSearchEnum];
22864
+ export const V2RuleBotChallengeActionRobotChallengeVerifiedBotsAiSearchEnum = {
22865
+ Allow: 'allow',
22866
+ Challenge: 'challenge',
22867
+ Block: 'block'
22868
+ } as const;
22869
+
22870
+ export type V2RuleBotChallengeActionRobotChallengeVerifiedBotsAiSearchEnum = typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsAiSearchEnum[keyof typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsAiSearchEnum];
22871
+ export const V2RuleBotChallengeActionRobotChallengeVerifiedBotsPreviewEnum = {
22872
+ Allow: 'allow',
22873
+ Challenge: 'challenge',
22874
+ Block: 'block'
22875
+ } as const;
22876
+
22877
+ export type V2RuleBotChallengeActionRobotChallengeVerifiedBotsPreviewEnum = typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsPreviewEnum[keyof typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsPreviewEnum];
22878
+ export const V2RuleBotChallengeActionRobotChallengeVerifiedBotsMonitorEnum = {
22879
+ Allow: 'allow',
22880
+ Challenge: 'challenge',
22881
+ Block: 'block'
22882
+ } as const;
22883
+
22884
+ export type V2RuleBotChallengeActionRobotChallengeVerifiedBotsMonitorEnum = typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsMonitorEnum[keyof typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsMonitorEnum];
22885
+ export const V2RuleBotChallengeActionRobotChallengeVerifiedBotsOtherEnum = {
22886
+ Allow: 'allow',
22887
+ Challenge: 'challenge',
22888
+ Block: 'block'
22889
+ } as const;
22890
+
22891
+ export type V2RuleBotChallengeActionRobotChallengeVerifiedBotsOtherEnum = typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsOtherEnum[keyof typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsOtherEnum];
22892
+
22326
22893
  /**
22327
22894
  *
22328
22895
  * @export
@@ -22473,6 +23040,12 @@ export interface V2RuleBotChallengeRequest {
22473
23040
  * @memberof V2RuleBotChallengeRequest
22474
23041
  */
22475
23042
  'traffic_source_is_not'?: Array<V2RuleBotChallengeRequestTrafficSourceIsNotEnum>;
23043
+ /**
23044
+ *
23045
+ * @type {V2RuleSchedule}
23046
+ * @memberof V2RuleBotChallengeRequest
23047
+ */
23048
+ 'schedule'?: V2RuleSchedule;
22476
23049
  /**
22477
23050
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
22478
23051
  * @type {string}
@@ -22497,6 +23070,12 @@ export interface V2RuleBotChallengeRequest {
22497
23070
  * @memberof V2RuleBotChallengeRequest
22498
23071
  */
22499
23072
  'robot_challenge_challenge_ttl'?: number;
23073
+ /**
23074
+ *
23075
+ * @type {V2RuleBotChallengeActionRobotChallengeVerifiedBots}
23076
+ * @memberof V2RuleBotChallengeRequest
23077
+ */
23078
+ 'robot_challenge_verified_bots'?: V2RuleBotChallengeActionRobotChallengeVerifiedBots;
22500
23079
  }
22501
23080
 
22502
23081
  export const V2RuleBotChallengeRequestAsnEnum = {
@@ -22683,6 +23262,12 @@ export interface V2RuleContentFilter {
22683
23262
  * @memberof V2RuleContentFilter
22684
23263
  */
22685
23264
  'traffic_source_is_not'?: Array<string>;
23265
+ /**
23266
+ *
23267
+ * @type {V2RuleSchedule}
23268
+ * @memberof V2RuleContentFilter
23269
+ */
23270
+ 'schedule'?: V2RuleSchedule;
22686
23271
  /**
22687
23272
  * Country code
22688
23273
  * @type {string}
@@ -22877,6 +23462,12 @@ export interface V2RuleContentFilterRequest {
22877
23462
  * @memberof V2RuleContentFilterRequest
22878
23463
  */
22879
23464
  'traffic_source_is_not'?: Array<V2RuleContentFilterRequestTrafficSourceIsNotEnum>;
23465
+ /**
23466
+ *
23467
+ * @type {V2RuleSchedule}
23468
+ * @memberof V2RuleContentFilterRequest
23469
+ */
23470
+ 'schedule'?: V2RuleSchedule | null;
22880
23471
  /**
22881
23472
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
22882
23473
  * @type {string}
@@ -23075,6 +23666,12 @@ export interface V2RuleCustomResponse {
23075
23666
  * @memberof V2RuleCustomResponse
23076
23667
  */
23077
23668
  'traffic_source_is_not'?: Array<string>;
23669
+ /**
23670
+ *
23671
+ * @type {V2RuleSchedule}
23672
+ * @memberof V2RuleCustomResponse
23673
+ */
23674
+ 'schedule'?: V2RuleSchedule;
23078
23675
  /**
23079
23676
  * Country code
23080
23677
  * @type {string}
@@ -23275,6 +23872,12 @@ export interface V2RuleCustomResponseRequest {
23275
23872
  * @memberof V2RuleCustomResponseRequest
23276
23873
  */
23277
23874
  'traffic_source_is_not'?: Array<V2RuleCustomResponseRequestTrafficSourceIsNotEnum>;
23875
+ /**
23876
+ *
23877
+ * @type {V2RuleSchedule}
23878
+ * @memberof V2RuleCustomResponseRequest
23879
+ */
23880
+ 'schedule'?: V2RuleSchedule | null;
23278
23881
  /**
23279
23882
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
23280
23883
  * @type {string}
@@ -23491,6 +24094,12 @@ export interface V2RuleErrorPage {
23491
24094
  * @memberof V2RuleErrorPage
23492
24095
  */
23493
24096
  'traffic_source_is_not'?: Array<string>;
24097
+ /**
24098
+ *
24099
+ * @type {V2RuleSchedule}
24100
+ * @memberof V2RuleErrorPage
24101
+ */
24102
+ 'schedule'?: V2RuleSchedule;
23494
24103
  /**
23495
24104
  * Country code
23496
24105
  * @type {string}
@@ -23691,6 +24300,12 @@ export interface V2RuleErrorPageRequest {
23691
24300
  * @memberof V2RuleErrorPageRequest
23692
24301
  */
23693
24302
  'traffic_source_is_not'?: Array<V2RuleErrorPageRequestTrafficSourceIsNotEnum>;
24303
+ /**
24304
+ *
24305
+ * @type {V2RuleSchedule}
24306
+ * @memberof V2RuleErrorPageRequest
24307
+ */
24308
+ 'schedule'?: V2RuleSchedule;
23694
24309
  /**
23695
24310
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
23696
24311
  * @type {string}
@@ -23895,6 +24510,12 @@ export interface V2RuleFunction {
23895
24510
  * @memberof V2RuleFunction
23896
24511
  */
23897
24512
  'traffic_source_is_not'?: Array<string>;
24513
+ /**
24514
+ *
24515
+ * @type {V2RuleSchedule}
24516
+ * @memberof V2RuleFunction
24517
+ */
24518
+ 'schedule'?: V2RuleSchedule;
23898
24519
  /**
23899
24520
  * Country code
23900
24521
  * @type {string}
@@ -24089,6 +24710,12 @@ export interface V2RuleFunctionRequest {
24089
24710
  * @memberof V2RuleFunctionRequest
24090
24711
  */
24091
24712
  'traffic_source_is_not'?: Array<V2RuleFunctionRequestTrafficSourceIsNotEnum>;
24713
+ /**
24714
+ *
24715
+ * @type {V2RuleSchedule}
24716
+ * @memberof V2RuleFunctionRequest
24717
+ */
24718
+ 'schedule'?: V2RuleSchedule | null;
24092
24719
  /**
24093
24720
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
24094
24721
  * @type {string}
@@ -24287,6 +24914,12 @@ export interface V2RuleHeader {
24287
24914
  * @memberof V2RuleHeader
24288
24915
  */
24289
24916
  'traffic_source_is_not'?: Array<string>;
24917
+ /**
24918
+ *
24919
+ * @type {V2RuleSchedule}
24920
+ * @memberof V2RuleHeader
24921
+ */
24922
+ 'schedule'?: V2RuleSchedule;
24290
24923
  /**
24291
24924
  * Country code
24292
24925
  * @type {string}
@@ -24481,6 +25114,12 @@ export interface V2RuleHeaderRequest {
24481
25114
  * @memberof V2RuleHeaderRequest
24482
25115
  */
24483
25116
  'traffic_source_is_not'?: Array<V2RuleHeaderRequestTrafficSourceIsNotEnum>;
25117
+ /**
25118
+ *
25119
+ * @type {V2RuleSchedule}
25120
+ * @memberof V2RuleHeaderRequest
25121
+ */
25122
+ 'schedule'?: V2RuleSchedule;
24484
25123
  /**
24485
25124
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
24486
25125
  * @type {string}
@@ -24679,6 +25318,12 @@ export interface V2RuleProxy {
24679
25318
  * @memberof V2RuleProxy
24680
25319
  */
24681
25320
  'traffic_source_is_not'?: Array<string>;
25321
+ /**
25322
+ *
25323
+ * @type {V2RuleSchedule}
25324
+ * @memberof V2RuleProxy
25325
+ */
25326
+ 'schedule'?: V2RuleSchedule;
24682
25327
  /**
24683
25328
  * Country code
24684
25329
  * @type {string}
@@ -25099,6 +25744,12 @@ export interface V2RuleProxyRequest {
25099
25744
  * @memberof V2RuleProxyRequest
25100
25745
  */
25101
25746
  'traffic_source_is_not'?: Array<V2RuleProxyRequestTrafficSourceIsNotEnum>;
25747
+ /**
25748
+ *
25749
+ * @type {V2RuleSchedule}
25750
+ * @memberof V2RuleProxyRequest
25751
+ */
25752
+ 'schedule'?: V2RuleSchedule | null;
25102
25753
  /**
25103
25754
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
25104
25755
  * @type {string}
@@ -25447,6 +26098,12 @@ export interface V2RuleRedirect {
25447
26098
  * @memberof V2RuleRedirect
25448
26099
  */
25449
26100
  'traffic_source_is_not'?: Array<string>;
26101
+ /**
26102
+ *
26103
+ * @type {V2RuleSchedule}
26104
+ * @memberof V2RuleRedirect
26105
+ */
26106
+ 'schedule'?: V2RuleSchedule;
25450
26107
  /**
25451
26108
  * Country code
25452
26109
  * @type {string}
@@ -25647,6 +26304,12 @@ export interface V2RuleRedirectRequest {
25647
26304
  * @memberof V2RuleRedirectRequest
25648
26305
  */
25649
26306
  'traffic_source_is_not'?: Array<V2RuleRedirectRequestTrafficSourceIsNotEnum>;
26307
+ /**
26308
+ *
26309
+ * @type {V2RuleSchedule}
26310
+ * @memberof V2RuleRedirectRequest
26311
+ */
26312
+ 'schedule'?: V2RuleSchedule | null;
25650
26313
  /**
25651
26314
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
25652
26315
  * @type {string}
@@ -25857,6 +26520,12 @@ export interface V2RuleRequest {
25857
26520
  * @memberof V2RuleRequest
25858
26521
  */
25859
26522
  'traffic_source_is_not'?: Array<V2RuleRequestTrafficSourceIsNotEnum>;
26523
+ /**
26524
+ *
26525
+ * @type {V2RuleSchedule}
26526
+ * @memberof V2RuleRequest
26527
+ */
26528
+ 'schedule'?: V2RuleSchedule | null;
25860
26529
  /**
25861
26530
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
25862
26531
  * @type {string}
@@ -25905,6 +26574,102 @@ export const V2RuleRequestTrafficSourceIsNotEnum = {
25905
26574
 
25906
26575
  export type V2RuleRequestTrafficSourceIsNotEnum = typeof V2RuleRequestTrafficSourceIsNotEnum[keyof typeof V2RuleRequestTrafficSourceIsNotEnum];
25907
26576
 
26577
+ /**
26578
+ * 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.
26579
+ * @export
26580
+ * @interface V2RuleSchedule
26581
+ */
26582
+ export interface V2RuleSchedule {
26583
+ /**
26584
+ * IANA time zone name, or UTC. Invalid values return 422.
26585
+ * @type {string}
26586
+ * @memberof V2RuleSchedule
26587
+ */
26588
+ 'timezone': string;
26589
+ /**
26590
+ * active_during: the rule applies only inside the windows. inactive_during: the rule applies only outside them.
26591
+ * @type {string}
26592
+ * @memberof V2RuleSchedule
26593
+ */
26594
+ 'mode': V2RuleScheduleModeEnum;
26595
+ /**
26596
+ * Weekly windows. Stored as an empty list when omitted.
26597
+ * @type {Array<V2RuleScheduleWeeklyInner>}
26598
+ * @memberof V2RuleSchedule
26599
+ */
26600
+ 'weekly'?: Array<V2RuleScheduleWeeklyInner>;
26601
+ /**
26602
+ * One-off ranges. Stored as an empty list when omitted.
26603
+ * @type {Array<V2RuleScheduleOnceInner>}
26604
+ * @memberof V2RuleSchedule
26605
+ */
26606
+ 'once'?: Array<V2RuleScheduleOnceInner>;
26607
+ }
26608
+
26609
+ export const V2RuleScheduleModeEnum = {
26610
+ ActiveDuring: 'active_during',
26611
+ InactiveDuring: 'inactive_during'
26612
+ } as const;
26613
+
26614
+ export type V2RuleScheduleModeEnum = typeof V2RuleScheduleModeEnum[keyof typeof V2RuleScheduleModeEnum];
26615
+
26616
+ /**
26617
+ *
26618
+ * @export
26619
+ * @interface V2RuleScheduleOnceInner
26620
+ */
26621
+ export interface V2RuleScheduleOnceInner {
26622
+ /**
26623
+ * Local date and time, YYYY-MM-DDTHH:MM, no offset.
26624
+ * @type {string}
26625
+ * @memberof V2RuleScheduleOnceInner
26626
+ */
26627
+ 'start': string;
26628
+ /**
26629
+ * Local date and time after start, YYYY-MM-DDTHH:MM, no offset.
26630
+ * @type {string}
26631
+ * @memberof V2RuleScheduleOnceInner
26632
+ */
26633
+ 'end': string;
26634
+ }
26635
+ /**
26636
+ *
26637
+ * @export
26638
+ * @interface V2RuleScheduleWeeklyInner
26639
+ */
26640
+ export interface V2RuleScheduleWeeklyInner {
26641
+ /**
26642
+ *
26643
+ * @type {Array<string>}
26644
+ * @memberof V2RuleScheduleWeeklyInner
26645
+ */
26646
+ 'days': Array<V2RuleScheduleWeeklyInnerDaysEnum>;
26647
+ /**
26648
+ * Local time HH:MM, 00:00 to 23:59.
26649
+ * @type {string}
26650
+ * @memberof V2RuleScheduleWeeklyInner
26651
+ */
26652
+ 'start': string;
26653
+ /**
26654
+ * Local time HH:MM, 00:00 to 24:00.
26655
+ * @type {string}
26656
+ * @memberof V2RuleScheduleWeeklyInner
26657
+ */
26658
+ 'end': string;
26659
+ }
26660
+
26661
+ export const V2RuleScheduleWeeklyInnerDaysEnum = {
26662
+ Mon: 'mon',
26663
+ Tue: 'tue',
26664
+ Wed: 'wed',
26665
+ Thu: 'thu',
26666
+ Fri: 'fri',
26667
+ Sat: 'sat',
26668
+ Sun: 'sun'
26669
+ } as const;
26670
+
26671
+ export type V2RuleScheduleWeeklyInnerDaysEnum = typeof V2RuleScheduleWeeklyInnerDaysEnum[keyof typeof V2RuleScheduleWeeklyInnerDaysEnum];
26672
+
25908
26673
  /**
25909
26674
  *
25910
26675
  * @export
@@ -26049,6 +26814,12 @@ export interface V2RuleServeStatic {
26049
26814
  * @memberof V2RuleServeStatic
26050
26815
  */
26051
26816
  'traffic_source_is_not'?: Array<string>;
26817
+ /**
26818
+ *
26819
+ * @type {V2RuleSchedule}
26820
+ * @memberof V2RuleServeStatic
26821
+ */
26822
+ 'schedule'?: V2RuleSchedule;
26052
26823
  /**
26053
26824
  * Country code
26054
26825
  * @type {string}
@@ -26243,6 +27014,12 @@ export interface V2RuleServeStaticRequest {
26243
27014
  * @memberof V2RuleServeStaticRequest
26244
27015
  */
26245
27016
  'traffic_source_is_not'?: Array<V2RuleServeStaticRequestTrafficSourceIsNotEnum>;
27017
+ /**
27018
+ *
27019
+ * @type {V2RuleSchedule}
27020
+ * @memberof V2RuleServeStaticRequest
27021
+ */
27022
+ 'schedule'?: V2RuleSchedule;
26246
27023
  /**
26247
27024
  * Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
26248
27025
  * @type {string}
@@ -45565,7 +46342,7 @@ export type SyncToEnvironmentTypeEnum = typeof SyncToEnvironmentTypeEnum[keyof t
45565
46342
  export const HeadersApiAxiosParamCreator = function (configuration?: Configuration) {
45566
46343
  return {
45567
46344
  /**
45568
- *
46345
+ * Replaces the custom headers of the project. On a project that Security > CSP manages, the CSP header names in the request are ignored and their stored values stay; the response header X-Quant-Warning then names them. The status is still 200.
45569
46346
  * @summary Create or update custom headers
45570
46347
  * @param {string} organization Organization identifier
45571
46348
  * @param {string} project Project identifier
@@ -45713,7 +46490,7 @@ export const HeadersApiFp = function(configuration?: Configuration) {
45713
46490
  const localVarAxiosParamCreator = HeadersApiAxiosParamCreator(configuration)
45714
46491
  return {
45715
46492
  /**
45716
- *
46493
+ * Replaces the custom headers of the project. On a project that Security > CSP manages, the CSP header names in the request are ignored and their stored values stay; the response header X-Quant-Warning then names them. The status is still 200.
45717
46494
  * @summary Create or update custom headers
45718
46495
  * @param {string} organization Organization identifier
45719
46496
  * @param {string} project Project identifier
@@ -45767,7 +46544,7 @@ export const HeadersApiFactory = function (configuration?: Configuration, basePa
45767
46544
  const localVarFp = HeadersApiFp(configuration)
45768
46545
  return {
45769
46546
  /**
45770
- *
46547
+ * Replaces the custom headers of the project. On a project that Security > CSP manages, the CSP header names in the request are ignored and their stored values stay; the response header X-Quant-Warning then names them. The status is still 200.
45771
46548
  * @summary Create or update custom headers
45772
46549
  * @param {string} organization Organization identifier
45773
46550
  * @param {string} project Project identifier
@@ -45812,7 +46589,7 @@ export const HeadersApiFactory = function (configuration?: Configuration, basePa
45812
46589
  */
45813
46590
  export class HeadersApi extends BaseAPI {
45814
46591
  /**
45815
- *
46592
+ * Replaces the custom headers of the project. On a project that Security > CSP manages, the CSP header names in the request are ignored and their stored values stay; the response header X-Quant-Warning then names them. The status is still 200.
45816
46593
  * @summary Create or update custom headers
45817
46594
  * @param {string} organization Organization identifier
45818
46595
  * @param {string} project Project identifier
@@ -53233,6 +54010,54 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura
53233
54010
  options: localVarRequestOptions,
53234
54011
  };
53235
54012
  },
54013
+ /**
54014
+ * 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.
54015
+ * @summary Delete build cache entries of a CI runner pool
54016
+ * @param {string} organisation The organisation ID
54017
+ * @param {string} resource The CI runner pool resource ID
54018
+ * @param {CiCacheDeleteRequest} ciCacheDeleteRequest
54019
+ * @param {*} [options] Override http request option.
54020
+ * @throws {RequiredError}
54021
+ */
54022
+ deleteCiRunnerPoolCache: async (organisation: string, resource: string, ciCacheDeleteRequest: CiCacheDeleteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
54023
+ // verify required parameter 'organisation' is not null or undefined
54024
+ assertParamExists('deleteCiRunnerPoolCache', 'organisation', organisation)
54025
+ // verify required parameter 'resource' is not null or undefined
54026
+ assertParamExists('deleteCiRunnerPoolCache', 'resource', resource)
54027
+ // verify required parameter 'ciCacheDeleteRequest' is not null or undefined
54028
+ assertParamExists('deleteCiRunnerPoolCache', 'ciCacheDeleteRequest', ciCacheDeleteRequest)
54029
+ const localVarPath = `/api/v3/organizations/{organisation}/resources/{resource}/cache`
54030
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
54031
+ .replace(`{${"resource"}}`, encodeURIComponent(String(resource)));
54032
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54033
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
54034
+ let baseOptions;
54035
+ if (configuration) {
54036
+ baseOptions = configuration.baseOptions;
54037
+ }
54038
+
54039
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
54040
+ const localVarHeaderParameter = {} as any;
54041
+ const localVarQueryParameter = {} as any;
54042
+
54043
+ // authentication BearerAuth required
54044
+ // http bearer authentication required
54045
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
54046
+
54047
+
54048
+
54049
+ localVarHeaderParameter['Content-Type'] = 'application/json';
54050
+
54051
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
54052
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54053
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
54054
+ localVarRequestOptions.data = serializeDataIfNeeded(ciCacheDeleteRequest, localVarRequestOptions, configuration)
54055
+
54056
+ return {
54057
+ url: toPathString(localVarUrlObj),
54058
+ options: localVarRequestOptions,
54059
+ };
54060
+ },
53236
54061
  /**
53237
54062
  * Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
53238
54063
  * @summary Delete a shared resource
@@ -53321,6 +54146,53 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura
53321
54146
 
53322
54147
 
53323
54148
 
54149
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
54150
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54151
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
54152
+
54153
+ return {
54154
+ url: toPathString(localVarUrlObj),
54155
+ options: localVarRequestOptions,
54156
+ };
54157
+ },
54158
+ /**
54159
+ * 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.
54160
+ * @summary Get build cache statistics of a CI runner pool
54161
+ * @param {string} organisation The organisation ID
54162
+ * @param {string} resource The CI runner pool resource ID
54163
+ * @param {number} [days]
54164
+ * @param {*} [options] Override http request option.
54165
+ * @throws {RequiredError}
54166
+ */
54167
+ getCiRunnerPoolCacheStats: async (organisation: string, resource: string, days?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
54168
+ // verify required parameter 'organisation' is not null or undefined
54169
+ assertParamExists('getCiRunnerPoolCacheStats', 'organisation', organisation)
54170
+ // verify required parameter 'resource' is not null or undefined
54171
+ assertParamExists('getCiRunnerPoolCacheStats', 'resource', resource)
54172
+ const localVarPath = `/api/v3/organizations/{organisation}/resources/{resource}/cache/stats`
54173
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
54174
+ .replace(`{${"resource"}}`, encodeURIComponent(String(resource)));
54175
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54176
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
54177
+ let baseOptions;
54178
+ if (configuration) {
54179
+ baseOptions = configuration.baseOptions;
54180
+ }
54181
+
54182
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
54183
+ const localVarHeaderParameter = {} as any;
54184
+ const localVarQueryParameter = {} as any;
54185
+
54186
+ // authentication BearerAuth required
54187
+ // http bearer authentication required
54188
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
54189
+
54190
+ if (days !== undefined) {
54191
+ localVarQueryParameter['days'] = days;
54192
+ }
54193
+
54194
+
54195
+
53324
54196
  setSearchParams(localVarUrlObj, localVarQueryParameter);
53325
54197
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
53326
54198
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -53405,6 +54277,63 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura
53405
54277
 
53406
54278
 
53407
54279
 
54280
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
54281
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54282
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
54283
+
54284
+ return {
54285
+ url: toPathString(localVarUrlObj),
54286
+ options: localVarRequestOptions,
54287
+ };
54288
+ },
54289
+ /**
54290
+ * 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.
54291
+ * @summary List the build cache entries of a CI runner pool
54292
+ * @param {string} organisation The organisation ID
54293
+ * @param {string} resource The CI runner pool resource ID
54294
+ * @param {number} [repoId] Only the entries of this GitHub repository id.
54295
+ * @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 %.
54296
+ * @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
54297
+ * @param {*} [options] Override http request option.
54298
+ * @throws {RequiredError}
54299
+ */
54300
+ listCiRunnerPoolCache: async (organisation: string, resource: string, repoId?: number, ref?: string, cursor?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
54301
+ // verify required parameter 'organisation' is not null or undefined
54302
+ assertParamExists('listCiRunnerPoolCache', 'organisation', organisation)
54303
+ // verify required parameter 'resource' is not null or undefined
54304
+ assertParamExists('listCiRunnerPoolCache', 'resource', resource)
54305
+ const localVarPath = `/api/v3/organizations/{organisation}/resources/{resource}/cache`
54306
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
54307
+ .replace(`{${"resource"}}`, encodeURIComponent(String(resource)));
54308
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54309
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
54310
+ let baseOptions;
54311
+ if (configuration) {
54312
+ baseOptions = configuration.baseOptions;
54313
+ }
54314
+
54315
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
54316
+ const localVarHeaderParameter = {} as any;
54317
+ const localVarQueryParameter = {} as any;
54318
+
54319
+ // authentication BearerAuth required
54320
+ // http bearer authentication required
54321
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
54322
+
54323
+ if (repoId !== undefined) {
54324
+ localVarQueryParameter['repoId'] = repoId;
54325
+ }
54326
+
54327
+ if (ref !== undefined) {
54328
+ localVarQueryParameter['ref'] = ref;
54329
+ }
54330
+
54331
+ if (cursor !== undefined) {
54332
+ localVarQueryParameter['cursor'] = cursor;
54333
+ }
54334
+
54335
+
54336
+
53408
54337
  setSearchParams(localVarUrlObj, localVarQueryParameter);
53409
54338
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
53410
54339
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -53539,6 +54468,21 @@ export const ResourcesApiFp = function(configuration?: Configuration) {
53539
54468
  const localVarOperationServerBasePath = operationServerMap['ResourcesApi.createOrgResource']?.[localVarOperationServerIndex]?.url;
53540
54469
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
53541
54470
  },
54471
+ /**
54472
+ * 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.
54473
+ * @summary Delete build cache entries of a CI runner pool
54474
+ * @param {string} organisation The organisation ID
54475
+ * @param {string} resource The CI runner pool resource ID
54476
+ * @param {CiCacheDeleteRequest} ciCacheDeleteRequest
54477
+ * @param {*} [options] Override http request option.
54478
+ * @throws {RequiredError}
54479
+ */
54480
+ async deleteCiRunnerPoolCache(organisation: string, resource: string, ciCacheDeleteRequest: CiCacheDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CiCacheDeleteResult>> {
54481
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options);
54482
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
54483
+ const localVarOperationServerBasePath = operationServerMap['ResourcesApi.deleteCiRunnerPoolCache']?.[localVarOperationServerIndex]?.url;
54484
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
54485
+ },
53542
54486
  /**
53543
54487
  * Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
53544
54488
  * @summary Delete a shared resource
@@ -53570,6 +54514,21 @@ export const ResourcesApiFp = function(configuration?: Configuration) {
53570
54514
  const localVarOperationServerBasePath = operationServerMap['ResourcesApi.detachOrgResource']?.[localVarOperationServerIndex]?.url;
53571
54515
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
53572
54516
  },
54517
+ /**
54518
+ * 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.
54519
+ * @summary Get build cache statistics of a CI runner pool
54520
+ * @param {string} organisation The organisation ID
54521
+ * @param {string} resource The CI runner pool resource ID
54522
+ * @param {number} [days]
54523
+ * @param {*} [options] Override http request option.
54524
+ * @throws {RequiredError}
54525
+ */
54526
+ async getCiRunnerPoolCacheStats(organisation: string, resource: string, days?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CiCacheStats>> {
54527
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCiRunnerPoolCacheStats(organisation, resource, days, options);
54528
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
54529
+ const localVarOperationServerBasePath = operationServerMap['ResourcesApi.getCiRunnerPoolCacheStats']?.[localVarOperationServerIndex]?.url;
54530
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
54531
+ },
53573
54532
  /**
53574
54533
  *
53575
54534
  * @summary Get a shared resource and its attachments
@@ -53598,6 +54557,23 @@ export const ResourcesApiFp = function(configuration?: Configuration) {
53598
54557
  const localVarOperationServerBasePath = operationServerMap['ResourcesApi.getOrgResourceCredentials']?.[localVarOperationServerIndex]?.url;
53599
54558
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
53600
54559
  },
54560
+ /**
54561
+ * 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.
54562
+ * @summary List the build cache entries of a CI runner pool
54563
+ * @param {string} organisation The organisation ID
54564
+ * @param {string} resource The CI runner pool resource ID
54565
+ * @param {number} [repoId] Only the entries of this GitHub repository id.
54566
+ * @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 %.
54567
+ * @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
54568
+ * @param {*} [options] Override http request option.
54569
+ * @throws {RequiredError}
54570
+ */
54571
+ async listCiRunnerPoolCache(organisation: string, resource: string, repoId?: number, ref?: string, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CiCacheList>> {
54572
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options);
54573
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
54574
+ const localVarOperationServerBasePath = operationServerMap['ResourcesApi.listCiRunnerPoolCache']?.[localVarOperationServerIndex]?.url;
54575
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
54576
+ },
53601
54577
  /**
53602
54578
  *
53603
54579
  * @summary List an organisation\'s shared resources
@@ -53659,6 +54635,18 @@ export const ResourcesApiFactory = function (configuration?: Configuration, base
53659
54635
  createOrgResource(organisation: string, createOrgResourceRequest: CreateOrgResourceRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgResource> {
53660
54636
  return localVarFp.createOrgResource(organisation, createOrgResourceRequest, options).then((request) => request(axios, basePath));
53661
54637
  },
54638
+ /**
54639
+ * 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.
54640
+ * @summary Delete build cache entries of a CI runner pool
54641
+ * @param {string} organisation The organisation ID
54642
+ * @param {string} resource The CI runner pool resource ID
54643
+ * @param {CiCacheDeleteRequest} ciCacheDeleteRequest
54644
+ * @param {*} [options] Override http request option.
54645
+ * @throws {RequiredError}
54646
+ */
54647
+ deleteCiRunnerPoolCache(organisation: string, resource: string, ciCacheDeleteRequest: CiCacheDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CiCacheDeleteResult> {
54648
+ return localVarFp.deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options).then((request) => request(axios, basePath));
54649
+ },
53662
54650
  /**
53663
54651
  * Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
53664
54652
  * @summary Delete a shared resource
@@ -53684,6 +54672,18 @@ export const ResourcesApiFactory = function (configuration?: Configuration, base
53684
54672
  detachOrgResource(organisation: string, resource: string, application: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
53685
54673
  return localVarFp.detachOrgResource(organisation, resource, application, environment, options).then((request) => request(axios, basePath));
53686
54674
  },
54675
+ /**
54676
+ * 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.
54677
+ * @summary Get build cache statistics of a CI runner pool
54678
+ * @param {string} organisation The organisation ID
54679
+ * @param {string} resource The CI runner pool resource ID
54680
+ * @param {number} [days]
54681
+ * @param {*} [options] Override http request option.
54682
+ * @throws {RequiredError}
54683
+ */
54684
+ getCiRunnerPoolCacheStats(organisation: string, resource: string, days?: number, options?: RawAxiosRequestConfig): AxiosPromise<CiCacheStats> {
54685
+ return localVarFp.getCiRunnerPoolCacheStats(organisation, resource, days, options).then((request) => request(axios, basePath));
54686
+ },
53687
54687
  /**
53688
54688
  *
53689
54689
  * @summary Get a shared resource and its attachments
@@ -53706,6 +54706,20 @@ export const ResourcesApiFactory = function (configuration?: Configuration, base
53706
54706
  getOrgResourceCredentials(organisation: string, resource: string, options?: RawAxiosRequestConfig): AxiosPromise<GetOrgResourceCredentials200Response> {
53707
54707
  return localVarFp.getOrgResourceCredentials(organisation, resource, options).then((request) => request(axios, basePath));
53708
54708
  },
54709
+ /**
54710
+ * 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.
54711
+ * @summary List the build cache entries of a CI runner pool
54712
+ * @param {string} organisation The organisation ID
54713
+ * @param {string} resource The CI runner pool resource ID
54714
+ * @param {number} [repoId] Only the entries of this GitHub repository id.
54715
+ * @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 %.
54716
+ * @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
54717
+ * @param {*} [options] Override http request option.
54718
+ * @throws {RequiredError}
54719
+ */
54720
+ listCiRunnerPoolCache(organisation: string, resource: string, repoId?: number, ref?: string, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise<CiCacheList> {
54721
+ return localVarFp.listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options).then((request) => request(axios, basePath));
54722
+ },
53709
54723
  /**
53710
54724
  *
53711
54725
  * @summary List an organisation\'s shared resources
@@ -53765,6 +54779,20 @@ export class ResourcesApi extends BaseAPI {
53765
54779
  return ResourcesApiFp(this.configuration).createOrgResource(organisation, createOrgResourceRequest, options).then((request) => request(this.axios, this.basePath));
53766
54780
  }
53767
54781
 
54782
+ /**
54783
+ * 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.
54784
+ * @summary Delete build cache entries of a CI runner pool
54785
+ * @param {string} organisation The organisation ID
54786
+ * @param {string} resource The CI runner pool resource ID
54787
+ * @param {CiCacheDeleteRequest} ciCacheDeleteRequest
54788
+ * @param {*} [options] Override http request option.
54789
+ * @throws {RequiredError}
54790
+ * @memberof ResourcesApi
54791
+ */
54792
+ public deleteCiRunnerPoolCache(organisation: string, resource: string, ciCacheDeleteRequest: CiCacheDeleteRequest, options?: RawAxiosRequestConfig) {
54793
+ return ResourcesApiFp(this.configuration).deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options).then((request) => request(this.axios, this.basePath));
54794
+ }
54795
+
53768
54796
  /**
53769
54797
  * Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
53770
54798
  * @summary Delete a shared resource
@@ -53794,6 +54822,20 @@ export class ResourcesApi extends BaseAPI {
53794
54822
  return ResourcesApiFp(this.configuration).detachOrgResource(organisation, resource, application, environment, options).then((request) => request(this.axios, this.basePath));
53795
54823
  }
53796
54824
 
54825
+ /**
54826
+ * 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.
54827
+ * @summary Get build cache statistics of a CI runner pool
54828
+ * @param {string} organisation The organisation ID
54829
+ * @param {string} resource The CI runner pool resource ID
54830
+ * @param {number} [days]
54831
+ * @param {*} [options] Override http request option.
54832
+ * @throws {RequiredError}
54833
+ * @memberof ResourcesApi
54834
+ */
54835
+ public getCiRunnerPoolCacheStats(organisation: string, resource: string, days?: number, options?: RawAxiosRequestConfig) {
54836
+ return ResourcesApiFp(this.configuration).getCiRunnerPoolCacheStats(organisation, resource, days, options).then((request) => request(this.axios, this.basePath));
54837
+ }
54838
+
53797
54839
  /**
53798
54840
  *
53799
54841
  * @summary Get a shared resource and its attachments
@@ -53820,6 +54862,22 @@ export class ResourcesApi extends BaseAPI {
53820
54862
  return ResourcesApiFp(this.configuration).getOrgResourceCredentials(organisation, resource, options).then((request) => request(this.axios, this.basePath));
53821
54863
  }
53822
54864
 
54865
+ /**
54866
+ * 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.
54867
+ * @summary List the build cache entries of a CI runner pool
54868
+ * @param {string} organisation The organisation ID
54869
+ * @param {string} resource The CI runner pool resource ID
54870
+ * @param {number} [repoId] Only the entries of this GitHub repository id.
54871
+ * @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 %.
54872
+ * @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
54873
+ * @param {*} [options] Override http request option.
54874
+ * @throws {RequiredError}
54875
+ * @memberof ResourcesApi
54876
+ */
54877
+ public listCiRunnerPoolCache(organisation: string, resource: string, repoId?: number, ref?: string, cursor?: string, options?: RawAxiosRequestConfig) {
54878
+ return ResourcesApiFp(this.configuration).listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options).then((request) => request(this.axios, this.basePath));
54879
+ }
54880
+
53823
54881
  /**
53824
54882
  *
53825
54883
  * @summary List an organisation\'s shared resources