@cloudfleet/sdk 0.0.1-1e6cbc3 → 0.0.1-1eff398
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/README.md +30 -0
- package/dist/@tanstack/react-query.gen.d.ts +210 -325
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/@tanstack/react-query.gen.js +132 -42
- package/dist/@tanstack/react-query.gen.js.map +1 -1
- package/dist/errors.d.ts +42 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +83 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas.gen.d.ts +345 -41
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +448 -49
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +52 -18
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +86 -28
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +18 -55
- package/dist/services/kubernetes/api.d.ts.map +1 -1
- package/dist/services/kubernetes/api.js +36 -75
- package/dist/services/kubernetes/api.js.map +1 -1
- package/dist/services/kubernetes/index.d.ts.map +1 -1
- package/dist/services/kubernetes/index.js +36 -37
- package/dist/services/kubernetes/index.js.map +1 -1
- package/dist/types.gen.d.ts +342 -58
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +332 -48
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +165 -24
- package/dist/zod.gen.js.map +1 -1
- package/package.json +7 -9
package/dist/schemas.gen.js
CHANGED
|
@@ -1,53 +1,4 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
export const BasicPriceConsentInputSchema = {
|
|
3
|
-
type: 'object',
|
|
4
|
-
properties: {
|
|
5
|
-
decision: {
|
|
6
|
-
type: 'string',
|
|
7
|
-
description: 'The administrator\'s decision on the new Basic price. `accepted` continues to paid billing when the signup credit runs out; `rejected` opts out (clusters are suspended, never charged). A `rejected` org can later be flipped back to `accepted`.',
|
|
8
|
-
example: 'accepted',
|
|
9
|
-
enum: [
|
|
10
|
-
'accepted',
|
|
11
|
-
'rejected'
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
required: [
|
|
16
|
-
'decision'
|
|
17
|
-
],
|
|
18
|
-
additionalProperties: false
|
|
19
|
-
};
|
|
20
|
-
export const BasicPriceConsentSchema = {
|
|
21
|
-
type: 'object',
|
|
22
|
-
properties: {
|
|
23
|
-
status: {
|
|
24
|
-
type: 'string',
|
|
25
|
-
description: 'Consent status for the new Basic price. `not_applicable` when the organization is not in scope for the migration. `pending` when the organization must opt in but no admin has decided yet. `accepted` / `rejected` reflect the recorded decision.',
|
|
26
|
-
example: 'pending',
|
|
27
|
-
enum: [
|
|
28
|
-
'not_applicable',
|
|
29
|
-
'pending',
|
|
30
|
-
'accepted',
|
|
31
|
-
'rejected'
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
decided_at: {
|
|
35
|
-
type: 'string',
|
|
36
|
-
format: 'date-time',
|
|
37
|
-
description: 'When the current decision was recorded. Absent while `not_applicable` or `pending`.',
|
|
38
|
-
example: '2026-09-05T10:12:00.000Z'
|
|
39
|
-
},
|
|
40
|
-
decided_by: {
|
|
41
|
-
type: 'string',
|
|
42
|
-
description: 'User id of the administrator who recorded the current decision. Absent while `not_applicable` or `pending`.',
|
|
43
|
-
example: '2b7a5c9e-1f4d-4a1b-9c3e-8d2f6a0b1c2d'
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
required: [
|
|
47
|
-
'status'
|
|
48
|
-
],
|
|
49
|
-
additionalProperties: false
|
|
50
|
-
};
|
|
51
2
|
export const BillingContactSchema = {
|
|
52
3
|
type: 'object',
|
|
53
4
|
properties: {
|
|
@@ -142,12 +93,17 @@ export const BillingContactSchema = {
|
|
|
142
93
|
'at_vat',
|
|
143
94
|
'au_abn',
|
|
144
95
|
'au_arn',
|
|
96
|
+
'aw_tin',
|
|
97
|
+
'az_tin',
|
|
145
98
|
'ba_tin',
|
|
146
99
|
'bb_tin',
|
|
100
|
+
'bd_bin',
|
|
147
101
|
'be_vat',
|
|
102
|
+
'bf_ifu',
|
|
148
103
|
'bg_uic',
|
|
149
104
|
'bg_vat',
|
|
150
105
|
'bh_vat',
|
|
106
|
+
'bj_ifu',
|
|
151
107
|
'bo_tin',
|
|
152
108
|
'br_cnpj',
|
|
153
109
|
'br_cpf',
|
|
@@ -163,9 +119,11 @@ export const BillingContactSchema = {
|
|
|
163
119
|
'ch_uid',
|
|
164
120
|
'ch_vat',
|
|
165
121
|
'cl_tin',
|
|
122
|
+
'cm_niu',
|
|
166
123
|
'cn_tin',
|
|
167
124
|
'co_nit',
|
|
168
125
|
'cr_tin',
|
|
126
|
+
'cv_nif',
|
|
169
127
|
'cy_vat',
|
|
170
128
|
'cz_vat',
|
|
171
129
|
'de_stn',
|
|
@@ -177,6 +135,7 @@ export const BillingContactSchema = {
|
|
|
177
135
|
'eg_tin',
|
|
178
136
|
'es_cif',
|
|
179
137
|
'es_vat',
|
|
138
|
+
'et_tin',
|
|
180
139
|
'eu_oss_vat',
|
|
181
140
|
'fi_vat',
|
|
182
141
|
'fr_vat',
|
|
@@ -199,11 +158,14 @@ export const BillingContactSchema = {
|
|
|
199
158
|
'jp_rn',
|
|
200
159
|
'jp_trn',
|
|
201
160
|
'ke_pin',
|
|
161
|
+
'kg_tin',
|
|
202
162
|
'kh_tin',
|
|
203
163
|
'kr_brn',
|
|
204
164
|
'kz_bin',
|
|
165
|
+
'la_tin',
|
|
205
166
|
'li_uid',
|
|
206
167
|
'li_vat',
|
|
168
|
+
'lk_vat',
|
|
207
169
|
'lt_vat',
|
|
208
170
|
'lu_vat',
|
|
209
171
|
'lv_vat',
|
|
@@ -631,6 +593,11 @@ export const ClusterJoinInformationSchema = {
|
|
|
631
593
|
description: 'Authentication key for the cluster.',
|
|
632
594
|
example: 'tskey-auth-kBV8wr1dk911CNTRL-...'
|
|
633
595
|
},
|
|
596
|
+
login_server: {
|
|
597
|
+
type: 'string',
|
|
598
|
+
description: 'Coordination server the node registers against. Empty on data plane v1 clusters, where the node advertises its own tag instead. A non-empty value requires a client that declares the dataplane-v2 capability.',
|
|
599
|
+
example: 'https://415026b6-f00f-44f8-968d-fc6ef4d0fc6d.fabric.europe-central-1a.cfke.io'
|
|
600
|
+
},
|
|
634
601
|
bootstrap_token: {
|
|
635
602
|
type: 'string',
|
|
636
603
|
description: 'Bootstrap token for the cluster.',
|
|
@@ -703,6 +670,7 @@ export const ClusterJoinInformationSchema = {
|
|
|
703
670
|
'cluster_dns',
|
|
704
671
|
'pod_cidr',
|
|
705
672
|
'auth_key',
|
|
673
|
+
'login_server',
|
|
706
674
|
'bootstrap_token',
|
|
707
675
|
'versions',
|
|
708
676
|
'third_party_api_access_config'
|
|
@@ -1013,6 +981,72 @@ export const ClusterUpdateInputSchema = {
|
|
|
1013
981
|
additionalProperties: false,
|
|
1014
982
|
description: 'Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
|
|
1015
983
|
};
|
|
984
|
+
export const FeedbackCreateInputSchema = {
|
|
985
|
+
type: 'object',
|
|
986
|
+
properties: {
|
|
987
|
+
sentiment: {
|
|
988
|
+
type: 'string',
|
|
989
|
+
description: 'Overall sentiment: positive, neutral or negative.',
|
|
990
|
+
example: 'negative',
|
|
991
|
+
enum: [
|
|
992
|
+
'positive',
|
|
993
|
+
'neutral',
|
|
994
|
+
'negative'
|
|
995
|
+
]
|
|
996
|
+
},
|
|
997
|
+
message: {
|
|
998
|
+
type: 'string',
|
|
999
|
+
maxLength: 2000,
|
|
1000
|
+
minLength: 1,
|
|
1001
|
+
description: 'What was useful, confusing, wrong or missing.',
|
|
1002
|
+
example: 'The error for a missing kubeconfig does not say which path it looked in.'
|
|
1003
|
+
},
|
|
1004
|
+
context: {
|
|
1005
|
+
type: 'string',
|
|
1006
|
+
maxLength: 2000,
|
|
1007
|
+
description: 'What you were trying to do when it happened.',
|
|
1008
|
+
example: 'Connecting kubectl to a new cluster.'
|
|
1009
|
+
},
|
|
1010
|
+
source: {
|
|
1011
|
+
type: 'string',
|
|
1012
|
+
description: 'Where the feedback was sent from: cli, mcp, plugin, console or api. Defaults to api.',
|
|
1013
|
+
default: 'api',
|
|
1014
|
+
example: 'cli',
|
|
1015
|
+
enum: [
|
|
1016
|
+
'cli',
|
|
1017
|
+
'mcp',
|
|
1018
|
+
'plugin',
|
|
1019
|
+
'console',
|
|
1020
|
+
'api'
|
|
1021
|
+
]
|
|
1022
|
+
},
|
|
1023
|
+
client: {
|
|
1024
|
+
type: 'string',
|
|
1025
|
+
maxLength: 100,
|
|
1026
|
+
description: 'Name and version of the sending client.',
|
|
1027
|
+
example: 'cloudfleet-plugin-claude/0.5.0'
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
required: [
|
|
1031
|
+
'sentiment',
|
|
1032
|
+
'message'
|
|
1033
|
+
],
|
|
1034
|
+
additionalProperties: false
|
|
1035
|
+
};
|
|
1036
|
+
export const FeedbackSchema = {
|
|
1037
|
+
type: 'object',
|
|
1038
|
+
properties: {
|
|
1039
|
+
id: {
|
|
1040
|
+
type: 'string',
|
|
1041
|
+
description: 'Unique identifier of the feedback entry (Mongo ObjectId).',
|
|
1042
|
+
example: '60c72b2f9f1b2c001f8e4d3a'
|
|
1043
|
+
}
|
|
1044
|
+
},
|
|
1045
|
+
required: [
|
|
1046
|
+
'id'
|
|
1047
|
+
],
|
|
1048
|
+
additionalProperties: false
|
|
1049
|
+
};
|
|
1016
1050
|
export const FleetCreateInputSchema = {
|
|
1017
1051
|
type: 'object',
|
|
1018
1052
|
properties: {
|
|
@@ -1385,6 +1419,44 @@ export const FleetCreateInputSchema = {
|
|
|
1385
1419
|
'conservative'
|
|
1386
1420
|
]
|
|
1387
1421
|
},
|
|
1422
|
+
taints: {
|
|
1423
|
+
type: 'array',
|
|
1424
|
+
items: {
|
|
1425
|
+
type: 'object',
|
|
1426
|
+
properties: {
|
|
1427
|
+
key: {
|
|
1428
|
+
type: 'string',
|
|
1429
|
+
description: 'Taint key: a Kubernetes qualified name with an optional DNS subdomain prefix. Keys under `node.kubernetes.io`, `node.cloudprovider.kubernetes.io`, `node.cilium.io`, `karpenter.sh` and `cfke.io` (and their subdomains) are reserved.',
|
|
1430
|
+
example: 'dedicated'
|
|
1431
|
+
},
|
|
1432
|
+
value: {
|
|
1433
|
+
type: 'string',
|
|
1434
|
+
maxLength: 63,
|
|
1435
|
+
pattern: '^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$',
|
|
1436
|
+
description: 'Taint value. Optional.',
|
|
1437
|
+
example: 'ci'
|
|
1438
|
+
},
|
|
1439
|
+
effect: {
|
|
1440
|
+
type: 'string',
|
|
1441
|
+
description: 'Taint effect.',
|
|
1442
|
+
example: 'NoSchedule',
|
|
1443
|
+
enum: [
|
|
1444
|
+
'NoSchedule',
|
|
1445
|
+
'PreferNoSchedule',
|
|
1446
|
+
'NoExecute'
|
|
1447
|
+
]
|
|
1448
|
+
}
|
|
1449
|
+
},
|
|
1450
|
+
required: [
|
|
1451
|
+
'key',
|
|
1452
|
+
'effect'
|
|
1453
|
+
],
|
|
1454
|
+
additionalProperties: false
|
|
1455
|
+
},
|
|
1456
|
+
maxItems: 50,
|
|
1457
|
+
description: 'Taints applied to every node the fleet provisions, so only pods that tolerate them schedule there. Each key and effect pair may appear once. Full-overwrite: omit to remove all taints.',
|
|
1458
|
+
default: []
|
|
1459
|
+
},
|
|
1388
1460
|
id: {
|
|
1389
1461
|
type: 'string',
|
|
1390
1462
|
maxLength: 63,
|
|
@@ -1774,6 +1846,44 @@ export const FleetSchema = {
|
|
|
1774
1846
|
'conservative'
|
|
1775
1847
|
]
|
|
1776
1848
|
},
|
|
1849
|
+
taints: {
|
|
1850
|
+
type: 'array',
|
|
1851
|
+
items: {
|
|
1852
|
+
type: 'object',
|
|
1853
|
+
properties: {
|
|
1854
|
+
key: {
|
|
1855
|
+
type: 'string',
|
|
1856
|
+
description: 'Taint key: a Kubernetes qualified name with an optional DNS subdomain prefix. Keys under `node.kubernetes.io`, `node.cloudprovider.kubernetes.io`, `node.cilium.io`, `karpenter.sh` and `cfke.io` (and their subdomains) are reserved.',
|
|
1857
|
+
example: 'dedicated'
|
|
1858
|
+
},
|
|
1859
|
+
value: {
|
|
1860
|
+
type: 'string',
|
|
1861
|
+
maxLength: 63,
|
|
1862
|
+
pattern: '^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$',
|
|
1863
|
+
description: 'Taint value. Optional.',
|
|
1864
|
+
example: 'ci'
|
|
1865
|
+
},
|
|
1866
|
+
effect: {
|
|
1867
|
+
type: 'string',
|
|
1868
|
+
description: 'Taint effect.',
|
|
1869
|
+
example: 'NoSchedule',
|
|
1870
|
+
enum: [
|
|
1871
|
+
'NoSchedule',
|
|
1872
|
+
'PreferNoSchedule',
|
|
1873
|
+
'NoExecute'
|
|
1874
|
+
]
|
|
1875
|
+
}
|
|
1876
|
+
},
|
|
1877
|
+
required: [
|
|
1878
|
+
'key',
|
|
1879
|
+
'effect'
|
|
1880
|
+
],
|
|
1881
|
+
additionalProperties: false
|
|
1882
|
+
},
|
|
1883
|
+
maxItems: 50,
|
|
1884
|
+
description: 'Taints applied to every node the fleet provisions, so only pods that tolerate them schedule there. Each key and effect pair may appear once. Full-overwrite: omit to remove all taints.',
|
|
1885
|
+
default: []
|
|
1886
|
+
},
|
|
1777
1887
|
id: {
|
|
1778
1888
|
type: 'string',
|
|
1779
1889
|
maxLength: 63,
|
|
@@ -1806,6 +1916,7 @@ export const FleetSchema = {
|
|
|
1806
1916
|
required: [
|
|
1807
1917
|
'constraints',
|
|
1808
1918
|
'scalingProfile',
|
|
1919
|
+
'taints',
|
|
1809
1920
|
'id',
|
|
1810
1921
|
'ready',
|
|
1811
1922
|
'created_at',
|
|
@@ -2185,6 +2296,44 @@ export const FleetUpdateInputSchema = {
|
|
|
2185
2296
|
'aggressive',
|
|
2186
2297
|
'conservative'
|
|
2187
2298
|
]
|
|
2299
|
+
},
|
|
2300
|
+
taints: {
|
|
2301
|
+
type: 'array',
|
|
2302
|
+
items: {
|
|
2303
|
+
type: 'object',
|
|
2304
|
+
properties: {
|
|
2305
|
+
key: {
|
|
2306
|
+
type: 'string',
|
|
2307
|
+
description: 'Taint key: a Kubernetes qualified name with an optional DNS subdomain prefix. Keys under `node.kubernetes.io`, `node.cloudprovider.kubernetes.io`, `node.cilium.io`, `karpenter.sh` and `cfke.io` (and their subdomains) are reserved.',
|
|
2308
|
+
example: 'dedicated'
|
|
2309
|
+
},
|
|
2310
|
+
value: {
|
|
2311
|
+
type: 'string',
|
|
2312
|
+
maxLength: 63,
|
|
2313
|
+
pattern: '^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$',
|
|
2314
|
+
description: 'Taint value. Optional.',
|
|
2315
|
+
example: 'ci'
|
|
2316
|
+
},
|
|
2317
|
+
effect: {
|
|
2318
|
+
type: 'string',
|
|
2319
|
+
description: 'Taint effect.',
|
|
2320
|
+
example: 'NoSchedule',
|
|
2321
|
+
enum: [
|
|
2322
|
+
'NoSchedule',
|
|
2323
|
+
'PreferNoSchedule',
|
|
2324
|
+
'NoExecute'
|
|
2325
|
+
]
|
|
2326
|
+
}
|
|
2327
|
+
},
|
|
2328
|
+
required: [
|
|
2329
|
+
'key',
|
|
2330
|
+
'effect'
|
|
2331
|
+
],
|
|
2332
|
+
additionalProperties: false
|
|
2333
|
+
},
|
|
2334
|
+
maxItems: 50,
|
|
2335
|
+
description: 'Taints applied to every node the fleet provisions, so only pods that tolerate them schedule there. Each key and effect pair may appear once. Full-overwrite: omit to remove all taints.',
|
|
2336
|
+
default: []
|
|
2188
2337
|
}
|
|
2189
2338
|
},
|
|
2190
2339
|
additionalProperties: false,
|
|
@@ -2262,6 +2411,170 @@ export const InviteSchema = {
|
|
|
2262
2411
|
],
|
|
2263
2412
|
additionalProperties: false
|
|
2264
2413
|
};
|
|
2414
|
+
export const InvoicePaymentAttemptSchema = {
|
|
2415
|
+
type: 'object',
|
|
2416
|
+
properties: {
|
|
2417
|
+
invoice_id: {
|
|
2418
|
+
type: 'string',
|
|
2419
|
+
description: 'Identifier of the invoice.',
|
|
2420
|
+
example: 'in_1234567890xCrwxghOTj1234'
|
|
2421
|
+
},
|
|
2422
|
+
number: {
|
|
2423
|
+
type: 'string',
|
|
2424
|
+
nullable: true,
|
|
2425
|
+
description: 'Invoice number. Null if the invoice has no number.',
|
|
2426
|
+
example: 'CF-0042'
|
|
2427
|
+
},
|
|
2428
|
+
amount: {
|
|
2429
|
+
type: 'number',
|
|
2430
|
+
format: 'float',
|
|
2431
|
+
description: 'Amount outstanding when the charge was attempted, in the smallest currency unit.',
|
|
2432
|
+
example: 4200
|
|
2433
|
+
},
|
|
2434
|
+
currency: {
|
|
2435
|
+
type: 'string',
|
|
2436
|
+
description: 'Currency of the invoice.',
|
|
2437
|
+
example: 'eur'
|
|
2438
|
+
},
|
|
2439
|
+
status: {
|
|
2440
|
+
type: 'string',
|
|
2441
|
+
description: 'Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).',
|
|
2442
|
+
example: 'paid',
|
|
2443
|
+
enum: [
|
|
2444
|
+
'paid',
|
|
2445
|
+
'processing',
|
|
2446
|
+
'requires_action',
|
|
2447
|
+
'failed'
|
|
2448
|
+
]
|
|
2449
|
+
},
|
|
2450
|
+
client_secret: {
|
|
2451
|
+
type: 'string',
|
|
2452
|
+
nullable: true,
|
|
2453
|
+
description: 'Client secret used to complete customer authentication. Set only when `status` is `requires_action`.',
|
|
2454
|
+
example: 'pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH'
|
|
2455
|
+
},
|
|
2456
|
+
failure_code: {
|
|
2457
|
+
type: 'string',
|
|
2458
|
+
nullable: true,
|
|
2459
|
+
description: 'Decline code. Set only when `status` is `failed`.',
|
|
2460
|
+
example: 'insufficient_funds'
|
|
2461
|
+
},
|
|
2462
|
+
failure_message: {
|
|
2463
|
+
type: 'string',
|
|
2464
|
+
nullable: true,
|
|
2465
|
+
description: 'Explanation of the decline, suitable for display. Set only when `status` is `failed`.',
|
|
2466
|
+
example: 'Your card has insufficient funds.'
|
|
2467
|
+
}
|
|
2468
|
+
},
|
|
2469
|
+
required: [
|
|
2470
|
+
'invoice_id',
|
|
2471
|
+
'number',
|
|
2472
|
+
'amount',
|
|
2473
|
+
'currency',
|
|
2474
|
+
'status',
|
|
2475
|
+
'client_secret',
|
|
2476
|
+
'failure_code',
|
|
2477
|
+
'failure_message'
|
|
2478
|
+
],
|
|
2479
|
+
additionalProperties: false
|
|
2480
|
+
};
|
|
2481
|
+
export const InvoicePaymentResultSchema = {
|
|
2482
|
+
type: 'object',
|
|
2483
|
+
properties: {
|
|
2484
|
+
code: {
|
|
2485
|
+
type: 'string',
|
|
2486
|
+
description: 'Overall outcome: `paid` (nothing outstanding), `processing` (all accepted, not yet settled), `action_required` (one or more await customer authentication), `partially_paid`, `failed`, `nothing_due`, or `bank_transfer_due` (the organization pays by bank transfer; nothing was charged).',
|
|
2487
|
+
example: 'partially_paid',
|
|
2488
|
+
enum: [
|
|
2489
|
+
'paid',
|
|
2490
|
+
'processing',
|
|
2491
|
+
'action_required',
|
|
2492
|
+
'partially_paid',
|
|
2493
|
+
'failed',
|
|
2494
|
+
'nothing_due',
|
|
2495
|
+
'bank_transfer_due'
|
|
2496
|
+
]
|
|
2497
|
+
},
|
|
2498
|
+
message: {
|
|
2499
|
+
type: 'string',
|
|
2500
|
+
description: 'Summary of the outcome, suitable for display.',
|
|
2501
|
+
example: '1 of 2 open invoices was paid. Invoice CF-0043 was declined: Your card has insufficient funds.'
|
|
2502
|
+
},
|
|
2503
|
+
results: {
|
|
2504
|
+
type: 'array',
|
|
2505
|
+
items: {
|
|
2506
|
+
type: 'object',
|
|
2507
|
+
properties: {
|
|
2508
|
+
invoice_id: {
|
|
2509
|
+
type: 'string',
|
|
2510
|
+
description: 'Identifier of the invoice.',
|
|
2511
|
+
example: 'in_1234567890xCrwxghOTj1234'
|
|
2512
|
+
},
|
|
2513
|
+
number: {
|
|
2514
|
+
type: 'string',
|
|
2515
|
+
description: 'Invoice number. Null if the invoice has no number.',
|
|
2516
|
+
example: 'CF-0042'
|
|
2517
|
+
},
|
|
2518
|
+
amount: {
|
|
2519
|
+
type: 'number',
|
|
2520
|
+
format: 'float',
|
|
2521
|
+
description: 'Amount outstanding when the charge was attempted, in the smallest currency unit.',
|
|
2522
|
+
example: 4200
|
|
2523
|
+
},
|
|
2524
|
+
currency: {
|
|
2525
|
+
type: 'string',
|
|
2526
|
+
description: 'Currency of the invoice.',
|
|
2527
|
+
example: 'eur'
|
|
2528
|
+
},
|
|
2529
|
+
status: {
|
|
2530
|
+
type: 'string',
|
|
2531
|
+
description: 'Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).',
|
|
2532
|
+
example: 'paid',
|
|
2533
|
+
enum: [
|
|
2534
|
+
'paid',
|
|
2535
|
+
'processing',
|
|
2536
|
+
'requires_action',
|
|
2537
|
+
'failed'
|
|
2538
|
+
]
|
|
2539
|
+
},
|
|
2540
|
+
client_secret: {
|
|
2541
|
+
type: 'string',
|
|
2542
|
+
description: 'Client secret used to complete customer authentication. Set only when `status` is `requires_action`.',
|
|
2543
|
+
example: 'pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH'
|
|
2544
|
+
},
|
|
2545
|
+
failure_code: {
|
|
2546
|
+
type: 'string',
|
|
2547
|
+
description: 'Decline code. Set only when `status` is `failed`.',
|
|
2548
|
+
example: 'insufficient_funds'
|
|
2549
|
+
},
|
|
2550
|
+
failure_message: {
|
|
2551
|
+
type: 'string',
|
|
2552
|
+
description: 'Explanation of the decline, suitable for display. Set only when `status` is `failed`.',
|
|
2553
|
+
example: 'Your card has insufficient funds.'
|
|
2554
|
+
}
|
|
2555
|
+
},
|
|
2556
|
+
required: [
|
|
2557
|
+
'invoice_id',
|
|
2558
|
+
'number',
|
|
2559
|
+
'amount',
|
|
2560
|
+
'currency',
|
|
2561
|
+
'status',
|
|
2562
|
+
'client_secret',
|
|
2563
|
+
'failure_code',
|
|
2564
|
+
'failure_message'
|
|
2565
|
+
],
|
|
2566
|
+
additionalProperties: false
|
|
2567
|
+
},
|
|
2568
|
+
description: 'One entry per invoice charged, oldest first.'
|
|
2569
|
+
}
|
|
2570
|
+
},
|
|
2571
|
+
required: [
|
|
2572
|
+
'code',
|
|
2573
|
+
'message',
|
|
2574
|
+
'results'
|
|
2575
|
+
],
|
|
2576
|
+
additionalProperties: false
|
|
2577
|
+
};
|
|
2265
2578
|
export const InvoiceSchema = {
|
|
2266
2579
|
type: 'object',
|
|
2267
2580
|
properties: {
|
|
@@ -3163,6 +3476,73 @@ export const RegistryTagSchema = {
|
|
|
3163
3476
|
],
|
|
3164
3477
|
additionalProperties: false
|
|
3165
3478
|
};
|
|
3479
|
+
export const RoadmapItemCreateInputSchema = {
|
|
3480
|
+
type: 'object',
|
|
3481
|
+
properties: {
|
|
3482
|
+
text: {
|
|
3483
|
+
type: 'string',
|
|
3484
|
+
maxLength: 500,
|
|
3485
|
+
minLength: 1,
|
|
3486
|
+
description: 'Your suggestion in one or two sentences. It is reviewed before it appears on the roadmap.',
|
|
3487
|
+
example: 'Support for ARM nodes on Hetzner.'
|
|
3488
|
+
}
|
|
3489
|
+
},
|
|
3490
|
+
required: [
|
|
3491
|
+
'text'
|
|
3492
|
+
],
|
|
3493
|
+
additionalProperties: false
|
|
3494
|
+
};
|
|
3495
|
+
export const RoadmapItemSchema = {
|
|
3496
|
+
type: 'object',
|
|
3497
|
+
properties: {
|
|
3498
|
+
id: {
|
|
3499
|
+
type: 'string',
|
|
3500
|
+
description: 'Unique identifier of the roadmap item (Mongo ObjectId).',
|
|
3501
|
+
example: '60c72b2f9f1b2c001f8e4d3a'
|
|
3502
|
+
},
|
|
3503
|
+
text: {
|
|
3504
|
+
type: 'string',
|
|
3505
|
+
description: 'Short description of the roadmap item.',
|
|
3506
|
+
example: 'Support for ARM nodes on Hetzner.'
|
|
3507
|
+
},
|
|
3508
|
+
vote: {
|
|
3509
|
+
type: 'integer',
|
|
3510
|
+
nullable: true,
|
|
3511
|
+
description: 'The caller\'s vote on this item: -1 (down), 1 (up), 2 (double up), or null if the caller has not voted.',
|
|
3512
|
+
example: 1,
|
|
3513
|
+
enum: [
|
|
3514
|
+
-1,
|
|
3515
|
+
1,
|
|
3516
|
+
2
|
|
3517
|
+
]
|
|
3518
|
+
}
|
|
3519
|
+
},
|
|
3520
|
+
required: [
|
|
3521
|
+
'id',
|
|
3522
|
+
'text',
|
|
3523
|
+
'vote'
|
|
3524
|
+
],
|
|
3525
|
+
additionalProperties: false
|
|
3526
|
+
};
|
|
3527
|
+
export const RoadmapVoteInputSchema = {
|
|
3528
|
+
type: 'object',
|
|
3529
|
+
properties: {
|
|
3530
|
+
value: {
|
|
3531
|
+
type: 'integer',
|
|
3532
|
+
description: 'Vote value: -1 (down), 1 (up), or 2 (double up).',
|
|
3533
|
+
example: 1,
|
|
3534
|
+
enum: [
|
|
3535
|
+
-1,
|
|
3536
|
+
1,
|
|
3537
|
+
2
|
|
3538
|
+
]
|
|
3539
|
+
}
|
|
3540
|
+
},
|
|
3541
|
+
required: [
|
|
3542
|
+
'value'
|
|
3543
|
+
],
|
|
3544
|
+
additionalProperties: false
|
|
3545
|
+
};
|
|
3166
3546
|
export const TicketAttachmentSchema = {
|
|
3167
3547
|
type: 'object',
|
|
3168
3548
|
properties: {
|
|
@@ -3224,6 +3604,11 @@ export const TicketCreateInputSchema = {
|
|
|
3224
3604
|
subcategory: 'cluster-question',
|
|
3225
3605
|
cluster_id: '60c72b2f9f1b2c001f8e4d3a'
|
|
3226
3606
|
}
|
|
3607
|
+
},
|
|
3608
|
+
grant_support_access: {
|
|
3609
|
+
type: 'boolean',
|
|
3610
|
+
description: 'Grant Cloudfleet support staff access to the organization\'s resources while the ticket is open. Access cannot be revoked; it ends when the ticket is closed.',
|
|
3611
|
+
example: true
|
|
3227
3612
|
}
|
|
3228
3613
|
},
|
|
3229
3614
|
required: [
|
|
@@ -3368,6 +3753,18 @@ export const TicketSchema = {
|
|
|
3368
3753
|
description: 'First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.',
|
|
3369
3754
|
example: 'My cluster cannot reach the registry. Logs attached.'
|
|
3370
3755
|
},
|
|
3756
|
+
support_access_granted: {
|
|
3757
|
+
type: 'boolean',
|
|
3758
|
+
description: 'Whether Cloudfleet support staff currently have access to the organization\'s resources. True once access is granted and until the ticket is closed.',
|
|
3759
|
+
example: true
|
|
3760
|
+
},
|
|
3761
|
+
support_access_granted_at: {
|
|
3762
|
+
type: 'string',
|
|
3763
|
+
format: 'date-time',
|
|
3764
|
+
nullable: true,
|
|
3765
|
+
description: 'When support access was granted. Null if it never was. Kept after the ticket is closed.',
|
|
3766
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
3767
|
+
},
|
|
3371
3768
|
closed_at: {
|
|
3372
3769
|
type: 'string',
|
|
3373
3770
|
format: 'date-time',
|
|
@@ -3481,6 +3878,8 @@ export const TicketSchema = {
|
|
|
3481
3878
|
'status',
|
|
3482
3879
|
'category',
|
|
3483
3880
|
'summary',
|
|
3881
|
+
'support_access_granted',
|
|
3882
|
+
'support_access_granted_at',
|
|
3484
3883
|
'date_created',
|
|
3485
3884
|
'date_updated'
|
|
3486
3885
|
],
|