@controlplane/schema 1.0.6 → 1.0.8

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.
Files changed (63) hide show
  1. package/build/src/interfaces/accessreport.d.ts +11 -11
  2. package/build/src/interfaces/agent.d.ts +14 -10
  3. package/build/src/interfaces/auditctx.d.ts +4 -4
  4. package/build/src/interfaces/base.d.ts +20 -20
  5. package/build/src/interfaces/cloudaccount.d.ts +7 -7
  6. package/build/src/interfaces/command.d.ts +164 -125
  7. package/build/src/interfaces/config.d.ts +2 -4
  8. package/build/src/interfaces/containerstatus.d.ts +6 -6
  9. package/build/src/interfaces/cronjob.d.ts +1 -1
  10. package/build/src/interfaces/dbcluster.d.ts +1 -1
  11. package/build/src/interfaces/deployment.d.ts +20 -20
  12. package/build/src/interfaces/domain.d.ts +67 -67
  13. package/build/src/interfaces/env.d.ts +1 -1
  14. package/build/src/interfaces/envoy.d.ts +5 -5
  15. package/build/src/interfaces/envoyAccessLog.d.ts +1 -1
  16. package/build/src/interfaces/envoyCluster.d.ts +9 -9
  17. package/build/src/interfaces/envoyCommon.d.ts +301 -301
  18. package/build/src/interfaces/envoyExcExtAuth.d.ts +2 -2
  19. package/build/src/interfaces/envoyHttp.d.ts +146 -146
  20. package/build/src/interfaces/envoyRateLimit.d.ts +1 -1
  21. package/build/src/interfaces/event.d.ts +9 -9
  22. package/build/src/interfaces/group.d.ts +2 -2
  23. package/build/src/interfaces/gvc.d.ts +185 -66
  24. package/build/src/interfaces/identity.d.ts +96 -63
  25. package/build/src/interfaces/image.d.ts +1 -1
  26. package/build/src/interfaces/ipSet.d.ts +14 -14
  27. package/build/src/interfaces/location.d.ts +16 -16
  28. package/build/src/interfaces/memcache.d.ts +7 -7
  29. package/build/src/interfaces/mk8s.d.ts +65 -65
  30. package/build/src/interfaces/mk8sAddons.d.ts +127 -60
  31. package/build/src/interfaces/mk8sAws.d.ts +6 -6
  32. package/build/src/interfaces/mk8sAzure.d.ts +10 -10
  33. package/build/src/interfaces/mk8sCommon.d.ts +26 -26
  34. package/build/src/interfaces/mk8sDigitalOcean.d.ts +2 -2
  35. package/build/src/interfaces/mk8sEphemeral.d.ts +1 -1
  36. package/build/src/interfaces/mk8sGcp.d.ts +9 -9
  37. package/build/src/interfaces/mk8sGeneric.d.ts +5 -5
  38. package/build/src/interfaces/mk8sHetzner.d.ts +10 -10
  39. package/build/src/interfaces/mk8sLambdalabs.d.ts +5 -5
  40. package/build/src/interfaces/mk8sLinode.d.ts +6 -6
  41. package/build/src/interfaces/mk8sOblivus.d.ts +5 -5
  42. package/build/src/interfaces/mk8sPaperspace.d.ts +5 -5
  43. package/build/src/interfaces/mk8sTriton.d.ts +23 -23
  44. package/build/src/interfaces/org.d.ts +34 -32
  45. package/build/src/interfaces/orgLogging.d.ts +32 -25
  46. package/build/src/interfaces/permissions.d.ts +1 -1
  47. package/build/src/interfaces/policy.d.ts +2 -2
  48. package/build/src/interfaces/policyMembership.d.ts +6 -6
  49. package/build/src/interfaces/query.d.ts +24 -17
  50. package/build/src/interfaces/quota.d.ts +1 -1
  51. package/build/src/interfaces/resourcePolicy.d.ts +1 -1
  52. package/build/src/interfaces/secret.d.ts +23 -23
  53. package/build/src/interfaces/serviceaccount.d.ts +7 -7
  54. package/build/src/interfaces/spicedb.d.ts +1 -1
  55. package/build/src/interfaces/statefulSet.d.ts +1 -1
  56. package/build/src/interfaces/task.d.ts +1 -1
  57. package/build/src/interfaces/tenant.d.ts +5 -5
  58. package/build/src/interfaces/tracing.d.ts +16 -8
  59. package/build/src/interfaces/user.d.ts +12 -12
  60. package/build/src/interfaces/volumeSet.d.ts +54 -46
  61. package/build/src/interfaces/workload.d.ts +241 -200
  62. package/build/src/interfaces/workloadOptions.d.ts +47 -14
  63. package/package.json +1 -1
@@ -1,14 +1,17 @@
1
- import { Name, Kind, Tags, Links } from './base';
2
- export interface Opaque {
3
- payload?: string | string;
4
- encoding?: 'plain' | 'base64';
5
- }
1
+ import { Name, Kind, Tags, Links } from './base.js';
6
2
  export interface AwsKey {
7
3
  accessKey: string;
8
4
  secretKey: string;
9
5
  roleArn?: string;
10
6
  externalId?: string;
11
7
  }
8
+ export interface AzureConnector {
9
+ url: string;
10
+ code: string;
11
+ }
12
+ export interface Dictionary {
13
+ [x: string]: string;
14
+ }
12
15
  export interface EcrPull {
13
16
  accessKey: string;
14
17
  secretKey: string;
@@ -16,33 +19,19 @@ export interface EcrPull {
16
19
  externalId?: string;
17
20
  repos?: string[];
18
21
  }
19
- export interface UsernamePassword {
20
- username: string;
21
- password: string;
22
- encoding?: 'plain' | 'base64';
23
- }
24
- export interface AzureConnector {
25
- url: string;
26
- code: string;
27
- }
28
- export interface Tls {
29
- key?: string;
30
- cert: string;
31
- chain?: string;
32
- }
33
22
  export interface KeyPair {
34
23
  secretKey: string;
35
24
  publicKey?: string;
36
25
  passphrase?: string;
37
26
  }
38
- export interface Dictionary {
39
- [x: string]: string;
40
- }
41
27
  export interface NatsAccount {
42
28
  accountId: string;
43
29
  privateKey: string;
44
30
  }
45
- export type SecretData = Opaque | Tls | string | AwsKey | EcrPull | string | UsernamePassword | KeyPair | Dictionary | string | AzureConnector | NatsAccount;
31
+ export interface Opaque {
32
+ payload?: string | string;
33
+ encoding?: 'plain' | 'base64';
34
+ }
46
35
  export interface Secret {
47
36
  id?: string;
48
37
  name?: Name;
@@ -56,3 +45,14 @@ export interface Secret {
56
45
  type?: 'opaque' | 'tls' | 'gcp' | 'aws' | 'ecr' | 'userpass' | 'keypair' | 'azure-sdk' | 'azure-connector' | 'docker' | 'dictionary' | 'nats-account';
57
46
  data?: SecretData;
58
47
  }
48
+ export type SecretData = Opaque | Tls | string | AwsKey | EcrPull | string | UsernamePassword | KeyPair | Dictionary | string | AzureConnector | NatsAccount;
49
+ export interface Tls {
50
+ key?: string;
51
+ cert: string;
52
+ chain?: string;
53
+ }
54
+ export interface UsernamePassword {
55
+ username: string;
56
+ password: string;
57
+ encoding?: 'plain' | 'base64';
58
+ }
@@ -1,10 +1,4 @@
1
- import { Name, Kind, Tags, Links } from './base';
2
- export interface ServiceAccountKey {
3
- name?: string;
4
- created?: Date;
5
- key?: string;
6
- description: string;
7
- }
1
+ import { Name, Kind, Tags, Links } from './base.js';
8
2
  export interface ServiceAccount {
9
3
  id?: string;
10
4
  name?: Name;
@@ -18,3 +12,9 @@ export interface ServiceAccount {
18
12
  keys?: ServiceAccountKey[];
19
13
  origin?: 'default' | 'builtin';
20
14
  }
15
+ export interface ServiceAccountKey {
16
+ name?: string;
17
+ created?: Date;
18
+ key?: string;
19
+ description: string;
20
+ }
@@ -1,4 +1,4 @@
1
- import { Name, Kind, Tags, Links } from './base';
1
+ import { Name, Kind, Tags, Links } from './base.js';
2
2
  export interface ClusterSpec {
3
3
  version?: '1.14.1';
4
4
  locations?: string[];
@@ -1,4 +1,4 @@
1
- import { VolumeSetStatus } from './volumeSet';
1
+ import { VolumeSetStatus } from './volumeSet.js';
2
2
  export interface StatefulSetStatus {
3
3
  replicaCount?: number;
4
4
  volumeSet?: VolumeSetStatus;
@@ -1,4 +1,4 @@
1
- import { Link } from './base';
1
+ import { Link } from './base.js';
2
2
  export interface Task {
3
3
  id?: string;
4
4
  kind?: 'task';
@@ -1,8 +1,4 @@
1
- import { Name, Kind, Tags, Links } from './base';
2
- export interface TenantSpec {
3
- orgs?: Name[];
4
- clusters?: Name[];
5
- }
1
+ import { Name, Kind, Tags, Links } from './base.js';
6
2
  export interface Tenant {
7
3
  id?: string;
8
4
  name?: Name;
@@ -18,3 +14,7 @@ export interface Tenant {
18
14
  clusters?: Name[];
19
15
  };
20
16
  }
17
+ export interface TenantSpec {
18
+ orgs?: Name[];
19
+ clusters?: Name[];
20
+ }
@@ -5,20 +5,28 @@ export interface LightstepTracing {
5
5
  export interface OpenTelemetry {
6
6
  endpoint: string;
7
7
  }
8
- export interface TracingCustomTag {
9
- literal?: {
10
- value?: string;
11
- };
12
- }
13
8
  export interface Tracing {
14
9
  sampling: number;
15
- lightstep?: LightstepTracing;
10
+ lightstep?: {
11
+ endpoint: string;
12
+ credentials?: string;
13
+ };
16
14
  customTags?: {
17
15
  [x: string]: TracingCustomTag;
18
16
  };
19
17
  provider?: {
20
- otel?: OpenTelemetry;
21
- lightstep?: LightstepTracing;
18
+ otel?: {
19
+ endpoint: string;
20
+ };
21
+ lightstep?: {
22
+ endpoint: string;
23
+ credentials?: string;
24
+ };
22
25
  controlplane?: {};
23
26
  };
24
27
  }
28
+ export interface TracingCustomTag {
29
+ literal?: {
30
+ value?: string;
31
+ };
32
+ }
@@ -1,4 +1,15 @@
1
- import { Tags, Links, ApiError } from './base';
1
+ import { ApiError, Tags, Links } from './base.js';
2
+ export interface InviteRequest {
3
+ emails?: string[];
4
+ }
5
+ export interface InviteResponse {
6
+ errors?: {
7
+ [x: string]: ApiError;
8
+ };
9
+ invitations?: {
10
+ [x: string]: string;
11
+ };
12
+ }
2
13
  export interface User {
3
14
  id?: string;
4
15
  name?: string;
@@ -11,14 +22,3 @@ export interface User {
11
22
  idp?: string;
12
23
  email?: string;
13
24
  }
14
- export interface InviteRequest {
15
- emails?: string[];
16
- }
17
- export interface InviteResponse {
18
- errors?: {
19
- [x: string]: ApiError;
20
- };
21
- invitations?: {
22
- [x: string]: string;
23
- };
24
- }
@@ -1,25 +1,26 @@
1
- import { Name, Kind, Tags, Links } from './base';
1
+ import { Name, Kind, Tags, Links } from './base.js';
2
+ export interface CustomEncryptionRegion {
3
+ keyId?: string;
4
+ }
2
5
  export interface FileSystem {
3
6
  name: string;
4
7
  accessMode: string;
5
8
  commandsSupported?: string[];
6
9
  }
10
+ export type FileSystemType = 'ext4' | 'xfs' | 'shared';
11
+ export interface MountResources {
12
+ maxCpu?: string;
13
+ minCpu?: string;
14
+ minMemory?: string;
15
+ maxMemory?: string;
16
+ }
7
17
  export interface PerformanceClass {
8
18
  name: string;
9
19
  minCapacity: number;
10
20
  maxCapacity: number;
11
21
  featuresSupported?: ('automatic-expansion' | 'snapshots')[];
12
22
  }
13
- export interface VolumeSnapshot {
14
- name: string;
15
- id?: string;
16
- created: Date;
17
- expires?: Date;
18
- size?: number;
19
- tags?: {
20
- [x: string]: string;
21
- }[];
22
- }
23
+ export type PerformanceClassName = 'general-purpose-ssd' | 'high-throughput-ssd' | 'shared';
23
24
  export interface PersistentVolumeStatus {
24
25
  lifecycle?: 'creating' | 'unused' | 'unbound' | 'bound' | 'deleted' | 'repairing';
25
26
  storageDeviceId?: string;
@@ -37,34 +38,24 @@ export interface PersistentVolumeStatus {
37
38
  };
38
39
  zone?: string;
39
40
  }
40
- export interface VolumeSetStatusLocation {
41
- name: string;
42
- volumes?: PersistentVolumeStatus[];
43
- desiredVolumeCount?: number;
44
- clusterId?: string;
45
- }
46
- export interface VolumeSetStatus {
47
- parentId?: string;
48
- usedByWorkload?: string;
49
- workloadLinks?: string[];
50
- bindingId?: string;
51
- locations?: VolumeSetStatusLocation[];
52
- }
53
41
  export interface SnapshotSpec {
54
42
  createFinalSnapshot?: boolean;
55
43
  retentionDuration?: string;
56
44
  schedule?: string;
57
45
  }
58
- export type PerformanceClassName = 'general-purpose-ssd' | 'high-throughput-ssd' | 'shared';
59
- export type FileSystemType = 'ext4' | 'xfs' | 'shared';
60
- export interface MountResources {
61
- maxCpu?: string;
62
- minCpu?: string;
63
- minMemory?: string;
64
- maxMemory?: string;
65
- }
66
- export interface CustomEncryptionRegion {
67
- keyId?: string;
46
+ export interface VolumeSet {
47
+ id?: string;
48
+ name?: Name;
49
+ kind?: Kind;
50
+ version?: number;
51
+ description?: string;
52
+ tags?: Tags;
53
+ created?: Date;
54
+ lastModified?: Date;
55
+ links?: Links;
56
+ spec: VolumeSetSpec;
57
+ status?: VolumeSetStatus;
58
+ gvc?: any;
68
59
  }
69
60
  export interface VolumeSetSpec {
70
61
  initialCapacity: number;
@@ -81,6 +72,14 @@ export interface VolumeSetSpec {
81
72
  maxCapacity?: number;
82
73
  minFreePercentage?: number;
83
74
  scalingFactor?: number;
75
+ predictive?: {
76
+ enabled?: boolean;
77
+ lookbackHours?: number;
78
+ projectionHours?: number;
79
+ minDataPoints?: number;
80
+ minGrowthRateGBPerHour?: number;
81
+ scalingFactor?: number;
82
+ };
84
83
  };
85
84
  mountOptions?: {
86
85
  resources?: {
@@ -91,17 +90,26 @@ export interface VolumeSetSpec {
91
90
  };
92
91
  };
93
92
  }
94
- export interface VolumeSet {
93
+ export interface VolumeSetStatus {
94
+ parentId?: string;
95
+ usedByWorkload?: string;
96
+ workloadLinks?: string[];
97
+ bindingId?: string;
98
+ locations?: VolumeSetStatusLocation[];
99
+ }
100
+ export interface VolumeSetStatusLocation {
101
+ name: string;
102
+ volumes?: PersistentVolumeStatus[];
103
+ desiredVolumeCount?: number;
104
+ clusterId?: string;
105
+ }
106
+ export interface VolumeSnapshot {
107
+ name: string;
95
108
  id?: string;
96
- name?: Name;
97
- kind?: Kind;
98
- version?: number;
99
- description?: string;
100
- tags?: Tags;
101
- created?: Date;
102
- lastModified?: Date;
103
- links?: Links;
104
- spec: VolumeSetSpec;
105
- status?: VolumeSetStatus;
106
- gvc?: any;
109
+ created: Date;
110
+ expires?: Date;
111
+ size?: number;
112
+ tags?: {
113
+ [x: string]: string;
114
+ }[];
107
115
  }