@helyx/bot 0.4.9 → 0.4.13

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.
@@ -169,6 +169,10 @@ export type ShardHealthSnapshot = z.infer<typeof shardHealthSnapshotSchema>;
169
169
  export declare const shardControlOperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
170
170
  kind: z.ZodLiteral<"guild.state.get">;
171
171
  guildId: z.ZodString;
172
+ }, z.core.$strict>, z.ZodObject<{
173
+ kind: z.ZodLiteral<"guild.presence.list">;
174
+ guildIds: z.ZodArray<z.ZodString>;
175
+ correlationId: z.ZodUUID;
172
176
  }, z.core.$strict>, z.ZodObject<{
173
177
  actorUserId: z.ZodString;
174
178
  correlationId: z.ZodString;
@@ -234,6 +238,16 @@ export declare const shardControlOperationSchema: z.ZodDiscriminatedUnion<[z.Zod
234
238
  guildId: z.ZodString;
235
239
  moduleId: z.ZodString;
236
240
  actionId: z.ZodString;
241
+ }, z.core.$strict>, z.ZodObject<{
242
+ kind: z.ZodLiteral<"guild.module.resource.access">;
243
+ guildId: z.ZodString;
244
+ moduleId: z.ZodString;
245
+ resourceType: z.ZodString;
246
+ operation: z.ZodEnum<{
247
+ list: "list";
248
+ read: "read";
249
+ }>;
250
+ actorUserId: z.ZodString;
237
251
  }, z.core.$strict>, z.ZodObject<{
238
252
  actorUserId: z.ZodString;
239
253
  correlationId: z.ZodString;
@@ -314,6 +328,7 @@ export declare const shardControlOperationSchema: z.ZodDiscriminatedUnion<[z.Zod
314
328
  actionId: z.ZodString;
315
329
  expectedRevision: z.ZodNumber;
316
330
  value: z.ZodRecord<z.ZodString, z.ZodCustom<ManagedResourceValue, ManagedResourceValue>>;
331
+ actorAuthenticatedAt: z.ZodOptional<z.ZodISODateTime>;
317
332
  }, z.core.$strict>, z.ZodObject<{
318
333
  kind: z.ZodLiteral<"support.notification.send">;
319
334
  guildId: z.ZodString;
@@ -337,6 +352,100 @@ export declare const shardControlOperationSchema: z.ZodDiscriminatedUnion<[z.Zod
337
352
  readonly dashboard_security: "dashboard_security";
338
353
  readonly discord_command: "discord_command";
339
354
  }>;
355
+ }, z.core.$strict>, z.ZodObject<{
356
+ kind: z.ZodLiteral<"verification.result.accept">;
357
+ envelope: z.ZodObject<{
358
+ payload: z.ZodObject<{
359
+ protocolVersion: z.ZodLiteral<"1.0">;
360
+ scoreVersion: z.ZodString;
361
+ policyVersion: z.ZodString;
362
+ installationId: z.ZodUUID;
363
+ deploymentSourceClassification: z.ZodEnum<{
364
+ helyx_hosted: "helyx_hosted";
365
+ self_hosted_reported: "self_hosted_reported";
366
+ }>;
367
+ evidenceSources: z.ZodObject<{
368
+ discord: z.ZodEnum<{
369
+ helyx_hosted: "helyx_hosted";
370
+ self_hosted_reported: "self_hosted_reported";
371
+ }>;
372
+ browser: z.ZodLiteral<"helyx_observed_web">;
373
+ network: z.ZodLiteral<"provider_observed">;
374
+ }, z.core.$strict>;
375
+ guildId: z.ZodString;
376
+ userId: z.ZodString;
377
+ challengeId: z.ZodUUID;
378
+ attemptId: z.ZodUUID;
379
+ decision: z.ZodEnum<{
380
+ pass: "pass";
381
+ review: "review";
382
+ deny: "deny";
383
+ temporary_failure: "temporary_failure";
384
+ }>;
385
+ riskScore: z.ZodNullable<z.ZodNumber>;
386
+ riskBand: z.ZodEnum<{
387
+ low: "low";
388
+ medium: "medium";
389
+ high: "high";
390
+ incomplete: "incomplete";
391
+ }>;
392
+ reasonCodes: z.ZodArray<z.ZodEnum<{
393
+ "network.proxy": "network.proxy";
394
+ "network.vpn": "network.vpn";
395
+ "network.compromised": "network.compromised";
396
+ "network.scraper": "network.scraper";
397
+ "network.tor": "network.tor";
398
+ "network.hosting": "network.hosting";
399
+ "network.anonymous": "network.anonymous";
400
+ "network.country_policy": "network.country_policy";
401
+ "account.too_new": "account.too_new";
402
+ "account.name_quarantined": "account.name_quarantined";
403
+ "relationship.exact_device_server_enforced": "relationship.exact_device_server_enforced";
404
+ "relationship.strong_server_enforced": "relationship.strong_server_enforced";
405
+ "relationship.exact_device": "relationship.exact_device";
406
+ "relationship.strong": "relationship.strong";
407
+ "relationship.possible": "relationship.possible";
408
+ "relationship.ip_only": "relationship.ip_only";
409
+ "abuse.concurrent_submission": "abuse.concurrent_submission";
410
+ "abuse.token_replay": "abuse.token_replay";
411
+ "trust.prior_server_success": "trust.prior_server_success";
412
+ "trust.other_server_success": "trust.other_server_success";
413
+ "trust.reviewed_public_flag": "trust.reviewed_public_flag";
414
+ "rule.account_age": "rule.account_age";
415
+ "rule.network_category": "rule.network_category";
416
+ "rule.country": "rule.country";
417
+ "rule.banned_account_relationship": "rule.banned_account_relationship";
418
+ "evidence.network_incomplete": "evidence.network_incomplete";
419
+ "service.temporary_failure": "service.temporary_failure";
420
+ }>>;
421
+ overridingRule: z.ZodOptional<z.ZodEnum<{
422
+ "rule.account_age": "rule.account_age";
423
+ "rule.network_category": "rule.network_category";
424
+ "rule.country": "rule.country";
425
+ "rule.banned_account_relationship": "rule.banned_account_relationship";
426
+ }>>;
427
+ actionBoundary: z.ZodObject<{
428
+ recommendedAction: z.ZodEnum<{
429
+ none: "none";
430
+ grant_role: "grant_role";
431
+ kick: "kick";
432
+ ban: "ban";
433
+ }>;
434
+ allowedActions: z.ZodArray<z.ZodEnum<{
435
+ none: "none";
436
+ grant_role: "grant_role";
437
+ kick: "kick";
438
+ ban: "ban";
439
+ }>>;
440
+ }, z.core.$strict>;
441
+ issuedAt: z.ZodISODateTime;
442
+ expiresAt: z.ZodISODateTime;
443
+ resultNonce: z.ZodString;
444
+ }, z.core.$strict>;
445
+ signature: z.ZodString;
446
+ keyId: z.ZodString;
447
+ algorithm: z.ZodLiteral<"Ed25519">;
448
+ }, z.core.$strict>;
340
449
  }, z.core.$strict>, z.ZodObject<{
341
450
  kind: z.ZodLiteral<"privacy.providers.list">;
342
451
  }, z.core.$strict>, z.ZodObject<{
@@ -367,6 +476,10 @@ export declare const shardControlRequestSchema: z.ZodObject<{
367
476
  operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
368
477
  kind: z.ZodLiteral<"guild.state.get">;
369
478
  guildId: z.ZodString;
479
+ }, z.core.$strict>, z.ZodObject<{
480
+ kind: z.ZodLiteral<"guild.presence.list">;
481
+ guildIds: z.ZodArray<z.ZodString>;
482
+ correlationId: z.ZodUUID;
370
483
  }, z.core.$strict>, z.ZodObject<{
371
484
  actorUserId: z.ZodString;
372
485
  correlationId: z.ZodString;
@@ -432,6 +545,16 @@ export declare const shardControlRequestSchema: z.ZodObject<{
432
545
  guildId: z.ZodString;
433
546
  moduleId: z.ZodString;
434
547
  actionId: z.ZodString;
548
+ }, z.core.$strict>, z.ZodObject<{
549
+ kind: z.ZodLiteral<"guild.module.resource.access">;
550
+ guildId: z.ZodString;
551
+ moduleId: z.ZodString;
552
+ resourceType: z.ZodString;
553
+ operation: z.ZodEnum<{
554
+ list: "list";
555
+ read: "read";
556
+ }>;
557
+ actorUserId: z.ZodString;
435
558
  }, z.core.$strict>, z.ZodObject<{
436
559
  actorUserId: z.ZodString;
437
560
  correlationId: z.ZodString;
@@ -512,6 +635,7 @@ export declare const shardControlRequestSchema: z.ZodObject<{
512
635
  actionId: z.ZodString;
513
636
  expectedRevision: z.ZodNumber;
514
637
  value: z.ZodRecord<z.ZodString, z.ZodCustom<ManagedResourceValue, ManagedResourceValue>>;
638
+ actorAuthenticatedAt: z.ZodOptional<z.ZodISODateTime>;
515
639
  }, z.core.$strict>, z.ZodObject<{
516
640
  kind: z.ZodLiteral<"support.notification.send">;
517
641
  guildId: z.ZodString;
@@ -535,6 +659,100 @@ export declare const shardControlRequestSchema: z.ZodObject<{
535
659
  readonly dashboard_security: "dashboard_security";
536
660
  readonly discord_command: "discord_command";
537
661
  }>;
662
+ }, z.core.$strict>, z.ZodObject<{
663
+ kind: z.ZodLiteral<"verification.result.accept">;
664
+ envelope: z.ZodObject<{
665
+ payload: z.ZodObject<{
666
+ protocolVersion: z.ZodLiteral<"1.0">;
667
+ scoreVersion: z.ZodString;
668
+ policyVersion: z.ZodString;
669
+ installationId: z.ZodUUID;
670
+ deploymentSourceClassification: z.ZodEnum<{
671
+ helyx_hosted: "helyx_hosted";
672
+ self_hosted_reported: "self_hosted_reported";
673
+ }>;
674
+ evidenceSources: z.ZodObject<{
675
+ discord: z.ZodEnum<{
676
+ helyx_hosted: "helyx_hosted";
677
+ self_hosted_reported: "self_hosted_reported";
678
+ }>;
679
+ browser: z.ZodLiteral<"helyx_observed_web">;
680
+ network: z.ZodLiteral<"provider_observed">;
681
+ }, z.core.$strict>;
682
+ guildId: z.ZodString;
683
+ userId: z.ZodString;
684
+ challengeId: z.ZodUUID;
685
+ attemptId: z.ZodUUID;
686
+ decision: z.ZodEnum<{
687
+ pass: "pass";
688
+ review: "review";
689
+ deny: "deny";
690
+ temporary_failure: "temporary_failure";
691
+ }>;
692
+ riskScore: z.ZodNullable<z.ZodNumber>;
693
+ riskBand: z.ZodEnum<{
694
+ low: "low";
695
+ medium: "medium";
696
+ high: "high";
697
+ incomplete: "incomplete";
698
+ }>;
699
+ reasonCodes: z.ZodArray<z.ZodEnum<{
700
+ "network.proxy": "network.proxy";
701
+ "network.vpn": "network.vpn";
702
+ "network.compromised": "network.compromised";
703
+ "network.scraper": "network.scraper";
704
+ "network.tor": "network.tor";
705
+ "network.hosting": "network.hosting";
706
+ "network.anonymous": "network.anonymous";
707
+ "network.country_policy": "network.country_policy";
708
+ "account.too_new": "account.too_new";
709
+ "account.name_quarantined": "account.name_quarantined";
710
+ "relationship.exact_device_server_enforced": "relationship.exact_device_server_enforced";
711
+ "relationship.strong_server_enforced": "relationship.strong_server_enforced";
712
+ "relationship.exact_device": "relationship.exact_device";
713
+ "relationship.strong": "relationship.strong";
714
+ "relationship.possible": "relationship.possible";
715
+ "relationship.ip_only": "relationship.ip_only";
716
+ "abuse.concurrent_submission": "abuse.concurrent_submission";
717
+ "abuse.token_replay": "abuse.token_replay";
718
+ "trust.prior_server_success": "trust.prior_server_success";
719
+ "trust.other_server_success": "trust.other_server_success";
720
+ "trust.reviewed_public_flag": "trust.reviewed_public_flag";
721
+ "rule.account_age": "rule.account_age";
722
+ "rule.network_category": "rule.network_category";
723
+ "rule.country": "rule.country";
724
+ "rule.banned_account_relationship": "rule.banned_account_relationship";
725
+ "evidence.network_incomplete": "evidence.network_incomplete";
726
+ "service.temporary_failure": "service.temporary_failure";
727
+ }>>;
728
+ overridingRule: z.ZodOptional<z.ZodEnum<{
729
+ "rule.account_age": "rule.account_age";
730
+ "rule.network_category": "rule.network_category";
731
+ "rule.country": "rule.country";
732
+ "rule.banned_account_relationship": "rule.banned_account_relationship";
733
+ }>>;
734
+ actionBoundary: z.ZodObject<{
735
+ recommendedAction: z.ZodEnum<{
736
+ none: "none";
737
+ grant_role: "grant_role";
738
+ kick: "kick";
739
+ ban: "ban";
740
+ }>;
741
+ allowedActions: z.ZodArray<z.ZodEnum<{
742
+ none: "none";
743
+ grant_role: "grant_role";
744
+ kick: "kick";
745
+ ban: "ban";
746
+ }>>;
747
+ }, z.core.$strict>;
748
+ issuedAt: z.ZodISODateTime;
749
+ expiresAt: z.ZodISODateTime;
750
+ resultNonce: z.ZodString;
751
+ }, z.core.$strict>;
752
+ signature: z.ZodString;
753
+ keyId: z.ZodString;
754
+ algorithm: z.ZodLiteral<"Ed25519">;
755
+ }, z.core.$strict>;
538
756
  }, z.core.$strict>, z.ZodObject<{
539
757
  kind: z.ZodLiteral<"privacy.providers.list">;
540
758
  }, z.core.$strict>, z.ZodObject<{
@@ -815,6 +1033,251 @@ export declare const shardScheduledTaskResponseSchema: z.ZodObject<{
815
1033
  }, z.core.$strict>;
816
1034
  export type ShardScheduledTaskRequest = z.infer<typeof shardScheduledTaskRequestSchema>;
817
1035
  export type ShardScheduledTaskResponse = z.infer<typeof shardScheduledTaskResponseSchema>;
1036
+ export declare const shardNumericRequestSchema: z.ZodObject<{
1037
+ version: z.ZodLiteral<1>;
1038
+ type: z.ZodLiteral<"helyx.numeric.request">;
1039
+ requestId: z.ZodUUID;
1040
+ deadlineAt: z.ZodISODateTime;
1041
+ identity: z.ZodObject<{
1042
+ version: z.ZodLiteral<1>;
1043
+ mode: z.ZodEnum<{
1044
+ readonly auto: "auto";
1045
+ readonly fixed: "fixed";
1046
+ }>;
1047
+ scope: z.ZodEnum<{
1048
+ readonly local: "local";
1049
+ readonly coordinated: "coordinated";
1050
+ }>;
1051
+ generation: z.ZodString;
1052
+ deploymentOrder: z.ZodOptional<z.ZodNumber>;
1053
+ supervisorId: z.ZodUUID;
1054
+ shardId: z.ZodNumber;
1055
+ shardCount: z.ZodNumber;
1056
+ fencingToken: z.ZodNumber;
1057
+ }, z.core.$strict>;
1058
+ operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
1059
+ occurredAt: z.ZodISODateTime;
1060
+ cooldownSeconds: z.ZodNumber;
1061
+ identity: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1062
+ type: z.ZodLiteral<"string">;
1063
+ value: z.ZodString;
1064
+ }, z.core.$strict>, z.ZodObject<{
1065
+ type: z.ZodLiteral<"boolean">;
1066
+ value: z.ZodBoolean;
1067
+ }, z.core.$strict>, z.ZodObject<{
1068
+ type: z.ZodLiteral<"number">;
1069
+ value: z.ZodNumber;
1070
+ }, z.core.$strict>, z.ZodObject<{
1071
+ type: z.ZodLiteral<"date">;
1072
+ value: z.ZodISODateTime;
1073
+ }, z.core.$strict>], "type">>;
1074
+ insert: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1075
+ type: z.ZodLiteral<"string">;
1076
+ value: z.ZodString;
1077
+ }, z.core.$strict>, z.ZodObject<{
1078
+ type: z.ZodLiteral<"boolean">;
1079
+ value: z.ZodBoolean;
1080
+ }, z.core.$strict>, z.ZodObject<{
1081
+ type: z.ZodLiteral<"number">;
1082
+ value: z.ZodNumber;
1083
+ }, z.core.$strict>, z.ZodObject<{
1084
+ type: z.ZodLiteral<"date">;
1085
+ value: z.ZodISODateTime;
1086
+ }, z.core.$strict>], "type">>;
1087
+ increments: z.ZodRecord<z.ZodString, z.ZodNumber>;
1088
+ maxima: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodISODateTime>>;
1089
+ guildId: z.ZodString;
1090
+ subjectId: z.ZodString;
1091
+ moduleId: z.ZodString;
1092
+ collection: z.ZodString;
1093
+ kind: z.ZodLiteral<"enqueue">;
1094
+ }, z.core.$strict>, z.ZodObject<{
1095
+ guildId: z.ZodString;
1096
+ subjectId: z.ZodString;
1097
+ moduleId: z.ZodString;
1098
+ collection: z.ZodString;
1099
+ kind: z.ZodLiteral<"pending.member">;
1100
+ }, z.core.$strict>, z.ZodObject<{
1101
+ guildId: z.ZodString;
1102
+ subjectId: z.ZodString;
1103
+ moduleId: z.ZodString;
1104
+ collection: z.ZodString;
1105
+ kind: z.ZodLiteral<"flush.member">;
1106
+ }, z.core.$strict>, z.ZodObject<{
1107
+ guildId: z.ZodString;
1108
+ moduleId: z.ZodString;
1109
+ collection: z.ZodString;
1110
+ kind: z.ZodLiteral<"flush.guild">;
1111
+ }, z.core.$strict>, z.ZodObject<{
1112
+ subjectId: z.ZodString;
1113
+ moduleId: z.ZodString;
1114
+ collection: z.ZodString;
1115
+ kind: z.ZodLiteral<"flush.subject">;
1116
+ }, z.core.$strict>, z.ZodObject<{
1117
+ moduleId: z.ZodString;
1118
+ collection: z.ZodString;
1119
+ kind: z.ZodLiteral<"flush.module">;
1120
+ }, z.core.$strict>, z.ZodObject<{
1121
+ barrierType: z.ZodEnum<{
1122
+ readonly member: "member";
1123
+ readonly guild: "guild";
1124
+ readonly subject: "subject";
1125
+ }>;
1126
+ guildId: z.ZodOptional<z.ZodString>;
1127
+ subjectId: z.ZodOptional<z.ZodString>;
1128
+ moduleId: z.ZodString;
1129
+ collection: z.ZodString;
1130
+ kind: z.ZodLiteral<"barrier.acquire">;
1131
+ }, z.core.$strict>, z.ZodObject<{
1132
+ barrierType: z.ZodEnum<{
1133
+ readonly member: "member";
1134
+ readonly guild: "guild";
1135
+ readonly subject: "subject";
1136
+ }>;
1137
+ guildId: z.ZodOptional<z.ZodString>;
1138
+ subjectId: z.ZodOptional<z.ZodString>;
1139
+ barrierId: z.ZodUUID;
1140
+ moduleId: z.ZodString;
1141
+ collection: z.ZodString;
1142
+ kind: z.ZodLiteral<"barrier.release">;
1143
+ }, z.core.$strict>, z.ZodObject<{
1144
+ barrierType: z.ZodEnum<{
1145
+ readonly member: "member";
1146
+ readonly guild: "guild";
1147
+ readonly subject: "subject";
1148
+ }>;
1149
+ guildId: z.ZodOptional<z.ZodString>;
1150
+ subjectId: z.ZodOptional<z.ZodString>;
1151
+ barrierId: z.ZodUUID;
1152
+ moduleId: z.ZodString;
1153
+ collection: z.ZodString;
1154
+ kind: z.ZodLiteral<"barrier.renew">;
1155
+ }, z.core.$strict>, z.ZodObject<{
1156
+ subjectId: z.ZodString;
1157
+ cutoff: z.ZodISODateTime;
1158
+ moduleId: z.ZodString;
1159
+ collection: z.ZodString;
1160
+ kind: z.ZodLiteral<"suppress.subject">;
1161
+ }, z.core.$strict>, z.ZodObject<{
1162
+ guildId: z.ZodString;
1163
+ moduleId: z.ZodString;
1164
+ collection: z.ZodString;
1165
+ kind: z.ZodLiteral<"suppress.guild">;
1166
+ }, z.core.$strict>, z.ZodObject<{
1167
+ guildId: z.ZodString;
1168
+ suppressionId: z.ZodUUID;
1169
+ moduleId: z.ZodString;
1170
+ collection: z.ZodString;
1171
+ kind: z.ZodLiteral<"release.guild">;
1172
+ }, z.core.$strict>, z.ZodObject<{
1173
+ subjectId: z.ZodString;
1174
+ suppressionId: z.ZodUUID;
1175
+ moduleId: z.ZodString;
1176
+ collection: z.ZodString;
1177
+ kind: z.ZodLiteral<"release.subject">;
1178
+ }, z.core.$strict>, z.ZodObject<{
1179
+ guildId: z.ZodString;
1180
+ subjectId: z.ZodString;
1181
+ moduleId: z.ZodString;
1182
+ collection: z.ZodString;
1183
+ kind: z.ZodLiteral<"cooldown.member.clear">;
1184
+ }, z.core.$strict>, z.ZodObject<{
1185
+ subjectId: z.ZodString;
1186
+ moduleId: z.ZodString;
1187
+ collection: z.ZodString;
1188
+ kind: z.ZodLiteral<"cooldown.subject.clear">;
1189
+ }, z.core.$strict>], "kind">;
1190
+ }, z.core.$strict>;
1191
+ export declare const shardNumericResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1192
+ version: z.ZodLiteral<1>;
1193
+ type: z.ZodLiteral<"helyx.numeric.response">;
1194
+ requestId: z.ZodUUID;
1195
+ ok: z.ZodLiteral<true>;
1196
+ result: z.ZodUnknown;
1197
+ }, z.core.$strict>, z.ZodObject<{
1198
+ version: z.ZodLiteral<1>;
1199
+ type: z.ZodLiteral<"helyx.numeric.response">;
1200
+ requestId: z.ZodUUID;
1201
+ ok: z.ZodLiteral<false>;
1202
+ safeCode: z.ZodString;
1203
+ }, z.core.$strict>], "ok">;
1204
+ export type ShardNumericRequest = z.infer<typeof shardNumericRequestSchema>;
1205
+ export type ShardNumericResponse = z.infer<typeof shardNumericResponseSchema>;
1206
+ export declare const shardNumericCommittedSchema: z.ZodObject<{
1207
+ version: z.ZodLiteral<1>;
1208
+ type: z.ZodLiteral<"helyx.numeric.committed">;
1209
+ requestId: z.ZodUUID;
1210
+ deadlineAt: z.ZodISODateTime;
1211
+ identity: z.ZodObject<{
1212
+ version: z.ZodLiteral<1>;
1213
+ mode: z.ZodEnum<{
1214
+ readonly auto: "auto";
1215
+ readonly fixed: "fixed";
1216
+ }>;
1217
+ scope: z.ZodEnum<{
1218
+ readonly local: "local";
1219
+ readonly coordinated: "coordinated";
1220
+ }>;
1221
+ generation: z.ZodString;
1222
+ deploymentOrder: z.ZodOptional<z.ZodNumber>;
1223
+ supervisorId: z.ZodUUID;
1224
+ shardId: z.ZodNumber;
1225
+ shardCount: z.ZodNumber;
1226
+ fencingToken: z.ZodNumber;
1227
+ }, z.core.$strict>;
1228
+ scope: z.ZodObject<{
1229
+ moduleId: z.ZodString;
1230
+ collection: z.ZodString;
1231
+ }, z.core.$strict>;
1232
+ payload: z.ZodUnknown;
1233
+ }, z.core.$strict>;
1234
+ export declare const shardNumericCommittedResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1235
+ version: z.ZodLiteral<1>;
1236
+ type: z.ZodLiteral<"helyx.numeric.committed.response">;
1237
+ requestId: z.ZodUUID;
1238
+ identity: z.ZodObject<{
1239
+ version: z.ZodLiteral<1>;
1240
+ mode: z.ZodEnum<{
1241
+ readonly auto: "auto";
1242
+ readonly fixed: "fixed";
1243
+ }>;
1244
+ scope: z.ZodEnum<{
1245
+ readonly local: "local";
1246
+ readonly coordinated: "coordinated";
1247
+ }>;
1248
+ generation: z.ZodString;
1249
+ deploymentOrder: z.ZodOptional<z.ZodNumber>;
1250
+ supervisorId: z.ZodUUID;
1251
+ shardId: z.ZodNumber;
1252
+ shardCount: z.ZodNumber;
1253
+ fencingToken: z.ZodNumber;
1254
+ }, z.core.$strict>;
1255
+ ok: z.ZodLiteral<true>;
1256
+ }, z.core.$strict>, z.ZodObject<{
1257
+ version: z.ZodLiteral<1>;
1258
+ type: z.ZodLiteral<"helyx.numeric.committed.response">;
1259
+ requestId: z.ZodUUID;
1260
+ identity: z.ZodObject<{
1261
+ version: z.ZodLiteral<1>;
1262
+ mode: z.ZodEnum<{
1263
+ readonly auto: "auto";
1264
+ readonly fixed: "fixed";
1265
+ }>;
1266
+ scope: z.ZodEnum<{
1267
+ readonly local: "local";
1268
+ readonly coordinated: "coordinated";
1269
+ }>;
1270
+ generation: z.ZodString;
1271
+ deploymentOrder: z.ZodOptional<z.ZodNumber>;
1272
+ supervisorId: z.ZodUUID;
1273
+ shardId: z.ZodNumber;
1274
+ shardCount: z.ZodNumber;
1275
+ fencingToken: z.ZodNumber;
1276
+ }, z.core.$strict>;
1277
+ ok: z.ZodLiteral<false>;
1278
+ safeCode: z.ZodString;
1279
+ }, z.core.$strict>], "ok">;
1280
+ export type ShardNumericCommittedResponse = z.infer<typeof shardNumericCommittedResponseSchema>;
818
1281
  export declare const supervisorMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
819
1282
  version: z.ZodLiteral<1>;
820
1283
  type: z.ZodLiteral<"helyx.control.request">;
@@ -825,6 +1288,10 @@ export declare const supervisorMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
825
1288
  operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
826
1289
  kind: z.ZodLiteral<"guild.state.get">;
827
1290
  guildId: z.ZodString;
1291
+ }, z.core.$strict>, z.ZodObject<{
1292
+ kind: z.ZodLiteral<"guild.presence.list">;
1293
+ guildIds: z.ZodArray<z.ZodString>;
1294
+ correlationId: z.ZodUUID;
828
1295
  }, z.core.$strict>, z.ZodObject<{
829
1296
  actorUserId: z.ZodString;
830
1297
  correlationId: z.ZodString;
@@ -890,6 +1357,16 @@ export declare const supervisorMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
890
1357
  guildId: z.ZodString;
891
1358
  moduleId: z.ZodString;
892
1359
  actionId: z.ZodString;
1360
+ }, z.core.$strict>, z.ZodObject<{
1361
+ kind: z.ZodLiteral<"guild.module.resource.access">;
1362
+ guildId: z.ZodString;
1363
+ moduleId: z.ZodString;
1364
+ resourceType: z.ZodString;
1365
+ operation: z.ZodEnum<{
1366
+ list: "list";
1367
+ read: "read";
1368
+ }>;
1369
+ actorUserId: z.ZodString;
893
1370
  }, z.core.$strict>, z.ZodObject<{
894
1371
  actorUserId: z.ZodString;
895
1372
  correlationId: z.ZodString;
@@ -970,6 +1447,7 @@ export declare const supervisorMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
970
1447
  actionId: z.ZodString;
971
1448
  expectedRevision: z.ZodNumber;
972
1449
  value: z.ZodRecord<z.ZodString, z.ZodCustom<ManagedResourceValue, ManagedResourceValue>>;
1450
+ actorAuthenticatedAt: z.ZodOptional<z.ZodISODateTime>;
973
1451
  }, z.core.$strict>, z.ZodObject<{
974
1452
  kind: z.ZodLiteral<"support.notification.send">;
975
1453
  guildId: z.ZodString;
@@ -993,6 +1471,100 @@ export declare const supervisorMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
993
1471
  readonly dashboard_security: "dashboard_security";
994
1472
  readonly discord_command: "discord_command";
995
1473
  }>;
1474
+ }, z.core.$strict>, z.ZodObject<{
1475
+ kind: z.ZodLiteral<"verification.result.accept">;
1476
+ envelope: z.ZodObject<{
1477
+ payload: z.ZodObject<{
1478
+ protocolVersion: z.ZodLiteral<"1.0">;
1479
+ scoreVersion: z.ZodString;
1480
+ policyVersion: z.ZodString;
1481
+ installationId: z.ZodUUID;
1482
+ deploymentSourceClassification: z.ZodEnum<{
1483
+ helyx_hosted: "helyx_hosted";
1484
+ self_hosted_reported: "self_hosted_reported";
1485
+ }>;
1486
+ evidenceSources: z.ZodObject<{
1487
+ discord: z.ZodEnum<{
1488
+ helyx_hosted: "helyx_hosted";
1489
+ self_hosted_reported: "self_hosted_reported";
1490
+ }>;
1491
+ browser: z.ZodLiteral<"helyx_observed_web">;
1492
+ network: z.ZodLiteral<"provider_observed">;
1493
+ }, z.core.$strict>;
1494
+ guildId: z.ZodString;
1495
+ userId: z.ZodString;
1496
+ challengeId: z.ZodUUID;
1497
+ attemptId: z.ZodUUID;
1498
+ decision: z.ZodEnum<{
1499
+ pass: "pass";
1500
+ review: "review";
1501
+ deny: "deny";
1502
+ temporary_failure: "temporary_failure";
1503
+ }>;
1504
+ riskScore: z.ZodNullable<z.ZodNumber>;
1505
+ riskBand: z.ZodEnum<{
1506
+ low: "low";
1507
+ medium: "medium";
1508
+ high: "high";
1509
+ incomplete: "incomplete";
1510
+ }>;
1511
+ reasonCodes: z.ZodArray<z.ZodEnum<{
1512
+ "network.proxy": "network.proxy";
1513
+ "network.vpn": "network.vpn";
1514
+ "network.compromised": "network.compromised";
1515
+ "network.scraper": "network.scraper";
1516
+ "network.tor": "network.tor";
1517
+ "network.hosting": "network.hosting";
1518
+ "network.anonymous": "network.anonymous";
1519
+ "network.country_policy": "network.country_policy";
1520
+ "account.too_new": "account.too_new";
1521
+ "account.name_quarantined": "account.name_quarantined";
1522
+ "relationship.exact_device_server_enforced": "relationship.exact_device_server_enforced";
1523
+ "relationship.strong_server_enforced": "relationship.strong_server_enforced";
1524
+ "relationship.exact_device": "relationship.exact_device";
1525
+ "relationship.strong": "relationship.strong";
1526
+ "relationship.possible": "relationship.possible";
1527
+ "relationship.ip_only": "relationship.ip_only";
1528
+ "abuse.concurrent_submission": "abuse.concurrent_submission";
1529
+ "abuse.token_replay": "abuse.token_replay";
1530
+ "trust.prior_server_success": "trust.prior_server_success";
1531
+ "trust.other_server_success": "trust.other_server_success";
1532
+ "trust.reviewed_public_flag": "trust.reviewed_public_flag";
1533
+ "rule.account_age": "rule.account_age";
1534
+ "rule.network_category": "rule.network_category";
1535
+ "rule.country": "rule.country";
1536
+ "rule.banned_account_relationship": "rule.banned_account_relationship";
1537
+ "evidence.network_incomplete": "evidence.network_incomplete";
1538
+ "service.temporary_failure": "service.temporary_failure";
1539
+ }>>;
1540
+ overridingRule: z.ZodOptional<z.ZodEnum<{
1541
+ "rule.account_age": "rule.account_age";
1542
+ "rule.network_category": "rule.network_category";
1543
+ "rule.country": "rule.country";
1544
+ "rule.banned_account_relationship": "rule.banned_account_relationship";
1545
+ }>>;
1546
+ actionBoundary: z.ZodObject<{
1547
+ recommendedAction: z.ZodEnum<{
1548
+ none: "none";
1549
+ grant_role: "grant_role";
1550
+ kick: "kick";
1551
+ ban: "ban";
1552
+ }>;
1553
+ allowedActions: z.ZodArray<z.ZodEnum<{
1554
+ none: "none";
1555
+ grant_role: "grant_role";
1556
+ kick: "kick";
1557
+ ban: "ban";
1558
+ }>>;
1559
+ }, z.core.$strict>;
1560
+ issuedAt: z.ZodISODateTime;
1561
+ expiresAt: z.ZodISODateTime;
1562
+ resultNonce: z.ZodString;
1563
+ }, z.core.$strict>;
1564
+ signature: z.ZodString;
1565
+ keyId: z.ZodString;
1566
+ algorithm: z.ZodLiteral<"Ed25519">;
1567
+ }, z.core.$strict>;
996
1568
  }, z.core.$strict>, z.ZodObject<{
997
1569
  kind: z.ZodLiteral<"privacy.providers.list">;
998
1570
  }, z.core.$strict>, z.ZodObject<{
@@ -1154,6 +1726,45 @@ export declare const supervisorMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1154
1726
  payload: z.ZodRecord<z.ZodString, z.ZodString>;
1155
1727
  claimedGeneration: z.ZodNumber;
1156
1728
  }, z.core.$strict>], "delivery">;
1729
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1730
+ version: z.ZodLiteral<1>;
1731
+ type: z.ZodLiteral<"helyx.numeric.response">;
1732
+ requestId: z.ZodUUID;
1733
+ ok: z.ZodLiteral<true>;
1734
+ result: z.ZodUnknown;
1735
+ }, z.core.$strict>, z.ZodObject<{
1736
+ version: z.ZodLiteral<1>;
1737
+ type: z.ZodLiteral<"helyx.numeric.response">;
1738
+ requestId: z.ZodUUID;
1739
+ ok: z.ZodLiteral<false>;
1740
+ safeCode: z.ZodString;
1741
+ }, z.core.$strict>], "ok">, z.ZodObject<{
1742
+ version: z.ZodLiteral<1>;
1743
+ type: z.ZodLiteral<"helyx.numeric.committed">;
1744
+ requestId: z.ZodUUID;
1745
+ deadlineAt: z.ZodISODateTime;
1746
+ identity: z.ZodObject<{
1747
+ version: z.ZodLiteral<1>;
1748
+ mode: z.ZodEnum<{
1749
+ readonly auto: "auto";
1750
+ readonly fixed: "fixed";
1751
+ }>;
1752
+ scope: z.ZodEnum<{
1753
+ readonly local: "local";
1754
+ readonly coordinated: "coordinated";
1755
+ }>;
1756
+ generation: z.ZodString;
1757
+ deploymentOrder: z.ZodOptional<z.ZodNumber>;
1758
+ supervisorId: z.ZodUUID;
1759
+ shardId: z.ZodNumber;
1760
+ shardCount: z.ZodNumber;
1761
+ fencingToken: z.ZodNumber;
1762
+ }, z.core.$strict>;
1763
+ scope: z.ZodObject<{
1764
+ moduleId: z.ZodString;
1765
+ collection: z.ZodString;
1766
+ }, z.core.$strict>;
1767
+ payload: z.ZodUnknown;
1157
1768
  }, z.core.$strict>, z.ZodObject<{
1158
1769
  version: z.ZodLiteral<1>;
1159
1770
  type: z.ZodLiteral<"helyx.lease.heartbeat">;
@@ -1255,6 +1866,205 @@ export declare const workerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodDiscrimi
1255
1866
  safeCode: z.ZodString;
1256
1867
  }, z.core.$strict>], "outcome">;
1257
1868
  }, z.core.$strict>, z.ZodObject<{
1869
+ version: z.ZodLiteral<1>;
1870
+ type: z.ZodLiteral<"helyx.numeric.request">;
1871
+ requestId: z.ZodUUID;
1872
+ deadlineAt: z.ZodISODateTime;
1873
+ identity: z.ZodObject<{
1874
+ version: z.ZodLiteral<1>;
1875
+ mode: z.ZodEnum<{
1876
+ readonly auto: "auto";
1877
+ readonly fixed: "fixed";
1878
+ }>;
1879
+ scope: z.ZodEnum<{
1880
+ readonly local: "local";
1881
+ readonly coordinated: "coordinated";
1882
+ }>;
1883
+ generation: z.ZodString;
1884
+ deploymentOrder: z.ZodOptional<z.ZodNumber>;
1885
+ supervisorId: z.ZodUUID;
1886
+ shardId: z.ZodNumber;
1887
+ shardCount: z.ZodNumber;
1888
+ fencingToken: z.ZodNumber;
1889
+ }, z.core.$strict>;
1890
+ operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
1891
+ occurredAt: z.ZodISODateTime;
1892
+ cooldownSeconds: z.ZodNumber;
1893
+ identity: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1894
+ type: z.ZodLiteral<"string">;
1895
+ value: z.ZodString;
1896
+ }, z.core.$strict>, z.ZodObject<{
1897
+ type: z.ZodLiteral<"boolean">;
1898
+ value: z.ZodBoolean;
1899
+ }, z.core.$strict>, z.ZodObject<{
1900
+ type: z.ZodLiteral<"number">;
1901
+ value: z.ZodNumber;
1902
+ }, z.core.$strict>, z.ZodObject<{
1903
+ type: z.ZodLiteral<"date">;
1904
+ value: z.ZodISODateTime;
1905
+ }, z.core.$strict>], "type">>;
1906
+ insert: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1907
+ type: z.ZodLiteral<"string">;
1908
+ value: z.ZodString;
1909
+ }, z.core.$strict>, z.ZodObject<{
1910
+ type: z.ZodLiteral<"boolean">;
1911
+ value: z.ZodBoolean;
1912
+ }, z.core.$strict>, z.ZodObject<{
1913
+ type: z.ZodLiteral<"number">;
1914
+ value: z.ZodNumber;
1915
+ }, z.core.$strict>, z.ZodObject<{
1916
+ type: z.ZodLiteral<"date">;
1917
+ value: z.ZodISODateTime;
1918
+ }, z.core.$strict>], "type">>;
1919
+ increments: z.ZodRecord<z.ZodString, z.ZodNumber>;
1920
+ maxima: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodISODateTime>>;
1921
+ guildId: z.ZodString;
1922
+ subjectId: z.ZodString;
1923
+ moduleId: z.ZodString;
1924
+ collection: z.ZodString;
1925
+ kind: z.ZodLiteral<"enqueue">;
1926
+ }, z.core.$strict>, z.ZodObject<{
1927
+ guildId: z.ZodString;
1928
+ subjectId: z.ZodString;
1929
+ moduleId: z.ZodString;
1930
+ collection: z.ZodString;
1931
+ kind: z.ZodLiteral<"pending.member">;
1932
+ }, z.core.$strict>, z.ZodObject<{
1933
+ guildId: z.ZodString;
1934
+ subjectId: z.ZodString;
1935
+ moduleId: z.ZodString;
1936
+ collection: z.ZodString;
1937
+ kind: z.ZodLiteral<"flush.member">;
1938
+ }, z.core.$strict>, z.ZodObject<{
1939
+ guildId: z.ZodString;
1940
+ moduleId: z.ZodString;
1941
+ collection: z.ZodString;
1942
+ kind: z.ZodLiteral<"flush.guild">;
1943
+ }, z.core.$strict>, z.ZodObject<{
1944
+ subjectId: z.ZodString;
1945
+ moduleId: z.ZodString;
1946
+ collection: z.ZodString;
1947
+ kind: z.ZodLiteral<"flush.subject">;
1948
+ }, z.core.$strict>, z.ZodObject<{
1949
+ moduleId: z.ZodString;
1950
+ collection: z.ZodString;
1951
+ kind: z.ZodLiteral<"flush.module">;
1952
+ }, z.core.$strict>, z.ZodObject<{
1953
+ barrierType: z.ZodEnum<{
1954
+ readonly member: "member";
1955
+ readonly guild: "guild";
1956
+ readonly subject: "subject";
1957
+ }>;
1958
+ guildId: z.ZodOptional<z.ZodString>;
1959
+ subjectId: z.ZodOptional<z.ZodString>;
1960
+ moduleId: z.ZodString;
1961
+ collection: z.ZodString;
1962
+ kind: z.ZodLiteral<"barrier.acquire">;
1963
+ }, z.core.$strict>, z.ZodObject<{
1964
+ barrierType: z.ZodEnum<{
1965
+ readonly member: "member";
1966
+ readonly guild: "guild";
1967
+ readonly subject: "subject";
1968
+ }>;
1969
+ guildId: z.ZodOptional<z.ZodString>;
1970
+ subjectId: z.ZodOptional<z.ZodString>;
1971
+ barrierId: z.ZodUUID;
1972
+ moduleId: z.ZodString;
1973
+ collection: z.ZodString;
1974
+ kind: z.ZodLiteral<"barrier.release">;
1975
+ }, z.core.$strict>, z.ZodObject<{
1976
+ barrierType: z.ZodEnum<{
1977
+ readonly member: "member";
1978
+ readonly guild: "guild";
1979
+ readonly subject: "subject";
1980
+ }>;
1981
+ guildId: z.ZodOptional<z.ZodString>;
1982
+ subjectId: z.ZodOptional<z.ZodString>;
1983
+ barrierId: z.ZodUUID;
1984
+ moduleId: z.ZodString;
1985
+ collection: z.ZodString;
1986
+ kind: z.ZodLiteral<"barrier.renew">;
1987
+ }, z.core.$strict>, z.ZodObject<{
1988
+ subjectId: z.ZodString;
1989
+ cutoff: z.ZodISODateTime;
1990
+ moduleId: z.ZodString;
1991
+ collection: z.ZodString;
1992
+ kind: z.ZodLiteral<"suppress.subject">;
1993
+ }, z.core.$strict>, z.ZodObject<{
1994
+ guildId: z.ZodString;
1995
+ moduleId: z.ZodString;
1996
+ collection: z.ZodString;
1997
+ kind: z.ZodLiteral<"suppress.guild">;
1998
+ }, z.core.$strict>, z.ZodObject<{
1999
+ guildId: z.ZodString;
2000
+ suppressionId: z.ZodUUID;
2001
+ moduleId: z.ZodString;
2002
+ collection: z.ZodString;
2003
+ kind: z.ZodLiteral<"release.guild">;
2004
+ }, z.core.$strict>, z.ZodObject<{
2005
+ subjectId: z.ZodString;
2006
+ suppressionId: z.ZodUUID;
2007
+ moduleId: z.ZodString;
2008
+ collection: z.ZodString;
2009
+ kind: z.ZodLiteral<"release.subject">;
2010
+ }, z.core.$strict>, z.ZodObject<{
2011
+ guildId: z.ZodString;
2012
+ subjectId: z.ZodString;
2013
+ moduleId: z.ZodString;
2014
+ collection: z.ZodString;
2015
+ kind: z.ZodLiteral<"cooldown.member.clear">;
2016
+ }, z.core.$strict>, z.ZodObject<{
2017
+ subjectId: z.ZodString;
2018
+ moduleId: z.ZodString;
2019
+ collection: z.ZodString;
2020
+ kind: z.ZodLiteral<"cooldown.subject.clear">;
2021
+ }, z.core.$strict>], "kind">;
2022
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2023
+ version: z.ZodLiteral<1>;
2024
+ type: z.ZodLiteral<"helyx.numeric.committed.response">;
2025
+ requestId: z.ZodUUID;
2026
+ identity: z.ZodObject<{
2027
+ version: z.ZodLiteral<1>;
2028
+ mode: z.ZodEnum<{
2029
+ readonly auto: "auto";
2030
+ readonly fixed: "fixed";
2031
+ }>;
2032
+ scope: z.ZodEnum<{
2033
+ readonly local: "local";
2034
+ readonly coordinated: "coordinated";
2035
+ }>;
2036
+ generation: z.ZodString;
2037
+ deploymentOrder: z.ZodOptional<z.ZodNumber>;
2038
+ supervisorId: z.ZodUUID;
2039
+ shardId: z.ZodNumber;
2040
+ shardCount: z.ZodNumber;
2041
+ fencingToken: z.ZodNumber;
2042
+ }, z.core.$strict>;
2043
+ ok: z.ZodLiteral<true>;
2044
+ }, z.core.$strict>, z.ZodObject<{
2045
+ version: z.ZodLiteral<1>;
2046
+ type: z.ZodLiteral<"helyx.numeric.committed.response">;
2047
+ requestId: z.ZodUUID;
2048
+ identity: z.ZodObject<{
2049
+ version: z.ZodLiteral<1>;
2050
+ mode: z.ZodEnum<{
2051
+ readonly auto: "auto";
2052
+ readonly fixed: "fixed";
2053
+ }>;
2054
+ scope: z.ZodEnum<{
2055
+ readonly local: "local";
2056
+ readonly coordinated: "coordinated";
2057
+ }>;
2058
+ generation: z.ZodString;
2059
+ deploymentOrder: z.ZodOptional<z.ZodNumber>;
2060
+ supervisorId: z.ZodUUID;
2061
+ shardId: z.ZodNumber;
2062
+ shardCount: z.ZodNumber;
2063
+ fencingToken: z.ZodNumber;
2064
+ }, z.core.$strict>;
2065
+ ok: z.ZodLiteral<false>;
2066
+ safeCode: z.ZodString;
2067
+ }, z.core.$strict>], "ok">, z.ZodObject<{
1258
2068
  version: z.ZodLiteral<1>;
1259
2069
  type: z.ZodLiteral<"helyx.health.update">;
1260
2070
  identity: z.ZodObject<{