@cloudfleet/sdk 0.0.1-c3098ca → 0.0.1-c3c7509

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.
@@ -444,7 +444,8 @@ export const ClusterCreateInputSchema = {
444
444
  example: 'pro',
445
445
  enum: [
446
446
  'basic',
447
- 'pro'
447
+ 'pro',
448
+ 'enterprise'
448
449
  ]
449
450
  },
450
451
  version_channel: {
@@ -581,6 +582,11 @@ export const ClusterJoinInformationSchema = {
581
582
  description: 'Authentication key for the cluster.',
582
583
  example: 'tskey-auth-kBV8wr1dk911CNTRL-...'
583
584
  },
585
+ login_server: {
586
+ type: 'string',
587
+ 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.',
588
+ example: 'https://415026b6-f00f-44f8-968d-fc6ef4d0fc6d.fabric.europe-central-1a.cfke.io'
589
+ },
584
590
  bootstrap_token: {
585
591
  type: 'string',
586
592
  description: 'Bootstrap token for the cluster.',
@@ -653,6 +659,7 @@ export const ClusterJoinInformationSchema = {
653
659
  'cluster_dns',
654
660
  'pod_cidr',
655
661
  'auth_key',
662
+ 'login_server',
656
663
  'bootstrap_token',
657
664
  'versions',
658
665
  'third_party_api_access_config'
@@ -677,7 +684,8 @@ export const ClusterSchema = {
677
684
  example: 'pro',
678
685
  enum: [
679
686
  'basic',
680
- 'pro'
687
+ 'pro',
688
+ 'enterprise'
681
689
  ]
682
690
  },
683
691
  version_channel: {
@@ -897,7 +905,8 @@ export const ClusterUpdateInputSchema = {
897
905
  example: 'pro',
898
906
  enum: [
899
907
  'basic',
900
- 'pro'
908
+ 'pro',
909
+ 'enterprise'
901
910
  ]
902
911
  },
903
912
  version_channel: {
@@ -1005,8 +1014,8 @@ export const FleetCreateInputSchema = {
1005
1014
  type: 'string',
1006
1015
  maxLength: 64,
1007
1016
  minLength: 64,
1008
- pattern: '^[A-Za-z0-9]+$',
1009
- description: 'Hetzner Cloud API token with read / write access (64 alphanumeric characters). Omit this field to keep the existing value.'
1017
+ pattern: '^([A-Za-z0-9]{64}|\\*{64})$',
1018
+ description: 'Hetzner Cloud API token with read/write access (64 alphanumeric characters). Write-only: reads return a redacted placeholder, never the token. Omit the field, or send the placeholder back unchanged, to keep the existing key. Send a new value to rotate it.'
1010
1019
  }
1011
1020
  },
1012
1021
  required: [
@@ -1806,8 +1815,8 @@ export const FleetUpdateInputSchema = {
1806
1815
  type: 'string',
1807
1816
  maxLength: 64,
1808
1817
  minLength: 64,
1809
- pattern: '^[A-Za-z0-9]+$',
1810
- description: 'Hetzner Cloud API token with read / write access (64 alphanumeric characters). Omit this field to keep the existing value.'
1818
+ pattern: '^([A-Za-z0-9]{64}|\\*{64})$',
1819
+ description: 'Hetzner Cloud API token with read/write access (64 alphanumeric characters). Write-only: reads return a redacted placeholder, never the token. Omit the field, or send the placeholder back unchanged, to keep the existing key. Send a new value to rotate it.'
1811
1820
  }
1812
1821
  },
1813
1822
  required: [
@@ -2210,6 +2219,170 @@ export const InviteSchema = {
2210
2219
  ],
2211
2220
  additionalProperties: false
2212
2221
  };
2222
+ export const InvoicePaymentAttemptSchema = {
2223
+ type: 'object',
2224
+ properties: {
2225
+ invoice_id: {
2226
+ type: 'string',
2227
+ description: 'Identifier of the invoice.',
2228
+ example: 'in_1234567890xCrwxghOTj1234'
2229
+ },
2230
+ number: {
2231
+ type: 'string',
2232
+ nullable: true,
2233
+ description: 'Invoice number. Null if the invoice has no number.',
2234
+ example: 'CF-0042'
2235
+ },
2236
+ amount: {
2237
+ type: 'number',
2238
+ format: 'float',
2239
+ description: 'Amount outstanding when the charge was attempted, in the smallest currency unit.',
2240
+ example: 4200
2241
+ },
2242
+ currency: {
2243
+ type: 'string',
2244
+ description: 'Currency of the invoice.',
2245
+ example: 'eur'
2246
+ },
2247
+ status: {
2248
+ type: 'string',
2249
+ description: 'Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).',
2250
+ example: 'paid',
2251
+ enum: [
2252
+ 'paid',
2253
+ 'processing',
2254
+ 'requires_action',
2255
+ 'failed'
2256
+ ]
2257
+ },
2258
+ client_secret: {
2259
+ type: 'string',
2260
+ nullable: true,
2261
+ description: 'Client secret used to complete customer authentication. Set only when `status` is `requires_action`.',
2262
+ example: 'pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH'
2263
+ },
2264
+ failure_code: {
2265
+ type: 'string',
2266
+ nullable: true,
2267
+ description: 'Decline code. Set only when `status` is `failed`.',
2268
+ example: 'insufficient_funds'
2269
+ },
2270
+ failure_message: {
2271
+ type: 'string',
2272
+ nullable: true,
2273
+ description: 'Explanation of the decline, suitable for display. Set only when `status` is `failed`.',
2274
+ example: 'Your card has insufficient funds.'
2275
+ }
2276
+ },
2277
+ required: [
2278
+ 'invoice_id',
2279
+ 'number',
2280
+ 'amount',
2281
+ 'currency',
2282
+ 'status',
2283
+ 'client_secret',
2284
+ 'failure_code',
2285
+ 'failure_message'
2286
+ ],
2287
+ additionalProperties: false
2288
+ };
2289
+ export const InvoicePaymentResultSchema = {
2290
+ type: 'object',
2291
+ properties: {
2292
+ code: {
2293
+ type: 'string',
2294
+ 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).',
2295
+ example: 'partially_paid',
2296
+ enum: [
2297
+ 'paid',
2298
+ 'processing',
2299
+ 'action_required',
2300
+ 'partially_paid',
2301
+ 'failed',
2302
+ 'nothing_due',
2303
+ 'bank_transfer_due'
2304
+ ]
2305
+ },
2306
+ message: {
2307
+ type: 'string',
2308
+ description: 'Summary of the outcome, suitable for display.',
2309
+ example: '1 of 2 open invoices was paid. Invoice CF-0043 was declined: Your card has insufficient funds.'
2310
+ },
2311
+ results: {
2312
+ type: 'array',
2313
+ items: {
2314
+ type: 'object',
2315
+ properties: {
2316
+ invoice_id: {
2317
+ type: 'string',
2318
+ description: 'Identifier of the invoice.',
2319
+ example: 'in_1234567890xCrwxghOTj1234'
2320
+ },
2321
+ number: {
2322
+ type: 'string',
2323
+ description: 'Invoice number. Null if the invoice has no number.',
2324
+ example: 'CF-0042'
2325
+ },
2326
+ amount: {
2327
+ type: 'number',
2328
+ format: 'float',
2329
+ description: 'Amount outstanding when the charge was attempted, in the smallest currency unit.',
2330
+ example: 4200
2331
+ },
2332
+ currency: {
2333
+ type: 'string',
2334
+ description: 'Currency of the invoice.',
2335
+ example: 'eur'
2336
+ },
2337
+ status: {
2338
+ type: 'string',
2339
+ description: 'Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).',
2340
+ example: 'paid',
2341
+ enum: [
2342
+ 'paid',
2343
+ 'processing',
2344
+ 'requires_action',
2345
+ 'failed'
2346
+ ]
2347
+ },
2348
+ client_secret: {
2349
+ type: 'string',
2350
+ description: 'Client secret used to complete customer authentication. Set only when `status` is `requires_action`.',
2351
+ example: 'pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH'
2352
+ },
2353
+ failure_code: {
2354
+ type: 'string',
2355
+ description: 'Decline code. Set only when `status` is `failed`.',
2356
+ example: 'insufficient_funds'
2357
+ },
2358
+ failure_message: {
2359
+ type: 'string',
2360
+ description: 'Explanation of the decline, suitable for display. Set only when `status` is `failed`.',
2361
+ example: 'Your card has insufficient funds.'
2362
+ }
2363
+ },
2364
+ required: [
2365
+ 'invoice_id',
2366
+ 'number',
2367
+ 'amount',
2368
+ 'currency',
2369
+ 'status',
2370
+ 'client_secret',
2371
+ 'failure_code',
2372
+ 'failure_message'
2373
+ ],
2374
+ additionalProperties: false
2375
+ },
2376
+ description: 'One entry per invoice charged, oldest first.'
2377
+ }
2378
+ },
2379
+ required: [
2380
+ 'code',
2381
+ 'message',
2382
+ 'results'
2383
+ ],
2384
+ additionalProperties: false
2385
+ };
2213
2386
  export const InvoiceSchema = {
2214
2387
  type: 'object',
2215
2388
  properties: {
@@ -2544,6 +2717,17 @@ export const OrganizationSchema = {
2544
2717
  description: 'Available number of Pro clusters that can be created.',
2545
2718
  example: 999
2546
2719
  },
2720
+ enterprise_clusters_max: {
2721
+ type: 'integer',
2722
+ minimum: 0,
2723
+ description: 'Maximum number of Enterprise clusters that can be created.',
2724
+ example: 999
2725
+ },
2726
+ enterprise_clusters_available: {
2727
+ type: 'integer',
2728
+ description: 'Available number of Enterprise clusters that can be created.',
2729
+ example: 999
2730
+ },
2547
2731
  fleets_max: {
2548
2732
  type: 'integer',
2549
2733
  minimum: 0,
@@ -2605,6 +2789,8 @@ export const OrganizationSchema = {
2605
2789
  'basic_clusters_available',
2606
2790
  'pro_clusters_max',
2607
2791
  'pro_clusters_available',
2792
+ 'enterprise_clusters_max',
2793
+ 'enterprise_clusters_available',
2608
2794
  'fleets_max',
2609
2795
  'cluster_tiers',
2610
2796
  'regions',
@@ -2751,6 +2937,17 @@ export const PlatformQuotaSchema = {
2751
2937
  description: 'Available number of Pro clusters that can be created.',
2752
2938
  example: 999
2753
2939
  },
2940
+ enterprise_clusters_max: {
2941
+ type: 'integer',
2942
+ minimum: 0,
2943
+ description: 'Maximum number of Enterprise clusters that can be created.',
2944
+ example: 999
2945
+ },
2946
+ enterprise_clusters_available: {
2947
+ type: 'integer',
2948
+ description: 'Available number of Enterprise clusters that can be created.',
2949
+ example: 999
2950
+ },
2754
2951
  fleets_max: {
2755
2952
  type: 'integer',
2756
2953
  minimum: 0,
@@ -2812,6 +3009,8 @@ export const PlatformQuotaSchema = {
2812
3009
  'basic_clusters_available',
2813
3010
  'pro_clusters_max',
2814
3011
  'pro_clusters_available',
3012
+ 'enterprise_clusters_max',
3013
+ 'enterprise_clusters_available',
2815
3014
  'fleets_max',
2816
3015
  'cluster_tiers',
2817
3016
  'regions',
@@ -3154,172 +3353,6 @@ export const TicketCreateInputSchema = {
3154
3353
  ],
3155
3354
  additionalProperties: false
3156
3355
  };
3157
- export const TicketListResponseSchema = {
3158
- type: 'object',
3159
- properties: {
3160
- items: {
3161
- type: 'array',
3162
- items: {
3163
- type: 'object',
3164
- properties: {
3165
- id: {
3166
- type: 'string',
3167
- description: 'Unique identifier of the ticket (Mongo ObjectId).',
3168
- example: '60c72b2f9f1b2c001f8e4d3a'
3169
- },
3170
- status: {
3171
- type: 'string',
3172
- description: 'Current state of the ticket.',
3173
- example: 'waiting_on_us',
3174
- enum: [
3175
- 'waiting_on_us',
3176
- 'waiting_on_user',
3177
- 'closed'
3178
- ]
3179
- },
3180
- category: {
3181
- type: 'string',
3182
- description: 'Ticket category.',
3183
- example: 'technical',
3184
- enum: [
3185
- 'billing',
3186
- 'technical',
3187
- 'general'
3188
- ]
3189
- },
3190
- summary: {
3191
- type: 'string',
3192
- description: 'First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.',
3193
- example: 'My cluster cannot reach the registry. Logs attached.'
3194
- },
3195
- closed_at: {
3196
- type: 'string',
3197
- format: 'date-time',
3198
- nullable: true,
3199
- description: 'Closure timestamp. Null while the ticket is open.',
3200
- example: '2026-05-18T16:08:14.338Z'
3201
- },
3202
- date_created: {
3203
- type: 'string',
3204
- format: 'date-time',
3205
- description: 'Creation date of the ticket. ISO 8601 UTC.',
3206
- example: '2026-05-11T16:08:14.338Z'
3207
- },
3208
- date_updated: {
3209
- type: 'string',
3210
- format: 'date-time',
3211
- description: 'Last update date of the ticket. ISO 8601 UTC.',
3212
- example: '2026-05-11T16:08:14.338Z'
3213
- },
3214
- messages: {
3215
- type: 'array',
3216
- items: {
3217
- type: 'object',
3218
- properties: {
3219
- id: {
3220
- type: 'string',
3221
- description: 'Unique identifier of the message (Mongo ObjectId).',
3222
- example: '60c72b2f9f1b2c001f8e4d3b'
3223
- },
3224
- type: {
3225
- type: 'string',
3226
- description: 'Message type. Internal notes are filtered out of customer-facing responses.',
3227
- example: 'customer_reply',
3228
- enum: [
3229
- 'customer_reply',
3230
- 'agent_reply'
3231
- ]
3232
- },
3233
- body: {
3234
- type: 'string',
3235
- description: 'Message body in markdown.',
3236
- example: 'Thanks — that resolved it on my side.'
3237
- },
3238
- author_first_name: {
3239
- type: 'string',
3240
- nullable: true,
3241
- description: 'First name of the author. Null when not provided.',
3242
- example: 'Jane'
3243
- },
3244
- author_last_name: {
3245
- type: 'string',
3246
- nullable: true,
3247
- description: 'Last name of the author. Null when not provided.',
3248
- example: 'Doe'
3249
- },
3250
- attachments: {
3251
- type: 'array',
3252
- items: {
3253
- type: 'object',
3254
- properties: {
3255
- id: {
3256
- type: 'string',
3257
- description: 'Unique identifier of the attachment (Mongo ObjectId).',
3258
- example: '60c72b2f9f1b2c001f8e4d3c'
3259
- },
3260
- filename: {
3261
- type: 'string',
3262
- description: 'Original filename as uploaded.',
3263
- example: 'debug.log'
3264
- },
3265
- content_type: {
3266
- type: 'string',
3267
- description: 'MIME content type of the attachment.',
3268
- example: 'text/plain'
3269
- },
3270
- size: {
3271
- type: 'integer',
3272
- description: 'Size of the attachment in bytes.',
3273
- example: 12345
3274
- }
3275
- },
3276
- required: [
3277
- 'id',
3278
- 'filename',
3279
- 'content_type',
3280
- 'size'
3281
- ],
3282
- additionalProperties: false
3283
- },
3284
- description: 'Attachments associated with this message.',
3285
- example: []
3286
- },
3287
- date_created: {
3288
- type: 'string',
3289
- format: 'date-time',
3290
- description: 'Creation date of the message. ISO 8601 UTC.',
3291
- example: '2026-05-11T16:08:14.338Z'
3292
- }
3293
- },
3294
- required: [
3295
- 'id',
3296
- 'type',
3297
- 'body',
3298
- 'date_created'
3299
- ],
3300
- additionalProperties: false
3301
- },
3302
- description: 'Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.'
3303
- }
3304
- },
3305
- required: [
3306
- 'id',
3307
- 'status',
3308
- 'category',
3309
- 'summary',
3310
- 'date_created',
3311
- 'date_updated'
3312
- ],
3313
- additionalProperties: false
3314
- },
3315
- description: 'Tickets for the organization, ordered newest first. Messages are omitted from list responses.'
3316
- }
3317
- },
3318
- required: [
3319
- 'items'
3320
- ],
3321
- additionalProperties: false
3322
- };
3323
3356
  export const TicketMessageInputSchema = {
3324
3357
  type: 'object',
3325
3358
  properties: {
@@ -3361,11 +3394,13 @@ export const TicketMessageSchema = {
3361
3394
  },
3362
3395
  author_first_name: {
3363
3396
  type: 'string',
3397
+ nullable: true,
3364
3398
  description: 'First name of the author. Null when not provided.',
3365
3399
  example: 'Jane'
3366
3400
  },
3367
3401
  author_last_name: {
3368
3402
  type: 'string',
3403
+ nullable: true,
3369
3404
  description: 'Last name of the author. Null when not provided.',
3370
3405
  example: 'Doe'
3371
3406
  },
@@ -3457,6 +3492,7 @@ export const TicketSchema = {
3457
3492
  closed_at: {
3458
3493
  type: 'string',
3459
3494
  format: 'date-time',
3495
+ nullable: true,
3460
3496
  description: 'Closure timestamp. Null while the ticket is open.',
3461
3497
  example: '2026-05-18T16:08:14.338Z'
3462
3498
  },
@@ -3681,12 +3717,21 @@ export const UsageFacetsSchema = {
3681
3717
  product: {
3682
3718
  type: 'array',
3683
3719
  items: {
3684
- type: 'string'
3720
+ type: 'string',
3721
+ enum: [
3722
+ 'cfke_controlplane_basic',
3723
+ 'cfke_controlplane_pro',
3724
+ 'cfke_controlplane_enterprise',
3725
+ 'cfke_connected_nodes_basic',
3726
+ 'cfke_connected_nodes_pro',
3727
+ 'cfke_connected_nodes_enterprise',
3728
+ 'cfcr_storage'
3729
+ ]
3685
3730
  },
3686
3731
  description: 'List of unique products',
3687
3732
  example: [
3688
- 'cfke_controlplane',
3689
- 'cfke_connected_nodes'
3733
+ 'cfke_controlplane_pro',
3734
+ 'cfke_connected_nodes_pro'
3690
3735
  ]
3691
3736
  }
3692
3737
  },
@@ -3713,7 +3758,16 @@ export const UsageResponseSchema = {
3713
3758
  product: {
3714
3759
  type: 'string',
3715
3760
  description: 'The product the usage is associated with',
3716
- example: 'cfke_controlplane'
3761
+ example: 'cfke_controlplane_pro',
3762
+ enum: [
3763
+ 'cfke_controlplane_basic',
3764
+ 'cfke_controlplane_pro',
3765
+ 'cfke_controlplane_enterprise',
3766
+ 'cfke_connected_nodes_basic',
3767
+ 'cfke_connected_nodes_pro',
3768
+ 'cfke_connected_nodes_enterprise',
3769
+ 'cfcr_storage'
3770
+ ]
3717
3771
  },
3718
3772
  value: {
3719
3773
  type: 'number',
@@ -3761,12 +3815,21 @@ export const UsageResponseSchema = {
3761
3815
  product: {
3762
3816
  type: 'array',
3763
3817
  items: {
3764
- type: 'string'
3818
+ type: 'string',
3819
+ enum: [
3820
+ 'cfke_controlplane_basic',
3821
+ 'cfke_controlplane_pro',
3822
+ 'cfke_controlplane_enterprise',
3823
+ 'cfke_connected_nodes_basic',
3824
+ 'cfke_connected_nodes_pro',
3825
+ 'cfke_connected_nodes_enterprise',
3826
+ 'cfcr_storage'
3827
+ ]
3765
3828
  },
3766
3829
  description: 'List of unique products',
3767
3830
  example: [
3768
- 'cfke_controlplane',
3769
- 'cfke_connected_nodes'
3831
+ 'cfke_controlplane_pro',
3832
+ 'cfke_connected_nodes_pro'
3770
3833
  ]
3771
3834
  }
3772
3835
  },
@@ -3796,7 +3859,16 @@ export const UsageSchema = {
3796
3859
  product: {
3797
3860
  type: 'string',
3798
3861
  description: 'The product the usage is associated with',
3799
- example: 'cfke_controlplane'
3862
+ example: 'cfke_controlplane_pro',
3863
+ enum: [
3864
+ 'cfke_controlplane_basic',
3865
+ 'cfke_controlplane_pro',
3866
+ 'cfke_controlplane_enterprise',
3867
+ 'cfke_connected_nodes_basic',
3868
+ 'cfke_connected_nodes_pro',
3869
+ 'cfke_connected_nodes_enterprise',
3870
+ 'cfcr_storage'
3871
+ ]
3800
3872
  },
3801
3873
  value: {
3802
3874
  type: 'number',