@epilot/app-client 0.0.16 → 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 +9 -0
- package/dist/openapi.d.ts +26 -2
- package/dist/openapi.json +45 -0
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={187:function(e,r,
|
|
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})})();
|
|
@@ -71,6 +71,9 @@
|
|
|
71
71
|
],
|
|
72
72
|
"post": {
|
|
73
73
|
"operationId": "createLogoUploadUrl",
|
|
74
|
+
"requestBody": {
|
|
75
|
+
"$ref": "#/components/requestBodies/CreateLogoRequest"
|
|
76
|
+
},
|
|
74
77
|
"responses": {}
|
|
75
78
|
},
|
|
76
79
|
"delete": {
|
|
@@ -258,6 +261,12 @@
|
|
|
258
261
|
},
|
|
259
262
|
"components": {
|
|
260
263
|
"requestBodies": {
|
|
264
|
+
"CreateLogoRequest": {
|
|
265
|
+
"required": true,
|
|
266
|
+
"content": {
|
|
267
|
+
"application/json": {}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
261
270
|
"UpdateConfigMetadataRequest": {
|
|
262
271
|
"required": true,
|
|
263
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
|
*/
|
|
@@ -912,7 +936,7 @@ export interface OperationMethods {
|
|
|
912
936
|
*/
|
|
913
937
|
'createLogoUploadUrl'(
|
|
914
938
|
parameters?: Parameters<Paths.V1AppConfigurations$AppIdLogo.PathParameters> | null,
|
|
915
|
-
data?:
|
|
939
|
+
data?: Paths.CreateLogoUploadUrl.RequestBody,
|
|
916
940
|
config?: AxiosRequestConfig
|
|
917
941
|
): OperationResponse<Paths.CreateLogoUploadUrl.Responses.$200>
|
|
918
942
|
/**
|
|
@@ -1080,7 +1104,7 @@ export interface PathsDictionary {
|
|
|
1080
1104
|
*/
|
|
1081
1105
|
'post'(
|
|
1082
1106
|
parameters?: Parameters<Paths.V1AppConfigurations$AppIdLogo.PathParameters> | null,
|
|
1083
|
-
data?:
|
|
1107
|
+
data?: Paths.CreateLogoUploadUrl.RequestBody,
|
|
1084
1108
|
config?: AxiosRequestConfig
|
|
1085
1109
|
): OperationResponse<Paths.CreateLogoUploadUrl.Responses.$200>
|
|
1086
1110
|
/**
|
package/dist/openapi.json
CHANGED
|
@@ -186,6 +186,9 @@
|
|
|
186
186
|
"summary": "createLogoUploadUrl",
|
|
187
187
|
"description": "Generate a presigned URL for uploading app logo to /<app-id>/logo.png path",
|
|
188
188
|
"operationId": "createLogoUploadUrl",
|
|
189
|
+
"requestBody": {
|
|
190
|
+
"$ref": "#/components/requestBodies/CreateLogoRequest"
|
|
191
|
+
},
|
|
189
192
|
"responses": {
|
|
190
193
|
"200": {
|
|
191
194
|
"description": "Upload URL generated successfully",
|
|
@@ -201,6 +204,9 @@
|
|
|
201
204
|
"type": "string",
|
|
202
205
|
"description": "Presigned S3 URL for uploading the logo"
|
|
203
206
|
},
|
|
207
|
+
"s3ref": {
|
|
208
|
+
"$ref": "#/components/schemas/S3Reference"
|
|
209
|
+
},
|
|
204
210
|
"expires_at": {
|
|
205
211
|
"type": "string",
|
|
206
212
|
"format": "date-time",
|
|
@@ -694,6 +700,37 @@
|
|
|
694
700
|
},
|
|
695
701
|
"components": {
|
|
696
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
|
+
},
|
|
697
734
|
"UpdateConfigMetadataRequest": {
|
|
698
735
|
"required": true,
|
|
699
736
|
"content": {
|
|
@@ -722,6 +759,10 @@
|
|
|
722
759
|
},
|
|
723
760
|
"notifications": {
|
|
724
761
|
"$ref": "#/components/schemas/NotificationConfig"
|
|
762
|
+
},
|
|
763
|
+
"logo_url_key": {
|
|
764
|
+
"type": "string",
|
|
765
|
+
"description": "S3 key of the logo file"
|
|
725
766
|
}
|
|
726
767
|
}
|
|
727
768
|
}
|
|
@@ -769,6 +810,10 @@
|
|
|
769
810
|
},
|
|
770
811
|
"category": {
|
|
771
812
|
"type": "string"
|
|
813
|
+
},
|
|
814
|
+
"logo_url_key": {
|
|
815
|
+
"type": "string",
|
|
816
|
+
"description": "S3 key of the logo file"
|
|
772
817
|
}
|
|
773
818
|
}
|
|
774
819
|
}
|