@sanoma-ai/workflows 0.11.6 → 0.11.9

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 (47) hide show
  1. package/README.md +12 -6
  2. package/dist/change.d.ts +2 -4
  3. package/dist/change.js +2 -3
  4. package/dist/change.js.map +1 -1
  5. package/dist/client.d.ts +6 -0
  6. package/dist/client.js +5 -1
  7. package/dist/client.js.map +1 -1
  8. package/dist/config.js +2 -0
  9. package/dist/config.js.map +1 -1
  10. package/dist/describe.js +1 -0
  11. package/dist/describe.js.map +1 -1
  12. package/dist/description.d.ts +12 -0
  13. package/dist/description.js +3 -0
  14. package/dist/description.js.map +1 -1
  15. package/dist/host-derive.d.ts +3 -0
  16. package/dist/host-derive.js +9 -0
  17. package/dist/host-derive.js.map +1 -1
  18. package/dist/host.d.ts +2 -0
  19. package/dist/host.js +2 -1
  20. package/dist/host.js.map +1 -1
  21. package/dist/ledger.d.ts +6 -0
  22. package/dist/ledger.js +8 -0
  23. package/dist/ledger.js.map +1 -1
  24. package/dist/runtime-ops.d.ts +1 -1
  25. package/dist/runtime-ops.js +7 -7
  26. package/dist/runtime-ops.js.map +1 -1
  27. package/dist/secret-store.d.ts +4 -0
  28. package/dist/secret-store.js +8 -0
  29. package/dist/secret-store.js.map +1 -1
  30. package/dist/shared.d.ts +2 -0
  31. package/dist/shared.js +2 -0
  32. package/dist/shared.js.map +1 -1
  33. package/dist/source.d.ts +2 -0
  34. package/dist/source.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/change.ts +10 -3
  37. package/src/client.ts +14 -1
  38. package/src/config.ts +7 -0
  39. package/src/describe.ts +1 -0
  40. package/src/description.ts +3 -0
  41. package/src/host-derive.ts +11 -0
  42. package/src/host.ts +2 -1
  43. package/src/ledger.ts +12 -0
  44. package/src/runtime-ops.ts +14 -7
  45. package/src/secret-store.ts +16 -3
  46. package/src/shared.ts +3 -0
  47. package/src/source.ts +2 -0
package/src/source.ts CHANGED
@@ -322,6 +322,8 @@ export interface RemoteHalf {
322
322
  webhook?(request: Request, context: RemoteContext): Promise<RemoteEvent[]>;
323
323
  /** The accounts the company's app on the host is installed on: where it acts with no person's token. */
324
324
  owners?(context: RemoteContext): Promise<{ login: string; kind: "user" | "organization" }[]>;
325
+ /** The permissions the company's app on the host holds, by name (`contents: "write"`), as the host lists them; undefined without the app's keys. */
326
+ permissions?(context: RemoteContext): Promise<Record<string, string> | undefined>;
325
327
  }
326
328
 
327
329
  /** The remote half among `remotes` (`ResolvedConfig.remotes`) whose host `url` is on, with its vendor and the repository. */