@shuffl/api-contracts 0.5.5 → 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];
@@ -98,6 +98,7 @@ export declare const permissionSchema: z.ZodEnum<{
98
98
  "getStarted.intro": "getStarted.intro";
99
99
  "getStarted.wizard": "getStarted.wizard";
100
100
  "groups.allAutomations": "groups.allAutomations";
101
+ "groups.automationChoices": "groups.automationChoices";
101
102
  "groups.automations": "groups.automations";
102
103
  "groups.directory": "groups.directory";
103
104
  "groups.directoryGroup": "groups.directoryGroup";
@@ -193,6 +194,21 @@ export declare const permissionSchema: z.ZodEnum<{
193
194
  "knowledge.uploads.retry": "knowledge.uploads.retry";
194
195
  "manager.current": "manager.current";
195
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";
196
212
  "network.claim": "network.claim";
197
213
  "network.introductions": "network.introductions";
198
214
  "network.mine": "network.mine";
@@ -482,6 +498,7 @@ export declare const permissionDefinitionSchema: z.ZodObject<{
482
498
  "getStarted.intro": "getStarted.intro";
483
499
  "getStarted.wizard": "getStarted.wizard";
484
500
  "groups.allAutomations": "groups.allAutomations";
501
+ "groups.automationChoices": "groups.automationChoices";
485
502
  "groups.automations": "groups.automations";
486
503
  "groups.directory": "groups.directory";
487
504
  "groups.directoryGroup": "groups.directoryGroup";
@@ -577,6 +594,21 @@ export declare const permissionDefinitionSchema: z.ZodObject<{
577
594
  "knowledge.uploads.retry": "knowledge.uploads.retry";
578
595
  "manager.current": "manager.current";
579
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";
580
612
  "network.claim": "network.claim";
581
613
  "network.introductions": "network.introductions";
582
614
  "network.mine": "network.mine";
@@ -798,6 +830,8 @@ export declare const permissionDefinitionSchema: z.ZodObject<{
798
830
  "knowledge:read": "knowledge:read";
799
831
  "knowledge:write": "knowledge:write";
800
832
  "manager:read": "manager:read";
833
+ "mentorship:read": "mentorship:read";
834
+ "mentorship:write": "mentorship:write";
801
835
  "operations:read": "operations:read";
802
836
  "operations:write": "operations:write";
803
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',