@epilot/app-client 0.0.21 → 0.1.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/dist/definition.js +1 -1
- package/dist/openapi-runtime.json +15 -1
- package/dist/openapi.d.ts +232 -213
- package/dist/openapi.json +179 -96
- 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"}],"get":{"operationId":"getAppConfiguration","parameters":[{"name":"version","in":"query"}],"responses":{}},"patch":{"operationId":"patchConfigurationMetadata","requestBody":{"$ref":"#/components/requestBodies/PatchConfigMetadataRequest"},"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":{}},"
|
|
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":{}},"patch":{"operationId":"patchConfigurationMetadata","requestBody":{"$ref":"#/components/requestBodies/PatchConfigMetadataRequest"},"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":{}},"post":{"operationId":"installApp","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/InstallAppRequest"},"responses":{}},"patch":{"operationId":"patchInstalledApp","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":{}}},"PatchConfigMetadataRequest":{"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})})();
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
],
|
|
215
215
|
"responses": {}
|
|
216
216
|
},
|
|
217
|
-
"
|
|
217
|
+
"post": {
|
|
218
218
|
"operationId": "installApp",
|
|
219
219
|
"parameters": [
|
|
220
220
|
{
|
|
@@ -228,6 +228,20 @@
|
|
|
228
228
|
},
|
|
229
229
|
"responses": {}
|
|
230
230
|
},
|
|
231
|
+
"patch": {
|
|
232
|
+
"operationId": "patchInstalledApp",
|
|
233
|
+
"parameters": [
|
|
234
|
+
{
|
|
235
|
+
"name": "appId",
|
|
236
|
+
"in": "path",
|
|
237
|
+
"required": true
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"requestBody": {
|
|
241
|
+
"$ref": "#/components/requestBodies/InstallAppRequest"
|
|
242
|
+
},
|
|
243
|
+
"responses": {}
|
|
244
|
+
},
|
|
231
245
|
"delete": {
|
|
232
246
|
"operationId": "uninstallApp",
|
|
233
247
|
"parameters": [
|
package/dist/openapi.d.ts
CHANGED
|
@@ -44,7 +44,6 @@ declare namespace Components {
|
|
|
44
44
|
description?: Schemas.TranslatedString;
|
|
45
45
|
category?: string;
|
|
46
46
|
documentation_url?: string;
|
|
47
|
-
homepage_url?: string;
|
|
48
47
|
notifications?: Schemas.NotificationConfig;
|
|
49
48
|
pricing?: Schemas.Pricing;
|
|
50
49
|
/**
|
|
@@ -64,123 +63,105 @@ declare namespace Components {
|
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
65
|
namespace Schemas {
|
|
67
|
-
|
|
68
|
-
* Information about the installed app
|
|
69
|
-
*/
|
|
70
|
-
export interface App {
|
|
71
|
-
app_id?: string;
|
|
72
|
-
name: TranslatedString;
|
|
73
|
-
author?: Author;
|
|
74
|
-
/**
|
|
75
|
-
* List of available versions of the app
|
|
76
|
-
*/
|
|
77
|
-
versions?: string[];
|
|
78
|
-
/**
|
|
79
|
-
* Email address for support requests
|
|
80
|
-
*/
|
|
81
|
-
support_email?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Latest version of the app
|
|
84
|
-
*/
|
|
85
|
-
latest_version?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Category of the app.
|
|
88
|
-
*/
|
|
89
|
-
category?: string;
|
|
90
|
-
/**
|
|
91
|
-
* URL of the app icon.
|
|
92
|
-
*/
|
|
93
|
-
icon_url?: string;
|
|
94
|
-
/**
|
|
95
|
-
* URL of the app documentation.
|
|
96
|
-
*/
|
|
97
|
-
documentation_url?: string;
|
|
98
|
-
/**
|
|
99
|
-
* URL of the app homepage.
|
|
100
|
-
*/
|
|
101
|
-
homepage_url?: string;
|
|
102
|
-
description: TranslatedString;
|
|
103
|
-
notifications?: NotificationConfig;
|
|
66
|
+
export interface Audit {
|
|
104
67
|
/**
|
|
105
|
-
*
|
|
106
|
-
*/
|
|
107
|
-
owner_org_id?: string;
|
|
108
|
-
/**
|
|
109
|
-
* Flag to indicate if the app is built by epilot.
|
|
110
|
-
*/
|
|
111
|
-
internal?: boolean;
|
|
112
|
-
pricing?: Pricing;
|
|
113
|
-
/**
|
|
114
|
-
* Timestamp of app creation
|
|
68
|
+
* Timestamp of the creation
|
|
115
69
|
*/
|
|
116
70
|
created_at?: string;
|
|
117
71
|
/**
|
|
118
|
-
* User ID of the
|
|
72
|
+
* User ID of the creator
|
|
119
73
|
*/
|
|
120
74
|
created_by?: string;
|
|
121
|
-
components?: BaseComponent[];
|
|
122
75
|
/**
|
|
123
|
-
*
|
|
76
|
+
* Timestamp of the last update
|
|
124
77
|
*/
|
|
125
|
-
|
|
78
|
+
updated_at?: string;
|
|
126
79
|
/**
|
|
127
|
-
*
|
|
80
|
+
* User ID of the last updater
|
|
128
81
|
*/
|
|
129
|
-
|
|
82
|
+
updated_by?: string;
|
|
83
|
+
}
|
|
84
|
+
export interface Author {
|
|
130
85
|
/**
|
|
131
|
-
*
|
|
86
|
+
* Name of the author
|
|
132
87
|
*/
|
|
133
|
-
|
|
88
|
+
name?: string;
|
|
134
89
|
/**
|
|
135
|
-
*
|
|
90
|
+
* Company of the author
|
|
136
91
|
*/
|
|
137
|
-
|
|
92
|
+
company: string;
|
|
138
93
|
/**
|
|
139
|
-
*
|
|
94
|
+
* Email of the author
|
|
140
95
|
*/
|
|
141
|
-
|
|
96
|
+
email?: string;
|
|
97
|
+
}
|
|
98
|
+
export type BaseComponent = {
|
|
142
99
|
/**
|
|
143
|
-
*
|
|
100
|
+
* Unique identifier for the component
|
|
144
101
|
*/
|
|
145
|
-
|
|
102
|
+
id: string;
|
|
103
|
+
name?: TranslatedString;
|
|
146
104
|
/**
|
|
147
|
-
*
|
|
105
|
+
* List of options for the app component
|
|
148
106
|
*/
|
|
149
|
-
|
|
107
|
+
options?: /* Options for the component configuration */ Options[];
|
|
108
|
+
} & (JourneyBlockComponent | PortalExtensionComponent);
|
|
109
|
+
export interface BaseComponentCommon {
|
|
150
110
|
/**
|
|
151
|
-
*
|
|
111
|
+
* Unique identifier for the component
|
|
152
112
|
*/
|
|
153
|
-
|
|
113
|
+
id: string;
|
|
154
114
|
/**
|
|
155
|
-
*
|
|
115
|
+
* Name of the component
|
|
156
116
|
*/
|
|
157
|
-
|
|
117
|
+
name?: TranslatedString;
|
|
158
118
|
/**
|
|
159
|
-
*
|
|
119
|
+
* List of options for the app component
|
|
160
120
|
*/
|
|
161
|
-
|
|
121
|
+
options?: /* Options for the component configuration */ Options[];
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* How often the subscription is billed
|
|
125
|
+
*/
|
|
126
|
+
export type BillingFrequency = "MONTHLY" | "QUARTERLY" | "YEARLY" | "CUSTOM";
|
|
127
|
+
export interface BooleanArg {
|
|
128
|
+
type?: "boolean";
|
|
129
|
+
}
|
|
130
|
+
export interface CallerIdentity {
|
|
162
131
|
/**
|
|
163
|
-
*
|
|
132
|
+
* a human readable name of the caller (e.g. user name, token name or email address)
|
|
133
|
+
* example:
|
|
134
|
+
* manifest@epilot.cloud
|
|
164
135
|
*/
|
|
165
|
-
|
|
136
|
+
name?: any;
|
|
166
137
|
/**
|
|
167
|
-
*
|
|
138
|
+
* epilot organization id
|
|
139
|
+
* example:
|
|
140
|
+
* 911690
|
|
168
141
|
*/
|
|
169
|
-
|
|
142
|
+
org_id: string;
|
|
170
143
|
/**
|
|
171
|
-
*
|
|
144
|
+
* epilot user id, when called by a user
|
|
145
|
+
* example:
|
|
146
|
+
* 11001045
|
|
172
147
|
*/
|
|
173
|
-
|
|
148
|
+
user_id?: string;
|
|
174
149
|
/**
|
|
175
|
-
*
|
|
150
|
+
* token id, when called by API token
|
|
151
|
+
* example:
|
|
152
|
+
* api_5ZugdRXasLfWBypHi93Fk
|
|
176
153
|
*/
|
|
177
|
-
|
|
154
|
+
token_id?: string;
|
|
178
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
* Type of app component
|
|
158
|
+
*/
|
|
159
|
+
export type ComponentType = "CUSTOM_JOURNEY_BLOCK" | "PORTAL_EXTENSION";
|
|
179
160
|
/**
|
|
180
161
|
* Configuration of the published app
|
|
181
162
|
*/
|
|
182
|
-
export interface
|
|
183
|
-
app_id
|
|
163
|
+
export interface Configuration {
|
|
164
|
+
app_id: string;
|
|
184
165
|
name: TranslatedString;
|
|
185
166
|
author?: Author;
|
|
186
167
|
/**
|
|
@@ -194,7 +175,7 @@ declare namespace Components {
|
|
|
194
175
|
/**
|
|
195
176
|
* Latest version of the app
|
|
196
177
|
*/
|
|
197
|
-
latest_version
|
|
178
|
+
latest_version: string;
|
|
198
179
|
/**
|
|
199
180
|
* Category of the app.
|
|
200
181
|
*/
|
|
@@ -207,30 +188,19 @@ declare namespace Components {
|
|
|
207
188
|
* URL of the app documentation.
|
|
208
189
|
*/
|
|
209
190
|
documentation_url?: string;
|
|
210
|
-
/**
|
|
211
|
-
* URL of the app homepage.
|
|
212
|
-
*/
|
|
213
|
-
homepage_url?: string;
|
|
214
191
|
description: TranslatedString;
|
|
215
192
|
notifications?: NotificationConfig;
|
|
216
193
|
/**
|
|
217
|
-
* Organization ID of the app owner
|
|
194
|
+
* Organization ID of the app owner
|
|
218
195
|
*/
|
|
219
|
-
owner_org_id
|
|
196
|
+
owner_org_id: string;
|
|
220
197
|
/**
|
|
221
198
|
* Flag to indicate if the app is built by epilot.
|
|
222
199
|
*/
|
|
223
200
|
internal?: boolean;
|
|
224
201
|
pricing?: Pricing;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
*/
|
|
228
|
-
created_at?: string;
|
|
229
|
-
/**
|
|
230
|
-
* User ID of the user who created the app
|
|
231
|
-
*/
|
|
232
|
-
created_by?: string;
|
|
233
|
-
components?: BaseComponent[];
|
|
202
|
+
configuration_audit?: Audit;
|
|
203
|
+
components: BaseComponent[];
|
|
234
204
|
/**
|
|
235
205
|
* Flag to indicate if the app is public.
|
|
236
206
|
*/
|
|
@@ -242,27 +212,55 @@ declare namespace Components {
|
|
|
242
212
|
/**
|
|
243
213
|
* Version of the app that is installed
|
|
244
214
|
*/
|
|
245
|
-
version
|
|
215
|
+
version: string;
|
|
246
216
|
/**
|
|
247
|
-
*
|
|
217
|
+
* Flag to indicate if the app is in beta.
|
|
248
218
|
*/
|
|
249
|
-
|
|
219
|
+
is_beta?: boolean;
|
|
250
220
|
/**
|
|
251
|
-
*
|
|
221
|
+
* Timestamp when the app version is deprecated
|
|
252
222
|
*/
|
|
253
|
-
|
|
223
|
+
deprecated_at?: string;
|
|
254
224
|
/**
|
|
255
|
-
*
|
|
225
|
+
* Changelog for the app version
|
|
256
226
|
*/
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
227
|
+
changelog?: string;
|
|
228
|
+
/**
|
|
229
|
+
* Status of the review process
|
|
230
|
+
*/
|
|
231
|
+
review_status?: "approved" | "rejected" | "pending";
|
|
232
|
+
version_audit: {
|
|
233
|
+
/**
|
|
234
|
+
* Timestamp of the creation
|
|
235
|
+
*/
|
|
236
|
+
created_at?: string;
|
|
237
|
+
/**
|
|
238
|
+
* User ID of the creator
|
|
239
|
+
*/
|
|
240
|
+
created_by?: string;
|
|
241
|
+
/**
|
|
242
|
+
* Timestamp of the last update
|
|
243
|
+
*/
|
|
244
|
+
updated_at?: string;
|
|
245
|
+
/**
|
|
246
|
+
* User ID of the last updater
|
|
247
|
+
*/
|
|
248
|
+
updated_by?: string;
|
|
249
|
+
/**
|
|
250
|
+
* Timestamp of the last version update
|
|
251
|
+
*/
|
|
252
|
+
versioned_at?: string;
|
|
253
|
+
/**
|
|
254
|
+
* User ID of the user who last updated the app
|
|
255
|
+
*/
|
|
256
|
+
versioned_by?: string;
|
|
257
|
+
};
|
|
260
258
|
}
|
|
261
259
|
/**
|
|
262
260
|
* Basic metadata about your app configuration which does not get versioned
|
|
263
261
|
*/
|
|
264
|
-
export interface
|
|
265
|
-
app_id
|
|
262
|
+
export interface ConfigurationMetadata {
|
|
263
|
+
app_id: string;
|
|
266
264
|
name: TranslatedString;
|
|
267
265
|
author?: Author;
|
|
268
266
|
/**
|
|
@@ -276,7 +274,7 @@ declare namespace Components {
|
|
|
276
274
|
/**
|
|
277
275
|
* Latest version of the app
|
|
278
276
|
*/
|
|
279
|
-
latest_version
|
|
277
|
+
latest_version: string;
|
|
280
278
|
/**
|
|
281
279
|
* Category of the app.
|
|
282
280
|
*/
|
|
@@ -289,10 +287,6 @@ declare namespace Components {
|
|
|
289
287
|
* URL of the app documentation.
|
|
290
288
|
*/
|
|
291
289
|
documentation_url?: string;
|
|
292
|
-
/**
|
|
293
|
-
* URL of the app homepage.
|
|
294
|
-
*/
|
|
295
|
-
homepage_url?: string;
|
|
296
290
|
/**
|
|
297
291
|
* Markdown description of the app.
|
|
298
292
|
*/
|
|
@@ -304,7 +298,7 @@ declare namespace Components {
|
|
|
304
298
|
/**
|
|
305
299
|
* Organization ID of the app owner, required for private apps or sandbox accounts
|
|
306
300
|
*/
|
|
307
|
-
owner_org_id
|
|
301
|
+
owner_org_id: string;
|
|
308
302
|
/**
|
|
309
303
|
* Flag to indicate if the app is built by epilot.
|
|
310
304
|
*/
|
|
@@ -314,19 +308,20 @@ declare namespace Components {
|
|
|
314
308
|
*/
|
|
315
309
|
pricing?: Pricing;
|
|
316
310
|
/**
|
|
317
|
-
*
|
|
311
|
+
* Audit information for the app
|
|
318
312
|
*/
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* User ID of the user who created the app
|
|
322
|
-
*/
|
|
323
|
-
created_by?: string;
|
|
313
|
+
configuration_audit?: Audit;
|
|
324
314
|
}
|
|
325
315
|
/**
|
|
326
316
|
* Configuration data about your app which is versionable
|
|
327
317
|
*/
|
|
328
|
-
export interface
|
|
329
|
-
|
|
318
|
+
export interface ConfigurationVersion {
|
|
319
|
+
app_id: string;
|
|
320
|
+
/**
|
|
321
|
+
* Organization ID of the app owner
|
|
322
|
+
*/
|
|
323
|
+
owner_org_id: string;
|
|
324
|
+
components: BaseComponent[];
|
|
330
325
|
/**
|
|
331
326
|
* Flag to indicate if the app is public.
|
|
332
327
|
*/
|
|
@@ -338,96 +333,50 @@ declare namespace Components {
|
|
|
338
333
|
/**
|
|
339
334
|
* Version of the app that is installed
|
|
340
335
|
*/
|
|
341
|
-
version
|
|
342
|
-
/**
|
|
343
|
-
* Timestamp of the last version update
|
|
344
|
-
*/
|
|
345
|
-
versioned_at?: string;
|
|
346
|
-
/**
|
|
347
|
-
* User ID of the user who last updated the app
|
|
348
|
-
*/
|
|
349
|
-
versioned_by?: string;
|
|
336
|
+
version: string;
|
|
350
337
|
/**
|
|
351
338
|
* Flag to indicate if the app is in beta.
|
|
352
339
|
*/
|
|
353
340
|
is_beta?: boolean;
|
|
354
|
-
}
|
|
355
|
-
export interface Author {
|
|
356
|
-
/**
|
|
357
|
-
* Name of the author
|
|
358
|
-
*/
|
|
359
|
-
name?: string;
|
|
360
|
-
/**
|
|
361
|
-
* Company of the author
|
|
362
|
-
*/
|
|
363
|
-
company: string;
|
|
364
|
-
/**
|
|
365
|
-
* Email of the author
|
|
366
|
-
*/
|
|
367
|
-
email?: string;
|
|
368
|
-
}
|
|
369
|
-
export type BaseComponent = {
|
|
370
341
|
/**
|
|
371
|
-
*
|
|
342
|
+
* Timestamp when the app version is deprecated
|
|
372
343
|
*/
|
|
373
|
-
|
|
374
|
-
name?: TranslatedString;
|
|
344
|
+
deprecated_at?: string;
|
|
375
345
|
/**
|
|
376
|
-
*
|
|
346
|
+
* Changelog for the app version
|
|
377
347
|
*/
|
|
378
|
-
|
|
379
|
-
} & (JourneyBlockComponent | PortalExtensionComponent);
|
|
380
|
-
export interface BaseComponentCommon {
|
|
348
|
+
changelog?: string;
|
|
381
349
|
/**
|
|
382
|
-
*
|
|
350
|
+
* Status of the review process
|
|
383
351
|
*/
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
* 911690
|
|
412
|
-
*/
|
|
413
|
-
org_id: string;
|
|
414
|
-
/**
|
|
415
|
-
* epilot user id, when called by a user
|
|
416
|
-
* example:
|
|
417
|
-
* 11001045
|
|
418
|
-
*/
|
|
419
|
-
user_id?: string;
|
|
420
|
-
/**
|
|
421
|
-
* token id, when called by API token
|
|
422
|
-
* example:
|
|
423
|
-
* api_5ZugdRXasLfWBypHi93Fk
|
|
424
|
-
*/
|
|
425
|
-
token_id?: string;
|
|
352
|
+
review_status?: "approved" | "rejected" | "pending";
|
|
353
|
+
version_audit: {
|
|
354
|
+
/**
|
|
355
|
+
* Timestamp of the creation
|
|
356
|
+
*/
|
|
357
|
+
created_at?: string;
|
|
358
|
+
/**
|
|
359
|
+
* User ID of the creator
|
|
360
|
+
*/
|
|
361
|
+
created_by?: string;
|
|
362
|
+
/**
|
|
363
|
+
* Timestamp of the last update
|
|
364
|
+
*/
|
|
365
|
+
updated_at?: string;
|
|
366
|
+
/**
|
|
367
|
+
* User ID of the last updater
|
|
368
|
+
*/
|
|
369
|
+
updated_by?: string;
|
|
370
|
+
/**
|
|
371
|
+
* Timestamp of the last version update
|
|
372
|
+
*/
|
|
373
|
+
versioned_at?: string;
|
|
374
|
+
/**
|
|
375
|
+
* User ID of the user who last updated the app
|
|
376
|
+
*/
|
|
377
|
+
versioned_by?: string;
|
|
378
|
+
};
|
|
426
379
|
}
|
|
427
|
-
/**
|
|
428
|
-
* Type of app component
|
|
429
|
-
*/
|
|
430
|
-
export type ComponentType = "CUSTOM_JOURNEY_BLOCK" | "PORTAL_EXTENSION";
|
|
431
380
|
export interface EnumArg {
|
|
432
381
|
type?: "enum";
|
|
433
382
|
/**
|
|
@@ -460,6 +409,40 @@ declare namespace Components {
|
|
|
460
409
|
}[]
|
|
461
410
|
];
|
|
462
411
|
}
|
|
412
|
+
/**
|
|
413
|
+
* Information about the installed app. Has configuration data of the installed version
|
|
414
|
+
*/
|
|
415
|
+
export interface Installation {
|
|
416
|
+
/**
|
|
417
|
+
* ID of the app configuration
|
|
418
|
+
*/
|
|
419
|
+
app_id: string;
|
|
420
|
+
/**
|
|
421
|
+
* Unique identifier for the organization the app is installed in
|
|
422
|
+
*/
|
|
423
|
+
installer_org_id: string;
|
|
424
|
+
/**
|
|
425
|
+
* Flag to indicate if the app is enabled. Enabled is set to true when required option values are set.
|
|
426
|
+
*/
|
|
427
|
+
enabled: boolean;
|
|
428
|
+
/**
|
|
429
|
+
* Name of the app
|
|
430
|
+
*/
|
|
431
|
+
name: TranslatedString;
|
|
432
|
+
/**
|
|
433
|
+
* Configuration values for the app components
|
|
434
|
+
*/
|
|
435
|
+
option_values?: OptionsRef[];
|
|
436
|
+
/**
|
|
437
|
+
* List of component configurations for the installed version
|
|
438
|
+
*/
|
|
439
|
+
components: BaseComponent[];
|
|
440
|
+
/**
|
|
441
|
+
* Version of the app that is installed
|
|
442
|
+
*/
|
|
443
|
+
installed_version: string;
|
|
444
|
+
installation_audit?: Audit;
|
|
445
|
+
}
|
|
463
446
|
export interface JourneyBlockComponent {
|
|
464
447
|
component_type: "CUSTOM_JOURNEY_BLOCK";
|
|
465
448
|
configuration: JourneyBlockConfig;
|
|
@@ -505,7 +488,7 @@ declare namespace Components {
|
|
|
505
488
|
* example:
|
|
506
489
|
* developer@example.com
|
|
507
490
|
*/
|
|
508
|
-
email?: string
|
|
491
|
+
email?: string; // email
|
|
509
492
|
/**
|
|
510
493
|
* List of events to subscribe to
|
|
511
494
|
*/
|
|
@@ -726,7 +709,7 @@ declare namespace Paths {
|
|
|
726
709
|
version?: Parameters.Version;
|
|
727
710
|
}
|
|
728
711
|
namespace Responses {
|
|
729
|
-
export type $200 = /*
|
|
712
|
+
export type $200 = /* Information about the installed app. Has configuration data of the installed version */ Components.Schemas.Installation;
|
|
730
713
|
export interface $404 {
|
|
731
714
|
}
|
|
732
715
|
}
|
|
@@ -741,7 +724,7 @@ declare namespace Paths {
|
|
|
741
724
|
version: Parameters.Version;
|
|
742
725
|
}
|
|
743
726
|
namespace Responses {
|
|
744
|
-
export type $200 = /* Configuration of the published app */ Components.Schemas.
|
|
727
|
+
export type $200 = /* Configuration of the published app */ Components.Schemas.Configuration;
|
|
745
728
|
export interface $404 {
|
|
746
729
|
}
|
|
747
730
|
}
|
|
@@ -754,7 +737,7 @@ declare namespace Paths {
|
|
|
754
737
|
appId: Parameters.AppId;
|
|
755
738
|
}
|
|
756
739
|
namespace Responses {
|
|
757
|
-
export type $200 = /* Information about the installed app */ Components.Schemas.
|
|
740
|
+
export type $200 = /* Information about the installed app. Has configuration data of the installed version */ Components.Schemas.Installation;
|
|
758
741
|
export interface $404 {
|
|
759
742
|
}
|
|
760
743
|
}
|
|
@@ -785,7 +768,7 @@ declare namespace Paths {
|
|
|
785
768
|
}
|
|
786
769
|
namespace Responses {
|
|
787
770
|
export interface $200 {
|
|
788
|
-
configurations?: /* Basic metadata about your app configuration which does not get versioned */ Components.Schemas.
|
|
771
|
+
configurations?: /* Basic metadata about your app configuration which does not get versioned */ Components.Schemas.ConfigurationMetadata[];
|
|
789
772
|
pagination?: {
|
|
790
773
|
total?: number;
|
|
791
774
|
page?: number;
|
|
@@ -809,7 +792,7 @@ declare namespace Paths {
|
|
|
809
792
|
}
|
|
810
793
|
namespace Responses {
|
|
811
794
|
export interface $200 {
|
|
812
|
-
versions?: /* Configuration data about your app which is versionable */ Components.Schemas.
|
|
795
|
+
versions?: /* Configuration data about your app which is versionable */ Components.Schemas.ConfigurationVersion[];
|
|
813
796
|
pagination?: {
|
|
814
797
|
total?: number;
|
|
815
798
|
page?: number;
|
|
@@ -833,7 +816,7 @@ declare namespace Paths {
|
|
|
833
816
|
}
|
|
834
817
|
namespace Responses {
|
|
835
818
|
export interface $200 {
|
|
836
|
-
apps?: /* Information about the installed app */ Components.Schemas.
|
|
819
|
+
apps?: /* Information about the installed app. Has configuration data of the installed version */ Components.Schemas.Installation[];
|
|
837
820
|
pagination?: {
|
|
838
821
|
total?: number;
|
|
839
822
|
page?: number;
|
|
@@ -851,6 +834,21 @@ declare namespace Paths {
|
|
|
851
834
|
}
|
|
852
835
|
}
|
|
853
836
|
}
|
|
837
|
+
namespace PatchInstalledApp {
|
|
838
|
+
namespace Parameters {
|
|
839
|
+
export type AppId = string;
|
|
840
|
+
}
|
|
841
|
+
export interface PathParameters {
|
|
842
|
+
appId: Parameters.AppId;
|
|
843
|
+
}
|
|
844
|
+
export type RequestBody = Components.RequestBodies.InstallAppRequest;
|
|
845
|
+
namespace Responses {
|
|
846
|
+
export interface $204 {
|
|
847
|
+
}
|
|
848
|
+
export interface $404 {
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
}
|
|
854
852
|
namespace PromoteAppVersion {
|
|
855
853
|
namespace Parameters {
|
|
856
854
|
export type AppId = string;
|
|
@@ -861,7 +859,7 @@ declare namespace Paths {
|
|
|
861
859
|
version: Parameters.Version;
|
|
862
860
|
}
|
|
863
861
|
namespace Responses {
|
|
864
|
-
export type $200 = /* Information about the installed app */ Components.Schemas.
|
|
862
|
+
export type $200 = /* Information about the installed app. Has configuration data of the installed version */ Components.Schemas.Installation;
|
|
865
863
|
export interface $400 {
|
|
866
864
|
}
|
|
867
865
|
export interface $404 {
|
|
@@ -1060,6 +1058,16 @@ export interface OperationMethods {
|
|
|
1060
1058
|
data?: Paths.InstallApp.RequestBody,
|
|
1061
1059
|
config?: AxiosRequestConfig
|
|
1062
1060
|
): OperationResponse<Paths.InstallApp.Responses.$204>
|
|
1061
|
+
/**
|
|
1062
|
+
* patchInstalledApp - patchInstalledApp
|
|
1063
|
+
*
|
|
1064
|
+
* Patch an installed app by its ID.
|
|
1065
|
+
*/
|
|
1066
|
+
'patchInstalledApp'(
|
|
1067
|
+
parameters?: Parameters<Paths.PatchInstalledApp.PathParameters> | null,
|
|
1068
|
+
data?: Paths.PatchInstalledApp.RequestBody,
|
|
1069
|
+
config?: AxiosRequestConfig
|
|
1070
|
+
): OperationResponse<Paths.PatchInstalledApp.Responses.$204>
|
|
1063
1071
|
/**
|
|
1064
1072
|
* uninstallApp - uninstallApp
|
|
1065
1073
|
*
|
|
@@ -1233,11 +1241,21 @@ export interface PathsDictionary {
|
|
|
1233
1241
|
*
|
|
1234
1242
|
* Upsert app installation by its ID.
|
|
1235
1243
|
*/
|
|
1236
|
-
'
|
|
1244
|
+
'post'(
|
|
1237
1245
|
parameters?: Parameters<Paths.InstallApp.PathParameters> | null,
|
|
1238
1246
|
data?: Paths.InstallApp.RequestBody,
|
|
1239
1247
|
config?: AxiosRequestConfig
|
|
1240
1248
|
): OperationResponse<Paths.InstallApp.Responses.$204>
|
|
1249
|
+
/**
|
|
1250
|
+
* patchInstalledApp - patchInstalledApp
|
|
1251
|
+
*
|
|
1252
|
+
* Patch an installed app by its ID.
|
|
1253
|
+
*/
|
|
1254
|
+
'patch'(
|
|
1255
|
+
parameters?: Parameters<Paths.PatchInstalledApp.PathParameters> | null,
|
|
1256
|
+
data?: Paths.PatchInstalledApp.RequestBody,
|
|
1257
|
+
config?: AxiosRequestConfig
|
|
1258
|
+
): OperationResponse<Paths.PatchInstalledApp.Responses.$204>
|
|
1241
1259
|
/**
|
|
1242
1260
|
* uninstallApp - uninstallApp
|
|
1243
1261
|
*
|
|
@@ -1265,10 +1283,7 @@ export interface PathsDictionary {
|
|
|
1265
1283
|
|
|
1266
1284
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
1267
1285
|
|
|
1268
|
-
export type
|
|
1269
|
-
export type AppConfiguration = Components.Schemas.AppConfiguration;
|
|
1270
|
-
export type AppMetadata = Components.Schemas.AppMetadata;
|
|
1271
|
-
export type AppVersioned = Components.Schemas.AppVersioned;
|
|
1286
|
+
export type Audit = Components.Schemas.Audit;
|
|
1272
1287
|
export type Author = Components.Schemas.Author;
|
|
1273
1288
|
export type BaseComponent = Components.Schemas.BaseComponent;
|
|
1274
1289
|
export type BaseComponentCommon = Components.Schemas.BaseComponentCommon;
|
|
@@ -1276,7 +1291,11 @@ export type BillingFrequency = Components.Schemas.BillingFrequency;
|
|
|
1276
1291
|
export type BooleanArg = Components.Schemas.BooleanArg;
|
|
1277
1292
|
export type CallerIdentity = Components.Schemas.CallerIdentity;
|
|
1278
1293
|
export type ComponentType = Components.Schemas.ComponentType;
|
|
1294
|
+
export type Configuration = Components.Schemas.Configuration;
|
|
1295
|
+
export type ConfigurationMetadata = Components.Schemas.ConfigurationMetadata;
|
|
1296
|
+
export type ConfigurationVersion = Components.Schemas.ConfigurationVersion;
|
|
1279
1297
|
export type EnumArg = Components.Schemas.EnumArg;
|
|
1298
|
+
export type Installation = Components.Schemas.Installation;
|
|
1280
1299
|
export type JourneyBlockComponent = Components.Schemas.JourneyBlockComponent;
|
|
1281
1300
|
export type JourneyBlockComponentArgs = Components.Schemas.JourneyBlockComponentArgs;
|
|
1282
1301
|
export type JourneyBlockConfig = Components.Schemas.JourneyBlockConfig;
|
package/dist/openapi.json
CHANGED
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"configurations": {
|
|
59
59
|
"type": "array",
|
|
60
60
|
"items": {
|
|
61
|
-
"$ref": "#/components/schemas/
|
|
61
|
+
"$ref": "#/components/schemas/ConfigurationMetadata"
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"pagination": {
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"content": {
|
|
144
144
|
"application/json": {
|
|
145
145
|
"schema": {
|
|
146
|
-
"$ref": "#/components/schemas/
|
|
146
|
+
"$ref": "#/components/schemas/Installation"
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
"versions": {
|
|
282
282
|
"type": "array",
|
|
283
283
|
"items": {
|
|
284
|
-
"$ref": "#/components/schemas/
|
|
284
|
+
"$ref": "#/components/schemas/ConfigurationVersion"
|
|
285
285
|
}
|
|
286
286
|
},
|
|
287
287
|
"pagination": {
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
"content": {
|
|
338
338
|
"application/json": {
|
|
339
339
|
"schema": {
|
|
340
|
-
"$ref": "#/components/schemas/
|
|
340
|
+
"$ref": "#/components/schemas/Configuration"
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
}
|
|
@@ -548,7 +548,7 @@
|
|
|
548
548
|
"apps": {
|
|
549
549
|
"type": "array",
|
|
550
550
|
"items": {
|
|
551
|
-
"$ref": "#/components/schemas/
|
|
551
|
+
"$ref": "#/components/schemas/Installation"
|
|
552
552
|
}
|
|
553
553
|
},
|
|
554
554
|
"pagination": {
|
|
@@ -590,21 +590,21 @@
|
|
|
590
590
|
],
|
|
591
591
|
"responses": {
|
|
592
592
|
"200": {
|
|
593
|
-
"description": "Details about
|
|
593
|
+
"description": "Details about an app installation.",
|
|
594
594
|
"content": {
|
|
595
595
|
"application/json": {
|
|
596
596
|
"schema": {
|
|
597
|
-
"$ref": "#/components/schemas/
|
|
597
|
+
"$ref": "#/components/schemas/Installation"
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
601
|
},
|
|
602
602
|
"404": {
|
|
603
|
-
"description": "
|
|
603
|
+
"description": "Installation not found."
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
606
|
},
|
|
607
|
-
"
|
|
607
|
+
"post": {
|
|
608
608
|
"summary": "installApp",
|
|
609
609
|
"description": "Upsert app installation by its ID.",
|
|
610
610
|
"operationId": "installApp",
|
|
@@ -623,7 +623,33 @@
|
|
|
623
623
|
},
|
|
624
624
|
"responses": {
|
|
625
625
|
"204": {
|
|
626
|
-
"description": "App
|
|
626
|
+
"description": "App successfully installed."
|
|
627
|
+
},
|
|
628
|
+
"404": {
|
|
629
|
+
"description": "App not found."
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
"patch": {
|
|
634
|
+
"summary": "patchInstalledApp",
|
|
635
|
+
"description": "Patch an installed app by its ID.",
|
|
636
|
+
"operationId": "patchInstalledApp",
|
|
637
|
+
"parameters": [
|
|
638
|
+
{
|
|
639
|
+
"name": "appId",
|
|
640
|
+
"in": "path",
|
|
641
|
+
"required": true,
|
|
642
|
+
"schema": {
|
|
643
|
+
"type": "string"
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
],
|
|
647
|
+
"requestBody": {
|
|
648
|
+
"$ref": "#/components/requestBodies/InstallAppRequest"
|
|
649
|
+
},
|
|
650
|
+
"responses": {
|
|
651
|
+
"204": {
|
|
652
|
+
"description": "App installation patched successfully."
|
|
627
653
|
},
|
|
628
654
|
"404": {
|
|
629
655
|
"description": "App not found."
|
|
@@ -683,7 +709,7 @@
|
|
|
683
709
|
"content": {
|
|
684
710
|
"application/json": {
|
|
685
711
|
"schema": {
|
|
686
|
-
"$ref": "#/components/schemas/
|
|
712
|
+
"$ref": "#/components/schemas/Installation"
|
|
687
713
|
}
|
|
688
714
|
}
|
|
689
715
|
}
|
|
@@ -750,9 +776,6 @@
|
|
|
750
776
|
"documentation_url": {
|
|
751
777
|
"type": "string"
|
|
752
778
|
},
|
|
753
|
-
"homepage_url": {
|
|
754
|
-
"type": "string"
|
|
755
|
-
},
|
|
756
779
|
"notifications": {
|
|
757
780
|
"$ref": "#/components/schemas/NotificationConfig"
|
|
758
781
|
},
|
|
@@ -976,15 +999,18 @@
|
|
|
976
999
|
"properties": {
|
|
977
1000
|
"name": {
|
|
978
1001
|
"type": "string",
|
|
979
|
-
"description": "Name of the author"
|
|
1002
|
+
"description": "Name of the author",
|
|
1003
|
+
"maxLength": 50
|
|
980
1004
|
},
|
|
981
1005
|
"company": {
|
|
982
1006
|
"type": "string",
|
|
983
|
-
"description": "Company of the author"
|
|
1007
|
+
"description": "Company of the author",
|
|
1008
|
+
"maxLength": 30
|
|
984
1009
|
},
|
|
985
1010
|
"email": {
|
|
986
1011
|
"type": "string",
|
|
987
|
-
"description": "Email of the author"
|
|
1012
|
+
"description": "Email of the author",
|
|
1013
|
+
"maxLength": 30
|
|
988
1014
|
}
|
|
989
1015
|
}
|
|
990
1016
|
},
|
|
@@ -993,7 +1019,7 @@
|
|
|
993
1019
|
"properties": {
|
|
994
1020
|
"email": {
|
|
995
1021
|
"type": "string",
|
|
996
|
-
"
|
|
1022
|
+
"format": "email",
|
|
997
1023
|
"description": "Email address to receive notifications",
|
|
998
1024
|
"example": "developer@example.com"
|
|
999
1025
|
},
|
|
@@ -1410,12 +1436,41 @@
|
|
|
1410
1436
|
}
|
|
1411
1437
|
}
|
|
1412
1438
|
},
|
|
1413
|
-
"
|
|
1439
|
+
"Audit": {
|
|
1440
|
+
"type": "object",
|
|
1441
|
+
"properties": {
|
|
1442
|
+
"created_at": {
|
|
1443
|
+
"type": "string",
|
|
1444
|
+
"description": "Timestamp of the creation",
|
|
1445
|
+
"readOnly": true
|
|
1446
|
+
},
|
|
1447
|
+
"created_by": {
|
|
1448
|
+
"type": "string",
|
|
1449
|
+
"description": "User ID of the creator",
|
|
1450
|
+
"readOnly": true
|
|
1451
|
+
},
|
|
1452
|
+
"updated_at": {
|
|
1453
|
+
"type": "string",
|
|
1454
|
+
"description": "Timestamp of the last update",
|
|
1455
|
+
"readOnly": true
|
|
1456
|
+
},
|
|
1457
|
+
"updated_by": {
|
|
1458
|
+
"type": "string",
|
|
1459
|
+
"description": "User ID of the last updater",
|
|
1460
|
+
"readOnly": true
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
},
|
|
1464
|
+
"ConfigurationMetadata": {
|
|
1414
1465
|
"description": "Basic metadata about your app configuration which does not get versioned",
|
|
1415
1466
|
"type": "object",
|
|
1416
1467
|
"required": [
|
|
1417
1468
|
"name",
|
|
1418
|
-
"description"
|
|
1469
|
+
"description",
|
|
1470
|
+
"latest_version",
|
|
1471
|
+
"owner_org_id",
|
|
1472
|
+
"has_public_version",
|
|
1473
|
+
"app_id"
|
|
1419
1474
|
],
|
|
1420
1475
|
"properties": {
|
|
1421
1476
|
"app_id": {
|
|
@@ -1457,10 +1512,6 @@
|
|
|
1457
1512
|
"type": "string",
|
|
1458
1513
|
"description": "URL of the app documentation."
|
|
1459
1514
|
},
|
|
1460
|
-
"homepage_url": {
|
|
1461
|
-
"type": "string",
|
|
1462
|
-
"description": "URL of the app homepage."
|
|
1463
|
-
},
|
|
1464
1515
|
"description": {
|
|
1465
1516
|
"$ref": "#/components/schemas/TranslatedString",
|
|
1466
1517
|
"description": "Markdown description of the app."
|
|
@@ -1484,27 +1535,39 @@
|
|
|
1484
1535
|
"$ref": "#/components/schemas/Pricing",
|
|
1485
1536
|
"description": "Pricing information for the app"
|
|
1486
1537
|
},
|
|
1487
|
-
"
|
|
1488
|
-
"
|
|
1489
|
-
"description": "
|
|
1490
|
-
"readOnly": true
|
|
1491
|
-
},
|
|
1492
|
-
"created_by": {
|
|
1493
|
-
"type": "string",
|
|
1494
|
-
"description": "User ID of the user who created the app",
|
|
1538
|
+
"configuration_audit": {
|
|
1539
|
+
"$ref": "#/components/schemas/Audit",
|
|
1540
|
+
"description": "Audit information for the app",
|
|
1495
1541
|
"readOnly": true
|
|
1496
1542
|
}
|
|
1497
1543
|
}
|
|
1498
1544
|
},
|
|
1499
|
-
"
|
|
1545
|
+
"ConfigurationVersion": {
|
|
1500
1546
|
"description": "Configuration data about your app which is versionable",
|
|
1501
1547
|
"type": "object",
|
|
1548
|
+
"required": [
|
|
1549
|
+
"version",
|
|
1550
|
+
"components",
|
|
1551
|
+
"app_id",
|
|
1552
|
+
"version_audit",
|
|
1553
|
+
"owner_org_id"
|
|
1554
|
+
],
|
|
1502
1555
|
"properties": {
|
|
1556
|
+
"app_id": {
|
|
1557
|
+
"type": "string",
|
|
1558
|
+
"readOnly": true
|
|
1559
|
+
},
|
|
1560
|
+
"owner_org_id": {
|
|
1561
|
+
"type": "string",
|
|
1562
|
+
"description": "Organization ID of the app owner",
|
|
1563
|
+
"readOnly": true
|
|
1564
|
+
},
|
|
1503
1565
|
"components": {
|
|
1504
1566
|
"type": "array",
|
|
1505
1567
|
"items": {
|
|
1506
1568
|
"$ref": "#/components/schemas/BaseComponent"
|
|
1507
|
-
}
|
|
1569
|
+
},
|
|
1570
|
+
"minItems": 0
|
|
1508
1571
|
},
|
|
1509
1572
|
"public": {
|
|
1510
1573
|
"type": "boolean",
|
|
@@ -1521,107 +1584,127 @@
|
|
|
1521
1584
|
"version": {
|
|
1522
1585
|
"type": "string",
|
|
1523
1586
|
"description": "Version of the app that is installed",
|
|
1587
|
+
"readOnly": true,
|
|
1588
|
+
"maxLength": 10
|
|
1589
|
+
},
|
|
1590
|
+
"is_beta": {
|
|
1591
|
+
"type": "boolean",
|
|
1592
|
+
"description": "Flag to indicate if the app is in beta.",
|
|
1524
1593
|
"readOnly": true
|
|
1525
1594
|
},
|
|
1526
|
-
"
|
|
1595
|
+
"deprecated_at": {
|
|
1527
1596
|
"type": "string",
|
|
1528
|
-
"description": "Timestamp
|
|
1529
|
-
"readOnly": true
|
|
1597
|
+
"description": "Timestamp when the app version is deprecated"
|
|
1530
1598
|
},
|
|
1531
|
-
"
|
|
1599
|
+
"changelog": {
|
|
1532
1600
|
"type": "string",
|
|
1533
|
-
"description": "
|
|
1534
|
-
"
|
|
1601
|
+
"description": "Changelog for the app version",
|
|
1602
|
+
"maxLength": 250
|
|
1535
1603
|
},
|
|
1536
|
-
"
|
|
1537
|
-
"type": "
|
|
1538
|
-
"
|
|
1604
|
+
"review_status": {
|
|
1605
|
+
"type": "string",
|
|
1606
|
+
"enum": [
|
|
1607
|
+
"approved",
|
|
1608
|
+
"rejected",
|
|
1609
|
+
"pending"
|
|
1610
|
+
],
|
|
1611
|
+
"description": "Status of the review process"
|
|
1612
|
+
},
|
|
1613
|
+
"version_audit": {
|
|
1614
|
+
"readOnly": true,
|
|
1615
|
+
"allOf": [
|
|
1616
|
+
{
|
|
1617
|
+
"$ref": "#/components/schemas/Audit"
|
|
1618
|
+
},
|
|
1619
|
+
{
|
|
1620
|
+
"type": "object",
|
|
1621
|
+
"properties": {
|
|
1622
|
+
"versioned_at": {
|
|
1623
|
+
"type": "string",
|
|
1624
|
+
"description": "Timestamp of the last version update",
|
|
1625
|
+
"readOnly": true
|
|
1626
|
+
},
|
|
1627
|
+
"versioned_by": {
|
|
1628
|
+
"type": "string",
|
|
1629
|
+
"description": "User ID of the user who last updated the app",
|
|
1630
|
+
"readOnly": true
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
]
|
|
1539
1635
|
}
|
|
1540
1636
|
}
|
|
1541
1637
|
},
|
|
1542
|
-
"
|
|
1543
|
-
"
|
|
1544
|
-
{
|
|
1545
|
-
"$ref": "#/components/schemas/AppConfiguration"
|
|
1546
|
-
}
|
|
1547
|
-
],
|
|
1548
|
-
"description": "Information about the installed app",
|
|
1638
|
+
"Installation": {
|
|
1639
|
+
"description": "Information about the installed app. Has configuration data of the installed version",
|
|
1549
1640
|
"type": "object",
|
|
1641
|
+
"required": [
|
|
1642
|
+
"app_id",
|
|
1643
|
+
"installer_org_id",
|
|
1644
|
+
"enabled",
|
|
1645
|
+
"name",
|
|
1646
|
+
"components",
|
|
1647
|
+
"installed_version"
|
|
1648
|
+
],
|
|
1550
1649
|
"properties": {
|
|
1551
|
-
"
|
|
1552
|
-
"type": "string",
|
|
1553
|
-
"description": "Unique identifier for the organization the app is installed in",
|
|
1554
|
-
"readOnly": true
|
|
1555
|
-
},
|
|
1556
|
-
"installed_at": {
|
|
1557
|
-
"type": "string",
|
|
1558
|
-
"description": "Timestamp of app creation",
|
|
1559
|
-
"readOnly": true
|
|
1560
|
-
},
|
|
1561
|
-
"installed_by": {
|
|
1562
|
-
"type": "string",
|
|
1563
|
-
"description": "User ID of the user who installed the app",
|
|
1564
|
-
"readOnly": true
|
|
1565
|
-
},
|
|
1566
|
-
"updated_by": {
|
|
1650
|
+
"app_id": {
|
|
1567
1651
|
"type": "string",
|
|
1568
|
-
"description": "
|
|
1652
|
+
"description": "ID of the app configuration",
|
|
1569
1653
|
"readOnly": true
|
|
1570
1654
|
},
|
|
1571
|
-
"
|
|
1655
|
+
"installer_org_id": {
|
|
1572
1656
|
"type": "string",
|
|
1573
|
-
"description": "
|
|
1657
|
+
"description": "Unique identifier for the organization the app is installed in",
|
|
1574
1658
|
"readOnly": true
|
|
1575
1659
|
},
|
|
1576
1660
|
"enabled": {
|
|
1577
1661
|
"readOnly": true,
|
|
1578
1662
|
"type": "boolean",
|
|
1579
1663
|
"default": true,
|
|
1580
|
-
"description": "Flag to indicate if the app is enabled."
|
|
1664
|
+
"description": "Flag to indicate if the app is enabled. Enabled is set to true when required option values are set."
|
|
1665
|
+
},
|
|
1666
|
+
"name": {
|
|
1667
|
+
"$ref": "#/components/schemas/TranslatedString",
|
|
1668
|
+
"description": "Name of the app",
|
|
1669
|
+
"readOnly": true
|
|
1581
1670
|
},
|
|
1582
1671
|
"option_values": {
|
|
1583
|
-
"description": "Configuration values for the app components options",
|
|
1584
1672
|
"type": "array",
|
|
1585
1673
|
"items": {
|
|
1586
1674
|
"$ref": "#/components/schemas/OptionsRef"
|
|
1587
|
-
}
|
|
1675
|
+
},
|
|
1676
|
+
"description": "Configuration values for the app components"
|
|
1677
|
+
},
|
|
1678
|
+
"components": {
|
|
1679
|
+
"description": "List of component configurations for the installed version",
|
|
1680
|
+
"type": "array",
|
|
1681
|
+
"items": {
|
|
1682
|
+
"$ref": "#/components/schemas/BaseComponent"
|
|
1683
|
+
},
|
|
1684
|
+
"minLength": 0,
|
|
1685
|
+
"readOnly": true
|
|
1588
1686
|
},
|
|
1589
1687
|
"installed_version": {
|
|
1590
1688
|
"type": "string",
|
|
1591
1689
|
"description": "Version of the app that is installed",
|
|
1592
1690
|
"readOnly": true
|
|
1691
|
+
},
|
|
1692
|
+
"installation_audit": {
|
|
1693
|
+
"$ref": "#/components/schemas/Audit",
|
|
1694
|
+
"readOnly": true
|
|
1593
1695
|
}
|
|
1594
1696
|
}
|
|
1595
1697
|
},
|
|
1596
|
-
"
|
|
1698
|
+
"Configuration": {
|
|
1699
|
+
"description": "Configuration of the published app",
|
|
1597
1700
|
"allOf": [
|
|
1598
1701
|
{
|
|
1599
|
-
"$ref": "#/components/schemas/
|
|
1702
|
+
"$ref": "#/components/schemas/ConfigurationMetadata"
|
|
1600
1703
|
},
|
|
1601
1704
|
{
|
|
1602
|
-
"$ref": "#/components/schemas/
|
|
1603
|
-
}
|
|
1604
|
-
],
|
|
1605
|
-
"type": "object",
|
|
1606
|
-
"description": "Configuration of the published app",
|
|
1607
|
-
"properties": {
|
|
1608
|
-
"created_by": {
|
|
1609
|
-
"type": "string",
|
|
1610
|
-
"readOnly": true
|
|
1611
|
-
},
|
|
1612
|
-
"created_at": {
|
|
1613
|
-
"type": "string",
|
|
1614
|
-
"readOnly": true
|
|
1615
|
-
},
|
|
1616
|
-
"updated_at": {
|
|
1617
|
-
"type": "string",
|
|
1618
|
-
"readOnly": true
|
|
1619
|
-
},
|
|
1620
|
-
"updated_by": {
|
|
1621
|
-
"type": "string",
|
|
1622
|
-
"readOnly": true
|
|
1705
|
+
"$ref": "#/components/schemas/ConfigurationVersion"
|
|
1623
1706
|
}
|
|
1624
|
-
|
|
1707
|
+
]
|
|
1625
1708
|
},
|
|
1626
1709
|
"TranslatedString": {
|
|
1627
1710
|
"type": "object",
|