@epilot/app-client 0.5.2 → 0.5.3
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 +26 -1
- package/dist/openapi.d.ts +75 -0
- package/dist/openapi.json +105 -1
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={187:function(e,r,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var o=n(t(466));r.default=o.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.0
|
|
1
|
+
(()=>{"use strict";var e={187:function(e,r,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var o=n(t(466));r.default=o.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.1.0","info":{"title":"","version":""},"servers":[{"url":"https://app.sls.epilot.io"}],"paths":{"/v1/app-configurations":{"get":{"operationId":"listConfigurations","parameters":[{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}},"post":{"operationId":"createConfiguration","requestBody":{"$ref":"#/components/requestBodies/CreateConfigRequest"},"responses":{}}},"/v1/app-configurations/public/{appId}":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration to install"}],"get":{"operationId":"getPublicConfiguration","parameters":[{"name":"version","in":"query"}],"responses":{}}},"/v1/app-configurations/{appId}":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"}],"get":{"operationId":"getConfiguration","parameters":[{"name":"version","in":"query"}],"responses":{}},"patch":{"operationId":"patchMetadata","requestBody":{"$ref":"#/components/requestBodies/PatchConfigMetadataRequest"},"responses":{}}},"/v1/app-configurations/{appId}/bundle":{"post":{"operationId":"createBundleUploadUrl","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/CreateBundlePresignedRequest"},"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/CreateLogoPresignedRequest"},"responses":{}},"delete":{"operationId":"deleteLogo","responses":{}}},"/v1/app-configurations/{appId}/versions":{"get":{"operationId":"listVersions","parameters":[{"name":"appId","in":"path","required":true},{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}}},"/v1/app-configurations/{appId}/versions/{version}":{"get":{"operationId":"getVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}},"delete":{"operationId":"deleteVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}},"patch":{"operationId":"patchVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/PatchVersionRequest"},"responses":{}}},"/v1/app-configurations/{appId}/versions/{version}/components":{"post":{"operationId":"createComponent","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/UpsertComponentRequest"},"responses":{}}},"/v1/app-configurations/{appId}/versions/{version}/components/{componentId}":{"patch":{"operationId":"patchComponent","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true},{"name":"componentId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/UpsertComponentRequest"},"responses":{}},"delete":{"operationId":"deleteComponent","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true},{"name":"componentId","in":"path","required":true}],"responses":{}}},"/v1/app-configurations/{appId}/versions/{sourceVersion}/clone-to/{targetVersion}":{"post":{"operationId":"cloneVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"sourceVersion","in":"path","required":true},{"name":"targetVersion","in":"path","required":true}],"responses":{}}},"/v1/app":{"get":{"operationId":"listInstallations","parameters":[{"name":"componentType","in":"query"},{"name":"enabled","in":"query"},{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}}},"/v1/app/{appId}":{"get":{"operationId":"getInstallation","parameters":[{"name":"appId","in":"path","required":true}],"responses":{}},"post":{"operationId":"install","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/InstallRequest"},"responses":{}},"patch":{"operationId":"patchInstallation","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/InstallRequest"},"responses":{}},"delete":{"operationId":"uninstall","parameters":[{"name":"appId","in":"path","required":true}],"responses":{}}},"/v1/app/{appId}/promote-to/{version}":{"post":{"operationId":"promoteVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}}}},"components":{"requestBodies":{"CreateLogoPresignedRequest":{"required":true,"content":{"application/json":{}}},"CreateBundlePresignedRequest":{"required":true,"content":{"application/json":{}}},"PatchConfigMetadataRequest":{"required":true,"content":{"application/json":{}}},"PatchVersionRequest":{"required":true,"content":{"application/json":{}}},"UpsertComponentRequest":{"required":true,"content":{"application/json":{}}},"CreateConfigRequest":{"required":true,"content":{"application/json":{}}},"InstallRequest":{"content":{"application/json":{}}}}}}')}},r={},t=function t(n){var o=r[n];if(void 0!==o)return o.exports;var a=r[n]={exports:{}};return e[n].call(a.exports,a,a.exports,t),a.exports}(187),n=exports;for(var o in t)n[o]=t[o];t.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"openapi": "3.0
|
|
2
|
+
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "",
|
|
5
5
|
"version": ""
|
|
@@ -170,6 +170,25 @@
|
|
|
170
170
|
}
|
|
171
171
|
],
|
|
172
172
|
"responses": {}
|
|
173
|
+
},
|
|
174
|
+
"patch": {
|
|
175
|
+
"operationId": "patchVersion",
|
|
176
|
+
"parameters": [
|
|
177
|
+
{
|
|
178
|
+
"name": "appId",
|
|
179
|
+
"in": "path",
|
|
180
|
+
"required": true
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "version",
|
|
184
|
+
"in": "path",
|
|
185
|
+
"required": true
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"requestBody": {
|
|
189
|
+
"$ref": "#/components/requestBodies/PatchVersionRequest"
|
|
190
|
+
},
|
|
191
|
+
"responses": {}
|
|
173
192
|
}
|
|
174
193
|
},
|
|
175
194
|
"/v1/app-configurations/{appId}/versions/{version}/components": {
|
|
@@ -378,6 +397,12 @@
|
|
|
378
397
|
"application/json": {}
|
|
379
398
|
}
|
|
380
399
|
},
|
|
400
|
+
"PatchVersionRequest": {
|
|
401
|
+
"required": true,
|
|
402
|
+
"content": {
|
|
403
|
+
"application/json": {}
|
|
404
|
+
}
|
|
405
|
+
},
|
|
381
406
|
"UpsertComponentRequest": {
|
|
382
407
|
"required": true,
|
|
383
408
|
"content": {
|
package/dist/openapi.d.ts
CHANGED
|
@@ -71,6 +71,13 @@ declare namespace Components {
|
|
|
71
71
|
*/
|
|
72
72
|
support_email?: string;
|
|
73
73
|
}
|
|
74
|
+
export interface PatchVersionRequest {
|
|
75
|
+
/**
|
|
76
|
+
* Name of the role
|
|
77
|
+
*/
|
|
78
|
+
role_id?: string | null;
|
|
79
|
+
grants?: /* Required grants for the app in order to call APIs for the installing tenant */ Schemas.Grants;
|
|
80
|
+
}
|
|
74
81
|
export type UpsertComponentRequest = Schemas.BaseComponent;
|
|
75
82
|
}
|
|
76
83
|
namespace Schemas {
|
|
@@ -368,6 +375,7 @@ declare namespace Components {
|
|
|
368
375
|
* Status of the review process
|
|
369
376
|
*/
|
|
370
377
|
review_status?: "approved" | "rejected" | "pending";
|
|
378
|
+
role?: Role;
|
|
371
379
|
version_audit: {
|
|
372
380
|
/**
|
|
373
381
|
* Timestamp of the creation
|
|
@@ -536,6 +544,7 @@ declare namespace Components {
|
|
|
536
544
|
* Status of the review process
|
|
537
545
|
*/
|
|
538
546
|
review_status?: "approved" | "rejected" | "pending";
|
|
547
|
+
role?: Role;
|
|
539
548
|
version_audit: {
|
|
540
549
|
/**
|
|
541
550
|
* Timestamp of the creation
|
|
@@ -654,6 +663,19 @@ declare namespace Components {
|
|
|
654
663
|
auth_token_ref?: string;
|
|
655
664
|
};
|
|
656
665
|
}
|
|
666
|
+
/**
|
|
667
|
+
* Required grants for the app in order to call APIs for the installing tenant
|
|
668
|
+
*/
|
|
669
|
+
export type Grants = {
|
|
670
|
+
/**
|
|
671
|
+
* The action the app can perform
|
|
672
|
+
*/
|
|
673
|
+
action: string;
|
|
674
|
+
/**
|
|
675
|
+
* The resource the app can access
|
|
676
|
+
*/
|
|
677
|
+
resource?: string;
|
|
678
|
+
}[];
|
|
657
679
|
/**
|
|
658
680
|
* Information about the installed app. Has configuration data of the installed version
|
|
659
681
|
*/
|
|
@@ -686,6 +708,10 @@ declare namespace Components {
|
|
|
686
708
|
* Version of the app that is installed
|
|
687
709
|
*/
|
|
688
710
|
installed_version: string;
|
|
711
|
+
/**
|
|
712
|
+
* The name of the role the app can use to access APIs
|
|
713
|
+
*/
|
|
714
|
+
role?: string;
|
|
689
715
|
/**
|
|
690
716
|
* Audit information for the app
|
|
691
717
|
*/
|
|
@@ -947,6 +973,7 @@ declare namespace Components {
|
|
|
947
973
|
* Version of the app that is installed
|
|
948
974
|
*/
|
|
949
975
|
version: string;
|
|
976
|
+
role?: Role;
|
|
950
977
|
/**
|
|
951
978
|
* Flag to indicate if the app is public.
|
|
952
979
|
*/
|
|
@@ -956,6 +983,13 @@ declare namespace Components {
|
|
|
956
983
|
*/
|
|
957
984
|
versions?: /* Configuration data about your app which is versionable */ ConfigurationVersion[];
|
|
958
985
|
}
|
|
986
|
+
export interface Role {
|
|
987
|
+
/**
|
|
988
|
+
* Name of the role
|
|
989
|
+
*/
|
|
990
|
+
id?: string;
|
|
991
|
+
grants?: /* Required grants for the app in order to call APIs for the installing tenant */ Grants;
|
|
992
|
+
}
|
|
959
993
|
export interface S3Reference {
|
|
960
994
|
/**
|
|
961
995
|
* The name of the S3 bucket where the JSON file for import is stored.
|
|
@@ -1316,6 +1350,25 @@ declare namespace Paths {
|
|
|
1316
1350
|
}
|
|
1317
1351
|
}
|
|
1318
1352
|
}
|
|
1353
|
+
namespace PatchVersion {
|
|
1354
|
+
namespace Parameters {
|
|
1355
|
+
export type AppId = string;
|
|
1356
|
+
export type Version = string;
|
|
1357
|
+
}
|
|
1358
|
+
export interface PathParameters {
|
|
1359
|
+
appId: Parameters.AppId;
|
|
1360
|
+
version: Parameters.Version;
|
|
1361
|
+
}
|
|
1362
|
+
export type RequestBody = Components.RequestBodies.PatchVersionRequest;
|
|
1363
|
+
namespace Responses {
|
|
1364
|
+
export interface $204 {
|
|
1365
|
+
}
|
|
1366
|
+
export interface $400 {
|
|
1367
|
+
}
|
|
1368
|
+
export interface $404 {
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1319
1372
|
namespace PromoteVersion {
|
|
1320
1373
|
namespace Parameters {
|
|
1321
1374
|
export type AppId = string;
|
|
@@ -1474,6 +1527,16 @@ export interface OperationMethods {
|
|
|
1474
1527
|
data?: any,
|
|
1475
1528
|
config?: AxiosRequestConfig
|
|
1476
1529
|
): OperationResponse<Paths.GetVersion.Responses.$200>
|
|
1530
|
+
/**
|
|
1531
|
+
* patchVersion - patchVersion
|
|
1532
|
+
*
|
|
1533
|
+
* Patch an existing app version
|
|
1534
|
+
*/
|
|
1535
|
+
'patchVersion'(
|
|
1536
|
+
parameters?: Parameters<Paths.PatchVersion.PathParameters> | null,
|
|
1537
|
+
data?: Paths.PatchVersion.RequestBody,
|
|
1538
|
+
config?: AxiosRequestConfig
|
|
1539
|
+
): OperationResponse<Paths.PatchVersion.Responses.$204>
|
|
1477
1540
|
/**
|
|
1478
1541
|
* deleteVersion - deleteVersion
|
|
1479
1542
|
*
|
|
@@ -1710,6 +1773,16 @@ export interface PathsDictionary {
|
|
|
1710
1773
|
data?: any,
|
|
1711
1774
|
config?: AxiosRequestConfig
|
|
1712
1775
|
): OperationResponse<Paths.DeleteVersion.Responses.$204>
|
|
1776
|
+
/**
|
|
1777
|
+
* patchVersion - patchVersion
|
|
1778
|
+
*
|
|
1779
|
+
* Patch an existing app version
|
|
1780
|
+
*/
|
|
1781
|
+
'patch'(
|
|
1782
|
+
parameters?: Parameters<Paths.PatchVersion.PathParameters> | null,
|
|
1783
|
+
data?: Paths.PatchVersion.RequestBody,
|
|
1784
|
+
config?: AxiosRequestConfig
|
|
1785
|
+
): OperationResponse<Paths.PatchVersion.Responses.$204>
|
|
1713
1786
|
}
|
|
1714
1787
|
['/v1/app-configurations/{appId}/versions/{version}/components']: {
|
|
1715
1788
|
/**
|
|
@@ -1843,6 +1916,7 @@ export type CustomFlowActionComponent = Components.Schemas.CustomFlowActionCompo
|
|
|
1843
1916
|
export type CustomFlowConfig = Components.Schemas.CustomFlowConfig;
|
|
1844
1917
|
export type EnumArg = Components.Schemas.EnumArg;
|
|
1845
1918
|
export type ExternalIntegrationCustomActionConfig = Components.Schemas.ExternalIntegrationCustomActionConfig;
|
|
1919
|
+
export type Grants = Components.Schemas.Grants;
|
|
1846
1920
|
export type Installation = Components.Schemas.Installation;
|
|
1847
1921
|
export type JourneyBlockComponent = Components.Schemas.JourneyBlockComponent;
|
|
1848
1922
|
export type JourneyBlockComponentArgs = Components.Schemas.JourneyBlockComponentArgs;
|
|
@@ -1857,6 +1931,7 @@ export type PortalExtensionComponent = Components.Schemas.PortalExtensionCompone
|
|
|
1857
1931
|
export type PortalExtensionConfig = Components.Schemas.PortalExtensionConfig;
|
|
1858
1932
|
export type Pricing = Components.Schemas.Pricing;
|
|
1859
1933
|
export type PublicConfiguration = Components.Schemas.PublicConfiguration;
|
|
1934
|
+
export type Role = Components.Schemas.Role;
|
|
1860
1935
|
export type S3Reference = Components.Schemas.S3Reference;
|
|
1861
1936
|
export type TextArg = Components.Schemas.TextArg;
|
|
1862
1937
|
export type TranslatedString = Components.Schemas.TranslatedString;
|
package/dist/openapi.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"openapi": "3.0
|
|
2
|
+
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "App API",
|
|
5
5
|
"description": "API for managing app publishing and installed app.",
|
|
@@ -535,6 +535,48 @@
|
|
|
535
535
|
"description": "Version is in use by installations"
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
+
},
|
|
539
|
+
"patch": {
|
|
540
|
+
"summary": "patchVersion",
|
|
541
|
+
"description": "Patch an existing app version",
|
|
542
|
+
"operationId": "patchVersion",
|
|
543
|
+
"tags": [
|
|
544
|
+
"App Configuration"
|
|
545
|
+
],
|
|
546
|
+
"parameters": [
|
|
547
|
+
{
|
|
548
|
+
"name": "appId",
|
|
549
|
+
"in": "path",
|
|
550
|
+
"required": true,
|
|
551
|
+
"schema": {
|
|
552
|
+
"type": "string"
|
|
553
|
+
},
|
|
554
|
+
"description": "ID of the app configuration"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"name": "version",
|
|
558
|
+
"in": "path",
|
|
559
|
+
"required": true,
|
|
560
|
+
"schema": {
|
|
561
|
+
"type": "string"
|
|
562
|
+
},
|
|
563
|
+
"description": "Version to update"
|
|
564
|
+
}
|
|
565
|
+
],
|
|
566
|
+
"requestBody": {
|
|
567
|
+
"$ref": "#/components/requestBodies/PatchVersionRequest"
|
|
568
|
+
},
|
|
569
|
+
"responses": {
|
|
570
|
+
"204": {
|
|
571
|
+
"description": "Version patched successfully"
|
|
572
|
+
},
|
|
573
|
+
"400": {
|
|
574
|
+
"description": "Invalid version format"
|
|
575
|
+
},
|
|
576
|
+
"404": {
|
|
577
|
+
"description": "Version not found"
|
|
578
|
+
}
|
|
579
|
+
}
|
|
538
580
|
}
|
|
539
581
|
},
|
|
540
582
|
"/v1/app-configurations/{appId}/versions/{version}/components": {
|
|
@@ -1093,6 +1135,26 @@
|
|
|
1093
1135
|
}
|
|
1094
1136
|
}
|
|
1095
1137
|
},
|
|
1138
|
+
"PatchVersionRequest": {
|
|
1139
|
+
"required": true,
|
|
1140
|
+
"content": {
|
|
1141
|
+
"application/json": {
|
|
1142
|
+
"schema": {
|
|
1143
|
+
"type": "object",
|
|
1144
|
+
"properties": {
|
|
1145
|
+
"role_id": {
|
|
1146
|
+
"nullable": true,
|
|
1147
|
+
"type": "string",
|
|
1148
|
+
"description": "Name of the role"
|
|
1149
|
+
},
|
|
1150
|
+
"grants": {
|
|
1151
|
+
"$ref": "#/components/schemas/Grants"
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
},
|
|
1096
1158
|
"UpsertComponentRequest": {
|
|
1097
1159
|
"required": true,
|
|
1098
1160
|
"content": {
|
|
@@ -1167,6 +1229,18 @@
|
|
|
1167
1229
|
}
|
|
1168
1230
|
},
|
|
1169
1231
|
"schemas": {
|
|
1232
|
+
"Role": {
|
|
1233
|
+
"type": "object",
|
|
1234
|
+
"properties": {
|
|
1235
|
+
"id": {
|
|
1236
|
+
"type": "string",
|
|
1237
|
+
"description": "Name of the role"
|
|
1238
|
+
},
|
|
1239
|
+
"grants": {
|
|
1240
|
+
"$ref": "#/components/schemas/Grants"
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1170
1244
|
"Options": {
|
|
1171
1245
|
"type": "object",
|
|
1172
1246
|
"description": "Options for the component configuration",
|
|
@@ -2065,6 +2139,9 @@
|
|
|
2065
2139
|
],
|
|
2066
2140
|
"description": "Status of the review process"
|
|
2067
2141
|
},
|
|
2142
|
+
"role": {
|
|
2143
|
+
"$ref": "#/components/schemas/Role"
|
|
2144
|
+
},
|
|
2068
2145
|
"version_audit": {
|
|
2069
2146
|
"readOnly": true,
|
|
2070
2147
|
"allOf": [
|
|
@@ -2090,6 +2167,26 @@
|
|
|
2090
2167
|
}
|
|
2091
2168
|
}
|
|
2092
2169
|
},
|
|
2170
|
+
"Grants": {
|
|
2171
|
+
"type": "array",
|
|
2172
|
+
"description": "Required grants for the app in order to call APIs for the installing tenant",
|
|
2173
|
+
"items": {
|
|
2174
|
+
"type": "object",
|
|
2175
|
+
"required": [
|
|
2176
|
+
"action"
|
|
2177
|
+
],
|
|
2178
|
+
"properties": {
|
|
2179
|
+
"action": {
|
|
2180
|
+
"type": "string",
|
|
2181
|
+
"description": "The action the app can perform"
|
|
2182
|
+
},
|
|
2183
|
+
"resource": {
|
|
2184
|
+
"type": "string",
|
|
2185
|
+
"description": "The resource the app can access"
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
},
|
|
2093
2190
|
"Installation": {
|
|
2094
2191
|
"description": "Information about the installed app. Has configuration data of the installed version",
|
|
2095
2192
|
"type": "object",
|
|
@@ -2144,6 +2241,10 @@
|
|
|
2144
2241
|
"description": "Version of the app that is installed",
|
|
2145
2242
|
"readOnly": true
|
|
2146
2243
|
},
|
|
2244
|
+
"role": {
|
|
2245
|
+
"type": "string",
|
|
2246
|
+
"description": "The name of the role the app can use to access APIs"
|
|
2247
|
+
},
|
|
2147
2248
|
"installation_audit": {
|
|
2148
2249
|
"readOnly": true,
|
|
2149
2250
|
"allOf": [
|
|
@@ -2240,6 +2341,9 @@
|
|
|
2240
2341
|
"description": "Version of the app that is installed",
|
|
2241
2342
|
"readOnly": true
|
|
2242
2343
|
},
|
|
2344
|
+
"role": {
|
|
2345
|
+
"$ref": "#/components/schemas/Role"
|
|
2346
|
+
},
|
|
2243
2347
|
"public": {
|
|
2244
2348
|
"type": "boolean",
|
|
2245
2349
|
"default": true,
|