@platzio/sdk 0.5.3-beta.3 → 0.6.0-beta.0

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/openapi.yaml CHANGED
@@ -109,6 +109,7 @@ paths:
109
109
  - env_id
110
110
  - user_id
111
111
  - kind
112
+ - kind_id
112
113
  - role
113
114
  properties:
114
115
  id:
@@ -125,6 +126,9 @@ paths:
125
126
  format: uuid
126
127
  kind:
127
128
  type: string
129
+ kind_id:
130
+ type: string
131
+ format: uuid
128
132
  role:
129
133
  $ref: '#/components/schemas/UserDeploymentRole'
130
134
  num_total:
@@ -212,6 +216,13 @@ paths:
212
216
  schema:
213
217
  type: string
214
218
  nullable: true
219
+ - name: deployment_kind_id
220
+ in: query
221
+ required: false
222
+ schema:
223
+ type: string
224
+ format: uuid
225
+ nullable: true
215
226
  - name: key
216
227
  in: query
217
228
  required: false
@@ -260,7 +271,9 @@ paths:
260
271
  required:
261
272
  - id
262
273
  - created_at
274
+ - env_id
263
275
  - deployment_kind
276
+ - deployment_kind_id
264
277
  - key
265
278
  - spec
266
279
  properties:
@@ -276,6 +289,9 @@ paths:
276
289
  nullable: true
277
290
  deployment_kind:
278
291
  type: string
292
+ deployment_kind_id:
293
+ type: string
294
+ format: uuid
279
295
  key:
280
296
  type: string
281
297
  spec:
@@ -365,10 +381,12 @@ paths:
365
381
  - id
366
382
  - created_at
367
383
  - type_id
384
+ - deployment_id
368
385
  - name
369
386
  - exists
370
387
  - props
371
388
  - sync_status
389
+ - sync_reason
372
390
  properties:
373
391
  id:
374
392
  type: string
@@ -548,10 +566,19 @@ paths:
548
566
  required:
549
567
  - id
550
568
  - created_at
569
+ - execute_at
570
+ - first_attempted_at
571
+ - started_at
572
+ - finished_at
551
573
  - cluster_id
552
574
  - deployment_id
575
+ - acting_user_id
576
+ - acting_deployment_id
577
+ - canceled_by_user_id
578
+ - canceled_by_deployment_id
553
579
  - operation
554
580
  - status
581
+ - reason
555
582
  properties:
556
583
  id:
557
584
  type: string
@@ -559,6 +586,9 @@ paths:
559
586
  created_at:
560
587
  type: string
561
588
  format: date-time
589
+ execute_at:
590
+ type: string
591
+ format: date-time
562
592
  first_attempted_at:
563
593
  type: string
564
594
  format: date-time
@@ -585,6 +615,14 @@ paths:
585
615
  type: string
586
616
  format: uuid
587
617
  nullable: true
618
+ canceled_by_user_id:
619
+ type: string
620
+ format: uuid
621
+ nullable: true
622
+ canceled_by_deployment_id:
623
+ type: string
624
+ format: uuid
625
+ nullable: true
588
626
  operation:
589
627
  $ref: '#/components/schemas/DeploymentTaskOperation'
590
628
  status:
@@ -659,6 +697,13 @@ paths:
659
697
  schema:
660
698
  type: string
661
699
  nullable: true
700
+ - name: kind_id
701
+ in: query
702
+ required: false
703
+ schema:
704
+ type: string
705
+ format: uuid
706
+ nullable: true
662
707
  - name: cluster_id
663
708
  in: query
664
709
  required: false
@@ -716,11 +761,17 @@ paths:
716
761
  - created_at
717
762
  - name
718
763
  - kind
764
+ - kind_id
719
765
  - cluster_id
720
766
  - enabled
721
767
  - status
768
+ - description_md
769
+ - reason
770
+ - revision_id
771
+ - reported_status
722
772
  - helm_chart_id
723
773
  - config
774
+ - values_override
724
775
  properties:
725
776
  id:
726
777
  type: string
@@ -732,6 +783,9 @@ paths:
732
783
  type: string
733
784
  kind:
734
785
  type: string
786
+ kind_id:
787
+ type: string
788
+ format: uuid
735
789
  cluster_id:
736
790
  type: string
737
791
  format: uuid
@@ -1226,6 +1280,16 @@ paths:
1226
1280
  - image_digest
1227
1281
  - image_tag
1228
1282
  - available
1283
+ - values_ui
1284
+ - actions_schema
1285
+ - features
1286
+ - resource_types
1287
+ - error
1288
+ - tag_format_id
1289
+ - parsed_version
1290
+ - parsed_revision
1291
+ - parsed_branch
1292
+ - parsed_commit
1229
1293
  properties:
1230
1294
  id:
1231
1295
  type: string
@@ -1324,6 +1388,13 @@ paths:
1324
1388
  schema:
1325
1389
  type: string
1326
1390
  nullable: true
1391
+ - name: kind_id
1392
+ in: query
1393
+ required: false
1394
+ schema:
1395
+ type: string
1396
+ format: uuid
1397
+ nullable: true
1327
1398
  - name: page
1328
1399
  in: query
1329
1400
  required: false
@@ -1369,6 +1440,7 @@ paths:
1369
1440
  - domain_name
1370
1441
  - repo_name
1371
1442
  - kind
1443
+ - kind_id
1372
1444
  - available
1373
1445
  - fa_icon
1374
1446
  properties:
@@ -1384,6 +1456,9 @@ paths:
1384
1456
  type: string
1385
1457
  kind:
1386
1458
  type: string
1459
+ kind_id:
1460
+ type: string
1461
+ format: uuid
1387
1462
  available:
1388
1463
  type: boolean
1389
1464
  fa_icon:
@@ -1634,13 +1709,20 @@ paths:
1634
1709
  type: object
1635
1710
  required:
1636
1711
  - id
1712
+ - env_id
1637
1713
  - provider_id
1638
1714
  - created_at
1639
1715
  - last_seen_at
1640
1716
  - name
1641
1717
  - region_name
1642
1718
  - is_ok
1719
+ - not_ok_reason
1643
1720
  - ignore
1721
+ - ingress_domain
1722
+ - ingress_class
1723
+ - ingress_tls_secret_name
1724
+ - grafana_url
1725
+ - grafana_datasource_name
1644
1726
  properties:
1645
1727
  id:
1646
1728
  type: string
@@ -2361,6 +2443,14 @@ paths:
2361
2443
  - user_token: []
2362
2444
  components:
2363
2445
  schemas:
2446
+ CancelDeploymentTask:
2447
+ type: object
2448
+ required:
2449
+ - reason
2450
+ properties:
2451
+ reason:
2452
+ type: string
2453
+ nullable: true
2364
2454
  ChartExt:
2365
2455
  type: object
2366
2456
  properties:
@@ -2499,6 +2589,7 @@ components:
2499
2589
  allOf:
2500
2590
  - $ref: '#/components/schemas/ChartExtDeploymentDisplayIcon'
2501
2591
  nullable: true
2592
+ additionalProperties: false
2502
2593
  ChartExtDeploymentDisplayIcon:
2503
2594
  type: object
2504
2595
  required:
@@ -2506,6 +2597,7 @@ components:
2506
2597
  properties:
2507
2598
  font_awesome:
2508
2599
  type: string
2600
+ additionalProperties: false
2509
2601
  ChartExtDeploymentDisplayName:
2510
2602
  oneOf:
2511
2603
  - type: string
@@ -2524,6 +2616,7 @@ components:
2524
2616
  properties:
2525
2617
  name:
2526
2618
  type: string
2619
+ additionalProperties: false
2527
2620
  ChartExtFeatures:
2528
2621
  oneOf:
2529
2622
  - $ref: '#/components/schemas/ChartExtFeaturesV1Beta2'
@@ -2773,14 +2866,21 @@ components:
2773
2866
  required:
2774
2867
  - deployment_id
2775
2868
  - operation
2869
+ - execute_at
2776
2870
  properties:
2777
2871
  deployment_id:
2778
2872
  type: string
2779
2873
  format: uuid
2780
2874
  operation:
2781
2875
  $ref: '#/components/schemas/DeploymentTaskOperation'
2876
+ execute_at:
2877
+ type: string
2878
+ format: date-time
2879
+ nullable: true
2782
2880
  CreateUserToken:
2783
2881
  type: object
2882
+ required:
2883
+ - user_id
2784
2884
  properties:
2785
2885
  user_id:
2786
2886
  type: string
@@ -2823,6 +2923,7 @@ components:
2823
2923
  DbTable:
2824
2924
  type: string
2825
2925
  enum:
2926
+ - deployment_kinds
2826
2927
  - deployment_resources
2827
2928
  - deployment_resource_types
2828
2929
  - deployments
@@ -2836,6 +2937,7 @@ components:
2836
2937
  - k8s_clusters
2837
2938
  - k8s_resources
2838
2939
  - secrets
2940
+ - settings
2839
2941
  - users
2840
2942
  DbTableOrDeploymentResource:
2841
2943
  oneOf:
@@ -2857,11 +2959,17 @@ components:
2857
2959
  - created_at
2858
2960
  - name
2859
2961
  - kind
2962
+ - kind_id
2860
2963
  - cluster_id
2861
2964
  - enabled
2862
2965
  - status
2966
+ - description_md
2967
+ - reason
2968
+ - revision_id
2969
+ - reported_status
2863
2970
  - helm_chart_id
2864
2971
  - config
2972
+ - values_override
2865
2973
  properties:
2866
2974
  id:
2867
2975
  type: string
@@ -2873,6 +2981,9 @@ components:
2873
2981
  type: string
2874
2982
  kind:
2875
2983
  type: string
2984
+ kind_id:
2985
+ type: string
2986
+ format: uuid
2876
2987
  cluster_id:
2877
2988
  type: string
2878
2989
  format: uuid
@@ -2905,6 +3016,7 @@ components:
2905
3016
  required:
2906
3017
  - helm_chart_id
2907
3018
  - config_inputs
3019
+ - values_override
2908
3020
  properties:
2909
3021
  helm_chart_id:
2910
3022
  type: string
@@ -2933,6 +3045,7 @@ components:
2933
3045
  - env_id
2934
3046
  - user_id
2935
3047
  - kind
3048
+ - kind_id
2936
3049
  - role
2937
3050
  properties:
2938
3051
  id:
@@ -2949,6 +3062,9 @@ components:
2949
3062
  format: uuid
2950
3063
  kind:
2951
3064
  type: string
3065
+ kind_id:
3066
+ type: string
3067
+ format: uuid
2952
3068
  role:
2953
3069
  $ref: '#/components/schemas/UserDeploymentRole'
2954
3070
  DeploymentRecreaseTask:
@@ -2982,6 +3098,7 @@ components:
2982
3098
  - value
2983
3099
  - unit
2984
3100
  - short_description
3101
+ - color
2985
3102
  properties:
2986
3103
  value:
2987
3104
  type: string
@@ -3014,6 +3131,8 @@ components:
3014
3131
  required:
3015
3132
  - timestamp
3016
3133
  - get_successful
3134
+ - content
3135
+ - error
3017
3136
  properties:
3018
3137
  timestamp:
3019
3138
  type: string
@@ -3039,6 +3158,8 @@ components:
3039
3158
  type: object
3040
3159
  required:
3041
3160
  - status
3161
+ - primary_metric
3162
+ - metrics
3042
3163
  properties:
3043
3164
  status:
3044
3165
  $ref: '#/components/schemas/DeploymentReportedStatusSummary'
@@ -3071,10 +3192,12 @@ components:
3071
3192
  - id
3072
3193
  - created_at
3073
3194
  - type_id
3195
+ - deployment_id
3074
3196
  - name
3075
3197
  - exists
3076
3198
  - props
3077
3199
  - sync_status
3200
+ - sync_reason
3078
3201
  properties:
3079
3202
  id:
3080
3203
  type: string
@@ -3112,7 +3235,9 @@ components:
3112
3235
  required:
3113
3236
  - id
3114
3237
  - created_at
3238
+ - env_id
3115
3239
  - deployment_kind
3240
+ - deployment_kind_id
3116
3241
  - key
3117
3242
  - spec
3118
3243
  properties:
@@ -3128,6 +3253,9 @@ components:
3128
3253
  nullable: true
3129
3254
  deployment_kind:
3130
3255
  type: string
3256
+ deployment_kind_id:
3257
+ type: string
3258
+ format: uuid
3131
3259
  key:
3132
3260
  type: string
3133
3261
  spec:
@@ -3160,10 +3288,19 @@ components:
3160
3288
  required:
3161
3289
  - id
3162
3290
  - created_at
3291
+ - execute_at
3292
+ - first_attempted_at
3293
+ - started_at
3294
+ - finished_at
3163
3295
  - cluster_id
3164
3296
  - deployment_id
3297
+ - acting_user_id
3298
+ - acting_deployment_id
3299
+ - canceled_by_user_id
3300
+ - canceled_by_deployment_id
3165
3301
  - operation
3166
3302
  - status
3303
+ - reason
3167
3304
  properties:
3168
3305
  id:
3169
3306
  type: string
@@ -3171,6 +3308,9 @@ components:
3171
3308
  created_at:
3172
3309
  type: string
3173
3310
  format: date-time
3311
+ execute_at:
3312
+ type: string
3313
+ format: date-time
3174
3314
  first_attempted_at:
3175
3315
  type: string
3176
3316
  format: date-time
@@ -3197,6 +3337,14 @@ components:
3197
3337
  type: string
3198
3338
  format: uuid
3199
3339
  nullable: true
3340
+ canceled_by_user_id:
3341
+ type: string
3342
+ format: uuid
3343
+ nullable: true
3344
+ canceled_by_deployment_id:
3345
+ type: string
3346
+ format: uuid
3347
+ nullable: true
3200
3348
  operation:
3201
3349
  $ref: '#/components/schemas/DeploymentTaskOperation'
3202
3350
  status:
@@ -3254,6 +3402,7 @@ components:
3254
3402
  - Pending
3255
3403
  - Started
3256
3404
  - Failed
3405
+ - Canceled
3257
3406
  - Done
3258
3407
  DeploymentUninstallTask:
3259
3408
  type: object
@@ -3261,7 +3410,10 @@ components:
3261
3410
  type: object
3262
3411
  required:
3263
3412
  - helm_chart_id
3413
+ - prev_helm_chart_id
3264
3414
  - config_inputs
3415
+ - config_delta
3416
+ - values_override
3265
3417
  properties:
3266
3418
  helm_chart_id:
3267
3419
  type: string
@@ -3343,6 +3495,16 @@ components:
3343
3495
  - image_digest
3344
3496
  - image_tag
3345
3497
  - available
3498
+ - values_ui
3499
+ - actions_schema
3500
+ - features
3501
+ - resource_types
3502
+ - error
3503
+ - tag_format_id
3504
+ - parsed_version
3505
+ - parsed_revision
3506
+ - parsed_branch
3507
+ - parsed_commit
3346
3508
  properties:
3347
3509
  id:
3348
3510
  type: string
@@ -3402,6 +3564,7 @@ components:
3402
3564
  - domain_name
3403
3565
  - repo_name
3404
3566
  - kind
3567
+ - kind_id
3405
3568
  - available
3406
3569
  - fa_icon
3407
3570
  properties:
@@ -3417,6 +3580,9 @@ components:
3417
3580
  type: string
3418
3581
  kind:
3419
3582
  type: string
3583
+ kind_id:
3584
+ type: string
3585
+ format: uuid
3420
3586
  available:
3421
3587
  type: boolean
3422
3588
  fa_icon:
@@ -3450,13 +3616,20 @@ components:
3450
3616
  type: object
3451
3617
  required:
3452
3618
  - id
3619
+ - env_id
3453
3620
  - provider_id
3454
3621
  - created_at
3455
3622
  - last_seen_at
3456
3623
  - name
3457
3624
  - region_name
3458
3625
  - is_ok
3626
+ - not_ok_reason
3459
3627
  - ignore
3628
+ - ingress_domain
3629
+ - ingress_class
3630
+ - ingress_tls_secret_name
3631
+ - grafana_url
3632
+ - grafana_datasource_name
3460
3633
  properties:
3461
3634
  id:
3462
3635
  type: string
@@ -3562,13 +3735,19 @@ components:
3562
3735
  type: object
3563
3736
  required:
3564
3737
  - kind
3738
+ - kind_id
3565
3739
  - cluster_id
3566
3740
  - helm_chart_id
3741
+ - config
3742
+ - values_override
3567
3743
  properties:
3568
3744
  name:
3569
3745
  type: string
3570
3746
  kind:
3571
3747
  type: string
3748
+ kind_id:
3749
+ type: string
3750
+ format: uuid
3572
3751
  cluster_id:
3573
3752
  type: string
3574
3753
  format: uuid
@@ -3584,7 +3763,7 @@ components:
3584
3763
  required:
3585
3764
  - env_id
3586
3765
  - user_id
3587
- - kind
3766
+ - kind_id
3588
3767
  - role
3589
3768
  properties:
3590
3769
  env_id:
@@ -3593,17 +3772,21 @@ components:
3593
3772
  user_id:
3594
3773
  type: string
3595
3774
  format: uuid
3596
- kind:
3775
+ kind_id:
3597
3776
  type: string
3777
+ format: uuid
3598
3778
  role:
3599
3779
  $ref: '#/components/schemas/UserDeploymentRole'
3600
3780
  NewDeploymentResource:
3601
3781
  type: object
3602
3782
  required:
3783
+ - id
3784
+ - created_at
3603
3785
  - type_id
3604
3786
  - deployment_id
3605
3787
  - name
3606
3788
  - props
3789
+ - sync_status
3607
3790
  properties:
3608
3791
  id:
3609
3792
  type: string
@@ -3630,6 +3813,7 @@ components:
3630
3813
  type: object
3631
3814
  required:
3632
3815
  - name
3816
+ - auto_add_new_users
3633
3817
  properties:
3634
3818
  name:
3635
3819
  type: string
@@ -3923,6 +4107,7 @@ components:
3923
4107
  $ref: '#/components/schemas/UiSchemaInput'
3924
4108
  outputs:
3925
4109
  $ref: '#/components/schemas/UiSchemaOutputs'
4110
+ additionalProperties: false
3926
4111
  UiSchemaV1Beta1:
3927
4112
  allOf:
3928
4113
  - $ref: '#/components/schemas/UiSchemaV0'
@@ -3937,6 +4122,14 @@ components:
3937
4122
  $ref: '#/components/schemas/ChartExtKindValuesUi'
3938
4123
  UpdateDeployment:
3939
4124
  type: object
4125
+ required:
4126
+ - name
4127
+ - cluster_id
4128
+ - helm_chart_id
4129
+ - config
4130
+ - values_override
4131
+ - enabled
4132
+ - description_md
3940
4133
  properties:
3941
4134
  name:
3942
4135
  type: string
@@ -3961,6 +4154,9 @@ components:
3961
4154
  nullable: true
3962
4155
  UpdateDeploymentResource:
3963
4156
  type: object
4157
+ required:
4158
+ - name
4159
+ - props
3964
4160
  properties:
3965
4161
  name:
3966
4162
  type: string
@@ -3969,6 +4165,11 @@ components:
3969
4165
  nullable: true
3970
4166
  UpdateEnv:
3971
4167
  type: object
4168
+ required:
4169
+ - name
4170
+ - node_selector
4171
+ - tolerations
4172
+ - auto_add_new_users
3972
4173
  properties:
3973
4174
  name:
3974
4175
  type: string
@@ -3982,12 +4183,16 @@ components:
3982
4183
  nullable: true
3983
4184
  UpdateHelmRegistry:
3984
4185
  type: object
4186
+ required:
4187
+ - fa_icon
3985
4188
  properties:
3986
4189
  fa_icon:
3987
4190
  type: string
3988
4191
  nullable: true
3989
4192
  UpdateK8sCluster:
3990
4193
  type: object
4194
+ required:
4195
+ - ignore
3991
4196
  properties:
3992
4197
  env_id:
3993
4198
  type: string
@@ -4013,6 +4218,9 @@ components:
4013
4218
  nullable: true
4014
4219
  UpdateSecretApi:
4015
4220
  type: object
4221
+ required:
4222
+ - name
4223
+ - contents
4016
4224
  properties:
4017
4225
  name:
4018
4226
  type: string
@@ -4022,6 +4230,9 @@ components:
4022
4230
  nullable: true
4023
4231
  UpdateUser:
4024
4232
  type: object
4233
+ required:
4234
+ - is_admin
4235
+ - is_active
4025
4236
  properties:
4026
4237
  is_admin:
4027
4238
  type: boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platzio/sdk",
3
- "version": "0.5.3-beta.3",
3
+ "version": "0.6.0-beta.0",
4
4
  "description": "Platz.io SDK",
5
5
  "homepage": "https://platz.io",
6
6
  "repository": {
@@ -21,9 +21,9 @@
21
21
  "access": "public"
22
22
  },
23
23
  "peerDependencies": {
24
- "axios": "^1.4.0"
24
+ "axios": "^1.7.5"
25
25
  },
26
26
  "devDependencies": {
27
- "typescript": "^5.0.4"
27
+ "typescript": "^5.5.4"
28
28
  }
29
29
  }
@@ -0,0 +1 @@
1
+ 7.9.0-SNAPSHOT