@stigmer/server 3.27.2 → 3.29.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.
Files changed (227) hide show
  1. package/README.md +2 -0
  2. package/dist/authorization/authorizer.d.ts +3 -3
  3. package/dist/authorization/authorizer.js +3 -3
  4. package/dist/authorization/derived-tuples.js +6 -1
  5. package/dist/authorization/derived-tuples.js.map +1 -1
  6. package/dist/authorization/evaluator.d.ts +9 -10
  7. package/dist/authorization/evaluator.d.ts.map +1 -1
  8. package/dist/authorization/evaluator.js.map +1 -1
  9. package/dist/authorization/list-read-scope.d.ts.map +1 -1
  10. package/dist/authorization/list-read-scope.js +29 -18
  11. package/dist/authorization/list-read-scope.js.map +1 -1
  12. package/dist/authorization/model/bindings.d.ts +41 -0
  13. package/dist/authorization/model/bindings.d.ts.map +1 -0
  14. package/dist/authorization/model/bindings.js +89 -0
  15. package/dist/authorization/model/bindings.js.map +1 -0
  16. package/dist/authorization/model/data/authorization-model.json +3141 -0
  17. package/dist/authorization/model/default-of.d.ts +2 -2
  18. package/dist/authorization/model/execution-viewer.d.ts +3 -0
  19. package/dist/authorization/model/execution-viewer.d.ts.map +1 -0
  20. package/dist/authorization/model/execution-viewer.js +50 -0
  21. package/dist/authorization/model/execution-viewer.js.map +1 -0
  22. package/dist/authorization/model/index.d.ts +33 -21
  23. package/dist/authorization/model/index.d.ts.map +1 -1
  24. package/dist/authorization/model/index.js +74 -52
  25. package/dist/authorization/model/index.js.map +1 -1
  26. package/dist/authorization/model/openfga-json.d.ts +18 -0
  27. package/dist/authorization/model/openfga-json.d.ts.map +1 -0
  28. package/dist/authorization/model/openfga-json.js +266 -0
  29. package/dist/authorization/model/openfga-json.js.map +1 -0
  30. package/dist/authorization/model/rewrite.d.ts +39 -67
  31. package/dist/authorization/model/rewrite.d.ts.map +1 -1
  32. package/dist/authorization/model/rewrite.js +1 -117
  33. package/dist/authorization/model/rewrite.js.map +1 -1
  34. package/dist/authorization/strict-json.d.ts +20 -0
  35. package/dist/authorization/strict-json.d.ts.map +1 -0
  36. package/dist/authorization/strict-json.js +45 -0
  37. package/dist/authorization/strict-json.js.map +1 -0
  38. package/dist/boot/compose.d.ts.map +1 -1
  39. package/dist/boot/compose.js +9 -7
  40. package/dist/boot/compose.js.map +1 -1
  41. package/dist/domain/workflowexecution/list-index.d.ts +1 -1
  42. package/dist/extensions/list-read-scope.d.ts +20 -3
  43. package/dist/extensions/list-read-scope.d.ts.map +1 -1
  44. package/dist/extensions/list-read-scope.js +20 -1
  45. package/dist/extensions/list-read-scope.js.map +1 -1
  46. package/dist/index.d.ts +7 -8
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +15 -5
  49. package/dist/index.js.map +1 -1
  50. package/package.json +7 -6
  51. package/src/authorization/README.md +41 -34
  52. package/src/authorization/__tests__/authorizer.test.ts +5 -14
  53. package/src/authorization/__tests__/derived-tuples.test.ts +29 -27
  54. package/src/authorization/__tests__/evaluator.test.ts +53 -160
  55. package/src/authorization/__tests__/facts.test.ts +5 -11
  56. package/src/authorization/__tests__/list-read-scope.measure.test.ts +12 -20
  57. package/src/authorization/__tests__/list-read-scope.test.ts +15 -14
  58. package/src/authorization/__tests__/organization-directory.test.ts +2 -2
  59. package/src/authorization/__tests__/store-test-kit.ts +246 -0
  60. package/src/authorization/__tests__/store-tests.test.ts +92 -223
  61. package/src/authorization/__tests__/support.ts +30 -2
  62. package/src/authorization/__tests__/throwaway-model.ts +75 -0
  63. package/src/authorization/__tests__/wire-permissions.test.ts +141 -107
  64. package/src/authorization/authorizer.ts +3 -3
  65. package/src/authorization/derived-tuples.ts +7 -2
  66. package/src/authorization/evaluator.ts +8 -10
  67. package/src/authorization/list-read-scope.ts +37 -22
  68. package/src/authorization/model/__tests__/openfga-json.test.ts +353 -0
  69. package/src/authorization/model/__tests__/registry.test.ts +345 -277
  70. package/src/authorization/model/bindings.ts +131 -0
  71. package/src/authorization/model/data/authorization-model.json +3141 -0
  72. package/src/authorization/model/default-of.ts +2 -2
  73. package/src/authorization/model/execution-viewer.ts +56 -0
  74. package/src/authorization/model/index.ts +81 -72
  75. package/src/authorization/model/openfga-json.ts +310 -0
  76. package/src/authorization/model/rewrite.ts +39 -188
  77. package/src/authorization/strict-json.ts +52 -0
  78. package/src/boot/compose.ts +9 -7
  79. package/src/extensions/__tests__/built-in-authorization-composed.test.ts +3 -6
  80. package/src/extensions/list-read-scope.ts +32 -4
  81. package/src/index.ts +15 -44
  82. package/dist/authorization/model/agent.d.ts +0 -2
  83. package/dist/authorization/model/agent.d.ts.map +0 -1
  84. package/dist/authorization/model/agent.js +0 -43
  85. package/dist/authorization/model/agent.js.map +0 -1
  86. package/dist/authorization/model/agent_channel.d.ts +0 -2
  87. package/dist/authorization/model/agent_channel.d.ts.map +0 -1
  88. package/dist/authorization/model/agent_channel.js +0 -39
  89. package/dist/authorization/model/agent_channel.js.map +0 -1
  90. package/dist/authorization/model/agent_execution.d.ts +0 -2
  91. package/dist/authorization/model/agent_execution.d.ts.map +0 -1
  92. package/dist/authorization/model/agent_execution.js +0 -25
  93. package/dist/authorization/model/agent_execution.js.map +0 -1
  94. package/dist/authorization/model/agent_instance.d.ts +0 -2
  95. package/dist/authorization/model/agent_instance.d.ts.map +0 -1
  96. package/dist/authorization/model/agent_instance.js +0 -48
  97. package/dist/authorization/model/agent_instance.js.map +0 -1
  98. package/dist/authorization/model/agent_share.d.ts +0 -2
  99. package/dist/authorization/model/agent_share.d.ts.map +0 -1
  100. package/dist/authorization/model/agent_share.js +0 -29
  101. package/dist/authorization/model/agent_share.js.map +0 -1
  102. package/dist/authorization/model/api_key.d.ts +0 -2
  103. package/dist/authorization/model/api_key.d.ts.map +0 -1
  104. package/dist/authorization/model/api_key.js +0 -27
  105. package/dist/authorization/model/api_key.js.map +0 -1
  106. package/dist/authorization/model/artifact.d.ts +0 -2
  107. package/dist/authorization/model/artifact.d.ts.map +0 -1
  108. package/dist/authorization/model/artifact.js +0 -27
  109. package/dist/authorization/model/artifact.js.map +0 -1
  110. package/dist/authorization/model/channel_app.d.ts +0 -2
  111. package/dist/authorization/model/channel_app.d.ts.map +0 -1
  112. package/dist/authorization/model/channel_app.js +0 -28
  113. package/dist/authorization/model/channel_app.js.map +0 -1
  114. package/dist/authorization/model/environment.d.ts +0 -2
  115. package/dist/authorization/model/environment.d.ts.map +0 -1
  116. package/dist/authorization/model/environment.js +0 -33
  117. package/dist/authorization/model/environment.js.map +0 -1
  118. package/dist/authorization/model/execution_context.d.ts +0 -2
  119. package/dist/authorization/model/execution_context.d.ts.map +0 -1
  120. package/dist/authorization/model/execution_context.js +0 -19
  121. package/dist/authorization/model/execution_context.js.map +0 -1
  122. package/dist/authorization/model/iam_policy.d.ts +0 -2
  123. package/dist/authorization/model/iam_policy.d.ts.map +0 -1
  124. package/dist/authorization/model/iam_policy.js +0 -31
  125. package/dist/authorization/model/iam_policy.js.map +0 -1
  126. package/dist/authorization/model/identity_account.d.ts +0 -2
  127. package/dist/authorization/model/identity_account.d.ts.map +0 -1
  128. package/dist/authorization/model/identity_account.js +0 -25
  129. package/dist/authorization/model/identity_account.js.map +0 -1
  130. package/dist/authorization/model/mcp_server.d.ts +0 -2
  131. package/dist/authorization/model/mcp_server.d.ts.map +0 -1
  132. package/dist/authorization/model/mcp_server.js +0 -38
  133. package/dist/authorization/model/mcp_server.js.map +0 -1
  134. package/dist/authorization/model/memory.d.ts +0 -2
  135. package/dist/authorization/model/memory.d.ts.map +0 -1
  136. package/dist/authorization/model/memory.js +0 -26
  137. package/dist/authorization/model/memory.js.map +0 -1
  138. package/dist/authorization/model/oauth_app.d.ts +0 -2
  139. package/dist/authorization/model/oauth_app.d.ts.map +0 -1
  140. package/dist/authorization/model/oauth_app.js +0 -31
  141. package/dist/authorization/model/oauth_app.js.map +0 -1
  142. package/dist/authorization/model/organization.d.ts +0 -2
  143. package/dist/authorization/model/organization.d.ts.map +0 -1
  144. package/dist/authorization/model/organization.js +0 -58
  145. package/dist/authorization/model/organization.js.map +0 -1
  146. package/dist/authorization/model/platform_client.d.ts +0 -2
  147. package/dist/authorization/model/platform_client.d.ts.map +0 -1
  148. package/dist/authorization/model/platform_client.js +0 -31
  149. package/dist/authorization/model/platform_client.js.map +0 -1
  150. package/dist/authorization/model/plugin.d.ts +0 -2
  151. package/dist/authorization/model/plugin.d.ts.map +0 -1
  152. package/dist/authorization/model/plugin.js +0 -45
  153. package/dist/authorization/model/plugin.js.map +0 -1
  154. package/dist/authorization/model/schedule.d.ts +0 -2
  155. package/dist/authorization/model/schedule.d.ts.map +0 -1
  156. package/dist/authorization/model/schedule.js +0 -34
  157. package/dist/authorization/model/schedule.js.map +0 -1
  158. package/dist/authorization/model/session.d.ts +0 -2
  159. package/dist/authorization/model/session.d.ts.map +0 -1
  160. package/dist/authorization/model/session.js +0 -38
  161. package/dist/authorization/model/session.js.map +0 -1
  162. package/dist/authorization/model/skill.d.ts +0 -2
  163. package/dist/authorization/model/skill.d.ts.map +0 -1
  164. package/dist/authorization/model/skill.js +0 -39
  165. package/dist/authorization/model/skill.js.map +0 -1
  166. package/dist/authorization/model/workflow.d.ts +0 -2
  167. package/dist/authorization/model/workflow.d.ts.map +0 -1
  168. package/dist/authorization/model/workflow.js +0 -39
  169. package/dist/authorization/model/workflow.js.map +0 -1
  170. package/dist/authorization/model/workflow_execution.d.ts +0 -2
  171. package/dist/authorization/model/workflow_execution.d.ts.map +0 -1
  172. package/dist/authorization/model/workflow_execution.js +0 -33
  173. package/dist/authorization/model/workflow_execution.js.map +0 -1
  174. package/dist/authorization/model/workflow_instance.d.ts +0 -2
  175. package/dist/authorization/model/workflow_instance.d.ts.map +0 -1
  176. package/dist/authorization/model/workflow_instance.js +0 -96
  177. package/dist/authorization/model/workflow_instance.js.map +0 -1
  178. package/dist/authorization/store-test-kit.d.ts +0 -62
  179. package/dist/authorization/store-test-kit.d.ts.map +0 -1
  180. package/dist/authorization/store-test-kit.js +0 -265
  181. package/dist/authorization/store-test-kit.js.map +0 -1
  182. package/src/authorization/__tests__/enterprise-model.ts +0 -59
  183. package/src/authorization/__tests__/fixtures/fga/agent-channel-owner.fga.yaml +0 -112
  184. package/src/authorization/__tests__/fixtures/fga/agent-instance-creation.fga.yaml +0 -177
  185. package/src/authorization/__tests__/fixtures/fga/agent-share-owner.fga.yaml +0 -109
  186. package/src/authorization/__tests__/fixtures/fga/artifact-org-and-owner.fga.yaml +0 -128
  187. package/src/authorization/__tests__/fixtures/fga/blueprint-private-visibility.fga.yaml +0 -318
  188. package/src/authorization/__tests__/fixtures/fga/channel-app-owner.fga.yaml +0 -125
  189. package/src/authorization/__tests__/fixtures/fga/channel-participation.fga.yaml +0 -201
  190. package/src/authorization/__tests__/fixtures/fga/channel-session-visibility.fga.yaml +0 -187
  191. package/src/authorization/__tests__/fixtures/fga/default-instance-inheritance.fga.yaml +0 -214
  192. package/src/authorization/__tests__/fixtures/fga/mcp-server-authoring.fga.yaml +0 -129
  193. package/src/authorization/__tests__/fixtures/fga/memory-subject-only.fga.yaml +0 -72
  194. package/src/authorization/__tests__/fixtures/fga/org-admin-owner-inheritance.fga.yaml +0 -308
  195. package/src/authorization/__tests__/fixtures/fga/org-shared-environment.fga.yaml +0 -144
  196. package/src/authorization/__tests__/fixtures/fga/platform-visibility.fga.yaml +0 -199
  197. package/src/authorization/__tests__/fixtures/fga/provider-standing-viewer.fga.yaml +0 -40
  198. package/src/authorization/__tests__/fixtures/fga/reserved-label-writer.fga.yaml +0 -41
  199. package/src/authorization/__tests__/fixtures/fga/schedule-owner.fga.yaml +0 -113
  200. package/src/authorization/__tests__/fixtures/fga/schedule-session-visibility.fga.yaml +0 -214
  201. package/src/authorization/__tests__/fixtures/fga/session-personal-resource.fga.yaml +0 -117
  202. package/src/authorization/__tests__/fixtures/fga/workflow-execution-sharing.fga.yaml +0 -190
  203. package/src/authorization/model/agent.ts +0 -64
  204. package/src/authorization/model/agent_channel.ts +0 -57
  205. package/src/authorization/model/agent_execution.ts +0 -33
  206. package/src/authorization/model/agent_instance.ts +0 -66
  207. package/src/authorization/model/agent_share.ts +0 -40
  208. package/src/authorization/model/api_key.ts +0 -28
  209. package/src/authorization/model/artifact.ts +0 -38
  210. package/src/authorization/model/channel_app.ts +0 -39
  211. package/src/authorization/model/environment.ts +0 -48
  212. package/src/authorization/model/execution_context.ts +0 -20
  213. package/src/authorization/model/iam_policy.ts +0 -42
  214. package/src/authorization/model/identity_account.ts +0 -26
  215. package/src/authorization/model/mcp_server.ts +0 -59
  216. package/src/authorization/model/memory.ts +0 -27
  217. package/src/authorization/model/oauth_app.ts +0 -43
  218. package/src/authorization/model/organization.ts +0 -59
  219. package/src/authorization/model/platform_client.ts +0 -43
  220. package/src/authorization/model/plugin.ts +0 -66
  221. package/src/authorization/model/schedule.ts +0 -49
  222. package/src/authorization/model/session.ts +0 -50
  223. package/src/authorization/model/skill.ts +0 -60
  224. package/src/authorization/model/workflow.ts +0 -60
  225. package/src/authorization/model/workflow_execution.ts +0 -46
  226. package/src/authorization/model/workflow_instance.ts +0 -125
  227. package/src/authorization/store-test-kit.ts +0 -395
@@ -1,58 +0,0 @@
1
- /**
2
- * Transcript of fga/model/tenancy/organization.fga — the root of the
3
- * model: no parent, the four roles as a ladder (`owner ⊂ admin ⊂ member
4
- * ⊂ viewer`, each `[identity_account] or <the rung above>`), and every
5
- * `can_create_*` an organization gates.
6
- *
7
- * In open source the `[identity_account]` tuples of this type ARE the
8
- * IamPolicy rows: 2b's role lifecycle writes the creator's `owner` row and
9
- * the grant path writes every other role, so the tuple source reads them
10
- * from the IamPolicyStore and the derivation writes no owner tuple for
11
- * this kind (derived-tuples.ts). `guest` is the cloud's anonymous
12
- * share-link visitor; no open-source lane mints one (claim check C5), so
13
- * the relation resolves to nothing and `can_create_session: member or
14
- * guest` is `member` here — the transcript still carries the line.
15
- * `can_create_team` is carried the same way: open source serves no Team
16
- * kind, so nothing here asks it.
17
- */
18
- import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
19
- import { OrganizationSchema } from "@stigmer/protos/ai/stigmer/tenancy/organization/v1/api_pb";
20
- import { computed, declareKind, direct, objectOf, union } from "./rewrite.js";
21
- export const organizationDeclaration = declareKind({
22
- kind: ApiResourceKind.organization,
23
- schema: OrganizationSchema,
24
- source: "fga/model/tenancy/organization.fga",
25
- relations: [
26
- ["owner", direct(objectOf("identity_account"))],
27
- ["admin", union(direct(objectOf("identity_account")), computed("owner"))],
28
- ["member", union(direct(objectOf("identity_account")), computed("admin"))],
29
- ["viewer", union(direct(objectOf("identity_account")), computed("member"))],
30
- ["guest", direct(objectOf("identity_account"))],
31
- ["can_view", computed("viewer")],
32
- ["can_edit", computed("admin")],
33
- ["can_delete", computed("owner")],
34
- ["can_manage_members", computed("admin")],
35
- ["can_assign_roles", computed("owner")],
36
- ["can_create_agent", computed("admin")],
37
- ["can_create_workflow", computed("admin")],
38
- ["can_create_session", union(computed("member"), computed("guest"))],
39
- ["can_create_environment", computed("member")],
40
- ["can_create_skill", computed("admin")],
41
- ["can_create_plugin", computed("admin")],
42
- ["can_create_mcp_server", computed("admin")],
43
- ["can_create_idp", computed("admin")],
44
- ["can_create_identity_account", computed("admin")],
45
- ["can_create_oauth_app", computed("admin")],
46
- ["can_create_platform_client", computed("admin")],
47
- ["can_create_channel_app", computed("admin")],
48
- ["can_create_execution_in", union(computed("member"), computed("guest"))],
49
- ["can_create_agent_share", computed("admin")],
50
- ["can_create_agent_instance", computed("member")],
51
- ["can_create_team", computed("admin")],
52
- ["can_grant_access", computed("admin")],
53
- ["can_view_access", computed("viewer")],
54
- ["can_view_billing", computed("viewer")],
55
- ["can_manage_billing", computed("admin")],
56
- ],
57
- });
58
- //# sourceMappingURL=organization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"organization.js","sourceRoot":"","sources":["../../../src/authorization/model/organization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;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ration: import("./rewrite.js").KindDeclaration;
2
- //# sourceMappingURL=platform_client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"platform_client.d.ts","sourceRoot":"","sources":["../../../src/authorization/model/platform_client.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,yBAAyB,wCAqBpC,CAAC"}
@@ -1,31 +0,0 @@
1
- /**
2
- * Transcript of fga/model/iam/platform_client.fga — relation for relation
3
- * the oauth_app shape: organization-scoped, an `owner` with no admin arm
4
- * and a `viewer` that has one. A platform client holds credential material,
5
- * so the model is restricted: its creator (the owner) edits, deletes,
6
- * rotates and grants; the organization's admins may view it; ordinary
7
- * members have no access at all, which is why listByOrg narrows through
8
- * the list read scope. There is no public level.
9
- */
10
- import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
11
- import { PlatformClientSchema } from "@stigmer/protos/ai/stigmer/iam/platformclient/v1/api_pb";
12
- import { computed, declareKind, direct, from, objectOf, union, } from "./rewrite.js";
13
- export const platformClientDeclaration = declareKind({
14
- kind: ApiResourceKind.platform_client,
15
- schema: PlatformClientSchema,
16
- source: "fga/model/iam/platform_client.fga",
17
- relations: [
18
- ["organization", direct(objectOf("organization"))],
19
- ["owner", direct(objectOf("identity_account"))],
20
- [
21
- "viewer",
22
- union(direct(objectOf("identity_account")), computed("owner"), from("admin", "organization")),
23
- ],
24
- ["can_view", computed("viewer")],
25
- ["can_edit", computed("owner")],
26
- ["can_delete", computed("owner")],
27
- ["can_grant_access", computed("owner")],
28
- ["can_view_access", computed("viewer")],
29
- ],
30
- });
31
- //# sourceMappingURL=platform_client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"platform_client.js","sourceRoot":"","sources":["../../../src/authorization/model/platform_client.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AACtH,OAAO,EAAE,oBAAoB,EAAE,MAAM,yDAAyD,CAAC;AAE/F,OAAO,EACL,QAAQ,EACR,WAAW,EACX,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,KAAK,GACN,MAAM,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,yBAAyB,GAAG,WAAW,CAAC;IACnD,IAAI,EAAE,eAAe,CAAC,eAAe;IACrC,MAAM,EAAE,oBAAoB;IAC5B,MAAM,EAAE,mCAAmC;IAC3C,SAAS,EAAE;QACT,CAAC,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;QAClD,CAAC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAAC;QAC/C;YACE,QAAQ;YACR,KAAK,CACH,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,EACpC,QAAQ,CAAC,OAAO,CAAC,EACjB,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAC9B;SACF;QACD,CAAC,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC/B,CAAC,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QACjC,CAAC,kBAAkB,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QACvC,CAAC,iBAAiB,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;KACxC;CACF,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const pluginDeclaration: import("./rewrite.js").KindDeclaration;
2
- //# sourceMappingURL=plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/authorization/model/plugin.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,iBAAiB,wCAqC5B,CAAC"}
@@ -1,45 +0,0 @@
1
- /**
2
- * Transcript of fga/model/agentic/plugin.fga — the unit of install, shaped
3
- * exactly like a skill: an organization-owned blueprint whose owner is the
4
- * installer (and, through the organization, its admins), whose viewers are
5
- * the org's members and viewers and the platform viewer. Its verbs are the blueprint set: `can_view`, `can_edit`
6
- * (visibility), `can_delete` (uninstall), `can_grant_access`,
7
- * `can_view_access`; `can_use` is carried as the model's word for
8
- * "install from" though no wire permission names it yet. `team#member` on
9
- * `viewer` is the Enterprise team grant, which no open-source tuple ever
10
- * names.
11
- *
12
- * The members a plugin materialises are NOT reached through this type:
13
- * each is an ordinary skill, MCP server, agent or workflow with its own
14
- * tuples, written by its own chain as the installing caller.
15
- */
16
- import { PluginSchema } from "@stigmer/protos/ai/stigmer/agentic/plugin/v1/api_pb";
17
- import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
18
- import { computed, declareKind, direct, from, objectOf, union, usersetOf, } from "./rewrite.js";
19
- export const pluginDeclaration = declareKind({
20
- kind: ApiResourceKind.plugin,
21
- schema: PluginSchema,
22
- source: "fga/model/agentic/plugin.fga",
23
- relations: [
24
- ["organization", direct(objectOf("organization"))],
25
- [
26
- "owner",
27
- union(direct(objectOf("identity_account")), from("admin", "organization")),
28
- ],
29
- [
30
- "platform_viewer",
31
- direct(usersetOf("identity_provider", "platform_user")),
32
- ],
33
- [
34
- "viewer",
35
- union(direct(objectOf("identity_account"), usersetOf("organization", "member"), usersetOf("organization", "viewer"), usersetOf("team", "member")), computed("owner"), computed("platform_viewer")),
36
- ],
37
- ["can_view", computed("viewer")],
38
- ["can_edit", computed("owner")],
39
- ["can_delete", computed("owner")],
40
- ["can_use", computed("viewer")],
41
- ["can_grant_access", computed("owner")],
42
- ["can_view_access", computed("viewer")],
43
- ],
44
- });
45
- //# sourceMappingURL=plugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/authorization/model/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO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;KACxC;CACF,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const scheduleDeclaration: import("./rewrite.js").KindDeclaration;
2
- //# sourceMappingURL=schedule.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schedule.d.ts","sourceRoot":"","sources":["../../../src/authorization/model/schedule.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,mBAAmB,wCA0B9B,CAAC"}
@@ -1,34 +0,0 @@
1
- /**
2
- * Transcript of fga/model/agentic/schedule.fga — a scheduled run's
3
- * definition, admin-owned like a blueprint and viewable by its owners and
4
- * explicit grantees. The sessions its fires create name it back through
5
- * `session#schedule`, a link the cloud writes and this edition does not
6
- * (session.ts); the schedule's own relations are unaffected. An explicit
7
- * grant may name an Enterprise team (`team#member`), which no open-source
8
- * tuple ever does.
9
- */
10
- import { ScheduleSchema } from "@stigmer/protos/ai/stigmer/agentic/schedule/v1/api_pb";
11
- import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
12
- import { computed, declareKind, direct, from, objectOf, union, usersetOf, } from "./rewrite.js";
13
- export const scheduleDeclaration = declareKind({
14
- kind: ApiResourceKind.schedule,
15
- schema: ScheduleSchema,
16
- source: "fga/model/agentic/schedule.fga",
17
- relations: [
18
- ["organization", direct(objectOf("organization"))],
19
- [
20
- "owner",
21
- union(direct(objectOf("identity_account")), from("admin", "organization")),
22
- ],
23
- [
24
- "viewer",
25
- union(direct(objectOf("identity_account"), usersetOf("team", "member")), computed("owner")),
26
- ],
27
- ["can_view", computed("viewer")],
28
- ["can_edit", computed("owner")],
29
- ["can_delete", computed("owner")],
30
- ["can_grant_access", computed("owner")],
31
- ["can_view_access", computed("viewer")],
32
- ],
33
- });
34
- //# sourceMappingURL=schedule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../../src/authorization/model/schedule.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,uDAAuD,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AAEtH,OAAO,EACL,QAAQ,EACR,WAAW,EACX,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,SAAS,GACV,MAAM,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC;IAC7C,IAAI,EAAE,eAAe,CAAC,QAAQ;IAC9B,MAAM,EAAE,cAAc;IACtB,MAAM,EAAE,gCAAgC;IACxC,SAAS,EAAE;QACT,CAAC,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;QAClD;YACE,OAAO;YACP,KAAK,CACH,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,EACpC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAC9B;SACF;QACD;YACE,QAAQ;YACR,KAAK,CACH,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,EACjE,QAAQ,CAAC,OAAO,CAAC,CAClB;SACF;QACD,CAAC,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC/B,CAAC,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QACjC,CAAC,kBAAkB,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QACvC,CAAC,iBAAiB,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;KACxC;CACF,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const sessionDeclaration: import("./rewrite.js").KindDeclaration;
2
- //# sourceMappingURL=session.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/authorization/model/session.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,kBAAkB,wCAyB7B,CAAC"}
@@ -1,38 +0,0 @@
1
- /**
2
- * Transcript of fga/model/agentic/session.fga — a personal resource: the
3
- * owner and explicit grantees, and NO admin arm anywhere ("private
4
- * conversations that admins have no business accessing", the file's own
5
- * words). Three parent links beside the organization: `agent_instance`,
6
- * `channel` and `schedule`. None is a `kind_meta` fact — the cloud's
7
- * channel and schedule lanes write them — so on this edition the
8
- * derivation produces no such tuple and `viewer from channel` / `viewer
9
- * from schedule` resolve to nobody; the lines stand in the transcript
10
- * because they are the model's, and a scheduled run reaches its creator
11
- * through the fire caller's stamp on the session instead.
12
- */
13
- import { SessionSchema } from "@stigmer/protos/ai/stigmer/agentic/session/v1/api_pb";
14
- import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
15
- import { computed, declareKind, direct, from, objectOf, union, } from "./rewrite.js";
16
- export const sessionDeclaration = declareKind({
17
- kind: ApiResourceKind.session,
18
- schema: SessionSchema,
19
- source: "fga/model/agentic/session.fga",
20
- relations: [
21
- ["organization", direct(objectOf("organization"))],
22
- ["agent_instance", direct(objectOf("agent_instance"))],
23
- ["channel", direct(objectOf("agent_channel"))],
24
- ["schedule", direct(objectOf("schedule"))],
25
- ["owner", direct(objectOf("identity_account"))],
26
- ["viewer", union(direct(objectOf("identity_account")), computed("owner"))],
27
- [
28
- "can_view",
29
- union(computed("viewer"), from("viewer", "channel"), from("viewer", "schedule")),
30
- ],
31
- ["can_edit", computed("owner")],
32
- ["can_delete", computed("owner")],
33
- ["can_create_execution_in", computed("viewer")],
34
- ["can_grant_access", computed("owner")],
35
- ["can_view_access", computed("viewer")],
36
- ],
37
- });
38
- //# sourceMappingURL=session.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"session.js","sourceRoot":"","sources":["../../../src/authorization/model/session.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,sDAAsD,CA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E,QAAQ,CAAC,QAAQ,CAAC,CAAC;KACxC;CACF,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const skillDeclaration: import("./rewrite.js").KindDeclaration;
2
- //# sourceMappingURL=skill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../../src/authorization/model/skill.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,gBAAgB,wCAsC3B,CAAC"}
@@ -1,39 +0,0 @@
1
- /**
2
- * Transcript of fga/model/agentic/skill.fga — a blueprint whose verbs are
3
- * `can_use` and `can_clone` rather than `can_execute`. Only `can_view`,
4
- * `can_edit`, `can_delete`, `can_grant_access` and `can_view_access` are
5
- * in the wire's IamPermission vocabulary; the others are the model's and
6
- * are carried so the transcript is the file. `team#member` on `viewer` is
7
- * the Enterprise team grant, which no open-source tuple ever names.
8
- */
9
- import { SkillSchema } from "@stigmer/protos/ai/stigmer/agentic/skill/v1/api_pb";
10
- import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
11
- import { computed, declareKind, direct, from, objectOf, union, usersetOf, } from "./rewrite.js";
12
- export const skillDeclaration = declareKind({
13
- kind: ApiResourceKind.skill,
14
- schema: SkillSchema,
15
- source: "fga/model/agentic/skill.fga",
16
- relations: [
17
- ["organization", direct(objectOf("organization"))],
18
- [
19
- "owner",
20
- union(direct(objectOf("identity_account")), from("admin", "organization")),
21
- ],
22
- [
23
- "platform_viewer",
24
- direct(usersetOf("identity_provider", "platform_user")),
25
- ],
26
- [
27
- "viewer",
28
- union(direct(objectOf("identity_account"), usersetOf("organization", "member"), usersetOf("organization", "viewer"), usersetOf("team", "member")), computed("owner"), computed("platform_viewer")),
29
- ],
30
- ["can_view", computed("viewer")],
31
- ["can_edit", computed("owner")],
32
- ["can_delete", computed("owner")],
33
- ["can_use", computed("viewer")],
34
- ["can_clone", computed("viewer")],
35
- ["can_grant_access", computed("owner")],
36
- ["can_view_access", computed("viewer")],
37
- ],
38
- });
39
- //# sourceMappingURL=skill.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skill.js","sourceRoot":"","sources":["../../../src/authorization/model/skill.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AAEtH,OAAO,EACL,QAAQ,EACR,WAAW,EACX,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,SAAS,GACV,MAAM,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CAAC;IAC1C,IAAI,EAAE,eAAe,CAAC,KAAK;IAC3B,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,6BAA6B;IACrC,SAAS,EAAE;QACT,CAAC,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;QAClD;YACE,OAAO;YACP,KAAK,CACH,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,EACpC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAC9B;SACF;QACD;YACE,iBAAiB;YACjB,MAAM,CAAC,SAAS,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC;SACxD;QACD;YACE,QAAQ;YACR,KAAK,CACH,MAAM,CACJ,QAAQ,CAAC,kBAAkB,CAAC,EAC5B,SAAS,CAAC,cAAc,EAAE,QAAQ,CAAC,EACnC,SAAS,CAAC,cAAc,EAAE,QAAQ,CAAC,EACnC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAC5B,EACD,QAAQ,CAAC,OAAO,CAAC,EACjB,QAAQ,CAAC,iBAAiB,CAAC,CAC5B;SACF;QACD,CAAC,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC/B,CAAC,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QACjC,CAAC,SAAS,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC/B,CAAC,WAAW,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACjC,CAAC,kBAAkB,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QACvC,CAAC,iBAAiB,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;KACxC;CACF,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const workflowDeclaration: import("./rewrite.js").KindDeclaration;
2
- //# sourceMappingURL=workflow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../src/authorization/model/workflow.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,mBAAmB,wCAsC9B,CAAC"}
@@ -1,39 +0,0 @@
1
- /**
2
- * Transcript of fga/model/agentic/workflow.fga — the agent's shape
3
- * without `can_create_instance` (a workflow instance is created through
4
- * the workflow-instance lane, gated by the organization). Kept as its own
5
- * transcript, not a shared "blueprint" helper, so the file-by-file drift
6
- * compare sees exactly this file's lines. `team#member` on `viewer` is the
7
- * Enterprise team grant, which no open-source tuple ever names.
8
- */
9
- import { WorkflowSchema } from "@stigmer/protos/ai/stigmer/agentic/workflow/v1/api_pb";
10
- import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
11
- import { computed, declareKind, direct, from, objectOf, union, usersetOf, } from "./rewrite.js";
12
- export const workflowDeclaration = declareKind({
13
- kind: ApiResourceKind.workflow,
14
- schema: WorkflowSchema,
15
- source: "fga/model/agentic/workflow.fga",
16
- relations: [
17
- ["organization", direct(objectOf("organization"))],
18
- [
19
- "owner",
20
- union(direct(objectOf("identity_account")), from("admin", "organization")),
21
- ],
22
- [
23
- "platform_viewer",
24
- direct(usersetOf("identity_provider", "platform_user")),
25
- ],
26
- [
27
- "viewer",
28
- union(direct(objectOf("identity_account"), usersetOf("organization", "member"), usersetOf("organization", "viewer"), usersetOf("team", "member")), computed("owner"), computed("platform_viewer")),
29
- ],
30
- ["can_view", computed("viewer")],
31
- ["can_edit", computed("owner")],
32
- ["can_delete", computed("owner")],
33
- ["can_execute", computed("viewer")],
34
- ["can_clone", computed("viewer")],
35
- ["can_grant_access", computed("owner")],
36
- ["can_view_access", computed("viewer")],
37
- ],
38
- });
39
- //# sourceMappingURL=workflow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../src/authorization/model/workflow.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,uDAAuD,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AAEtH,OAAO,EACL,QAAQ,EACR,WAAW,EACX,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,SAAS,GACV,MAAM,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC;IAC7C,IAAI,EAAE,eAAe,CAAC,QAAQ;IAC9B,MAAM,EAAE,cAAc;IACtB,MAAM,EAAE,gCAAgC;IACxC,SAAS,EAAE;QACT,CAAC,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;QAClD;YACE,OAAO;YACP,KAAK,CACH,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,EACpC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAC9B;SACF;QACD;YACE,iBAAiB;YACjB,MAAM,CAAC,SAAS,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC;SACxD;QACD;YACE,QAAQ;YACR,KAAK,CACH,MAAM,CACJ,QAAQ,CAAC,kBAAkB,CAAC,EAC5B,SAAS,CAAC,cAAc,EAAE,QAAQ,CAAC,EACnC,SAAS,CAAC,cAAc,EAAE,QAAQ,CAAC,EACnC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAC5B,EACD,QAAQ,CAAC,OAAO,CAAC,EACjB,QAAQ,CAAC,iBAAiB,CAAC,CAC5B;SACF;QACD,CAAC,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC/B,CAAC,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QACjC,CAAC,aAAa,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACnC,CAAC,WAAW,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACjC,CAAC,kBAAkB,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QACvC,CAAC,iBAAiB,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;KACxC;CACF,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const workflowExecutionDeclaration: import("./rewrite.js").KindDeclaration;
2
- //# sourceMappingURL=workflow_execution.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflow_execution.d.ts","sourceRoot":"","sources":["../../../src/authorization/model/workflow_execution.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,4BAA4B,wCAqBvC,CAAC"}
@@ -1,33 +0,0 @@
1
- /**
2
- * Transcript of fga/model/agentic/workflow_execution.fga — a run with an
3
- * owner of its own (the person who triggered it; `kind_meta` attribution
4
- * DIRECT, unlike agent_execution's inherited owner) and two ways in for
5
- * others: an explicit per-run grant, or the instance's opt-in run
6
- * audience through `execution_viewer from workflow_instance`, standing on
7
- * the `workflow_instance` link the derivation writes from
8
- * `spec.workflow_instance_id`. No `can_delete`: run history outlives its
9
- * instance by design. The per-run grant may name an Enterprise team
10
- * (`team#member`), which no open-source tuple ever does.
11
- */
12
- import { WorkflowExecutionSchema } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/api_pb";
13
- import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
14
- import { computed, declareKind, direct, from, objectOf, union, usersetOf, } from "./rewrite.js";
15
- export const workflowExecutionDeclaration = declareKind({
16
- kind: ApiResourceKind.workflow_execution,
17
- schema: WorkflowExecutionSchema,
18
- source: "fga/model/agentic/workflow_execution.fga",
19
- relations: [
20
- ["organization", direct(objectOf("organization"))],
21
- ["workflow_instance", direct(objectOf("workflow_instance"))],
22
- ["owner", direct(objectOf("identity_account"))],
23
- [
24
- "viewer",
25
- union(direct(objectOf("identity_account"), usersetOf("team", "member")), computed("owner"), from("execution_viewer", "workflow_instance")),
26
- ],
27
- ["can_view", computed("viewer")],
28
- ["can_edit", computed("owner")],
29
- ["can_grant_access", computed("owner")],
30
- ["can_view_access", computed("viewer")],
31
- ],
32
- });
33
- //# sourceMappingURL=workflow_execution.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflow_execution.js","sourceRoot":"","sources":["../../../src/authorization/model/workflow_execution.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,gEAAgE,CAAC;AACzG,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AAEtH,OAAO,EACL,QAAQ,EACR,WAAW,EACX,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,SAAS,GACV,MAAM,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,4BAA4B,GAAG,WAAW,CAAC;IACtD,IAAI,EAAE,eAAe,CAAC,kBAAkB;IACxC,MAAM,EAAE,uBAAuB;IAC/B,MAAM,EAAE,0CAA0C;IAClD,SAAS,EAAE;QACT,CAAC,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;QAClD,CAAC,mBAAmB,EAAE,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC,CAAC;QAC5D,CAAC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAAC;QAC/C;YACE,QAAQ;YACR,KAAK,CACH,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,EACjE,QAAQ,CAAC,OAAO,CAAC,EACjB,IAAI,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,CAC9C;SACF;QACD,CAAC,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC/B,CAAC,kBAAkB,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QACvC,CAAC,iBAAiB,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;KACxC;CACF,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const workflowInstanceDeclaration: import("./rewrite.js").KindDeclaration;
2
- //# sourceMappingURL=workflow_instance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflow_instance.d.ts","sourceRoot":"","sources":["../../../src/authorization/model/workflow_instance.ts"],"names":[],"mappings":"AA2EA,eAAO,MAAM,2BAA2B,wCAiDtC,CAAC"}
@@ -1,96 +0,0 @@
1
- /**
2
- * Transcript of fga/model/agentic/workflow_instance.fga — the agent
3
- * instance's shape plus one relation of its own: `execution_viewer`, the
4
- * opt-in audience for the instance's RUN history, kept apart from
5
- * `viewer` so making an instance org-runnable never exposes other
6
- * people's run inputs and outputs. Consumed by workflow_execution through
7
- * `execution_viewer from workflow_instance`.
8
- *
9
- * `execution_viewer` is derived here from `spec.execution_visibility`
10
- * (the second rule `kind_meta` cannot express): `organization` derives
11
- * `#execution_viewer@organization:<org>#viewer` — the organization's full
12
- * read audience, the shape the file's comment names and the cloud's own
13
- * store test writes, with `#member` the legacy shape the line still
14
- * admits — and `private` or unset derives nothing, so each run stays its
15
- * triggerer's. The cloud has no writer for this tuple today; this
16
- * edition enforces the field as the contract states it.
17
- *
18
- * `team#member` on `viewer` is the Enterprise team grant, which no
19
- * open-source tuple ever names; `execution_viewer` is not a grantable role
20
- * and admits no team.
21
- */
22
- import { isMessage } from "@bufbuild/protobuf";
23
- import { WorkflowSchema } from "@stigmer/protos/ai/stigmer/agentic/workflow/v1/api_pb";
24
- import { WorkflowInstanceSchema } from "@stigmer/protos/ai/stigmer/agentic/workflowinstance/v1/api_pb";
25
- import { WorkflowExecutionVisibility } from "@stigmer/protos/ai/stigmer/agentic/workflowinstance/v1/spec_pb";
26
- import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
27
- import { defaultOfBlueprint } from "./default-of.js";
28
- import { computed, declareKind, direct, from, objectOf, union, usersetOf, } from "./rewrite.js";
29
- const executionViewer = (object, row) => {
30
- if (!isMessage(row, WorkflowInstanceSchema)) {
31
- return Promise.resolve([]);
32
- }
33
- const level = row.spec?.executionVisibility ?? WorkflowExecutionVisibility.unspecified;
34
- switch (level) {
35
- case WorkflowExecutionVisibility.organization: {
36
- const org = row.metadata?.org ?? "";
37
- return Promise.resolve(org === ""
38
- ? []
39
- : [
40
- {
41
- object,
42
- relation: "execution_viewer",
43
- subject: {
44
- form: "userset",
45
- object: { type: "organization", id: org },
46
- relation: "viewer",
47
- },
48
- },
49
- ]);
50
- }
51
- case WorkflowExecutionVisibility.private:
52
- case WorkflowExecutionVisibility.unspecified:
53
- return Promise.resolve([]);
54
- default: {
55
- const exhaustive = level;
56
- throw new Error(`unknown execution visibility: ${String(exhaustive)}`);
57
- }
58
- }
59
- };
60
- export const workflowInstanceDeclaration = declareKind({
61
- kind: ApiResourceKind.workflow_instance,
62
- schema: WorkflowInstanceSchema,
63
- source: "fga/model/agentic/workflow_instance.fga",
64
- relations: [
65
- ["organization", direct(objectOf("organization"))],
66
- ["workflow", direct(objectOf("workflow"))],
67
- ["default_of", direct(objectOf("workflow"))],
68
- ["owner", direct(objectOf("identity_account"))],
69
- [
70
- "viewer",
71
- union(direct(objectOf("identity_account"), usersetOf("organization", "member"), usersetOf("organization", "viewer"), usersetOf("team", "member")), computed("owner"), from("viewer", "default_of")),
72
- ],
73
- [
74
- "execution_viewer",
75
- direct(objectOf("identity_account"), usersetOf("organization", "member"), usersetOf("organization", "viewer")),
76
- ],
77
- ["can_view", computed("viewer")],
78
- ["can_execute", computed("can_view")],
79
- ["can_edit", computed("owner")],
80
- ["can_delete", computed("owner")],
81
- ["can_grant_access", computed("owner")],
82
- ["can_view_access", computed("viewer")],
83
- ],
84
- derived: [
85
- [
86
- "default_of",
87
- defaultOfBlueprint({
88
- kind: ApiResourceKind.workflow,
89
- schema: WorkflowSchema,
90
- defaultInstanceIdOf: (workflow) => workflow.status?.defaultInstanceId ?? "",
91
- }),
92
- ],
93
- ["execution_viewer", executionViewer],
94
- ],
95
- });
96
- //# sourceMappingURL=workflow_instance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflow_instance.js","sourceRoot":"","sources":["../../../src/authorization/model/workflow_instance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAE,MAAM,uDAAuD,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,+DAA+D,CAAC;AACvG,OAAO,EAAE,2BAA2B,EAAE,MAAM,gEAAgE,CAAC;AAC7G,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AAEtH,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,EACL,QAAQ,EACR,WAAW,EACX,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,SAAS,GACV,MAAM,cAAc,CAAC;AAEtB,MAAM,eAAe,GAAoB,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE;IACvD,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,sBAAsB,CAAC,EAAE,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AAC,kBAAkB,EAAE,eAAe,CAAC;KACtC;CACF,CAAC,CAAC"}
@@ -1,62 +0,0 @@
1
- import type { Model } from "./model/index.js";
2
- export interface StoreTestTuple {
3
- readonly user: string;
4
- readonly relation: string;
5
- readonly object: string;
6
- }
7
- export interface StoreTestCheck {
8
- readonly user: string;
9
- readonly object: string;
10
- readonly assertions: Readonly<Record<string, boolean>>;
11
- }
12
- export interface StoreTestListObjects {
13
- readonly user: string;
14
- readonly type: string;
15
- readonly assertions: Readonly<Record<string, ReadonlyArray<string>>>;
16
- }
17
- export interface StoreTest {
18
- readonly name: string;
19
- readonly check: ReadonlyArray<StoreTestCheck>;
20
- readonly list_objects: ReadonlyArray<StoreTestListObjects>;
21
- }
22
- export interface StoreTestDocument {
23
- readonly name: string;
24
- readonly tuples: ReadonlyArray<StoreTestTuple>;
25
- readonly tests: ReadonlyArray<StoreTest>;
26
- }
27
- /**
28
- * Parses a loaded YAML value into a document, refusing anything the
29
- * format the cloud's files use does not carry (`sourceName` names the
30
- * file in every message).
31
- */
32
- export declare function parseStoreTestDocument(value: unknown, sourceName: string): StoreTestDocument;
33
- export interface StoreTestCase {
34
- /** `<document> :: <test name>` — the framework prints it as the test name. */
35
- readonly name: string;
36
- run(): Promise<void>;
37
- }
38
- export type StoreTestSkipReason = "undeclared-kind" | "list-objects" | "undeclared-subject-type";
39
- /** One assertion (or assertion group) the kit did not run, in the document's words. */
40
- export interface StoreTestSkip {
41
- readonly document: string;
42
- readonly test: string;
43
- readonly subject: string;
44
- /** The check's object, or `<type>` for a list_objects assertion. */
45
- readonly object: string;
46
- /** The one relation, for a skip decided per assertion; absent for a group. */
47
- readonly relation?: string;
48
- readonly reason: StoreTestSkipReason;
49
- /** For `undeclared-subject-type`: the types the walk read that the model does not declare, sorted. */
50
- readonly types?: ReadonlyArray<string>;
51
- }
52
- export interface StoreTestKit {
53
- readonly cases: ReadonlyArray<StoreTestCase>;
54
- /** Complete once every case has run (the module header). */
55
- readonly skipped: ReadonlyArray<StoreTestSkip>;
56
- }
57
- /**
58
- * The document's tests as runnable cases over `model`, plus every
59
- * assertion group the kit does not run.
60
- */
61
- export declare function storeTestCases(document: StoreTestDocument, model: Model): StoreTestKit;
62
- //# sourceMappingURL=store-test-kit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"store-test-kit.d.ts","sourceRoot":"","sources":["../../src/authorization/store-test-kit.ts"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAa9C,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACxD;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;CACtE;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC9C,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;CAC5D;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,aAAa,CA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