@epilot/app-client 0.6.4 → 0.7.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.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={466:e=>{e.exports=JSON.parse('{"openapi":"3.1.0","info":{"title":"","version":""},"servers":[{"url":"https://app.sls.epilot.io"}],"paths":{"/v1/public/.well-known/public-key":{"get":{"operationId":"getPublicKey","responses":{}}},"/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}/events":{"post":{"operationId":"queryEvents","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"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":{}}},"/v1/app-events":{"post":{"operationId":"ingestEvent","requestBody":{"required":true,"content":{"application/json":{}}},"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":{}}}}}}')},757: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}},r={},t=function t(n){var o=r[n];if(void 0!==o)return o.exports;var p=r[n]={exports:{}};return e[n].call(p.exports,p,p.exports,t),p.exports}(757),n=exports;for(var o in t)n[o]=t[o];t.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={466:e=>{e.exports=JSON.parse('{"openapi":"3.1.0","info":{"title":"","version":""},"servers":[{"url":"https://app.sls.epilot.io"}],"paths":{"/v1/public/app/{appId}/components/{componentId}":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration to install"},{"name":"componentId","in":"path","required":true,"description":"ID of the component to retrieve"}],"get":{"operationId":"getPublicFacingComponent","responses":{}}},"/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}/events":{"post":{"operationId":"queryEvents","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"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":{}}},"/v1/app-events":{"post":{"operationId":"ingestEvent","requestBody":{"required":true,"content":{"application/json":{}}},"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":{}}}}}}')},757: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}},r={},t=function t(n){var o=r[n];if(void 0!==o)return o.exports;var p=r[n]={exports:{}};return e[n].call(p.exports,p,p.exports,t),p.exports}(757),n=exports;for(var o in t)n[o]=t[o];t.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
@@ -10,9 +10,23 @@
10
10
  }
11
11
  ],
12
12
  "paths": {
13
- "/v1/public/.well-known/public-key": {
13
+ "/v1/public/app/{appId}/components/{componentId}": {
14
+ "parameters": [
15
+ {
16
+ "name": "appId",
17
+ "in": "path",
18
+ "required": true,
19
+ "description": "ID of the app configuration to install"
20
+ },
21
+ {
22
+ "name": "componentId",
23
+ "in": "path",
24
+ "required": true,
25
+ "description": "ID of the component to retrieve"
26
+ }
27
+ ],
14
28
  "get": {
15
- "operationId": "getPublicKey",
29
+ "operationId": "getPublicFacingComponent",
16
30
  "responses": {}
17
31
  }
18
32
  },
package/dist/openapi.d.ts CHANGED
@@ -1536,23 +1536,10 @@ declare namespace Paths {
1536
1536
  }
1537
1537
  }
1538
1538
  }
1539
- namespace GetPublicKey {
1539
+ namespace GetPublicFacingComponent {
1540
1540
  namespace Responses {
1541
- export interface $200 {
1542
- /**
1543
- * example:
1544
- * rsa-sha256
1545
- */
1546
- algorithm?: string;
1547
- /**
1548
- * PEM-formatted RSA public key
1549
- */
1550
- public_key?: string;
1551
- /**
1552
- * example:
1553
- * epilot
1554
- */
1555
- issuer?: string;
1541
+ export type $200 = Components.Schemas.BaseComponent;
1542
+ export interface $404 {
1556
1543
  }
1557
1544
  }
1558
1545
  }
@@ -1799,20 +1786,30 @@ declare namespace Paths {
1799
1786
  appId: Parameters.AppId;
1800
1787
  }
1801
1788
  }
1789
+ namespace V1PublicApp$AppIdComponents$ComponentId {
1790
+ namespace Parameters {
1791
+ export type AppId = string;
1792
+ export type ComponentId = string;
1793
+ }
1794
+ export interface PathParameters {
1795
+ appId: Parameters.AppId;
1796
+ componentId: Parameters.ComponentId;
1797
+ }
1798
+ }
1802
1799
  }
1803
1800
 
1804
1801
 
1805
1802
  export interface OperationMethods {
1806
1803
  /**
1807
- * getPublicKey - getPublicKey
1804
+ * getPublicFacingComponent - getPublicFacingComponent
1808
1805
  *
1809
- * Retrieve the public key for verifying signatures
1806
+ * Retrieve public facing components for an installed app
1810
1807
  */
1811
- 'getPublicKey'(
1812
- parameters?: Parameters<UnknownParamsObject> | null,
1808
+ 'getPublicFacingComponent'(
1809
+ parameters?: Parameters<Paths.V1PublicApp$AppIdComponents$ComponentId.PathParameters> | null,
1813
1810
  data?: any,
1814
1811
  config?: AxiosRequestConfig
1815
- ): OperationResponse<Paths.GetPublicKey.Responses.$200>
1812
+ ): OperationResponse<Paths.GetPublicFacingComponent.Responses.$200>
1816
1813
  /**
1817
1814
  * listConfigurations - listConfigurations
1818
1815
  *
@@ -2077,17 +2074,17 @@ export interface OperationMethods {
2077
2074
  }
2078
2075
 
2079
2076
  export interface PathsDictionary {
2080
- ['/v1/public/.well-known/public-key']: {
2077
+ ['/v1/public/app/{appId}/components/{componentId}']: {
2081
2078
  /**
2082
- * getPublicKey - getPublicKey
2079
+ * getPublicFacingComponent - getPublicFacingComponent
2083
2080
  *
2084
- * Retrieve the public key for verifying signatures
2081
+ * Retrieve public facing components for an installed app
2085
2082
  */
2086
2083
  'get'(
2087
- parameters?: Parameters<UnknownParamsObject> | null,
2084
+ parameters?: Parameters<Paths.V1PublicApp$AppIdComponents$ComponentId.PathParameters> | null,
2088
2085
  data?: any,
2089
2086
  config?: AxiosRequestConfig
2090
- ): OperationResponse<Paths.GetPublicKey.Responses.$200>
2087
+ ): OperationResponse<Paths.GetPublicFacingComponent.Responses.$200>
2091
2088
  }
2092
2089
  ['/v1/app-configurations']: {
2093
2090
  /**
package/dist/openapi.json CHANGED
@@ -36,39 +36,52 @@
36
36
  }
37
37
  ],
38
38
  "paths": {
39
- "/v1/public/.well-known/public-key": {
39
+ "/v1/public/app/{appId}/components/{componentId}": {
40
+ "parameters": [
41
+ {
42
+ "name": "appId",
43
+ "in": "path",
44
+ "required": true,
45
+ "schema": {
46
+ "type": "string"
47
+ },
48
+ "description": "ID of the app configuration to install"
49
+ },
50
+ {
51
+ "name": "componentId",
52
+ "in": "path",
53
+ "required": true,
54
+ "schema": {
55
+ "type": "string"
56
+ },
57
+ "description": "ID of the component to retrieve"
58
+ }
59
+ ],
40
60
  "get": {
41
- "security": [],
42
- "summary": "getPublicKey",
43
- "operationId": "getPublicKey",
44
- "description": "Retrieve the public key for verifying signatures",
61
+ "security": [
62
+ {
63
+ "EpilotAuth": []
64
+ }
65
+ ],
66
+ "summary": "getPublicFacingComponent",
67
+ "description": "Retrieve public facing components for an installed app",
68
+ "operationId": "getPublicFacingComponent",
45
69
  "tags": [
46
- "App Configuration"
70
+ "App Installation"
47
71
  ],
48
72
  "responses": {
49
73
  "200": {
50
- "description": "Public key for signature verification",
74
+ "description": "Successful response with public app component details",
51
75
  "content": {
52
76
  "application/json": {
53
77
  "schema": {
54
- "type": "object",
55
- "properties": {
56
- "algorithm": {
57
- "type": "string",
58
- "example": "rsa-sha256"
59
- },
60
- "public_key": {
61
- "type": "string",
62
- "description": "PEM-formatted RSA public key"
63
- },
64
- "issuer": {
65
- "type": "string",
66
- "example": "epilot"
67
- }
68
- }
78
+ "$ref": "#/components/schemas/BaseComponent"
69
79
  }
70
80
  }
71
81
  }
82
+ },
83
+ "404": {
84
+ "description": "App Installation not found"
72
85
  }
73
86
  }
74
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/app-client",
3
- "version": "0.6.4",
3
+ "version": "0.7.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",