@epilot/app-client 0.0.15 → 0.0.17
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/dist/definition.js +1 -1
- package/dist/openapi-runtime.json +15 -5
- package/dist/openapi.d.ts +36 -10
- package/dist/openapi.json +55 -8
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={187:function(e,r,t){var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var n=p(t(466));r.default=n.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"servers":[{"url":"https://app.sls.epilot.io"}],"paths":{"/v1/app-configurations":{"get":{"operationId":"listAppConfigurations","parameters":[{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}},"post":{"operationId":"createAppConfiguration","requestBody":{"$ref":"#/components/requestBodies/CreateConfigRequest"},"responses":{}}},"/v1/app-configurations/{appId}":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"},{"
|
|
1
|
+
(()=>{"use strict";var e={187:function(e,r,t){var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var n=p(t(466));r.default=n.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"servers":[{"url":"https://app.sls.epilot.io"}],"paths":{"/v1/app-configurations":{"get":{"operationId":"listAppConfigurations","parameters":[{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}},"post":{"operationId":"createAppConfiguration","requestBody":{"$ref":"#/components/requestBodies/CreateConfigRequest"},"responses":{}}},"/v1/app-configurations/{appId}":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"}],"get":{"operationId":"getAppConfiguration","parameters":[{"name":"version","in":"query"}],"responses":{}},"put":{"operationId":"updateAppConfigurationMetadata","requestBody":{"$ref":"#/components/requestBodies/UpdateConfigMetadataRequest"},"responses":{}}},"/v1/app-configurations/{appId}/logo":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"}],"post":{"operationId":"createLogoUploadUrl","requestBody":{"$ref":"#/components/requestBodies/CreateLogoRequest"},"responses":{}},"delete":{"operationId":"deleteLogo","responses":{}}},"/v1/app-configurations/{appId}/versions":{"get":{"operationId":"listAppVersions","parameters":[{"name":"appId","in":"path","required":true},{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}}},"/v1/app-configurations/{appId}/versions/{version}":{"get":{"operationId":"getAppConfigurationVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}},"delete":{"operationId":"deleteAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}},"put":{"operationId":"updateAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/UpdateVersionRequest"},"responses":{}}},"/v1/app-configurations/{appId}/versions/{sourceVersion}/clone-to/{targetVersion}":{"post":{"operationId":"cloneAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"sourceVersion","in":"path","required":true},{"name":"targetVersion","in":"path","required":true}],"responses":{}}},"/v1/app":{"get":{"operationId":"listInstalledApps","parameters":[{"name":"componentType","in":"query"},{"name":"enabled","in":"query"},{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}}},"/v1/app/{appId}":{"get":{"operationId":"getInstalledApp","parameters":[{"name":"appId","in":"path","required":true}],"responses":{}},"put":{"operationId":"installApp","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/InstallAppRequest"},"responses":{}},"delete":{"operationId":"uninstallApp","parameters":[{"name":"appId","in":"path","required":true}],"responses":{}}},"/v1/app/{appId}/promote-to/{version}":{"post":{"operationId":"promoteAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}}}},"components":{"requestBodies":{"CreateLogoRequest":{"required":true,"content":{"application/json":{}}},"UpdateConfigMetadataRequest":{"required":true,"content":{"application/json":{}}},"UpdateVersionRequest":{"required":true,"content":{"application/json":{}}},"CreateConfigRequest":{"required":true,"content":{"application/json":{}}},"InstallAppRequest":{"content":{"application/json":{}}}}}}')}},r={},t=function t(p){var n=r[p];if(void 0!==n)return n.exports;var a=r[p]={exports:{}};return e[p].call(a.exports,a,a.exports,t),a.exports}(187),p=exports;for(var n in t)p[n]=t[n];t.__esModule&&Object.defineProperty(p,"__esModule",{value:!0})})();
|
|
@@ -40,15 +40,16 @@
|
|
|
40
40
|
"in": "path",
|
|
41
41
|
"required": true,
|
|
42
42
|
"description": "ID of the app configuration"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"name": "version",
|
|
46
|
-
"in": "query",
|
|
47
|
-
"description": "Version of the app configuration to retrieve. Defaults to latest"
|
|
48
43
|
}
|
|
49
44
|
],
|
|
50
45
|
"get": {
|
|
51
46
|
"operationId": "getAppConfiguration",
|
|
47
|
+
"parameters": [
|
|
48
|
+
{
|
|
49
|
+
"name": "version",
|
|
50
|
+
"in": "query"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
52
53
|
"responses": {}
|
|
53
54
|
},
|
|
54
55
|
"put": {
|
|
@@ -70,6 +71,9 @@
|
|
|
70
71
|
],
|
|
71
72
|
"post": {
|
|
72
73
|
"operationId": "createLogoUploadUrl",
|
|
74
|
+
"requestBody": {
|
|
75
|
+
"$ref": "#/components/requestBodies/CreateLogoRequest"
|
|
76
|
+
},
|
|
73
77
|
"responses": {}
|
|
74
78
|
},
|
|
75
79
|
"delete": {
|
|
@@ -257,6 +261,12 @@
|
|
|
257
261
|
},
|
|
258
262
|
"components": {
|
|
259
263
|
"requestBodies": {
|
|
264
|
+
"CreateLogoRequest": {
|
|
265
|
+
"required": true,
|
|
266
|
+
"content": {
|
|
267
|
+
"application/json": {}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
260
270
|
"UpdateConfigMetadataRequest": {
|
|
261
271
|
"required": true,
|
|
262
272
|
"content": {
|
package/dist/openapi.d.ts
CHANGED
|
@@ -14,6 +14,24 @@ declare namespace Components {
|
|
|
14
14
|
name: Schemas.TranslatedString;
|
|
15
15
|
description: Schemas.TranslatedString;
|
|
16
16
|
category?: string;
|
|
17
|
+
/**
|
|
18
|
+
* S3 key of the logo file
|
|
19
|
+
*/
|
|
20
|
+
logo_url_key?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface CreateLogoRequest {
|
|
23
|
+
/**
|
|
24
|
+
* Original filename of the logo
|
|
25
|
+
* example:
|
|
26
|
+
* company-logo.png
|
|
27
|
+
*/
|
|
28
|
+
filename: string;
|
|
29
|
+
/**
|
|
30
|
+
* MIME type of the logo file
|
|
31
|
+
* example:
|
|
32
|
+
* image/png
|
|
33
|
+
*/
|
|
34
|
+
mime_type: "image/png" | "image/jpeg" | "image/jpg";
|
|
17
35
|
}
|
|
18
36
|
export interface InstallAppRequest {
|
|
19
37
|
/**
|
|
@@ -28,6 +46,10 @@ declare namespace Components {
|
|
|
28
46
|
documentation_url?: string;
|
|
29
47
|
homepage_url?: string;
|
|
30
48
|
notifications?: Schemas.NotificationConfig;
|
|
49
|
+
/**
|
|
50
|
+
* S3 key of the logo file
|
|
51
|
+
*/
|
|
52
|
+
logo_url_key?: string;
|
|
31
53
|
}
|
|
32
54
|
export interface UpdateVersionRequest {
|
|
33
55
|
/**
|
|
@@ -620,12 +642,14 @@ declare namespace Paths {
|
|
|
620
642
|
}
|
|
621
643
|
}
|
|
622
644
|
namespace CreateLogoUploadUrl {
|
|
645
|
+
export type RequestBody = Components.RequestBodies.CreateLogoRequest;
|
|
623
646
|
namespace Responses {
|
|
624
647
|
export interface $200 {
|
|
625
648
|
/**
|
|
626
649
|
* Presigned S3 URL for uploading the logo
|
|
627
650
|
*/
|
|
628
651
|
upload_url: string;
|
|
652
|
+
s3ref?: Components.Schemas.S3Reference;
|
|
629
653
|
/**
|
|
630
654
|
* Timestamp when the upload URL expires
|
|
631
655
|
*/
|
|
@@ -664,6 +688,12 @@ declare namespace Paths {
|
|
|
664
688
|
}
|
|
665
689
|
}
|
|
666
690
|
namespace GetAppConfiguration {
|
|
691
|
+
namespace Parameters {
|
|
692
|
+
export type Version = string;
|
|
693
|
+
}
|
|
694
|
+
export interface QueryParameters {
|
|
695
|
+
version?: Parameters.Version;
|
|
696
|
+
}
|
|
667
697
|
namespace Responses {
|
|
668
698
|
export type $200 = /* Configuration of the published app */ Components.Schemas.AppConfiguration;
|
|
669
699
|
export interface $404 {
|
|
@@ -843,14 +873,10 @@ declare namespace Paths {
|
|
|
843
873
|
namespace V1AppConfigurations$AppId {
|
|
844
874
|
namespace Parameters {
|
|
845
875
|
export type AppId = string;
|
|
846
|
-
export type Version = string;
|
|
847
876
|
}
|
|
848
877
|
export interface PathParameters {
|
|
849
878
|
appId: Parameters.AppId;
|
|
850
879
|
}
|
|
851
|
-
export interface QueryParameters {
|
|
852
|
-
version?: Parameters.Version;
|
|
853
|
-
}
|
|
854
880
|
}
|
|
855
881
|
namespace V1AppConfigurations$AppIdLogo {
|
|
856
882
|
namespace Parameters {
|
|
@@ -889,7 +915,7 @@ export interface OperationMethods {
|
|
|
889
915
|
* Retrieve a specific app configuration
|
|
890
916
|
*/
|
|
891
917
|
'getAppConfiguration'(
|
|
892
|
-
parameters?: Parameters<Paths.
|
|
918
|
+
parameters?: Parameters<Paths.GetAppConfiguration.QueryParameters & Paths.V1AppConfigurations$AppId.PathParameters> | null,
|
|
893
919
|
data?: any,
|
|
894
920
|
config?: AxiosRequestConfig
|
|
895
921
|
): OperationResponse<Paths.GetAppConfiguration.Responses.$200>
|
|
@@ -899,7 +925,7 @@ export interface OperationMethods {
|
|
|
899
925
|
* Update non-versioned configuration metadata of a given app configuration.
|
|
900
926
|
*/
|
|
901
927
|
'updateAppConfigurationMetadata'(
|
|
902
|
-
parameters?: Parameters<Paths.V1AppConfigurations$AppId.
|
|
928
|
+
parameters?: Parameters<Paths.V1AppConfigurations$AppId.PathParameters> | null,
|
|
903
929
|
data?: Paths.UpdateAppConfigurationMetadata.RequestBody,
|
|
904
930
|
config?: AxiosRequestConfig
|
|
905
931
|
): OperationResponse<Paths.UpdateAppConfigurationMetadata.Responses.$204>
|
|
@@ -910,7 +936,7 @@ export interface OperationMethods {
|
|
|
910
936
|
*/
|
|
911
937
|
'createLogoUploadUrl'(
|
|
912
938
|
parameters?: Parameters<Paths.V1AppConfigurations$AppIdLogo.PathParameters> | null,
|
|
913
|
-
data?:
|
|
939
|
+
data?: Paths.CreateLogoUploadUrl.RequestBody,
|
|
914
940
|
config?: AxiosRequestConfig
|
|
915
941
|
): OperationResponse<Paths.CreateLogoUploadUrl.Responses.$200>
|
|
916
942
|
/**
|
|
@@ -1055,7 +1081,7 @@ export interface PathsDictionary {
|
|
|
1055
1081
|
* Retrieve a specific app configuration
|
|
1056
1082
|
*/
|
|
1057
1083
|
'get'(
|
|
1058
|
-
parameters?: Parameters<Paths.
|
|
1084
|
+
parameters?: Parameters<Paths.GetAppConfiguration.QueryParameters & Paths.V1AppConfigurations$AppId.PathParameters> | null,
|
|
1059
1085
|
data?: any,
|
|
1060
1086
|
config?: AxiosRequestConfig
|
|
1061
1087
|
): OperationResponse<Paths.GetAppConfiguration.Responses.$200>
|
|
@@ -1065,7 +1091,7 @@ export interface PathsDictionary {
|
|
|
1065
1091
|
* Update non-versioned configuration metadata of a given app configuration.
|
|
1066
1092
|
*/
|
|
1067
1093
|
'put'(
|
|
1068
|
-
parameters?: Parameters<Paths.V1AppConfigurations$AppId.
|
|
1094
|
+
parameters?: Parameters<Paths.V1AppConfigurations$AppId.PathParameters> | null,
|
|
1069
1095
|
data?: Paths.UpdateAppConfigurationMetadata.RequestBody,
|
|
1070
1096
|
config?: AxiosRequestConfig
|
|
1071
1097
|
): OperationResponse<Paths.UpdateAppConfigurationMetadata.Responses.$204>
|
|
@@ -1078,7 +1104,7 @@ export interface PathsDictionary {
|
|
|
1078
1104
|
*/
|
|
1079
1105
|
'post'(
|
|
1080
1106
|
parameters?: Parameters<Paths.V1AppConfigurations$AppIdLogo.PathParameters> | null,
|
|
1081
|
-
data?:
|
|
1107
|
+
data?: Paths.CreateLogoUploadUrl.RequestBody,
|
|
1082
1108
|
config?: AxiosRequestConfig
|
|
1083
1109
|
): OperationResponse<Paths.CreateLogoUploadUrl.Responses.$200>
|
|
1084
1110
|
/**
|
package/dist/openapi.json
CHANGED
|
@@ -121,20 +121,22 @@
|
|
|
121
121
|
"type": "string"
|
|
122
122
|
},
|
|
123
123
|
"description": "ID of the app configuration"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"name": "version",
|
|
127
|
-
"in": "query",
|
|
128
|
-
"schema": {
|
|
129
|
-
"type": "string"
|
|
130
|
-
},
|
|
131
|
-
"description": "Version of the app configuration to retrieve. Defaults to latest"
|
|
132
124
|
}
|
|
133
125
|
],
|
|
134
126
|
"get": {
|
|
135
127
|
"summary": "getAppConfiguration",
|
|
136
128
|
"description": "Retrieve a specific app configuration",
|
|
137
129
|
"operationId": "getAppConfiguration",
|
|
130
|
+
"parameters": [
|
|
131
|
+
{
|
|
132
|
+
"name": "version",
|
|
133
|
+
"in": "query",
|
|
134
|
+
"schema": {
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
"description": "Version of the app configuration to retrieve"
|
|
138
|
+
}
|
|
139
|
+
],
|
|
138
140
|
"responses": {
|
|
139
141
|
"200": {
|
|
140
142
|
"description": "Successful response",
|
|
@@ -184,6 +186,9 @@
|
|
|
184
186
|
"summary": "createLogoUploadUrl",
|
|
185
187
|
"description": "Generate a presigned URL for uploading app logo to /<app-id>/logo.png path",
|
|
186
188
|
"operationId": "createLogoUploadUrl",
|
|
189
|
+
"requestBody": {
|
|
190
|
+
"$ref": "#/components/requestBodies/CreateLogoRequest"
|
|
191
|
+
},
|
|
187
192
|
"responses": {
|
|
188
193
|
"200": {
|
|
189
194
|
"description": "Upload URL generated successfully",
|
|
@@ -199,6 +204,9 @@
|
|
|
199
204
|
"type": "string",
|
|
200
205
|
"description": "Presigned S3 URL for uploading the logo"
|
|
201
206
|
},
|
|
207
|
+
"s3ref": {
|
|
208
|
+
"$ref": "#/components/schemas/S3Reference"
|
|
209
|
+
},
|
|
202
210
|
"expires_at": {
|
|
203
211
|
"type": "string",
|
|
204
212
|
"format": "date-time",
|
|
@@ -692,6 +700,37 @@
|
|
|
692
700
|
},
|
|
693
701
|
"components": {
|
|
694
702
|
"requestBodies": {
|
|
703
|
+
"CreateLogoRequest": {
|
|
704
|
+
"required": true,
|
|
705
|
+
"content": {
|
|
706
|
+
"application/json": {
|
|
707
|
+
"schema": {
|
|
708
|
+
"type": "object",
|
|
709
|
+
"required": [
|
|
710
|
+
"filename",
|
|
711
|
+
"mime_type"
|
|
712
|
+
],
|
|
713
|
+
"properties": {
|
|
714
|
+
"filename": {
|
|
715
|
+
"type": "string",
|
|
716
|
+
"description": "Original filename of the logo",
|
|
717
|
+
"example": "company-logo.png"
|
|
718
|
+
},
|
|
719
|
+
"mime_type": {
|
|
720
|
+
"type": "string",
|
|
721
|
+
"description": "MIME type of the logo file",
|
|
722
|
+
"enum": [
|
|
723
|
+
"image/png",
|
|
724
|
+
"image/jpeg",
|
|
725
|
+
"image/jpg"
|
|
726
|
+
],
|
|
727
|
+
"example": "image/png"
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
},
|
|
695
734
|
"UpdateConfigMetadataRequest": {
|
|
696
735
|
"required": true,
|
|
697
736
|
"content": {
|
|
@@ -720,6 +759,10 @@
|
|
|
720
759
|
},
|
|
721
760
|
"notifications": {
|
|
722
761
|
"$ref": "#/components/schemas/NotificationConfig"
|
|
762
|
+
},
|
|
763
|
+
"logo_url_key": {
|
|
764
|
+
"type": "string",
|
|
765
|
+
"description": "S3 key of the logo file"
|
|
723
766
|
}
|
|
724
767
|
}
|
|
725
768
|
}
|
|
@@ -767,6 +810,10 @@
|
|
|
767
810
|
},
|
|
768
811
|
"category": {
|
|
769
812
|
"type": "string"
|
|
813
|
+
},
|
|
814
|
+
"logo_url_key": {
|
|
815
|
+
"type": "string",
|
|
816
|
+
"description": "S3 key of the logo file"
|
|
770
817
|
}
|
|
771
818
|
}
|
|
772
819
|
}
|