@xemahq/contracts 0.77.0 → 0.78.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 (128) hide show
  1. package/README.md +1 -1
  2. package/dist/.source-stamp.json +2 -2
  3. package/dist/authorization-module/index.d.ts +2 -0
  4. package/dist/authorization-module/index.d.ts.map +1 -1
  5. package/dist/authorization-module/index.js +2 -0
  6. package/dist/authorization-module/index.js.map +1 -1
  7. package/dist/authorization-module/lib/authorization-composition-error.d.ts +11 -0
  8. package/dist/authorization-module/lib/authorization-composition-error.d.ts.map +1 -1
  9. package/dist/authorization-module/lib/authorization-composition-error.js +16 -1
  10. package/dist/authorization-module/lib/authorization-composition-error.js.map +1 -1
  11. package/dist/authorization-module/lib/authorization-interface-requirements.d.ts +5 -1
  12. package/dist/authorization-module/lib/authorization-interface-requirements.d.ts.map +1 -1
  13. package/dist/authorization-module/lib/authorization-interface-requirements.js +1 -0
  14. package/dist/authorization-module/lib/authorization-interface-requirements.js.map +1 -1
  15. package/dist/authorization-module/lib/authorization-module-contribution.d.ts +24 -0
  16. package/dist/authorization-module/lib/authorization-module-contribution.d.ts.map +1 -1
  17. package/dist/authorization-module/lib/authorization-module-contribution.js +1 -0
  18. package/dist/authorization-module/lib/authorization-module-contribution.js.map +1 -1
  19. package/dist/authorization-module/lib/authorization-module-envelope.d.ts +11 -0
  20. package/dist/authorization-module/lib/authorization-module-envelope.d.ts.map +1 -1
  21. package/dist/authorization-module/lib/authorization-module-envelope.js +4 -0
  22. package/dist/authorization-module/lib/authorization-module-envelope.js.map +1 -1
  23. package/dist/authorization-module/lib/delegation-origination.d.ts +26 -0
  24. package/dist/authorization-module/lib/delegation-origination.d.ts.map +1 -0
  25. package/dist/authorization-module/lib/delegation-origination.js +43 -0
  26. package/dist/authorization-module/lib/delegation-origination.js.map +1 -0
  27. package/dist/authorization-module/lib/delegation-wildcard-ceiling.d.ts +6 -0
  28. package/dist/authorization-module/lib/delegation-wildcard-ceiling.d.ts.map +1 -0
  29. package/dist/authorization-module/lib/delegation-wildcard-ceiling.js +17 -0
  30. package/dist/authorization-module/lib/delegation-wildcard-ceiling.js.map +1 -0
  31. package/dist/authorization-module/lib/platform-authorization-modules.d.ts.map +1 -1
  32. package/dist/authorization-module/lib/platform-authorization-modules.js +10 -11
  33. package/dist/authorization-module/lib/platform-authorization-modules.js.map +1 -1
  34. package/dist/authorization-module/platform/xema_core.fga +76 -45
  35. package/dist/authorization-module/platform/xema_core.fga.yaml +522 -97
  36. package/dist/authorization-module/platform/xema_sharing.fga +48 -33
  37. package/dist/authorization-module/platform/xema_sharing.fga.yaml +555 -2
  38. package/dist/authorization-module/server/authorization-interface-conformance.d.ts +1 -0
  39. package/dist/authorization-module/server/authorization-interface-conformance.d.ts.map +1 -1
  40. package/dist/authorization-module/server/authorization-interface-conformance.js +13 -1
  41. package/dist/authorization-module/server/authorization-interface-conformance.js.map +1 -1
  42. package/dist/authorization-module/server/compose-authorization-base.d.ts +2 -0
  43. package/dist/authorization-module/server/compose-authorization-base.d.ts.map +1 -1
  44. package/dist/authorization-module/server/compose-authorization-base.js +15 -2
  45. package/dist/authorization-module/server/compose-authorization-base.js.map +1 -1
  46. package/dist/authorization-module/server/delegation-origination-conformance.d.ts +15 -0
  47. package/dist/authorization-module/server/delegation-origination-conformance.d.ts.map +1 -0
  48. package/dist/authorization-module/server/delegation-origination-conformance.js +92 -0
  49. package/dist/authorization-module/server/delegation-origination-conformance.js.map +1 -0
  50. package/dist/authorization-module/server/userset-subject-types.d.ts +3 -0
  51. package/dist/authorization-module/server/userset-subject-types.d.ts.map +1 -0
  52. package/dist/authorization-module/server/userset-subject-types.js +65 -0
  53. package/dist/authorization-module/server/userset-subject-types.js.map +1 -0
  54. package/dist/authzen/index.d.ts +1 -0
  55. package/dist/authzen/index.d.ts.map +1 -1
  56. package/dist/authzen/index.js +1 -0
  57. package/dist/authzen/index.js.map +1 -1
  58. package/dist/authzen/lib/durable-delegation-model.d.ts +33 -11
  59. package/dist/authzen/lib/durable-delegation-model.d.ts.map +1 -1
  60. package/dist/authzen/lib/durable-delegation-model.js +54 -16
  61. package/dist/authzen/lib/durable-delegation-model.js.map +1 -1
  62. package/dist/authzen/lib/xema-membership.d.ts +6 -0
  63. package/dist/authzen/lib/xema-membership.d.ts.map +1 -0
  64. package/dist/authzen/lib/xema-membership.js +16 -0
  65. package/dist/authzen/lib/xema-membership.js.map +1 -0
  66. package/dist/deployment/lib/resolved-deployment.d.ts +5 -2
  67. package/dist/deployment/lib/resolved-deployment.d.ts.map +1 -1
  68. package/dist/deployment/lib/resolved-deployment.js +6 -3
  69. package/dist/deployment/lib/resolved-deployment.js.map +1 -1
  70. package/dist/distribution/index.d.ts +2 -0
  71. package/dist/distribution/index.d.ts.map +1 -1
  72. package/dist/distribution/index.js +2 -0
  73. package/dist/distribution/index.js.map +1 -1
  74. package/dist/distribution/lib/authorization-lock.d.ts +16 -0
  75. package/dist/distribution/lib/authorization-lock.d.ts.map +1 -0
  76. package/dist/distribution/lib/authorization-lock.js +34 -0
  77. package/dist/distribution/lib/authorization-lock.js.map +1 -0
  78. package/dist/distribution/lib/customer-edition-definition.d.ts +10 -1
  79. package/dist/distribution/lib/customer-edition-definition.d.ts.map +1 -1
  80. package/dist/distribution/lib/customer-edition-definition.js +53 -2
  81. package/dist/distribution/lib/customer-edition-definition.js.map +1 -1
  82. package/dist/distribution/lib/distribution-lock.d.ts +2 -1
  83. package/dist/distribution/lib/distribution-lock.d.ts.map +1 -1
  84. package/dist/distribution/lib/distribution-lock.js +20 -0
  85. package/dist/distribution/lib/distribution-lock.js.map +1 -1
  86. package/dist/distribution/lib/image-producer-evidence.d.ts +86 -14
  87. package/dist/distribution/lib/image-producer-evidence.d.ts.map +1 -1
  88. package/dist/distribution/lib/image-producer-evidence.js +72 -12
  89. package/dist/distribution/lib/image-producer-evidence.js.map +1 -1
  90. package/dist/distribution/lib/kernel-contract-authority.d.ts +1 -0
  91. package/dist/distribution/lib/kernel-contract-authority.d.ts.map +1 -1
  92. package/dist/distribution/lib/kernel-contract-authority.js +6 -2
  93. package/dist/distribution/lib/kernel-contract-authority.js.map +1 -1
  94. package/dist/distribution/lib/kernel-contract-source-paths.d.ts +1 -1
  95. package/dist/distribution/lib/kernel-contract-source-paths.d.ts.map +1 -1
  96. package/dist/distribution/lib/kernel-contract-source-paths.js +8 -0
  97. package/dist/distribution/lib/kernel-contract-source-paths.js.map +1 -1
  98. package/dist/distribution/lib/resolve-unsplit-deployment.d.ts +2 -0
  99. package/dist/distribution/lib/resolve-unsplit-deployment.d.ts.map +1 -1
  100. package/dist/distribution/lib/resolve-unsplit-deployment.js +14 -0
  101. package/dist/distribution/lib/resolve-unsplit-deployment.js.map +1 -1
  102. package/dist/distribution/lib/runtime-image-source-index.d.ts +18 -1
  103. package/dist/distribution/lib/runtime-image-source-index.d.ts.map +1 -1
  104. package/dist/distribution/lib/runtime-image-source-index.js +38 -2
  105. package/dist/distribution/lib/runtime-image-source-index.js.map +1 -1
  106. package/dist/distribution/lib/verify-delivered-locks.d.ts +41 -0
  107. package/dist/distribution/lib/verify-delivered-locks.d.ts.map +1 -0
  108. package/dist/distribution/lib/verify-delivered-locks.js +76 -0
  109. package/dist/distribution/lib/verify-delivered-locks.js.map +1 -0
  110. package/dist/distribution/lib/verify-resolved-deployment.d.ts +1 -0
  111. package/dist/distribution/lib/verify-resolved-deployment.d.ts.map +1 -1
  112. package/dist/distribution/lib/verify-resolved-deployment.js +8 -0
  113. package/dist/distribution/lib/verify-resolved-deployment.js.map +1 -1
  114. package/dist/distribution/server/index.d.ts +8 -0
  115. package/dist/distribution/server/index.d.ts.map +1 -0
  116. package/dist/distribution/server/index.js +34 -0
  117. package/dist/distribution/server/index.js.map +1 -0
  118. package/dist/edition-protocol/edition-contract.schema.json +1 -1
  119. package/dist/edition-protocol/edition-protocol.json +1 -1
  120. package/dist/edition-protocol/lib/edition-protocol.d.ts +2 -1
  121. package/dist/edition-protocol/lib/edition-protocol.d.ts.map +1 -1
  122. package/dist/edition-protocol/lib/edition-protocol.js +4 -2
  123. package/dist/edition-protocol/lib/edition-protocol.js.map +1 -1
  124. package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.d.ts +2 -0
  125. package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.d.ts.map +1 -1
  126. package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.js +66 -1
  127. package/dist/resolved-deployment-fixture/lib/resolved-deployment-fixture.js.map +1 -1
  128. package/package.json +5 -2
@@ -13,6 +13,21 @@ module xema_sharing
13
13
  # explicit-share — named manager / editor / viewer tuples.
14
14
  # Nothing short-circuits: org-shared is a tuple, read and revocable.
15
15
  #
16
+ # A HUMAN SHARE'S HOLDER IS A MEMBERSHIP INSTANCE, not a user: every share
17
+ # level admits `membership#holder` (and `membership#holder with
18
+ # xema_share_not_expired`) INSTEAD OF `user`. A share bound to a membership
19
+ # ends with that membership and never revives on rejoin (see `membership` in
20
+ # xema_core). `org_viewer` is not a share level and is unchanged.
21
+ #
22
+ # AN ORG-SCOPED OWNER IS A MEMBERSHIP INSTANCE TOO: on every org-scoped kind
23
+ # (document, connector-migration, biome-lifecycle-approval, capability-grant,
24
+ # output-route, and a professional mailbox) `owner` admits `membership#holder`
25
+ # INSTEAD OF `user`, so leaving ends the ownership and a rejoin (a new
26
+ # membership id) never revives it; a demotion keeps the id and so the owner.
27
+ # Personal-space owners stay `user`: a personal mailbox (`xema_mailbox` admits
28
+ # both subject types, the writer picks by owner scope), a personal portal and
29
+ # a user memory. `xema_store-listing` is system-scoped, not org-scoped.
30
+ #
16
31
  # A share may EXPIRE: `xema_share_not_expired` is evaluated against
17
32
  # `current_time`, which the PDP supplies on every check — no sweeper.
18
33
  #
@@ -31,10 +46,10 @@ module xema_sharing
31
46
 
32
47
  type xema_document
33
48
  relations
34
- define owner: [user, agent, service, external-subject, team#member, role#assignee]
35
- define manager: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner
36
- define editor: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
37
- define viewer: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
49
+ define owner: [membership#holder, agent, service, external-subject, team#member, role#assignee]
50
+ define manager: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner
51
+ define editor: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
52
+ define viewer: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
38
53
  define org_viewer: [org#member]
39
54
  define can_manage: manager
40
55
  define can_edit: editor
@@ -43,10 +58,10 @@ type xema_document
43
58
 
44
59
  type xema_mailbox
45
60
  relations
46
- define owner: [user, agent, service, external-subject, team#member, role#assignee]
47
- define manager: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner
48
- define editor: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
49
- define viewer: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
61
+ define owner: [user, membership#holder, agent, service, external-subject, team#member, role#assignee]
62
+ define manager: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner
63
+ define editor: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
64
+ define viewer: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
50
65
  define org_viewer: [org#member]
51
66
  define can_manage: manager
52
67
  define can_edit: editor
@@ -57,9 +72,9 @@ type xema_portal
57
72
  relations
58
73
  define parent: [org]
59
74
  define owner: [user, agent, service, external-subject, team#member, role#assignee]
60
- define manager: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner or xema_admin from parent
61
- define editor: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
62
- define viewer: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
75
+ define manager: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner or xema_admin from parent
76
+ define editor: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
77
+ define viewer: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
63
78
  define org_viewer: [org#member]
64
79
  define can_manage: manager
65
80
  define can_edit: editor
@@ -68,10 +83,10 @@ type xema_portal
68
83
 
69
84
  type xema_connector-migration
70
85
  relations
71
- define owner: [user, agent, service, external-subject, team#member, role#assignee]
72
- define manager: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner
73
- define editor: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
74
- define viewer: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
86
+ define owner: [membership#holder, agent, service, external-subject, team#member, role#assignee]
87
+ define manager: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner
88
+ define editor: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
89
+ define viewer: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
75
90
  define org_viewer: [org#member]
76
91
  define can_manage: manager
77
92
  define can_edit: editor
@@ -81,9 +96,9 @@ type xema_connector-migration
81
96
  type xema_store-listing
82
97
  relations
83
98
  define owner: [user, agent, service, external-subject, team#member, role#assignee]
84
- define manager: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner
85
- define editor: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
86
- define viewer: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
99
+ define manager: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner
100
+ define editor: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
101
+ define viewer: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
87
102
  define org_viewer: [org#member]
88
103
  define can_manage: manager
89
104
  define can_edit: editor
@@ -92,10 +107,10 @@ type xema_store-listing
92
107
 
93
108
  type xema_biome-lifecycle-approval
94
109
  relations
95
- define owner: [user, agent, service, external-subject, team#member, role#assignee]
96
- define manager: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner
97
- define editor: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
98
- define viewer: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
110
+ define owner: [membership#holder, agent, service, external-subject, team#member, role#assignee]
111
+ define manager: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner
112
+ define editor: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
113
+ define viewer: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
99
114
  define org_viewer: [org#member]
100
115
  define can_manage: manager
101
116
  define can_edit: editor
@@ -105,9 +120,9 @@ type xema_biome-lifecycle-approval
105
120
  type xema_memory
106
121
  relations
107
122
  define owner: [user, agent, service, external-subject, team#member, role#assignee]
108
- define manager: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner
109
- define editor: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
110
- define viewer: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
123
+ define manager: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner
124
+ define editor: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
125
+ define viewer: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
111
126
  define org_viewer: [org#member]
112
127
  define can_manage: manager
113
128
  define can_edit: editor
@@ -116,10 +131,10 @@ type xema_memory
116
131
 
117
132
  type xema_capability-grant
118
133
  relations
119
- define owner: [user, agent, service, external-subject, team#member, role#assignee]
120
- define manager: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner
121
- define editor: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
122
- define viewer: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
134
+ define owner: [membership#holder, agent, service, external-subject, team#member, role#assignee]
135
+ define manager: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner
136
+ define editor: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
137
+ define viewer: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
123
138
  define org_viewer: [org#member]
124
139
  define can_manage: manager
125
140
  define can_edit: editor
@@ -128,10 +143,10 @@ type xema_capability-grant
128
143
 
129
144
  type xema_output-route
130
145
  relations
131
- define owner: [user, agent, service, external-subject, team#member, role#assignee]
132
- define manager: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner
133
- define editor: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
134
- define viewer: [user, user with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
146
+ define owner: [membership#holder, agent, service, external-subject, team#member, role#assignee]
147
+ define manager: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or owner
148
+ define editor: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or manager
149
+ define viewer: [membership#holder, membership#holder with xema_share_not_expired, agent, agent with xema_share_not_expired, external-subject, external-subject with xema_share_not_expired, team#member, team#member with xema_share_not_expired, role#assignee, role#assignee with xema_share_not_expired] or editor
135
150
  define org_viewer: [org#member]
136
151
  define can_manage: manager
137
152
  define can_edit: editor