@controlplane/schema 1.0.7 → 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 +155 -148
  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 +64 -64
  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 +32 -32
  45. package/build/src/interfaces/orgLogging.d.ts +32 -32
  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 +203 -222
  62. package/build/src/interfaces/workloadOptions.d.ts +47 -14
  63. package/package.json +1 -1
@@ -1,44 +1,23 @@
1
- export type GoDuration = string;
2
- export interface Labels {
3
- [x: string]: string;
4
- }
5
- export interface Taint {
6
- key?: string;
7
- value?: string;
8
- effect?: 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute';
9
- }
10
- export type Taints = Taint[];
11
- export type NodePoolName = string;
12
- export type SshPublicKey = string;
13
1
  export interface AutoscalerConfig {
14
2
  expander?: ('random' | 'most-pods' | 'least-waste' | 'price')[];
15
3
  unneededTime?: string;
16
4
  unreadyTime?: string;
17
5
  utilizationThreshold?: number;
18
6
  }
19
- export interface UnmanagedPool {
20
- name: string;
21
- labels?: Labels;
22
- taints?: Taints;
23
- }
24
- export type PreInstallScript = string;
25
7
  export interface CacertsRes {
26
8
  cacerts?: string;
27
9
  }
28
- export interface ReadyRes {
29
- ready?: boolean;
30
- message?: string;
31
- }
32
- export interface JoinBody {
10
+ export type GoDuration = string;
11
+ export interface InitBody {
33
12
  [x: string]: any;
34
13
  }
35
- export interface JoinRes {
14
+ export interface InitRes {
36
15
  script?: string;
37
16
  }
38
- export interface InitBody {
17
+ export interface JoinBody {
39
18
  [x: string]: any;
40
19
  }
41
- export interface InitRes {
20
+ export interface JoinRes {
42
21
  script?: string;
43
22
  }
44
23
  export interface KubeConfigBody {
@@ -48,3 +27,24 @@ export interface KubeConfigRes {
48
27
  kubeconfig?: string;
49
28
  fileName?: string;
50
29
  }
30
+ export interface Labels {
31
+ [x: string]: string;
32
+ }
33
+ export type NodePoolName = string;
34
+ export type PreInstallScript = string;
35
+ export interface ReadyRes {
36
+ ready?: boolean;
37
+ message?: string;
38
+ }
39
+ export type SshPublicKey = string;
40
+ export interface Taint {
41
+ key?: string;
42
+ value?: string;
43
+ effect?: 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute';
44
+ }
45
+ export type Taints = Taint[];
46
+ export interface UnmanagedPool {
47
+ name: string;
48
+ labels?: Labels;
49
+ taints?: Taints;
50
+ }
@@ -1,5 +1,4 @@
1
- import { Labels, Taints, PreInstallScript, SshPublicKey, AutoscalerConfig } from './mk8sCommon';
2
- export type ValidTag = string;
1
+ import { Labels, Taints, PreInstallScript, SshPublicKey, AutoscalerConfig } from './mk8sCommon.js';
3
2
  export interface DigitalOceanPool {
4
3
  name: string;
5
4
  labels?: Labels;
@@ -30,3 +29,4 @@ export interface DigitalOceanProvider {
30
29
  export interface DigitalOceanProviderStatus {
31
30
  [x: string]: any;
32
31
  }
32
+ export type ValidTag = string;
@@ -1,4 +1,4 @@
1
- import { Labels, Taints } from './mk8sCommon';
1
+ import { Labels, Taints } from './mk8sCommon.js';
2
2
  export interface EphemeralPool {
3
3
  name: string;
4
4
  labels?: Labels;
@@ -1,12 +1,4 @@
1
- import { Labels, Taints, PreInstallScript, AutoscalerConfig } from './mk8sCommon';
2
- export interface Image {
3
- recommended?: 'ubuntu/jammy-22.04' | 'ubuntu/noble-24.04' | 'debian/bookworm-12' | 'debian/trixie-13' | 'google/cos-stable';
4
- family?: {
5
- project: string;
6
- family: string;
7
- };
8
- exact?: string;
9
- }
1
+ import { Labels, Taints, PreInstallScript, AutoscalerConfig } from './mk8sCommon.js';
10
2
  export interface GcpPool {
11
3
  name: string;
12
4
  labels?: Labels;
@@ -54,3 +46,11 @@ export interface GcpProvider {
54
46
  export interface GcpProviderStatus {
55
47
  [x: string]: any;
56
48
  }
49
+ export interface Image {
50
+ recommended?: 'ubuntu/jammy-22.04' | 'ubuntu/noble-24.04' | 'debian/bookworm-12' | 'debian/trixie-13' | 'google/cos-stable';
51
+ family?: {
52
+ project: string;
53
+ family: string;
54
+ };
55
+ exact?: string;
56
+ }
@@ -1,4 +1,8 @@
1
- import { Labels, Taints } from './mk8sCommon';
1
+ import { Labels, Taints } from './mk8sCommon.js';
2
+ export interface GenericJoinParams {
3
+ nodePoolName: string;
4
+ [x: string]: any;
5
+ }
2
6
  export interface GenericPool {
3
7
  name: string;
4
8
  labels?: Labels;
@@ -16,7 +20,3 @@ export interface GenericProvider {
16
20
  export interface GenericProviderStatus {
17
21
  [x: string]: any;
18
22
  }
19
- export interface GenericJoinParams {
20
- nodePoolName: string;
21
- [x: string]: any;
22
- }
@@ -1,9 +1,14 @@
1
- import { Labels, Taints, PreInstallScript, AutoscalerConfig } from './mk8sCommon';
1
+ import { Labels, Taints, PreInstallScript, AutoscalerConfig } from './mk8sCommon.js';
2
2
  export interface DedicatedServerHetznerPool {
3
3
  name: string;
4
4
  labels?: Labels;
5
5
  taints?: Taints;
6
6
  }
7
+ export interface HetznerJoinParams {
8
+ ipAddress?: string;
9
+ nodePoolName: string;
10
+ [x: string]: any;
11
+ }
7
12
  export interface HetznerPool {
8
13
  name: string;
9
14
  labels?: Labels;
@@ -13,11 +18,6 @@ export interface HetznerPool {
13
18
  minSize: number;
14
19
  maxSize: number;
15
20
  }
16
- export interface NetworkingConfig {
17
- serviceNetwork?: '10.43.0.0/16' | '192.168.0.0/16';
18
- podNetwork?: '10.42.0.0/16' | '172.16.0.0/15' | '172.18.0.0/15' | '172.20.0.0/15' | '172.22.0.0/15' | '172.24.0.0/15' | '172.26.0.0/15' | '172.28.0.0/15' | '172.30.0.0/15';
19
- dnsForwarder?: string;
20
- }
21
21
  export interface HetznerProvider {
22
22
  region: 'fsn1' | 'nbg1' | 'hel1' | 'ash' | 'hil';
23
23
  hetznerLabels?: {
@@ -40,8 +40,8 @@ export interface HetznerProvider {
40
40
  export interface HetznerProviderStatus {
41
41
  [x: string]: any;
42
42
  }
43
- export interface HetznerJoinParams {
44
- ipAddress?: string;
45
- nodePoolName: string;
46
- [x: string]: any;
43
+ export interface NetworkingConfig {
44
+ serviceNetwork?: '10.43.0.0/16' | '192.168.0.0/16';
45
+ podNetwork?: '10.42.0.0/16' | '172.16.0.0/15' | '172.18.0.0/15' | '172.20.0.0/15' | '172.22.0.0/15' | '172.24.0.0/15' | '172.26.0.0/15' | '172.28.0.0/15' | '172.30.0.0/15';
46
+ dnsForwarder?: string;
47
47
  }
@@ -1,4 +1,8 @@
1
- import { Labels, Taints, UnmanagedPool, AutoscalerConfig, PreInstallScript } from './mk8sCommon';
1
+ import { Labels, Taints, UnmanagedPool, AutoscalerConfig, PreInstallScript } from './mk8sCommon.js';
2
+ export interface LambdalabsJoinParams {
3
+ nodePoolName: string;
4
+ [x: string]: any;
5
+ }
2
6
  export interface LambdalabsPool {
3
7
  name: string;
4
8
  labels?: Labels;
@@ -20,7 +24,3 @@ export interface LambdalabsProvider {
20
24
  export interface LambdalabsProviderStatus {
21
25
  [x: string]: any;
22
26
  }
23
- export interface LambdalabsJoinParams {
24
- nodePoolName: string;
25
- [x: string]: any;
26
- }
@@ -1,4 +1,9 @@
1
- import { Labels, Taints, PreInstallScript, AutoscalerConfig } from './mk8sCommon';
1
+ import { Labels, Taints, PreInstallScript, AutoscalerConfig } from './mk8sCommon.js';
2
+ export interface LinodeJoinParams {
3
+ ipAddress?: string;
4
+ nodePoolName: string;
5
+ [x: string]: any;
6
+ }
2
7
  export interface LinodePool {
3
8
  name: string;
4
9
  labels?: Labels;
@@ -29,8 +34,3 @@ export interface LinodeProvider {
29
34
  export interface LinodeProviderStatus {
30
35
  [x: string]: any;
31
36
  }
32
- export interface LinodeJoinParams {
33
- ipAddress?: string;
34
- nodePoolName: string;
35
- [x: string]: any;
36
- }
@@ -1,4 +1,8 @@
1
- import { Labels, Taints, UnmanagedPool, AutoscalerConfig, PreInstallScript } from './mk8sCommon';
1
+ import { Labels, Taints, UnmanagedPool, AutoscalerConfig, PreInstallScript } from './mk8sCommon.js';
2
+ export interface OblivusJoinParams {
3
+ nodePoolName: string;
4
+ [x: string]: any;
5
+ }
2
6
  export interface OblivusPool {
3
7
  name: string;
4
8
  labels?: Labels;
@@ -19,7 +23,3 @@ export interface OblivusProvider {
19
23
  export interface OblivusProviderStatus {
20
24
  [x: string]: any;
21
25
  }
22
- export interface OblivusJoinParams {
23
- nodePoolName: string;
24
- [x: string]: any;
25
- }
@@ -1,4 +1,8 @@
1
- import { Labels, Taints, AutoscalerConfig, UnmanagedPool, PreInstallScript } from './mk8sCommon';
1
+ import { Labels, Taints, AutoscalerConfig, UnmanagedPool, PreInstallScript } from './mk8sCommon.js';
2
+ export interface PaperspaceJoinParams {
3
+ nodePoolName: string;
4
+ [x: string]: any;
5
+ }
2
6
  export interface PaperspacePool {
3
7
  name: string;
4
8
  labels?: Labels;
@@ -23,7 +27,3 @@ export interface PaperspaceProvider {
23
27
  export interface PaperspaceProviderStatus {
24
28
  [x: string]: any;
25
29
  }
26
- export interface PaperspaceJoinParams {
27
- nodePoolName: string;
28
- [x: string]: any;
29
- }
@@ -1,17 +1,8 @@
1
- import { Labels, Taints, PreInstallScript, SshPublicKey, AutoscalerConfig } from './mk8sCommon';
2
- export interface TritonPool {
3
- name: string;
4
- labels?: Labels;
5
- taints?: Taints;
6
- packageId: string;
7
- overrideImageId?: string;
8
- publicNetworkId?: string;
9
- privateNetworkIds?: string[];
10
- tritonTags?: {
11
- [x: string]: string;
12
- };
13
- minSize: number;
14
- maxSize: number;
1
+ import { Labels, Taints, PreInstallScript, SshPublicKey, AutoscalerConfig } from './mk8sCommon.js';
2
+ export interface LoadBalancerConfig {
3
+ manual?: Manual;
4
+ none?: {};
5
+ gateway?: {};
15
6
  }
16
7
  export interface Manual {
17
8
  packageId: string;
@@ -32,17 +23,30 @@ export interface Manual {
32
23
  cnsInternalDomain: string;
33
24
  cnsPublicDomain: string;
34
25
  }
35
- export interface LoadBalancerConfig {
36
- manual?: Manual;
37
- none?: {};
38
- gateway?: {};
39
- }
40
26
  export interface SdcConnection {
41
27
  url: string;
42
28
  account: string;
43
29
  user?: string;
44
30
  privateKeySecretLink: string;
45
31
  }
32
+ export interface TritonJoinParams {
33
+ nodePoolName: string;
34
+ [x: string]: any;
35
+ }
36
+ export interface TritonPool {
37
+ name: string;
38
+ labels?: Labels;
39
+ taints?: Taints;
40
+ packageId: string;
41
+ overrideImageId?: string;
42
+ publicNetworkId?: string;
43
+ privateNetworkIds?: string[];
44
+ tritonTags?: {
45
+ [x: string]: string;
46
+ };
47
+ minSize: number;
48
+ maxSize: number;
49
+ }
46
50
  export interface TritonProvider {
47
51
  connection: {
48
52
  url: string;
@@ -68,7 +72,3 @@ export interface TritonProvider {
68
72
  export interface TritonProviderStatus {
69
73
  [x: string]: any;
70
74
  }
71
- export interface TritonJoinParams {
72
- nodePoolName: string;
73
- [x: string]: any;
74
- }
@@ -1,11 +1,6 @@
1
- import { S3Logging, CoralogixLogging, DatadogLogging, LogzioLogging, ElasticLogging, CloudWatchLogging, FluentdLogging, StackdriverLogging, SyslogLogging, OpenTelemetryLogging } from './orgLogging';
2
- import { Tracing } from './tracing';
3
- import { Kind, Tags, Links } from './base';
4
- export interface OrgStatus {
5
- accountLink?: string;
6
- active?: boolean;
7
- endpointPrefix?: string;
8
- }
1
+ import { Kind, Tags, Links } from './base.js';
2
+ import { S3Logging, CoralogixLogging, DatadogLogging, LogzioLogging, ElasticLogging, CloudWatchLogging, FluentdLogging, StackdriverLogging, SyslogLogging, OpenTelemetryLogging } from './orgLogging.js';
3
+ import { Tracing } from './tracing.js';
9
4
  export interface AuthConfig {
10
5
  domainAutoMembers?: string[];
11
6
  samlOnly?: boolean;
@@ -16,14 +11,23 @@ export interface ObservabilityConfig {
16
11
  tracesRetentionDays?: number;
17
12
  defaultAlertEmails?: string[];
18
13
  }
19
- export interface ThreatDetection {
20
- enabled: boolean;
21
- minimumSeverity?: 'warning' | 'error' | 'critical';
22
- syslog?: {
23
- transport?: 'tcp' | 'udp';
24
- host: string;
25
- port: number;
26
- };
14
+ export interface Org {
15
+ id?: string;
16
+ kind?: Kind;
17
+ version?: number;
18
+ description?: string;
19
+ tags?: Tags;
20
+ created?: Date;
21
+ lastModified?: Date;
22
+ links?: Links;
23
+ name?: string;
24
+ spec?: OrgSpec;
25
+ status?: OrgStatus;
26
+ }
27
+ export interface OrgConfig {
28
+ awsPrivateLinks?: string[];
29
+ gcpServiceConnects?: string[];
30
+ quotaOverrides?: QuotaOverride[];
27
31
  }
28
32
  export interface OrgSpec {
29
33
  logging?: {
@@ -63,25 +67,21 @@ export interface OrgSpec {
63
67
  threatDetection?: ThreatDetection;
64
68
  };
65
69
  }
66
- export interface Org {
67
- id?: string;
68
- kind?: Kind;
69
- version?: number;
70
- description?: string;
71
- tags?: Tags;
72
- created?: Date;
73
- lastModified?: Date;
74
- links?: Links;
75
- name?: string;
76
- spec?: OrgSpec;
77
- status?: OrgStatus;
70
+ export interface OrgStatus {
71
+ accountLink?: string;
72
+ active?: boolean;
73
+ endpointPrefix?: string;
78
74
  }
79
75
  export interface QuotaOverride {
80
76
  name: string;
81
77
  max: number;
82
78
  }
83
- export interface OrgConfig {
84
- awsPrivateLinks?: string[];
85
- gcpServiceConnects?: string[];
86
- quotaOverrides?: QuotaOverride[];
79
+ export interface ThreatDetection {
80
+ enabled: boolean;
81
+ minimumSeverity?: 'warning' | 'error' | 'critical';
82
+ syslog?: {
83
+ transport?: 'tcp' | 'udp';
84
+ host: string;
85
+ port: number;
86
+ };
87
87
  }
@@ -1,35 +1,3 @@
1
- export interface S3Logging {
2
- bucket: string;
3
- region: string;
4
- prefix?: string;
5
- credentials: string;
6
- }
7
- export interface SyslogLogging {
8
- host: string;
9
- port: number;
10
- mode: 'tcp' | 'udp' | 'tls';
11
- format: 'rfc3164' | 'rfc5424';
12
- severity: number;
13
- }
14
- export interface DatadogLogging {
15
- host: 'http-intake.logs.datadoghq.com' | 'http-intake.logs.us3.datadoghq.com' | 'http-intake.logs.us5.datadoghq.com' | 'http-intake.logs.datadoghq.eu';
16
- credentials: string;
17
- }
18
- export interface OpenTelemetryLogging {
19
- endpoint: string;
20
- headers?: {
21
- [x: string]: string;
22
- };
23
- credentials?: string;
24
- }
25
- export interface LogzioLogging {
26
- listenerHost: 'listener.logz.io' | 'listener-nl.logz.io';
27
- credentials: string;
28
- }
29
- export interface FluentdLogging {
30
- host: string;
31
- port?: number;
32
- }
33
1
  export interface CloudWatchLogging {
34
2
  region: 'us-east-1' | 'us-east-2' | 'us-west-1' | 'us-west-2' | 'ap-south-1' | 'ap-northeast-2' | 'ap-southeast-1' | 'ap-southeast-2' | 'ap-northeast-1' | 'eu-central-1' | 'eu-west-1' | 'eu-west-2' | 'eu-south-1' | 'eu-west-3' | 'eu-north-1' | 'me-south-1' | 'sa-east-1' | 'af-south-1';
35
3
  credentials: string;
@@ -46,6 +14,10 @@ export interface CoralogixLogging {
46
14
  app?: string;
47
15
  subsystem?: string;
48
16
  }
17
+ export interface DatadogLogging {
18
+ host: 'http-intake.logs.datadoghq.com' | 'http-intake.logs.us3.datadoghq.com' | 'http-intake.logs.us5.datadoghq.com' | 'http-intake.logs.datadoghq.eu';
19
+ credentials: string;
20
+ }
49
21
  export interface ElasticLogging {
50
22
  aws?: {
51
23
  host: string;
@@ -72,7 +44,35 @@ export interface ElasticLogging {
72
44
  password?: string;
73
45
  };
74
46
  }
47
+ export interface FluentdLogging {
48
+ host: string;
49
+ port?: number;
50
+ }
51
+ export interface LogzioLogging {
52
+ listenerHost: 'listener.logz.io' | 'listener-nl.logz.io';
53
+ credentials: string;
54
+ }
55
+ export interface OpenTelemetryLogging {
56
+ endpoint: string;
57
+ headers?: {
58
+ [x: string]: string;
59
+ };
60
+ credentials?: string;
61
+ }
62
+ export interface S3Logging {
63
+ bucket: string;
64
+ region: string;
65
+ prefix?: string;
66
+ credentials: string;
67
+ }
75
68
  export interface StackdriverLogging {
76
69
  credentials: string;
77
70
  location: 'us-east1' | 'us-east4' | 'us-central1' | 'us-west1' | 'europe-west4' | 'europe-west1' | 'europe-west3' | 'europe-west2' | 'asia-east1' | 'asia-southeast1' | 'asia-northeast1' | 'asia-south1' | 'australia-southeast1' | 'southamerica-east1' | 'africa-south1' | 'asia-east2' | 'asia-northeast2' | 'asia-northeast3' | 'asia-south2' | 'asia-southeast2' | 'australia-southeast2' | 'europe-central2' | 'europe-north1' | 'europe-southwest1' | 'europe-west10' | 'europe-west12' | 'europe-west6' | 'europe-west8' | 'europe-west9' | 'me-central1' | 'me-central2' | 'me-west1' | 'northamerica-northeast1' | 'northamerica-northeast2' | 'southamerica-west1' | 'us-east5' | 'us-south1' | 'us-west2' | 'us-west3' | 'us-west4';
78
71
  }
72
+ export interface SyslogLogging {
73
+ host: string;
74
+ port: number;
75
+ mode: 'tcp' | 'udp' | 'tls';
76
+ format: 'rfc3164' | 'rfc5424';
77
+ severity: number;
78
+ }
@@ -1,4 +1,4 @@
1
- import { Links } from './base';
1
+ import { Links } from './base.js';
2
2
  export interface Permission {
3
3
  name: string;
4
4
  description?: string;
@@ -1,5 +1,5 @@
1
- import { Name, Kind, Tags, Links } from './base';
2
- import { Query } from './query';
1
+ import { Name, Kind, Tags, Links } from './base.js';
2
+ import { Query } from './query.js';
3
3
  export interface Binding {
4
4
  permissions: string[];
5
5
  principalLinks: string[];
@@ -1,11 +1,11 @@
1
- import { Kind, Links } from './base';
2
- export interface PolicySummary {
3
- link?: string;
4
- description?: string;
5
- targetKind?: Kind;
6
- }
1
+ import { Kind, Links } from './base.js';
7
2
  export interface PolicyMembership {
8
3
  kind?: Kind;
9
4
  policies?: PolicySummary[];
10
5
  links?: Links;
11
6
  }
7
+ export interface PolicySummary {
8
+ link?: string;
9
+ description?: string;
10
+ targetKind?: Kind;
11
+ }
@@ -1,26 +1,18 @@
1
- import { Kind, Link } from './base';
2
- export interface Term {
3
- op?: '=' | '>' | '>=' | '<' | '<=' | '!=' | '~' | 'exists' | '!exists';
4
- property?: string;
5
- rel?: string;
6
- tag?: string;
7
- value?: string | number | boolean | Date;
8
- }
9
- export interface Spec {
10
- match?: 'all' | 'any' | 'none';
11
- terms?: Term[];
12
- sort?: {
13
- by: string;
14
- order?: 'asc' | 'desc';
15
- };
16
- }
1
+ import { Kind, Link } from './base.js';
17
2
  export interface Query {
18
3
  kind?: Kind;
19
4
  context?: {
20
5
  [x: string]: any;
21
6
  };
22
7
  fetch?: 'links' | 'items';
23
- spec?: Spec;
8
+ spec?: {
9
+ match?: 'all' | 'any' | 'none';
10
+ terms?: Term[];
11
+ sort?: {
12
+ by: string;
13
+ order?: 'asc' | 'desc';
14
+ };
15
+ };
24
16
  }
25
17
  export interface QueryResult {
26
18
  kind?: 'queryresult';
@@ -29,3 +21,18 @@ export interface QueryResult {
29
21
  links: Link[];
30
22
  query?: Query;
31
23
  }
24
+ export interface Spec {
25
+ match?: 'all' | 'any' | 'none';
26
+ terms?: Term[];
27
+ sort?: {
28
+ by: string;
29
+ order?: 'asc' | 'desc';
30
+ };
31
+ }
32
+ export interface Term {
33
+ op?: '=' | '>' | '>=' | '<' | '<=' | '!=' | '~' | 'exists' | '!exists';
34
+ property?: string;
35
+ rel?: string;
36
+ tag?: string;
37
+ value?: string | number | boolean | Date;
38
+ }
@@ -1,4 +1,4 @@
1
- import { Kind, Name, Links } from './base';
1
+ import { Kind, Name, Links } from './base.js';
2
2
  export interface Quota {
3
3
  id?: string;
4
4
  kind?: Kind;
@@ -1,4 +1,4 @@
1
- import { Kind, Links } from './base';
1
+ import { Kind, Links } from './base.js';
2
2
  export interface ResourcePolicy {
3
3
  id?: string;
4
4
  kind?: Kind;
@@ -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
+ }