@epilot/app-client 0.9.9 → 0.10.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.d.ts CHANGED
@@ -821,7 +821,7 @@ declare namespace Components {
821
821
  flow_action_config?: AppBridgeSurfaceConfig;
822
822
  };
823
823
  }
824
- export type CustomFlowConfig = ExternalIntegrationCustomActionConfig;
824
+ export type CustomFlowConfig = ExternalIntegrationCustomActionConfig | SandboxCustomActionConfig;
825
825
  export interface EnumArg {
826
826
  type?: "enum";
827
827
  /**
@@ -1807,6 +1807,28 @@ declare namespace Components {
1807
1807
  */
1808
1808
  key: string;
1809
1809
  }
1810
+ export interface SandboxCustomActionConfig {
1811
+ /**
1812
+ * Name of the custom action
1813
+ */
1814
+ name?: string;
1815
+ /**
1816
+ * Description of the custom action
1817
+ */
1818
+ description?: string;
1819
+ /**
1820
+ * Wait for callback_url to be called before completing the action
1821
+ */
1822
+ wait_for_callback?: boolean;
1823
+ type: "sandbox";
1824
+ sandbox_settings?: {
1825
+ /**
1826
+ * JavaScript code to execute for the sandbox action. Maximum size: 300KB (hard limit). Code is stored as raw JavaScript and will be syntax-validated on save. Security restrictions: eval() and Function() constructor are not allowed.
1827
+ *
1828
+ */
1829
+ code?: string;
1830
+ };
1831
+ }
1810
1832
  export interface TextArg {
1811
1833
  type?: "text";
1812
1834
  }
@@ -3048,5 +3070,6 @@ export type RawEvents = Components.Schemas.RawEvents;
3048
3070
  export type Review = Components.Schemas.Review;
3049
3071
  export type Role = Components.Schemas.Role;
3050
3072
  export type S3Reference = Components.Schemas.S3Reference;
3073
+ export type SandboxCustomActionConfig = Components.Schemas.SandboxCustomActionConfig;
3051
3074
  export type TextArg = Components.Schemas.TextArg;
3052
3075
  export type TranslatedString = Components.Schemas.TranslatedString;
package/dist/openapi.json CHANGED
@@ -2070,17 +2070,52 @@
2070
2070
  }
2071
2071
  ]
2072
2072
  },
2073
+ "SandboxCustomActionConfig": {
2074
+ "allOf": [
2075
+ {
2076
+ "$ref": "#/components/schemas/BaseCustomActionConfig"
2077
+ },
2078
+ {
2079
+ "type": "object",
2080
+ "properties": {
2081
+ "type": {
2082
+ "type": "string",
2083
+ "enum": [
2084
+ "sandbox"
2085
+ ]
2086
+ },
2087
+ "sandbox_settings": {
2088
+ "type": "object",
2089
+ "properties": {
2090
+ "code": {
2091
+ "type": "string",
2092
+ "description": "JavaScript code to execute for the sandbox action. Maximum size: 300KB (hard limit). Code is stored as raw JavaScript and will be syntax-validated on save. Security restrictions: eval() and Function() constructor are not allowed.\n",
2093
+ "maxLength": 307200
2094
+ }
2095
+ }
2096
+ }
2097
+ },
2098
+ "required": [
2099
+ "type"
2100
+ ]
2101
+ }
2102
+ ]
2103
+ },
2073
2104
  "CustomFlowConfig": {
2074
2105
  "type": "object",
2075
2106
  "oneOf": [
2076
2107
  {
2077
2108
  "$ref": "#/components/schemas/ExternalIntegrationCustomActionConfig"
2109
+ },
2110
+ {
2111
+ "$ref": "#/components/schemas/SandboxCustomActionConfig"
2078
2112
  }
2079
2113
  ],
2080
2114
  "discriminator": {
2081
2115
  "propertyName": "type",
2082
2116
  "mapping": {
2083
- "external_integration": "#/components/schemas/ExternalIntegrationCustomActionConfig"
2117
+ "external_integration": "#/components/schemas/ExternalIntegrationCustomActionConfig",
2118
+ "sandbox": "#/components/schemas/SandboxCustomActionConfig"
2084
2119
  }
2085
2120
  }
2086
2121
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/app-client",
3
- "version": "0.9.9",
3
+ "version": "0.10.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",