@shuffl/api-contracts 0.5.6 → 0.5.7

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.
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { type Scope } from './base.ts';
3
3
  import { managementOperations } from './management-operations.ts';
4
- declare const foundation: readonly [readonly ['channels.list', 'programs:read', 'read', 'List available Slack channels'], readonly ['commands.get', null, 'read', 'Read your own command receipt'], readonly ['knowledge.context', 'knowledge:read', 'read', 'Read nearby approved passages'], readonly ['knowledge.search', 'knowledge:read', 'read', 'Search approved knowledge'], readonly ['manager.current', 'manager:read', 'read', 'Read your own manager context'], readonly ['permissions.list', null, 'read', 'Discover available and granted permissions'], readonly ['programs.archive', 'programs:write', 'write', 'Archive a program'], readonly ['programs.create', 'programs:write', 'write', 'Create a program'], readonly ['programs.get', 'programs:read', 'read', 'Read a program'], readonly ['programs.list', 'programs:read', 'read', 'List programs'], readonly ['programs.options', 'programs:read', 'read', 'List program setting choices'], readonly ['programs.pause', 'programs:write', 'write', 'Pause a program'], readonly ['programs.preview', 'programs:read', 'read', 'Preview matches without sending'], readonly ['programs.resume', 'programs:write', 'write', 'Activate a program and schedule'], readonly ['programs.syncRoster', 'programs:write', 'write', 'Refresh channel membership'], readonly ['programs.update', 'programs:write', 'write', 'Update a program'], readonly ['runs.get', 'runs:read', 'read', 'Read a run status'], readonly ['runs.request', 'runs:write', 'write', 'Request introductions from a preview'], readonly ['users.get', 'users:read', 'read', 'Read a person'], readonly ['users.list', 'users:read', 'read', 'List people'], readonly ['teams.current', null, 'read', 'Read this token’s team']];
4
+ declare const foundation: readonly [readonly ['channels.list', 'programs:read', 'read', 'List available Slack channels'], readonly ['commands.get', null, 'read', 'Read your own command receipt'], readonly ['knowledge.context', 'knowledge:read', 'read', 'Read nearby approved passages'], readonly ['knowledge.search', 'knowledge:read', 'read', 'Search approved knowledge'], readonly ['manager.current', 'manager:read', 'read', 'Read your own manager context'], readonly ['permissions.list', null, 'read', 'Discover available and granted permissions'], readonly ['programs.archive', 'programs:write', 'write', 'Archive a program'], readonly ['programs.create', 'programs:write', 'write', 'Create a program'], readonly ['programs.get', 'programs:read', 'read', 'Read a program'], readonly ['programs.list', 'programs:read', 'read', 'List programs'], readonly ['programs.options', 'programs:read', 'read', 'List program setting choices'], readonly ['programs.pause', 'programs:write', 'write', 'Pause a Connections program and its introductions'], readonly ['programs.preview', 'programs:read', 'read', 'Preview matches without sending'], readonly ['programs.resume', 'programs:write', 'write', 'Activate a program and schedule'], readonly ['programs.syncRoster', 'programs:write', 'write', 'Refresh channel membership'], readonly ['programs.update', 'programs:write', 'write', 'Update a program'], readonly ['runs.get', 'runs:read', 'read', 'Read a run status'], readonly ['runs.request', 'runs:write', 'write', 'Request introductions from a preview'], readonly ['users.get', 'users:read', 'read', 'Read a person'], readonly ['users.list', 'users:read', 'read', 'List people'], readonly ['teams.current', null, 'read', 'Read this token’s team']];
5
5
  declare const protocols: readonly [readonly ['mcp.knowledge', 'knowledge:read', 'read', 'Connect an agent over MCP']];
6
6
  export declare const protocolPermissionIds: "mcp.knowledge"[];
7
7
  export type Permission = (typeof foundation)[number][0] | (typeof protocols)[number][0] | (typeof managementOperations)[number][0];
@@ -194,6 +194,21 @@ export declare const permissionSchema: z.ZodEnum<{
194
194
  "knowledge.uploads.retry": "knowledge.uploads.retry";
195
195
  "manager.current": "manager.current";
196
196
  "mcp.knowledge": "mcp.knowledge";
197
+ "mentorship.checkIns.answer": "mentorship.checkIns.answer";
198
+ "mentorship.goals.remove": "mentorship.goals.remove";
199
+ "mentorship.goals.save": "mentorship.goals.save";
200
+ "mentorship.join": "mentorship.join";
201
+ "mentorship.leave": "mentorship.leave";
202
+ "mentorship.members.setStatus": "mentorship.members.setStatus";
203
+ "mentorship.mine": "mentorship.mine";
204
+ "mentorship.pairs.decide": "mentorship.pairs.decide";
205
+ "mentorship.pairs.end": "mentorship.pairs.end";
206
+ "mentorship.pairs.setMine": "mentorship.pairs.setMine";
207
+ "mentorship.pairs.suggest": "mentorship.pairs.suggest";
208
+ "mentorship.programs.get": "mentorship.programs.get";
209
+ "mentorship.programs.list": "mentorship.programs.list";
210
+ "mentorship.programs.save": "mentorship.programs.save";
211
+ "mentorship.programs.setStatus": "mentorship.programs.setStatus";
197
212
  "network.claim": "network.claim";
198
213
  "network.introductions": "network.introductions";
199
214
  "network.mine": "network.mine";
@@ -579,6 +594,21 @@ export declare const permissionDefinitionSchema: z.ZodObject<{
579
594
  "knowledge.uploads.retry": "knowledge.uploads.retry";
580
595
  "manager.current": "manager.current";
581
596
  "mcp.knowledge": "mcp.knowledge";
597
+ "mentorship.checkIns.answer": "mentorship.checkIns.answer";
598
+ "mentorship.goals.remove": "mentorship.goals.remove";
599
+ "mentorship.goals.save": "mentorship.goals.save";
600
+ "mentorship.join": "mentorship.join";
601
+ "mentorship.leave": "mentorship.leave";
602
+ "mentorship.members.setStatus": "mentorship.members.setStatus";
603
+ "mentorship.mine": "mentorship.mine";
604
+ "mentorship.pairs.decide": "mentorship.pairs.decide";
605
+ "mentorship.pairs.end": "mentorship.pairs.end";
606
+ "mentorship.pairs.setMine": "mentorship.pairs.setMine";
607
+ "mentorship.pairs.suggest": "mentorship.pairs.suggest";
608
+ "mentorship.programs.get": "mentorship.programs.get";
609
+ "mentorship.programs.list": "mentorship.programs.list";
610
+ "mentorship.programs.save": "mentorship.programs.save";
611
+ "mentorship.programs.setStatus": "mentorship.programs.setStatus";
582
612
  "network.claim": "network.claim";
583
613
  "network.introductions": "network.introductions";
584
614
  "network.mine": "network.mine";
@@ -800,6 +830,8 @@ export declare const permissionDefinitionSchema: z.ZodObject<{
800
830
  "knowledge:read": "knowledge:read";
801
831
  "knowledge:write": "knowledge:write";
802
832
  "manager:read": "manager:read";
833
+ "mentorship:read": "mentorship:read";
834
+ "mentorship:write": "mentorship:write";
803
835
  "operations:read": "operations:read";
804
836
  "operations:write": "operations:write";
805
837
  "operator:read": "operator:read";
@@ -25,7 +25,12 @@ const foundation = [
25
25
  ['programs.get', 'programs:read', 'read', 'Read a program'],
26
26
  ['programs.list', 'programs:read', 'read', 'List programs'],
27
27
  ['programs.options', 'programs:read', 'read', 'List program setting choices'],
28
- ['programs.pause', 'programs:write', 'write', 'Pause a program'],
28
+ [
29
+ 'programs.pause',
30
+ 'programs:write',
31
+ 'write',
32
+ 'Pause a Connections program and its introductions',
33
+ ],
29
34
  [
30
35
  'programs.preview',
31
36
  'programs:read',