@cloudfleet/sdk 0.7.0 → 0.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schemas.gen.d.ts +503 -124
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +516 -144
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +43 -5
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +72 -5
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +509 -53
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +259 -106
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +193 -64
- package/dist/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/schemas.gen.js
CHANGED
|
@@ -286,7 +286,8 @@ export const ClusterCreateInputSchema = {
|
|
|
286
286
|
pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
287
287
|
description: 'Version of the kubernetes cluster.',
|
|
288
288
|
default: '1.x.x-cfke.x',
|
|
289
|
-
example: '1.
|
|
289
|
+
example: '1.x.x-cfke.x',
|
|
290
|
+
enum: ['1.x.x-cfke.x', '1.31.x-cfke.x', '1.32.x-cfke.x', '1.33.x-cfke.x']
|
|
290
291
|
}
|
|
291
292
|
},
|
|
292
293
|
required: ['name', 'tier'],
|
|
@@ -323,7 +324,7 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
323
324
|
kubernetes: {
|
|
324
325
|
type: 'string',
|
|
325
326
|
description: 'Kubernetes version of the cluster.',
|
|
326
|
-
example: '1.
|
|
327
|
+
example: '1.33.7'
|
|
327
328
|
},
|
|
328
329
|
tailscale: {
|
|
329
330
|
type: 'string',
|
|
@@ -396,13 +397,6 @@ export const ClusterSchema = {
|
|
|
396
397
|
example: 'northamerica-central-1a',
|
|
397
398
|
enum: ['staging', 'northamerica-central-1', 'europe-central-1a', 'northamerica-central-1a']
|
|
398
399
|
},
|
|
399
|
-
version_channel: {
|
|
400
|
-
type: 'string',
|
|
401
|
-
pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
402
|
-
description: 'Version of the kubernetes cluster.',
|
|
403
|
-
default: '1.x.x-cfke.x',
|
|
404
|
-
example: '1.29.x-cfke.x'
|
|
405
|
-
},
|
|
406
400
|
id: {
|
|
407
401
|
type: 'string',
|
|
408
402
|
format: 'uuid',
|
|
@@ -438,7 +432,7 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
438
432
|
version_current: {
|
|
439
433
|
type: 'string',
|
|
440
434
|
description: 'Current version of the cluster.',
|
|
441
|
-
example: '1.
|
|
435
|
+
example: '1.33.7-cfke.264'
|
|
442
436
|
},
|
|
443
437
|
created_at: {
|
|
444
438
|
type: 'string',
|
|
@@ -454,6 +448,12 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
454
448
|
type: 'boolean',
|
|
455
449
|
description: 'Indicates if the cluster is ready to be used.',
|
|
456
450
|
example: true
|
|
451
|
+
},
|
|
452
|
+
version_channel: {
|
|
453
|
+
type: 'string',
|
|
454
|
+
pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
455
|
+
description: 'Version of the kubernetes cluster.',
|
|
456
|
+
example: '1.x.x-cfke.x'
|
|
457
457
|
}
|
|
458
458
|
},
|
|
459
459
|
required: ['name', 'tier', 'id', 'status'],
|
|
@@ -480,7 +480,7 @@ export const ClusterUpdateInputSchema = {
|
|
|
480
480
|
type: 'string',
|
|
481
481
|
pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
482
482
|
description: 'Version of the kubernetes cluster.',
|
|
483
|
-
example: '1.
|
|
483
|
+
example: '1.x.x-cfke.x'
|
|
484
484
|
}
|
|
485
485
|
},
|
|
486
486
|
required: ['tier'],
|
|
@@ -739,9 +739,8 @@ export const InvoiceSchema = {
|
|
|
739
739
|
properties: {
|
|
740
740
|
id: {
|
|
741
741
|
type: 'string',
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
742
|
+
description: 'Unique identifier of the invoice.',
|
|
743
|
+
example: 'in_1234567890xCrwxghOTj1234'
|
|
745
744
|
},
|
|
746
745
|
number: {
|
|
747
746
|
type: 'string'
|
|
@@ -787,87 +786,143 @@ export const InvoiceSchema = {
|
|
|
787
786
|
required: ['created', 'period_start', 'period_end'],
|
|
788
787
|
additionalProperties: false
|
|
789
788
|
};
|
|
790
|
-
export const
|
|
789
|
+
export const MarketplaceListingFilesSchema = {
|
|
791
790
|
type: 'object',
|
|
792
791
|
properties: {
|
|
793
|
-
|
|
794
|
-
type: 'string',
|
|
795
|
-
maxLength: 63,
|
|
796
|
-
minLength: 1,
|
|
797
|
-
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
798
|
-
description: 'Id of the chart listing',
|
|
799
|
-
example: 'portworx-enterprise-disaster-recovery-baremetal'
|
|
800
|
-
},
|
|
801
|
-
name: {
|
|
802
|
-
type: 'string',
|
|
803
|
-
description: 'Name of the chart listing',
|
|
804
|
-
example: 'Portworx Enterprise + Disaster Recovery - Baremetal'
|
|
805
|
-
},
|
|
806
|
-
developer: {
|
|
792
|
+
chartYaml: {
|
|
807
793
|
type: 'string',
|
|
808
|
-
description: '
|
|
809
|
-
example:
|
|
794
|
+
description: 'Raw Chart.yaml content from the Helm chart',
|
|
795
|
+
example: `apiVersion: v2
|
|
796
|
+
name: nginx-ingress
|
|
797
|
+
version: 1.18.2-cfke.45
|
|
798
|
+
appVersion: 1.9.4`
|
|
810
799
|
},
|
|
811
|
-
|
|
800
|
+
valuesYaml: {
|
|
812
801
|
type: 'string',
|
|
813
|
-
description: '
|
|
814
|
-
example:
|
|
802
|
+
description: 'Raw values.yaml content from the Helm chart',
|
|
803
|
+
example: `replicaCount: 1
|
|
804
|
+
image:
|
|
805
|
+
repository: nginx
|
|
806
|
+
tag: latest`
|
|
815
807
|
},
|
|
816
|
-
|
|
808
|
+
valuesSchemaJson: {
|
|
817
809
|
type: 'string',
|
|
818
|
-
description: '
|
|
819
|
-
example: '
|
|
820
|
-
}
|
|
821
|
-
|
|
810
|
+
description: 'JSON schema for values.yaml as a string',
|
|
811
|
+
example: '{"type":"object","properties":{"replicaCount":{"type":"number"}}}'
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
additionalProperties: false
|
|
815
|
+
};
|
|
816
|
+
export const MarketplaceListingSchema = {
|
|
817
|
+
type: 'object',
|
|
818
|
+
properties: {
|
|
819
|
+
name: {
|
|
822
820
|
type: 'string',
|
|
823
|
-
description: '
|
|
824
|
-
example: '
|
|
821
|
+
description: 'Name of the chart',
|
|
822
|
+
example: 'nginx-ingress'
|
|
825
823
|
},
|
|
826
|
-
|
|
824
|
+
versions: {
|
|
827
825
|
type: 'array',
|
|
828
826
|
items: {
|
|
829
827
|
type: 'string',
|
|
830
|
-
|
|
828
|
+
pattern: '^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
829
|
+
description: 'Specific version of the chart',
|
|
830
|
+
example: '1.18.2-cfke.45'
|
|
831
831
|
},
|
|
832
|
-
description: '
|
|
832
|
+
description: 'Available versions of the chart'
|
|
833
833
|
},
|
|
834
834
|
version_channels: {
|
|
835
835
|
type: 'array',
|
|
836
836
|
items: {
|
|
837
837
|
type: 'string',
|
|
838
838
|
pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
839
|
-
description: 'Version
|
|
840
|
-
example: '
|
|
841
|
-
}
|
|
839
|
+
description: 'Version channel pattern',
|
|
840
|
+
example: '1.18.x-cfke.x'
|
|
841
|
+
},
|
|
842
|
+
description: 'Version channels for the chart'
|
|
842
843
|
},
|
|
843
|
-
|
|
844
|
-
type: '
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
844
|
+
latestVersion: {
|
|
845
|
+
type: 'string',
|
|
846
|
+
description: 'Latest version of the chart',
|
|
847
|
+
example: '1.18.2-cfke.45'
|
|
848
|
+
},
|
|
849
|
+
metadata: {
|
|
850
|
+
type: 'object',
|
|
851
|
+
properties: {
|
|
852
|
+
name: {
|
|
853
|
+
type: 'string',
|
|
854
|
+
description: 'Chart name from metadata',
|
|
855
|
+
example: 'nginx-ingress'
|
|
856
|
+
},
|
|
857
|
+
version: {
|
|
858
|
+
type: 'string',
|
|
859
|
+
description: 'Chart version from metadata',
|
|
860
|
+
example: '1.18.2-cfke.45'
|
|
861
|
+
},
|
|
862
|
+
description: {
|
|
863
|
+
type: 'string',
|
|
864
|
+
description: 'Chart description',
|
|
865
|
+
example: 'NGINX Ingress Controller for Kubernetes'
|
|
866
|
+
},
|
|
867
|
+
appVersion: {
|
|
868
|
+
type: 'string',
|
|
869
|
+
description: 'Application version',
|
|
870
|
+
example: '1.9.4'
|
|
871
|
+
},
|
|
872
|
+
apiVersion: {
|
|
873
|
+
type: 'string',
|
|
874
|
+
description: 'Helm API version',
|
|
875
|
+
example: 'v2'
|
|
876
|
+
},
|
|
877
|
+
keywords: {
|
|
878
|
+
type: 'array',
|
|
879
|
+
items: {
|
|
880
|
+
type: 'string'
|
|
853
881
|
},
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
882
|
+
description: 'Chart keywords',
|
|
883
|
+
example: ['ingress', 'nginx', 'load-balancer']
|
|
884
|
+
},
|
|
885
|
+
home: {
|
|
886
|
+
type: 'string',
|
|
887
|
+
description: 'Chart home URL',
|
|
888
|
+
example: 'https://kubernetes.github.io/ingress-nginx/'
|
|
889
|
+
},
|
|
890
|
+
sources: {
|
|
891
|
+
type: 'array',
|
|
892
|
+
items: {
|
|
893
|
+
type: 'string'
|
|
857
894
|
},
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
description: 'Schema of the chart values',
|
|
861
|
-
example: `foo: 1
|
|
862
|
-
bar: example`
|
|
863
|
-
}
|
|
895
|
+
description: 'Chart source URLs',
|
|
896
|
+
example: ['https://github.com/kubernetes/ingress-nginx']
|
|
864
897
|
},
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
898
|
+
maintainers: {
|
|
899
|
+
type: 'array',
|
|
900
|
+
items: {
|
|
901
|
+
type: 'object',
|
|
902
|
+
properties: {
|
|
903
|
+
name: {
|
|
904
|
+
type: 'string',
|
|
905
|
+
description: 'Maintainer name',
|
|
906
|
+
example: 'NGINX Team'
|
|
907
|
+
},
|
|
908
|
+
email: {
|
|
909
|
+
type: 'string',
|
|
910
|
+
description: 'Maintainer email',
|
|
911
|
+
example: 'support@nginx.org'
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
required: ['name'],
|
|
915
|
+
additionalProperties: false
|
|
916
|
+
},
|
|
917
|
+
description: 'Chart maintainers'
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
required: ['name', 'version'],
|
|
921
|
+
additionalProperties: false,
|
|
922
|
+
description: 'Chart metadata'
|
|
868
923
|
}
|
|
869
924
|
},
|
|
870
|
-
required: ['
|
|
925
|
+
required: ['name', 'versions', 'version_channels', 'latestVersion'],
|
|
871
926
|
additionalProperties: false
|
|
872
927
|
};
|
|
873
928
|
export const OrganizationCreateInputSchema = {
|
|
@@ -985,12 +1040,12 @@ export const OrganizationSchema = {
|
|
|
985
1040
|
id: {
|
|
986
1041
|
type: 'string',
|
|
987
1042
|
description: 'Id of the control plane version. Used in API calls.',
|
|
988
|
-
example: '1.
|
|
1043
|
+
example: '1.33.x-cfke.x'
|
|
989
1044
|
},
|
|
990
1045
|
label: {
|
|
991
1046
|
type: 'string',
|
|
992
1047
|
description: 'Label of the control plane version. Used in frontent UI.',
|
|
993
|
-
example: '1.
|
|
1048
|
+
example: '1.33.x (Always latest 1.33 patch version)'
|
|
994
1049
|
}
|
|
995
1050
|
},
|
|
996
1051
|
required: ['id', 'label'],
|
|
@@ -998,9 +1053,21 @@ export const OrganizationSchema = {
|
|
|
998
1053
|
},
|
|
999
1054
|
minItems: 1,
|
|
1000
1055
|
description: 'List of CFKE control plane versions available for the organization.'
|
|
1056
|
+
},
|
|
1057
|
+
copilot_user_hourly_tokens: {
|
|
1058
|
+
type: 'integer',
|
|
1059
|
+
minimum: 0,
|
|
1060
|
+
description: 'User-level maximum number of tokens Cloudfleet Copilot can process per hour.',
|
|
1061
|
+
example: 42000
|
|
1062
|
+
},
|
|
1063
|
+
copilot_organization_hourly_tokens: {
|
|
1064
|
+
type: 'integer',
|
|
1065
|
+
minimum: 0,
|
|
1066
|
+
description: 'Organization-level maximum number of tokens Cloudfleet Copilot can process per hour.',
|
|
1067
|
+
example: 242000
|
|
1001
1068
|
}
|
|
1002
1069
|
},
|
|
1003
|
-
required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'cluster_tiers', 'regions', 'versions'],
|
|
1070
|
+
required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'cluster_tiers', 'regions', 'versions', 'copilot_user_hourly_tokens', 'copilot_organization_hourly_tokens'],
|
|
1004
1071
|
additionalProperties: false,
|
|
1005
1072
|
description: 'For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota.'
|
|
1006
1073
|
},
|
|
@@ -1066,6 +1133,273 @@ export const PaymentMethodSchema = {
|
|
|
1066
1133
|
required: ['id', 'setup', 'type', 'last4', 'exp_month', 'exp_year', 'brand'],
|
|
1067
1134
|
additionalProperties: false
|
|
1068
1135
|
};
|
|
1136
|
+
export const PlatformQuotaSchema = {
|
|
1137
|
+
type: 'object',
|
|
1138
|
+
properties: {
|
|
1139
|
+
basic_clusters_max: {
|
|
1140
|
+
type: 'integer',
|
|
1141
|
+
minimum: 0,
|
|
1142
|
+
description: 'Maximum number of Basic clusters that can be created.',
|
|
1143
|
+
example: 999
|
|
1144
|
+
},
|
|
1145
|
+
basic_clusters_available: {
|
|
1146
|
+
type: 'integer',
|
|
1147
|
+
description: 'Available number of Basic clusters that can be created.',
|
|
1148
|
+
example: 999
|
|
1149
|
+
},
|
|
1150
|
+
pro_clusters_max: {
|
|
1151
|
+
type: 'integer',
|
|
1152
|
+
minimum: 0,
|
|
1153
|
+
description: 'Maximum number of Pro clusters that can be created.',
|
|
1154
|
+
example: 999
|
|
1155
|
+
},
|
|
1156
|
+
pro_clusters_available: {
|
|
1157
|
+
type: 'integer',
|
|
1158
|
+
description: 'Available number of Pro clusters that can be created.',
|
|
1159
|
+
example: 999
|
|
1160
|
+
},
|
|
1161
|
+
fleets_max: {
|
|
1162
|
+
type: 'integer',
|
|
1163
|
+
minimum: 0,
|
|
1164
|
+
description: 'Maximum number of fleets that can be created per cluster.',
|
|
1165
|
+
example: 999
|
|
1166
|
+
},
|
|
1167
|
+
cluster_tiers: {
|
|
1168
|
+
type: 'array',
|
|
1169
|
+
items: {
|
|
1170
|
+
type: 'string',
|
|
1171
|
+
example: 'basic'
|
|
1172
|
+
},
|
|
1173
|
+
minItems: 0,
|
|
1174
|
+
description: 'List of Cloudfleet cluster tiers available for the organization.'
|
|
1175
|
+
},
|
|
1176
|
+
regions: {
|
|
1177
|
+
type: 'array',
|
|
1178
|
+
items: {
|
|
1179
|
+
type: 'string',
|
|
1180
|
+
example: 'northamerica-central-1'
|
|
1181
|
+
},
|
|
1182
|
+
minItems: 1,
|
|
1183
|
+
description: 'List of Cloudfleet control plane regions available for the organization.'
|
|
1184
|
+
},
|
|
1185
|
+
versions: {
|
|
1186
|
+
type: 'array',
|
|
1187
|
+
items: {
|
|
1188
|
+
type: 'object',
|
|
1189
|
+
properties: {
|
|
1190
|
+
id: {
|
|
1191
|
+
type: 'string',
|
|
1192
|
+
description: 'Id of the control plane version. Used in API calls.',
|
|
1193
|
+
example: '1.33.x-cfke.x'
|
|
1194
|
+
},
|
|
1195
|
+
label: {
|
|
1196
|
+
type: 'string',
|
|
1197
|
+
description: 'Label of the control plane version. Used in frontent UI.',
|
|
1198
|
+
example: '1.33.x (Always latest 1.33 patch version)'
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1201
|
+
required: ['id', 'label'],
|
|
1202
|
+
additionalProperties: false
|
|
1203
|
+
},
|
|
1204
|
+
minItems: 1,
|
|
1205
|
+
description: 'List of CFKE control plane versions available for the organization.'
|
|
1206
|
+
},
|
|
1207
|
+
copilot_user_hourly_tokens: {
|
|
1208
|
+
type: 'integer',
|
|
1209
|
+
minimum: 0,
|
|
1210
|
+
description: 'User-level maximum number of tokens Cloudfleet Copilot can process per hour.',
|
|
1211
|
+
example: 42000
|
|
1212
|
+
},
|
|
1213
|
+
copilot_organization_hourly_tokens: {
|
|
1214
|
+
type: 'integer',
|
|
1215
|
+
minimum: 0,
|
|
1216
|
+
description: 'Organization-level maximum number of tokens Cloudfleet Copilot can process per hour.',
|
|
1217
|
+
example: 242000
|
|
1218
|
+
}
|
|
1219
|
+
},
|
|
1220
|
+
required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'cluster_tiers', 'regions', 'versions', 'copilot_user_hourly_tokens', 'copilot_organization_hourly_tokens'],
|
|
1221
|
+
additionalProperties: false
|
|
1222
|
+
};
|
|
1223
|
+
export const RegistryRepositorySchema = {
|
|
1224
|
+
type: 'object',
|
|
1225
|
+
properties: {
|
|
1226
|
+
name: {
|
|
1227
|
+
type: 'string',
|
|
1228
|
+
description: 'Repository name.',
|
|
1229
|
+
example: 'my-app'
|
|
1230
|
+
},
|
|
1231
|
+
region: {
|
|
1232
|
+
type: 'string',
|
|
1233
|
+
description: 'Registry region.',
|
|
1234
|
+
example: 'northamerica'
|
|
1235
|
+
},
|
|
1236
|
+
uri: {
|
|
1237
|
+
type: 'string',
|
|
1238
|
+
description: 'Full URI of the repository.',
|
|
1239
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/v2/my-app'
|
|
1240
|
+
}
|
|
1241
|
+
},
|
|
1242
|
+
required: ['name', 'region', 'uri'],
|
|
1243
|
+
additionalProperties: false
|
|
1244
|
+
};
|
|
1245
|
+
export const RegistryRepositoryWithTagsSchema = {
|
|
1246
|
+
type: 'object',
|
|
1247
|
+
properties: {
|
|
1248
|
+
name: {
|
|
1249
|
+
type: 'string',
|
|
1250
|
+
description: 'Repository name.',
|
|
1251
|
+
example: 'my-app'
|
|
1252
|
+
},
|
|
1253
|
+
region: {
|
|
1254
|
+
type: 'string',
|
|
1255
|
+
description: 'Registry region.',
|
|
1256
|
+
example: 'northamerica'
|
|
1257
|
+
},
|
|
1258
|
+
uri: {
|
|
1259
|
+
type: 'string',
|
|
1260
|
+
description: 'Full URI of the repository.',
|
|
1261
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/v2/my-app'
|
|
1262
|
+
},
|
|
1263
|
+
tags: {
|
|
1264
|
+
type: 'array',
|
|
1265
|
+
items: {
|
|
1266
|
+
type: 'object',
|
|
1267
|
+
properties: {
|
|
1268
|
+
name: {
|
|
1269
|
+
type: 'string',
|
|
1270
|
+
description: 'Tag name.',
|
|
1271
|
+
example: 'latest'
|
|
1272
|
+
},
|
|
1273
|
+
size: {
|
|
1274
|
+
type: 'number',
|
|
1275
|
+
format: 'float',
|
|
1276
|
+
description: 'Size of the tag in bytes.',
|
|
1277
|
+
example: 123456789
|
|
1278
|
+
},
|
|
1279
|
+
mediaType: {
|
|
1280
|
+
type: 'string',
|
|
1281
|
+
description: 'Media type of the manifest.',
|
|
1282
|
+
example: 'application/vnd.docker.distribution.manifest.v2+json'
|
|
1283
|
+
}
|
|
1284
|
+
},
|
|
1285
|
+
required: ['name', 'size'],
|
|
1286
|
+
additionalProperties: false
|
|
1287
|
+
},
|
|
1288
|
+
description: 'Array of tags in the repository.'
|
|
1289
|
+
},
|
|
1290
|
+
totalSize: {
|
|
1291
|
+
type: 'number',
|
|
1292
|
+
format: 'float',
|
|
1293
|
+
description: 'Total size of all tags in the repository in bytes.',
|
|
1294
|
+
example: 987654321
|
|
1295
|
+
}
|
|
1296
|
+
},
|
|
1297
|
+
required: ['name', 'region', 'uri', 'tags', 'totalSize'],
|
|
1298
|
+
additionalProperties: false
|
|
1299
|
+
};
|
|
1300
|
+
export const RegistryTagSchema = {
|
|
1301
|
+
type: 'object',
|
|
1302
|
+
properties: {
|
|
1303
|
+
name: {
|
|
1304
|
+
type: 'string',
|
|
1305
|
+
description: 'Tag name.',
|
|
1306
|
+
example: 'latest'
|
|
1307
|
+
},
|
|
1308
|
+
mediaType: {
|
|
1309
|
+
type: 'string',
|
|
1310
|
+
description: 'Media type of the manifest.',
|
|
1311
|
+
example: 'application/vnd.docker.distribution.manifest.v2+json'
|
|
1312
|
+
},
|
|
1313
|
+
config: {
|
|
1314
|
+
type: 'object',
|
|
1315
|
+
properties: {
|
|
1316
|
+
size: {
|
|
1317
|
+
type: 'number',
|
|
1318
|
+
format: 'float',
|
|
1319
|
+
description: 'Size of the config in bytes.',
|
|
1320
|
+
example: 1234
|
|
1321
|
+
}
|
|
1322
|
+
},
|
|
1323
|
+
required: ['size'],
|
|
1324
|
+
additionalProperties: false,
|
|
1325
|
+
description: 'Manifest config metadata.'
|
|
1326
|
+
},
|
|
1327
|
+
layers: {
|
|
1328
|
+
type: 'array',
|
|
1329
|
+
items: {
|
|
1330
|
+
type: 'object',
|
|
1331
|
+
properties: {
|
|
1332
|
+
size: {
|
|
1333
|
+
type: 'number',
|
|
1334
|
+
format: 'float',
|
|
1335
|
+
description: 'Size of the layer in bytes.',
|
|
1336
|
+
example: 5678
|
|
1337
|
+
}
|
|
1338
|
+
},
|
|
1339
|
+
required: ['size'],
|
|
1340
|
+
additionalProperties: false
|
|
1341
|
+
},
|
|
1342
|
+
description: 'Array of layer metadata.'
|
|
1343
|
+
},
|
|
1344
|
+
manifests: {
|
|
1345
|
+
type: 'array',
|
|
1346
|
+
items: {
|
|
1347
|
+
type: 'object',
|
|
1348
|
+
properties: {
|
|
1349
|
+
digest: {
|
|
1350
|
+
type: 'string',
|
|
1351
|
+
description: 'Digest of the manifest.',
|
|
1352
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
1353
|
+
},
|
|
1354
|
+
platform: {
|
|
1355
|
+
type: 'object',
|
|
1356
|
+
properties: {
|
|
1357
|
+
architecture: {
|
|
1358
|
+
type: 'string',
|
|
1359
|
+
description: 'Architecture of the platform.',
|
|
1360
|
+
example: 'amd64'
|
|
1361
|
+
},
|
|
1362
|
+
os: {
|
|
1363
|
+
type: 'string',
|
|
1364
|
+
description: 'Operating system of the platform.',
|
|
1365
|
+
example: 'linux'
|
|
1366
|
+
}
|
|
1367
|
+
},
|
|
1368
|
+
required: ['architecture', 'os'],
|
|
1369
|
+
additionalProperties: false,
|
|
1370
|
+
description: 'Platform information for the manifest.'
|
|
1371
|
+
}
|
|
1372
|
+
},
|
|
1373
|
+
required: ['digest'],
|
|
1374
|
+
additionalProperties: false
|
|
1375
|
+
},
|
|
1376
|
+
description: 'Array of manifests for multi-arch images.'
|
|
1377
|
+
},
|
|
1378
|
+
size: {
|
|
1379
|
+
type: 'number',
|
|
1380
|
+
format: 'float',
|
|
1381
|
+
description: 'Total size of the tag in bytes.',
|
|
1382
|
+
example: 123456789
|
|
1383
|
+
},
|
|
1384
|
+
region: {
|
|
1385
|
+
type: 'string',
|
|
1386
|
+
description: 'Registry region.',
|
|
1387
|
+
example: 'northamerica'
|
|
1388
|
+
},
|
|
1389
|
+
repository: {
|
|
1390
|
+
type: 'string',
|
|
1391
|
+
description: 'Repository name.',
|
|
1392
|
+
example: 'my-app'
|
|
1393
|
+
},
|
|
1394
|
+
uri: {
|
|
1395
|
+
type: 'string',
|
|
1396
|
+
description: 'Full URI of the tag.',
|
|
1397
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app:latest'
|
|
1398
|
+
}
|
|
1399
|
+
},
|
|
1400
|
+
required: ['name', 'size', 'region', 'repository', 'uri'],
|
|
1401
|
+
additionalProperties: false
|
|
1402
|
+
};
|
|
1069
1403
|
export const TokenCreateInputSchema = {
|
|
1070
1404
|
type: 'object',
|
|
1071
1405
|
properties: {
|
|
@@ -1144,6 +1478,101 @@ export const TokenUpdateInputSchema = {
|
|
|
1144
1478
|
},
|
|
1145
1479
|
additionalProperties: false
|
|
1146
1480
|
};
|
|
1481
|
+
export const UsageFacetsSchema = {
|
|
1482
|
+
type: 'object',
|
|
1483
|
+
properties: {
|
|
1484
|
+
cluster_id: {
|
|
1485
|
+
type: 'array',
|
|
1486
|
+
items: {
|
|
1487
|
+
type: 'string'
|
|
1488
|
+
},
|
|
1489
|
+
description: 'List of unique cluster IDs',
|
|
1490
|
+
example: ['6b5439b1-923a-4f2b-a371-d554e5ea23fa']
|
|
1491
|
+
},
|
|
1492
|
+
product: {
|
|
1493
|
+
type: 'array',
|
|
1494
|
+
items: {
|
|
1495
|
+
type: 'string'
|
|
1496
|
+
},
|
|
1497
|
+
description: 'List of unique products',
|
|
1498
|
+
example: ['cfke_controlplane', 'cfke_connected_nodes']
|
|
1499
|
+
}
|
|
1500
|
+
},
|
|
1501
|
+
additionalProperties: false
|
|
1502
|
+
};
|
|
1503
|
+
export const UsageResponseSchema = {
|
|
1504
|
+
type: 'object',
|
|
1505
|
+
properties: {
|
|
1506
|
+
data: {
|
|
1507
|
+
type: 'array',
|
|
1508
|
+
items: {
|
|
1509
|
+
type: 'object',
|
|
1510
|
+
properties: {
|
|
1511
|
+
hour: {
|
|
1512
|
+
type: 'string',
|
|
1513
|
+
description: 'Hour of the usage',
|
|
1514
|
+
example: '2019-01-01T00:00:00.000Z'
|
|
1515
|
+
},
|
|
1516
|
+
cluster_id: {
|
|
1517
|
+
type: 'string',
|
|
1518
|
+
description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
|
|
1519
|
+
example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
1520
|
+
},
|
|
1521
|
+
product: {
|
|
1522
|
+
type: 'string',
|
|
1523
|
+
description: 'The product the usage is associated with',
|
|
1524
|
+
example: 'cfke_controlplane'
|
|
1525
|
+
},
|
|
1526
|
+
value: {
|
|
1527
|
+
type: 'number',
|
|
1528
|
+
format: 'float',
|
|
1529
|
+
description: 'Consumption',
|
|
1530
|
+
example: 4
|
|
1531
|
+
},
|
|
1532
|
+
price: {
|
|
1533
|
+
type: 'number',
|
|
1534
|
+
format: 'float',
|
|
1535
|
+
description: 'Price per unit',
|
|
1536
|
+
example: 0.01
|
|
1537
|
+
},
|
|
1538
|
+
total: {
|
|
1539
|
+
type: 'number',
|
|
1540
|
+
format: 'float',
|
|
1541
|
+
description: 'Total cost'
|
|
1542
|
+
}
|
|
1543
|
+
},
|
|
1544
|
+
required: ['hour', 'cluster_id', 'product', 'value', 'price', 'total'],
|
|
1545
|
+
additionalProperties: false
|
|
1546
|
+
},
|
|
1547
|
+
description: 'Usage data'
|
|
1548
|
+
},
|
|
1549
|
+
facets: {
|
|
1550
|
+
type: 'object',
|
|
1551
|
+
properties: {
|
|
1552
|
+
cluster_id: {
|
|
1553
|
+
type: 'array',
|
|
1554
|
+
items: {
|
|
1555
|
+
type: 'string'
|
|
1556
|
+
},
|
|
1557
|
+
description: 'List of unique cluster IDs',
|
|
1558
|
+
example: ['6b5439b1-923a-4f2b-a371-d554e5ea23fa']
|
|
1559
|
+
},
|
|
1560
|
+
product: {
|
|
1561
|
+
type: 'array',
|
|
1562
|
+
items: {
|
|
1563
|
+
type: 'string'
|
|
1564
|
+
},
|
|
1565
|
+
description: 'List of unique products',
|
|
1566
|
+
example: ['cfke_controlplane', 'cfke_connected_nodes']
|
|
1567
|
+
}
|
|
1568
|
+
},
|
|
1569
|
+
additionalProperties: false,
|
|
1570
|
+
description: 'Facets for filtering'
|
|
1571
|
+
}
|
|
1572
|
+
},
|
|
1573
|
+
required: ['data', 'facets'],
|
|
1574
|
+
additionalProperties: false
|
|
1575
|
+
};
|
|
1147
1576
|
export const UsageSchema = {
|
|
1148
1577
|
type: 'object',
|
|
1149
1578
|
properties: {
|
|
@@ -1154,90 +1583,33 @@ export const UsageSchema = {
|
|
|
1154
1583
|
},
|
|
1155
1584
|
cluster_id: {
|
|
1156
1585
|
type: 'string',
|
|
1157
|
-
format: 'uuid',
|
|
1158
1586
|
description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
|
|
1159
1587
|
example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
1160
1588
|
},
|
|
1161
|
-
cluster_tier: {
|
|
1162
|
-
type: 'string',
|
|
1163
|
-
description: 'Tier of the cluster.',
|
|
1164
|
-
example: 'pro',
|
|
1165
|
-
enum: ['basic', 'pro', '']
|
|
1166
|
-
},
|
|
1167
1589
|
product: {
|
|
1168
1590
|
type: 'string',
|
|
1169
1591
|
description: 'The product the usage is associated with',
|
|
1170
|
-
example: 'cfke_controlplane'
|
|
1171
|
-
enum: ['cfke_controlplane', 'cfke_connected_nodes', 'infra_compute', 'infra_storage', 'infra_loadbalancing', 'infra_traffic', 'cfcr_storage']
|
|
1172
|
-
},
|
|
1173
|
-
node_name: {
|
|
1174
|
-
type: 'string',
|
|
1175
|
-
description: 'Name of the Kubernetes node',
|
|
1176
|
-
example: 'flexible-moth-956037384'
|
|
1592
|
+
example: 'cfke_controlplane'
|
|
1177
1593
|
},
|
|
1178
|
-
|
|
1179
|
-
type: '
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
cpu: {
|
|
1184
|
-
anyOf: [
|
|
1185
|
-
{
|
|
1186
|
-
type: 'number',
|
|
1187
|
-
format: 'float',
|
|
1188
|
-
description: 'CPU core count of the node',
|
|
1189
|
-
example: 4
|
|
1190
|
-
},
|
|
1191
|
-
{
|
|
1192
|
-
type: 'string',
|
|
1193
|
-
enum: ['']
|
|
1194
|
-
}
|
|
1195
|
-
]
|
|
1594
|
+
value: {
|
|
1595
|
+
type: 'number',
|
|
1596
|
+
format: 'float',
|
|
1597
|
+
description: 'Consumption',
|
|
1598
|
+
example: 4
|
|
1196
1599
|
},
|
|
1197
1600
|
price: {
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
description: 'Price',
|
|
1203
|
-
example: 4
|
|
1204
|
-
},
|
|
1205
|
-
{
|
|
1206
|
-
type: 'string',
|
|
1207
|
-
enum: ['']
|
|
1208
|
-
}
|
|
1209
|
-
]
|
|
1210
|
-
},
|
|
1211
|
-
value: {
|
|
1212
|
-
anyOf: [
|
|
1213
|
-
{
|
|
1214
|
-
type: 'number',
|
|
1215
|
-
format: 'float',
|
|
1216
|
-
description: 'Value',
|
|
1217
|
-
example: 4
|
|
1218
|
-
},
|
|
1219
|
-
{
|
|
1220
|
-
type: 'string',
|
|
1221
|
-
enum: ['']
|
|
1222
|
-
}
|
|
1223
|
-
]
|
|
1601
|
+
type: 'number',
|
|
1602
|
+
format: 'float',
|
|
1603
|
+
description: 'Price per unit',
|
|
1604
|
+
example: 0.01
|
|
1224
1605
|
},
|
|
1225
1606
|
total: {
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
format: 'float',
|
|
1230
|
-
description: 'Total',
|
|
1231
|
-
example: 4
|
|
1232
|
-
},
|
|
1233
|
-
{
|
|
1234
|
-
type: 'string',
|
|
1235
|
-
enum: ['']
|
|
1236
|
-
}
|
|
1237
|
-
]
|
|
1607
|
+
type: 'number',
|
|
1608
|
+
format: 'float',
|
|
1609
|
+
description: 'Total cost'
|
|
1238
1610
|
}
|
|
1239
1611
|
},
|
|
1240
|
-
required: ['
|
|
1612
|
+
required: ['hour', 'cluster_id', 'product', 'value', 'price', 'total'],
|
|
1241
1613
|
additionalProperties: false
|
|
1242
1614
|
};
|
|
1243
1615
|
export const UserCreateInputSchema = {
|