@coherentglobal/spark-execute-sdk 0.3.1 → 0.3.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.
- package/README.md +12 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,25 +27,25 @@ yarn add @coherentglobal/spark-execute-sdk
|
|
|
27
27
|
|
|
28
28
|
```js
|
|
29
29
|
const config = {
|
|
30
|
-
|
|
30
|
+
sparkEndpoint: {
|
|
31
31
|
url: "https://excel.dev.coherent.global", // Spark Endpoint to be used on Fallback
|
|
32
32
|
tenant: "tenant", // Spark tenant name
|
|
33
|
-
authType: public | syntheticKey | bearerToken
|
|
33
|
+
authType: public | syntheticKey | bearerToken,
|
|
34
34
|
// If syntheticKey
|
|
35
35
|
syntheticKey: "apiKey" or generateSyntheticKey(), // value or a func - func call every time making API call, user will do cache
|
|
36
36
|
// If bearerToken
|
|
37
37
|
bearerToken: generateToken(), //a func - func call every time making API call, user will do cache
|
|
38
38
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
39
|
+
nodegenModels: [
|
|
40
|
+
{
|
|
41
|
+
versionId: "uuid",
|
|
42
|
+
type: "base64",
|
|
43
|
+
binary: Blob | Base64 | BinaryUnit | Func(versionId), // a binary zipped file or a function the will get the zipped file
|
|
44
|
+
metadata: {
|
|
45
|
+
// Spark Model Metadata
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
49
|
}
|
|
50
50
|
```
|
|
51
51
|
|