dominus-sdk-nodejs 11.0.1 → 11.0.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.
Files changed (2) hide show
  1. package/README.md +4 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -33,6 +33,9 @@ export DOMINUS_PROJECT="your-project-slug"
33
33
  ```ts
34
34
  import { dominus } from 'dominus-sdk-nodejs';
35
35
 
36
+ // Use the stable identifier of the person performing the write.
37
+ const actorContext = { type: 'user', id: 'your-actor-id' };
38
+
36
39
  const run = await dominus.workflow.ensure({
37
40
  workflowRecipeRef: 'recipe://workflow-recipe-v1/hello@v1',
38
41
  });
@@ -44,6 +47,7 @@ await dominus.artifacts.storeV2({
44
47
  kind: 'blob',
45
48
  artifactKey: 'hello',
46
49
  data: Buffer.from('hello dominus').toString('base64'),
50
+ actorContext,
47
51
  });
48
52
  const artifact = await dominus.artifacts.retrieveV2({
49
53
  group: 'your-group',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dominus-sdk-nodejs",
3
- "version": "11.0.1",
3
+ "version": "11.0.2",
4
4
  "description": "Node.js SDK for the Dominus gateway-first platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",