@shuffl/api-contracts 0.5.6 → 0.5.8

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/dist/base.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const scopes: readonly ['users:read', 'programs:read', 'programs:write', 'runs:write', 'runs:read', 'knowledge:read', 'manager:read', 'users:write', 'participation:write', 'profile:write', 'access:read', 'access:write', 'identities:read', 'identities:write', 'knowledge:manage', 'knowledge:write', 'integrations:read', 'integrations:write', 'hr:read', 'hr:write', 'support:read', 'support:write', 'operations:read', 'operations:write', 'operator:read', 'operator:write', 'reports:read', 'team:read', 'team:write', 'credentials:read', 'credentials:write', 'exports:read', 'assistant:read', 'assistant:write', 'playbooks:read', 'playbooks:write', 'celebrations:read', 'celebrations:write', 'self:read', 'self:write', 'pulse:read', 'pulse:write', 'praise:read', 'praise:write', 'webhooks:read', 'webhooks:write'];
2
+ export declare const scopes: readonly ['users:read', 'programs:read', 'programs:write', 'runs:write', 'runs:read', 'knowledge:read', 'manager:read', 'users:write', 'participation:write', 'profile:write', 'access:read', 'access:write', 'identities:read', 'identities:write', 'knowledge:manage', 'knowledge:write', 'integrations:read', 'integrations:write', 'hr:read', 'hr:write', 'support:read', 'support:write', 'operations:read', 'operations:write', 'operator:read', 'operator:write', 'reports:read', 'team:read', 'team:write', 'credentials:read', 'credentials:write', 'exports:read', 'assistant:read', 'assistant:write', 'playbooks:read', 'playbooks:write', 'celebrations:read', 'celebrations:write', 'self:read', 'self:write', 'pulse:read', 'pulse:write', 'praise:read', 'praise:write', 'webhooks:read', 'webhooks:write', 'mentorship:read', 'mentorship:write'];
3
3
  export declare const scopeSchema: z.ZodEnum<{
4
4
  "access:read": "access:read";
5
5
  "access:write": "access:write";
@@ -20,6 +20,8 @@ export declare const scopeSchema: z.ZodEnum<{
20
20
  "knowledge:read": "knowledge:read";
21
21
  "knowledge:write": "knowledge:write";
22
22
  "manager:read": "manager:read";
23
+ "mentorship:read": "mentorship:read";
24
+ "mentorship:write": "mentorship:write";
23
25
  "operations:read": "operations:read";
24
26
  "operations:write": "operations:write";
25
27
  "operator:read": "operator:read";
package/dist/base.js CHANGED
@@ -47,6 +47,9 @@ export const scopes = [
47
47
  'praise:write',
48
48
  'webhooks:read',
49
49
  'webhooks:write',
50
+ // #691: mentorship programs, for administrators.
51
+ 'mentorship:read',
52
+ 'mentorship:write',
50
53
  ];
51
54
  export const scopeSchema = z.enum(scopes);
52
55
  export const base = oc.$meta({ scope: null }).errors({
@@ -89,4 +92,6 @@ export const adminScopes = [
89
92
  'praise:write',
90
93
  'webhooks:read',
91
94
  'webhooks:write',
95
+ 'mentorship:read',
96
+ 'mentorship:write',
92
97
  ];