@platzio/sdk 0.6.0-beta.0 → 0.6.0-beta.1-1
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/.github/workflows/release.yaml +2 -9
- package/dist/{api.d.ts → index.d.mts} +788 -481
- package/dist/index.d.ts +8127 -2
- package/dist/index.js +4873 -31
- package/dist/index.mjs +4748 -0
- package/generate-sdk.sh +14 -0
- package/openapi.yaml +145 -78
- package/package.json +6 -6
- package/src/api.ts +487 -148
- package/tsconfig.json +7 -9
- package/version-override.txt +1 -0
- package/dist/api.js +0 -4987
- package/dist/api.js.map +0 -1
- package/dist/base.d.ts +0 -66
- package/dist/base.js +0 -69
- package/dist/base.js.map +0 -1
- package/dist/common.d.ts +0 -65
- package/dist/common.js +0 -147
- package/dist/common.js.map +0 -1
- package/dist/configuration.d.ts +0 -91
- package/dist/configuration.js +0 -44
- package/dist/configuration.js.map +0 -1
- package/dist/index.js.map +0 -1
package/generate-sdk.sh
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
set -eu
|
|
4
|
+
|
|
5
|
+
OPENAPI_SCHEMA="$1"
|
|
6
|
+
|
|
7
|
+
exec docker run --rm \
|
|
8
|
+
-v "$(pwd):/local" \
|
|
9
|
+
openapitools/openapi-generator-cli \
|
|
10
|
+
generate \
|
|
11
|
+
-i "/local/${OPENAPI_SCHEMA}" \
|
|
12
|
+
-g typescript-axios \
|
|
13
|
+
-o /local/src \
|
|
14
|
+
--additional-properties=useSingleRequestParameter=true
|
package/openapi.yaml
CHANGED
|
@@ -51,6 +51,126 @@ paths:
|
|
|
51
51
|
security:
|
|
52
52
|
- access_token: []
|
|
53
53
|
- user_token: []
|
|
54
|
+
/api/v2/deployment-kinds:
|
|
55
|
+
get:
|
|
56
|
+
tags:
|
|
57
|
+
- Deployment Kinds
|
|
58
|
+
operationId: allDeploymentKinds
|
|
59
|
+
parameters:
|
|
60
|
+
- name: name
|
|
61
|
+
in: query
|
|
62
|
+
required: false
|
|
63
|
+
schema:
|
|
64
|
+
type: string
|
|
65
|
+
nullable: true
|
|
66
|
+
- name: page
|
|
67
|
+
in: query
|
|
68
|
+
required: false
|
|
69
|
+
schema:
|
|
70
|
+
type: integer
|
|
71
|
+
format: int64
|
|
72
|
+
nullable: true
|
|
73
|
+
- name: per_page
|
|
74
|
+
in: query
|
|
75
|
+
required: false
|
|
76
|
+
schema:
|
|
77
|
+
type: integer
|
|
78
|
+
format: int64
|
|
79
|
+
nullable: true
|
|
80
|
+
responses:
|
|
81
|
+
'200':
|
|
82
|
+
description: ''
|
|
83
|
+
content:
|
|
84
|
+
application/json:
|
|
85
|
+
schema:
|
|
86
|
+
type: object
|
|
87
|
+
required:
|
|
88
|
+
- page
|
|
89
|
+
- per_page
|
|
90
|
+
- items
|
|
91
|
+
- num_total
|
|
92
|
+
properties:
|
|
93
|
+
page:
|
|
94
|
+
type: integer
|
|
95
|
+
format: int64
|
|
96
|
+
example: '1'
|
|
97
|
+
per_page:
|
|
98
|
+
type: integer
|
|
99
|
+
format: int64
|
|
100
|
+
example: '50'
|
|
101
|
+
items:
|
|
102
|
+
type: array
|
|
103
|
+
items:
|
|
104
|
+
type: object
|
|
105
|
+
required:
|
|
106
|
+
- id
|
|
107
|
+
- created_at
|
|
108
|
+
- name
|
|
109
|
+
properties:
|
|
110
|
+
id:
|
|
111
|
+
type: string
|
|
112
|
+
format: uuid
|
|
113
|
+
created_at:
|
|
114
|
+
type: string
|
|
115
|
+
format: date-time
|
|
116
|
+
name:
|
|
117
|
+
type: string
|
|
118
|
+
num_total:
|
|
119
|
+
type: integer
|
|
120
|
+
format: int64
|
|
121
|
+
example: '1'
|
|
122
|
+
security:
|
|
123
|
+
- access_token: []
|
|
124
|
+
- user_token: []
|
|
125
|
+
/api/v2/deployment-kinds/{id}:
|
|
126
|
+
get:
|
|
127
|
+
tags:
|
|
128
|
+
- Deployment Kinds
|
|
129
|
+
operationId: getDeploymentKind
|
|
130
|
+
parameters:
|
|
131
|
+
- name: id
|
|
132
|
+
in: path
|
|
133
|
+
required: true
|
|
134
|
+
schema:
|
|
135
|
+
type: string
|
|
136
|
+
format: uuid
|
|
137
|
+
responses:
|
|
138
|
+
'200':
|
|
139
|
+
description: ''
|
|
140
|
+
content:
|
|
141
|
+
application/json:
|
|
142
|
+
schema:
|
|
143
|
+
$ref: '#/components/schemas/DeploymentKind'
|
|
144
|
+
security:
|
|
145
|
+
- access_token: []
|
|
146
|
+
- user_token: []
|
|
147
|
+
put:
|
|
148
|
+
tags:
|
|
149
|
+
- Deployment Kinds
|
|
150
|
+
operationId: updateDeploymentKind
|
|
151
|
+
parameters:
|
|
152
|
+
- name: id
|
|
153
|
+
in: path
|
|
154
|
+
required: true
|
|
155
|
+
schema:
|
|
156
|
+
type: string
|
|
157
|
+
format: uuid
|
|
158
|
+
requestBody:
|
|
159
|
+
content:
|
|
160
|
+
application/json:
|
|
161
|
+
schema:
|
|
162
|
+
$ref: '#/components/schemas/UpdateDeploymentKind'
|
|
163
|
+
required: true
|
|
164
|
+
responses:
|
|
165
|
+
'200':
|
|
166
|
+
description: ''
|
|
167
|
+
content:
|
|
168
|
+
application/json:
|
|
169
|
+
schema:
|
|
170
|
+
$ref: '#/components/schemas/DeploymentKind'
|
|
171
|
+
security:
|
|
172
|
+
- access_token: []
|
|
173
|
+
- user_token: []
|
|
54
174
|
/api/v2/deployment-permissions:
|
|
55
175
|
get:
|
|
56
176
|
tags:
|
|
@@ -108,7 +228,6 @@ paths:
|
|
|
108
228
|
- created_at
|
|
109
229
|
- env_id
|
|
110
230
|
- user_id
|
|
111
|
-
- kind
|
|
112
231
|
- kind_id
|
|
113
232
|
- role
|
|
114
233
|
properties:
|
|
@@ -124,8 +243,6 @@ paths:
|
|
|
124
243
|
user_id:
|
|
125
244
|
type: string
|
|
126
245
|
format: uuid
|
|
127
|
-
kind:
|
|
128
|
-
type: string
|
|
129
246
|
kind_id:
|
|
130
247
|
type: string
|
|
131
248
|
format: uuid
|
|
@@ -210,12 +327,6 @@ paths:
|
|
|
210
327
|
type: string
|
|
211
328
|
format: uuid
|
|
212
329
|
nullable: true
|
|
213
|
-
- name: deployment_kind
|
|
214
|
-
in: query
|
|
215
|
-
required: false
|
|
216
|
-
schema:
|
|
217
|
-
type: string
|
|
218
|
-
nullable: true
|
|
219
330
|
- name: deployment_kind_id
|
|
220
331
|
in: query
|
|
221
332
|
required: false
|
|
@@ -272,7 +383,6 @@ paths:
|
|
|
272
383
|
- id
|
|
273
384
|
- created_at
|
|
274
385
|
- env_id
|
|
275
|
-
- deployment_kind
|
|
276
386
|
- deployment_kind_id
|
|
277
387
|
- key
|
|
278
388
|
- spec
|
|
@@ -287,8 +397,6 @@ paths:
|
|
|
287
397
|
type: string
|
|
288
398
|
format: uuid
|
|
289
399
|
nullable: true
|
|
290
|
-
deployment_kind:
|
|
291
|
-
type: string
|
|
292
400
|
deployment_kind_id:
|
|
293
401
|
type: string
|
|
294
402
|
format: uuid
|
|
@@ -691,12 +799,6 @@ paths:
|
|
|
691
799
|
schema:
|
|
692
800
|
type: string
|
|
693
801
|
nullable: true
|
|
694
|
-
- name: kind
|
|
695
|
-
in: query
|
|
696
|
-
required: false
|
|
697
|
-
schema:
|
|
698
|
-
type: string
|
|
699
|
-
nullable: true
|
|
700
802
|
- name: kind_id
|
|
701
803
|
in: query
|
|
702
804
|
required: false
|
|
@@ -760,7 +862,6 @@ paths:
|
|
|
760
862
|
- id
|
|
761
863
|
- created_at
|
|
762
864
|
- name
|
|
763
|
-
- kind
|
|
764
865
|
- kind_id
|
|
765
866
|
- cluster_id
|
|
766
867
|
- enabled
|
|
@@ -781,8 +882,6 @@ paths:
|
|
|
781
882
|
format: date-time
|
|
782
883
|
name:
|
|
783
884
|
type: string
|
|
784
|
-
kind:
|
|
785
|
-
type: string
|
|
786
885
|
kind_id:
|
|
787
886
|
type: string
|
|
788
887
|
format: uuid
|
|
@@ -1382,12 +1481,6 @@ paths:
|
|
|
1382
1481
|
schema:
|
|
1383
1482
|
type: string
|
|
1384
1483
|
nullable: true
|
|
1385
|
-
- name: kind
|
|
1386
|
-
in: query
|
|
1387
|
-
required: false
|
|
1388
|
-
schema:
|
|
1389
|
-
type: string
|
|
1390
|
-
nullable: true
|
|
1391
1484
|
- name: kind_id
|
|
1392
1485
|
in: query
|
|
1393
1486
|
required: false
|
|
@@ -1439,7 +1532,6 @@ paths:
|
|
|
1439
1532
|
- created_at
|
|
1440
1533
|
- domain_name
|
|
1441
1534
|
- repo_name
|
|
1442
|
-
- kind
|
|
1443
1535
|
- kind_id
|
|
1444
1536
|
- available
|
|
1445
1537
|
- fa_icon
|
|
@@ -1454,8 +1546,6 @@ paths:
|
|
|
1454
1546
|
type: string
|
|
1455
1547
|
repo_name:
|
|
1456
1548
|
type: string
|
|
1457
|
-
kind:
|
|
1458
|
-
type: string
|
|
1459
1549
|
kind_id:
|
|
1460
1550
|
type: string
|
|
1461
1551
|
format: uuid
|
|
@@ -2124,7 +2214,7 @@ paths:
|
|
|
2124
2214
|
content:
|
|
2125
2215
|
application/json:
|
|
2126
2216
|
schema:
|
|
2127
|
-
$ref: '#/components/schemas/
|
|
2217
|
+
$ref: '#/components/schemas/UpdateSecret'
|
|
2128
2218
|
required: true
|
|
2129
2219
|
responses:
|
|
2130
2220
|
'200':
|
|
@@ -2866,7 +2956,6 @@ components:
|
|
|
2866
2956
|
required:
|
|
2867
2957
|
- deployment_id
|
|
2868
2958
|
- operation
|
|
2869
|
-
- execute_at
|
|
2870
2959
|
properties:
|
|
2871
2960
|
deployment_id:
|
|
2872
2961
|
type: string
|
|
@@ -2958,7 +3047,6 @@ components:
|
|
|
2958
3047
|
- id
|
|
2959
3048
|
- created_at
|
|
2960
3049
|
- name
|
|
2961
|
-
- kind
|
|
2962
3050
|
- kind_id
|
|
2963
3051
|
- cluster_id
|
|
2964
3052
|
- enabled
|
|
@@ -2979,8 +3067,6 @@ components:
|
|
|
2979
3067
|
format: date-time
|
|
2980
3068
|
name:
|
|
2981
3069
|
type: string
|
|
2982
|
-
kind:
|
|
2983
|
-
type: string
|
|
2984
3070
|
kind_id:
|
|
2985
3071
|
type: string
|
|
2986
3072
|
format: uuid
|
|
@@ -3037,6 +3123,21 @@ components:
|
|
|
3037
3123
|
action_id:
|
|
3038
3124
|
type: string
|
|
3039
3125
|
body: {}
|
|
3126
|
+
DeploymentKind:
|
|
3127
|
+
type: object
|
|
3128
|
+
required:
|
|
3129
|
+
- id
|
|
3130
|
+
- created_at
|
|
3131
|
+
- name
|
|
3132
|
+
properties:
|
|
3133
|
+
id:
|
|
3134
|
+
type: string
|
|
3135
|
+
format: uuid
|
|
3136
|
+
created_at:
|
|
3137
|
+
type: string
|
|
3138
|
+
format: date-time
|
|
3139
|
+
name:
|
|
3140
|
+
type: string
|
|
3040
3141
|
DeploymentPermission:
|
|
3041
3142
|
type: object
|
|
3042
3143
|
required:
|
|
@@ -3044,7 +3145,6 @@ components:
|
|
|
3044
3145
|
- created_at
|
|
3045
3146
|
- env_id
|
|
3046
3147
|
- user_id
|
|
3047
|
-
- kind
|
|
3048
3148
|
- kind_id
|
|
3049
3149
|
- role
|
|
3050
3150
|
properties:
|
|
@@ -3060,8 +3160,6 @@ components:
|
|
|
3060
3160
|
user_id:
|
|
3061
3161
|
type: string
|
|
3062
3162
|
format: uuid
|
|
3063
|
-
kind:
|
|
3064
|
-
type: string
|
|
3065
3163
|
kind_id:
|
|
3066
3164
|
type: string
|
|
3067
3165
|
format: uuid
|
|
@@ -3236,7 +3334,6 @@ components:
|
|
|
3236
3334
|
- id
|
|
3237
3335
|
- created_at
|
|
3238
3336
|
- env_id
|
|
3239
|
-
- deployment_kind
|
|
3240
3337
|
- deployment_kind_id
|
|
3241
3338
|
- key
|
|
3242
3339
|
- spec
|
|
@@ -3251,8 +3348,6 @@ components:
|
|
|
3251
3348
|
type: string
|
|
3252
3349
|
format: uuid
|
|
3253
3350
|
nullable: true
|
|
3254
|
-
deployment_kind:
|
|
3255
|
-
type: string
|
|
3256
3351
|
deployment_kind_id:
|
|
3257
3352
|
type: string
|
|
3258
3353
|
format: uuid
|
|
@@ -3563,7 +3658,6 @@ components:
|
|
|
3563
3658
|
- created_at
|
|
3564
3659
|
- domain_name
|
|
3565
3660
|
- repo_name
|
|
3566
|
-
- kind
|
|
3567
3661
|
- kind_id
|
|
3568
3662
|
- available
|
|
3569
3663
|
- fa_icon
|
|
@@ -3578,8 +3672,6 @@ components:
|
|
|
3578
3672
|
type: string
|
|
3579
3673
|
repo_name:
|
|
3580
3674
|
type: string
|
|
3581
|
-
kind:
|
|
3582
|
-
type: string
|
|
3583
3675
|
kind_id:
|
|
3584
3676
|
type: string
|
|
3585
3677
|
format: uuid
|
|
@@ -3734,7 +3826,6 @@ components:
|
|
|
3734
3826
|
NewDeployment:
|
|
3735
3827
|
type: object
|
|
3736
3828
|
required:
|
|
3737
|
-
- kind
|
|
3738
3829
|
- kind_id
|
|
3739
3830
|
- cluster_id
|
|
3740
3831
|
- helm_chart_id
|
|
@@ -3743,8 +3834,6 @@ components:
|
|
|
3743
3834
|
properties:
|
|
3744
3835
|
name:
|
|
3745
3836
|
type: string
|
|
3746
|
-
kind:
|
|
3747
|
-
type: string
|
|
3748
3837
|
kind_id:
|
|
3749
3838
|
type: string
|
|
3750
3839
|
format: uuid
|
|
@@ -3780,13 +3869,10 @@ components:
|
|
|
3780
3869
|
NewDeploymentResource:
|
|
3781
3870
|
type: object
|
|
3782
3871
|
required:
|
|
3783
|
-
- id
|
|
3784
|
-
- created_at
|
|
3785
3872
|
- type_id
|
|
3786
3873
|
- deployment_id
|
|
3787
3874
|
- name
|
|
3788
3875
|
- props
|
|
3789
|
-
- sync_status
|
|
3790
3876
|
properties:
|
|
3791
3877
|
id:
|
|
3792
3878
|
type: string
|
|
@@ -3813,13 +3899,11 @@ components:
|
|
|
3813
3899
|
type: object
|
|
3814
3900
|
required:
|
|
3815
3901
|
- name
|
|
3816
|
-
- auto_add_new_users
|
|
3817
3902
|
properties:
|
|
3818
3903
|
name:
|
|
3819
3904
|
type: string
|
|
3820
3905
|
auto_add_new_users:
|
|
3821
3906
|
type: boolean
|
|
3822
|
-
nullable: true
|
|
3823
3907
|
NewEnvUserPermission:
|
|
3824
3908
|
type: object
|
|
3825
3909
|
required:
|
|
@@ -4122,14 +4206,6 @@ components:
|
|
|
4122
4206
|
$ref: '#/components/schemas/ChartExtKindValuesUi'
|
|
4123
4207
|
UpdateDeployment:
|
|
4124
4208
|
type: object
|
|
4125
|
-
required:
|
|
4126
|
-
- name
|
|
4127
|
-
- cluster_id
|
|
4128
|
-
- helm_chart_id
|
|
4129
|
-
- config
|
|
4130
|
-
- values_override
|
|
4131
|
-
- enabled
|
|
4132
|
-
- description_md
|
|
4133
4209
|
properties:
|
|
4134
4210
|
name:
|
|
4135
4211
|
type: string
|
|
@@ -4152,11 +4228,15 @@ components:
|
|
|
4152
4228
|
description_md:
|
|
4153
4229
|
type: string
|
|
4154
4230
|
nullable: true
|
|
4155
|
-
|
|
4231
|
+
UpdateDeploymentKind:
|
|
4156
4232
|
type: object
|
|
4157
4233
|
required:
|
|
4158
4234
|
- name
|
|
4159
|
-
|
|
4235
|
+
properties:
|
|
4236
|
+
name:
|
|
4237
|
+
type: string
|
|
4238
|
+
UpdateDeploymentResource:
|
|
4239
|
+
type: object
|
|
4160
4240
|
properties:
|
|
4161
4241
|
name:
|
|
4162
4242
|
type: string
|
|
@@ -4165,11 +4245,6 @@ components:
|
|
|
4165
4245
|
nullable: true
|
|
4166
4246
|
UpdateEnv:
|
|
4167
4247
|
type: object
|
|
4168
|
-
required:
|
|
4169
|
-
- name
|
|
4170
|
-
- node_selector
|
|
4171
|
-
- tolerations
|
|
4172
|
-
- auto_add_new_users
|
|
4173
4248
|
properties:
|
|
4174
4249
|
name:
|
|
4175
4250
|
type: string
|
|
@@ -4183,16 +4258,12 @@ components:
|
|
|
4183
4258
|
nullable: true
|
|
4184
4259
|
UpdateHelmRegistry:
|
|
4185
4260
|
type: object
|
|
4186
|
-
required:
|
|
4187
|
-
- fa_icon
|
|
4188
4261
|
properties:
|
|
4189
4262
|
fa_icon:
|
|
4190
4263
|
type: string
|
|
4191
4264
|
nullable: true
|
|
4192
4265
|
UpdateK8sCluster:
|
|
4193
4266
|
type: object
|
|
4194
|
-
required:
|
|
4195
|
-
- ignore
|
|
4196
4267
|
properties:
|
|
4197
4268
|
env_id:
|
|
4198
4269
|
type: string
|
|
@@ -4216,11 +4287,8 @@ components:
|
|
|
4216
4287
|
grafana_datasource_name:
|
|
4217
4288
|
type: string
|
|
4218
4289
|
nullable: true
|
|
4219
|
-
|
|
4290
|
+
UpdateSecret:
|
|
4220
4291
|
type: object
|
|
4221
|
-
required:
|
|
4222
|
-
- name
|
|
4223
|
-
- contents
|
|
4224
4292
|
properties:
|
|
4225
4293
|
name:
|
|
4226
4294
|
type: string
|
|
@@ -4230,9 +4298,6 @@ components:
|
|
|
4230
4298
|
nullable: true
|
|
4231
4299
|
UpdateUser:
|
|
4232
4300
|
type: object
|
|
4233
|
-
required:
|
|
4234
|
-
- is_admin
|
|
4235
|
-
- is_active
|
|
4236
4301
|
properties:
|
|
4237
4302
|
is_admin:
|
|
4238
4303
|
type: boolean
|
|
@@ -4298,6 +4363,8 @@ tags:
|
|
|
4298
4363
|
- name: Authentication
|
|
4299
4364
|
description: |
|
|
4300
4365
|
APIs for logging into Platz and getting information about the current user.
|
|
4366
|
+
- name: Deployment Kinds
|
|
4367
|
+
description: "Deployment kinds map between kind IDs and their names.\n "
|
|
4301
4368
|
- name: Deployment Permissions
|
|
4302
4369
|
description: "APIs for setting deployment permissions per user.\n\nSee UserDeploymentRole for more information.\n "
|
|
4303
4370
|
- name: Deployment Resource Types
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platzio/sdk",
|
|
3
|
-
"version": "0.6.0-beta.
|
|
3
|
+
"version": "0.6.0-beta.1-1",
|
|
4
4
|
"description": "Platz.io SDK",
|
|
5
5
|
"homepage": "https://platz.io",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/platzio/sdk-
|
|
8
|
+
"url": "https://github.com/platzio/sdk-js"
|
|
9
9
|
},
|
|
10
10
|
"keywords": [
|
|
11
11
|
"platz",
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
],
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
16
|
"scripts": {
|
|
17
|
-
"build": "
|
|
17
|
+
"build": "tsup src/index.ts --format cjs,esm --dts"
|
|
18
18
|
},
|
|
19
19
|
"main": "dist/index.js",
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
},
|
|
20
|
+
"module": "dist/index.mjs",
|
|
21
|
+
"types": "dist/index.d.ts",
|
|
23
22
|
"peerDependencies": {
|
|
24
23
|
"axios": "^1.7.5"
|
|
25
24
|
},
|
|
26
25
|
"devDependencies": {
|
|
26
|
+
"tsup": "^8.2.4",
|
|
27
27
|
"typescript": "^5.5.4"
|
|
28
28
|
}
|
|
29
29
|
}
|