@epilot/app-client 0.1.2 → 0.2.0

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/openapi.json CHANGED
@@ -24,9 +24,9 @@
24
24
  "paths": {
25
25
  "/v1/app-configurations": {
26
26
  "get": {
27
- "summary": "listAppConfigurations",
27
+ "summary": "listConfigurations",
28
28
  "description": "List all app configuration metadata owned by an organization. To get full app configuration details, use the /v1/app-configurations/{appId} endpoint.",
29
- "operationId": "listAppConfigurations",
29
+ "operationId": "listConfigurations",
30
30
  "parameters": [
31
31
  {
32
32
  "name": "page",
@@ -83,9 +83,9 @@
83
83
  }
84
84
  },
85
85
  "post": {
86
- "summary": "createAppConfiguration",
86
+ "summary": "createConfiguration",
87
87
  "description": "Create a new private app configuration. To make it public a verification process needs to be triggered",
88
- "operationId": "createAppConfiguration",
88
+ "operationId": "createConfiguration",
89
89
  "requestBody": {
90
90
  "$ref": "#/components/requestBodies/CreateConfigRequest"
91
91
  },
@@ -124,9 +124,9 @@
124
124
  }
125
125
  ],
126
126
  "get": {
127
- "summary": "getAppConfiguration",
127
+ "summary": "getConfiguration",
128
128
  "description": "Retrieve a specific app configuration",
129
- "operationId": "getAppConfiguration",
129
+ "operationId": "getConfiguration",
130
130
  "parameters": [
131
131
  {
132
132
  "name": "version",
@@ -154,9 +154,9 @@
154
154
  }
155
155
  },
156
156
  "patch": {
157
- "summary": "patchConfigurationMetadata",
157
+ "summary": "patchMetadata",
158
158
  "description": "Patch non-versioned configuration metadata of a given app configuration.",
159
- "operationId": "patchConfigurationMetadata",
159
+ "operationId": "patchMetadata",
160
160
  "requestBody": {
161
161
  "$ref": "#/components/requestBodies/PatchConfigMetadataRequest"
162
162
  },
@@ -170,6 +170,59 @@
170
170
  }
171
171
  }
172
172
  },
173
+ "/v1/app-configurations/{appId}/bundle": {
174
+ "post": {
175
+ "summary": "createBundleUploadUrl",
176
+ "description": "Generate a presigned URL for uploading app bundle to /<app-id>/bundle.zip path",
177
+ "operationId": "createBundleUploadUrl",
178
+ "parameters": [
179
+ {
180
+ "name": "appId",
181
+ "in": "path",
182
+ "required": true,
183
+ "schema": {
184
+ "type": "string"
185
+ },
186
+ "description": "ID of the app configuration"
187
+ }
188
+ ],
189
+ "requestBody": {
190
+ "$ref": "#/components/requestBodies/CreateBundlePresignedRequest"
191
+ },
192
+ "responses": {
193
+ "200": {
194
+ "description": "Upload URL generated successfully",
195
+ "content": {
196
+ "application/json": {
197
+ "schema": {
198
+ "type": "object",
199
+ "required": [
200
+ "upload_url"
201
+ ],
202
+ "properties": {
203
+ "upload_url": {
204
+ "type": "string",
205
+ "description": "Presigned S3 URL for uploading the bundle"
206
+ },
207
+ "s3ref": {
208
+ "$ref": "#/components/schemas/S3Reference"
209
+ },
210
+ "expires_at": {
211
+ "type": "string",
212
+ "format": "date-time",
213
+ "description": "Timestamp when the upload URL expires"
214
+ }
215
+ }
216
+ }
217
+ }
218
+ }
219
+ },
220
+ "404": {
221
+ "description": "App configuration not found"
222
+ }
223
+ }
224
+ }
225
+ },
173
226
  "/v1/app-configurations/{appId}/logo": {
174
227
  "parameters": [
175
228
  {
@@ -187,7 +240,7 @@
187
240
  "description": "Generate a presigned URL for uploading app logo to /<app-id>/logo.png path",
188
241
  "operationId": "createLogoUploadUrl",
189
242
  "requestBody": {
190
- "$ref": "#/components/requestBodies/CreateLogoRequest"
243
+ "$ref": "#/components/requestBodies/CreateLogoPresignedRequest"
191
244
  },
192
245
  "responses": {
193
246
  "200": {
@@ -238,7 +291,7 @@
238
291
  },
239
292
  "/v1/app-configurations/{appId}/versions": {
240
293
  "get": {
241
- "summary": "listAppVersions",
294
+ "summary": "listVersions",
242
295
  "description": "Retrieve a list of versions for an app configuration",
243
296
  "operationId": "listAppVersions",
244
297
  "parameters": [
@@ -308,9 +361,9 @@
308
361
  },
309
362
  "/v1/app-configurations/{appId}/versions/{version}": {
310
363
  "get": {
311
- "summary": "getAppConfigurationVersion",
364
+ "summary": "getVersion",
312
365
  "description": "Retrieve a specific version of an app configuration",
313
- "operationId": "getAppConfigurationVersion",
366
+ "operationId": "getVersion",
314
367
  "parameters": [
315
368
  {
316
369
  "name": "appId",
@@ -348,9 +401,9 @@
348
401
  }
349
402
  },
350
403
  "delete": {
351
- "summary": "deleteAppVersion",
404
+ "summary": "deleteVersion",
352
405
  "description": "Delete a specific version of an app configuration",
353
- "operationId": "deleteAppVersion",
406
+ "operationId": "deleteVersion",
354
407
  "parameters": [
355
408
  {
356
409
  "name": "appId",
@@ -386,10 +439,10 @@
386
439
  }
387
440
  }
388
441
  },
389
- "put": {
390
- "summary": "updateAppVersion",
391
- "description": "Update configuration data of a given app version",
392
- "operationId": "updateAppVersion",
442
+ "patch": {
443
+ "summary": "patchVersion",
444
+ "description": "Patch version specific data of a configuration",
445
+ "operationId": "patchVersion",
393
446
  "parameters": [
394
447
  {
395
448
  "name": "appId",
@@ -411,7 +464,7 @@
411
464
  }
412
465
  ],
413
466
  "requestBody": {
414
- "$ref": "#/components/requestBodies/UpdateVersionRequest"
467
+ "$ref": "#/components/requestBodies/PatchVersionRequest"
415
468
  },
416
469
  "responses": {
417
470
  "204": {
@@ -428,9 +481,9 @@
428
481
  },
429
482
  "/v1/app-configurations/{appId}/versions/{sourceVersion}/clone-to/{targetVersion}": {
430
483
  "post": {
431
- "summary": "cloneAppVersion",
484
+ "summary": "cloneVersion",
432
485
  "description": "Clone an existing app version to create a new version",
433
- "operationId": "cloneAppVersion",
486
+ "operationId": "cloneVersion",
434
487
  "parameters": [
435
488
  {
436
489
  "name": "appId",
@@ -497,9 +550,9 @@
497
550
  },
498
551
  "/v1/app": {
499
552
  "get": {
500
- "summary": "listInstalledApps",
553
+ "summary": "listInstallations",
501
554
  "description": "Retrieve a list of installed apps for the organization.",
502
- "operationId": "listInstalledApps",
555
+ "operationId": "listInstallations",
503
556
  "parameters": [
504
557
  {
505
558
  "name": "componentType",
@@ -575,9 +628,9 @@
575
628
  },
576
629
  "/v1/app/{appId}": {
577
630
  "get": {
578
- "summary": "getInstalledApp",
631
+ "summary": "getInstallation",
579
632
  "description": "Retrieve details of an installed app by its ID.",
580
- "operationId": "getInstalledApp",
633
+ "operationId": "getInstallation",
581
634
  "parameters": [
582
635
  {
583
636
  "name": "appId",
@@ -605,9 +658,9 @@
605
658
  }
606
659
  },
607
660
  "post": {
608
- "summary": "installApp",
661
+ "summary": "install",
609
662
  "description": "Upsert app installation by its ID.",
610
- "operationId": "installApp",
663
+ "operationId": "install",
611
664
  "parameters": [
612
665
  {
613
666
  "name": "appId",
@@ -619,7 +672,7 @@
619
672
  }
620
673
  ],
621
674
  "requestBody": {
622
- "$ref": "#/components/requestBodies/InstallAppRequest"
675
+ "$ref": "#/components/requestBodies/InstallRequest"
623
676
  },
624
677
  "responses": {
625
678
  "204": {
@@ -631,9 +684,9 @@
631
684
  }
632
685
  },
633
686
  "patch": {
634
- "summary": "patchInstalledApp",
687
+ "summary": "patchInstallation",
635
688
  "description": "Patch an installed app by its ID.",
636
- "operationId": "patchInstalledApp",
689
+ "operationId": "patchInstallation",
637
690
  "parameters": [
638
691
  {
639
692
  "name": "appId",
@@ -645,7 +698,7 @@
645
698
  }
646
699
  ],
647
700
  "requestBody": {
648
- "$ref": "#/components/requestBodies/InstallAppRequest"
701
+ "$ref": "#/components/requestBodies/InstallRequest"
649
702
  },
650
703
  "responses": {
651
704
  "204": {
@@ -657,9 +710,9 @@
657
710
  }
658
711
  },
659
712
  "delete": {
660
- "summary": "uninstallApp",
713
+ "summary": "uninstall",
661
714
  "description": "Uninstall an app by its ID.",
662
- "operationId": "uninstallApp",
715
+ "operationId": "uninstall",
663
716
  "parameters": [
664
717
  {
665
718
  "name": "appId",
@@ -682,9 +735,9 @@
682
735
  },
683
736
  "/v1/app/{appId}/promote-to/{version}": {
684
737
  "post": {
685
- "summary": "promoteAppVersion",
738
+ "summary": "promoteVersion",
686
739
  "description": "Update an installed app to a new version",
687
- "operationId": "promoteAppVersion",
740
+ "operationId": "promoteVersion",
688
741
  "parameters": [
689
742
  {
690
743
  "name": "appId",
@@ -726,7 +779,7 @@
726
779
  },
727
780
  "components": {
728
781
  "requestBodies": {
729
- "CreateLogoRequest": {
782
+ "CreateLogoPresignedRequest": {
730
783
  "required": true,
731
784
  "content": {
732
785
  "application/json": {
@@ -757,6 +810,29 @@
757
810
  }
758
811
  }
759
812
  },
813
+ "CreateBundlePresignedRequest": {
814
+ "required": true,
815
+ "content": {
816
+ "application/json": {
817
+ "schema": {
818
+ "type": "object",
819
+ "required": [
820
+ "version"
821
+ ],
822
+ "properties": {
823
+ "version": {
824
+ "type": "string",
825
+ "description": "Version of the app"
826
+ },
827
+ "component_id": {
828
+ "type": "string",
829
+ "description": "ID of the journye block component"
830
+ }
831
+ }
832
+ }
833
+ }
834
+ }
835
+ },
760
836
  "PatchConfigMetadataRequest": {
761
837
  "required": true,
762
838
  "content": {
@@ -765,7 +841,8 @@
765
841
  "type": "object",
766
842
  "properties": {
767
843
  "name": {
768
- "$ref": "#/components/schemas/TranslatedString"
844
+ "type": "string",
845
+ "description": "Name of the app"
769
846
  },
770
847
  "description": {
771
848
  "$ref": "#/components/schemas/TranslatedString"
@@ -795,7 +872,7 @@
795
872
  }
796
873
  }
797
874
  },
798
- "UpdateVersionRequest": {
875
+ "PatchVersionRequest": {
799
876
  "required": true,
800
877
  "content": {
801
878
  "application/json": {
@@ -829,7 +906,8 @@
829
906
  ],
830
907
  "properties": {
831
908
  "name": {
832
- "$ref": "#/components/schemas/TranslatedString"
909
+ "type": "string",
910
+ "description": "Name of the app"
833
911
  },
834
912
  "description": {
835
913
  "$ref": "#/components/schemas/TranslatedString"
@@ -846,7 +924,7 @@
846
924
  }
847
925
  }
848
926
  },
849
- "InstallAppRequest": {
927
+ "InstallRequest": {
850
928
  "content": {
851
929
  "application/json": {
852
930
  "schema": {
@@ -1255,7 +1333,8 @@
1255
1333
  "component_url": {
1256
1334
  "type": "string",
1257
1335
  "description": "URL of the web component object",
1258
- "example": "https://cdn.apps.com/123/v1.0.0/bundle.js"
1336
+ "example": "https://cdn.apps.com/123/v1.0.0/bundle.js",
1337
+ "readOnly": true
1259
1338
  },
1260
1339
  "component_tag": {
1261
1340
  "type": "string",
@@ -1268,6 +1347,11 @@
1268
1347
  "$ref": "#/components/schemas/JourneyBlockComponentArgs"
1269
1348
  }
1270
1349
  },
1350
+ "component_size": {
1351
+ "type": "number",
1352
+ "description": "Size of the bundle in bytes",
1353
+ "readOnly": true
1354
+ },
1271
1355
  "component_mapping": {
1272
1356
  "description": "Define data which is mapped to entity mapping ui blocks",
1273
1357
  "type": "object",
@@ -1470,7 +1554,8 @@
1470
1554
  "latest_version",
1471
1555
  "owner_org_id",
1472
1556
  "has_public_version",
1473
- "app_id"
1557
+ "app_id",
1558
+ "versions"
1474
1559
  ],
1475
1560
  "properties": {
1476
1561
  "app_id": {
@@ -1478,7 +1563,8 @@
1478
1563
  "readOnly": true
1479
1564
  },
1480
1565
  "name": {
1481
- "$ref": "#/components/schemas/TranslatedString"
1566
+ "type": "string",
1567
+ "description": "Name of the app"
1482
1568
  },
1483
1569
  "author": {
1484
1570
  "$ref": "#/components/schemas/Author"
@@ -1491,6 +1577,14 @@
1491
1577
  "description": "List of available versions of the app",
1492
1578
  "readOnly": true
1493
1579
  },
1580
+ "public_versions": {
1581
+ "type": "array",
1582
+ "items": {
1583
+ "type": "string"
1584
+ },
1585
+ "description": "List of available public versions of the app",
1586
+ "readOnly": true
1587
+ },
1494
1588
  "support_email": {
1495
1589
  "type": "string",
1496
1590
  "description": "Email address for support requests"
@@ -1664,7 +1758,7 @@
1664
1758
  "description": "Flag to indicate if the app is enabled. Enabled is set to true when required option values are set."
1665
1759
  },
1666
1760
  "name": {
1667
- "$ref": "#/components/schemas/TranslatedString",
1761
+ "type": "string",
1668
1762
  "description": "Name of the app",
1669
1763
  "readOnly": true
1670
1764
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/app-client",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "JavaScript client library for the epilot App API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",