@epilot/app-client 0.3.2 → 0.3.4

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.0.3","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/{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":{}}},"/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":{}}},"/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":{}}},"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.0.3","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","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":{}}},"/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":{}}},"/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":{}}},"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})})();
@@ -33,6 +33,20 @@
33
33
  "responses": {}
34
34
  }
35
35
  },
36
+ "/v1/app-configurations/public/{appId}": {
37
+ "parameters": [
38
+ {
39
+ "name": "appId",
40
+ "in": "path",
41
+ "required": true,
42
+ "description": "ID of the app configuration to install"
43
+ }
44
+ ],
45
+ "get": {
46
+ "operationId": "getPublicConfiguration",
47
+ "responses": {}
48
+ }
49
+ },
36
50
  "/v1/app-configurations/{appId}": {
37
51
  "parameters": [
38
52
  {
package/dist/openapi.d.ts CHANGED
@@ -112,6 +112,7 @@ declare namespace Components {
112
112
  */
113
113
  id: string;
114
114
  name?: TranslatedString;
115
+ description?: TranslatedString;
115
116
  /**
116
117
  * List of options for the app component
117
118
  */
@@ -126,6 +127,10 @@ declare namespace Components {
126
127
  * Name of the component
127
128
  */
128
129
  name?: TranslatedString;
130
+ /**
131
+ * Description of the component
132
+ */
133
+ description?: TranslatedString;
129
134
  /**
130
135
  * List of options for the app component
131
136
  */
@@ -617,6 +622,61 @@ declare namespace Components {
617
622
  pricing_type?: "FREE" | "SUBSCRIPTION" | "USAGE_BASED" | "ONE_TIME" | "CUSTOM" | "UNKNOWN";
618
623
  billing_frequency?: /* How often the subscription is billed */ BillingFrequency;
619
624
  }
625
+ /**
626
+ * Public configuration of the published app
627
+ */
628
+ export interface PublicConfiguration {
629
+ /**
630
+ * ID of the app configuration
631
+ */
632
+ app_id?: string;
633
+ /**
634
+ * Email address for support requests
635
+ */
636
+ support_email?: string;
637
+ /**
638
+ * Organization ID of the app owner
639
+ */
640
+ owner_org_id?: string;
641
+ /**
642
+ * Name of the app
643
+ */
644
+ name?: string;
645
+ author?: Author;
646
+ /**
647
+ * Category of the app.
648
+ */
649
+ category?: string;
650
+ /**
651
+ * URL of the app icon.
652
+ */
653
+ icon_url?: string;
654
+ /**
655
+ * URL of the app documentation.
656
+ */
657
+ documentation_url?: string;
658
+ /**
659
+ * Markdown description of the app.
660
+ */
661
+ description?: TranslatedString;
662
+ /**
663
+ * Pricing information for the app
664
+ */
665
+ pricing?: Pricing;
666
+ components?: BaseComponent[];
667
+ /**
668
+ * Flag to indicate if the app is in beta.
669
+ */
670
+ is_beta?: boolean;
671
+ /**
672
+ * Timestamp when the app version is deprecated
673
+ */
674
+ deprecated_at?: string;
675
+ /**
676
+ * Version of the app that is installed
677
+ */
678
+ version?: string;
679
+ }
620
680
  export interface S3Reference {
621
681
  /**
622
682
  * The name of the S3 bucket where the JSON file for import is stored.
@@ -730,7 +790,7 @@ declare namespace Paths {
730
790
  namespace CreateConfiguration {
731
791
  export type RequestBody = Components.RequestBodies.CreateConfigRequest;
732
792
  namespace Responses {
733
- export interface $202 {
793
+ export interface $201 {
734
794
  app_id: string;
735
795
  }
736
796
  }
@@ -825,6 +885,13 @@ declare namespace Paths {
825
885
  }
826
886
  }
827
887
  }
888
+ namespace GetPublicConfiguration {
889
+ namespace Responses {
890
+ export type $200 = /* Public configuration of the published app */ Components.Schemas.PublicConfiguration;
891
+ export interface $404 {
892
+ }
893
+ }
894
+ }
828
895
  namespace GetVersion {
829
896
  namespace Parameters {
830
897
  export type AppId = string;
@@ -1015,6 +1082,14 @@ declare namespace Paths {
1015
1082
  appId: Parameters.AppId;
1016
1083
  }
1017
1084
  }
1085
+ namespace V1AppConfigurationsPublic$AppId {
1086
+ namespace Parameters {
1087
+ export type AppId = string;
1088
+ }
1089
+ export interface PathParameters {
1090
+ appId: Parameters.AppId;
1091
+ }
1092
+ }
1018
1093
  }
1019
1094
 
1020
1095
  export interface OperationMethods {
@@ -1037,7 +1112,17 @@ export interface OperationMethods {
1037
1112
  parameters?: Parameters<UnknownParamsObject> | null,
1038
1113
  data?: Paths.CreateConfiguration.RequestBody,
1039
1114
  config?: AxiosRequestConfig
1040
- ): OperationResponse<Paths.CreateConfiguration.Responses.$202>
1115
+ ): OperationResponse<Paths.CreateConfiguration.Responses.$201>
1116
+ /**
1117
+ * getPublicConfiguration - getPublicConfiguration
1118
+ *
1119
+ * Retrieve the public configuration of an app to install in your tenant
1120
+ */
1121
+ 'getPublicConfiguration'(
1122
+ parameters?: Parameters<Paths.V1AppConfigurationsPublic$AppId.PathParameters> | null,
1123
+ data?: any,
1124
+ config?: AxiosRequestConfig
1125
+ ): OperationResponse<Paths.GetPublicConfiguration.Responses.$200>
1041
1126
  /**
1042
1127
  * getConfiguration - getConfiguration
1043
1128
  *
@@ -1241,7 +1326,19 @@ export interface PathsDictionary {
1241
1326
  parameters?: Parameters<UnknownParamsObject> | null,
1242
1327
  data?: Paths.CreateConfiguration.RequestBody,
1243
1328
  config?: AxiosRequestConfig
1244
- ): OperationResponse<Paths.CreateConfiguration.Responses.$202>
1329
+ ): OperationResponse<Paths.CreateConfiguration.Responses.$201>
1330
+ }
1331
+ ['/v1/app-configurations/public/{appId}']: {
1332
+ /**
1333
+ * getPublicConfiguration - getPublicConfiguration
1334
+ *
1335
+ * Retrieve the public configuration of an app to install in your tenant
1336
+ */
1337
+ 'get'(
1338
+ parameters?: Parameters<Paths.V1AppConfigurationsPublic$AppId.PathParameters> | null,
1339
+ data?: any,
1340
+ config?: AxiosRequestConfig
1341
+ ): OperationResponse<Paths.GetPublicConfiguration.Responses.$200>
1245
1342
  }
1246
1343
  ['/v1/app-configurations/{appId}']: {
1247
1344
  /**
@@ -1474,6 +1571,7 @@ export type PortalAuth = Components.Schemas.PortalAuth;
1474
1571
  export type PortalExtensionComponent = Components.Schemas.PortalExtensionComponent;
1475
1572
  export type PortalExtensionConfig = Components.Schemas.PortalExtensionConfig;
1476
1573
  export type Pricing = Components.Schemas.Pricing;
1574
+ export type PublicConfiguration = Components.Schemas.PublicConfiguration;
1477
1575
  export type S3Reference = Components.Schemas.S3Reference;
1478
1576
  export type TextArg = Components.Schemas.TextArg;
1479
1577
  export type TranslatedString = Components.Schemas.TranslatedString;
package/dist/openapi.json CHANGED
@@ -90,7 +90,7 @@
90
90
  "$ref": "#/components/requestBodies/CreateConfigRequest"
91
91
  },
92
92
  "responses": {
93
- "202": {
93
+ "201": {
94
94
  "description": "App configuration created successfully",
95
95
  "content": {
96
96
  "application/json": {
@@ -111,6 +111,39 @@
111
111
  }
112
112
  }
113
113
  },
114
+ "/v1/app-configurations/public/{appId}": {
115
+ "parameters": [
116
+ {
117
+ "name": "appId",
118
+ "in": "path",
119
+ "required": true,
120
+ "schema": {
121
+ "type": "string"
122
+ },
123
+ "description": "ID of the app configuration to install"
124
+ }
125
+ ],
126
+ "get": {
127
+ "summary": "getPublicConfiguration",
128
+ "description": "Retrieve the public configuration of an app to install in your tenant",
129
+ "operationId": "getPublicConfiguration",
130
+ "responses": {
131
+ "200": {
132
+ "description": "Successful response",
133
+ "content": {
134
+ "application/json": {
135
+ "schema": {
136
+ "$ref": "#/components/schemas/PublicConfiguration"
137
+ }
138
+ }
139
+ }
140
+ },
141
+ "404": {
142
+ "description": "App configuration not found"
143
+ }
144
+ }
145
+ }
146
+ },
114
147
  "/v1/app-configurations/{appId}": {
115
148
  "parameters": [
116
149
  {
@@ -1222,6 +1255,10 @@
1222
1255
  "$ref": "#/components/schemas/TranslatedString",
1223
1256
  "description": "Name of the component"
1224
1257
  },
1258
+ "description": {
1259
+ "$ref": "#/components/schemas/TranslatedString",
1260
+ "description": "Description of the component"
1261
+ },
1225
1262
  "options": {
1226
1263
  "type": "array",
1227
1264
  "items": {
@@ -1643,7 +1680,6 @@
1643
1680
  "description",
1644
1681
  "latest_version",
1645
1682
  "owner_org_id",
1646
- "has_public_version",
1647
1683
  "app_id",
1648
1684
  "versions"
1649
1685
  ],
@@ -1879,6 +1915,72 @@
1879
1915
  }
1880
1916
  }
1881
1917
  },
1918
+ "PublicConfiguration": {
1919
+ "description": "Public configuration of the published app",
1920
+ "type": "object",
1921
+ "properties": {
1922
+ "app_id": {
1923
+ "type": "string",
1924
+ "description": "ID of the app configuration"
1925
+ },
1926
+ "support_email": {
1927
+ "type": "string",
1928
+ "description": "Email address for support requests"
1929
+ },
1930
+ "owner_org_id": {
1931
+ "type": "string",
1932
+ "description": "Organization ID of the app owner"
1933
+ },
1934
+ "name": {
1935
+ "type": "string",
1936
+ "description": "Name of the app"
1937
+ },
1938
+ "author": {
1939
+ "$ref": "#/components/schemas/Author"
1940
+ },
1941
+ "category": {
1942
+ "type": "string",
1943
+ "description": "Category of the app."
1944
+ },
1945
+ "icon_url": {
1946
+ "type": "string",
1947
+ "description": "URL of the app icon."
1948
+ },
1949
+ "documentation_url": {
1950
+ "type": "string",
1951
+ "description": "URL of the app documentation."
1952
+ },
1953
+ "description": {
1954
+ "$ref": "#/components/schemas/TranslatedString",
1955
+ "description": "Markdown description of the app."
1956
+ },
1957
+ "pricing": {
1958
+ "$ref": "#/components/schemas/Pricing",
1959
+ "description": "Pricing information for the app"
1960
+ },
1961
+ "components": {
1962
+ "type": "array",
1963
+ "items": {
1964
+ "$ref": "#/components/schemas/BaseComponent"
1965
+ },
1966
+ "minItems": 0
1967
+ },
1968
+ "is_beta": {
1969
+ "type": "boolean",
1970
+ "description": "Flag to indicate if the app is in beta.",
1971
+ "readOnly": true
1972
+ },
1973
+ "deprecated_at": {
1974
+ "type": "string",
1975
+ "description": "Timestamp when the app version is deprecated"
1976
+ },
1977
+ "version": {
1978
+ "type": "string",
1979
+ "description": "Version of the app that is installed",
1980
+ "readOnly": true
1981
+ }
1982
+ }
1983
+ },
1882
1984
  "Configuration": {
1883
1985
  "description": "Configuration of the published app",
1884
1986
  "allOf": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/app-client",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "JavaScript client library for the epilot App API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",