@epilot/app-client 0.0.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/README.md +29 -0
- package/dist/client.d.ts +3 -0
- package/dist/client.js +37 -0
- package/dist/definition.d.ts +3 -0
- package/dist/definition.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +18 -0
- package/dist/openapi-runtime.json +92 -0
- package/dist/openapi.d.ts +504 -0
- package/dist/openapi.json +710 -0
- package/package.json +76 -0
- package/tsconfig.json +24 -0
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# @epilot/app-client
|
|
2
|
+
|
|
3
|
+
[](https://github.com/epilot-dev/sdk-js/actions?query=workflow%3ACI)
|
|
4
|
+
[](https://www.npmjs.com/package/@epilot/app-client)
|
|
5
|
+
[](https://bundlephobia.com/package/@epilot/app-client)
|
|
6
|
+
[](https://github.com/epilot-dev/sdk-js/blob/main/LICENSE)
|
|
7
|
+
|
|
8
|
+
tbw
|
|
9
|
+
|
|
10
|
+
Uses [`openapi-client-axios`](https://github.com/openapistack/openapi-client-axios)
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install --save @epilot/app-client
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { getClient } from '@epilot/app-client';
|
|
22
|
+
const appClient = getClient();
|
|
23
|
+
|
|
24
|
+
const logs = await appClient.getLogs({ limit: 25, page: 2 });
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Documentation
|
|
28
|
+
|
|
29
|
+
tbw
|
package/dist/client.d.ts
ADDED
package/dist/client.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.createClient = exports.getClient = void 0;
|
|
18
|
+
var lambda_powertools_correlation_ids_1 = __importDefault(require("@dazn/lambda-powertools-correlation-ids"));
|
|
19
|
+
var openapi_client_axios_1 = __importDefault(require("openapi-client-axios"));
|
|
20
|
+
var definition_1 = __importDefault(require("./definition"));
|
|
21
|
+
var client;
|
|
22
|
+
var getClient = function () {
|
|
23
|
+
if (!client) {
|
|
24
|
+
client = (0, exports.createClient)();
|
|
25
|
+
}
|
|
26
|
+
return client;
|
|
27
|
+
};
|
|
28
|
+
exports.getClient = getClient;
|
|
29
|
+
var createClient = function () {
|
|
30
|
+
var _a;
|
|
31
|
+
var api = new openapi_client_axios_1.default({ definition: definition_1.default, quick: true });
|
|
32
|
+
var apiClient = api.initSync();
|
|
33
|
+
apiClient.defaults.headers.common = __assign(__assign({}, ((_a = apiClient.defaults.headers.common) !== null && _a !== void 0 ? _a : {})), (lambda_powertools_correlation_ids_1.default.get() || {}));
|
|
34
|
+
return apiClient;
|
|
35
|
+
};
|
|
36
|
+
exports.createClient = createClient;
|
|
37
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e={187:function(e,t,p){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=r(p(466));t.default=s.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"servers":[{"url":"https://app.sls.epilot.io"}],"paths":{"/v1/app:uploadManifest":{"post":{"operationId":"uploadManifest","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/app":{"get":{"operationId":"listInstalledApps","parameters":[{"name":"componentType","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":{}}}},"components":{"requestBodies":{"InstallAppRequest":{"content":{"application/json":{}}}}}}')}},t={},p=function p(r){var s=t[r];if(void 0!==s)return s.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,p),a.exports}(187),r=exports;for(var s in p)r[s]=p[s];p.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.3",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "",
|
|
5
|
+
"version": ""
|
|
6
|
+
},
|
|
7
|
+
"servers": [
|
|
8
|
+
{
|
|
9
|
+
"url": "https://app.sls.epilot.io"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"paths": {
|
|
13
|
+
"/v1/app:uploadManifest": {
|
|
14
|
+
"post": {
|
|
15
|
+
"operationId": "uploadManifest",
|
|
16
|
+
"requestBody": {
|
|
17
|
+
"content": {
|
|
18
|
+
"application/json": {}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"responses": {}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"/v1/app": {
|
|
25
|
+
"get": {
|
|
26
|
+
"operationId": "listInstalledApps",
|
|
27
|
+
"parameters": [
|
|
28
|
+
{
|
|
29
|
+
"name": "componentType",
|
|
30
|
+
"in": "query"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "page",
|
|
34
|
+
"in": "query"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "pageSize",
|
|
38
|
+
"in": "query"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"responses": {}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"/v1/app/{appId}": {
|
|
45
|
+
"get": {
|
|
46
|
+
"operationId": "getInstalledApp",
|
|
47
|
+
"parameters": [
|
|
48
|
+
{
|
|
49
|
+
"name": "appId",
|
|
50
|
+
"in": "path",
|
|
51
|
+
"required": true
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"responses": {}
|
|
55
|
+
},
|
|
56
|
+
"put": {
|
|
57
|
+
"operationId": "installApp",
|
|
58
|
+
"parameters": [
|
|
59
|
+
{
|
|
60
|
+
"name": "appId",
|
|
61
|
+
"in": "path",
|
|
62
|
+
"required": true
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"requestBody": {
|
|
66
|
+
"$ref": "#/components/requestBodies/InstallAppRequest"
|
|
67
|
+
},
|
|
68
|
+
"responses": {}
|
|
69
|
+
},
|
|
70
|
+
"delete": {
|
|
71
|
+
"operationId": "uninstallApp",
|
|
72
|
+
"parameters": [
|
|
73
|
+
{
|
|
74
|
+
"name": "appId",
|
|
75
|
+
"in": "path",
|
|
76
|
+
"required": true
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"responses": {}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"components": {
|
|
84
|
+
"requestBodies": {
|
|
85
|
+
"InstallAppRequest": {
|
|
86
|
+
"content": {
|
|
87
|
+
"application/json": {}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
import type {
|
|
4
|
+
OpenAPIClient,
|
|
5
|
+
Parameters,
|
|
6
|
+
UnknownParamsObject,
|
|
7
|
+
OperationResponse,
|
|
8
|
+
AxiosRequestConfig,
|
|
9
|
+
} from 'openapi-client-axios';
|
|
10
|
+
|
|
11
|
+
declare namespace Components {
|
|
12
|
+
namespace RequestBodies {
|
|
13
|
+
export type InstallAppRequest = /* Information about the installed app */ Schemas.App;
|
|
14
|
+
}
|
|
15
|
+
namespace Schemas {
|
|
16
|
+
/**
|
|
17
|
+
* Information about the installed app
|
|
18
|
+
*/
|
|
19
|
+
export interface App {
|
|
20
|
+
app_id?: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
/**
|
|
23
|
+
* URL of the app icon.
|
|
24
|
+
*/
|
|
25
|
+
icon_url?: string;
|
|
26
|
+
/**
|
|
27
|
+
* URL of the app documentation.
|
|
28
|
+
*/
|
|
29
|
+
documentation_url?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
app_s3ref?: S3Reference;
|
|
32
|
+
created_by?: string;
|
|
33
|
+
created_at?: string;
|
|
34
|
+
updated_at?: string;
|
|
35
|
+
version?: string;
|
|
36
|
+
author?: Author;
|
|
37
|
+
status?: "published" | "pending";
|
|
38
|
+
components?: BaseComponent[];
|
|
39
|
+
/**
|
|
40
|
+
* Flag to indicate if the app is built by epilot.
|
|
41
|
+
*/
|
|
42
|
+
internal?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Organization ID of the app owner, required for private apps
|
|
45
|
+
*/
|
|
46
|
+
owner_org_id?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Access level of the app.
|
|
49
|
+
*/
|
|
50
|
+
access_level?: "public" | "private";
|
|
51
|
+
/**
|
|
52
|
+
* Unique identifier for the app installation
|
|
53
|
+
*/
|
|
54
|
+
installation_id?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Unique identifier for the organization the app is installed in
|
|
57
|
+
*/
|
|
58
|
+
organization_id?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Timestamp of app creation
|
|
61
|
+
*/
|
|
62
|
+
installed_at?: string;
|
|
63
|
+
/**
|
|
64
|
+
* User ID of the user who installed the app
|
|
65
|
+
*/
|
|
66
|
+
installed_by?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Flag to indicate if the app is enabled.
|
|
69
|
+
*/
|
|
70
|
+
enabled?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Configuration values for the app components
|
|
73
|
+
*/
|
|
74
|
+
config_values?: {
|
|
75
|
+
component_id?: string;
|
|
76
|
+
options?: /* Options for the component configuration */ ConfigurationOptions[];
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Configuration of the published app
|
|
81
|
+
*/
|
|
82
|
+
export interface AppConfiguration {
|
|
83
|
+
app_id?: string;
|
|
84
|
+
name?: string;
|
|
85
|
+
/**
|
|
86
|
+
* URL of the app icon.
|
|
87
|
+
*/
|
|
88
|
+
icon_url?: string;
|
|
89
|
+
/**
|
|
90
|
+
* URL of the app documentation.
|
|
91
|
+
*/
|
|
92
|
+
documentation_url?: string;
|
|
93
|
+
description?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Link to the bundle (.zip) which contains all the app relevant assets
|
|
96
|
+
*/
|
|
97
|
+
app_s3ref?: S3Reference;
|
|
98
|
+
created_by?: string;
|
|
99
|
+
created_at?: string;
|
|
100
|
+
updated_at?: string;
|
|
101
|
+
version?: string;
|
|
102
|
+
author?: Author;
|
|
103
|
+
status?: "published" | "pending";
|
|
104
|
+
components?: BaseComponent[];
|
|
105
|
+
/**
|
|
106
|
+
* Flag to indicate if the app is built by epilot.
|
|
107
|
+
*/
|
|
108
|
+
internal?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Organization ID of the app owner, required for private apps
|
|
111
|
+
*/
|
|
112
|
+
owner_org_id?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Access level of the app.
|
|
115
|
+
*/
|
|
116
|
+
access_level?: "public" | "private";
|
|
117
|
+
}
|
|
118
|
+
export interface Author {
|
|
119
|
+
/**
|
|
120
|
+
* Unique identifier for the author
|
|
121
|
+
*/
|
|
122
|
+
id: string;
|
|
123
|
+
/**
|
|
124
|
+
* Name of the author
|
|
125
|
+
*/
|
|
126
|
+
name: string;
|
|
127
|
+
/**
|
|
128
|
+
* Company of the author
|
|
129
|
+
*/
|
|
130
|
+
company?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Email of the author
|
|
133
|
+
*/
|
|
134
|
+
email?: string;
|
|
135
|
+
}
|
|
136
|
+
export type BaseComponent = {
|
|
137
|
+
component_type: "CUSTOM_JOURNEY_BLOCK";
|
|
138
|
+
configuration: JourneyBlockConfig;
|
|
139
|
+
/**
|
|
140
|
+
* Unique identifier for the component
|
|
141
|
+
*/
|
|
142
|
+
id: string;
|
|
143
|
+
/**
|
|
144
|
+
* List of required options for the app component
|
|
145
|
+
*/
|
|
146
|
+
config_options?: /* Options for the component configuration */ ConfigurationOptions[];
|
|
147
|
+
} | {
|
|
148
|
+
component_type?: "PORTAL_EXTENSION";
|
|
149
|
+
configuration: PortalExtensionConfig;
|
|
150
|
+
/**
|
|
151
|
+
* Unique identifier for the component
|
|
152
|
+
*/
|
|
153
|
+
id: string;
|
|
154
|
+
/**
|
|
155
|
+
* List of required options for the app component
|
|
156
|
+
*/
|
|
157
|
+
config_options?: /* Options for the component configuration */ ConfigurationOptions[];
|
|
158
|
+
};
|
|
159
|
+
export interface BaseComponentCommon {
|
|
160
|
+
/**
|
|
161
|
+
* Unique identifier for the component
|
|
162
|
+
*/
|
|
163
|
+
id: string;
|
|
164
|
+
/**
|
|
165
|
+
* List of required options for the app component
|
|
166
|
+
*/
|
|
167
|
+
config_options?: /* Options for the component configuration */ ConfigurationOptions[];
|
|
168
|
+
}
|
|
169
|
+
export interface CallerIdentity {
|
|
170
|
+
/**
|
|
171
|
+
* a human readable name of the caller (e.g. user name, token name or email address)
|
|
172
|
+
* example:
|
|
173
|
+
* manifest@epilot.cloud
|
|
174
|
+
*/
|
|
175
|
+
name?: any;
|
|
176
|
+
/**
|
|
177
|
+
* epilot organization id
|
|
178
|
+
* example:
|
|
179
|
+
* 911690
|
|
180
|
+
*/
|
|
181
|
+
org_id: string;
|
|
182
|
+
/**
|
|
183
|
+
* epilot user id, when called by a user
|
|
184
|
+
* example:
|
|
185
|
+
* 11001045
|
|
186
|
+
*/
|
|
187
|
+
user_id?: string;
|
|
188
|
+
/**
|
|
189
|
+
* token id, when called by API token
|
|
190
|
+
* example:
|
|
191
|
+
* api_5ZugdRXasLfWBypHi93Fk
|
|
192
|
+
*/
|
|
193
|
+
token_id?: string;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Type of app component
|
|
197
|
+
*/
|
|
198
|
+
export type ComponentType = "CUSTOM_JOURNEY_BLOCK" | "PORTAL_EXTENSION";
|
|
199
|
+
/**
|
|
200
|
+
* Options for the component configuration
|
|
201
|
+
*/
|
|
202
|
+
export interface ConfigurationOptions {
|
|
203
|
+
/**
|
|
204
|
+
* Unique identifier for this configuration option
|
|
205
|
+
*/
|
|
206
|
+
key: string;
|
|
207
|
+
/**
|
|
208
|
+
* Human-readable label for the configuration option
|
|
209
|
+
*/
|
|
210
|
+
label?: string;
|
|
211
|
+
/**
|
|
212
|
+
* Detailed description of what this configuration option does
|
|
213
|
+
*/
|
|
214
|
+
description?: string;
|
|
215
|
+
/**
|
|
216
|
+
* The configured value (only used in App installation)
|
|
217
|
+
*/
|
|
218
|
+
value?: string;
|
|
219
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
220
|
+
/**
|
|
221
|
+
* Whether this configuration option must be set
|
|
222
|
+
*/
|
|
223
|
+
required?: boolean;
|
|
224
|
+
}
|
|
225
|
+
export interface JourneyBlockConfig {
|
|
226
|
+
bundle_s3Ref?: S3Reference;
|
|
227
|
+
/**
|
|
228
|
+
* Custom element tag for the component
|
|
229
|
+
*/
|
|
230
|
+
component_tag?: string;
|
|
231
|
+
}
|
|
232
|
+
export interface PortalAuth {
|
|
233
|
+
type?: string;
|
|
234
|
+
url?: string;
|
|
235
|
+
method?: string;
|
|
236
|
+
headers?: {
|
|
237
|
+
[name: string]: string;
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
export interface PortalExtensionConfig {
|
|
241
|
+
id?: string;
|
|
242
|
+
hooks?: {
|
|
243
|
+
id?: string;
|
|
244
|
+
type?: string;
|
|
245
|
+
name?: string;
|
|
246
|
+
interval?: string[];
|
|
247
|
+
auth?: PortalAuth;
|
|
248
|
+
call?: {
|
|
249
|
+
url?: string;
|
|
250
|
+
headers?: {
|
|
251
|
+
[name: string]: string;
|
|
252
|
+
};
|
|
253
|
+
params?: {
|
|
254
|
+
[name: string]: string;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
}[];
|
|
258
|
+
links?: {
|
|
259
|
+
id?: string;
|
|
260
|
+
type?: string;
|
|
261
|
+
name?: string;
|
|
262
|
+
description?: string;
|
|
263
|
+
condition?: string;
|
|
264
|
+
auth?: PortalAuth;
|
|
265
|
+
redirect?: {
|
|
266
|
+
url?: string;
|
|
267
|
+
params?: {
|
|
268
|
+
[name: string]: string;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
}[];
|
|
272
|
+
}
|
|
273
|
+
export interface S3Reference {
|
|
274
|
+
/**
|
|
275
|
+
* The name of the S3 bucket where the JSON file for import is stored.
|
|
276
|
+
* example:
|
|
277
|
+
* my-bucket
|
|
278
|
+
*/
|
|
279
|
+
bucket: string;
|
|
280
|
+
/**
|
|
281
|
+
* The key or path to the JSON file within the S3 bucket.
|
|
282
|
+
* example:
|
|
283
|
+
* manifest.json
|
|
284
|
+
*/
|
|
285
|
+
key: string;
|
|
286
|
+
}
|
|
287
|
+
export interface UploadFilePayload {
|
|
288
|
+
/**
|
|
289
|
+
* example:
|
|
290
|
+
* example.manifest.zip
|
|
291
|
+
*/
|
|
292
|
+
filename: string;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
declare namespace Paths {
|
|
297
|
+
namespace GetInstalledApp {
|
|
298
|
+
namespace Parameters {
|
|
299
|
+
export type AppId = string;
|
|
300
|
+
}
|
|
301
|
+
export interface PathParameters {
|
|
302
|
+
appId: Parameters.AppId;
|
|
303
|
+
}
|
|
304
|
+
namespace Responses {
|
|
305
|
+
export type $200 = /* Information about the installed app */ Components.Schemas.App;
|
|
306
|
+
export interface $404 {
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
namespace InstallApp {
|
|
311
|
+
namespace Parameters {
|
|
312
|
+
export type AppId = string;
|
|
313
|
+
}
|
|
314
|
+
export interface PathParameters {
|
|
315
|
+
appId: Parameters.AppId;
|
|
316
|
+
}
|
|
317
|
+
export type RequestBody = Components.RequestBodies.InstallAppRequest;
|
|
318
|
+
namespace Responses {
|
|
319
|
+
export interface $204 {
|
|
320
|
+
}
|
|
321
|
+
export interface $404 {
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
namespace ListInstalledApps {
|
|
326
|
+
namespace Parameters {
|
|
327
|
+
export type ComponentType = /* Type of app component */ Components.Schemas.ComponentType;
|
|
328
|
+
export type Page = number;
|
|
329
|
+
export type PageSize = number;
|
|
330
|
+
}
|
|
331
|
+
export interface QueryParameters {
|
|
332
|
+
componentType?: Parameters.ComponentType;
|
|
333
|
+
page?: Parameters.Page;
|
|
334
|
+
pageSize?: Parameters.PageSize;
|
|
335
|
+
}
|
|
336
|
+
namespace Responses {
|
|
337
|
+
export interface $200 {
|
|
338
|
+
apps?: /* Information about the installed app */ Components.Schemas.App[];
|
|
339
|
+
pagination?: {
|
|
340
|
+
total?: number;
|
|
341
|
+
page?: number;
|
|
342
|
+
pageSize?: number;
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
namespace UninstallApp {
|
|
348
|
+
namespace Parameters {
|
|
349
|
+
export type AppId = string;
|
|
350
|
+
}
|
|
351
|
+
export interface PathParameters {
|
|
352
|
+
appId: Parameters.AppId;
|
|
353
|
+
}
|
|
354
|
+
namespace Responses {
|
|
355
|
+
export interface $204 {
|
|
356
|
+
}
|
|
357
|
+
export interface $404 {
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
namespace UploadManifest {
|
|
362
|
+
export type RequestBody = Components.Schemas.UploadFilePayload;
|
|
363
|
+
namespace Responses {
|
|
364
|
+
export interface $201 {
|
|
365
|
+
s3ref?: Components.Schemas.S3Reference;
|
|
366
|
+
/**
|
|
367
|
+
* example:
|
|
368
|
+
* https://epilot-dev-blueprints.s3.eu-central-1.amazonaws.com/templates/document.pdf
|
|
369
|
+
*/
|
|
370
|
+
upload_url?: string; // url
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export interface OperationMethods {
|
|
377
|
+
/**
|
|
378
|
+
* uploadManifest - uploadManifest
|
|
379
|
+
*
|
|
380
|
+
* Create pre-signed S3 URL to upload a manifest file.
|
|
381
|
+
*
|
|
382
|
+
*/
|
|
383
|
+
'uploadManifest'(
|
|
384
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
385
|
+
data?: Paths.UploadManifest.RequestBody,
|
|
386
|
+
config?: AxiosRequestConfig
|
|
387
|
+
): OperationResponse<Paths.UploadManifest.Responses.$201>
|
|
388
|
+
/**
|
|
389
|
+
* listInstalledApps - listInstalledApps
|
|
390
|
+
*
|
|
391
|
+
* Retrieve a list of installed apps for the organization.
|
|
392
|
+
*/
|
|
393
|
+
'listInstalledApps'(
|
|
394
|
+
parameters?: Parameters<Paths.ListInstalledApps.QueryParameters> | null,
|
|
395
|
+
data?: any,
|
|
396
|
+
config?: AxiosRequestConfig
|
|
397
|
+
): OperationResponse<Paths.ListInstalledApps.Responses.$200>
|
|
398
|
+
/**
|
|
399
|
+
* getInstalledApp - getInstalledApp
|
|
400
|
+
*
|
|
401
|
+
* Retrieve details of an installed app by its ID.
|
|
402
|
+
*/
|
|
403
|
+
'getInstalledApp'(
|
|
404
|
+
parameters?: Parameters<Paths.GetInstalledApp.PathParameters> | null,
|
|
405
|
+
data?: any,
|
|
406
|
+
config?: AxiosRequestConfig
|
|
407
|
+
): OperationResponse<Paths.GetInstalledApp.Responses.$200>
|
|
408
|
+
/**
|
|
409
|
+
* installApp - installApp
|
|
410
|
+
*
|
|
411
|
+
* Update assets of a specific installed app by its ID.
|
|
412
|
+
*/
|
|
413
|
+
'installApp'(
|
|
414
|
+
parameters?: Parameters<Paths.InstallApp.PathParameters> | null,
|
|
415
|
+
data?: Paths.InstallApp.RequestBody,
|
|
416
|
+
config?: AxiosRequestConfig
|
|
417
|
+
): OperationResponse<Paths.InstallApp.Responses.$204>
|
|
418
|
+
/**
|
|
419
|
+
* uninstallApp - uninstallApp
|
|
420
|
+
*
|
|
421
|
+
* Uninstall an app by its ID.
|
|
422
|
+
*/
|
|
423
|
+
'uninstallApp'(
|
|
424
|
+
parameters?: Parameters<Paths.UninstallApp.PathParameters> | null,
|
|
425
|
+
data?: any,
|
|
426
|
+
config?: AxiosRequestConfig
|
|
427
|
+
): OperationResponse<Paths.UninstallApp.Responses.$204>
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export interface PathsDictionary {
|
|
431
|
+
['/v1/app:uploadManifest']: {
|
|
432
|
+
/**
|
|
433
|
+
* uploadManifest - uploadManifest
|
|
434
|
+
*
|
|
435
|
+
* Create pre-signed S3 URL to upload a manifest file.
|
|
436
|
+
*
|
|
437
|
+
*/
|
|
438
|
+
'post'(
|
|
439
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
440
|
+
data?: Paths.UploadManifest.RequestBody,
|
|
441
|
+
config?: AxiosRequestConfig
|
|
442
|
+
): OperationResponse<Paths.UploadManifest.Responses.$201>
|
|
443
|
+
}
|
|
444
|
+
['/v1/app']: {
|
|
445
|
+
/**
|
|
446
|
+
* listInstalledApps - listInstalledApps
|
|
447
|
+
*
|
|
448
|
+
* Retrieve a list of installed apps for the organization.
|
|
449
|
+
*/
|
|
450
|
+
'get'(
|
|
451
|
+
parameters?: Parameters<Paths.ListInstalledApps.QueryParameters> | null,
|
|
452
|
+
data?: any,
|
|
453
|
+
config?: AxiosRequestConfig
|
|
454
|
+
): OperationResponse<Paths.ListInstalledApps.Responses.$200>
|
|
455
|
+
}
|
|
456
|
+
['/v1/app/{appId}']: {
|
|
457
|
+
/**
|
|
458
|
+
* getInstalledApp - getInstalledApp
|
|
459
|
+
*
|
|
460
|
+
* Retrieve details of an installed app by its ID.
|
|
461
|
+
*/
|
|
462
|
+
'get'(
|
|
463
|
+
parameters?: Parameters<Paths.GetInstalledApp.PathParameters> | null,
|
|
464
|
+
data?: any,
|
|
465
|
+
config?: AxiosRequestConfig
|
|
466
|
+
): OperationResponse<Paths.GetInstalledApp.Responses.$200>
|
|
467
|
+
/**
|
|
468
|
+
* installApp - installApp
|
|
469
|
+
*
|
|
470
|
+
* Update assets of a specific installed app by its ID.
|
|
471
|
+
*/
|
|
472
|
+
'put'(
|
|
473
|
+
parameters?: Parameters<Paths.InstallApp.PathParameters> | null,
|
|
474
|
+
data?: Paths.InstallApp.RequestBody,
|
|
475
|
+
config?: AxiosRequestConfig
|
|
476
|
+
): OperationResponse<Paths.InstallApp.Responses.$204>
|
|
477
|
+
/**
|
|
478
|
+
* uninstallApp - uninstallApp
|
|
479
|
+
*
|
|
480
|
+
* Uninstall an app by its ID.
|
|
481
|
+
*/
|
|
482
|
+
'delete'(
|
|
483
|
+
parameters?: Parameters<Paths.UninstallApp.PathParameters> | null,
|
|
484
|
+
data?: any,
|
|
485
|
+
config?: AxiosRequestConfig
|
|
486
|
+
): OperationResponse<Paths.UninstallApp.Responses.$204>
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
491
|
+
|
|
492
|
+
export type App = Components.Schemas.App;
|
|
493
|
+
export type AppConfiguration = Components.Schemas.AppConfiguration;
|
|
494
|
+
export type Author = Components.Schemas.Author;
|
|
495
|
+
export type BaseComponent = Components.Schemas.BaseComponent;
|
|
496
|
+
export type BaseComponentCommon = Components.Schemas.BaseComponentCommon;
|
|
497
|
+
export type CallerIdentity = Components.Schemas.CallerIdentity;
|
|
498
|
+
export type ComponentType = Components.Schemas.ComponentType;
|
|
499
|
+
export type ConfigurationOptions = Components.Schemas.ConfigurationOptions;
|
|
500
|
+
export type JourneyBlockConfig = Components.Schemas.JourneyBlockConfig;
|
|
501
|
+
export type PortalAuth = Components.Schemas.PortalAuth;
|
|
502
|
+
export type PortalExtensionConfig = Components.Schemas.PortalExtensionConfig;
|
|
503
|
+
export type S3Reference = Components.Schemas.S3Reference;
|
|
504
|
+
export type UploadFilePayload = Components.Schemas.UploadFilePayload;
|