@epilot/app-client 0.5.6 → 0.6.0-rc.2

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.
@@ -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.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":{}},"delete":{"operationId":"deleteConfiguration","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
+ (()=>{"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":{}},"delete":{"operationId":"deleteConfiguration","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}/zip":{"post":{"operationId":"createZipUploadUrl","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"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})})();
@@ -100,6 +100,24 @@
100
100
  "responses": {}
101
101
  }
102
102
  },
103
+ "/v1/app-configurations/{appId}/zip": {
104
+ "post": {
105
+ "operationId": "createZipUploadUrl",
106
+ "parameters": [
107
+ {
108
+ "name": "appId",
109
+ "in": "path",
110
+ "required": true
111
+ }
112
+ ],
113
+ "requestBody": {
114
+ "content": {
115
+ "application/json": {}
116
+ }
117
+ },
118
+ "responses": {}
119
+ }
120
+ },
103
121
  "/v1/app-configurations/{appId}/logo": {
104
122
  "parameters": [
105
123
  {
package/dist/openapi.d.ts CHANGED
@@ -16,7 +16,7 @@ declare namespace Components {
16
16
  */
17
17
  version: string;
18
18
  /**
19
- * ID of the journye block component
19
+ * ID of the journey block component
20
20
  */
21
21
  component_id?: string;
22
22
  }
@@ -89,6 +89,20 @@ declare namespace Components {
89
89
  export type UpsertComponentRequest = Schemas.BaseComponent;
90
90
  }
91
91
  namespace Schemas {
92
+ export interface AppBridgeSurfaceConfig {
93
+ /**
94
+ * URL of the uploaded App Bridge App. This is the entrypoint for the app
95
+ */
96
+ app_url: string;
97
+ /**
98
+ * URL of the uploaded zip file containing the app
99
+ */
100
+ zip_url?: string;
101
+ /**
102
+ * URL of the app in dev mode
103
+ */
104
+ override_url?: string;
105
+ }
92
106
  export interface Audit {
93
107
  /**
94
108
  * Timestamp of the creation
@@ -156,6 +170,9 @@ declare namespace Components {
156
170
  * List of options for the app component
157
171
  */
158
172
  options?: /* Options for the component configuration */ Options[];
173
+ surfaces?: {
174
+ [key: string]: any;
175
+ };
159
176
  } & (JourneyBlockComponent | PortalExtensionComponent | CustomFlowActionComponent);
160
177
  export interface BaseComponentCommon {
161
178
  /**
@@ -192,6 +209,9 @@ declare namespace Components {
192
209
  * List of options for the app component
193
210
  */
194
211
  options?: /* Options for the component configuration */ Options[];
212
+ surfaces?: {
213
+ [key: string]: any;
214
+ };
195
215
  }
196
216
  export interface BaseCustomActionConfig {
197
217
  /**
@@ -579,6 +599,9 @@ declare namespace Components {
579
599
  export interface CustomFlowActionComponent {
580
600
  component_type: "CUSTOM_FLOW_ACTION";
581
601
  configuration: CustomFlowConfig;
602
+ surfaces?: {
603
+ flow_action_config?: AppBridgeSurfaceConfig;
604
+ };
582
605
  }
583
606
  export type CustomFlowConfig = ExternalIntegrationCustomActionConfig;
584
607
  export interface EnumArg {
@@ -865,7 +888,7 @@ declare namespace Components {
865
888
  /**
866
889
  * URL of the web component object in dev mode
867
890
  * example:
868
- * http://localhost:3000/bundle.js
891
+ * http://localhost:3000
869
892
  */
870
893
  override_url?: string;
871
894
  }
@@ -1140,6 +1163,40 @@ declare namespace Paths {
1140
1163
  }
1141
1164
  }
1142
1165
  }
1166
+ namespace CreateZipUploadUrl {
1167
+ namespace Parameters {
1168
+ export type AppId = string;
1169
+ }
1170
+ export interface PathParameters {
1171
+ appId: Parameters.AppId;
1172
+ }
1173
+ export interface RequestBody {
1174
+ /**
1175
+ * example:
1176
+ * dist.zip
1177
+ */
1178
+ filename?: string;
1179
+ }
1180
+ namespace Responses {
1181
+ export interface $200 {
1182
+ /**
1183
+ * Presigned S3 URL for uploading the bundle
1184
+ */
1185
+ upload_url: string;
1186
+ /**
1187
+ * Public CDN URL for the unpacked artifacts
1188
+ */
1189
+ artifact_url: string;
1190
+ s3ref?: Components.Schemas.S3Reference;
1191
+ /**
1192
+ * Timestamp when the upload URL expires
1193
+ */
1194
+ expires_at?: string; // date-time
1195
+ }
1196
+ export interface $404 {
1197
+ }
1198
+ }
1199
+ }
1143
1200
  namespace DeleteComponent {
1144
1201
  namespace Parameters {
1145
1202
  export type AppId = string;
@@ -1517,13 +1574,24 @@ export interface OperationMethods {
1517
1574
  /**
1518
1575
  * createBundleUploadUrl - createBundleUploadUrl
1519
1576
  *
1520
- * Generate a presigned URL for uploading app bundle to /<app-id>/bundle.zip path
1577
+ * Generate a presigned URL for uploading app bundle to /<app-id>/bundle.js path
1521
1578
  */
1522
1579
  'createBundleUploadUrl'(
1523
1580
  parameters?: Parameters<Paths.CreateBundleUploadUrl.PathParameters> | null,
1524
1581
  data?: Paths.CreateBundleUploadUrl.RequestBody,
1525
1582
  config?: AxiosRequestConfig
1526
1583
  ): OperationResponse<Paths.CreateBundleUploadUrl.Responses.$200>
1584
+ /**
1585
+ * createZipUploadUrl - createZipUploadUrl
1586
+ *
1587
+ * Generate a presigned URL to upload a zip file with artifacts that will be unpacked in a new directory under the /<app-id>/ path
1588
+ *
1589
+ */
1590
+ 'createZipUploadUrl'(
1591
+ parameters?: Parameters<Paths.CreateZipUploadUrl.PathParameters> | null,
1592
+ data?: Paths.CreateZipUploadUrl.RequestBody,
1593
+ config?: AxiosRequestConfig
1594
+ ): OperationResponse<Paths.CreateZipUploadUrl.Responses.$200>
1527
1595
  /**
1528
1596
  * createLogoUploadUrl - createLogoUploadUrl
1529
1597
  *
@@ -1757,7 +1825,7 @@ export interface PathsDictionary {
1757
1825
  /**
1758
1826
  * createBundleUploadUrl - createBundleUploadUrl
1759
1827
  *
1760
- * Generate a presigned URL for uploading app bundle to /<app-id>/bundle.zip path
1828
+ * Generate a presigned URL for uploading app bundle to /<app-id>/bundle.js path
1761
1829
  */
1762
1830
  'post'(
1763
1831
  parameters?: Parameters<Paths.CreateBundleUploadUrl.PathParameters> | null,
@@ -1765,6 +1833,19 @@ export interface PathsDictionary {
1765
1833
  config?: AxiosRequestConfig
1766
1834
  ): OperationResponse<Paths.CreateBundleUploadUrl.Responses.$200>
1767
1835
  }
1836
+ ['/v1/app-configurations/{appId}/zip']: {
1837
+ /**
1838
+ * createZipUploadUrl - createZipUploadUrl
1839
+ *
1840
+ * Generate a presigned URL to upload a zip file with artifacts that will be unpacked in a new directory under the /<app-id>/ path
1841
+ *
1842
+ */
1843
+ 'post'(
1844
+ parameters?: Parameters<Paths.CreateZipUploadUrl.PathParameters> | null,
1845
+ data?: Paths.CreateZipUploadUrl.RequestBody,
1846
+ config?: AxiosRequestConfig
1847
+ ): OperationResponse<Paths.CreateZipUploadUrl.Responses.$200>
1848
+ }
1768
1849
  ['/v1/app-configurations/{appId}/logo']: {
1769
1850
  /**
1770
1851
  * createLogoUploadUrl - createLogoUploadUrl
@@ -1947,6 +2028,7 @@ export interface PathsDictionary {
1947
2028
 
1948
2029
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
1949
2030
 
2031
+ export type AppBridgeSurfaceConfig = Components.Schemas.AppBridgeSurfaceConfig;
1950
2032
  export type Audit = Components.Schemas.Audit;
1951
2033
  export type Author = Components.Schemas.Author;
1952
2034
  export type BaseComponent = Components.Schemas.BaseComponent;
package/dist/openapi.json CHANGED
@@ -257,7 +257,7 @@
257
257
  "/v1/app-configurations/{appId}/bundle": {
258
258
  "post": {
259
259
  "summary": "createBundleUploadUrl",
260
- "description": "Generate a presigned URL for uploading app bundle to /<app-id>/bundle.zip path",
260
+ "description": "Generate a presigned URL for uploading app bundle to /<app-id>/bundle.js path",
261
261
  "operationId": "createBundleUploadUrl",
262
262
  "tags": [
263
263
  "App Configuration"
@@ -318,6 +318,80 @@
318
318
  }
319
319
  }
320
320
  },
321
+ "/v1/app-configurations/{appId}/zip": {
322
+ "post": {
323
+ "summary": "createZipUploadUrl",
324
+ "operationId": "createZipUploadUrl",
325
+ "description": "Generate a presigned URL to upload a zip file with artifacts that will be unpacked in a new directory under the /<app-id>/ path\n",
326
+ "tags": [
327
+ "App Configuration"
328
+ ],
329
+ "parameters": [
330
+ {
331
+ "name": "appId",
332
+ "in": "path",
333
+ "required": true,
334
+ "schema": {
335
+ "type": "string"
336
+ },
337
+ "description": "ID of the app configuration"
338
+ }
339
+ ],
340
+ "requestBody": {
341
+ "content": {
342
+ "application/json": {
343
+ "schema": {
344
+ "type": "object",
345
+ "additionalProperties": false,
346
+ "properties": {
347
+ "filename": {
348
+ "type": "string",
349
+ "example": "dist.zip"
350
+ }
351
+ }
352
+ }
353
+ }
354
+ }
355
+ },
356
+ "responses": {
357
+ "200": {
358
+ "description": "Upload URL generated successfully",
359
+ "content": {
360
+ "application/json": {
361
+ "schema": {
362
+ "type": "object",
363
+ "required": [
364
+ "upload_url",
365
+ "artifact_url"
366
+ ],
367
+ "properties": {
368
+ "upload_url": {
369
+ "type": "string",
370
+ "description": "Presigned S3 URL for uploading the bundle"
371
+ },
372
+ "artifact_url": {
373
+ "type": "string",
374
+ "description": "Public CDN URL for the unpacked artifacts"
375
+ },
376
+ "s3ref": {
377
+ "$ref": "#/components/schemas/S3Reference"
378
+ },
379
+ "expires_at": {
380
+ "type": "string",
381
+ "format": "date-time",
382
+ "description": "Timestamp when the upload URL expires"
383
+ }
384
+ }
385
+ }
386
+ }
387
+ }
388
+ },
389
+ "404": {
390
+ "description": "App configuration not found"
391
+ }
392
+ }
393
+ }
394
+ },
321
395
  "/v1/app-configurations/{appId}/logo": {
322
396
  "parameters": [
323
397
  {
@@ -1112,7 +1186,7 @@
1112
1186
  },
1113
1187
  "component_id": {
1114
1188
  "type": "string",
1115
- "description": "ID of the journye block component"
1189
+ "description": "ID of the journey block component"
1116
1190
  }
1117
1191
  }
1118
1192
  }
@@ -1460,6 +1534,9 @@
1460
1534
  "$ref": "#/components/schemas/Options"
1461
1535
  },
1462
1536
  "description": "List of options for the app component"
1537
+ },
1538
+ "surfaces": {
1539
+ "type": "object"
1463
1540
  }
1464
1541
  }
1465
1542
  },
@@ -1525,6 +1602,14 @@
1525
1602
  },
1526
1603
  "configuration": {
1527
1604
  "$ref": "#/components/schemas/CustomFlowConfig"
1605
+ },
1606
+ "surfaces": {
1607
+ "type": "object",
1608
+ "properties": {
1609
+ "flow_action_config": {
1610
+ "$ref": "#/components/schemas/AppBridgeSurfaceConfig"
1611
+ }
1612
+ }
1528
1613
  }
1529
1614
  }
1530
1615
  },
@@ -1739,7 +1824,7 @@
1739
1824
  "override_url": {
1740
1825
  "type": "string",
1741
1826
  "description": "URL of the web component object in dev mode",
1742
- "example": "http://localhost:3000/bundle.js"
1827
+ "example": "http://localhost:3000"
1743
1828
  }
1744
1829
  }
1745
1830
  },
@@ -1792,6 +1877,26 @@
1792
1877
  }
1793
1878
  }
1794
1879
  },
1880
+ "AppBridgeSurfaceConfig": {
1881
+ "type": "object",
1882
+ "properties": {
1883
+ "app_url": {
1884
+ "type": "string",
1885
+ "description": "URL of the uploaded App Bridge App. This is the entrypoint for the app"
1886
+ },
1887
+ "zip_url": {
1888
+ "type": "string",
1889
+ "description": "URL of the uploaded zip file containing the app"
1890
+ },
1891
+ "override_url": {
1892
+ "type": "string",
1893
+ "description": "URL of the app in dev mode"
1894
+ }
1895
+ },
1896
+ "required": [
1897
+ "app_url"
1898
+ ]
1899
+ },
1795
1900
  "JourneyBlockComponentArgs": {
1796
1901
  "allOf": [
1797
1902
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/app-client",
3
- "version": "0.5.6",
3
+ "version": "0.6.0-rc.2",
4
4
  "description": "JavaScript client library for the epilot App API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "test": "jest",
26
26
  "typescript": "tsc",
27
27
  "bundle-definition": "webpack",
28
- "openapi": "node ../../scripts/update-openapi.js ../../../backend/app-api/packages/functions/src/api/openapi.yml",
28
+ "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/app.yaml",
29
29
  "typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
30
30
  "build": "tsc && npm run build:patch && npm run bundle-definition",
31
31
  "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",