@casual-simulation/aux-common 3.3.11-alpha.11349749950 → 3.3.11

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.
@@ -23,13 +23,14 @@ export declare const LOOM_RESOURCE_KIND = "loom";
23
23
  export declare const SLOYD_RESOURCE_KIND = "ai.sloyd";
24
24
  export declare const HUME_RESOURCE_KIND = "ai.hume";
25
25
  export declare const WEBHOOK_RESOURCE_KIND = "webhook";
26
+ export declare const NOTIFICATION_RESOURCE_KIND = "notification";
26
27
  /**
27
28
  * The possible types of resources that can be affected by permissions.
28
29
  *
29
30
  * @dochash types/permissions
30
31
  * @docname ResourceKinds
31
32
  */
32
- export type ResourceKinds = 'data' | 'file' | 'event' | 'marker' | 'role' | 'inst' | 'webhook' | 'loom' | 'ai.sloyd' | 'ai.hume';
33
+ export type ResourceKinds = 'data' | 'file' | 'event' | 'marker' | 'role' | 'inst' | 'webhook' | 'notification' | 'loom' | 'ai.sloyd' | 'ai.hume';
33
34
  export declare const READ_ACTION = "read";
34
35
  export declare const CREATE_ACTION = "create";
35
36
  export declare const UPDATE_ACTION = "update";
@@ -46,13 +47,17 @@ export declare const REVOKE_ACTION = "revoke";
46
47
  export declare const SEND_ACTION_ACTION = "sendAction";
47
48
  export declare const UPDATE_DATA_ACTION = "updateData";
48
49
  export declare const RUN_ACTION = "run";
50
+ export declare const SEND_ACTION = "send";
51
+ export declare const SUBSCRIBE_ACTION = "subscribe";
52
+ export declare const UNSUBSCRIBE_ACTION = "unsubscribe";
53
+ export declare const LIST_SUBSCRIPTIONS_ACTION = "listSubscriptions";
49
54
  /**
50
55
  * The possible types of actions that can be performed on resources.
51
56
  *
52
57
  * @dochash types/permissions
53
58
  * @docname ActionKinds
54
59
  */
55
- export type ActionKinds = 'read' | 'create' | 'update' | 'delete' | 'assign' | 'unassign' | 'increment' | 'count' | 'list' | 'grantPermission' | 'revokePermission' | 'grant' | 'revoke' | 'sendAction' | 'updateData' | 'run';
60
+ export type ActionKinds = 'read' | 'create' | 'update' | 'delete' | 'assign' | 'unassign' | 'increment' | 'count' | 'list' | 'grantPermission' | 'revokePermission' | 'grant' | 'revoke' | 'sendAction' | 'updateData' | 'run' | 'send' | 'subscribe' | 'unsubscribe' | 'listSubscriptions';
56
61
  /**
57
62
  * The possible types of actions that can be performed on data resources.
58
63
  *
@@ -123,6 +128,13 @@ export type HumeActionKinds = 'create';
123
128
  * @docname WebhookActionKinds
124
129
  */
125
130
  export type WebhookActionKinds = 'create' | 'read' | 'update' | 'delete' | 'list' | 'run';
131
+ /**
132
+ * The possible types of actions that can be performed on notification resources.
133
+ *
134
+ * @dochash types/permissions
135
+ * @docname NotificationActionKinds
136
+ */
137
+ export type NotificationActionKinds = 'create' | 'read' | 'update' | 'delete' | 'list' | 'send' | 'subscribe' | 'unsubscribe' | 'listSubscriptions';
126
138
  /**
127
139
  * The possible types of permissions that can be added to policies.
128
140
  *
@@ -132,7 +144,7 @@ export type WebhookActionKinds = 'create' | 'read' | 'update' | 'delete' | 'list
132
144
  * @docdescription Types that represent permissions that control access to resources.
133
145
  * @docname AvailablePermissions
134
146
  */
135
- export type AvailablePermissions = DataPermission | FilePermission | EventPermission | MarkerPermission | RolePermission | InstPermission | LoomPermission | SloydPermission | HumePermission | WebhookPermission;
147
+ export type AvailablePermissions = DataPermission | FilePermission | EventPermission | MarkerPermission | RolePermission | InstPermission | LoomPermission | SloydPermission | HumePermission | WebhookPermission | NotificationPermission;
136
148
  export declare const SUBJECT_TYPE_VALIDATION: z.ZodEnum<["user", "inst", "role"]>;
137
149
  export declare const DATA_ACTION_KINDS_VALIDATION: z.ZodEnum<["read", "create", "update", "delete", "list"]>;
138
150
  export declare const FILE_ACTION_KINDS_VALIDATION: z.ZodEnum<["read", "create", "update", "delete", "list"]>;
@@ -144,8 +156,9 @@ export declare const LOOM_ACTION_KINDS_VALIDATION: z.ZodEnum<["create"]>;
144
156
  export declare const SLOYD_ACTION_KINDS_VALIDATION: z.ZodEnum<["create"]>;
145
157
  export declare const HUME_ACTION_KINDS_VALIDATION: z.ZodEnum<["create"]>;
146
158
  export declare const WEBHOOK_ACTION_KINDS_VALIDATION: z.ZodEnum<["create", "read", "update", "delete", "list", "run"]>;
147
- export declare const RESOURCE_KIND_VALIDATION: z.ZodEnum<["data", "file", "event", "marker", "role", "inst", "loom", "ai.sloyd", "ai.hume", "webhook"]>;
148
- export declare const ACTION_KINDS_VALIDATION: z.ZodEnum<["create", "read", "update", "updateData", "delete", "list", "sendAction", "assign", "unassign", "grant", "revoke", "increment", "count", "grantPermission", "revokePermission", "run"]>;
159
+ export declare const NOTIFICATION_ACTION_KINDS_VALIDATION: z.ZodEnum<["create", "read", "update", "delete", "list", "send", "subscribe", "unsubscribe", "listSubscriptions"]>;
160
+ export declare const RESOURCE_KIND_VALIDATION: z.ZodEnum<["data", "file", "event", "marker", "role", "inst", "loom", "ai.sloyd", "ai.hume", "webhook", "notification"]>;
161
+ export declare const ACTION_KINDS_VALIDATION: z.ZodEnum<["create", "read", "update", "updateData", "delete", "list", "sendAction", "assign", "unassign", "grant", "revoke", "increment", "count", "grantPermission", "revokePermission", "run", "send", "subscribe", "unsubscribe", "listSubscriptions"]>;
149
162
  /**
150
163
  * Defines an interface that describes common options for all permissions.
151
164
  */
@@ -719,6 +732,48 @@ export declare const WEBHOOK_PERMISSION_VALIDATION: z.ZodObject<{
719
732
  resourceKind?: "webhook";
720
733
  action?: "create" | "read" | "update" | "delete" | "list" | "run";
721
734
  }>;
735
+ /**
736
+ * Defines an interface that describes common options for all permissions that affect notification resources.
737
+ *
738
+ * @dochash types/permissions
739
+ * @docname NotificationPermission
740
+ */
741
+ export interface NotificationPermission extends Permission {
742
+ /**
743
+ * The kind of the permission.
744
+ */
745
+ resourceKind: 'notification';
746
+ /**
747
+ * The action that is allowed.
748
+ * If null, then all actions are allowed.
749
+ */
750
+ action: NotificationActionKinds | null;
751
+ }
752
+ export declare const NOTIFICATION_PERMISSION_VALIDATION: z.ZodObject<{
753
+ marker: z.ZodOptional<z.ZodString>;
754
+ subjectType: z.ZodEnum<["user", "inst", "role"]>;
755
+ subjectId: z.ZodString;
756
+ resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
757
+ expireTimeMs: z.ZodNullable<z.ZodNumber>;
758
+ resourceKind: z.ZodLiteral<"notification">;
759
+ action: z.ZodNullable<z.ZodEnum<["create", "read", "update", "delete", "list", "send", "subscribe", "unsubscribe", "listSubscriptions"]>>;
760
+ }, "strip", z.ZodTypeAny, {
761
+ marker?: string;
762
+ subjectType?: "inst" | "user" | "role";
763
+ subjectId?: string;
764
+ resourceId?: string;
765
+ expireTimeMs?: number;
766
+ resourceKind?: "notification";
767
+ action?: "create" | "read" | "update" | "delete" | "list" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
768
+ }, {
769
+ marker?: string;
770
+ subjectType?: "inst" | "user" | "role";
771
+ subjectId?: string;
772
+ resourceId?: string;
773
+ expireTimeMs?: number;
774
+ resourceKind?: "notification";
775
+ action?: "create" | "read" | "update" | "delete" | "list" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
776
+ }>;
722
777
  export declare const AVAILABLE_PERMISSIONS_VALIDATION: z.ZodDiscriminatedUnion<"resourceKind", [z.ZodObject<{
723
778
  marker: z.ZodOptional<z.ZodString>;
724
779
  subjectType: z.ZodEnum<["user", "inst", "role"]>;
@@ -990,6 +1045,30 @@ export declare const AVAILABLE_PERMISSIONS_VALIDATION: z.ZodDiscriminatedUnion<"
990
1045
  expireTimeMs?: number;
991
1046
  resourceKind?: "webhook";
992
1047
  action?: "create" | "read" | "update" | "delete" | "list" | "run";
1048
+ }>, z.ZodObject<{
1049
+ marker: z.ZodOptional<z.ZodString>;
1050
+ subjectType: z.ZodEnum<["user", "inst", "role"]>;
1051
+ subjectId: z.ZodString;
1052
+ resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1053
+ expireTimeMs: z.ZodNullable<z.ZodNumber>;
1054
+ resourceKind: z.ZodLiteral<"notification">;
1055
+ action: z.ZodNullable<z.ZodEnum<["create", "read", "update", "delete", "list", "send", "subscribe", "unsubscribe", "listSubscriptions"]>>;
1056
+ }, "strip", z.ZodTypeAny, {
1057
+ marker?: string;
1058
+ subjectType?: "inst" | "user" | "role";
1059
+ subjectId?: string;
1060
+ resourceId?: string;
1061
+ expireTimeMs?: number;
1062
+ resourceKind?: "notification";
1063
+ action?: "create" | "read" | "update" | "delete" | "list" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
1064
+ }, {
1065
+ marker?: string;
1066
+ subjectType?: "inst" | "user" | "role";
1067
+ subjectId?: string;
1068
+ resourceId?: string;
1069
+ expireTimeMs?: number;
1070
+ resourceKind?: "notification";
1071
+ action?: "create" | "read" | "update" | "delete" | "list" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
993
1072
  }>]>;
994
1073
  export type PermissionOptions = FilePermissionOptions | RolePermissionOptions;
995
1074
  /**
@@ -9,6 +9,7 @@ export const LOOM_RESOURCE_KIND = 'loom';
9
9
  export const SLOYD_RESOURCE_KIND = 'ai.sloyd';
10
10
  export const HUME_RESOURCE_KIND = 'ai.hume';
11
11
  export const WEBHOOK_RESOURCE_KIND = 'webhook';
12
+ export const NOTIFICATION_RESOURCE_KIND = 'notification';
12
13
  export const READ_ACTION = 'read';
13
14
  export const CREATE_ACTION = 'create';
14
15
  export const UPDATE_ACTION = 'update';
@@ -25,6 +26,10 @@ export const REVOKE_ACTION = 'revoke';
25
26
  export const SEND_ACTION_ACTION = 'sendAction';
26
27
  export const UPDATE_DATA_ACTION = 'updateData';
27
28
  export const RUN_ACTION = 'run';
29
+ export const SEND_ACTION = 'send';
30
+ export const SUBSCRIBE_ACTION = 'subscribe';
31
+ export const UNSUBSCRIBE_ACTION = 'unsubscribe';
32
+ export const LIST_SUBSCRIPTIONS_ACTION = 'listSubscriptions';
28
33
  export const SUBJECT_TYPE_VALIDATION = z.enum(['user', 'inst', 'role']);
29
34
  export const DATA_ACTION_KINDS_VALIDATION = z.enum([
30
35
  READ_ACTION,
@@ -80,6 +85,17 @@ export const WEBHOOK_ACTION_KINDS_VALIDATION = z.enum([
80
85
  LIST_ACTION,
81
86
  RUN_ACTION,
82
87
  ]);
88
+ export const NOTIFICATION_ACTION_KINDS_VALIDATION = z.enum([
89
+ CREATE_ACTION,
90
+ READ_ACTION,
91
+ UPDATE_ACTION,
92
+ DELETE_ACTION,
93
+ LIST_ACTION,
94
+ SEND_ACTION,
95
+ SUBSCRIBE_ACTION,
96
+ UNSUBSCRIBE_ACTION,
97
+ LIST_SUBSCRIPTIONS_ACTION,
98
+ ]);
83
99
  export const RESOURCE_KIND_VALIDATION = z.enum([
84
100
  DATA_RESOURCE_KIND,
85
101
  FILE_RESOURCE_KIND,
@@ -91,6 +107,7 @@ export const RESOURCE_KIND_VALIDATION = z.enum([
91
107
  SLOYD_RESOURCE_KIND,
92
108
  HUME_RESOURCE_KIND,
93
109
  WEBHOOK_RESOURCE_KIND,
110
+ NOTIFICATION_RESOURCE_KIND,
94
111
  ]);
95
112
  export const ACTION_KINDS_VALIDATION = z.enum([
96
113
  CREATE_ACTION,
@@ -109,6 +126,10 @@ export const ACTION_KINDS_VALIDATION = z.enum([
109
126
  GRANT_PERMISSION_ACTION,
110
127
  REVOKE_PERMISSION_ACTION,
111
128
  RUN_ACTION,
129
+ SEND_ACTION,
130
+ SUBSCRIBE_ACTION,
131
+ UNSUBSCRIBE_ACTION,
132
+ LIST_SUBSCRIPTIONS_ACTION,
112
133
  ]);
113
134
  export const PERMISSION_VALIDATION = z.object({
114
135
  subjectType: SUBJECT_TYPE_VALIDATION,
@@ -169,6 +190,10 @@ export const WEBHOOK_PERMISSION_VALIDATION = PERMISSION_VALIDATION.extend({
169
190
  resourceKind: z.literal(WEBHOOK_RESOURCE_KIND),
170
191
  action: WEBHOOK_ACTION_KINDS_VALIDATION.nullable(),
171
192
  });
193
+ export const NOTIFICATION_PERMISSION_VALIDATION = PERMISSION_VALIDATION.extend({
194
+ resourceKind: z.literal(NOTIFICATION_RESOURCE_KIND),
195
+ action: NOTIFICATION_ACTION_KINDS_VALIDATION.nullable(),
196
+ });
172
197
  export const AVAILABLE_PERMISSIONS_VALIDATION = z.discriminatedUnion('resourceKind', [
173
198
  DATA_PERMISSION_VALIDATION,
174
199
  FILE_PERMISSION_VALIDATION,
@@ -180,6 +205,7 @@ export const AVAILABLE_PERMISSIONS_VALIDATION = z.discriminatedUnion('resourceKi
180
205
  SLOYD_PERMISSION_VALIDATION,
181
206
  HUME_PERMISSION_VALIDATION,
182
207
  WEBHOOK_PERMISSION_VALIDATION,
208
+ NOTIFICATION_PERMISSION_VALIDATION,
183
209
  ]);
184
210
  // /**
185
211
  // * Defines an interface that represents a policy document.
@@ -1 +1 @@
1
- {"version":3,"file":"PolicyPermissions.js","sourceRoot":"","sources":["PolicyPermissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC;AACzC,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC;AACzC,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,CAAC;AAC3C,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC;AAC7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC;AACzC,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC;AACzC,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC;AACzC,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC;AAC9C,MAAM,CAAC,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAC5C,MAAM,CAAC,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAoB/C,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC;AAClC,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC;AACtC,MAAM,CAAC,MAAM,a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AA0B;IAC1B,6BAA6B;IAC7B,kCAAkC;CACrC,CACJ,CAAC;AAIF,MAAM;AACN,6DAA6D;AAC7D,wEAAwE;AACxE,MAAM;AACN,oCAAoC;AACpC,UAAU;AACV,2EAA2E;AAC3E,UAAU;AACV,2CAA2C;AAC3C,IAAI;AAEJ;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC;AAEpD;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAE/C;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC;AAEjD;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAC;AAExC;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casual-simulation/aux-common",
3
- "version": "3.3.11-alpha.11349749950",
3
+ "version": "3.3.11",
4
4
  "description": "Common library for AUX projects",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -74,5 +74,5 @@
74
74
  "**/*.d.ts",
75
75
  "**/*.def"
76
76
  ],
77
- "gitHead": "619e0c7640cc4279dc1423c3bc0025ab5716b398"
77
+ "gitHead": "8e5ee8f33c196328a1c90dbbd799d2ddf248f31d"
78
78
  }
@@ -1322,25 +1322,25 @@ export declare const requestMissingPermissionMessageSchema: z.ZodObject<{
1322
1322
  reason: z.ZodObject<{
1323
1323
  type: z.ZodLiteral<"missing_permission">;
1324
1324
  recordName: z.ZodString;
1325
- resourceKind: z.ZodEnum<["data", "file", "event", "marker", "role", "inst", "loom", "ai.sloyd", "ai.hume", "webhook"]>;
1325
+ resourceKind: z.ZodEnum<["data", "file", "event", "marker", "role", "inst", "loom", "ai.sloyd", "ai.hume", "webhook", "notification"]>;
1326
1326
  resourceId: z.ZodString;
1327
- action: z.ZodEnum<["create", "read", "update", "updateData", "delete", "list", "sendAction", "assign", "unassign", "grant", "revoke", "increment", "count", "grantPermission", "revokePermission", "run"]>;
1327
+ action: z.ZodEnum<["create", "read", "update", "updateData", "delete", "list", "sendAction", "assign", "unassign", "grant", "revoke", "increment", "count", "grantPermission", "revokePermission", "run", "send", "subscribe", "unsubscribe", "listSubscriptions"]>;
1328
1328
  subjectType: z.ZodEnum<["user", "inst", "role"]>;
1329
1329
  subjectId: z.ZodString;
1330
1330
  }, "strip", z.ZodTypeAny, {
1331
1331
  type?: "missing_permission";
1332
1332
  recordName?: string;
1333
- resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook";
1333
+ resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook" | "notification";
1334
1334
  resourceId?: string;
1335
- action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run";
1335
+ action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
1336
1336
  subjectType?: "inst" | "user" | "role";
1337
1337
  subjectId?: string;
1338
1338
  }, {
1339
1339
  type?: "missing_permission";
1340
1340
  recordName?: string;
1341
- resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook";
1341
+ resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook" | "notification";
1342
1342
  resourceId?: string;
1343
- action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run";
1343
+ action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
1344
1344
  subjectType?: "inst" | "user" | "role";
1345
1345
  subjectId?: string;
1346
1346
  }>;
@@ -1349,9 +1349,9 @@ export declare const requestMissingPermissionMessageSchema: z.ZodObject<{
1349
1349
  reason?: {
1350
1350
  type?: "missing_permission";
1351
1351
  recordName?: string;
1352
- resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook";
1352
+ resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook" | "notification";
1353
1353
  resourceId?: string;
1354
- action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run";
1354
+ action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
1355
1355
  subjectType?: "inst" | "user" | "role";
1356
1356
  subjectId?: string;
1357
1357
  };
@@ -1360,9 +1360,9 @@ export declare const requestMissingPermissionMessageSchema: z.ZodObject<{
1360
1360
  reason?: {
1361
1361
  type?: "missing_permission";
1362
1362
  recordName?: string;
1363
- resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook";
1363
+ resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook" | "notification";
1364
1364
  resourceId?: string;
1365
- action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run";
1365
+ action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
1366
1366
  subjectType?: "inst" | "user" | "role";
1367
1367
  subjectId?: string;
1368
1368
  };
@@ -1400,7 +1400,7 @@ export declare const requestMissingPermissionResponseMessageSchema: z.ZodObject<
1400
1400
  type: z.ZodLiteral<"permission/request/missing/response">;
1401
1401
  success: z.ZodBoolean;
1402
1402
  recordName: z.ZodString;
1403
- resourceKind: z.ZodEnum<["data", "file", "event", "marker", "role", "inst", "loom", "ai.sloyd", "ai.hume", "webhook"]>;
1403
+ resourceKind: z.ZodEnum<["data", "file", "event", "marker", "role", "inst", "loom", "ai.sloyd", "ai.hume", "webhook", "notification"]>;
1404
1404
  resourceId: z.ZodString;
1405
1405
  subjectType: z.ZodEnum<["user", "inst", "role"]>;
1406
1406
  subjectId: z.ZodString;
@@ -1410,7 +1410,7 @@ export declare const requestMissingPermissionResponseMessageSchema: z.ZodObject<
1410
1410
  type?: "permission/request/missing/response";
1411
1411
  success?: boolean;
1412
1412
  recordName?: string;
1413
- resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook";
1413
+ resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook" | "notification";
1414
1414
  resourceId?: string;
1415
1415
  subjectType?: "inst" | "user" | "role";
1416
1416
  subjectId?: string;
@@ -1420,7 +1420,7 @@ export declare const requestMissingPermissionResponseMessageSchema: z.ZodObject<
1420
1420
  type?: "permission/request/missing/response";
1421
1421
  success?: boolean;
1422
1422
  recordName?: string;
1423
- resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook";
1423
+ resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook" | "notification";
1424
1424
  resourceId?: string;
1425
1425
  subjectType?: "inst" | "user" | "role";
1426
1426
  subjectId?: string;
@@ -1787,25 +1787,25 @@ export declare const websocketRequestMessageSchema: z.ZodDiscriminatedUnion<"typ
1787
1787
  reason: z.ZodObject<{
1788
1788
  type: z.ZodLiteral<"missing_permission">;
1789
1789
  recordName: z.ZodString;
1790
- resourceKind: z.ZodEnum<["data", "file", "event", "marker", "role", "inst", "loom", "ai.sloyd", "ai.hume", "webhook"]>;
1790
+ resourceKind: z.ZodEnum<["data", "file", "event", "marker", "role", "inst", "loom", "ai.sloyd", "ai.hume", "webhook", "notification"]>;
1791
1791
  resourceId: z.ZodString;
1792
- action: z.ZodEnum<["create", "read", "update", "updateData", "delete", "list", "sendAction", "assign", "unassign", "grant", "revoke", "increment", "count", "grantPermission", "revokePermission", "run"]>;
1792
+ action: z.ZodEnum<["create", "read", "update", "updateData", "delete", "list", "sendAction", "assign", "unassign", "grant", "revoke", "increment", "count", "grantPermission", "revokePermission", "run", "send", "subscribe", "unsubscribe", "listSubscriptions"]>;
1793
1793
  subjectType: z.ZodEnum<["user", "inst", "role"]>;
1794
1794
  subjectId: z.ZodString;
1795
1795
  }, "strip", z.ZodTypeAny, {
1796
1796
  type?: "missing_permission";
1797
1797
  recordName?: string;
1798
- resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook";
1798
+ resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook" | "notification";
1799
1799
  resourceId?: string;
1800
- action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run";
1800
+ action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
1801
1801
  subjectType?: "inst" | "user" | "role";
1802
1802
  subjectId?: string;
1803
1803
  }, {
1804
1804
  type?: "missing_permission";
1805
1805
  recordName?: string;
1806
- resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook";
1806
+ resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook" | "notification";
1807
1807
  resourceId?: string;
1808
- action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run";
1808
+ action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
1809
1809
  subjectType?: "inst" | "user" | "role";
1810
1810
  subjectId?: string;
1811
1811
  }>;
@@ -1814,9 +1814,9 @@ export declare const websocketRequestMessageSchema: z.ZodDiscriminatedUnion<"typ
1814
1814
  reason?: {
1815
1815
  type?: "missing_permission";
1816
1816
  recordName?: string;
1817
- resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook";
1817
+ resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook" | "notification";
1818
1818
  resourceId?: string;
1819
- action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run";
1819
+ action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
1820
1820
  subjectType?: "inst" | "user" | "role";
1821
1821
  subjectId?: string;
1822
1822
  };
@@ -1825,9 +1825,9 @@ export declare const websocketRequestMessageSchema: z.ZodDiscriminatedUnion<"typ
1825
1825
  reason?: {
1826
1826
  type?: "missing_permission";
1827
1827
  recordName?: string;
1828
- resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook";
1828
+ resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook" | "notification";
1829
1829
  resourceId?: string;
1830
- action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run";
1830
+ action?: "create" | "read" | "update" | "delete" | "assign" | "unassign" | "increment" | "count" | "list" | "grantPermission" | "revokePermission" | "grant" | "revoke" | "sendAction" | "updateData" | "run" | "send" | "subscribe" | "unsubscribe" | "listSubscriptions";
1831
1831
  subjectType?: "inst" | "user" | "role";
1832
1832
  subjectId?: string;
1833
1833
  };
@@ -1835,7 +1835,7 @@ export declare const websocketRequestMessageSchema: z.ZodDiscriminatedUnion<"typ
1835
1835
  type: z.ZodLiteral<"permission/request/missing/response">;
1836
1836
  success: z.ZodBoolean;
1837
1837
  recordName: z.ZodString;
1838
- resourceKind: z.ZodEnum<["data", "file", "event", "marker", "role", "inst", "loom", "ai.sloyd", "ai.hume", "webhook"]>;
1838
+ resourceKind: z.ZodEnum<["data", "file", "event", "marker", "role", "inst", "loom", "ai.sloyd", "ai.hume", "webhook", "notification"]>;
1839
1839
  resourceId: z.ZodString;
1840
1840
  subjectType: z.ZodEnum<["user", "inst", "role"]>;
1841
1841
  subjectId: z.ZodString;
@@ -1845,7 +1845,7 @@ export declare const websocketRequestMessageSchema: z.ZodDiscriminatedUnion<"typ
1845
1845
  type?: "permission/request/missing/response";
1846
1846
  success?: boolean;
1847
1847
  recordName?: string;
1848
- resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook";
1848
+ resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook" | "notification";
1849
1849
  resourceId?: string;
1850
1850
  subjectType?: "inst" | "user" | "role";
1851
1851
  subjectId?: string;
@@ -1855,7 +1855,7 @@ export declare const websocketRequestMessageSchema: z.ZodDiscriminatedUnion<"typ
1855
1855
  type?: "permission/request/missing/response";
1856
1856
  success?: boolean;
1857
1857
  recordName?: string;
1858
- resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook";
1858
+ resourceKind?: "inst" | "data" | "event" | "role" | "file" | "marker" | "loom" | "ai.sloyd" | "ai.hume" | "webhook" | "notification";
1859
1859
  resourceId?: string;
1860
1860
  subjectType?: "inst" | "user" | "role";
1861
1861
  subjectId?: string;