@platzio/sdk 0.5.0-beta.13 → 0.5.0-beta.15
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/api.ts +112 -30
- package/openapi.yaml +52 -13
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1485,6 +1485,12 @@ export interface ChartExtActionV0 {
|
|
|
1485
1485
|
* @memberof ChartExtActionV0
|
|
1486
1486
|
*/
|
|
1487
1487
|
'allowed_role': ChartExtActionUserDeploymentRole;
|
|
1488
|
+
/**
|
|
1489
|
+
*
|
|
1490
|
+
* @type {Array<string>}
|
|
1491
|
+
* @memberof ChartExtActionV0
|
|
1492
|
+
*/
|
|
1493
|
+
'allowed_on_statuses'?: Array<string>;
|
|
1488
1494
|
/**
|
|
1489
1495
|
*
|
|
1490
1496
|
* @type {string}
|
|
@@ -1503,6 +1509,12 @@ export interface ChartExtActionV0 {
|
|
|
1503
1509
|
* @memberof ChartExtActionV0
|
|
1504
1510
|
*/
|
|
1505
1511
|
'description': string;
|
|
1512
|
+
/**
|
|
1513
|
+
*
|
|
1514
|
+
* @type {boolean}
|
|
1515
|
+
* @memberof ChartExtActionV0
|
|
1516
|
+
*/
|
|
1517
|
+
'dangerous'?: boolean;
|
|
1506
1518
|
/**
|
|
1507
1519
|
*
|
|
1508
1520
|
* @type {UiSchema}
|
|
@@ -1530,6 +1542,12 @@ export interface ChartExtActionV0AllOf {
|
|
|
1530
1542
|
* @memberof ChartExtActionV0AllOf
|
|
1531
1543
|
*/
|
|
1532
1544
|
'allowed_role': ChartExtActionUserDeploymentRole;
|
|
1545
|
+
/**
|
|
1546
|
+
*
|
|
1547
|
+
* @type {Array<string>}
|
|
1548
|
+
* @memberof ChartExtActionV0AllOf
|
|
1549
|
+
*/
|
|
1550
|
+
'allowed_on_statuses'?: Array<string>;
|
|
1533
1551
|
/**
|
|
1534
1552
|
*
|
|
1535
1553
|
* @type {string}
|
|
@@ -1548,6 +1566,12 @@ export interface ChartExtActionV0AllOf {
|
|
|
1548
1566
|
* @memberof ChartExtActionV0AllOf
|
|
1549
1567
|
*/
|
|
1550
1568
|
'description': string;
|
|
1569
|
+
/**
|
|
1570
|
+
*
|
|
1571
|
+
* @type {boolean}
|
|
1572
|
+
* @memberof ChartExtActionV0AllOf
|
|
1573
|
+
*/
|
|
1574
|
+
'dangerous'?: boolean;
|
|
1551
1575
|
/**
|
|
1552
1576
|
*
|
|
1553
1577
|
* @type {UiSchema}
|
|
@@ -1588,7 +1612,7 @@ export interface ChartExtActionV1Beta1 {
|
|
|
1588
1612
|
* @type ChartExtActions
|
|
1589
1613
|
* @export
|
|
1590
1614
|
*/
|
|
1591
|
-
export type ChartExtActions =
|
|
1615
|
+
export type ChartExtActions = Array<ChartExtActionV1Beta1> | ChartExtActionsV0;
|
|
1592
1616
|
|
|
1593
1617
|
/**
|
|
1594
1618
|
*
|
|
@@ -1609,19 +1633,6 @@ export interface ChartExtActionsV0 {
|
|
|
1609
1633
|
*/
|
|
1610
1634
|
'actions': Array<ChartExtActionV0>;
|
|
1611
1635
|
}
|
|
1612
|
-
/**
|
|
1613
|
-
*
|
|
1614
|
-
* @export
|
|
1615
|
-
* @interface ChartExtActionsV1Beta1
|
|
1616
|
-
*/
|
|
1617
|
-
export interface ChartExtActionsV1Beta1 {
|
|
1618
|
-
/**
|
|
1619
|
-
*
|
|
1620
|
-
* @type {Array<ChartExtActionV1Beta1>}
|
|
1621
|
-
* @memberof ChartExtActionsV1Beta1
|
|
1622
|
-
*/
|
|
1623
|
-
'actions': Array<ChartExtActionV1Beta1>;
|
|
1624
|
-
}
|
|
1625
1636
|
/**
|
|
1626
1637
|
*
|
|
1627
1638
|
* @export
|
|
@@ -2193,6 +2204,71 @@ export interface CreateUserToken {
|
|
|
2193
2204
|
*/
|
|
2194
2205
|
'user_id'?: string | null;
|
|
2195
2206
|
}
|
|
2207
|
+
/**
|
|
2208
|
+
*
|
|
2209
|
+
* @export
|
|
2210
|
+
* @interface CreatedUserToken
|
|
2211
|
+
*/
|
|
2212
|
+
export interface CreatedUserToken {
|
|
2213
|
+
/**
|
|
2214
|
+
*
|
|
2215
|
+
* @type {string}
|
|
2216
|
+
* @memberof CreatedUserToken
|
|
2217
|
+
*/
|
|
2218
|
+
'created_token': string;
|
|
2219
|
+
}
|
|
2220
|
+
/**
|
|
2221
|
+
*
|
|
2222
|
+
* @export
|
|
2223
|
+
* @enum {string}
|
|
2224
|
+
*/
|
|
2225
|
+
|
|
2226
|
+
export const DbTable = {
|
|
2227
|
+
DeploymentConfigs: 'deployment_configs',
|
|
2228
|
+
DeploymentResources: 'deployment_resources',
|
|
2229
|
+
DeploymentResourceTypes: 'deployment_resource_types',
|
|
2230
|
+
Deployments: 'deployments',
|
|
2231
|
+
DeploymentTasks: 'deployment_tasks',
|
|
2232
|
+
DeploymentPermissions: 'deployment_permissions',
|
|
2233
|
+
Envs: 'envs',
|
|
2234
|
+
EnvUserPermissions: 'env_user_permissions',
|
|
2235
|
+
HelmRegistries: 'helm_registries',
|
|
2236
|
+
HelmCharts: 'helm_charts',
|
|
2237
|
+
HelmTagFormats: 'helm_tag_formats',
|
|
2238
|
+
K8sClusters: 'k8s_clusters',
|
|
2239
|
+
K8sResources: 'k8s_resources',
|
|
2240
|
+
Secrets: 'secrets',
|
|
2241
|
+
Users: 'users'
|
|
2242
|
+
} as const;
|
|
2243
|
+
|
|
2244
|
+
export type DbTable = typeof DbTable[keyof typeof DbTable];
|
|
2245
|
+
|
|
2246
|
+
|
|
2247
|
+
/**
|
|
2248
|
+
* @type DbTableOrDeploymentResource
|
|
2249
|
+
* @export
|
|
2250
|
+
*/
|
|
2251
|
+
export type DbTableOrDeploymentResource = DbTable | DbTableOrDeploymentResourceOneOf | string;
|
|
2252
|
+
|
|
2253
|
+
/**
|
|
2254
|
+
*
|
|
2255
|
+
* @export
|
|
2256
|
+
* @interface DbTableOrDeploymentResourceOneOf
|
|
2257
|
+
*/
|
|
2258
|
+
export interface DbTableOrDeploymentResourceOneOf {
|
|
2259
|
+
/**
|
|
2260
|
+
*
|
|
2261
|
+
* @type {string}
|
|
2262
|
+
* @memberof DbTableOrDeploymentResourceOneOf
|
|
2263
|
+
*/
|
|
2264
|
+
'deployment': string;
|
|
2265
|
+
/**
|
|
2266
|
+
*
|
|
2267
|
+
* @type {string}
|
|
2268
|
+
* @memberof DbTableOrDeploymentResourceOneOf
|
|
2269
|
+
*/
|
|
2270
|
+
'type': string;
|
|
2271
|
+
}
|
|
2196
2272
|
/**
|
|
2197
2273
|
*
|
|
2198
2274
|
* @export
|
|
@@ -2428,31 +2504,31 @@ export interface DeploymentReinstallTask {
|
|
|
2428
2504
|
/**
|
|
2429
2505
|
*
|
|
2430
2506
|
* @export
|
|
2431
|
-
* @interface
|
|
2507
|
+
* @interface DeploymentReportedMetric
|
|
2432
2508
|
*/
|
|
2433
|
-
export interface
|
|
2509
|
+
export interface DeploymentReportedMetric {
|
|
2434
2510
|
/**
|
|
2435
2511
|
*
|
|
2436
2512
|
* @type {string}
|
|
2437
|
-
* @memberof
|
|
2513
|
+
* @memberof DeploymentReportedMetric
|
|
2438
2514
|
*/
|
|
2439
2515
|
'value': string;
|
|
2440
2516
|
/**
|
|
2441
2517
|
*
|
|
2442
2518
|
* @type {string}
|
|
2443
|
-
* @memberof
|
|
2519
|
+
* @memberof DeploymentReportedMetric
|
|
2444
2520
|
*/
|
|
2445
2521
|
'unit': string;
|
|
2446
2522
|
/**
|
|
2447
2523
|
*
|
|
2448
2524
|
* @type {string}
|
|
2449
|
-
* @memberof
|
|
2525
|
+
* @memberof DeploymentReportedMetric
|
|
2450
2526
|
*/
|
|
2451
2527
|
'short_description': string;
|
|
2452
2528
|
/**
|
|
2453
2529
|
*
|
|
2454
2530
|
* @type {DeploymentReportedStatusColor}
|
|
2455
|
-
* @memberof
|
|
2531
|
+
* @memberof DeploymentReportedMetric
|
|
2456
2532
|
*/
|
|
2457
2533
|
'color'?: DeploymentReportedStatusColor | null;
|
|
2458
2534
|
}
|
|
@@ -2556,16 +2632,16 @@ export interface DeploymentReportedStatusContent {
|
|
|
2556
2632
|
'status': DeploymentReportedStatusSummary;
|
|
2557
2633
|
/**
|
|
2558
2634
|
*
|
|
2559
|
-
* @type {
|
|
2635
|
+
* @type {DeploymentReportedMetric}
|
|
2560
2636
|
* @memberof DeploymentReportedStatusContent
|
|
2561
2637
|
*/
|
|
2562
|
-
'primary_metric'?:
|
|
2638
|
+
'primary_metric'?: DeploymentReportedMetric | null;
|
|
2563
2639
|
/**
|
|
2564
2640
|
*
|
|
2565
|
-
* @type {Array<
|
|
2641
|
+
* @type {Array<DeploymentReportedMetric>}
|
|
2566
2642
|
* @memberof DeploymentReportedStatusContent
|
|
2567
2643
|
*/
|
|
2568
|
-
'metrics'?: Array<
|
|
2644
|
+
'metrics'?: Array<DeploymentReportedMetric> | null;
|
|
2569
2645
|
/**
|
|
2570
2646
|
*
|
|
2571
2647
|
* @type {Array<DeploymentReportedNotice>}
|
|
@@ -3840,16 +3916,22 @@ export interface UiSchemaFieldValuePair {
|
|
|
3840
3916
|
export interface UiSchemaInput {
|
|
3841
3917
|
/**
|
|
3842
3918
|
*
|
|
3843
|
-
* @type {
|
|
3919
|
+
* @type {string}
|
|
3844
3920
|
* @memberof UiSchemaInput
|
|
3845
3921
|
*/
|
|
3846
|
-
'
|
|
3922
|
+
'type': string;
|
|
3847
3923
|
/**
|
|
3848
3924
|
*
|
|
3849
|
-
* @type {
|
|
3925
|
+
* @type {string}
|
|
3850
3926
|
* @memberof UiSchemaInput
|
|
3851
3927
|
*/
|
|
3852
|
-
'
|
|
3928
|
+
'itemType'?: string | null;
|
|
3929
|
+
/**
|
|
3930
|
+
*
|
|
3931
|
+
* @type {any}
|
|
3932
|
+
* @memberof UiSchemaInput
|
|
3933
|
+
*/
|
|
3934
|
+
'collection'?: any | null;
|
|
3853
3935
|
/**
|
|
3854
3936
|
*
|
|
3855
3937
|
* @type {string}
|
|
@@ -9259,7 +9341,7 @@ export const UserTokensApiFp = function(configuration?: Configuration) {
|
|
|
9259
9341
|
* @param {*} [options] Override http request option.
|
|
9260
9342
|
* @throws {RequiredError}
|
|
9261
9343
|
*/
|
|
9262
|
-
async createUserToken(createUserToken: CreateUserToken, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
9344
|
+
async createUserToken(createUserToken: CreateUserToken, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatedUserToken>> {
|
|
9263
9345
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createUserToken(createUserToken, options);
|
|
9264
9346
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9265
9347
|
},
|
|
@@ -9310,7 +9392,7 @@ export const UserTokensApiFactory = function (configuration?: Configuration, bas
|
|
|
9310
9392
|
* @param {*} [options] Override http request option.
|
|
9311
9393
|
* @throws {RequiredError}
|
|
9312
9394
|
*/
|
|
9313
|
-
createUserToken(createUserToken: CreateUserToken, options?: any): AxiosPromise<
|
|
9395
|
+
createUserToken(createUserToken: CreateUserToken, options?: any): AxiosPromise<CreatedUserToken> {
|
|
9314
9396
|
return localVarFp.createUserToken(createUserToken, options).then((request) => request(axios, basePath));
|
|
9315
9397
|
},
|
|
9316
9398
|
/**
|
package/openapi.yaml
CHANGED
|
@@ -2151,7 +2151,7 @@ paths:
|
|
|
2151
2151
|
content:
|
|
2152
2152
|
application/json:
|
|
2153
2153
|
schema:
|
|
2154
|
-
$ref: '#/components/schemas/
|
|
2154
|
+
$ref: '#/components/schemas/CreatedUserToken'
|
|
2155
2155
|
security:
|
|
2156
2156
|
- access_token: []
|
|
2157
2157
|
- user_token: []
|
|
@@ -2398,6 +2398,10 @@ components:
|
|
|
2398
2398
|
type: string
|
|
2399
2399
|
allowed_role:
|
|
2400
2400
|
$ref: '#/components/schemas/ChartExtActionUserDeploymentRole'
|
|
2401
|
+
allowed_on_statuses:
|
|
2402
|
+
type: array
|
|
2403
|
+
items:
|
|
2404
|
+
type: string
|
|
2401
2405
|
title:
|
|
2402
2406
|
type: string
|
|
2403
2407
|
fontawesome_icon:
|
|
@@ -2405,6 +2409,8 @@ components:
|
|
|
2405
2409
|
nullable: true
|
|
2406
2410
|
description:
|
|
2407
2411
|
type: string
|
|
2412
|
+
dangerous:
|
|
2413
|
+
type: boolean
|
|
2408
2414
|
ui_schema:
|
|
2409
2415
|
allOf:
|
|
2410
2416
|
- $ref: '#/components/schemas/UiSchema'
|
|
@@ -2441,14 +2447,9 @@ components:
|
|
|
2441
2447
|
items:
|
|
2442
2448
|
$ref: '#/components/schemas/ChartExtActionV0'
|
|
2443
2449
|
ChartExtActionsV1Beta1:
|
|
2444
|
-
type:
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
properties:
|
|
2448
|
-
actions:
|
|
2449
|
-
type: array
|
|
2450
|
-
items:
|
|
2451
|
-
$ref: '#/components/schemas/ChartExtActionV1Beta1'
|
|
2450
|
+
type: array
|
|
2451
|
+
items:
|
|
2452
|
+
$ref: '#/components/schemas/ChartExtActionV1Beta1'
|
|
2452
2453
|
ChartExtCardinality:
|
|
2453
2454
|
type: string
|
|
2454
2455
|
enum:
|
|
@@ -2752,6 +2753,44 @@ components:
|
|
|
2752
2753
|
type: string
|
|
2753
2754
|
format: uuid
|
|
2754
2755
|
nullable: true
|
|
2756
|
+
CreatedUserToken:
|
|
2757
|
+
type: object
|
|
2758
|
+
required:
|
|
2759
|
+
- created_token
|
|
2760
|
+
properties:
|
|
2761
|
+
created_token:
|
|
2762
|
+
type: string
|
|
2763
|
+
DbTable:
|
|
2764
|
+
type: string
|
|
2765
|
+
enum:
|
|
2766
|
+
- deployment_configs
|
|
2767
|
+
- deployment_resources
|
|
2768
|
+
- deployment_resource_types
|
|
2769
|
+
- deployments
|
|
2770
|
+
- deployment_tasks
|
|
2771
|
+
- deployment_permissions
|
|
2772
|
+
- envs
|
|
2773
|
+
- env_user_permissions
|
|
2774
|
+
- helm_registries
|
|
2775
|
+
- helm_charts
|
|
2776
|
+
- helm_tag_formats
|
|
2777
|
+
- k8s_clusters
|
|
2778
|
+
- k8s_resources
|
|
2779
|
+
- secrets
|
|
2780
|
+
- users
|
|
2781
|
+
DbTableOrDeploymentResource:
|
|
2782
|
+
oneOf:
|
|
2783
|
+
- $ref: '#/components/schemas/DbTable'
|
|
2784
|
+
- type: object
|
|
2785
|
+
required:
|
|
2786
|
+
- deployment
|
|
2787
|
+
- type
|
|
2788
|
+
properties:
|
|
2789
|
+
deployment:
|
|
2790
|
+
type: string
|
|
2791
|
+
type:
|
|
2792
|
+
type: string
|
|
2793
|
+
- type: string
|
|
2755
2794
|
Deployment:
|
|
2756
2795
|
type: object
|
|
2757
2796
|
required:
|
|
@@ -2878,7 +2917,7 @@ components:
|
|
|
2878
2917
|
properties:
|
|
2879
2918
|
reason:
|
|
2880
2919
|
type: string
|
|
2881
|
-
|
|
2920
|
+
DeploymentReportedMetric:
|
|
2882
2921
|
type: object
|
|
2883
2922
|
required:
|
|
2884
2923
|
- value
|
|
@@ -2947,12 +2986,12 @@ components:
|
|
|
2947
2986
|
$ref: '#/components/schemas/DeploymentReportedStatusSummary'
|
|
2948
2987
|
primary_metric:
|
|
2949
2988
|
allOf:
|
|
2950
|
-
- $ref: '#/components/schemas/
|
|
2989
|
+
- $ref: '#/components/schemas/DeploymentReportedMetric'
|
|
2951
2990
|
nullable: true
|
|
2952
2991
|
metrics:
|
|
2953
2992
|
type: array
|
|
2954
2993
|
items:
|
|
2955
|
-
$ref: '#/components/schemas/
|
|
2994
|
+
$ref: '#/components/schemas/DeploymentReportedMetric'
|
|
2956
2995
|
nullable: true
|
|
2957
2996
|
notices:
|
|
2958
2997
|
type: array
|
|
@@ -3641,7 +3680,7 @@ components:
|
|
|
3641
3680
|
value: {}
|
|
3642
3681
|
UiSchemaInput:
|
|
3643
3682
|
allOf:
|
|
3644
|
-
- $ref: '#/components/schemas/
|
|
3683
|
+
- $ref: '#/components/schemas/SerializedUiSchemaInputType'
|
|
3645
3684
|
- type: object
|
|
3646
3685
|
required:
|
|
3647
3686
|
- id
|