@noresponse/mcp 0.11.15 → 0.11.17

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/bin/mcp-server.js CHANGED
@@ -48136,9 +48136,9 @@ var init_config = __esm(() => {
48136
48136
  SDK_METADATA = {
48137
48137
  language: "typescript",
48138
48138
  openapiDocVersion: "1",
48139
- sdkVersion: "0.11.15",
48139
+ sdkVersion: "0.11.17",
48140
48140
  genVersion: "internal",
48141
- userAgent: "noresponse-sdk/mcp-typescript 0.11.15 internal 1 @noresponse/mcp"
48141
+ userAgent: "noresponse-sdk/mcp-typescript 0.11.17 internal 1 @noresponse/mcp"
48142
48142
  };
48143
48143
  });
48144
48144
 
@@ -51535,7 +51535,11 @@ var init_conflicterrorcode = __esm(() => {
51535
51535
  "already_member",
51536
51536
  "member_limit_reached",
51537
51537
  "owner_invite_pending",
51538
- "aggregate_erased_data"
51538
+ "aggregate_erased_data",
51539
+ "event_conflict",
51540
+ "event_limit_reached",
51541
+ "screening_cap_exceeded",
51542
+ "screening_unavailable"
51539
51543
  ]).describe("Machine codes an HTTP 409 answer can carry.");
51540
51544
  });
51541
51545
 
@@ -59750,10 +59754,11 @@ var init_settings = __esm(() => {
59750
59754
  policy_version: int().describe("The monotonic settings configuration epoch, including retention changes. Zero while defaults apply. Historical assessments keep their frozen policy version; the active version reaches new assessments within a minute."),
59751
59755
  refused_sources: array(SourceId$zodSchema).describe("The sources this environment refuses, sorted; empty, the default, refuses none. An assessment leaves a refused source out: its coverage is missing (an identifier with no other source lists coverage-unavailable as unavailable) rather than not_found, and a stored result of a refused source is not reused."),
59752
59756
  retention_days: int().describe("Days an assessment is kept after it is created, 1 to 365 (default 365). Shortening hides older assessments at once."),
59757
+ screening_daily_cap: int().nullable().describe("The most the environment's screenings may spend in one UTC day, in minor units of USD (cents), 0 to 100000000; null is no cap. Default 50000. A screening whose estimated_spend exceeds the cap less the day's recorded spend and what open screenings may still spend answers 409 screening_cap_exceeded."),
59753
59758
  updated_at: string2().optional().describe("When the policy last changed. Absent while the defaults apply."),
59754
59759
  updated_by: string2().optional().describe("Who last changed the policy: the member's external user id for a change made through the console, the prefix (nrk_<environment>_<key id>) of the management key that made it, or NoResponse. Absent while the defaults apply."),
59755
59760
  workspace_id: string2().describe("The workspace id, which is also its live environment's workspace id; the test environment's is the same id with :test appended. A workspace created through the API is tnt_ and a 26-character ULID.")
59756
- }).describe("One environment's settings: how long its assessments are kept, and for each flow the risk thresholds that decide it and the depth a request that names none is served at, and the sources it refuses. Live and test each have their own. A flow without thresholds of its own uses account_creation's (inherits_account_creation). Every change is recorded in the audit log as settings.updated, with who made it.");
59761
+ }).describe("One environment's settings: how long its assessments are kept, and for each flow the risk thresholds that decide it and the depth a request that names none is served at, the sources it refuses, and the daily cap on screening spend. Live and test each have their own. A flow without thresholds of its own uses account_creation's (inherits_account_creation). Every change is recorded in the audit log as settings.updated, with who made it.");
59757
59762
  });
59758
59763
 
59759
59764
  // src/models/publishpolicyevaluationop.ts
@@ -59914,6 +59919,2643 @@ Publish an explicitly reviewed candidate with its exact manifest, input and resu
59914
59919
  };
59915
59920
  });
59916
59921
 
59922
+ // src/models/attendeebatchitemoutcome.ts
59923
+ var AttendeeBatchItemOutcome$zodSchema;
59924
+ var init_attendeebatchitemoutcome = __esm(() => {
59925
+ init_zod();
59926
+ AttendeeBatchItemOutcome$zodSchema = _enum([
59927
+ "created",
59928
+ "updated",
59929
+ "unchanged"
59930
+ ]).describe("unchanged: the row matched an attendee with the same details.");
59931
+ });
59932
+
59933
+ // src/models/attendeebatchitem.ts
59934
+ var AttendeeBatchItem$zodSchema;
59935
+ var init_attendeebatchitem = __esm(() => {
59936
+ init_zod();
59937
+ init_attendeebatchitemoutcome();
59938
+ AttendeeBatchItem$zodSchema = object({
59939
+ id: string2(),
59940
+ index: int().describe("The row's position in the request."),
59941
+ outcome: AttendeeBatchItemOutcome$zodSchema.describe("unchanged: the row matched an attendee with the same details.")
59942
+ });
59943
+ });
59944
+
59945
+ // src/models/attendeebatch.ts
59946
+ var AttendeeBatch$zodSchema;
59947
+ var init_attendeebatch = __esm(() => {
59948
+ init_zod();
59949
+ init_attendeebatchitem();
59950
+ AttendeeBatch$zodSchema = object({
59951
+ created: int(),
59952
+ items: array(AttendeeBatchItem$zodSchema),
59953
+ updated: int()
59954
+ }).describe("What the batch did, row by row.");
59955
+ });
59956
+
59957
+ // src/models/handleplatform.ts
59958
+ var HandlePlatform$zodSchema;
59959
+ var init_handleplatform = __esm(() => {
59960
+ init_zod();
59961
+ HandlePlatform$zodSchema = _enum([
59962
+ "instagram",
59963
+ "x",
59964
+ "bluesky",
59965
+ "youtube",
59966
+ "tiktok",
59967
+ "facebook",
59968
+ "threads",
59969
+ "reddit",
59970
+ "telegram",
59971
+ "linkedin"
59972
+ ]);
59973
+ });
59974
+
59975
+ // src/models/handle.ts
59976
+ var Handle$zodSchema;
59977
+ var init_handle = __esm(() => {
59978
+ init_zod();
59979
+ init_handleplatform();
59980
+ Handle$zodSchema = object({
59981
+ handle: string2().describe("The account's handle, without a leading @."),
59982
+ platform: HandlePlatform$zodSchema
59983
+ }).describe("An account the attendee is known to hold.");
59984
+ });
59985
+
59986
+ // src/models/attendeeidentity.ts
59987
+ var AttendeeIdentity$zodSchema;
59988
+ var init_attendeeidentity = __esm(() => {
59989
+ init_zod();
59990
+ init_handle();
59991
+ AttendeeIdentity$zodSchema = object({
59992
+ city: string2().optional().describe("Where the attendee lives."),
59993
+ company: string2().optional().describe("Where the attendee works."),
59994
+ email: string2().optional().describe("The attendee's email."),
59995
+ external_id: string2().optional().describe("Your own id for the attendee, unique within the event. A later row with the same external id updates this attendee."),
59996
+ handles: array(Handle$zodSchema).optional().describe("Accounts the attendee is known to hold, at most 20."),
59997
+ name: string2().describe("The attendee's full name."),
59998
+ phone: string2().optional().describe("The attendee's phone in E.164 form.")
59999
+ }).describe("What you know about an attendee. Stored encrypted under the workspace's key.");
60000
+ });
60001
+
60002
+ // src/models/attendeebatchrequest.ts
60003
+ var AttendeeBatchRequest$zodSchema;
60004
+ var init_attendeebatchrequest = __esm(() => {
60005
+ init_zod();
60006
+ init_attendeeidentity();
60007
+ AttendeeBatchRequest$zodSchema = object({
60008
+ attendees: array(AttendeeIdentity$zodSchema)
60009
+ }).describe("Adds or updates 1 to 500 attendees. A row naming an existing attendee of the event (the same external_id, else the same email, else the same phone) updates it.");
60010
+ });
60011
+
60012
+ // src/models/addattendeesop.ts
60013
+ var AddAttendeesRequest$zodSchema, AddAttendeesResponseResult$zodSchema, AddAttendeesResponse$zodSchema;
60014
+ var init_addattendeesop = __esm(() => {
60015
+ init_zod();
60016
+ init_attendeebatch();
60017
+ init_attendeebatchrequest();
60018
+ init_authenticationerror();
60019
+ init_badrequesterror();
60020
+ init_conflicterror();
60021
+ init_keyenvironment();
60022
+ init_notfounderror();
60023
+ init_permissiondeniederror();
60024
+ init_ratelimiterror();
60025
+ AddAttendeesRequest$zodSchema = object({
60026
+ body: AttendeeBatchRequest$zodSchema,
60027
+ environment: KeyEnvironment$zodSchema.describe("The environment: live or test. Each has its own settings. Any other value answers 400. An API key reads and changes only its own environment's; the other answers 404."),
60028
+ event_id: string2(),
60029
+ idempotencyKey: string2().describe("Opaque client key, 16 to 128 characters of [A-Za-z0-9._:-] (a UUID or ULID fits). Scoped to the workspace principal and bound to the canonical body for 24 hours. Optional: the SDK generates a UUID when you omit it and sends the same key on every retry of the call.").optional(),
60030
+ workspace_id: string2().describe("Your workspace id, as each key lists it in workspace_id. Another workspace, a malformed id and a test environment's id answer 404.")
60031
+ });
60032
+ AddAttendeesResponseResult$zodSchema = union([
60033
+ BadRequestError$zodSchema,
60034
+ AuthenticationError$zodSchema,
60035
+ PermissionDeniedError$zodSchema,
60036
+ NotFoundError$zodSchema,
60037
+ ConflictError$zodSchema,
60038
+ RateLimitError$zodSchema,
60039
+ AttendeeBatch$zodSchema
60040
+ ]);
60041
+ AddAttendeesResponse$zodSchema = object({
60042
+ Headers: record(string2(), array(string2())).default({}),
60043
+ Result: union([
60044
+ BadRequestError$zodSchema,
60045
+ AuthenticationError$zodSchema,
60046
+ PermissionDeniedError$zodSchema,
60047
+ NotFoundError$zodSchema,
60048
+ ConflictError$zodSchema,
60049
+ RateLimitError$zodSchema,
60050
+ AttendeeBatch$zodSchema
60051
+ ])
60052
+ });
60053
+ });
60054
+
60055
+ // src/funcs/eventsAddAttendees.ts
60056
+ function eventsAddAttendees(client$, request, options) {
60057
+ return new APIPromise($do40(client$, request, options));
60058
+ }
60059
+ async function $do40(client$, request, options) {
60060
+ const parsed$ = safeParse2(request, (value$) => AddAttendeesRequest$zodSchema.parse(value$), "Input validation failed");
60061
+ if (!parsed$.ok) {
60062
+ return [parsed$, { status: "invalid" }];
60063
+ }
60064
+ const payload$ = parsed$.value;
60065
+ const body$ = encodeJSON("body", payload$.body, { explode: true });
60066
+ const pathParams$ = {
60067
+ environment: encodeSimple("environment", payload$.environment, {
60068
+ explode: false,
60069
+ charEncoding: "percent"
60070
+ }),
60071
+ event_id: encodeSimple("event_id", payload$.event_id, {
60072
+ explode: false,
60073
+ charEncoding: "percent"
60074
+ }),
60075
+ workspace_id: encodeSimple("workspace_id", payload$.workspace_id, {
60076
+ explode: false,
60077
+ charEncoding: "percent"
60078
+ })
60079
+ };
60080
+ const path$ = pathToFunc("/v1/workspaces/{workspace_id}/events/{environment}/{event_id}/attendees")(pathParams$);
60081
+ const headers$ = new Headers(compactMap({
60082
+ "Content-Type": "application/json",
60083
+ Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0",
60084
+ "Idempotency-Key": encodeSimple("Idempotency-Key", payload$.idempotencyKey, { explode: false, charEncoding: "none" })
60085
+ }));
60086
+ const securityInput = await extractSecurity(client$._options.security);
60087
+ const requestSecurity = resolveGlobalSecurity(securityInput);
60088
+ const context = {
60089
+ options: client$._options,
60090
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
60091
+ operationID: "addAttendees",
60092
+ oAuth2Scopes: null,
60093
+ resolvedSecurity: requestSecurity,
60094
+ securitySource: client$._options.security,
60095
+ retryConfig: options?.retries || client$._options.retryConfig || {
60096
+ strategy: "backoff",
60097
+ backoff: {
60098
+ initialInterval: 500,
60099
+ maxInterval: 8000,
60100
+ exponent: 2,
60101
+ maxElapsedTime: 30000
60102
+ },
60103
+ retryConnectionErrors: true
60104
+ },
60105
+ retryCodes: options?.retryCodes || [
60106
+ "408",
60107
+ "429",
60108
+ "5XX"
60109
+ ]
60110
+ };
60111
+ const requestRes = client$._createRequest(context, {
60112
+ security: requestSecurity,
60113
+ method: "POST",
60114
+ baseURL: options?.serverURL,
60115
+ path: path$,
60116
+ headers: headers$,
60117
+ body: body$,
60118
+ userAgent: client$._options.userAgent,
60119
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
60120
+ }, options);
60121
+ if (!requestRes.ok) {
60122
+ return [requestRes, { status: "invalid" }];
60123
+ }
60124
+ const req$ = requestRes.value;
60125
+ const doResult = await client$._do(req$, {
60126
+ context,
60127
+ errorCodes: [],
60128
+ retryConfig: context.retryConfig,
60129
+ retryCodes: context.retryCodes
60130
+ });
60131
+ if (!doResult.ok) {
60132
+ return [doResult, { status: "request-error", request: req$ }];
60133
+ }
60134
+ return [doResult, {
60135
+ status: "complete",
60136
+ request: req$,
60137
+ response: doResult.value
60138
+ }];
60139
+ }
60140
+ var init_eventsAddAttendees = __esm(() => {
60141
+ init_encodings();
60142
+ init_primitives();
60143
+ init_schemas3();
60144
+ init_security();
60145
+ init_url();
60146
+ init_addattendeesop();
60147
+ init_async();
60148
+ });
60149
+
60150
+ // src/mcp-server/tools/eventsAddAttendees.ts
60151
+ var args41, tool$eventsAddAttendees;
60152
+ var init_eventsAddAttendees2 = __esm(() => {
60153
+ init_eventsAddAttendees();
60154
+ init_addattendeesop();
60155
+ init_tools();
60156
+ args41 = {
60157
+ request: AddAttendeesRequest$zodSchema
60158
+ };
60159
+ tool$eventsAddAttendees = {
60160
+ name: "add_attendees",
60161
+ description: `Add or update a batch of attendees.
60162
+
60163
+ Add or update 1 to 500 attendees with an Idempotency-Key. A row with the same external_id, else email, else phone as an existing attendee updates it. Identities are stored encrypted.`,
60164
+ annotations: {
60165
+ title: "Add or update up to 500 attendees with an idempotency key",
60166
+ destructiveHint: false,
60167
+ idempotentHint: true,
60168
+ openWorldHint: false,
60169
+ readOnlyHint: false
60170
+ },
60171
+ args: args41,
60172
+ tool: async (client, args, ctx) => {
60173
+ const [result] = await eventsAddAttendees(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
60174
+ if (!result.ok) {
60175
+ return {
60176
+ content: [{ type: "text", text: result.error.message }],
60177
+ isError: true
60178
+ };
60179
+ }
60180
+ return formatResult(result.value);
60181
+ }
60182
+ };
60183
+ });
60184
+
60185
+ // src/models/screeningdepth.ts
60186
+ var ScreeningDepth$zodSchema;
60187
+ var init_screeningdepth = __esm(() => {
60188
+ init_zod();
60189
+ ScreeningDepth$zodSchema = _enum([
60190
+ "standard"
60191
+ ]);
60192
+ });
60193
+
60194
+ // src/models/screeningstatus.ts
60195
+ var ScreeningStatus$zodSchema;
60196
+ var init_screeningstatus = __esm(() => {
60197
+ init_zod();
60198
+ ScreeningStatus$zodSchema = _enum([
60199
+ "queued",
60200
+ "running",
60201
+ "completed",
60202
+ "partial",
60203
+ "failed",
60204
+ "cancelled"
60205
+ ]).describe("partial finished with some attendees not covered; attendees_failed counts them.");
60206
+ });
60207
+
60208
+ // src/models/screening.ts
60209
+ var ScreeningPlatform$zodSchema, Screening$zodSchema;
60210
+ var init_screening = __esm(() => {
60211
+ init_zod();
60212
+ init_auditsettingsenvironment();
60213
+ init_screeningdepth();
60214
+ init_screeningstatus();
60215
+ ScreeningPlatform$zodSchema = _enum([
60216
+ "instagram",
60217
+ "x",
60218
+ "bluesky",
60219
+ "youtube",
60220
+ "tiktok",
60221
+ "facebook",
60222
+ "threads",
60223
+ "reddit",
60224
+ "telegram",
60225
+ "linkedin"
60226
+ ]);
60227
+ Screening$zodSchema = object({
60228
+ attendees_done: int().describe("Attendees screened so far, failed ones included."),
60229
+ attendees_failed: int(),
60230
+ attendees_flagged: int(),
60231
+ attendees_total: int().describe("Attendees selected when the screening started."),
60232
+ created_at: string2(),
60233
+ depth: ScreeningDepth$zodSchema,
60234
+ environment: AuditSettingsEnvironment$zodSchema,
60235
+ error_code: string2().optional().describe("Why a failed or cancelled screening stopped."),
60236
+ estimated_spend: int().describe("What the screening was estimated to cost when it started, in minor units of USD (cents): its attendees at its depth and platforms. Until the screening finishes, what it has not yet spent counts against the environment's screening_daily_cap."),
60237
+ event_id: string2(),
60238
+ expires_at: string2().describe("A screening still running then fails with error_code expired."),
60239
+ finished_at: string2().optional(),
60240
+ id: string2(),
60241
+ platforms: array(ScreeningPlatform$zodSchema),
60242
+ requested_by: string2(),
60243
+ spent: int().describe("What the attendees it has screened recorded, in minor units of USD. Each counts toward the UTC day it was recorded on; a failed attendee records nothing."),
60244
+ started_at: string2().optional(),
60245
+ status: ScreeningStatus$zodSchema.describe("partial finished with some attendees not covered; attendees_failed counts them.")
60246
+ }).describe("A screening and its progress.");
60247
+ });
60248
+
60249
+ // src/models/screeningcancelrequest.ts
60250
+ var ScreeningCancelRequest$zodSchema;
60251
+ var init_screeningcancelrequest = __esm(() => {
60252
+ init_zod();
60253
+ ScreeningCancelRequest$zodSchema = object({}).describe("An empty object.");
60254
+ });
60255
+
60256
+ // src/models/cancelscreeningop.ts
60257
+ var CancelScreeningRequest$zodSchema, CancelScreeningResponseResult$zodSchema, CancelScreeningResponse$zodSchema;
60258
+ var init_cancelscreeningop = __esm(() => {
60259
+ init_zod();
60260
+ init_authenticationerror();
60261
+ init_badrequesterror();
60262
+ init_conflicterror();
60263
+ init_keyenvironment();
60264
+ init_notfounderror();
60265
+ init_permissiondeniederror();
60266
+ init_ratelimiterror();
60267
+ init_screening();
60268
+ init_screeningcancelrequest();
60269
+ CancelScreeningRequest$zodSchema = object({
60270
+ body: ScreeningCancelRequest$zodSchema,
60271
+ environment: KeyEnvironment$zodSchema.describe("The environment: live or test. Each has its own settings. Any other value answers 400. An API key reads and changes only its own environment's; the other answers 404."),
60272
+ event_id: string2(),
60273
+ screening_id: string2(),
60274
+ workspace_id: string2().describe("Your workspace id, as each key lists it in workspace_id. Another workspace, a malformed id and a test environment's id answer 404.")
60275
+ });
60276
+ CancelScreeningResponseResult$zodSchema = union([
60277
+ Screening$zodSchema,
60278
+ BadRequestError$zodSchema,
60279
+ AuthenticationError$zodSchema,
60280
+ PermissionDeniedError$zodSchema,
60281
+ NotFoundError$zodSchema,
60282
+ ConflictError$zodSchema,
60283
+ RateLimitError$zodSchema
60284
+ ]);
60285
+ CancelScreeningResponse$zodSchema = object({
60286
+ Headers: record(string2(), array(string2())).default({}),
60287
+ Result: union([
60288
+ Screening$zodSchema,
60289
+ BadRequestError$zodSchema,
60290
+ AuthenticationError$zodSchema,
60291
+ PermissionDeniedError$zodSchema,
60292
+ NotFoundError$zodSchema,
60293
+ ConflictError$zodSchema,
60294
+ RateLimitError$zodSchema
60295
+ ])
60296
+ });
60297
+ });
60298
+
60299
+ // src/funcs/eventsCancelScreening.ts
60300
+ function eventsCancelScreening(client$, request, options) {
60301
+ return new APIPromise($do41(client$, request, options));
60302
+ }
60303
+ async function $do41(client$, request, options) {
60304
+ const parsed$ = safeParse2(request, (value$) => CancelScreeningRequest$zodSchema.parse(value$), "Input validation failed");
60305
+ if (!parsed$.ok) {
60306
+ return [parsed$, { status: "invalid" }];
60307
+ }
60308
+ const payload$ = parsed$.value;
60309
+ const body$ = encodeJSON("body", payload$.body, { explode: true });
60310
+ const pathParams$ = {
60311
+ environment: encodeSimple("environment", payload$.environment, {
60312
+ explode: false,
60313
+ charEncoding: "percent"
60314
+ }),
60315
+ event_id: encodeSimple("event_id", payload$.event_id, {
60316
+ explode: false,
60317
+ charEncoding: "percent"
60318
+ }),
60319
+ screening_id: encodeSimple("screening_id", payload$.screening_id, {
60320
+ explode: false,
60321
+ charEncoding: "percent"
60322
+ }),
60323
+ workspace_id: encodeSimple("workspace_id", payload$.workspace_id, {
60324
+ explode: false,
60325
+ charEncoding: "percent"
60326
+ })
60327
+ };
60328
+ const path$ = pathToFunc("/v1/workspaces/{workspace_id}/events/{environment}/{event_id}/screenings/{screening_id}/cancel")(pathParams$);
60329
+ const headers$ = new Headers(compactMap({
60330
+ "Content-Type": "application/json",
60331
+ Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
60332
+ }));
60333
+ const securityInput = await extractSecurity(client$._options.security);
60334
+ const requestSecurity = resolveGlobalSecurity(securityInput);
60335
+ const context = {
60336
+ options: client$._options,
60337
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
60338
+ operationID: "cancelScreening",
60339
+ oAuth2Scopes: null,
60340
+ resolvedSecurity: requestSecurity,
60341
+ securitySource: client$._options.security,
60342
+ retryConfig: options?.retries || client$._options.retryConfig || {
60343
+ strategy: "backoff",
60344
+ backoff: {
60345
+ initialInterval: 500,
60346
+ maxInterval: 8000,
60347
+ exponent: 2,
60348
+ maxElapsedTime: 30000
60349
+ },
60350
+ retryConnectionErrors: true
60351
+ },
60352
+ retryCodes: options?.retryCodes || [
60353
+ "408",
60354
+ "429",
60355
+ "5XX"
60356
+ ]
60357
+ };
60358
+ const requestRes = client$._createRequest(context, {
60359
+ security: requestSecurity,
60360
+ method: "POST",
60361
+ baseURL: options?.serverURL,
60362
+ path: path$,
60363
+ headers: headers$,
60364
+ body: body$,
60365
+ userAgent: client$._options.userAgent,
60366
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
60367
+ }, options);
60368
+ if (!requestRes.ok) {
60369
+ return [requestRes, { status: "invalid" }];
60370
+ }
60371
+ const req$ = requestRes.value;
60372
+ const doResult = await client$._do(req$, {
60373
+ context,
60374
+ errorCodes: [],
60375
+ retryConfig: context.retryConfig,
60376
+ retryCodes: context.retryCodes
60377
+ });
60378
+ if (!doResult.ok) {
60379
+ return [doResult, { status: "request-error", request: req$ }];
60380
+ }
60381
+ return [doResult, {
60382
+ status: "complete",
60383
+ request: req$,
60384
+ response: doResult.value
60385
+ }];
60386
+ }
60387
+ var init_eventsCancelScreening = __esm(() => {
60388
+ init_encodings();
60389
+ init_primitives();
60390
+ init_schemas3();
60391
+ init_security();
60392
+ init_url();
60393
+ init_cancelscreeningop();
60394
+ init_async();
60395
+ });
60396
+
60397
+ // src/mcp-server/tools/eventsCancelScreening.ts
60398
+ var args42, tool$eventsCancelScreening;
60399
+ var init_eventsCancelScreening2 = __esm(() => {
60400
+ init_eventsCancelScreening();
60401
+ init_cancelscreeningop();
60402
+ init_tools();
60403
+ args42 = {
60404
+ request: CancelScreeningRequest$zodSchema
60405
+ };
60406
+ tool$eventsCancelScreening = {
60407
+ name: "cancel_screening",
60408
+ description: `Cancel a screening.
60409
+
60410
+ Stop a queued or running screening. Attendees already screened keep their results.`,
60411
+ annotations: {
60412
+ title: "Stop a queued or running screening",
60413
+ destructiveHint: true,
60414
+ idempotentHint: true,
60415
+ openWorldHint: false,
60416
+ readOnlyHint: false
60417
+ },
60418
+ args: args42,
60419
+ tool: async (client, args, ctx) => {
60420
+ const [result] = await eventsCancelScreening(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
60421
+ if (!result.ok) {
60422
+ return {
60423
+ content: [{ type: "text", text: result.error.message }],
60424
+ isError: true
60425
+ };
60426
+ }
60427
+ return formatResult(result.value);
60428
+ }
60429
+ };
60430
+ });
60431
+
60432
+ // src/models/principal.ts
60433
+ var Principal$zodSchema;
60434
+ var init_principal = __esm(() => {
60435
+ init_zod();
60436
+ Principal$zodSchema = object({
60437
+ aliases: array(string2()).optional().describe("Other names the principal goes by, at most 10."),
60438
+ name: string2().describe("The principal's name.")
60439
+ }).describe("A person the event protects.");
60440
+ });
60441
+
60442
+ // src/models/event.ts
60443
+ var Event$zodSchema;
60444
+ var init_event = __esm(() => {
60445
+ init_zod();
60446
+ init_auditsettingsenvironment();
60447
+ init_principal();
60448
+ Event$zodSchema = object({
60449
+ attendees: int().describe("How many attendees the event holds."),
60450
+ created_at: string2(),
60451
+ created_by: string2().describe("The member or key label that created the event."),
60452
+ ends_at: string2().describe("When the event ends, at or after its start; the start when omitted."),
60453
+ environment: AuditSettingsEnvironment$zodSchema,
60454
+ host: string2().optional().describe("The organisation hosting the event."),
60455
+ id: string2(),
60456
+ name: string2().describe("The event's name."),
60457
+ principals: array(Principal$zodSchema).describe("The people the event protects."),
60458
+ purge_after: string2().describe("When raw collected items and unmatched candidate profiles are purged: 30 days after the event ends."),
60459
+ starts_at: string2().describe("When the event starts."),
60460
+ topics: array(string2()).describe("Sensitive topics."),
60461
+ updated_at: string2(),
60462
+ venue: string2().optional().describe("Where the event is held."),
60463
+ version: int().describe("Goes up by one with every change.")
60464
+ }).describe("An event and its screening context.");
60465
+ });
60466
+
60467
+ // src/models/eventrequest.ts
60468
+ var EventRequest$zodSchema;
60469
+ var init_eventrequest = __esm(() => {
60470
+ init_zod();
60471
+ init_principal();
60472
+ EventRequest$zodSchema = object({
60473
+ ends_at: string2().optional().describe("When the event ends, at or after its start; the start when omitted."),
60474
+ host: string2().optional().describe("The organisation hosting the event."),
60475
+ name: string2().describe("The event's name."),
60476
+ principals: array(Principal$zodSchema).optional().describe("The people the event protects, at most 20."),
60477
+ starts_at: string2().describe("When the event starts."),
60478
+ topics: array(string2()).optional().describe("Sensitive topics the screening reads posts against, at most 50."),
60479
+ venue: string2().optional().describe("Where the event is held.")
60480
+ }).describe("Creates an event.");
60481
+ });
60482
+
60483
+ // src/models/createeventop.ts
60484
+ var CreateEventRequest$zodSchema, CreateEventResponseResult$zodSchema, CreateEventResponse$zodSchema;
60485
+ var init_createeventop = __esm(() => {
60486
+ init_zod();
60487
+ init_authenticationerror();
60488
+ init_badrequesterror();
60489
+ init_conflicterror();
60490
+ init_event();
60491
+ init_eventrequest();
60492
+ init_keyenvironment();
60493
+ init_notfounderror();
60494
+ init_permissiondeniederror();
60495
+ init_ratelimiterror();
60496
+ CreateEventRequest$zodSchema = object({
60497
+ body: EventRequest$zodSchema,
60498
+ environment: KeyEnvironment$zodSchema.describe("The environment: live or test. Each has its own settings. Any other value answers 400. An API key reads and changes only its own environment's; the other answers 404."),
60499
+ workspace_id: string2().describe("Your workspace id, as each key lists it in workspace_id. Another workspace, a malformed id and a test environment's id answer 404.")
60500
+ });
60501
+ CreateEventResponseResult$zodSchema = union([
60502
+ Event$zodSchema,
60503
+ BadRequestError$zodSchema,
60504
+ AuthenticationError$zodSchema,
60505
+ PermissionDeniedError$zodSchema,
60506
+ NotFoundError$zodSchema,
60507
+ ConflictError$zodSchema,
60508
+ RateLimitError$zodSchema
60509
+ ]);
60510
+ CreateEventResponse$zodSchema = object({
60511
+ Headers: record(string2(), array(string2())).default({}),
60512
+ Result: union([
60513
+ Event$zodSchema,
60514
+ BadRequestError$zodSchema,
60515
+ AuthenticationError$zodSchema,
60516
+ PermissionDeniedError$zodSchema,
60517
+ NotFoundError$zodSchema,
60518
+ ConflictError$zodSchema,
60519
+ RateLimitError$zodSchema
60520
+ ])
60521
+ });
60522
+ });
60523
+
60524
+ // src/funcs/eventsCreate.ts
60525
+ function eventsCreate(client$, request, options) {
60526
+ return new APIPromise($do42(client$, request, options));
60527
+ }
60528
+ async function $do42(client$, request, options) {
60529
+ const parsed$ = safeParse2(request, (value$) => CreateEventRequest$zodSchema.parse(value$), "Input validation failed");
60530
+ if (!parsed$.ok) {
60531
+ return [parsed$, { status: "invalid" }];
60532
+ }
60533
+ const payload$ = parsed$.value;
60534
+ const body$ = encodeJSON("body", payload$.body, { explode: true });
60535
+ const pathParams$ = {
60536
+ environment: encodeSimple("environment", payload$.environment, {
60537
+ explode: false,
60538
+ charEncoding: "percent"
60539
+ }),
60540
+ workspace_id: encodeSimple("workspace_id", payload$.workspace_id, {
60541
+ explode: false,
60542
+ charEncoding: "percent"
60543
+ })
60544
+ };
60545
+ const path$ = pathToFunc("/v1/workspaces/{workspace_id}/events/{environment}")(pathParams$);
60546
+ const headers$ = new Headers(compactMap({
60547
+ "Content-Type": "application/json",
60548
+ Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
60549
+ }));
60550
+ const securityInput = await extractSecurity(client$._options.security);
60551
+ const requestSecurity = resolveGlobalSecurity(securityInput);
60552
+ const context = {
60553
+ options: client$._options,
60554
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
60555
+ operationID: "createEvent",
60556
+ oAuth2Scopes: null,
60557
+ resolvedSecurity: requestSecurity,
60558
+ securitySource: client$._options.security,
60559
+ retryConfig: options?.retries || { strategy: "none" },
60560
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60561
+ };
60562
+ const requestRes = client$._createRequest(context, {
60563
+ security: requestSecurity,
60564
+ method: "POST",
60565
+ baseURL: options?.serverURL,
60566
+ path: path$,
60567
+ headers: headers$,
60568
+ body: body$,
60569
+ userAgent: client$._options.userAgent,
60570
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
60571
+ }, options);
60572
+ if (!requestRes.ok) {
60573
+ return [requestRes, { status: "invalid" }];
60574
+ }
60575
+ const req$ = requestRes.value;
60576
+ const doResult = await client$._do(req$, {
60577
+ context,
60578
+ errorCodes: [],
60579
+ retryConfig: context.retryConfig,
60580
+ retryCodes: context.retryCodes
60581
+ });
60582
+ if (!doResult.ok) {
60583
+ return [doResult, { status: "request-error", request: req$ }];
60584
+ }
60585
+ return [doResult, {
60586
+ status: "complete",
60587
+ request: req$,
60588
+ response: doResult.value
60589
+ }];
60590
+ }
60591
+ var init_eventsCreate = __esm(() => {
60592
+ init_encodings();
60593
+ init_primitives();
60594
+ init_schemas3();
60595
+ init_security();
60596
+ init_url();
60597
+ init_createeventop();
60598
+ init_async();
60599
+ });
60600
+
60601
+ // src/mcp-server/tools/eventsCreate.ts
60602
+ var args43, tool$eventsCreate;
60603
+ var init_eventsCreate2 = __esm(() => {
60604
+ init_eventsCreate();
60605
+ init_createeventop();
60606
+ init_tools();
60607
+ args43 = {
60608
+ request: CreateEventRequest$zodSchema
60609
+ };
60610
+ tool$eventsCreate = {
60611
+ name: "create_event",
60612
+ description: `Create an event to screen.
60613
+
60614
+ Create an event to screen: its name, start, venue, host, the principals it protects and the sensitive topics posts are read against. An environment holds at most 1000 events.`,
60615
+ annotations: {
60616
+ title: "Create an event with its principals and sensitive topics",
60617
+ destructiveHint: false,
60618
+ idempotentHint: false,
60619
+ openWorldHint: false,
60620
+ readOnlyHint: false
60621
+ },
60622
+ args: args43,
60623
+ tool: async (client, args, ctx) => {
60624
+ const [result] = await eventsCreate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
60625
+ if (!result.ok) {
60626
+ return {
60627
+ content: [{ type: "text", text: result.error.message }],
60628
+ isError: true
60629
+ };
60630
+ }
60631
+ return formatResult(result.value);
60632
+ }
60633
+ };
60634
+ });
60635
+
60636
+ // src/models/deleteeventop.ts
60637
+ var DeleteEventRequest$zodSchema, DeleteEventResponseResult$zodSchema, DeleteEventResponse$zodSchema;
60638
+ var init_deleteeventop = __esm(() => {
60639
+ init_zod();
60640
+ init_authenticationerror();
60641
+ init_badrequesterror();
60642
+ init_conflicterror();
60643
+ init_keyenvironment();
60644
+ init_notfounderror();
60645
+ init_permissiondeniederror();
60646
+ init_ratelimiterror();
60647
+ DeleteEventRequest$zodSchema = object({
60648
+ environment: KeyEnvironment$zodSchema.describe("The environment: live or test. Each has its own settings. Any other value answers 400. An API key reads and changes only its own environment's; the other answers 404."),
60649
+ event_id: string2(),
60650
+ workspace_id: string2().describe("Your workspace id, as each key lists it in workspace_id. Another workspace, a malformed id and a test environment's id answer 404.")
60651
+ });
60652
+ DeleteEventResponseResult$zodSchema = union([
60653
+ BadRequestError$zodSchema,
60654
+ AuthenticationError$zodSchema,
60655
+ PermissionDeniedError$zodSchema,
60656
+ NotFoundError$zodSchema,
60657
+ ConflictError$zodSchema,
60658
+ RateLimitError$zodSchema
60659
+ ]);
60660
+ DeleteEventResponse$zodSchema = object({
60661
+ Headers: record(string2(), array(string2())).default({}),
60662
+ Result: union([
60663
+ BadRequestError$zodSchema,
60664
+ AuthenticationError$zodSchema,
60665
+ PermissionDeniedError$zodSchema,
60666
+ NotFoundError$zodSchema,
60667
+ ConflictError$zodSchema,
60668
+ RateLimitError$zodSchema
60669
+ ]).optional()
60670
+ });
60671
+ });
60672
+
60673
+ // src/funcs/eventsDelete.ts
60674
+ function eventsDelete(client$, request, options) {
60675
+ return new APIPromise($do43(client$, request, options));
60676
+ }
60677
+ async function $do43(client$, request, options) {
60678
+ const parsed$ = safeParse2(request, (value$) => DeleteEventRequest$zodSchema.parse(value$), "Input validation failed");
60679
+ if (!parsed$.ok) {
60680
+ return [parsed$, { status: "invalid" }];
60681
+ }
60682
+ const payload$ = parsed$.value;
60683
+ const body$ = null;
60684
+ const pathParams$ = {
60685
+ environment: encodeSimple("environment", payload$.environment, {
60686
+ explode: false,
60687
+ charEncoding: "percent"
60688
+ }),
60689
+ event_id: encodeSimple("event_id", payload$.event_id, {
60690
+ explode: false,
60691
+ charEncoding: "percent"
60692
+ }),
60693
+ workspace_id: encodeSimple("workspace_id", payload$.workspace_id, {
60694
+ explode: false,
60695
+ charEncoding: "percent"
60696
+ })
60697
+ };
60698
+ const path$ = pathToFunc("/v1/workspaces/{workspace_id}/events/{environment}/{event_id}")(pathParams$);
60699
+ const headers$ = new Headers(compactMap({
60700
+ Accept: "application/problem+json"
60701
+ }));
60702
+ const securityInput = await extractSecurity(client$._options.security);
60703
+ const requestSecurity = resolveGlobalSecurity(securityInput);
60704
+ const context = {
60705
+ options: client$._options,
60706
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
60707
+ operationID: "deleteEvent",
60708
+ oAuth2Scopes: null,
60709
+ resolvedSecurity: requestSecurity,
60710
+ securitySource: client$._options.security,
60711
+ retryConfig: options?.retries || client$._options.retryConfig || {
60712
+ strategy: "backoff",
60713
+ backoff: {
60714
+ initialInterval: 500,
60715
+ maxInterval: 8000,
60716
+ exponent: 2,
60717
+ maxElapsedTime: 30000
60718
+ },
60719
+ retryConnectionErrors: true
60720
+ },
60721
+ retryCodes: options?.retryCodes || [
60722
+ "408",
60723
+ "429",
60724
+ "5XX"
60725
+ ]
60726
+ };
60727
+ const requestRes = client$._createRequest(context, {
60728
+ security: requestSecurity,
60729
+ method: "DELETE",
60730
+ baseURL: options?.serverURL,
60731
+ path: path$,
60732
+ headers: headers$,
60733
+ body: body$,
60734
+ userAgent: client$._options.userAgent,
60735
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
60736
+ }, options);
60737
+ if (!requestRes.ok) {
60738
+ return [requestRes, { status: "invalid" }];
60739
+ }
60740
+ const req$ = requestRes.value;
60741
+ const doResult = await client$._do(req$, {
60742
+ context,
60743
+ errorCodes: [],
60744
+ retryConfig: context.retryConfig,
60745
+ retryCodes: context.retryCodes
60746
+ });
60747
+ if (!doResult.ok) {
60748
+ return [doResult, { status: "request-error", request: req$ }];
60749
+ }
60750
+ return [doResult, {
60751
+ status: "complete",
60752
+ request: req$,
60753
+ response: doResult.value
60754
+ }];
60755
+ }
60756
+ var init_eventsDelete = __esm(() => {
60757
+ init_encodings();
60758
+ init_primitives();
60759
+ init_schemas3();
60760
+ init_security();
60761
+ init_url();
60762
+ init_deleteeventop();
60763
+ init_async();
60764
+ });
60765
+
60766
+ // src/mcp-server/tools/eventsDelete.ts
60767
+ var args44, tool$eventsDelete;
60768
+ var init_eventsDelete2 = __esm(() => {
60769
+ init_eventsDelete();
60770
+ init_deleteeventop();
60771
+ init_tools();
60772
+ args44 = {
60773
+ request: DeleteEventRequest$zodSchema
60774
+ };
60775
+ tool$eventsDelete = {
60776
+ name: "delete_event",
60777
+ description: `Erase an event.
60778
+
60779
+ Erase an event with its attendees, their decisions and its screenings, and stop any screening still running.`,
60780
+ annotations: {
60781
+ title: "Delete an event with its attendees, decisions and screenings",
60782
+ destructiveHint: true,
60783
+ idempotentHint: true,
60784
+ openWorldHint: false,
60785
+ readOnlyHint: false
60786
+ },
60787
+ args: args44,
60788
+ tool: async (client, args, ctx) => {
60789
+ const [result] = await eventsDelete(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
60790
+ if (!result.ok) {
60791
+ return {
60792
+ content: [{ type: "text", text: result.error.message }],
60793
+ isError: true
60794
+ };
60795
+ }
60796
+ return formatResult(result.value);
60797
+ }
60798
+ };
60799
+ });
60800
+
60801
+ // src/models/geteventop.ts
60802
+ var GetEventRequest$zodSchema, GetEventResponseResult$zodSchema, GetEventResponse$zodSchema;
60803
+ var init_geteventop = __esm(() => {
60804
+ init_zod();
60805
+ init_authenticationerror();
60806
+ init_badrequesterror();
60807
+ init_conflicterror();
60808
+ init_event();
60809
+ init_keyenvironment();
60810
+ init_notfounderror();
60811
+ init_permissiondeniederror();
60812
+ init_ratelimiterror();
60813
+ GetEventRequest$zodSchema = object({
60814
+ environment: KeyEnvironment$zodSchema.describe("The environment: live or test. Each has its own settings. Any other value answers 400. An API key reads and changes only its own environment's; the other answers 404."),
60815
+ event_id: string2(),
60816
+ workspace_id: string2().describe("Your workspace id, as each key lists it in workspace_id. Another workspace, a malformed id and a test environment's id answer 404.")
60817
+ });
60818
+ GetEventResponseResult$zodSchema = union([
60819
+ Event$zodSchema,
60820
+ BadRequestError$zodSchema,
60821
+ AuthenticationError$zodSchema,
60822
+ PermissionDeniedError$zodSchema,
60823
+ NotFoundError$zodSchema,
60824
+ ConflictError$zodSchema,
60825
+ RateLimitError$zodSchema
60826
+ ]);
60827
+ GetEventResponse$zodSchema = object({
60828
+ Headers: record(string2(), array(string2())).default({}),
60829
+ Result: union([
60830
+ Event$zodSchema,
60831
+ BadRequestError$zodSchema,
60832
+ AuthenticationError$zodSchema,
60833
+ PermissionDeniedError$zodSchema,
60834
+ NotFoundError$zodSchema,
60835
+ ConflictError$zodSchema,
60836
+ RateLimitError$zodSchema
60837
+ ])
60838
+ });
60839
+ });
60840
+
60841
+ // src/funcs/eventsGet.ts
60842
+ function eventsGet(client$, request, options) {
60843
+ return new APIPromise($do44(client$, request, options));
60844
+ }
60845
+ async function $do44(client$, request, options) {
60846
+ const parsed$ = safeParse2(request, (value$) => GetEventRequest$zodSchema.parse(value$), "Input validation failed");
60847
+ if (!parsed$.ok) {
60848
+ return [parsed$, { status: "invalid" }];
60849
+ }
60850
+ const payload$ = parsed$.value;
60851
+ const body$ = null;
60852
+ const pathParams$ = {
60853
+ environment: encodeSimple("environment", payload$.environment, {
60854
+ explode: false,
60855
+ charEncoding: "percent"
60856
+ }),
60857
+ event_id: encodeSimple("event_id", payload$.event_id, {
60858
+ explode: false,
60859
+ charEncoding: "percent"
60860
+ }),
60861
+ workspace_id: encodeSimple("workspace_id", payload$.workspace_id, {
60862
+ explode: false,
60863
+ charEncoding: "percent"
60864
+ })
60865
+ };
60866
+ const path$ = pathToFunc("/v1/workspaces/{workspace_id}/events/{environment}/{event_id}")(pathParams$);
60867
+ const headers$ = new Headers(compactMap({
60868
+ Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
60869
+ }));
60870
+ const securityInput = await extractSecurity(client$._options.security);
60871
+ const requestSecurity = resolveGlobalSecurity(securityInput);
60872
+ const context = {
60873
+ options: client$._options,
60874
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
60875
+ operationID: "getEvent",
60876
+ oAuth2Scopes: null,
60877
+ resolvedSecurity: requestSecurity,
60878
+ securitySource: client$._options.security,
60879
+ retryConfig: options?.retries || client$._options.retryConfig || {
60880
+ strategy: "backoff",
60881
+ backoff: {
60882
+ initialInterval: 500,
60883
+ maxInterval: 8000,
60884
+ exponent: 2,
60885
+ maxElapsedTime: 30000
60886
+ },
60887
+ retryConnectionErrors: true
60888
+ },
60889
+ retryCodes: options?.retryCodes || [
60890
+ "408",
60891
+ "429",
60892
+ "5XX"
60893
+ ]
60894
+ };
60895
+ const requestRes = client$._createRequest(context, {
60896
+ security: requestSecurity,
60897
+ method: "GET",
60898
+ baseURL: options?.serverURL,
60899
+ path: path$,
60900
+ headers: headers$,
60901
+ body: body$,
60902
+ userAgent: client$._options.userAgent,
60903
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
60904
+ }, options);
60905
+ if (!requestRes.ok) {
60906
+ return [requestRes, { status: "invalid" }];
60907
+ }
60908
+ const req$ = requestRes.value;
60909
+ const doResult = await client$._do(req$, {
60910
+ context,
60911
+ errorCodes: [],
60912
+ retryConfig: context.retryConfig,
60913
+ retryCodes: context.retryCodes
60914
+ });
60915
+ if (!doResult.ok) {
60916
+ return [doResult, { status: "request-error", request: req$ }];
60917
+ }
60918
+ return [doResult, {
60919
+ status: "complete",
60920
+ request: req$,
60921
+ response: doResult.value
60922
+ }];
60923
+ }
60924
+ var init_eventsGet = __esm(() => {
60925
+ init_encodings();
60926
+ init_primitives();
60927
+ init_schemas3();
60928
+ init_security();
60929
+ init_url();
60930
+ init_geteventop();
60931
+ init_async();
60932
+ });
60933
+
60934
+ // src/mcp-server/tools/eventsGet.ts
60935
+ var args45, tool$eventsGet;
60936
+ var init_eventsGet2 = __esm(() => {
60937
+ init_eventsGet();
60938
+ init_geteventop();
60939
+ init_tools();
60940
+ args45 = {
60941
+ request: GetEventRequest$zodSchema
60942
+ };
60943
+ tool$eventsGet = {
60944
+ name: "get_event",
60945
+ description: `Read an event.
60946
+
60947
+ Read an event and how many attendees it holds.`,
60948
+ annotations: {
60949
+ title: "Read an event and its attendee count",
60950
+ destructiveHint: false,
60951
+ idempotentHint: true,
60952
+ openWorldHint: false,
60953
+ readOnlyHint: true
60954
+ },
60955
+ args: args45,
60956
+ tool: async (client, args, ctx) => {
60957
+ const [result] = await eventsGet(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
60958
+ if (!result.ok) {
60959
+ return {
60960
+ content: [{ type: "text", text: result.error.message }],
60961
+ isError: true
60962
+ };
60963
+ }
60964
+ return formatResult(result.value);
60965
+ }
60966
+ };
60967
+ });
60968
+
60969
+ // src/models/attendeedecision.ts
60970
+ var AttendeeDecision$zodSchema;
60971
+ var init_attendeedecision = __esm(() => {
60972
+ init_zod();
60973
+ AttendeeDecision$zodSchema = _enum([
60974
+ "cleared",
60975
+ "watch",
60976
+ "escalated"
60977
+ ]);
60978
+ });
60979
+
60980
+ // src/models/highestband.ts
60981
+ var HighestBand$zodSchema;
60982
+ var init_highestband = __esm(() => {
60983
+ init_zod();
60984
+ HighestBand$zodSchema = _enum([
60985
+ "critical",
60986
+ "high",
60987
+ "moderate",
60988
+ "low",
60989
+ "info"
60990
+ ]);
60991
+ });
60992
+
60993
+ // src/models/matchstate.ts
60994
+ var MatchState$zodSchema;
60995
+ var init_matchstate = __esm(() => {
60996
+ init_zod();
60997
+ MatchState$zodSchema = _enum([
60998
+ "unscreened",
60999
+ "confirmed",
61000
+ "probable",
61001
+ "possible",
61002
+ "none_found",
61003
+ "inaccessible"
61004
+ ]).describe("How sure the latest screening is that it found the attendee's accounts. unscreened until a screening reaches the attendee.");
61005
+ });
61006
+
61007
+ // src/models/attendee.ts
61008
+ var AttendeeCoverage$zodSchema, Attendee$zodSchema;
61009
+ var init_attendee = __esm(() => {
61010
+ init_zod();
61011
+ init_attendeedecision();
61012
+ init_handle();
61013
+ init_highestband();
61014
+ init_matchstate();
61015
+ AttendeeCoverage$zodSchema = object({}).describe("What the latest screening read, per platform.");
61016
+ Attendee$zodSchema = object({
61017
+ city: string2().optional().describe("Where the attendee lives."),
61018
+ company: string2().optional().describe("Where the attendee works."),
61019
+ coverage: lazy(() => AttendeeCoverage$zodSchema).describe("What the latest screening read, per platform."),
61020
+ created_at: string2(),
61021
+ decided_at: string2().optional(),
61022
+ decided_by: string2().optional(),
61023
+ decision: AttendeeDecision$zodSchema.nullable().describe("The latest reviewer decision, or null before any."),
61024
+ decision_note: string2().optional(),
61025
+ email: string2().optional().describe("The attendee's email."),
61026
+ event_id: string2(),
61027
+ external_id: string2().optional().describe("Your own id for the attendee, unique within the event. A later row with the same external id updates this attendee."),
61028
+ handles: array(Handle$zodSchema).optional().describe("Accounts the attendee is known to hold, at most 20."),
61029
+ highest_band: HighestBand$zodSchema.nullable().describe("The most severe finding's band, or null when nothing was flagged."),
61030
+ id: string2(),
61031
+ last_screening_id: string2().optional(),
61032
+ match_state: MatchState$zodSchema.describe("How sure the latest screening is that it found the attendee's accounts. unscreened until a screening reaches the attendee."),
61033
+ name: string2().describe("The attendee's full name."),
61034
+ phone: string2().optional().describe("The attendee's phone in E.164 form."),
61035
+ screened_at: string2().optional(),
61036
+ updated_at: string2()
61037
+ }).describe("An attendee and where their screening and review stand.");
61038
+ });
61039
+
61040
+ // src/models/attendeereview.ts
61041
+ var AttendeeReview$zodSchema;
61042
+ var init_attendeereview = __esm(() => {
61043
+ init_zod();
61044
+ init_attendeedecision();
61045
+ AttendeeReview$zodSchema = object({
61046
+ created_at: string2(),
61047
+ created_by: string2(),
61048
+ decision: AttendeeDecision$zodSchema,
61049
+ id: string2(),
61050
+ note: string2().optional()
61051
+ }).describe("One recorded decision.");
61052
+ });
61053
+
61054
+ // src/models/attendeereport.ts
61055
+ var Profile$zodSchema, Finding$zodSchema, AttendeeReport$zodSchema;
61056
+ var init_attendeereport = __esm(() => {
61057
+ init_zod();
61058
+ init_attendee();
61059
+ init_attendeereview();
61060
+ Profile$zodSchema = object({});
61061
+ Finding$zodSchema = object({});
61062
+ AttendeeReport$zodSchema = object({
61063
+ attendee: Attendee$zodSchema.describe("An attendee and where their screening and review stand."),
61064
+ findings: array(lazy(() => Finding$zodSchema)).describe("What the screening flagged, with its evidence."),
61065
+ profiles: array(lazy(() => Profile$zodSchema)).describe("The accounts the screening matched, with how each was matched."),
61066
+ reviews: array(AttendeeReview$zodSchema).describe("Every recorded decision, oldest first.")
61067
+ }).describe("Everything known about one attendee.");
61068
+ });
61069
+
61070
+ // src/models/getattendeeop.ts
61071
+ var GetAttendeeRequest$zodSchema, GetAttendeeResponseResult$zodSchema, GetAttendeeResponse$zodSchema;
61072
+ var init_getattendeeop = __esm(() => {
61073
+ init_zod();
61074
+ init_attendeereport();
61075
+ init_authenticationerror();
61076
+ init_badrequesterror();
61077
+ init_conflicterror();
61078
+ init_keyenvironment();
61079
+ init_notfounderror();
61080
+ init_permissiondeniederror();
61081
+ init_ratelimiterror();
61082
+ GetAttendeeRequest$zodSchema = object({
61083
+ attendee_id: string2(),
61084
+ environment: KeyEnvironment$zodSchema.describe("The environment: live or test. Each has its own settings. Any other value answers 400. An API key reads and changes only its own environment's; the other answers 404."),
61085
+ event_id: string2(),
61086
+ workspace_id: string2().describe("Your workspace id, as each key lists it in workspace_id. Another workspace, a malformed id and a test environment's id answer 404.")
61087
+ });
61088
+ GetAttendeeResponseResult$zodSchema = union([
61089
+ BadRequestError$zodSchema,
61090
+ AuthenticationError$zodSchema,
61091
+ PermissionDeniedError$zodSchema,
61092
+ NotFoundError$zodSchema,
61093
+ ConflictError$zodSchema,
61094
+ RateLimitError$zodSchema,
61095
+ AttendeeReport$zodSchema
61096
+ ]);
61097
+ GetAttendeeResponse$zodSchema = object({
61098
+ Headers: record(string2(), array(string2())).default({}),
61099
+ Result: union([
61100
+ BadRequestError$zodSchema,
61101
+ AuthenticationError$zodSchema,
61102
+ PermissionDeniedError$zodSchema,
61103
+ NotFoundError$zodSchema,
61104
+ ConflictError$zodSchema,
61105
+ RateLimitError$zodSchema,
61106
+ AttendeeReport$zodSchema
61107
+ ])
61108
+ });
61109
+ });
61110
+
61111
+ // src/funcs/eventsGetAttendee.ts
61112
+ function eventsGetAttendee(client$, request, options) {
61113
+ return new APIPromise($do45(client$, request, options));
61114
+ }
61115
+ async function $do45(client$, request, options) {
61116
+ const parsed$ = safeParse2(request, (value$) => GetAttendeeRequest$zodSchema.parse(value$), "Input validation failed");
61117
+ if (!parsed$.ok) {
61118
+ return [parsed$, { status: "invalid" }];
61119
+ }
61120
+ const payload$ = parsed$.value;
61121
+ const body$ = null;
61122
+ const pathParams$ = {
61123
+ attendee_id: encodeSimple("attendee_id", payload$.attendee_id, {
61124
+ explode: false,
61125
+ charEncoding: "percent"
61126
+ }),
61127
+ environment: encodeSimple("environment", payload$.environment, {
61128
+ explode: false,
61129
+ charEncoding: "percent"
61130
+ }),
61131
+ event_id: encodeSimple("event_id", payload$.event_id, {
61132
+ explode: false,
61133
+ charEncoding: "percent"
61134
+ }),
61135
+ workspace_id: encodeSimple("workspace_id", payload$.workspace_id, {
61136
+ explode: false,
61137
+ charEncoding: "percent"
61138
+ })
61139
+ };
61140
+ const path$ = pathToFunc("/v1/workspaces/{workspace_id}/events/{environment}/{event_id}/attendees/{attendee_id}")(pathParams$);
61141
+ const headers$ = new Headers(compactMap({
61142
+ Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
61143
+ }));
61144
+ const securityInput = await extractSecurity(client$._options.security);
61145
+ const requestSecurity = resolveGlobalSecurity(securityInput);
61146
+ const context = {
61147
+ options: client$._options,
61148
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
61149
+ operationID: "getAttendee",
61150
+ oAuth2Scopes: null,
61151
+ resolvedSecurity: requestSecurity,
61152
+ securitySource: client$._options.security,
61153
+ retryConfig: options?.retries || client$._options.retryConfig || {
61154
+ strategy: "backoff",
61155
+ backoff: {
61156
+ initialInterval: 500,
61157
+ maxInterval: 8000,
61158
+ exponent: 2,
61159
+ maxElapsedTime: 30000
61160
+ },
61161
+ retryConnectionErrors: true
61162
+ },
61163
+ retryCodes: options?.retryCodes || [
61164
+ "408",
61165
+ "429",
61166
+ "5XX"
61167
+ ]
61168
+ };
61169
+ const requestRes = client$._createRequest(context, {
61170
+ security: requestSecurity,
61171
+ method: "GET",
61172
+ baseURL: options?.serverURL,
61173
+ path: path$,
61174
+ headers: headers$,
61175
+ body: body$,
61176
+ userAgent: client$._options.userAgent,
61177
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
61178
+ }, options);
61179
+ if (!requestRes.ok) {
61180
+ return [requestRes, { status: "invalid" }];
61181
+ }
61182
+ const req$ = requestRes.value;
61183
+ const doResult = await client$._do(req$, {
61184
+ context,
61185
+ errorCodes: [],
61186
+ retryConfig: context.retryConfig,
61187
+ retryCodes: context.retryCodes
61188
+ });
61189
+ if (!doResult.ok) {
61190
+ return [doResult, { status: "request-error", request: req$ }];
61191
+ }
61192
+ return [doResult, {
61193
+ status: "complete",
61194
+ request: req$,
61195
+ response: doResult.value
61196
+ }];
61197
+ }
61198
+ var init_eventsGetAttendee = __esm(() => {
61199
+ init_encodings();
61200
+ init_primitives();
61201
+ init_schemas3();
61202
+ init_security();
61203
+ init_url();
61204
+ init_getattendeeop();
61205
+ init_async();
61206
+ });
61207
+
61208
+ // src/mcp-server/tools/eventsGetAttendee.ts
61209
+ var args46, tool$eventsGetAttendee;
61210
+ var init_eventsGetAttendee2 = __esm(() => {
61211
+ init_eventsGetAttendee();
61212
+ init_getattendeeop();
61213
+ init_tools();
61214
+ args46 = {
61215
+ request: GetAttendeeRequest$zodSchema
61216
+ };
61217
+ tool$eventsGetAttendee = {
61218
+ name: "get_attendee",
61219
+ description: `Read an attendee's report.
61220
+
61221
+ Read an attendee's report: matched profiles, findings with their evidence and every recorded decision.`,
61222
+ annotations: {
61223
+ title: "Read an attendee's profiles, findings and decisions",
61224
+ destructiveHint: false,
61225
+ idempotentHint: true,
61226
+ openWorldHint: false,
61227
+ readOnlyHint: true
61228
+ },
61229
+ args: args46,
61230
+ tool: async (client, args, ctx) => {
61231
+ const [result] = await eventsGetAttendee(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
61232
+ if (!result.ok) {
61233
+ return {
61234
+ content: [{ type: "text", text: result.error.message }],
61235
+ isError: true
61236
+ };
61237
+ }
61238
+ return formatResult(result.value);
61239
+ }
61240
+ };
61241
+ });
61242
+
61243
+ // src/models/getscreeningop.ts
61244
+ var GetScreeningRequest$zodSchema, GetScreeningResponseResult$zodSchema, GetScreeningResponse$zodSchema;
61245
+ var init_getscreeningop = __esm(() => {
61246
+ init_zod();
61247
+ init_authenticationerror();
61248
+ init_badrequesterror();
61249
+ init_conflicterror();
61250
+ init_keyenvironment();
61251
+ init_notfounderror();
61252
+ init_permissiondeniederror();
61253
+ init_ratelimiterror();
61254
+ init_screening();
61255
+ GetScreeningRequest$zodSchema = object({
61256
+ environment: KeyEnvironment$zodSchema.describe("The environment: live or test. Each has its own settings. Any other value answers 400. An API key reads and changes only its own environment's; the other answers 404."),
61257
+ event_id: string2(),
61258
+ screening_id: string2(),
61259
+ workspace_id: string2().describe("Your workspace id, as each key lists it in workspace_id. Another workspace, a malformed id and a test environment's id answer 404.")
61260
+ });
61261
+ GetScreeningResponseResult$zodSchema = union([
61262
+ Screening$zodSchema,
61263
+ BadRequestError$zodSchema,
61264
+ AuthenticationError$zodSchema,
61265
+ PermissionDeniedError$zodSchema,
61266
+ NotFoundError$zodSchema,
61267
+ ConflictError$zodSchema,
61268
+ RateLimitError$zodSchema
61269
+ ]);
61270
+ GetScreeningResponse$zodSchema = object({
61271
+ Headers: record(string2(), array(string2())).default({}),
61272
+ Result: union([
61273
+ Screening$zodSchema,
61274
+ BadRequestError$zodSchema,
61275
+ AuthenticationError$zodSchema,
61276
+ PermissionDeniedError$zodSchema,
61277
+ NotFoundError$zodSchema,
61278
+ ConflictError$zodSchema,
61279
+ RateLimitError$zodSchema
61280
+ ])
61281
+ });
61282
+ });
61283
+
61284
+ // src/funcs/eventsGetScreening.ts
61285
+ function eventsGetScreening(client$, request, options) {
61286
+ return new APIPromise($do46(client$, request, options));
61287
+ }
61288
+ async function $do46(client$, request, options) {
61289
+ const parsed$ = safeParse2(request, (value$) => GetScreeningRequest$zodSchema.parse(value$), "Input validation failed");
61290
+ if (!parsed$.ok) {
61291
+ return [parsed$, { status: "invalid" }];
61292
+ }
61293
+ const payload$ = parsed$.value;
61294
+ const body$ = null;
61295
+ const pathParams$ = {
61296
+ environment: encodeSimple("environment", payload$.environment, {
61297
+ explode: false,
61298
+ charEncoding: "percent"
61299
+ }),
61300
+ event_id: encodeSimple("event_id", payload$.event_id, {
61301
+ explode: false,
61302
+ charEncoding: "percent"
61303
+ }),
61304
+ screening_id: encodeSimple("screening_id", payload$.screening_id, {
61305
+ explode: false,
61306
+ charEncoding: "percent"
61307
+ }),
61308
+ workspace_id: encodeSimple("workspace_id", payload$.workspace_id, {
61309
+ explode: false,
61310
+ charEncoding: "percent"
61311
+ })
61312
+ };
61313
+ const path$ = pathToFunc("/v1/workspaces/{workspace_id}/events/{environment}/{event_id}/screenings/{screening_id}")(pathParams$);
61314
+ const headers$ = new Headers(compactMap({
61315
+ Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
61316
+ }));
61317
+ const securityInput = await extractSecurity(client$._options.security);
61318
+ const requestSecurity = resolveGlobalSecurity(securityInput);
61319
+ const context = {
61320
+ options: client$._options,
61321
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
61322
+ operationID: "getScreening",
61323
+ oAuth2Scopes: null,
61324
+ resolvedSecurity: requestSecurity,
61325
+ securitySource: client$._options.security,
61326
+ retryConfig: options?.retries || client$._options.retryConfig || {
61327
+ strategy: "backoff",
61328
+ backoff: {
61329
+ initialInterval: 500,
61330
+ maxInterval: 8000,
61331
+ exponent: 2,
61332
+ maxElapsedTime: 30000
61333
+ },
61334
+ retryConnectionErrors: true
61335
+ },
61336
+ retryCodes: options?.retryCodes || [
61337
+ "408",
61338
+ "429",
61339
+ "5XX"
61340
+ ]
61341
+ };
61342
+ const requestRes = client$._createRequest(context, {
61343
+ security: requestSecurity,
61344
+ method: "GET",
61345
+ baseURL: options?.serverURL,
61346
+ path: path$,
61347
+ headers: headers$,
61348
+ body: body$,
61349
+ userAgent: client$._options.userAgent,
61350
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
61351
+ }, options);
61352
+ if (!requestRes.ok) {
61353
+ return [requestRes, { status: "invalid" }];
61354
+ }
61355
+ const req$ = requestRes.value;
61356
+ const doResult = await client$._do(req$, {
61357
+ context,
61358
+ errorCodes: [],
61359
+ retryConfig: context.retryConfig,
61360
+ retryCodes: context.retryCodes
61361
+ });
61362
+ if (!doResult.ok) {
61363
+ return [doResult, { status: "request-error", request: req$ }];
61364
+ }
61365
+ return [doResult, {
61366
+ status: "complete",
61367
+ request: req$,
61368
+ response: doResult.value
61369
+ }];
61370
+ }
61371
+ var init_eventsGetScreening = __esm(() => {
61372
+ init_encodings();
61373
+ init_primitives();
61374
+ init_schemas3();
61375
+ init_security();
61376
+ init_url();
61377
+ init_getscreeningop();
61378
+ init_async();
61379
+ });
61380
+
61381
+ // src/mcp-server/tools/eventsGetScreening.ts
61382
+ var args47, tool$eventsGetScreening;
61383
+ var init_eventsGetScreening2 = __esm(() => {
61384
+ init_eventsGetScreening();
61385
+ init_getscreeningop();
61386
+ init_tools();
61387
+ args47 = {
61388
+ request: GetScreeningRequest$zodSchema
61389
+ };
61390
+ tool$eventsGetScreening = {
61391
+ name: "get_screening",
61392
+ description: `Read a screening.
61393
+
61394
+ Read a screening's status and progress.`,
61395
+ annotations: {
61396
+ title: "Read a screening's status and progress",
61397
+ destructiveHint: false,
61398
+ idempotentHint: true,
61399
+ openWorldHint: false,
61400
+ readOnlyHint: true
61401
+ },
61402
+ args: args47,
61403
+ tool: async (client, args, ctx) => {
61404
+ const [result] = await eventsGetScreening(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
61405
+ if (!result.ok) {
61406
+ return {
61407
+ content: [{ type: "text", text: result.error.message }],
61408
+ isError: true
61409
+ };
61410
+ }
61411
+ return formatResult(result.value);
61412
+ }
61413
+ };
61414
+ });
61415
+
61416
+ // src/models/eventlist.ts
61417
+ var EventList$zodSchema;
61418
+ var init_eventlist = __esm(() => {
61419
+ init_zod();
61420
+ init_event();
61421
+ EventList$zodSchema = object({
61422
+ items: array(Event$zodSchema),
61423
+ next_before: string2().optional().describe("Pass as before to read the next, older page.")
61424
+ }).describe("Events, newest first.");
61425
+ });
61426
+
61427
+ // src/models/listeventsop.ts
61428
+ var ListEventsRequest$zodSchema, ListEventsResponseResult$zodSchema, ListEventsResponse$zodSchema;
61429
+ var init_listeventsop = __esm(() => {
61430
+ init_zod();
61431
+ init_authenticationerror();
61432
+ init_badrequesterror();
61433
+ init_conflicterror();
61434
+ init_eventlist();
61435
+ init_keyenvironment();
61436
+ init_notfounderror();
61437
+ init_permissiondeniederror();
61438
+ init_ratelimiterror();
61439
+ ListEventsRequest$zodSchema = object({
61440
+ before: string2().describe("Read events older than this one.").optional(),
61441
+ environment: KeyEnvironment$zodSchema.describe("The environment: live or test. Each has its own settings. Any other value answers 400. An API key reads and changes only its own environment's; the other answers 404."),
61442
+ limit: int().default(20).describe("At most this many items."),
61443
+ workspace_id: string2().describe("Your workspace id, as each key lists it in workspace_id. Another workspace, a malformed id and a test environment's id answer 404.")
61444
+ });
61445
+ ListEventsResponseResult$zodSchema = union([
61446
+ BadRequestError$zodSchema,
61447
+ AuthenticationError$zodSchema,
61448
+ PermissionDeniedError$zodSchema,
61449
+ NotFoundError$zodSchema,
61450
+ ConflictError$zodSchema,
61451
+ RateLimitError$zodSchema,
61452
+ EventList$zodSchema
61453
+ ]);
61454
+ ListEventsResponse$zodSchema = object({
61455
+ Headers: record(string2(), array(string2())).default({}),
61456
+ Result: union([
61457
+ BadRequestError$zodSchema,
61458
+ AuthenticationError$zodSchema,
61459
+ PermissionDeniedError$zodSchema,
61460
+ NotFoundError$zodSchema,
61461
+ ConflictError$zodSchema,
61462
+ RateLimitError$zodSchema,
61463
+ EventList$zodSchema
61464
+ ])
61465
+ });
61466
+ });
61467
+
61468
+ // src/funcs/eventsList.ts
61469
+ function eventsList(client$, request, options) {
61470
+ return new APIPromise($do47(client$, request, options));
61471
+ }
61472
+ async function $do47(client$, request, options) {
61473
+ const parsed$ = safeParse2(request, (value$) => ListEventsRequest$zodSchema.parse(value$), "Input validation failed");
61474
+ if (!parsed$.ok) {
61475
+ return [parsed$, { status: "invalid" }];
61476
+ }
61477
+ const payload$ = parsed$.value;
61478
+ const body$ = null;
61479
+ const pathParams$ = {
61480
+ environment: encodeSimple("environment", payload$.environment, {
61481
+ explode: false,
61482
+ charEncoding: "percent"
61483
+ }),
61484
+ workspace_id: encodeSimple("workspace_id", payload$.workspace_id, {
61485
+ explode: false,
61486
+ charEncoding: "percent"
61487
+ })
61488
+ };
61489
+ const path$ = pathToFunc("/v1/workspaces/{workspace_id}/events/{environment}")(pathParams$);
61490
+ const query$ = encodeFormQuery({
61491
+ before: payload$.before,
61492
+ limit: payload$.limit
61493
+ });
61494
+ const headers$ = new Headers(compactMap({
61495
+ Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
61496
+ }));
61497
+ const securityInput = await extractSecurity(client$._options.security);
61498
+ const requestSecurity = resolveGlobalSecurity(securityInput);
61499
+ const context = {
61500
+ options: client$._options,
61501
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
61502
+ operationID: "listEvents",
61503
+ oAuth2Scopes: null,
61504
+ resolvedSecurity: requestSecurity,
61505
+ securitySource: client$._options.security,
61506
+ retryConfig: options?.retries || client$._options.retryConfig || {
61507
+ strategy: "backoff",
61508
+ backoff: {
61509
+ initialInterval: 500,
61510
+ maxInterval: 8000,
61511
+ exponent: 2,
61512
+ maxElapsedTime: 30000
61513
+ },
61514
+ retryConnectionErrors: true
61515
+ },
61516
+ retryCodes: options?.retryCodes || [
61517
+ "408",
61518
+ "429",
61519
+ "5XX"
61520
+ ]
61521
+ };
61522
+ const requestRes = client$._createRequest(context, {
61523
+ security: requestSecurity,
61524
+ method: "GET",
61525
+ baseURL: options?.serverURL,
61526
+ path: path$,
61527
+ headers: headers$,
61528
+ query: query$,
61529
+ body: body$,
61530
+ userAgent: client$._options.userAgent,
61531
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
61532
+ }, options);
61533
+ if (!requestRes.ok) {
61534
+ return [requestRes, { status: "invalid" }];
61535
+ }
61536
+ const req$ = requestRes.value;
61537
+ const doResult = await client$._do(req$, {
61538
+ context,
61539
+ errorCodes: [],
61540
+ retryConfig: context.retryConfig,
61541
+ retryCodes: context.retryCodes
61542
+ });
61543
+ if (!doResult.ok) {
61544
+ return [doResult, { status: "request-error", request: req$ }];
61545
+ }
61546
+ return [doResult, {
61547
+ status: "complete",
61548
+ request: req$,
61549
+ response: doResult.value
61550
+ }];
61551
+ }
61552
+ var init_eventsList = __esm(() => {
61553
+ init_encodings();
61554
+ init_primitives();
61555
+ init_schemas3();
61556
+ init_security();
61557
+ init_url();
61558
+ init_listeventsop();
61559
+ init_async();
61560
+ });
61561
+
61562
+ // src/mcp-server/tools/eventsList.ts
61563
+ var args48, tool$eventsList;
61564
+ var init_eventsList2 = __esm(() => {
61565
+ init_eventsList();
61566
+ init_listeventsop();
61567
+ init_tools();
61568
+ args48 = {
61569
+ request: ListEventsRequest$zodSchema
61570
+ };
61571
+ tool$eventsList = {
61572
+ name: "list_events",
61573
+ description: `List an environment's events.
61574
+
61575
+ List this environment's events, newest first. Pass next_before back as before for the next page. Requires the events scope.`,
61576
+ annotations: {
61577
+ title: "Read this environment's events",
61578
+ destructiveHint: false,
61579
+ idempotentHint: true,
61580
+ openWorldHint: false,
61581
+ readOnlyHint: true
61582
+ },
61583
+ args: args48,
61584
+ tool: async (client, args, ctx) => {
61585
+ const [result] = await eventsList(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
61586
+ if (!result.ok) {
61587
+ return {
61588
+ content: [{ type: "text", text: result.error.message }],
61589
+ isError: true
61590
+ };
61591
+ }
61592
+ return formatResult(result.value);
61593
+ }
61594
+ };
61595
+ });
61596
+
61597
+ // src/models/attendeelist.ts
61598
+ var AttendeeList$zodSchema;
61599
+ var init_attendeelist = __esm(() => {
61600
+ init_zod();
61601
+ init_attendee();
61602
+ AttendeeList$zodSchema = object({
61603
+ items: array(Attendee$zodSchema),
61604
+ next_after: string2().optional().describe("Pass as after to read the next page.")
61605
+ }).describe("Attendees in upload order.");
61606
+ });
61607
+
61608
+ // src/models/listattendeesband.ts
61609
+ var ListAttendeesBand$zodSchema;
61610
+ var init_listattendeesband = __esm(() => {
61611
+ init_zod();
61612
+ ListAttendeesBand$zodSchema = _enum([
61613
+ "critical",
61614
+ "high",
61615
+ "moderate",
61616
+ "low",
61617
+ "info",
61618
+ "none"
61619
+ ]);
61620
+ });
61621
+
61622
+ // src/models/listattendeesdecision.ts
61623
+ var ListAttendeesDecision$zodSchema;
61624
+ var init_listattendeesdecision = __esm(() => {
61625
+ init_zod();
61626
+ ListAttendeesDecision$zodSchema = _enum([
61627
+ "cleared",
61628
+ "watch",
61629
+ "escalated",
61630
+ "undecided"
61631
+ ]);
61632
+ });
61633
+
61634
+ // src/models/listattendeesop.ts
61635
+ var ListAttendeesRequest$zodSchema, ListAttendeesResponseResult$zodSchema, ListAttendeesResponse$zodSchema;
61636
+ var init_listattendeesop = __esm(() => {
61637
+ init_zod();
61638
+ init_attendeelist();
61639
+ init_authenticationerror();
61640
+ init_badrequesterror();
61641
+ init_conflicterror();
61642
+ init_keyenvironment();
61643
+ init_listattendeesband();
61644
+ init_listattendeesdecision();
61645
+ init_notfounderror();
61646
+ init_permissiondeniederror();
61647
+ init_ratelimiterror();
61648
+ ListAttendeesRequest$zodSchema = object({
61649
+ after: string2().describe("Read attendees after this one.").optional(),
61650
+ band: ListAttendeesBand$zodSchema.optional().describe("Only attendees whose highest finding has this band; none for attendees with no finding."),
61651
+ decision: ListAttendeesDecision$zodSchema.optional().describe("Only attendees with this decision; undecided for none yet."),
61652
+ environment: KeyEnvironment$zodSchema.describe("The environment: live or test. Each has its own settings. Any other value answers 400. An API key reads and changes only its own environment's; the other answers 404."),
61653
+ event_id: string2(),
61654
+ limit: int().default(100).describe("At most this many attendees."),
61655
+ workspace_id: string2().describe("Your workspace id, as each key lists it in workspace_id. Another workspace, a malformed id and a test environment's id answer 404.")
61656
+ });
61657
+ ListAttendeesResponseResult$zodSchema = union([
61658
+ BadRequestError$zodSchema,
61659
+ AuthenticationError$zodSchema,
61660
+ PermissionDeniedError$zodSchema,
61661
+ NotFoundError$zodSchema,
61662
+ ConflictError$zodSchema,
61663
+ RateLimitError$zodSchema,
61664
+ AttendeeList$zodSchema
61665
+ ]);
61666
+ ListAttendeesResponse$zodSchema = object({
61667
+ Headers: record(string2(), array(string2())).default({}),
61668
+ Result: union([
61669
+ BadRequestError$zodSchema,
61670
+ AuthenticationError$zodSchema,
61671
+ PermissionDeniedError$zodSchema,
61672
+ NotFoundError$zodSchema,
61673
+ ConflictError$zodSchema,
61674
+ RateLimitError$zodSchema,
61675
+ AttendeeList$zodSchema
61676
+ ])
61677
+ });
61678
+ });
61679
+
61680
+ // src/funcs/eventsListAttendees.ts
61681
+ function eventsListAttendees(client$, request, options) {
61682
+ return new APIPromise($do48(client$, request, options));
61683
+ }
61684
+ async function $do48(client$, request, options) {
61685
+ const parsed$ = safeParse2(request, (value$) => ListAttendeesRequest$zodSchema.parse(value$), "Input validation failed");
61686
+ if (!parsed$.ok) {
61687
+ return [parsed$, { status: "invalid" }];
61688
+ }
61689
+ const payload$ = parsed$.value;
61690
+ const body$ = null;
61691
+ const pathParams$ = {
61692
+ environment: encodeSimple("environment", payload$.environment, {
61693
+ explode: false,
61694
+ charEncoding: "percent"
61695
+ }),
61696
+ event_id: encodeSimple("event_id", payload$.event_id, {
61697
+ explode: false,
61698
+ charEncoding: "percent"
61699
+ }),
61700
+ workspace_id: encodeSimple("workspace_id", payload$.workspace_id, {
61701
+ explode: false,
61702
+ charEncoding: "percent"
61703
+ })
61704
+ };
61705
+ const path$ = pathToFunc("/v1/workspaces/{workspace_id}/events/{environment}/{event_id}/attendees")(pathParams$);
61706
+ const query$ = encodeFormQuery({
61707
+ after: payload$.after,
61708
+ band: payload$.band,
61709
+ decision: payload$.decision,
61710
+ limit: payload$.limit
61711
+ });
61712
+ const headers$ = new Headers(compactMap({
61713
+ Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
61714
+ }));
61715
+ const securityInput = await extractSecurity(client$._options.security);
61716
+ const requestSecurity = resolveGlobalSecurity(securityInput);
61717
+ const context = {
61718
+ options: client$._options,
61719
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
61720
+ operationID: "listAttendees",
61721
+ oAuth2Scopes: null,
61722
+ resolvedSecurity: requestSecurity,
61723
+ securitySource: client$._options.security,
61724
+ retryConfig: options?.retries || client$._options.retryConfig || {
61725
+ strategy: "backoff",
61726
+ backoff: {
61727
+ initialInterval: 500,
61728
+ maxInterval: 8000,
61729
+ exponent: 2,
61730
+ maxElapsedTime: 30000
61731
+ },
61732
+ retryConnectionErrors: true
61733
+ },
61734
+ retryCodes: options?.retryCodes || [
61735
+ "408",
61736
+ "429",
61737
+ "5XX"
61738
+ ]
61739
+ };
61740
+ const requestRes = client$._createRequest(context, {
61741
+ security: requestSecurity,
61742
+ method: "GET",
61743
+ baseURL: options?.serverURL,
61744
+ path: path$,
61745
+ headers: headers$,
61746
+ query: query$,
61747
+ body: body$,
61748
+ userAgent: client$._options.userAgent,
61749
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
61750
+ }, options);
61751
+ if (!requestRes.ok) {
61752
+ return [requestRes, { status: "invalid" }];
61753
+ }
61754
+ const req$ = requestRes.value;
61755
+ const doResult = await client$._do(req$, {
61756
+ context,
61757
+ errorCodes: [],
61758
+ retryConfig: context.retryConfig,
61759
+ retryCodes: context.retryCodes
61760
+ });
61761
+ if (!doResult.ok) {
61762
+ return [doResult, { status: "request-error", request: req$ }];
61763
+ }
61764
+ return [doResult, {
61765
+ status: "complete",
61766
+ request: req$,
61767
+ response: doResult.value
61768
+ }];
61769
+ }
61770
+ var init_eventsListAttendees = __esm(() => {
61771
+ init_encodings();
61772
+ init_primitives();
61773
+ init_schemas3();
61774
+ init_security();
61775
+ init_url();
61776
+ init_listattendeesop();
61777
+ init_async();
61778
+ });
61779
+
61780
+ // src/mcp-server/tools/eventsListAttendees.ts
61781
+ var args49, tool$eventsListAttendees;
61782
+ var init_eventsListAttendees2 = __esm(() => {
61783
+ init_eventsListAttendees();
61784
+ init_listattendeesop();
61785
+ init_tools();
61786
+ args49 = {
61787
+ request: ListAttendeesRequest$zodSchema
61788
+ };
61789
+ tool$eventsListAttendees = {
61790
+ name: "list_attendees",
61791
+ description: `List an event's attendees.
61792
+
61793
+ Read an event's roster in upload order, with each attendee's match state, highest finding band and decision. Filter by band or decision; pass next_after back as after.`,
61794
+ annotations: {
61795
+ title: "Read an event's roster with match states, bands and decisions",
61796
+ destructiveHint: false,
61797
+ idempotentHint: true,
61798
+ openWorldHint: false,
61799
+ readOnlyHint: true
61800
+ },
61801
+ args: args49,
61802
+ tool: async (client, args, ctx) => {
61803
+ const [result] = await eventsListAttendees(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
61804
+ if (!result.ok) {
61805
+ return {
61806
+ content: [{ type: "text", text: result.error.message }],
61807
+ isError: true
61808
+ };
61809
+ }
61810
+ return formatResult(result.value);
61811
+ }
61812
+ };
61813
+ });
61814
+
61815
+ // src/models/screeninglist.ts
61816
+ var ScreeningList$zodSchema;
61817
+ var init_screeninglist = __esm(() => {
61818
+ init_zod();
61819
+ init_screening();
61820
+ ScreeningList$zodSchema = object({
61821
+ items: array(Screening$zodSchema),
61822
+ next_before: string2().optional().describe("Pass as before to read the next, older page.")
61823
+ }).describe("Screenings, newest first.");
61824
+ });
61825
+
61826
+ // src/models/listscreeningsop.ts
61827
+ var ListScreeningsRequest$zodSchema, ListScreeningsResponseResult$zodSchema, ListScreeningsResponse$zodSchema;
61828
+ var init_listscreeningsop = __esm(() => {
61829
+ init_zod();
61830
+ init_authenticationerror();
61831
+ init_badrequesterror();
61832
+ init_conflicterror();
61833
+ init_keyenvironment();
61834
+ init_notfounderror();
61835
+ init_permissiondeniederror();
61836
+ init_ratelimiterror();
61837
+ init_screeninglist();
61838
+ ListScreeningsRequest$zodSchema = object({
61839
+ before: string2().describe("Read screenings older than this one.").optional(),
61840
+ environment: KeyEnvironment$zodSchema.describe("The environment: live or test. Each has its own settings. Any other value answers 400. An API key reads and changes only its own environment's; the other answers 404."),
61841
+ event_id: string2(),
61842
+ limit: int().default(20).describe("At most this many items."),
61843
+ workspace_id: string2().describe("Your workspace id, as each key lists it in workspace_id. Another workspace, a malformed id and a test environment's id answer 404.")
61844
+ });
61845
+ ListScreeningsResponseResult$zodSchema = union([
61846
+ BadRequestError$zodSchema,
61847
+ AuthenticationError$zodSchema,
61848
+ PermissionDeniedError$zodSchema,
61849
+ NotFoundError$zodSchema,
61850
+ ConflictError$zodSchema,
61851
+ RateLimitError$zodSchema,
61852
+ ScreeningList$zodSchema
61853
+ ]);
61854
+ ListScreeningsResponse$zodSchema = object({
61855
+ Headers: record(string2(), array(string2())).default({}),
61856
+ Result: union([
61857
+ BadRequestError$zodSchema,
61858
+ AuthenticationError$zodSchema,
61859
+ PermissionDeniedError$zodSchema,
61860
+ NotFoundError$zodSchema,
61861
+ ConflictError$zodSchema,
61862
+ RateLimitError$zodSchema,
61863
+ ScreeningList$zodSchema
61864
+ ])
61865
+ });
61866
+ });
61867
+
61868
+ // src/funcs/eventsListScreenings.ts
61869
+ function eventsListScreenings(client$, request, options) {
61870
+ return new APIPromise($do49(client$, request, options));
61871
+ }
61872
+ async function $do49(client$, request, options) {
61873
+ const parsed$ = safeParse2(request, (value$) => ListScreeningsRequest$zodSchema.parse(value$), "Input validation failed");
61874
+ if (!parsed$.ok) {
61875
+ return [parsed$, { status: "invalid" }];
61876
+ }
61877
+ const payload$ = parsed$.value;
61878
+ const body$ = null;
61879
+ const pathParams$ = {
61880
+ environment: encodeSimple("environment", payload$.environment, {
61881
+ explode: false,
61882
+ charEncoding: "percent"
61883
+ }),
61884
+ event_id: encodeSimple("event_id", payload$.event_id, {
61885
+ explode: false,
61886
+ charEncoding: "percent"
61887
+ }),
61888
+ workspace_id: encodeSimple("workspace_id", payload$.workspace_id, {
61889
+ explode: false,
61890
+ charEncoding: "percent"
61891
+ })
61892
+ };
61893
+ const path$ = pathToFunc("/v1/workspaces/{workspace_id}/events/{environment}/{event_id}/screenings")(pathParams$);
61894
+ const query$ = encodeFormQuery({
61895
+ before: payload$.before,
61896
+ limit: payload$.limit
61897
+ });
61898
+ const headers$ = new Headers(compactMap({
61899
+ Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
61900
+ }));
61901
+ const securityInput = await extractSecurity(client$._options.security);
61902
+ const requestSecurity = resolveGlobalSecurity(securityInput);
61903
+ const context = {
61904
+ options: client$._options,
61905
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
61906
+ operationID: "listScreenings",
61907
+ oAuth2Scopes: null,
61908
+ resolvedSecurity: requestSecurity,
61909
+ securitySource: client$._options.security,
61910
+ retryConfig: options?.retries || client$._options.retryConfig || {
61911
+ strategy: "backoff",
61912
+ backoff: {
61913
+ initialInterval: 500,
61914
+ maxInterval: 8000,
61915
+ exponent: 2,
61916
+ maxElapsedTime: 30000
61917
+ },
61918
+ retryConnectionErrors: true
61919
+ },
61920
+ retryCodes: options?.retryCodes || [
61921
+ "408",
61922
+ "429",
61923
+ "5XX"
61924
+ ]
61925
+ };
61926
+ const requestRes = client$._createRequest(context, {
61927
+ security: requestSecurity,
61928
+ method: "GET",
61929
+ baseURL: options?.serverURL,
61930
+ path: path$,
61931
+ headers: headers$,
61932
+ query: query$,
61933
+ body: body$,
61934
+ userAgent: client$._options.userAgent,
61935
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
61936
+ }, options);
61937
+ if (!requestRes.ok) {
61938
+ return [requestRes, { status: "invalid" }];
61939
+ }
61940
+ const req$ = requestRes.value;
61941
+ const doResult = await client$._do(req$, {
61942
+ context,
61943
+ errorCodes: [],
61944
+ retryConfig: context.retryConfig,
61945
+ retryCodes: context.retryCodes
61946
+ });
61947
+ if (!doResult.ok) {
61948
+ return [doResult, { status: "request-error", request: req$ }];
61949
+ }
61950
+ return [doResult, {
61951
+ status: "complete",
61952
+ request: req$,
61953
+ response: doResult.value
61954
+ }];
61955
+ }
61956
+ var init_eventsListScreenings = __esm(() => {
61957
+ init_encodings();
61958
+ init_primitives();
61959
+ init_schemas3();
61960
+ init_security();
61961
+ init_url();
61962
+ init_listscreeningsop();
61963
+ init_async();
61964
+ });
61965
+
61966
+ // src/mcp-server/tools/eventsListScreenings.ts
61967
+ var args50, tool$eventsListScreenings;
61968
+ var init_eventsListScreenings2 = __esm(() => {
61969
+ init_eventsListScreenings();
61970
+ init_listscreeningsop();
61971
+ init_tools();
61972
+ args50 = {
61973
+ request: ListScreeningsRequest$zodSchema
61974
+ };
61975
+ tool$eventsListScreenings = {
61976
+ name: "list_screenings",
61977
+ description: `List an event's screenings.
61978
+
61979
+ List an event's screenings, newest first.`,
61980
+ annotations: {
61981
+ title: "Read an event's screenings",
61982
+ destructiveHint: false,
61983
+ idempotentHint: true,
61984
+ openWorldHint: false,
61985
+ readOnlyHint: true
61986
+ },
61987
+ args: args50,
61988
+ tool: async (client, args, ctx) => {
61989
+ const [result] = await eventsListScreenings(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
61990
+ if (!result.ok) {
61991
+ return {
61992
+ content: [{ type: "text", text: result.error.message }],
61993
+ isError: true
61994
+ };
61995
+ }
61996
+ return formatResult(result.value);
61997
+ }
61998
+ };
61999
+ });
62000
+
62001
+ // src/models/attendeereviewrequest.ts
62002
+ var AttendeeReviewRequest$zodSchema;
62003
+ var init_attendeereviewrequest = __esm(() => {
62004
+ init_zod();
62005
+ init_attendeedecision();
62006
+ AttendeeReviewRequest$zodSchema = object({
62007
+ decision: AttendeeDecision$zodSchema,
62008
+ note: string2().optional().describe("Why, for the venue team and later reviewers.")
62009
+ }).describe("Records a decision on an attendee.");
62010
+ });
62011
+
62012
+ // src/models/reviewattendeeop.ts
62013
+ var ReviewAttendeeRequest$zodSchema, ReviewAttendeeResponseResult$zodSchema, ReviewAttendeeResponse$zodSchema;
62014
+ var init_reviewattendeeop = __esm(() => {
62015
+ init_zod();
62016
+ init_attendee();
62017
+ init_attendeereviewrequest();
62018
+ init_authenticationerror();
62019
+ init_badrequesterror();
62020
+ init_conflicterror();
62021
+ init_keyenvironment();
62022
+ init_notfounderror();
62023
+ init_permissiondeniederror();
62024
+ init_ratelimiterror();
62025
+ ReviewAttendeeRequest$zodSchema = object({
62026
+ attendee_id: string2(),
62027
+ body: AttendeeReviewRequest$zodSchema,
62028
+ environment: KeyEnvironment$zodSchema.describe("The environment: live or test. Each has its own settings. Any other value answers 400. An API key reads and changes only its own environment's; the other answers 404."),
62029
+ event_id: string2(),
62030
+ workspace_id: string2().describe("Your workspace id, as each key lists it in workspace_id. Another workspace, a malformed id and a test environment's id answer 404.")
62031
+ });
62032
+ ReviewAttendeeResponseResult$zodSchema = union([
62033
+ Attendee$zodSchema,
62034
+ BadRequestError$zodSchema,
62035
+ AuthenticationError$zodSchema,
62036
+ PermissionDeniedError$zodSchema,
62037
+ NotFoundError$zodSchema,
62038
+ ConflictError$zodSchema,
62039
+ RateLimitError$zodSchema
62040
+ ]);
62041
+ ReviewAttendeeResponse$zodSchema = object({
62042
+ Headers: record(string2(), array(string2())).default({}),
62043
+ Result: union([
62044
+ Attendee$zodSchema,
62045
+ BadRequestError$zodSchema,
62046
+ AuthenticationError$zodSchema,
62047
+ PermissionDeniedError$zodSchema,
62048
+ NotFoundError$zodSchema,
62049
+ ConflictError$zodSchema,
62050
+ RateLimitError$zodSchema
62051
+ ])
62052
+ });
62053
+ });
62054
+
62055
+ // src/funcs/eventsReviewAttendee.ts
62056
+ function eventsReviewAttendee(client$, request, options) {
62057
+ return new APIPromise($do50(client$, request, options));
62058
+ }
62059
+ async function $do50(client$, request, options) {
62060
+ const parsed$ = safeParse2(request, (value$) => ReviewAttendeeRequest$zodSchema.parse(value$), "Input validation failed");
62061
+ if (!parsed$.ok) {
62062
+ return [parsed$, { status: "invalid" }];
62063
+ }
62064
+ const payload$ = parsed$.value;
62065
+ const body$ = encodeJSON("body", payload$.body, { explode: true });
62066
+ const pathParams$ = {
62067
+ attendee_id: encodeSimple("attendee_id", payload$.attendee_id, {
62068
+ explode: false,
62069
+ charEncoding: "percent"
62070
+ }),
62071
+ environment: encodeSimple("environment", payload$.environment, {
62072
+ explode: false,
62073
+ charEncoding: "percent"
62074
+ }),
62075
+ event_id: encodeSimple("event_id", payload$.event_id, {
62076
+ explode: false,
62077
+ charEncoding: "percent"
62078
+ }),
62079
+ workspace_id: encodeSimple("workspace_id", payload$.workspace_id, {
62080
+ explode: false,
62081
+ charEncoding: "percent"
62082
+ })
62083
+ };
62084
+ const path$ = pathToFunc("/v1/workspaces/{workspace_id}/events/{environment}/{event_id}/attendees/{attendee_id}/review")(pathParams$);
62085
+ const headers$ = new Headers(compactMap({
62086
+ "Content-Type": "application/json",
62087
+ Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
62088
+ }));
62089
+ const securityInput = await extractSecurity(client$._options.security);
62090
+ const requestSecurity = resolveGlobalSecurity(securityInput);
62091
+ const context = {
62092
+ options: client$._options,
62093
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
62094
+ operationID: "reviewAttendee",
62095
+ oAuth2Scopes: null,
62096
+ resolvedSecurity: requestSecurity,
62097
+ securitySource: client$._options.security,
62098
+ retryConfig: options?.retries || { strategy: "none" },
62099
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
62100
+ };
62101
+ const requestRes = client$._createRequest(context, {
62102
+ security: requestSecurity,
62103
+ method: "POST",
62104
+ baseURL: options?.serverURL,
62105
+ path: path$,
62106
+ headers: headers$,
62107
+ body: body$,
62108
+ userAgent: client$._options.userAgent,
62109
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
62110
+ }, options);
62111
+ if (!requestRes.ok) {
62112
+ return [requestRes, { status: "invalid" }];
62113
+ }
62114
+ const req$ = requestRes.value;
62115
+ const doResult = await client$._do(req$, {
62116
+ context,
62117
+ errorCodes: [],
62118
+ retryConfig: context.retryConfig,
62119
+ retryCodes: context.retryCodes
62120
+ });
62121
+ if (!doResult.ok) {
62122
+ return [doResult, { status: "request-error", request: req$ }];
62123
+ }
62124
+ return [doResult, {
62125
+ status: "complete",
62126
+ request: req$,
62127
+ response: doResult.value
62128
+ }];
62129
+ }
62130
+ var init_eventsReviewAttendee = __esm(() => {
62131
+ init_encodings();
62132
+ init_primitives();
62133
+ init_schemas3();
62134
+ init_security();
62135
+ init_url();
62136
+ init_reviewattendeeop();
62137
+ init_async();
62138
+ });
62139
+
62140
+ // src/mcp-server/tools/eventsReviewAttendee.ts
62141
+ var args51, tool$eventsReviewAttendee;
62142
+ var init_eventsReviewAttendee2 = __esm(() => {
62143
+ init_eventsReviewAttendee();
62144
+ init_reviewattendeeop();
62145
+ init_tools();
62146
+ args51 = {
62147
+ request: ReviewAttendeeRequest$zodSchema
62148
+ };
62149
+ tool$eventsReviewAttendee = {
62150
+ name: "review_attendee",
62151
+ description: `Record a decision on an attendee.
62152
+
62153
+ Record a cleared, watch or escalated decision with a note. The latest decision is the attendee's; the next screening refreshes everyone on watch or escalated.`,
62154
+ annotations: {
62155
+ title: "Mark an attendee cleared, watch or escalated with a note",
62156
+ destructiveHint: false,
62157
+ idempotentHint: false,
62158
+ openWorldHint: false,
62159
+ readOnlyHint: false
62160
+ },
62161
+ args: args51,
62162
+ tool: async (client, args, ctx) => {
62163
+ const [result] = await eventsReviewAttendee(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
62164
+ if (!result.ok) {
62165
+ return {
62166
+ content: [{ type: "text", text: result.error.message }],
62167
+ isError: true
62168
+ };
62169
+ }
62170
+ return formatResult(result.value);
62171
+ }
62172
+ };
62173
+ });
62174
+
62175
+ // src/models/screeningrequest.ts
62176
+ var ScreeningRequestPlatform$zodSchema, ScreeningRequest$zodSchema;
62177
+ var init_screeningrequest = __esm(() => {
62178
+ init_zod();
62179
+ init_screeningdepth();
62180
+ ScreeningRequestPlatform$zodSchema = _enum([
62181
+ "instagram",
62182
+ "x",
62183
+ "bluesky",
62184
+ "youtube",
62185
+ "tiktok",
62186
+ "facebook",
62187
+ "threads",
62188
+ "reddit",
62189
+ "telegram",
62190
+ "linkedin"
62191
+ ]);
62192
+ ScreeningRequest$zodSchema = object({
62193
+ depth: ScreeningDepth$zodSchema,
62194
+ platforms: array(ScreeningRequestPlatform$zodSchema)
62195
+ }).describe("Screens the event's attendees no screening has reached and everyone on watch or escalated.");
62196
+ });
62197
+
62198
+ // src/models/startscreeningop.ts
62199
+ var StartScreeningRequest$zodSchema, StartScreeningResponseResult$zodSchema, StartScreeningResponse$zodSchema;
62200
+ var init_startscreeningop = __esm(() => {
62201
+ init_zod();
62202
+ init_authenticationerror();
62203
+ init_badrequesterror();
62204
+ init_conflicterror();
62205
+ init_keyenvironment();
62206
+ init_notfounderror();
62207
+ init_permissiondeniederror();
62208
+ init_ratelimiterror();
62209
+ init_screening();
62210
+ init_screeningrequest();
62211
+ StartScreeningRequest$zodSchema = object({
62212
+ body: ScreeningRequest$zodSchema,
62213
+ environment: KeyEnvironment$zodSchema.describe("The environment: live or test. Each has its own settings. Any other value answers 400. An API key reads and changes only its own environment's; the other answers 404."),
62214
+ event_id: string2(),
62215
+ idempotencyKey: string2().describe("Opaque client key, 16 to 128 characters of [A-Za-z0-9._:-] (a UUID or ULID fits). Scoped to the workspace principal and bound to the canonical body for 24 hours. Optional: the SDK generates a UUID when you omit it and sends the same key on every retry of the call.").optional(),
62216
+ workspace_id: string2().describe("Your workspace id, as each key lists it in workspace_id. Another workspace, a malformed id and a test environment's id answer 404.")
62217
+ });
62218
+ StartScreeningResponseResult$zodSchema = union([
62219
+ Screening$zodSchema,
62220
+ BadRequestError$zodSchema,
62221
+ AuthenticationError$zodSchema,
62222
+ PermissionDeniedError$zodSchema,
62223
+ NotFoundError$zodSchema,
62224
+ ConflictError$zodSchema,
62225
+ RateLimitError$zodSchema
62226
+ ]);
62227
+ StartScreeningResponse$zodSchema = object({
62228
+ Headers: record(string2(), array(string2())).default({}),
62229
+ Result: union([
62230
+ Screening$zodSchema,
62231
+ BadRequestError$zodSchema,
62232
+ AuthenticationError$zodSchema,
62233
+ PermissionDeniedError$zodSchema,
62234
+ NotFoundError$zodSchema,
62235
+ ConflictError$zodSchema,
62236
+ RateLimitError$zodSchema
62237
+ ])
62238
+ });
62239
+ });
62240
+
62241
+ // src/funcs/eventsStartScreening.ts
62242
+ function eventsStartScreening(client$, request, options) {
62243
+ return new APIPromise($do51(client$, request, options));
62244
+ }
62245
+ async function $do51(client$, request, options) {
62246
+ const parsed$ = safeParse2(request, (value$) => StartScreeningRequest$zodSchema.parse(value$), "Input validation failed");
62247
+ if (!parsed$.ok) {
62248
+ return [parsed$, { status: "invalid" }];
62249
+ }
62250
+ const payload$ = parsed$.value;
62251
+ const body$ = encodeJSON("body", payload$.body, { explode: true });
62252
+ const pathParams$ = {
62253
+ environment: encodeSimple("environment", payload$.environment, {
62254
+ explode: false,
62255
+ charEncoding: "percent"
62256
+ }),
62257
+ event_id: encodeSimple("event_id", payload$.event_id, {
62258
+ explode: false,
62259
+ charEncoding: "percent"
62260
+ }),
62261
+ workspace_id: encodeSimple("workspace_id", payload$.workspace_id, {
62262
+ explode: false,
62263
+ charEncoding: "percent"
62264
+ })
62265
+ };
62266
+ const path$ = pathToFunc("/v1/workspaces/{workspace_id}/events/{environment}/{event_id}/screenings")(pathParams$);
62267
+ const headers$ = new Headers(compactMap({
62268
+ "Content-Type": "application/json",
62269
+ Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0",
62270
+ "Idempotency-Key": encodeSimple("Idempotency-Key", payload$.idempotencyKey, { explode: false, charEncoding: "none" })
62271
+ }));
62272
+ const securityInput = await extractSecurity(client$._options.security);
62273
+ const requestSecurity = resolveGlobalSecurity(securityInput);
62274
+ const context = {
62275
+ options: client$._options,
62276
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
62277
+ operationID: "startScreening",
62278
+ oAuth2Scopes: null,
62279
+ resolvedSecurity: requestSecurity,
62280
+ securitySource: client$._options.security,
62281
+ retryConfig: options?.retries || client$._options.retryConfig || {
62282
+ strategy: "backoff",
62283
+ backoff: {
62284
+ initialInterval: 500,
62285
+ maxInterval: 8000,
62286
+ exponent: 2,
62287
+ maxElapsedTime: 30000
62288
+ },
62289
+ retryConnectionErrors: true
62290
+ },
62291
+ retryCodes: options?.retryCodes || [
62292
+ "408",
62293
+ "429",
62294
+ "5XX"
62295
+ ]
62296
+ };
62297
+ const requestRes = client$._createRequest(context, {
62298
+ security: requestSecurity,
62299
+ method: "POST",
62300
+ baseURL: options?.serverURL,
62301
+ path: path$,
62302
+ headers: headers$,
62303
+ body: body$,
62304
+ userAgent: client$._options.userAgent,
62305
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
62306
+ }, options);
62307
+ if (!requestRes.ok) {
62308
+ return [requestRes, { status: "invalid" }];
62309
+ }
62310
+ const req$ = requestRes.value;
62311
+ const doResult = await client$._do(req$, {
62312
+ context,
62313
+ errorCodes: [],
62314
+ retryConfig: context.retryConfig,
62315
+ retryCodes: context.retryCodes
62316
+ });
62317
+ if (!doResult.ok) {
62318
+ return [doResult, { status: "request-error", request: req$ }];
62319
+ }
62320
+ return [doResult, {
62321
+ status: "complete",
62322
+ request: req$,
62323
+ response: doResult.value
62324
+ }];
62325
+ }
62326
+ var init_eventsStartScreening = __esm(() => {
62327
+ init_encodings();
62328
+ init_primitives();
62329
+ init_schemas3();
62330
+ init_security();
62331
+ init_url();
62332
+ init_startscreeningop();
62333
+ init_async();
62334
+ });
62335
+
62336
+ // src/mcp-server/tools/eventsStartScreening.ts
62337
+ var args52, tool$eventsStartScreening;
62338
+ var init_eventsStartScreening2 = __esm(() => {
62339
+ init_eventsStartScreening();
62340
+ init_startscreeningop();
62341
+ init_tools();
62342
+ args52 = {
62343
+ request: StartScreeningRequest$zodSchema
62344
+ };
62345
+ tool$eventsStartScreening = {
62346
+ name: "start_screening",
62347
+ description: `Start a screening.
62348
+
62349
+ Start a screening of new attendees and everyone on watch or escalated, with an Idempotency-Key. It finishes completed, partial or failed minutes to hours later; poll it. The answer carries estimated_spend; a screening whose estimate exceeds what the daily screening cap has left answers 409 screening_cap_exceeded. The test environment screens with stand-ins that find no accounts.`,
62350
+ annotations: {
62351
+ title: "Screen new attendees and everyone on watch or escalated",
62352
+ destructiveHint: false,
62353
+ idempotentHint: true,
62354
+ openWorldHint: false,
62355
+ readOnlyHint: false
62356
+ },
62357
+ args: args52,
62358
+ tool: async (client, args, ctx) => {
62359
+ const [result] = await eventsStartScreening(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
62360
+ if (!result.ok) {
62361
+ return {
62362
+ content: [{ type: "text", text: result.error.message }],
62363
+ isError: true
62364
+ };
62365
+ }
62366
+ return formatResult(result.value);
62367
+ }
62368
+ };
62369
+ });
62370
+
62371
+ // src/models/eventupdate.ts
62372
+ var EventUpdate$zodSchema;
62373
+ var init_eventupdate = __esm(() => {
62374
+ init_zod();
62375
+ init_principal();
62376
+ EventUpdate$zodSchema = object({
62377
+ ends_at: string2().optional().describe("When the event ends, at or after its start; the start when omitted."),
62378
+ expected_version: int().optional().describe("When present, the change applies only if the event is still at this version (409 event_conflict otherwise)."),
62379
+ host: string2().optional().describe("The organisation hosting the event."),
62380
+ name: string2().optional().describe("The event's name."),
62381
+ principals: array(Principal$zodSchema).optional().describe("The people the event protects, at most 20."),
62382
+ starts_at: string2().optional().describe("When the event starts."),
62383
+ topics: array(string2()).optional().describe("Sensitive topics the screening reads posts against, at most 50."),
62384
+ venue: string2().optional().describe("Where the event is held.")
62385
+ }).describe("Changes the fields it names; at least one besides expected_version.");
62386
+ });
62387
+
62388
+ // src/models/updateeventop.ts
62389
+ var UpdateEventRequest$zodSchema, UpdateEventResponseResult$zodSchema, UpdateEventResponse$zodSchema;
62390
+ var init_updateeventop = __esm(() => {
62391
+ init_zod();
62392
+ init_authenticationerror();
62393
+ init_badrequesterror();
62394
+ init_conflicterror();
62395
+ init_event();
62396
+ init_eventupdate();
62397
+ init_keyenvironment();
62398
+ init_notfounderror();
62399
+ init_permissiondeniederror();
62400
+ init_ratelimiterror();
62401
+ UpdateEventRequest$zodSchema = object({
62402
+ body: EventUpdate$zodSchema,
62403
+ environment: KeyEnvironment$zodSchema.describe("The environment: live or test. Each has its own settings. Any other value answers 400. An API key reads and changes only its own environment's; the other answers 404."),
62404
+ event_id: string2(),
62405
+ workspace_id: string2().describe("Your workspace id, as each key lists it in workspace_id. Another workspace, a malformed id and a test environment's id answer 404.")
62406
+ });
62407
+ UpdateEventResponseResult$zodSchema = union([
62408
+ Event$zodSchema,
62409
+ BadRequestError$zodSchema,
62410
+ AuthenticationError$zodSchema,
62411
+ PermissionDeniedError$zodSchema,
62412
+ NotFoundError$zodSchema,
62413
+ ConflictError$zodSchema,
62414
+ RateLimitError$zodSchema
62415
+ ]);
62416
+ UpdateEventResponse$zodSchema = object({
62417
+ Headers: record(string2(), array(string2())).default({}),
62418
+ Result: union([
62419
+ Event$zodSchema,
62420
+ BadRequestError$zodSchema,
62421
+ AuthenticationError$zodSchema,
62422
+ PermissionDeniedError$zodSchema,
62423
+ NotFoundError$zodSchema,
62424
+ ConflictError$zodSchema,
62425
+ RateLimitError$zodSchema
62426
+ ])
62427
+ });
62428
+ });
62429
+
62430
+ // src/funcs/eventsUpdate.ts
62431
+ function eventsUpdate(client$, request, options) {
62432
+ return new APIPromise($do52(client$, request, options));
62433
+ }
62434
+ async function $do52(client$, request, options) {
62435
+ const parsed$ = safeParse2(request, (value$) => UpdateEventRequest$zodSchema.parse(value$), "Input validation failed");
62436
+ if (!parsed$.ok) {
62437
+ return [parsed$, { status: "invalid" }];
62438
+ }
62439
+ const payload$ = parsed$.value;
62440
+ const body$ = encodeJSON("body", payload$.body, { explode: true });
62441
+ const pathParams$ = {
62442
+ environment: encodeSimple("environment", payload$.environment, {
62443
+ explode: false,
62444
+ charEncoding: "percent"
62445
+ }),
62446
+ event_id: encodeSimple("event_id", payload$.event_id, {
62447
+ explode: false,
62448
+ charEncoding: "percent"
62449
+ }),
62450
+ workspace_id: encodeSimple("workspace_id", payload$.workspace_id, {
62451
+ explode: false,
62452
+ charEncoding: "percent"
62453
+ })
62454
+ };
62455
+ const path$ = pathToFunc("/v1/workspaces/{workspace_id}/events/{environment}/{event_id}")(pathParams$);
62456
+ const headers$ = new Headers(compactMap({
62457
+ "Content-Type": "application/json",
62458
+ Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
62459
+ }));
62460
+ const securityInput = await extractSecurity(client$._options.security);
62461
+ const requestSecurity = resolveGlobalSecurity(securityInput);
62462
+ const context = {
62463
+ options: client$._options,
62464
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
62465
+ operationID: "updateEvent",
62466
+ oAuth2Scopes: null,
62467
+ resolvedSecurity: requestSecurity,
62468
+ securitySource: client$._options.security,
62469
+ retryConfig: options?.retries || client$._options.retryConfig || {
62470
+ strategy: "backoff",
62471
+ backoff: {
62472
+ initialInterval: 500,
62473
+ maxInterval: 8000,
62474
+ exponent: 2,
62475
+ maxElapsedTime: 30000
62476
+ },
62477
+ retryConnectionErrors: true
62478
+ },
62479
+ retryCodes: options?.retryCodes || [
62480
+ "408",
62481
+ "429",
62482
+ "5XX"
62483
+ ]
62484
+ };
62485
+ const requestRes = client$._createRequest(context, {
62486
+ security: requestSecurity,
62487
+ method: "PATCH",
62488
+ baseURL: options?.serverURL,
62489
+ path: path$,
62490
+ headers: headers$,
62491
+ body: body$,
62492
+ userAgent: client$._options.userAgent,
62493
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
62494
+ }, options);
62495
+ if (!requestRes.ok) {
62496
+ return [requestRes, { status: "invalid" }];
62497
+ }
62498
+ const req$ = requestRes.value;
62499
+ const doResult = await client$._do(req$, {
62500
+ context,
62501
+ errorCodes: [],
62502
+ retryConfig: context.retryConfig,
62503
+ retryCodes: context.retryCodes
62504
+ });
62505
+ if (!doResult.ok) {
62506
+ return [doResult, { status: "request-error", request: req$ }];
62507
+ }
62508
+ return [doResult, {
62509
+ status: "complete",
62510
+ request: req$,
62511
+ response: doResult.value
62512
+ }];
62513
+ }
62514
+ var init_eventsUpdate = __esm(() => {
62515
+ init_encodings();
62516
+ init_primitives();
62517
+ init_schemas3();
62518
+ init_security();
62519
+ init_url();
62520
+ init_updateeventop();
62521
+ init_async();
62522
+ });
62523
+
62524
+ // src/mcp-server/tools/eventsUpdate.ts
62525
+ var args53, tool$eventsUpdate;
62526
+ var init_eventsUpdate2 = __esm(() => {
62527
+ init_eventsUpdate();
62528
+ init_updateeventop();
62529
+ init_tools();
62530
+ args53 = {
62531
+ request: UpdateEventRequest$zodSchema
62532
+ };
62533
+ tool$eventsUpdate = {
62534
+ name: "update_event",
62535
+ description: `Change an event.
62536
+
62537
+ Change the fields you name. Send expected_version to apply the change only to that version.`,
62538
+ annotations: {
62539
+ title: "Change an event's details",
62540
+ destructiveHint: false,
62541
+ idempotentHint: true,
62542
+ openWorldHint: false,
62543
+ readOnlyHint: false
62544
+ },
62545
+ args: args53,
62546
+ tool: async (client, args, ctx) => {
62547
+ const [result] = await eventsUpdate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
62548
+ if (!result.ok) {
62549
+ return {
62550
+ content: [{ type: "text", text: result.error.message }],
62551
+ isError: true
62552
+ };
62553
+ }
62554
+ return formatResult(result.value);
62555
+ }
62556
+ };
62557
+ });
62558
+
59917
62559
  // src/models/customerexportrequestkind.ts
59918
62560
  var CustomerExportRequestKind$zodSchema;
59919
62561
  var init_customerexportrequestkind = __esm(() => {
@@ -60015,9 +62657,9 @@ var init_cancelcustomerexportop = __esm(() => {
60015
62657
 
60016
62658
  // src/funcs/exportsCancel.ts
60017
62659
  function exportsCancel(client$, request, options) {
60018
- return new APIPromise($do40(client$, request, options));
62660
+ return new APIPromise($do53(client$, request, options));
60019
62661
  }
60020
- async function $do40(client$, request, options) {
62662
+ async function $do53(client$, request, options) {
60021
62663
  const parsed$ = safeParse2(request, (value$) => CancelCustomerExportRequest$zodSchema.parse(value$), "Input validation failed");
60022
62664
  if (!parsed$.ok) {
60023
62665
  return [parsed$, { status: "invalid" }];
@@ -60104,12 +62746,12 @@ var init_exportsCancel = __esm(() => {
60104
62746
  });
60105
62747
 
60106
62748
  // src/mcp-server/tools/exportsCancel.ts
60107
- var args41, tool$exportsCancel;
62749
+ var args54, tool$exportsCancel;
60108
62750
  var init_exportsCancel2 = __esm(() => {
60109
62751
  init_exportsCancel();
60110
62752
  init_cancelcustomerexportop();
60111
62753
  init_tools();
60112
- args41 = {
62754
+ args54 = {
60113
62755
  request: CancelCustomerExportRequest$zodSchema
60114
62756
  };
60115
62757
  tool$exportsCancel = {
@@ -60124,7 +62766,7 @@ Cancel an export and remove its stored chunks. Repeating cancellation is safe. A
60124
62766
  openWorldHint: false,
60125
62767
  readOnlyHint: false
60126
62768
  },
60127
- args: args41,
62769
+ args: args54,
60128
62770
  tool: async (client, args, ctx) => {
60129
62771
  const [result] = await exportsCancel(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
60130
62772
  if (!result.ok) {
@@ -60215,9 +62857,9 @@ var init_createcustomerexportop = __esm(() => {
60215
62857
 
60216
62858
  // src/funcs/exportsCreate.ts
60217
62859
  function exportsCreate(client$, request, options) {
60218
- return new APIPromise($do41(client$, request, options));
62860
+ return new APIPromise($do54(client$, request, options));
60219
62861
  }
60220
- async function $do41(client$, request, options) {
62862
+ async function $do54(client$, request, options) {
60221
62863
  const parsed$ = safeParse2(request, (value$) => CreateCustomerExportRequest$zodSchema.parse(value$), "Input validation failed");
60222
62864
  if (!parsed$.ok) {
60223
62865
  return [parsed$, { status: "invalid" }];
@@ -60288,12 +62930,12 @@ var init_exportsCreate = __esm(() => {
60288
62930
  });
60289
62931
 
60290
62932
  // src/mcp-server/tools/exportsCreate.ts
60291
- var args42, tool$exportsCreate;
62933
+ var args55, tool$exportsCreate;
60292
62934
  var init_exportsCreate2 = __esm(() => {
60293
62935
  init_exportsCreate();
60294
62936
  init_createcustomerexportop();
60295
62937
  init_tools();
60296
- args42 = {
62938
+ args55 = {
60297
62939
  request: CreateCustomerExportRequest$zodSchema
60298
62940
  };
60299
62941
  tool$exportsCreate = {
@@ -60308,7 +62950,7 @@ Request an encrypted JSON Lines snapshot of retained account or audit records. R
60308
62950
  openWorldHint: false,
60309
62951
  readOnlyHint: false
60310
62952
  },
60311
- args: args42,
62953
+ args: args55,
60312
62954
  tool: async (client, args, ctx) => {
60313
62955
  const [result] = await exportsCreate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
60314
62956
  if (!result.ok) {
@@ -60377,9 +63019,9 @@ var init_downloadcustomerexportchunkop = __esm(() => {
60377
63019
 
60378
63020
  // src/funcs/exportsDownloadChunk.ts
60379
63021
  function exportsDownloadChunk(client$, request, options) {
60380
- return new APIPromise($do42(client$, request, options));
63022
+ return new APIPromise($do55(client$, request, options));
60381
63023
  }
60382
- async function $do42(client$, request, options) {
63024
+ async function $do55(client$, request, options) {
60383
63025
  const parsed$ = safeParse2(request, (value$) => DownloadCustomerExportChunkRequest$zodSchema.parse(value$), "Input validation failed");
60384
63026
  if (!parsed$.ok) {
60385
63027
  return [parsed$, { status: "invalid" }];
@@ -60469,12 +63111,12 @@ var init_exportsDownloadChunk = __esm(() => {
60469
63111
  });
60470
63112
 
60471
63113
  // src/mcp-server/tools/exportsDownloadChunk.ts
60472
- var args43, tool$exportsDownloadChunk;
63114
+ var args56, tool$exportsDownloadChunk;
60473
63115
  var init_exportsDownloadChunk2 = __esm(() => {
60474
63116
  init_exportsDownloadChunk();
60475
63117
  init_downloadcustomerexportchunkop();
60476
63118
  init_tools();
60477
- args43 = {
63119
+ args56 = {
60478
63120
  request: DownloadCustomerExportChunkRequest$zodSchema
60479
63121
  };
60480
63122
  tool$exportsDownloadChunk = {
@@ -60489,7 +63131,7 @@ Download one chunk of a completed, unexpired export after a fresh permission and
60489
63131
  openWorldHint: false,
60490
63132
  readOnlyHint: true
60491
63133
  },
60492
- args: args43,
63134
+ args: args56,
60493
63135
  tool: async (client, args, ctx) => {
60494
63136
  const [result] = await exportsDownloadChunk(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
60495
63137
  if (!result.ok) {
@@ -60543,9 +63185,9 @@ var init_getcustomerexportop = __esm(() => {
60543
63185
 
60544
63186
  // src/funcs/exportsGet.ts
60545
63187
  function exportsGet(client$, request, options) {
60546
- return new APIPromise($do43(client$, request, options));
63188
+ return new APIPromise($do56(client$, request, options));
60547
63189
  }
60548
- async function $do43(client$, request, options) {
63190
+ async function $do56(client$, request, options) {
60549
63191
  const parsed$ = safeParse2(request, (value$) => GetCustomerExportRequest$zodSchema.parse(value$), "Input validation failed");
60550
63192
  if (!parsed$.ok) {
60551
63193
  return [parsed$, { status: "invalid" }];
@@ -60631,12 +63273,12 @@ var init_exportsGet = __esm(() => {
60631
63273
  });
60632
63274
 
60633
63275
  // src/mcp-server/tools/exportsGet.ts
60634
- var args44, tool$exportsGet;
63276
+ var args57, tool$exportsGet;
60635
63277
  var init_exportsGet2 = __esm(() => {
60636
63278
  init_exportsGet();
60637
63279
  init_getcustomerexportop();
60638
63280
  init_tools();
60639
- args44 = {
63281
+ args57 = {
60640
63282
  request: GetCustomerExportRequest$zodSchema
60641
63283
  };
60642
63284
  tool$exportsGet = {
@@ -60651,7 +63293,7 @@ Read the status of an authorised export. Records and bytes describe committed pr
60651
63293
  openWorldHint: false,
60652
63294
  readOnlyHint: true
60653
63295
  },
60654
- args: args44,
63296
+ args: args57,
60655
63297
  tool: async (client, args, ctx) => {
60656
63298
  const [result] = await exportsGet(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
60657
63299
  if (!result.ok) {
@@ -60721,9 +63363,9 @@ var init_listcustomerexportsop = __esm(() => {
60721
63363
 
60722
63364
  // src/funcs/exportsList.ts
60723
63365
  function exportsList(client$, request, options) {
60724
- return new APIPromise($do44(client$, request, options));
63366
+ return new APIPromise($do57(client$, request, options));
60725
63367
  }
60726
- async function $do44(client$, request, options) {
63368
+ async function $do57(client$, request, options) {
60727
63369
  const parsed$ = safeParse2(request, (value$) => ListCustomerExportsRequest$zodSchema.parse(value$), "Input validation failed");
60728
63370
  if (!parsed$.ok) {
60729
63371
  return [parsed$, { status: "invalid" }];
@@ -60812,12 +63454,12 @@ var init_exportsList = __esm(() => {
60812
63454
  });
60813
63455
 
60814
63456
  // src/mcp-server/tools/exportsList.ts
60815
- var args45, tool$exportsList;
63457
+ var args58, tool$exportsList;
60816
63458
  var init_exportsList2 = __esm(() => {
60817
63459
  init_exportsList();
60818
63460
  init_listcustomerexportsop();
60819
63461
  init_tools();
60820
- args45 = {
63462
+ args58 = {
60821
63463
  request: ListCustomerExportsRequest$zodSchema
60822
63464
  };
60823
63465
  tool$exportsList = {
@@ -60832,7 +63474,7 @@ List authorised jobs for one kind and environment. Detailed jobs require current
60832
63474
  openWorldHint: false,
60833
63475
  readOnlyHint: true
60834
63476
  },
60835
- args: args45,
63477
+ args: args58,
60836
63478
  tool: async (client, args, ctx) => {
60837
63479
  const [result] = await exportsList(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
60838
63480
  if (!result.ok) {
@@ -60888,9 +63530,9 @@ var init_retrycustomerexportop = __esm(() => {
60888
63530
 
60889
63531
  // src/funcs/exportsRetry.ts
60890
63532
  function exportsRetry(client$, request, options) {
60891
- return new APIPromise($do45(client$, request, options));
63533
+ return new APIPromise($do58(client$, request, options));
60892
63534
  }
60893
- async function $do45(client$, request, options) {
63535
+ async function $do58(client$, request, options) {
60894
63536
  const parsed$ = safeParse2(request, (value$) => RetryCustomerExportRequest$zodSchema.parse(value$), "Input validation failed");
60895
63537
  if (!parsed$.ok) {
60896
63538
  return [parsed$, { status: "invalid" }];
@@ -60964,12 +63606,12 @@ var init_exportsRetry = __esm(() => {
60964
63606
  });
60965
63607
 
60966
63608
  // src/mcp-server/tools/exportsRetry.ts
60967
- var args46, tool$exportsRetry;
63609
+ var args59, tool$exportsRetry;
60968
63610
  var init_exportsRetry2 = __esm(() => {
60969
63611
  init_exportsRetry();
60970
63612
  init_retrycustomerexportop();
60971
63613
  init_tools();
60972
- args46 = {
63614
+ args59 = {
60973
63615
  request: RetryCustomerExportRequest$zodSchema
60974
63616
  };
60975
63617
  tool$exportsRetry = {
@@ -60984,7 +63626,7 @@ Start a new generation of a failed export before its original expiry, up to ten
60984
63626
  openWorldHint: false,
60985
63627
  readOnlyHint: false
60986
63628
  },
60987
- args: args46,
63629
+ args: args59,
60988
63630
  tool: async (client, args, ctx) => {
60989
63631
  const [result] = await exportsRetry(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
60990
63632
  if (!result.ok) {
@@ -61034,9 +63676,9 @@ var init_integrationrequest = __esm(() => {
61034
63676
 
61035
63677
  // src/funcs/integrationsCreate.ts
61036
63678
  function integrationsCreate(client$, request, options) {
61037
- return new APIPromise($do46(client$, request, options));
63679
+ return new APIPromise($do59(client$, request, options));
61038
63680
  }
61039
- async function $do46(client$, request, options) {
63681
+ async function $do59(client$, request, options) {
61040
63682
  const parsed$ = safeParse2(request, (value$) => IntegrationRequest$zodSchema.parse(value$), "Input validation failed");
61041
63683
  if (!parsed$.ok) {
61042
63684
  return [parsed$, { status: "invalid" }];
@@ -61100,12 +63742,12 @@ var init_integrationsCreate = __esm(() => {
61100
63742
  });
61101
63743
 
61102
63744
  // src/mcp-server/tools/integrationsCreate.ts
61103
- var args47, tool$integrationsCreate;
63745
+ var args60, tool$integrationsCreate;
61104
63746
  var init_integrationsCreate2 = __esm(() => {
61105
63747
  init_integrationsCreate();
61106
63748
  init_integrationrequest();
61107
63749
  init_tools();
61108
- args47 = {
63750
+ args60 = {
61109
63751
  request: IntegrationRequest$zodSchema
61110
63752
  };
61111
63753
  tool$integrationsCreate = {
@@ -61120,7 +63762,7 @@ Registers a WorkOS, Auth0 or Supabase integration and returns its hosted endpoin
61120
63762
  openWorldHint: false,
61121
63763
  readOnlyHint: false
61122
63764
  },
61123
- args: args47,
63765
+ args: args60,
61124
63766
  tool: async (client, args, ctx) => {
61125
63767
  const [result] = await integrationsCreate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
61126
63768
  if (!result.ok) {
@@ -61170,9 +63812,9 @@ var init_deleteintegrationop = __esm(() => {
61170
63812
 
61171
63813
  // src/funcs/integrationsDelete.ts
61172
63814
  function integrationsDelete(client$, request, options) {
61173
- return new APIPromise($do47(client$, request, options));
63815
+ return new APIPromise($do60(client$, request, options));
61174
63816
  }
61175
- async function $do47(client$, request, options) {
63817
+ async function $do60(client$, request, options) {
61176
63818
  const parsed$ = safeParse2(request, (value$) => DeleteIntegrationRequest$zodSchema.parse(value$), "Input validation failed");
61177
63819
  if (!parsed$.ok) {
61178
63820
  return [parsed$, { status: "invalid" }];
@@ -61254,12 +63896,12 @@ var init_integrationsDelete = __esm(() => {
61254
63896
  });
61255
63897
 
61256
63898
  // src/mcp-server/tools/integrationsDelete.ts
61257
- var args48, tool$integrationsDelete;
63899
+ var args61, tool$integrationsDelete;
61258
63900
  var init_integrationsDelete2 = __esm(() => {
61259
63901
  init_integrationsDelete();
61260
63902
  init_deleteintegrationop();
61261
63903
  init_tools();
61262
- args48 = {
63904
+ args61 = {
61263
63905
  request: DeleteIntegrationRequest$zodSchema
61264
63906
  };
61265
63907
  tool$integrationsDelete = {
@@ -61274,7 +63916,7 @@ Removes the integration and its secrets; its endpoint answers 404 from then on,
61274
63916
  openWorldHint: false,
61275
63917
  readOnlyHint: false
61276
63918
  },
61277
- args: args48,
63919
+ args: args61,
61278
63920
  tool: async (client, args, ctx) => {
61279
63921
  const [result] = await integrationsDelete(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
61280
63922
  if (!result.ok) {
@@ -61290,9 +63932,9 @@ Removes the integration and its secrets; its endpoint answers 404 from then on,
61290
63932
 
61291
63933
  // src/funcs/integrationsList.ts
61292
63934
  function integrationsList(client$, options) {
61293
- return new APIPromise($do48(client$, options));
63935
+ return new APIPromise($do61(client$, options));
61294
63936
  }
61295
- async function $do48(client$, options) {
63937
+ async function $do61(client$, options) {
61296
63938
  const path$ = pathToFunc("/v1/integrations")();
61297
63939
  const headers$ = new Headers(compactMap({
61298
63940
  Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
@@ -61455,9 +64097,9 @@ var init_rotateintegrationsecretop = __esm(() => {
61455
64097
 
61456
64098
  // src/funcs/integrationsRotate.ts
61457
64099
  function integrationsRotate(client$, request, options) {
61458
- return new APIPromise($do49(client$, request, options));
64100
+ return new APIPromise($do62(client$, request, options));
61459
64101
  }
61460
- async function $do49(client$, request, options) {
64102
+ async function $do62(client$, request, options) {
61461
64103
  const parsed$ = safeParse2(request, (value$) => RotateIntegrationSecretRequest$zodSchema.parse(value$), "Input validation failed");
61462
64104
  if (!parsed$.ok) {
61463
64105
  return [parsed$, { status: "invalid" }];
@@ -61527,12 +64169,12 @@ var init_integrationsRotate = __esm(() => {
61527
64169
  });
61528
64170
 
61529
64171
  // src/mcp-server/tools/integrationsRotate.ts
61530
- var args49, tool$integrationsRotate;
64172
+ var args62, tool$integrationsRotate;
61531
64173
  var init_integrationsRotate2 = __esm(() => {
61532
64174
  init_integrationsRotate();
61533
64175
  init_rotateintegrationsecretop();
61534
64176
  init_tools();
61535
- args49 = {
64177
+ args62 = {
61536
64178
  request: RotateIntegrationSecretRequest$zodSchema
61537
64179
  };
61538
64180
  tool$integrationsRotate = {
@@ -61547,7 +64189,7 @@ For Auth0, send {} and the answer's secret is the new shared secret, shown once.
61547
64189
  openWorldHint: false,
61548
64190
  readOnlyHint: false
61549
64191
  },
61550
- args: args49,
64192
+ args: args62,
61551
64193
  tool: async (client, args, ctx) => {
61552
64194
  const [result] = await integrationsRotate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
61553
64195
  if (!result.ok) {
@@ -61655,9 +64297,9 @@ var init_listinvitesop = __esm(() => {
61655
64297
 
61656
64298
  // src/funcs/invitesList.ts
61657
64299
  function invitesList(client$, request, options) {
61658
- return new APIPromise($do50(client$, request, options));
64300
+ return new APIPromise($do63(client$, request, options));
61659
64301
  }
61660
- async function $do50(client$, request, options) {
64302
+ async function $do63(client$, request, options) {
61661
64303
  const parsed$ = safeParse2(request, (value$) => ListInvitesRequest$zodSchema.parse(value$), "Input validation failed");
61662
64304
  if (!parsed$.ok) {
61663
64305
  return [parsed$, { status: "invalid" }];
@@ -61739,12 +64381,12 @@ var init_invitesList = __esm(() => {
61739
64381
  });
61740
64382
 
61741
64383
  // src/mcp-server/tools/invitesList.ts
61742
- var args50, tool$invitesList;
64384
+ var args63, tool$invitesList;
61743
64385
  var init_invitesList2 = __esm(() => {
61744
64386
  init_invitesList();
61745
64387
  init_listinvitesop();
61746
64388
  init_tools();
61747
- args50 = {
64389
+ args63 = {
61748
64390
  request: ListInvitesRequest$zodSchema
61749
64391
  };
61750
64392
  tool$invitesList = {
@@ -61759,7 +64401,7 @@ Read pending workspace invitations with a live members_manage key. Tokens are ex
61759
64401
  openWorldHint: false,
61760
64402
  readOnlyHint: true
61761
64403
  },
61762
- args: args50,
64404
+ args: args63,
61763
64405
  tool: async (client, args, ctx) => {
61764
64406
  const [result] = await invitesList(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
61765
64407
  if (!result.ok) {
@@ -61810,9 +64452,9 @@ var init_revokeinviteop = __esm(() => {
61810
64452
 
61811
64453
  // src/funcs/invitesRevoke.ts
61812
64454
  function invitesRevoke(client$, request, options) {
61813
- return new APIPromise($do51(client$, request, options));
64455
+ return new APIPromise($do64(client$, request, options));
61814
64456
  }
61815
- async function $do51(client$, request, options) {
64457
+ async function $do64(client$, request, options) {
61816
64458
  const parsed$ = safeParse2(request, (value$) => RevokeInviteRequest$zodSchema.parse(value$), "Input validation failed");
61817
64459
  if (!parsed$.ok) {
61818
64460
  return [parsed$, { status: "invalid" }];
@@ -61898,12 +64540,12 @@ var init_invitesRevoke = __esm(() => {
61898
64540
  });
61899
64541
 
61900
64542
  // src/mcp-server/tools/invitesRevoke.ts
61901
- var args51, tool$invitesRevoke;
64543
+ var args64, tool$invitesRevoke;
61902
64544
  var init_invitesRevoke2 = __esm(() => {
61903
64545
  init_invitesRevoke();
61904
64546
  init_revokeinviteop();
61905
64547
  init_tools();
61906
- args51 = {
64548
+ args64 = {
61907
64549
  request: RevokeInviteRequest$zodSchema
61908
64550
  };
61909
64551
  tool$invitesRevoke = {
@@ -61918,7 +64560,7 @@ Revoke a pending invitation with a live members_manage key. A revoked token cann
61918
64560
  openWorldHint: false,
61919
64561
  readOnlyHint: false
61920
64562
  },
61921
- args: args51,
64563
+ args: args64,
61922
64564
  tool: async (client, args, ctx) => {
61923
64565
  const [result] = await invitesRevoke(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
61924
64566
  if (!result.ok) {
@@ -61977,7 +64619,8 @@ var init_key = __esm(() => {
61977
64619
  "settings",
61978
64620
  "policy_publish",
61979
64621
  "members",
61980
- "members_manage"
64622
+ "members_manage",
64623
+ "events"
61981
64624
  ]);
61982
64625
  Key$zodSchema = object({
61983
64626
  created_at: string2(),
@@ -62050,9 +64693,9 @@ var init_listkeysop = __esm(() => {
62050
64693
 
62051
64694
  // src/funcs/keysList.ts
62052
64695
  function keysList(client$, request, options) {
62053
- return new APIPromise($do52(client$, request, options));
64696
+ return new APIPromise($do65(client$, request, options));
62054
64697
  }
62055
- async function $do52(client$, request, options) {
64698
+ async function $do65(client$, request, options) {
62056
64699
  const parsed$ = safeParse2(request, (value$) => ListKeysRequest$zodSchema.parse(value$), "Input validation failed");
62057
64700
  if (!parsed$.ok) {
62058
64701
  return [parsed$, { status: "invalid" }];
@@ -62134,12 +64777,12 @@ var init_keysList = __esm(() => {
62134
64777
  });
62135
64778
 
62136
64779
  // src/mcp-server/tools/keysList.ts
62137
- var args52, tool$keysList;
64780
+ var args65, tool$keysList;
62138
64781
  var init_keysList2 = __esm(() => {
62139
64782
  init_keysList();
62140
64783
  init_listkeysop();
62141
64784
  init_tools();
62142
- args52 = {
64785
+ args65 = {
62143
64786
  request: ListKeysRequest$zodSchema
62144
64787
  };
62145
64788
  tool$keysList = {
@@ -62154,7 +64797,7 @@ Lists the keys of the signing key's environment, newest first, at most 200, revo
62154
64797
  openWorldHint: false,
62155
64798
  readOnlyHint: true
62156
64799
  },
62157
- args: args52,
64800
+ args: args65,
62158
64801
  tool: async (client, args, ctx) => {
62159
64802
  const [result] = await keysList(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
62160
64803
  if (!result.ok) {
@@ -62208,9 +64851,9 @@ var init_revokekeyop = __esm(() => {
62208
64851
 
62209
64852
  // src/funcs/keysRevoke.ts
62210
64853
  function keysRevoke(client$, request, options) {
62211
- return new APIPromise($do53(client$, request, options));
64854
+ return new APIPromise($do66(client$, request, options));
62212
64855
  }
62213
- async function $do53(client$, request, options) {
64856
+ async function $do66(client$, request, options) {
62214
64857
  const parsed$ = safeParse2(request, (value$) => RevokeKeyRequest$zodSchema.parse(value$), "Input validation failed");
62215
64858
  if (!parsed$.ok) {
62216
64859
  return [parsed$, { status: "invalid" }];
@@ -62296,12 +64939,12 @@ var init_keysRevoke = __esm(() => {
62296
64939
  });
62297
64940
 
62298
64941
  // src/mcp-server/tools/keysRevoke.ts
62299
- var args53, tool$keysRevoke;
64942
+ var args66, tool$keysRevoke;
62300
64943
  var init_keysRevoke2 = __esm(() => {
62301
64944
  init_keysRevoke();
62302
64945
  init_revokekeyop();
62303
64946
  init_tools();
62304
- args53 = {
64947
+ args66 = {
62305
64948
  request: RevokeKeyRequest$zodSchema
62306
64949
  };
62307
64950
  tool$keysRevoke = {
@@ -62316,7 +64959,7 @@ Revokes a key of the signing key's environment at once: its next request answers
62316
64959
  openWorldHint: false,
62317
64960
  readOnlyHint: false
62318
64961
  },
62319
- args: args53,
64962
+ args: args66,
62320
64963
  tool: async (client, args, ctx) => {
62321
64964
  const [result] = await keysRevoke(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
62322
64965
  if (!result.ok) {
@@ -62458,9 +65101,9 @@ var init_changelistsop = __esm(() => {
62458
65101
 
62459
65102
  // src/funcs/listsChange.ts
62460
65103
  function listsChange(client$, request, options) {
62461
- return new APIPromise($do54(client$, request, options));
65104
+ return new APIPromise($do67(client$, request, options));
62462
65105
  }
62463
- async function $do54(client$, request, options) {
65106
+ async function $do67(client$, request, options) {
62464
65107
  const parsed$ = safeParse2(request, (value$) => ChangeListsRequest$zodSchema.parse(value$), "Input validation failed");
62465
65108
  if (!parsed$.ok) {
62466
65109
  return [parsed$, { status: "invalid" }];
@@ -62548,12 +65191,12 @@ var init_listsChange = __esm(() => {
62548
65191
  });
62549
65192
 
62550
65193
  // src/mcp-server/tools/listsChange.ts
62551
- var args54, tool$listsChange;
65194
+ var args67, tool$listsChange;
62552
65195
  var init_listsChange2 = __esm(() => {
62553
65196
  init_listsChange();
62554
65197
  init_changelistsop();
62555
65198
  init_tools();
62556
- args54 = {
65199
+ args67 = {
62557
65200
  request: ChangeListsRequest$zodSchema
62558
65201
  };
62559
65202
  tool$listsChange = {
@@ -62568,7 +65211,7 @@ Atomically add and remove a bounded batch of entries with an idempotency key. Re
62568
65211
  openWorldHint: false,
62569
65212
  readOnlyHint: false
62570
65213
  },
62571
- args: args54,
65214
+ args: args67,
62572
65215
  tool: async (client, args, ctx) => {
62573
65216
  const [result] = await listsChange(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
62574
65217
  if (!result.ok) {
@@ -62625,9 +65268,9 @@ var init_createlistentryop = __esm(() => {
62625
65268
 
62626
65269
  // src/funcs/listsCreate.ts
62627
65270
  function listsCreate(client$, request, options) {
62628
- return new APIPromise($do55(client$, request, options));
65271
+ return new APIPromise($do68(client$, request, options));
62629
65272
  }
62630
- async function $do55(client$, request, options) {
65273
+ async function $do68(client$, request, options) {
62631
65274
  const parsed$ = safeParse2(request, (value$) => CreateListEntryRequest$zodSchema.parse(value$), "Input validation failed");
62632
65275
  if (!parsed$.ok) {
62633
65276
  return [parsed$, { status: "invalid" }];
@@ -62714,12 +65357,12 @@ var init_listsCreate = __esm(() => {
62714
65357
  });
62715
65358
 
62716
65359
  // src/mcp-server/tools/listsCreate.ts
62717
- var args55, tool$listsCreate;
65360
+ var args68, tool$listsCreate;
62718
65361
  var init_listsCreate2 = __esm(() => {
62719
65362
  init_listsCreate();
62720
65363
  init_createlistentryop();
62721
65364
  init_tools();
62722
- args55 = {
65365
+ args68 = {
62723
65366
  request: CreateListEntryRequest$zodSchema
62724
65367
  };
62725
65368
  tool$listsCreate = {
@@ -62734,7 +65377,7 @@ Add a canonical email or email-domain override with a reason and optional expiry
62734
65377
  openWorldHint: false,
62735
65378
  readOnlyHint: false
62736
65379
  },
62737
- args: args55,
65380
+ args: args68,
62738
65381
  tool: async (client, args, ctx) => {
62739
65382
  const [result] = await listsCreate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
62740
65383
  if (!result.ok) {
@@ -62787,9 +65430,9 @@ var init_deletelistentryop = __esm(() => {
62787
65430
 
62788
65431
  // src/funcs/listsDelete.ts
62789
65432
  function listsDelete(client$, request, options) {
62790
- return new APIPromise($do56(client$, request, options));
65433
+ return new APIPromise($do69(client$, request, options));
62791
65434
  }
62792
- async function $do56(client$, request, options) {
65435
+ async function $do69(client$, request, options) {
62793
65436
  const parsed$ = safeParse2(request, (value$) => DeleteListEntryRequest$zodSchema.parse(value$), "Input validation failed");
62794
65437
  if (!parsed$.ok) {
62795
65438
  return [parsed$, { status: "invalid" }];
@@ -62879,12 +65522,12 @@ var init_listsDelete = __esm(() => {
62879
65522
  });
62880
65523
 
62881
65524
  // src/mcp-server/tools/listsDelete.ts
62882
- var args56, tool$listsDelete;
65525
+ var args69, tool$listsDelete;
62883
65526
  var init_listsDelete2 = __esm(() => {
62884
65527
  init_listsDelete();
62885
65528
  init_deletelistentryop();
62886
65529
  init_tools();
62887
- args56 = {
65530
+ args69 = {
62888
65531
  request: DeleteListEntryRequest$zodSchema
62889
65532
  };
62890
65533
  tool$listsDelete = {
@@ -62899,7 +65542,7 @@ Remove an override with settings plus policy_publish, or legacy management. The
62899
65542
  openWorldHint: false,
62900
65543
  readOnlyHint: false
62901
65544
  },
62902
- args: args56,
65545
+ args: args69,
62903
65546
  tool: async (client, args, ctx) => {
62904
65547
  const [result] = await listsDelete(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
62905
65548
  if (!result.ok) {
@@ -62955,9 +65598,9 @@ var init_getlistchangeop = __esm(() => {
62955
65598
 
62956
65599
  // src/funcs/listsGetChange.ts
62957
65600
  function listsGetChange(client$, request, options) {
62958
- return new APIPromise($do57(client$, request, options));
65601
+ return new APIPromise($do70(client$, request, options));
62959
65602
  }
62960
- async function $do57(client$, request, options) {
65603
+ async function $do70(client$, request, options) {
62961
65604
  const parsed$ = safeParse2(request, (value$) => GetListChangeRequest$zodSchema.parse(value$), "Input validation failed");
62962
65605
  if (!parsed$.ok) {
62963
65606
  return [parsed$, { status: "invalid" }];
@@ -63047,12 +65690,12 @@ var init_listsGetChange = __esm(() => {
63047
65690
  });
63048
65691
 
63049
65692
  // src/mcp-server/tools/listsGetChange.ts
63050
- var args57, tool$listsGetChange;
65693
+ var args70, tool$listsGetChange;
63051
65694
  var init_listsGetChange2 = __esm(() => {
63052
65695
  init_listsGetChange();
63053
65696
  init_getlistchangeop();
63054
65697
  init_tools();
63055
- args57 = {
65698
+ args70 = {
63056
65699
  request: GetListChangeRequest$zodSchema
63057
65700
  };
63058
65701
  tool$listsGetChange = {
@@ -63067,7 +65710,7 @@ Read retained propagation progress for a list change with settings or management
63067
65710
  openWorldHint: false,
63068
65711
  readOnlyHint: true
63069
65712
  },
63070
- args: args57,
65713
+ args: args70,
63071
65714
  tool: async (client, args, ctx) => {
63072
65715
  const [result] = await listsGetChange(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
63073
65716
  if (!result.ok) {
@@ -63135,9 +65778,9 @@ var init_listlistentriesop = __esm(() => {
63135
65778
 
63136
65779
  // src/funcs/listsList.ts
63137
65780
  function listsList(client$, request, options) {
63138
- return new APIPromise($do58(client$, request, options));
65781
+ return new APIPromise($do71(client$, request, options));
63139
65782
  }
63140
- async function $do58(client$, request, options) {
65783
+ async function $do71(client$, request, options) {
63141
65784
  const parsed$ = safeParse2(request, (value$) => ListListEntriesRequest$zodSchema.parse(value$), "Input validation failed");
63142
65785
  if (!parsed$.ok) {
63143
65786
  return [parsed$, { status: "invalid" }];
@@ -63228,12 +65871,12 @@ var init_listsList = __esm(() => {
63228
65871
  });
63229
65872
 
63230
65873
  // src/mcp-server/tools/listsList.ts
63231
- var args58, tool$listsList;
65874
+ var args71, tool$listsList;
63232
65875
  var init_listsList2 = __esm(() => {
63233
65876
  init_listsList();
63234
65877
  init_listlistentriesop();
63235
65878
  init_tools();
63236
- args58 = {
65879
+ args71 = {
63237
65880
  request: ListListEntriesRequest$zodSchema
63238
65881
  };
63239
65882
  tool$listsList = {
@@ -63248,7 +65891,7 @@ Page through this environment allow and block entries, with canonical values, re
63248
65891
  openWorldHint: false,
63249
65892
  readOnlyHint: true
63250
65893
  },
63251
- args: args58,
65894
+ args: args71,
63252
65895
  tool: async (client, args, ctx) => {
63253
65896
  const [result] = await listsList(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
63254
65897
  if (!result.ok) {
@@ -63380,9 +66023,9 @@ var init_previewlistop = __esm(() => {
63380
66023
 
63381
66024
  // src/funcs/listsPreview.ts
63382
66025
  function listsPreview(client$, request, options) {
63383
- return new APIPromise($do59(client$, request, options));
66026
+ return new APIPromise($do72(client$, request, options));
63384
66027
  }
63385
- async function $do59(client$, request, options) {
66028
+ async function $do72(client$, request, options) {
63386
66029
  const parsed$ = safeParse2(request, (value$) => PreviewListRequest$zodSchema.parse(value$), "Input validation failed");
63387
66030
  if (!parsed$.ok) {
63388
66031
  return [parsed$, { status: "invalid" }];
@@ -63469,12 +66112,12 @@ var init_listsPreview = __esm(() => {
63469
66112
  });
63470
66113
 
63471
66114
  // src/mcp-server/tools/listsPreview.ts
63472
- var args59, tool$listsPreview;
66115
+ var args72, tool$listsPreview;
63473
66116
  var init_listsPreview2 = __esm(() => {
63474
66117
  init_listsPreview();
63475
66118
  init_previewlistop();
63476
66119
  init_tools();
63477
- args59 = {
66120
+ args72 = {
63478
66121
  request: PreviewListRequest$zodSchema
63479
66122
  };
63480
66123
  tool$listsPreview = {
@@ -63489,7 +66132,7 @@ Preview canonical list matches and current override effects with settings or man
63489
66132
  openWorldHint: false,
63490
66133
  readOnlyHint: true
63491
66134
  },
63492
- args: args59,
66135
+ args: args72,
63493
66136
  tool: async (client, args, ctx) => {
63494
66137
  const [result] = await listsPreview(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
63495
66138
  if (!result.ok) {
@@ -63592,9 +66235,9 @@ var init_listmembersop = __esm(() => {
63592
66235
 
63593
66236
  // src/funcs/membersList.ts
63594
66237
  function membersList(client$, request, options) {
63595
- return new APIPromise($do60(client$, request, options));
66238
+ return new APIPromise($do73(client$, request, options));
63596
66239
  }
63597
- async function $do60(client$, request, options) {
66240
+ async function $do73(client$, request, options) {
63598
66241
  const parsed$ = safeParse2(request, (value$) => ListMembersRequest$zodSchema.parse(value$), "Input validation failed");
63599
66242
  if (!parsed$.ok) {
63600
66243
  return [parsed$, { status: "invalid" }];
@@ -63676,12 +66319,12 @@ var init_membersList = __esm(() => {
63676
66319
  });
63677
66320
 
63678
66321
  // src/mcp-server/tools/membersList.ts
63679
- var args60, tool$membersList;
66322
+ var args73, tool$membersList;
63680
66323
  var init_membersList2 = __esm(() => {
63681
66324
  init_membersList();
63682
66325
  init_listmembersop();
63683
66326
  init_tools();
63684
- args60 = {
66327
+ args73 = {
63685
66328
  request: ListMembersRequest$zodSchema
63686
66329
  };
63687
66330
  tool$membersList = {
@@ -63696,7 +66339,7 @@ Read the workspace directory with a live key carrying members or members_manage.
63696
66339
  openWorldHint: false,
63697
66340
  readOnlyHint: true
63698
66341
  },
63699
- args: args60,
66342
+ args: args73,
63700
66343
  tool: async (client, args, ctx) => {
63701
66344
  const [result] = await membersList(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
63702
66345
  if (!result.ok) {
@@ -63747,9 +66390,9 @@ var init_removememberop = __esm(() => {
63747
66390
 
63748
66391
  // src/funcs/membersRemove.ts
63749
66392
  function membersRemove(client$, request, options) {
63750
- return new APIPromise($do61(client$, request, options));
66393
+ return new APIPromise($do74(client$, request, options));
63751
66394
  }
63752
- async function $do61(client$, request, options) {
66395
+ async function $do74(client$, request, options) {
63753
66396
  const parsed$ = safeParse2(request, (value$) => RemoveMemberRequest$zodSchema.parse(value$), "Input validation failed");
63754
66397
  if (!parsed$.ok) {
63755
66398
  return [parsed$, { status: "invalid" }];
@@ -63835,12 +66478,12 @@ var init_membersRemove = __esm(() => {
63835
66478
  });
63836
66479
 
63837
66480
  // src/mcp-server/tools/membersRemove.ts
63838
- var args61, tool$membersRemove;
66481
+ var args74, tool$membersRemove;
63839
66482
  var init_membersRemove2 = __esm(() => {
63840
66483
  init_membersRemove();
63841
66484
  init_removememberop();
63842
66485
  init_tools();
63843
- args61 = {
66486
+ args74 = {
63844
66487
  request: RemoveMemberRequest$zodSchema
63845
66488
  };
63846
66489
  tool$membersRemove = {
@@ -63855,7 +66498,7 @@ Remove a non-owner member with a live members_manage key. Subsequent access is r
63855
66498
  openWorldHint: false,
63856
66499
  readOnlyHint: false
63857
66500
  },
63858
- args: args61,
66501
+ args: args74,
63859
66502
  tool: async (client, args, ctx) => {
63860
66503
  const [result] = await membersRemove(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
63861
66504
  if (!result.ok) {
@@ -63932,9 +66575,9 @@ var init_updatememberop = __esm(() => {
63932
66575
 
63933
66576
  // src/funcs/membersUpdate.ts
63934
66577
  function membersUpdate(client$, request, options) {
63935
- return new APIPromise($do62(client$, request, options));
66578
+ return new APIPromise($do75(client$, request, options));
63936
66579
  }
63937
- async function $do62(client$, request, options) {
66580
+ async function $do75(client$, request, options) {
63938
66581
  const parsed$ = safeParse2(request, (value$) => UpdateMemberRequest$zodSchema.parse(value$), "Input validation failed");
63939
66582
  if (!parsed$.ok) {
63940
66583
  return [parsed$, { status: "invalid" }];
@@ -64021,12 +66664,12 @@ var init_membersUpdate = __esm(() => {
64021
66664
  });
64022
66665
 
64023
66666
  // src/mcp-server/tools/membersUpdate.ts
64024
- var args62, tool$membersUpdate;
66667
+ var args75, tool$membersUpdate;
64025
66668
  var init_membersUpdate2 = __esm(() => {
64026
66669
  init_membersUpdate();
64027
66670
  init_updatememberop();
64028
66671
  init_tools();
64029
- args62 = {
66672
+ args75 = {
64030
66673
  request: UpdateMemberRequest$zodSchema
64031
66674
  };
64032
66675
  tool$membersUpdate = {
@@ -64041,7 +66684,7 @@ Update a non-owner member role, environment access or sensitive permission exclu
64041
66684
  openWorldHint: false,
64042
66685
  readOnlyHint: false
64043
66686
  },
64044
- args: args62,
66687
+ args: args75,
64045
66688
  tool: async (client, args, ctx) => {
64046
66689
  const [result] = await membersUpdate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
64047
66690
  if (!result.ok) {
@@ -64218,9 +66861,9 @@ var init_summarizeworkspaceoperationsop = __esm(() => {
64218
66861
 
64219
66862
  // src/funcs/operationsSummarize.ts
64220
66863
  function operationsSummarize(client$, request, options) {
64221
- return new APIPromise($do63(client$, request, options));
66864
+ return new APIPromise($do76(client$, request, options));
64222
66865
  }
64223
- async function $do63(client$, request, options) {
66866
+ async function $do76(client$, request, options) {
64224
66867
  const parsed$ = safeParse2(request, (value$) => SummarizeWorkspaceOperationsRequest$zodSchema.parse(value$), "Input validation failed");
64225
66868
  if (!parsed$.ok) {
64226
66869
  return [parsed$, { status: "invalid" }];
@@ -64303,12 +66946,12 @@ var init_operationsSummarize = __esm(() => {
64303
66946
  });
64304
66947
 
64305
66948
  // src/mcp-server/tools/operationsSummarize.ts
64306
- var args63, tool$operationsSummarize;
66949
+ var args76, tool$operationsSummarize;
64307
66950
  var init_operationsSummarize2 = __esm(() => {
64308
66951
  init_operationsSummarize();
64309
66952
  init_summarizeworkspaceoperationsop();
64310
66953
  init_tools();
64311
- args63 = {
66954
+ args76 = {
64312
66955
  request: SummarizeWorkspaceOperationsRequest$zodSchema
64313
66956
  };
64314
66957
  tool$operationsSummarize = {
@@ -64323,7 +66966,7 @@ Read one retained snapshot of account outcomes, enforcement reports and review s
64323
66966
  openWorldHint: false,
64324
66967
  readOnlyHint: true
64325
66968
  },
64326
- args: args63,
66969
+ args: args76,
64327
66970
  tool: async (client, args, ctx) => {
64328
66971
  const [result] = await operationsSummarize(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
64329
66972
  if (!result.ok) {
@@ -64364,9 +67007,9 @@ var init_requestaggregaterequest = __esm(() => {
64364
67007
 
64365
67008
  // src/funcs/requestsAggregate.ts
64366
67009
  function requestsAggregate(client$, request, options) {
64367
- return new APIPromise($do64(client$, request, options));
67010
+ return new APIPromise($do77(client$, request, options));
64368
67011
  }
64369
- async function $do64(client$, request, options) {
67012
+ async function $do77(client$, request, options) {
64370
67013
  const parsed$ = safeParse2(request, (value$) => RequestAggregateRequest$zodSchema.parse(value$), "Input validation failed");
64371
67014
  if (!parsed$.ok) {
64372
67015
  return [parsed$, { status: "invalid" }];
@@ -64443,12 +67086,12 @@ var init_requestsAggregate = __esm(() => {
64443
67086
  });
64444
67087
 
64445
67088
  // src/mcp-server/tools/requestsAggregate.ts
64446
- var args64, tool$requestsAggregate;
67089
+ var args77, tool$requestsAggregate;
64447
67090
  var init_requestsAggregate2 = __esm(() => {
64448
67091
  init_requestsAggregate();
64449
67092
  init_requestaggregaterequest();
64450
67093
  init_tools();
64451
- args64 = {
67094
+ args77 = {
64452
67095
  request: RequestAggregateRequest$zodSchema
64453
67096
  };
64454
67097
  tool$requestsAggregate = {
@@ -64463,7 +67106,7 @@ Count all retained matching request attempts and latency samples within seven da
64463
67106
  openWorldHint: false,
64464
67107
  readOnlyHint: true
64465
67108
  },
64466
- args: args64,
67109
+ args: args77,
64467
67110
  tool: async (client, args, ctx) => {
64468
67111
  const [result] = await requestsAggregate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
64469
67112
  if (!result.ok) {
@@ -64534,9 +67177,9 @@ var init_listrequestdiagnosticsop = __esm(() => {
64534
67177
 
64535
67178
  // src/funcs/requestsList.ts
64536
67179
  function requestsList(client$, request, options) {
64537
- return new APIPromise($do65(client$, request, options));
67180
+ return new APIPromise($do78(client$, request, options));
64538
67181
  }
64539
- async function $do65(client$, request, options) {
67182
+ async function $do78(client$, request, options) {
64540
67183
  const parsed$ = safeParse2(request, (value$) => ListRequestDiagnosticsRequest$zodSchema.parse(value$), "Input validation failed");
64541
67184
  if (!parsed$.ok) {
64542
67185
  return [parsed$, { status: "invalid" }];
@@ -64623,12 +67266,12 @@ var init_requestsList = __esm(() => {
64623
67266
  });
64624
67267
 
64625
67268
  // src/mcp-server/tools/requestsList.ts
64626
- var args65, tool$requestsList;
67269
+ var args78, tool$requestsList;
64627
67270
  var init_requestsList2 = __esm(() => {
64628
67271
  init_requestsList();
64629
67272
  init_listrequestdiagnosticsop();
64630
67273
  init_tools();
64631
- args65 = {
67274
+ args78 = {
64632
67275
  request: ListRequestDiagnosticsRequest$zodSchema
64633
67276
  };
64634
67277
  tool$requestsList = {
@@ -64643,7 +67286,7 @@ Search authenticated request attempts by time, route, status or request correlat
64643
67286
  openWorldHint: false,
64644
67287
  readOnlyHint: true
64645
67288
  },
64646
- args: args65,
67289
+ args: args78,
64647
67290
  tool: async (client, args, ctx) => {
64648
67291
  const [result] = await requestsList(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
64649
67292
  if (!result.ok) {
@@ -64758,9 +67401,9 @@ var init_addreviewsubjectop = __esm(() => {
64758
67401
 
64759
67402
  // src/funcs/reviewsAddSubject.ts
64760
67403
  function reviewsAddSubject(client$, request, options) {
64761
- return new APIPromise($do66(client$, request, options));
67404
+ return new APIPromise($do79(client$, request, options));
64762
67405
  }
64763
- async function $do66(client$, request, options) {
67406
+ async function $do79(client$, request, options) {
64764
67407
  const parsed$ = safeParse2(request, (value$) => AddReviewSubjectRequest$zodSchema.parse(value$), "Input validation failed");
64765
67408
  if (!parsed$.ok) {
64766
67409
  return [parsed$, { status: "invalid" }];
@@ -64838,12 +67481,12 @@ var init_reviewsAddSubject = __esm(() => {
64838
67481
  });
64839
67482
 
64840
67483
  // src/mcp-server/tools/reviewsAddSubject.ts
64841
- var args66, tool$reviewsAddSubject;
67484
+ var args79, tool$reviewsAddSubject;
64842
67485
  var init_reviewsAddSubject2 = __esm(() => {
64843
67486
  init_reviewsAddSubject();
64844
67487
  init_addreviewsubjectop();
64845
67488
  init_tools();
64846
- args66 = {
67489
+ args79 = {
64847
67490
  request: AddReviewSubjectRequest$zodSchema
64848
67491
  };
64849
67492
  tool$reviewsAddSubject = {
@@ -64858,7 +67501,7 @@ Link an account, exact assessment revision or issued-key association within this
64858
67501
  openWorldHint: false,
64859
67502
  readOnlyHint: false
64860
67503
  },
64861
- args: args66,
67504
+ args: args79,
64862
67505
  tool: async (client, args, ctx) => {
64863
67506
  const [result] = await reviewsAddSubject(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
64864
67507
  if (!result.ok) {
@@ -64939,9 +67582,9 @@ var init_commentreviewop = __esm(() => {
64939
67582
 
64940
67583
  // src/funcs/reviewsComment.ts
64941
67584
  function reviewsComment(client$, request, options) {
64942
- return new APIPromise($do67(client$, request, options));
67585
+ return new APIPromise($do80(client$, request, options));
64943
67586
  }
64944
- async function $do67(client$, request, options) {
67587
+ async function $do80(client$, request, options) {
64945
67588
  const parsed$ = safeParse2(request, (value$) => CommentReviewRequest$zodSchema.parse(value$), "Input validation failed");
64946
67589
  if (!parsed$.ok) {
64947
67590
  return [parsed$, { status: "invalid" }];
@@ -65019,12 +67662,12 @@ var init_reviewsComment = __esm(() => {
65019
67662
  });
65020
67663
 
65021
67664
  // src/mcp-server/tools/reviewsComment.ts
65022
- var args67, tool$reviewsComment;
67665
+ var args80, tool$reviewsComment;
65023
67666
  var init_reviewsComment2 = __esm(() => {
65024
67667
  init_reviewsComment();
65025
67668
  init_commentreviewop();
65026
67669
  init_tools();
65027
- args67 = {
67670
+ args80 = {
65028
67671
  request: CommentReviewRequest$zodSchema
65029
67672
  };
65030
67673
  tool$reviewsComment = {
@@ -65039,7 +67682,7 @@ Append a comment after checking the expected review version.`,
65039
67682
  openWorldHint: false,
65040
67683
  readOnlyHint: false
65041
67684
  },
65042
- args: args67,
67685
+ args: args80,
65043
67686
  tool: async (client, args, ctx) => {
65044
67687
  const [result] = await reviewsComment(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
65045
67688
  if (!result.ok) {
@@ -65185,9 +67828,9 @@ var init_createreviewop = __esm(() => {
65185
67828
 
65186
67829
  // src/funcs/reviewsCreate.ts
65187
67830
  function reviewsCreate(client$, request, options) {
65188
- return new APIPromise($do68(client$, request, options));
67831
+ return new APIPromise($do81(client$, request, options));
65189
67832
  }
65190
- async function $do68(client$, request, options) {
67833
+ async function $do81(client$, request, options) {
65191
67834
  const parsed$ = safeParse2(request, (value$) => CreateReviewRequest$zodSchema.parse(value$), "Input validation failed");
65192
67835
  if (!parsed$.ok) {
65193
67836
  return [parsed$, { status: "invalid" }];
@@ -65261,12 +67904,12 @@ var init_reviewsCreate = __esm(() => {
65261
67904
  });
65262
67905
 
65263
67906
  // src/mcp-server/tools/reviewsCreate.ts
65264
- var args68, tool$reviewsCreate;
67907
+ var args81, tool$reviewsCreate;
65265
67908
  var init_reviewsCreate2 = __esm(() => {
65266
67909
  init_reviewsCreate();
65267
67910
  init_createreviewop();
65268
67911
  init_tools();
65269
- args68 = {
67912
+ args81 = {
65270
67913
  request: CreateReviewRequest$zodSchema
65271
67914
  };
65272
67915
  tool$reviewsCreate = {
@@ -65281,7 +67924,7 @@ Open a review for one account. An account can have one active review in its envi
65281
67924
  openWorldHint: false,
65282
67925
  readOnlyHint: false
65283
67926
  },
65284
- args: args68,
67927
+ args: args81,
65285
67928
  tool: async (client, args, ctx) => {
65286
67929
  const [result] = await reviewsCreate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
65287
67930
  if (!result.ok) {
@@ -65397,9 +68040,9 @@ var init_createreviewviewop = __esm(() => {
65397
68040
 
65398
68041
  // src/funcs/reviewsCreateView.ts
65399
68042
  function reviewsCreateView(client$, request, options) {
65400
- return new APIPromise($do69(client$, request, options));
68043
+ return new APIPromise($do82(client$, request, options));
65401
68044
  }
65402
- async function $do69(client$, request, options) {
68045
+ async function $do82(client$, request, options) {
65403
68046
  const parsed$ = safeParse2(request, (value$) => CreateReviewViewRequest$zodSchema.parse(value$), "Input validation failed");
65404
68047
  if (!parsed$.ok) {
65405
68048
  return [parsed$, { status: "invalid" }];
@@ -65473,12 +68116,12 @@ var init_reviewsCreateView = __esm(() => {
65473
68116
  });
65474
68117
 
65475
68118
  // src/mcp-server/tools/reviewsCreateView.ts
65476
- var args69, tool$reviewsCreateView;
68119
+ var args82, tool$reviewsCreateView;
65477
68120
  var init_reviewsCreateView2 = __esm(() => {
65478
68121
  init_reviewsCreateView();
65479
68122
  init_createreviewviewop();
65480
68123
  init_tools();
65481
- args69 = {
68124
+ args82 = {
65482
68125
  request: CreateReviewViewRequest$zodSchema
65483
68126
  };
65484
68127
  tool$reviewsCreateView = {
@@ -65493,7 +68136,7 @@ Save a private or shared review filter.`,
65493
68136
  openWorldHint: false,
65494
68137
  readOnlyHint: false
65495
68138
  },
65496
- args: args69,
68139
+ args: args82,
65497
68140
  tool: async (client, args, ctx) => {
65498
68141
  const [result] = await reviewsCreateView(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
65499
68142
  if (!result.ok) {
@@ -65561,9 +68204,9 @@ var init_deletereviewsubjectop = __esm(() => {
65561
68204
 
65562
68205
  // src/funcs/reviewsDeleteSubject.ts
65563
68206
  function reviewsDeleteSubject(client$, request, options) {
65564
- return new APIPromise($do70(client$, request, options));
68207
+ return new APIPromise($do83(client$, request, options));
65565
68208
  }
65566
- async function $do70(client$, request, options) {
68209
+ async function $do83(client$, request, options) {
65567
68210
  const parsed$ = safeParse2(request, (value$) => DeleteReviewSubjectRequest$zodSchema.parse(value$), "Input validation failed");
65568
68211
  if (!parsed$.ok) {
65569
68212
  return [parsed$, { status: "invalid" }];
@@ -65658,12 +68301,12 @@ var init_reviewsDeleteSubject = __esm(() => {
65658
68301
  });
65659
68302
 
65660
68303
  // src/mcp-server/tools/reviewsDeleteSubject.ts
65661
- var args70, tool$reviewsDeleteSubject;
68304
+ var args83, tool$reviewsDeleteSubject;
65662
68305
  var init_reviewsDeleteSubject2 = __esm(() => {
65663
68306
  init_reviewsDeleteSubject();
65664
68307
  init_deletereviewsubjectop();
65665
68308
  init_tools();
65666
- args70 = {
68309
+ args83 = {
65667
68310
  request: DeleteReviewSubjectRequest$zodSchema
65668
68311
  };
65669
68312
  tool$reviewsDeleteSubject = {
@@ -65678,7 +68321,7 @@ Remove a subject link with the expected review version. The linked account, asse
65678
68321
  openWorldHint: false,
65679
68322
  readOnlyHint: false
65680
68323
  },
65681
- args: args70,
68324
+ args: args83,
65682
68325
  tool: async (client, args, ctx) => {
65683
68326
  const [result] = await reviewsDeleteSubject(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
65684
68327
  if (!result.ok) {
@@ -65733,9 +68376,9 @@ var init_deletereviewviewop = __esm(() => {
65733
68376
 
65734
68377
  // src/funcs/reviewsDeleteView.ts
65735
68378
  function reviewsDeleteView(client$, request, options) {
65736
- return new APIPromise($do71(client$, request, options));
68379
+ return new APIPromise($do84(client$, request, options));
65737
68380
  }
65738
- async function $do71(client$, request, options) {
68381
+ async function $do84(client$, request, options) {
65739
68382
  const parsed$ = safeParse2(request, (value$) => DeleteReviewViewRequest$zodSchema.parse(value$), "Input validation failed");
65740
68383
  if (!parsed$.ok) {
65741
68384
  return [parsed$, { status: "invalid" }];
@@ -65826,12 +68469,12 @@ var init_reviewsDeleteView = __esm(() => {
65826
68469
  });
65827
68470
 
65828
68471
  // src/mcp-server/tools/reviewsDeleteView.ts
65829
- var args71, tool$reviewsDeleteView;
68472
+ var args84, tool$reviewsDeleteView;
65830
68473
  var init_reviewsDeleteView2 = __esm(() => {
65831
68474
  init_reviewsDeleteView();
65832
68475
  init_deletereviewviewop();
65833
68476
  init_tools();
65834
- args71 = {
68477
+ args84 = {
65835
68478
  request: DeleteReviewViewRequest$zodSchema
65836
68479
  };
65837
68480
  tool$reviewsDeleteView = {
@@ -65846,7 +68489,7 @@ Delete your saved review filter after checking its expected version.`,
65846
68489
  openWorldHint: false,
65847
68490
  readOnlyHint: false
65848
68491
  },
65849
- args: args71,
68492
+ args: args84,
65850
68493
  tool: async (client, args, ctx) => {
65851
68494
  const [result] = await reviewsDeleteView(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
65852
68495
  if (!result.ok) {
@@ -65919,9 +68562,9 @@ var init_exportreviewop = __esm(() => {
65919
68562
 
65920
68563
  // src/funcs/reviewsExport.ts
65921
68564
  function reviewsExport(client$, request, options) {
65922
- return new APIPromise($do72(client$, request, options));
68565
+ return new APIPromise($do85(client$, request, options));
65923
68566
  }
65924
- async function $do72(client$, request, options) {
68567
+ async function $do85(client$, request, options) {
65925
68568
  const parsed$ = safeParse2(request, (value$) => ExportReviewRequest$zodSchema.parse(value$), "Input validation failed");
65926
68569
  if (!parsed$.ok) {
65927
68570
  return [parsed$, { status: "invalid" }];
@@ -66011,12 +68654,12 @@ var init_reviewsExport = __esm(() => {
66011
68654
  });
66012
68655
 
66013
68656
  // src/mcp-server/tools/reviewsExport.ts
66014
- var args72, tool$reviewsExport;
68657
+ var args85, tool$reviewsExport;
66015
68658
  var init_reviewsExport2 = __esm(() => {
66016
68659
  init_reviewsExport();
66017
68660
  init_exportreviewop();
66018
68661
  init_tools();
66019
- args72 = {
68662
+ args85 = {
66020
68663
  request: ExportReviewRequest$zodSchema
66021
68664
  };
66022
68665
  tool$reviewsExport = {
@@ -66031,7 +68674,7 @@ Export retained review details, comments, resolutions and linked subjects. Requi
66031
68674
  openWorldHint: false,
66032
68675
  readOnlyHint: true
66033
68676
  },
66034
- args: args72,
68677
+ args: args85,
66035
68678
  tool: async (client, args, ctx) => {
66036
68679
  const [result] = await reviewsExport(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
66037
68680
  if (!result.ok) {
@@ -66087,9 +68730,9 @@ var init_getreviewop = __esm(() => {
66087
68730
 
66088
68731
  // src/funcs/reviewsGet.ts
66089
68732
  function reviewsGet(client$, request, options) {
66090
- return new APIPromise($do73(client$, request, options));
68733
+ return new APIPromise($do86(client$, request, options));
66091
68734
  }
66092
- async function $do73(client$, request, options) {
68735
+ async function $do86(client$, request, options) {
66093
68736
  const parsed$ = safeParse2(request, (value$) => GetReviewRequest$zodSchema.parse(value$), "Input validation failed");
66094
68737
  if (!parsed$.ok) {
66095
68738
  return [parsed$, { status: "invalid" }];
@@ -66179,12 +68822,12 @@ var init_reviewsGet = __esm(() => {
66179
68822
  });
66180
68823
 
66181
68824
  // src/mcp-server/tools/reviewsGet.ts
66182
- var args73, tool$reviewsGet;
68825
+ var args86, tool$reviewsGet;
66183
68826
  var init_reviewsGet2 = __esm(() => {
66184
68827
  init_reviewsGet();
66185
68828
  init_getreviewop();
66186
68829
  init_tools();
66187
- args73 = {
68830
+ args86 = {
66188
68831
  request: GetReviewRequest$zodSchema
66189
68832
  };
66190
68833
  tool$reviewsGet = {
@@ -66199,7 +68842,7 @@ Read a retained review and its current version.`,
66199
68842
  openWorldHint: false,
66200
68843
  readOnlyHint: true
66201
68844
  },
66202
- args: args73,
68845
+ args: args86,
66203
68846
  tool: async (client, args, ctx) => {
66204
68847
  const [result] = await reviewsGet(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
66205
68848
  if (!result.ok) {
@@ -66274,9 +68917,9 @@ var init_listreviewsop = __esm(() => {
66274
68917
 
66275
68918
  // src/funcs/reviewsList.ts
66276
68919
  function reviewsList(client$, request, options) {
66277
- return new APIPromise($do74(client$, request, options));
68920
+ return new APIPromise($do87(client$, request, options));
66278
68921
  }
66279
- async function $do74(client$, request, options) {
68922
+ async function $do87(client$, request, options) {
66280
68923
  const parsed$ = safeParse2(request, (value$) => ListReviewsRequest$zodSchema.parse(value$), "Input validation failed");
66281
68924
  if (!parsed$.ok) {
66282
68925
  return [parsed$, { status: "invalid" }];
@@ -66372,12 +69015,12 @@ var init_reviewsList = __esm(() => {
66372
69015
  });
66373
69016
 
66374
69017
  // src/mcp-server/tools/reviewsList.ts
66375
- var args74, tool$reviewsList;
69018
+ var args87, tool$reviewsList;
66376
69019
  var init_reviewsList2 = __esm(() => {
66377
69020
  init_reviewsList();
66378
69021
  init_listreviewsop();
66379
69022
  init_tools();
66380
- args74 = {
69023
+ args87 = {
66381
69024
  request: ListReviewsRequest$zodSchema
66382
69025
  };
66383
69026
  tool$reviewsList = {
@@ -66392,7 +69035,7 @@ List retained investigation reviews using filters and an authenticated cursor. U
66392
69035
  openWorldHint: false,
66393
69036
  readOnlyHint: true
66394
69037
  },
66395
- args: args74,
69038
+ args: args87,
66396
69039
  tool: async (client, args, ctx) => {
66397
69040
  const [result] = await reviewsList(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
66398
69041
  if (!result.ok) {
@@ -66461,9 +69104,9 @@ var init_listreviewcommentsop = __esm(() => {
66461
69104
 
66462
69105
  // src/funcs/reviewsListComments.ts
66463
69106
  function reviewsListComments(client$, request, options) {
66464
- return new APIPromise($do75(client$, request, options));
69107
+ return new APIPromise($do88(client$, request, options));
66465
69108
  }
66466
- async function $do75(client$, request, options) {
69109
+ async function $do88(client$, request, options) {
66467
69110
  const parsed$ = safeParse2(request, (value$) => ListReviewCommentsRequest$zodSchema.parse(value$), "Input validation failed");
66468
69111
  if (!parsed$.ok) {
66469
69112
  return [parsed$, { status: "invalid" }];
@@ -66558,12 +69201,12 @@ var init_reviewsListComments = __esm(() => {
66558
69201
  });
66559
69202
 
66560
69203
  // src/mcp-server/tools/reviewsListComments.ts
66561
- var args75, tool$reviewsListComments;
69204
+ var args88, tool$reviewsListComments;
66562
69205
  var init_reviewsListComments2 = __esm(() => {
66563
69206
  init_reviewsListComments();
66564
69207
  init_listreviewcommentsop();
66565
69208
  init_tools();
66566
- args75 = {
69209
+ args88 = {
66567
69210
  request: ListReviewCommentsRequest$zodSchema
66568
69211
  };
66569
69212
  tool$reviewsListComments = {
@@ -66578,7 +69221,7 @@ Page through retained review comments.`,
66578
69221
  openWorldHint: false,
66579
69222
  readOnlyHint: true
66580
69223
  },
66581
- args: args75,
69224
+ args: args88,
66582
69225
  tool: async (client, args, ctx) => {
66583
69226
  const [result] = await reviewsListComments(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
66584
69227
  if (!result.ok) {
@@ -66647,9 +69290,9 @@ var init_listreviewresolutionsop = __esm(() => {
66647
69290
 
66648
69291
  // src/funcs/reviewsListResolutions.ts
66649
69292
  function reviewsListResolutions(client$, request, options) {
66650
- return new APIPromise($do76(client$, request, options));
69293
+ return new APIPromise($do89(client$, request, options));
66651
69294
  }
66652
- async function $do76(client$, request, options) {
69295
+ async function $do89(client$, request, options) {
66653
69296
  const parsed$ = safeParse2(request, (value$) => ListReviewResolutionsRequest$zodSchema.parse(value$), "Input validation failed");
66654
69297
  if (!parsed$.ok) {
66655
69298
  return [parsed$, { status: "invalid" }];
@@ -66744,12 +69387,12 @@ var init_reviewsListResolutions = __esm(() => {
66744
69387
  });
66745
69388
 
66746
69389
  // src/mcp-server/tools/reviewsListResolutions.ts
66747
- var args76, tool$reviewsListResolutions;
69390
+ var args89, tool$reviewsListResolutions;
66748
69391
  var init_reviewsListResolutions2 = __esm(() => {
66749
69392
  init_reviewsListResolutions();
66750
69393
  init_listreviewresolutionsop();
66751
69394
  init_tools();
66752
- args76 = {
69395
+ args89 = {
66753
69396
  request: ListReviewResolutionsRequest$zodSchema
66754
69397
  };
66755
69398
  tool$reviewsListResolutions = {
@@ -66764,7 +69407,7 @@ Page through immutable review resolutions.`,
66764
69407
  openWorldHint: false,
66765
69408
  readOnlyHint: true
66766
69409
  },
66767
- args: args76,
69410
+ args: args89,
66768
69411
  tool: async (client, args, ctx) => {
66769
69412
  const [result] = await reviewsListResolutions(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
66770
69413
  if (!result.ok) {
@@ -66831,9 +69474,9 @@ var init_listreviewsubjectsop = __esm(() => {
66831
69474
 
66832
69475
  // src/funcs/reviewsListSubjects.ts
66833
69476
  function reviewsListSubjects(client$, request, options) {
66834
- return new APIPromise($do77(client$, request, options));
69477
+ return new APIPromise($do90(client$, request, options));
66835
69478
  }
66836
- async function $do77(client$, request, options) {
69479
+ async function $do90(client$, request, options) {
66837
69480
  const parsed$ = safeParse2(request, (value$) => ListReviewSubjectsRequest$zodSchema.parse(value$), "Input validation failed");
66838
69481
  if (!parsed$.ok) {
66839
69482
  return [parsed$, { status: "invalid" }];
@@ -66923,12 +69566,12 @@ var init_reviewsListSubjects = __esm(() => {
66923
69566
  });
66924
69567
 
66925
69568
  // src/mcp-server/tools/reviewsListSubjects.ts
66926
- var args77, tool$reviewsListSubjects;
69569
+ var args90, tool$reviewsListSubjects;
66927
69570
  var init_reviewsListSubjects2 = __esm(() => {
66928
69571
  init_reviewsListSubjects();
66929
69572
  init_listreviewsubjectsop();
66930
69573
  init_tools();
66931
- args77 = {
69574
+ args90 = {
66932
69575
  request: ListReviewSubjectsRequest$zodSchema
66933
69576
  };
66934
69577
  tool$reviewsListSubjects = {
@@ -66943,7 +69586,7 @@ List retained subjects linked to this review. A link supplies investigation cont
66943
69586
  openWorldHint: false,
66944
69587
  readOnlyHint: true
66945
69588
  },
66946
- args: args77,
69589
+ args: args90,
66947
69590
  tool: async (client, args, ctx) => {
66948
69591
  const [result] = await reviewsListSubjects(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
66949
69592
  if (!result.ok) {
@@ -67008,9 +69651,9 @@ var init_listreviewviewsop = __esm(() => {
67008
69651
 
67009
69652
  // src/funcs/reviewsListViews.ts
67010
69653
  function reviewsListViews(client$, request, options) {
67011
- return new APIPromise($do78(client$, request, options));
69654
+ return new APIPromise($do91(client$, request, options));
67012
69655
  }
67013
- async function $do78(client$, request, options) {
69656
+ async function $do91(client$, request, options) {
67014
69657
  const parsed$ = safeParse2(request, (value$) => ListReviewViewsRequest$zodSchema.parse(value$), "Input validation failed");
67015
69658
  if (!parsed$.ok) {
67016
69659
  return [parsed$, { status: "invalid" }];
@@ -67096,12 +69739,12 @@ var init_reviewsListViews = __esm(() => {
67096
69739
  });
67097
69740
 
67098
69741
  // src/mcp-server/tools/reviewsListViews.ts
67099
- var args78, tool$reviewsListViews;
69742
+ var args91, tool$reviewsListViews;
67100
69743
  var init_reviewsListViews2 = __esm(() => {
67101
69744
  init_reviewsListViews();
67102
69745
  init_listreviewviewsop();
67103
69746
  init_tools();
67104
- args78 = {
69747
+ args91 = {
67105
69748
  request: ListReviewViewsRequest$zodSchema
67106
69749
  };
67107
69750
  tool$reviewsListViews = {
@@ -67116,7 +69759,7 @@ List private and shared saved review filters visible to you.`,
67116
69759
  openWorldHint: false,
67117
69760
  readOnlyHint: true
67118
69761
  },
67119
- args: args78,
69762
+ args: args91,
67120
69763
  tool: async (client, args, ctx) => {
67121
69764
  const [result] = await reviewsListViews(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
67122
69765
  if (!result.ok) {
@@ -67191,9 +69834,9 @@ var init_queryreviewsop = __esm(() => {
67191
69834
 
67192
69835
  // src/funcs/reviewsQuery.ts
67193
69836
  function reviewsQuery(client$, request, options) {
67194
- return new APIPromise($do79(client$, request, options));
69837
+ return new APIPromise($do92(client$, request, options));
67195
69838
  }
67196
- async function $do79(client$, request, options) {
69839
+ async function $do92(client$, request, options) {
67197
69840
  const parsed$ = safeParse2(request, (value$) => QueryReviewsRequest$zodSchema.parse(value$), "Input validation failed");
67198
69841
  if (!parsed$.ok) {
67199
69842
  return [parsed$, { status: "invalid" }];
@@ -67280,12 +69923,12 @@ var init_reviewsQuery = __esm(() => {
67280
69923
  });
67281
69924
 
67282
69925
  // src/mcp-server/tools/reviewsQuery.ts
67283
- var args79, tool$reviewsQuery;
69926
+ var args92, tool$reviewsQuery;
67284
69927
  var init_reviewsQuery2 = __esm(() => {
67285
69928
  init_reviewsQuery();
67286
69929
  init_queryreviewsop();
67287
69930
  init_tools();
67288
- args79 = {
69931
+ args92 = {
67289
69932
  request: QueryReviewsRequest$zodSchema
67290
69933
  };
67291
69934
  tool$reviewsQuery = {
@@ -67300,7 +69943,7 @@ Query retained investigation reviews using a JSON body, including an exact accou
67300
69943
  openWorldHint: false,
67301
69944
  readOnlyHint: true
67302
69945
  },
67303
- args: args79,
69946
+ args: args92,
67304
69947
  tool: async (client, args, ctx) => {
67305
69948
  const [result] = await reviewsQuery(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
67306
69949
  if (!result.ok) {
@@ -67371,9 +70014,9 @@ var init_resolvereviewop = __esm(() => {
67371
70014
 
67372
70015
  // src/funcs/reviewsResolve.ts
67373
70016
  function reviewsResolve(client$, request, options) {
67374
- return new APIPromise($do80(client$, request, options));
70017
+ return new APIPromise($do93(client$, request, options));
67375
70018
  }
67376
- async function $do80(client$, request, options) {
70019
+ async function $do93(client$, request, options) {
67377
70020
  const parsed$ = safeParse2(request, (value$) => ResolveReviewRequest$zodSchema.parse(value$), "Input validation failed");
67378
70021
  if (!parsed$.ok) {
67379
70022
  return [parsed$, { status: "invalid" }];
@@ -67451,12 +70094,12 @@ var init_reviewsResolve = __esm(() => {
67451
70094
  });
67452
70095
 
67453
70096
  // src/mcp-server/tools/reviewsResolve.ts
67454
- var args80, tool$reviewsResolve;
70097
+ var args93, tool$reviewsResolve;
67455
70098
  var init_reviewsResolve2 = __esm(() => {
67456
70099
  init_reviewsResolve();
67457
70100
  init_resolvereviewop();
67458
70101
  init_tools();
67459
- args80 = {
70102
+ args93 = {
67460
70103
  request: ResolveReviewRequest$zodSchema
67461
70104
  };
67462
70105
  tool$reviewsResolve = {
@@ -67471,7 +70114,7 @@ Resolve a review against the exact current review and account decision versions.
67471
70114
  openWorldHint: false,
67472
70115
  readOnlyHint: false
67473
70116
  },
67474
- args: args80,
70117
+ args: args93,
67475
70118
  tool: async (client, args, ctx) => {
67476
70119
  const [result] = await reviewsResolve(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
67477
70120
  if (!result.ok) {
@@ -67553,9 +70196,9 @@ var init_updatereviewop = __esm(() => {
67553
70196
 
67554
70197
  // src/funcs/reviewsUpdate.ts
67555
70198
  function reviewsUpdate(client$, request, options) {
67556
- return new APIPromise($do81(client$, request, options));
70199
+ return new APIPromise($do94(client$, request, options));
67557
70200
  }
67558
- async function $do81(client$, request, options) {
70201
+ async function $do94(client$, request, options) {
67559
70202
  const parsed$ = safeParse2(request, (value$) => UpdateReviewRequest$zodSchema.parse(value$), "Input validation failed");
67560
70203
  if (!parsed$.ok) {
67561
70204
  return [parsed$, { status: "invalid" }];
@@ -67633,12 +70276,12 @@ var init_reviewsUpdate = __esm(() => {
67633
70276
  });
67634
70277
 
67635
70278
  // src/mcp-server/tools/reviewsUpdate.ts
67636
- var args81, tool$reviewsUpdate;
70279
+ var args94, tool$reviewsUpdate;
67637
70280
  var init_reviewsUpdate2 = __esm(() => {
67638
70281
  init_reviewsUpdate();
67639
70282
  init_updatereviewop();
67640
70283
  init_tools();
67641
- args81 = {
70284
+ args94 = {
67642
70285
  request: UpdateReviewRequest$zodSchema
67643
70286
  };
67644
70287
  tool$reviewsUpdate = {
@@ -67653,7 +70296,7 @@ Change review status, priority or assignment after checking the expected version
67653
70296
  openWorldHint: false,
67654
70297
  readOnlyHint: false
67655
70298
  },
67656
- args: args81,
70299
+ args: args94,
67657
70300
  tool: async (client, args, ctx) => {
67658
70301
  const [result] = await reviewsUpdate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
67659
70302
  if (!result.ok) {
@@ -67711,9 +70354,9 @@ var init_updatereviewviewop = __esm(() => {
67711
70354
 
67712
70355
  // src/funcs/reviewsUpdateView.ts
67713
70356
  function reviewsUpdateView(client$, request, options) {
67714
- return new APIPromise($do82(client$, request, options));
70357
+ return new APIPromise($do95(client$, request, options));
67715
70358
  }
67716
- async function $do82(client$, request, options) {
70359
+ async function $do95(client$, request, options) {
67717
70360
  const parsed$ = safeParse2(request, (value$) => UpdateReviewViewRequest$zodSchema.parse(value$), "Input validation failed");
67718
70361
  if (!parsed$.ok) {
67719
70362
  return [parsed$, { status: "invalid" }];
@@ -67791,12 +70434,12 @@ var init_reviewsUpdateView = __esm(() => {
67791
70434
  });
67792
70435
 
67793
70436
  // src/mcp-server/tools/reviewsUpdateView.ts
67794
- var args82, tool$reviewsUpdateView;
70437
+ var args95, tool$reviewsUpdateView;
67795
70438
  var init_reviewsUpdateView2 = __esm(() => {
67796
70439
  init_reviewsUpdateView();
67797
70440
  init_updatereviewviewop();
67798
70441
  init_tools();
67799
- args82 = {
70442
+ args95 = {
67800
70443
  request: UpdateReviewViewRequest$zodSchema
67801
70444
  };
67802
70445
  tool$reviewsUpdateView = {
@@ -67811,7 +70454,7 @@ Update your saved review filter after checking its expected version.`,
67811
70454
  openWorldHint: false,
67812
70455
  readOnlyHint: false
67813
70456
  },
67814
- args: args82,
70457
+ args: args95,
67815
70458
  tool: async (client, args, ctx) => {
67816
70459
  const [result] = await reviewsUpdateView(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
67817
70460
  if (!result.ok) {
@@ -67866,9 +70509,9 @@ var init_getsettingsop = __esm(() => {
67866
70509
 
67867
70510
  // src/funcs/settingsGet.ts
67868
70511
  function settingsGet(client$, request, options) {
67869
- return new APIPromise($do83(client$, request, options));
70512
+ return new APIPromise($do96(client$, request, options));
67870
70513
  }
67871
- async function $do83(client$, request, options) {
70514
+ async function $do96(client$, request, options) {
67872
70515
  const parsed$ = safeParse2(request, (value$) => GetSettingsRequest$zodSchema.parse(value$), "Input validation failed");
67873
70516
  if (!parsed$.ok) {
67874
70517
  return [parsed$, { status: "invalid" }];
@@ -67954,19 +70597,19 @@ var init_settingsGet = __esm(() => {
67954
70597
  });
67955
70598
 
67956
70599
  // src/mcp-server/tools/settingsGet.ts
67957
- var args83, tool$settingsGet;
70600
+ var args96, tool$settingsGet;
67958
70601
  var init_settingsGet2 = __esm(() => {
67959
70602
  init_settingsGet();
67960
70603
  init_getsettingsop();
67961
70604
  init_tools();
67962
- args83 = {
70605
+ args96 = {
67963
70606
  request: GetSettingsRequest$zodSchema
67964
70607
  };
67965
70608
  tool$settingsGet = {
67966
70609
  name: "get_settings",
67967
70610
  description: `Read an environment's settings.
67968
70611
 
67969
- Read this environment retention, source selection and effective flow policies. A flow without its own thresholds inherits account_creation. Requires settings or management. Another environment answers404. Read-only and safe to retry.`,
70612
+ Read this environment retention, source selection, daily screening cap and effective flow policies. A flow without its own thresholds inherits account_creation. Requires settings or management. Another environment answers404. Read-only and safe to retry.`,
67970
70613
  annotations: {
67971
70614
  title: "Read this environment's settings",
67972
70615
  destructiveHint: false,
@@ -67974,7 +70617,7 @@ Read this environment retention, source selection and effective flow policies. A
67974
70617
  openWorldHint: false,
67975
70618
  readOnlyHint: true
67976
70619
  },
67977
- args: args83,
70620
+ args: args96,
67978
70621
  tool: async (client, args, ctx) => {
67979
70622
  const [result] = await settingsGet(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
67980
70623
  if (!result.ok) {
@@ -68017,7 +70660,7 @@ var init_policyhistoryitem = __esm(() => {
68017
70660
  evaluation: Publication$zodSchema.optional().describe("Immutable publication provenance remains in policy history after evaluation evidence expires. SHA-256 values identify the frozen manifest, evaluator semantic input, cohort, and canonical result separately."),
68018
70661
  recorded_at: string2().optional().describe("Capture time, not a backfilled activation time. Absent only for the current configuration before its first capture."),
68019
70662
  restored_from: int().optional(),
68020
- settings: Settings$zodSchema.describe("One environment's settings: how long its assessments are kept, and for each flow the risk thresholds that decide it and the depth a request that names none is served at, and the sources it refuses. Live and test each have their own. A flow without thresholds of its own uses account_creation's (inherits_account_creation). Every change is recorded in the audit log as settings.updated, with who made it.")
70663
+ settings: Settings$zodSchema.describe("One environment's settings: how long its assessments are kept, and for each flow the risk thresholds that decide it and the depth a request that names none is served at, the sources it refuses, and the daily cap on screening spend. Live and test each have their own. A flow without thresholds of its own uses account_creation's (inherits_account_creation). Every change is recorded in the audit log as settings.updated, with who made it.")
68021
70664
  });
68022
70665
  });
68023
70666
 
@@ -68077,9 +70720,9 @@ var init_listpolicyhistoryop = __esm(() => {
68077
70720
 
68078
70721
  // src/funcs/settingsListHistory.ts
68079
70722
  function settingsListHistory(client$, request, options) {
68080
- return new APIPromise($do84(client$, request, options));
70723
+ return new APIPromise($do97(client$, request, options));
68081
70724
  }
68082
- async function $do84(client$, request, options) {
70725
+ async function $do97(client$, request, options) {
68083
70726
  const parsed$ = safeParse2(request, (value$) => ListPolicyHistoryRequest$zodSchema.parse(value$), "Input validation failed");
68084
70727
  if (!parsed$.ok) {
68085
70728
  return [parsed$, { status: "invalid" }];
@@ -68170,12 +70813,12 @@ var init_settingsListHistory = __esm(() => {
68170
70813
  });
68171
70814
 
68172
70815
  // src/mcp-server/tools/settingsListHistory.ts
68173
- var args84, tool$settingsListHistory;
70816
+ var args97, tool$settingsListHistory;
68174
70817
  var init_settingsListHistory2 = __esm(() => {
68175
70818
  init_settingsListHistory();
68176
70819
  init_listpolicyhistoryop();
68177
70820
  init_tools();
68178
- args84 = {
70821
+ args97 = {
68179
70822
  request: ListPolicyHistoryRequest$zodSchema
68180
70823
  };
68181
70824
  tool$settingsListHistory = {
@@ -68190,7 +70833,7 @@ Read immutable configuration versions in one environment with settings or manage
68190
70833
  openWorldHint: false,
68191
70834
  readOnlyHint: true
68192
70835
  },
68193
- args: args84,
70836
+ args: args97,
68194
70837
  tool: async (client, args, ctx) => {
68195
70838
  const [result] = await settingsListHistory(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
68196
70839
  if (!result.ok) {
@@ -68369,9 +71012,9 @@ var init_previewpolicyop = __esm(() => {
68369
71012
 
68370
71013
  // src/funcs/settingsPreview.ts
68371
71014
  function settingsPreview(client$, request, options) {
68372
- return new APIPromise($do85(client$, request, options));
71015
+ return new APIPromise($do98(client$, request, options));
68373
71016
  }
68374
- async function $do85(client$, request, options) {
71017
+ async function $do98(client$, request, options) {
68375
71018
  const parsed$ = safeParse2(request, (value$) => PreviewPolicyRequest$zodSchema.parse(value$), "Input validation failed");
68376
71019
  if (!parsed$.ok) {
68377
71020
  return [parsed$, { status: "invalid" }];
@@ -68458,12 +71101,12 @@ var init_settingsPreview = __esm(() => {
68458
71101
  });
68459
71102
 
68460
71103
  // src/mcp-server/tools/settingsPreview.ts
68461
- var args85, tool$settingsPreview;
71104
+ var args98, tool$settingsPreview;
68462
71105
  var init_settingsPreview2 = __esm(() => {
68463
71106
  init_settingsPreview();
68464
71107
  init_previewpolicyop();
68465
71108
  init_tools();
68466
- args85 = {
71109
+ args98 = {
68467
71110
  request: PreviewPolicyRequest$zodSchema
68468
71111
  };
68469
71112
  tool$settingsPreview = {
@@ -68478,7 +71121,7 @@ Compare proposed policy with bounded retained first answers, including baseline,
68478
71121
  openWorldHint: false,
68479
71122
  readOnlyHint: true
68480
71123
  },
68481
- args: args85,
71124
+ args: args98,
68482
71125
  tool: async (client, args, ctx) => {
68483
71126
  const [result] = await settingsPreview(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
68484
71127
  if (!result.ok) {
@@ -68546,9 +71189,9 @@ var init_restorepolicyop = __esm(() => {
68546
71189
 
68547
71190
  // src/funcs/settingsRestore.ts
68548
71191
  function settingsRestore(client$, request, options) {
68549
- return new APIPromise($do86(client$, request, options));
71192
+ return new APIPromise($do99(client$, request, options));
68550
71193
  }
68551
- async function $do86(client$, request, options) {
71194
+ async function $do99(client$, request, options) {
68552
71195
  const parsed$ = safeParse2(request, (value$) => RestorePolicyRequest$zodSchema.parse(value$), "Input validation failed");
68553
71196
  if (!parsed$.ok) {
68554
71197
  return [parsed$, { status: "invalid" }];
@@ -68622,12 +71265,12 @@ var init_settingsRestore = __esm(() => {
68622
71265
  });
68623
71266
 
68624
71267
  // src/mcp-server/tools/settingsRestore.ts
68625
- var args86, tool$settingsRestore;
71268
+ var args99, tool$settingsRestore;
68626
71269
  var init_settingsRestore2 = __esm(() => {
68627
71270
  init_settingsRestore();
68628
71271
  init_restorepolicyop();
68629
71272
  init_tools();
68630
- args86 = {
71273
+ args99 = {
68631
71274
  request: RestorePolicyRequest$zodSchema
68632
71275
  };
68633
71276
  tool$settingsRestore = {
@@ -68642,7 +71285,7 @@ Restore a retained configuration as a fresh version with the expected current ve
68642
71285
  openWorldHint: false,
68643
71286
  readOnlyHint: false
68644
71287
  },
68645
- args: args86,
71288
+ args: args99,
68646
71289
  tool: async (client, args, ctx) => {
68647
71290
  const [result] = await settingsRestore(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
68648
71291
  if (!result.ok) {
@@ -68700,7 +71343,8 @@ var init_settingsrequest = __esm(() => {
68700
71343
  expected_policy_version: int().optional().describe("Compare-and-set guard. A stale version returns 409 policy_version_conflict before any change; every settings write including retention advances the version."),
68701
71344
  flows: SettingsRequestFlows$zodSchema.optional().describe("Use account_creation or its deprecated alias signup, not both."),
68702
71345
  refused_sources: array(SourceId$zodSchema).optional().describe("Replaces the refused sources; [] refuses none. A change applies to new assessments within a minute."),
68703
- retention_days: int().optional()
71346
+ retention_days: int().optional(),
71347
+ screening_daily_cap: int().nullable().optional().describe("Replaces the daily screening cap, in minor units of USD; null removes the cap. Needs settings.write only, like retention_days.")
68704
71348
  }).describe("Changes only named settings, atomically. Every successful write advances policy_version and retains an immutable settings snapshot. expected_policy_version optionally guards against stale edits; restore always requires it.");
68705
71349
  });
68706
71350
 
@@ -68747,9 +71391,9 @@ var init_updatesettingsop = __esm(() => {
68747
71391
 
68748
71392
  // src/funcs/settingsUpdate.ts
68749
71393
  function settingsUpdate(client$, request, options) {
68750
- return new APIPromise($do87(client$, request, options));
71394
+ return new APIPromise($do100(client$, request, options));
68751
71395
  }
68752
- async function $do87(client$, request, options) {
71396
+ async function $do100(client$, request, options) {
68753
71397
  const parsed$ = safeParse2(request, (value$) => UpdateSettingsRequest$zodSchema.parse(value$), "Input validation failed");
68754
71398
  if (!parsed$.ok) {
68755
71399
  return [parsed$, { status: "invalid" }];
@@ -68836,19 +71480,19 @@ var init_settingsUpdate = __esm(() => {
68836
71480
  });
68837
71481
 
68838
71482
  // src/mcp-server/tools/settingsUpdate.ts
68839
- var args87, tool$settingsUpdate;
71483
+ var args100, tool$settingsUpdate;
68840
71484
  var init_settingsUpdate2 = __esm(() => {
68841
71485
  init_settingsUpdate();
68842
71486
  init_updatesettingsop();
68843
71487
  init_tools();
68844
- args87 = {
71488
+ args100 = {
68845
71489
  request: UpdateSettingsRequest$zodSchema
68846
71490
  };
68847
71491
  tool$settingsUpdate = {
68848
71492
  name: "update_settings",
68849
71493
  description: `Change an environment's settings.
68850
71494
 
68851
- Change named retention, source or flow settings in one transaction. Requires settings or management; changes to active policy also require policy_publish, which legacy management includes. Use expected_policy_version to reject concurrent changes and record a change_reason. Each accepted change creates a fresh version and an atomic audit event. Retention-only edits do not require policy publication authority. Flow thresholds preserve their declared ordering and bounds.`,
71495
+ Change named retention, screening cap, source or flow settings in one transaction. Requires settings or management; changes to active policy also require policy_publish, which legacy management includes. Use expected_policy_version to reject concurrent changes and record a change_reason. Each accepted change creates a fresh version and an atomic audit event. Retention and screening cap edits do not require policy publication authority. Flow thresholds preserve their declared ordering and bounds.`,
68852
71496
  annotations: {
68853
71497
  title: "Change this environment's settings",
68854
71498
  destructiveHint: false,
@@ -68856,7 +71500,7 @@ Change named retention, source or flow settings in one transaction. Requires set
68856
71500
  openWorldHint: false,
68857
71501
  readOnlyHint: false
68858
71502
  },
68859
- args: args87,
71503
+ args: args100,
68860
71504
  tool: async (client, args, ctx) => {
68861
71505
  const [result] = await settingsUpdate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
68862
71506
  if (!result.ok) {
@@ -68888,8 +71532,9 @@ var init_metric = __esm(() => {
68888
71532
  Metric$zodSchema = _enum([
68889
71533
  "assessments",
68890
71534
  "webhook_deliveries",
68891
- "key_usage_events"
68892
- ]).describe("assessments: assessments admitted. webhook_deliveries: events sent to endpoints, one per event per endpoint. key_usage_events: key-usage events accepted.");
71535
+ "key_usage_events",
71536
+ "screenings"
71537
+ ]).describe("assessments: assessments admitted. webhook_deliveries: events sent to endpoints, one per event per endpoint. key_usage_events: key-usage events accepted. screenings: attendees a screening recorded a final result for, one per attendee per screening; a failed attendee counts nothing.");
68893
71538
  });
68894
71539
 
68895
71540
  // src/models/usagecountflow.ts
@@ -68917,7 +71562,7 @@ var init_usagecount = __esm(() => {
68917
71562
  depth: UsageCountDepth$zodSchema.optional().describe("assessments only."),
68918
71563
  environment: AuditSettingsEnvironment$zodSchema,
68919
71564
  flow: UsageCountFlow$zodSchema.optional().describe("assessments only."),
68920
- metric: Metric$zodSchema.describe("assessments: assessments admitted. webhook_deliveries: events sent to endpoints, one per event per endpoint. key_usage_events: key-usage events accepted.")
71565
+ metric: Metric$zodSchema.describe("assessments: assessments admitted. webhook_deliveries: events sent to endpoints, one per event per endpoint. key_usage_events: key-usage events accepted. screenings: attendees a screening recorded a final result for, one per attendee per screening; a failed attendee counts nothing.")
68921
71566
  });
68922
71567
  });
68923
71568
 
@@ -68933,7 +71578,7 @@ var init_usage = __esm(() => {
68933
71578
  items: array(UsageCount$zodSchema).describe("Ordered by environment (live first), then day, metric, flow and depth."),
68934
71579
  to: string2().describe("The last UTC day covered, included."),
68935
71580
  workspace_id: string2().describe("The workspace id, which is also its live environment's workspace id; the test environment's is the same id with :test appended. A workspace created through the API is tnt_ and a 26-character ULID.")
68936
- }).describe("Body of the 200 answer to GET /v1/workspaces/{workspace_id}/usage: what the workspace's environments were metered for on each UTC day from from through to. Each billable unit is counted once, where it becomes final: an assessment when it is admitted (by flow and depth), a webhook delivery once per event per endpoint (retries and replays add nothing), and a key-usage event once when the ingest accepts it. A count does not change when the assessment, account or workspace is later deleted. A day, environment or metric with nothing counted has no item. No prices or billing. console_lookups is the one limit: the live environment's daily cap on console lookups, as spent today.");
71581
+ }).describe("Body of the 200 answer to GET /v1/workspaces/{workspace_id}/usage: what the workspace's environments were metered for on each UTC day from from through to. Each billable unit is counted once, where it becomes final: an assessment when it is admitted (by flow and depth), a webhook delivery once per event per endpoint (retries and replays add nothing), a key-usage event once when the ingest accepts it, and a screened attendee once per screening when its result is recorded. A count does not change when the assessment, account or workspace is later deleted. A day, environment or metric with nothing counted has no item. No prices or billing; screening spend is in each screening's spent. console_lookups is the one limit: the live environment's daily cap on console lookups, as spent today.");
68937
71582
  });
68938
71583
 
68939
71584
  // src/models/getusageop.ts
@@ -68977,9 +71622,9 @@ var init_getusageop = __esm(() => {
68977
71622
 
68978
71623
  // src/funcs/usageGet.ts
68979
71624
  function usageGet(client$, request, options) {
68980
- return new APIPromise($do88(client$, request, options));
71625
+ return new APIPromise($do101(client$, request, options));
68981
71626
  }
68982
- async function $do88(client$, request, options) {
71627
+ async function $do101(client$, request, options) {
68983
71628
  const parsed$ = safeParse2(request, (value$) => GetUsageRequest$zodSchema.parse(value$), "Input validation failed");
68984
71629
  if (!parsed$.ok) {
68985
71630
  return [parsed$, { status: "invalid" }];
@@ -69066,19 +71711,19 @@ var init_usageGet = __esm(() => {
69066
71711
  });
69067
71712
 
69068
71713
  // src/mcp-server/tools/usageGet.ts
69069
- var args88, tool$usageGet;
71714
+ var args101, tool$usageGet;
69070
71715
  var init_usageGet2 = __esm(() => {
69071
71716
  init_usageGet();
69072
71717
  init_getusageop();
69073
71718
  init_tools();
69074
- args88 = {
71719
+ args101 = {
69075
71720
  request: GetUsageRequest$zodSchema
69076
71721
  };
69077
71722
  tool$usageGet = {
69078
71723
  name: "get_workspace_usage",
69079
71724
  description: `Read a workspace's usage.
69080
71725
 
69081
- Read daily usage units for the environments you can access. These counts are unpriced. With live access it also returns the daily console lookup cap: used, limit and resets_at.`,
71726
+ Read daily usage units, screenings included, for the environments you can access. These counts are unpriced. With live access it also returns the daily console lookup cap: used, limit and resets_at.`,
69082
71727
  annotations: {
69083
71728
  title: "Read unpriced workspace usage in the key's environment",
69084
71729
  destructiveHint: false,
@@ -69086,7 +71731,7 @@ Read daily usage units for the environments you can access. These counts are unp
69086
71731
  openWorldHint: false,
69087
71732
  readOnlyHint: true
69088
71733
  },
69089
- args: args88,
71734
+ args: args101,
69090
71735
  tool: async (client, args, ctx) => {
69091
71736
  const [result] = await usageGet(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
69092
71737
  if (!result.ok) {
@@ -69116,9 +71761,9 @@ var init_webhookaggregaterequest = __esm(() => {
69116
71761
 
69117
71762
  // src/funcs/webhookEndpointsAggregate.ts
69118
71763
  function webhookEndpointsAggregate(client$, request, options) {
69119
- return new APIPromise($do89(client$, request, options));
71764
+ return new APIPromise($do102(client$, request, options));
69120
71765
  }
69121
- async function $do89(client$, request, options) {
71766
+ async function $do102(client$, request, options) {
69122
71767
  const parsed$ = safeParse2(request, (value$) => WebhookAggregateRequest$zodSchema.parse(value$), "Input validation failed");
69123
71768
  if (!parsed$.ok) {
69124
71769
  return [parsed$, { status: "invalid" }];
@@ -69195,12 +71840,12 @@ var init_webhookEndpointsAggregate = __esm(() => {
69195
71840
  });
69196
71841
 
69197
71842
  // src/mcp-server/tools/webhookEndpointsAggregate.ts
69198
- var args89, tool$webhookEndpointsAggregate;
71843
+ var args102, tool$webhookEndpointsAggregate;
69199
71844
  var init_webhookEndpointsAggregate2 = __esm(() => {
69200
71845
  init_webhookEndpointsAggregate();
69201
71846
  init_webhookaggregaterequest();
69202
71847
  init_tools();
69203
- args89 = {
71848
+ args102 = {
69204
71849
  request: WebhookAggregateRequest$zodSchema
69205
71850
  };
69206
71851
  tool$webhookEndpointsAggregate = {
@@ -69215,7 +71860,7 @@ Count retained webhook delivery attempts within thirty days and report current r
69215
71860
  openWorldHint: false,
69216
71861
  readOnlyHint: true
69217
71862
  },
69218
- args: args89,
71863
+ args: args102,
69219
71864
  tool: async (client, args, ctx) => {
69220
71865
  const [result] = await webhookEndpointsAggregate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
69221
71866
  if (!result.ok) {
@@ -69242,9 +71887,9 @@ var init_webhookendpointrequest = __esm(() => {
69242
71887
 
69243
71888
  // src/funcs/webhookEndpointsCreate.ts
69244
71889
  function webhookEndpointsCreate(client$, request, options) {
69245
- return new APIPromise($do90(client$, request, options));
71890
+ return new APIPromise($do103(client$, request, options));
69246
71891
  }
69247
- async function $do90(client$, request, options) {
71892
+ async function $do103(client$, request, options) {
69248
71893
  const parsed$ = safeParse2(request, (value$) => WebhookEndpointRequest$zodSchema.parse(value$), "Input validation failed");
69249
71894
  if (!parsed$.ok) {
69250
71895
  return [parsed$, { status: "invalid" }];
@@ -69308,12 +71953,12 @@ var init_webhookEndpointsCreate = __esm(() => {
69308
71953
  });
69309
71954
 
69310
71955
  // src/mcp-server/tools/webhookEndpointsCreate.ts
69311
- var args90, tool$webhookEndpointsCreate;
71956
+ var args103, tool$webhookEndpointsCreate;
69312
71957
  var init_webhookEndpointsCreate2 = __esm(() => {
69313
71958
  init_webhookEndpointsCreate();
69314
71959
  init_webhookendpointrequest();
69315
71960
  init_tools();
69316
- args90 = {
71961
+ args103 = {
69317
71962
  request: WebhookEndpointRequest$zodSchema
69318
71963
  };
69319
71964
  tool$webhookEndpointsCreate = {
@@ -69328,7 +71973,7 @@ Registers a webhook endpoint and returns it with its first signing secret, shown
69328
71973
  openWorldHint: false,
69329
71974
  readOnlyHint: false
69330
71975
  },
69331
- args: args90,
71976
+ args: args103,
69332
71977
  tool: async (client, args, ctx) => {
69333
71978
  const [result] = await webhookEndpointsCreate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
69334
71979
  if (!result.ok) {
@@ -69378,9 +72023,9 @@ var init_deletewebhookendpointop = __esm(() => {
69378
72023
 
69379
72024
  // src/funcs/webhookEndpointsDelete.ts
69380
72025
  function webhookEndpointsDelete(client$, request, options) {
69381
- return new APIPromise($do91(client$, request, options));
72026
+ return new APIPromise($do104(client$, request, options));
69382
72027
  }
69383
- async function $do91(client$, request, options) {
72028
+ async function $do104(client$, request, options) {
69384
72029
  const parsed$ = safeParse2(request, (value$) => DeleteWebhookEndpointRequest$zodSchema.parse(value$), "Input validation failed");
69385
72030
  if (!parsed$.ok) {
69386
72031
  return [parsed$, { status: "invalid" }];
@@ -69462,12 +72107,12 @@ var init_webhookEndpointsDelete = __esm(() => {
69462
72107
  });
69463
72108
 
69464
72109
  // src/mcp-server/tools/webhookEndpointsDelete.ts
69465
- var args91, tool$webhookEndpointsDelete;
72110
+ var args104, tool$webhookEndpointsDelete;
69466
72111
  var init_webhookEndpointsDelete2 = __esm(() => {
69467
72112
  init_webhookEndpointsDelete();
69468
72113
  init_deletewebhookendpointop();
69469
72114
  init_tools();
69470
- args91 = {
72115
+ args104 = {
69471
72116
  request: DeleteWebhookEndpointRequest$zodSchema
69472
72117
  };
69473
72118
  tool$webhookEndpointsDelete = {
@@ -69482,7 +72127,7 @@ Deletes the endpoint and its signing keys. Deliveries still queued for it are dr
69482
72127
  openWorldHint: false,
69483
72128
  readOnlyHint: false
69484
72129
  },
69485
- args: args91,
72130
+ args: args104,
69486
72131
  tool: async (client, args, ctx) => {
69487
72132
  const [result] = await webhookEndpointsDelete(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
69488
72133
  if (!result.ok) {
@@ -69498,9 +72143,9 @@ Deletes the endpoint and its signing keys. Deliveries still queued for it are dr
69498
72143
 
69499
72144
  // src/funcs/webhookEndpointsList.ts
69500
72145
  function webhookEndpointsList(client$, options) {
69501
- return new APIPromise($do92(client$, options));
72146
+ return new APIPromise($do105(client$, options));
69502
72147
  }
69503
- async function $do92(client$, options) {
72148
+ async function $do105(client$, options) {
69504
72149
  const path$ = pathToFunc("/v1/webhooks")();
69505
72150
  const headers$ = new Headers(compactMap({
69506
72151
  Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
@@ -69694,9 +72339,9 @@ var init_listwebhookdeliveriesop = __esm(() => {
69694
72339
 
69695
72340
  // src/funcs/webhookEndpointsListDeliveries.ts
69696
72341
  function webhookEndpointsListDeliveries(client$, request, options) {
69697
- return new APIPromise($do93(client$, request, options));
72342
+ return new APIPromise($do106(client$, request, options));
69698
72343
  }
69699
- async function $do93(client$, request, options) {
72344
+ async function $do106(client$, request, options) {
69700
72345
  const parsed$ = safeParse2(request, (value$) => ListWebhookDeliveriesRequest$zodSchema.parse(value$), "Input validation failed");
69701
72346
  if (!parsed$.ok) {
69702
72347
  return [parsed$, { status: "invalid" }];
@@ -69783,12 +72428,12 @@ var init_webhookEndpointsListDeliveries = __esm(() => {
69783
72428
  });
69784
72429
 
69785
72430
  // src/mcp-server/tools/webhookEndpointsListDeliveries.ts
69786
- var args92, tool$webhookEndpointsListDeliveries;
72431
+ var args105, tool$webhookEndpointsListDeliveries;
69787
72432
  var init_webhookEndpointsListDeliveries2 = __esm(() => {
69788
72433
  init_webhookEndpointsListDeliveries();
69789
72434
  init_listwebhookdeliveriesop();
69790
72435
  init_tools();
69791
- args92 = {
72436
+ args105 = {
69792
72437
  request: ListWebhookDeliveriesRequest$zodSchema
69793
72438
  };
69794
72439
  tool$webhookEndpointsListDeliveries = {
@@ -69803,7 +72448,7 @@ Every POST the endpoint received, newest first: the event id and type, which att
69803
72448
  openWorldHint: false,
69804
72449
  readOnlyHint: true
69805
72450
  },
69806
- args: args92,
72451
+ args: args105,
69807
72452
  tool: async (client, args, ctx) => {
69808
72453
  const [result] = await webhookEndpointsListDeliveries(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
69809
72454
  if (!result.ok) {
@@ -69877,9 +72522,9 @@ var init_replaywebhookdeliveryop = __esm(() => {
69877
72522
 
69878
72523
  // src/funcs/webhookEndpointsReplayDelivery.ts
69879
72524
  function webhookEndpointsReplayDelivery(client$, request, options) {
69880
- return new APIPromise($do94(client$, request, options));
72525
+ return new APIPromise($do107(client$, request, options));
69881
72526
  }
69882
- async function $do94(client$, request, options) {
72527
+ async function $do107(client$, request, options) {
69883
72528
  const parsed$ = safeParse2(request, (value$) => ReplayWebhookDeliveryRequest$zodSchema.parse(value$), "Input validation failed");
69884
72529
  if (!parsed$.ok) {
69885
72530
  return [parsed$, { status: "invalid" }];
@@ -69953,12 +72598,12 @@ var init_webhookEndpointsReplayDelivery = __esm(() => {
69953
72598
  });
69954
72599
 
69955
72600
  // src/mcp-server/tools/webhookEndpointsReplayDelivery.ts
69956
- var args93, tool$webhookEndpointsReplayDelivery;
72601
+ var args106, tool$webhookEndpointsReplayDelivery;
69957
72602
  var init_webhookEndpointsReplayDelivery2 = __esm(() => {
69958
72603
  init_webhookEndpointsReplayDelivery();
69959
72604
  init_replaywebhookdeliveryop();
69960
72605
  init_tools();
69961
- args93 = {
72606
+ args106 = {
69962
72607
  request: ReplayWebhookDeliveryRequest$zodSchema
69963
72608
  };
69964
72609
  tool$webhookEndpointsReplayDelivery = {
@@ -69973,7 +72618,7 @@ Queues the event for the endpoint again: the same event id and body it received,
69973
72618
  openWorldHint: false,
69974
72619
  readOnlyHint: false
69975
72620
  },
69976
- args: args93,
72621
+ args: args106,
69977
72622
  tool: async (client, args, ctx) => {
69978
72623
  const [result] = await webhookEndpointsReplayDelivery(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
69979
72624
  if (!result.ok) {
@@ -70059,9 +72704,9 @@ var init_rotatewebhooksigningkeyop = __esm(() => {
70059
72704
 
70060
72705
  // src/funcs/webhookEndpointsRotateSigningKey.ts
70061
72706
  function webhookEndpointsRotateSigningKey(client$, request, options) {
70062
- return new APIPromise($do95(client$, request, options));
72707
+ return new APIPromise($do108(client$, request, options));
70063
72708
  }
70064
- async function $do95(client$, request, options) {
72709
+ async function $do108(client$, request, options) {
70065
72710
  const parsed$ = safeParse2(request, (value$) => RotateWebhookSigningKeyRequest$zodSchema.parse(value$), "Input validation failed");
70066
72711
  if (!parsed$.ok) {
70067
72712
  return [parsed$, { status: "invalid" }];
@@ -70131,12 +72776,12 @@ var init_webhookEndpointsRotateSigningKey = __esm(() => {
70131
72776
  });
70132
72777
 
70133
72778
  // src/mcp-server/tools/webhookEndpointsRotateSigningKey.ts
70134
- var args94, tool$webhookEndpointsRotateSigningKey;
72779
+ var args107, tool$webhookEndpointsRotateSigningKey;
70135
72780
  var init_webhookEndpointsRotateSigningKey2 = __esm(() => {
70136
72781
  init_webhookEndpointsRotateSigningKey();
70137
72782
  init_rotatewebhooksigningkeyop();
70138
72783
  init_tools();
70139
- args94 = {
72784
+ args107 = {
70140
72785
  request: RotateWebhookSigningKeyRequest$zodSchema
70141
72786
  };
70142
72787
  tool$webhookEndpointsRotateSigningKey = {
@@ -70151,7 +72796,7 @@ Issues a new signing key for the endpoint and returns its secret once. Every del
70151
72796
  openWorldHint: false,
70152
72797
  readOnlyHint: false
70153
72798
  },
70154
- args: args94,
72799
+ args: args107,
70155
72800
  tool: async (client, args, ctx) => {
70156
72801
  const [result] = await webhookEndpointsRotateSigningKey(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
70157
72802
  if (!result.ok) {
@@ -70241,9 +72886,9 @@ var init_sendwebhooktesteventop = __esm(() => {
70241
72886
 
70242
72887
  // src/funcs/webhookEndpointsSendTestEvent.ts
70243
72888
  function webhookEndpointsSendTestEvent(client$, request, options) {
70244
- return new APIPromise($do96(client$, request, options));
72889
+ return new APIPromise($do109(client$, request, options));
70245
72890
  }
70246
- async function $do96(client$, request, options) {
72891
+ async function $do109(client$, request, options) {
70247
72892
  const parsed$ = safeParse2(request, (value$) => SendWebhookTestEventRequest$zodSchema.parse(value$), "Input validation failed");
70248
72893
  if (!parsed$.ok) {
70249
72894
  return [parsed$, { status: "invalid" }];
@@ -70313,12 +72958,12 @@ var init_webhookEndpointsSendTestEvent = __esm(() => {
70313
72958
  });
70314
72959
 
70315
72960
  // src/mcp-server/tools/webhookEndpointsSendTestEvent.ts
70316
- var args95, tool$webhookEndpointsSendTestEvent;
72961
+ var args108, tool$webhookEndpointsSendTestEvent;
70317
72962
  var init_webhookEndpointsSendTestEvent2 = __esm(() => {
70318
72963
  init_webhookEndpointsSendTestEvent();
70319
72964
  init_sendwebhooktesteventop();
70320
72965
  init_tools();
70321
- args95 = {
72966
+ args108 = {
70322
72967
  request: SendWebhookTestEventRequest$zodSchema
70323
72968
  };
70324
72969
  tool$webhookEndpointsSendTestEvent = {
@@ -70333,7 +72978,7 @@ endpoint.verification sends a signed challenge now and answers whether the endpo
70333
72978
  openWorldHint: false,
70334
72979
  readOnlyHint: false
70335
72980
  },
70336
- args: args95,
72981
+ args: args108,
70337
72982
  tool: async (client, args, ctx) => {
70338
72983
  const [result] = await webhookEndpointsSendTestEvent(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
70339
72984
  if (!result.ok) {
@@ -70351,7 +72996,7 @@ endpoint.verification sends a signed challenge now and answers whether the endpo
70351
72996
  function createMCPServer(deps) {
70352
72997
  const server = new McpServer({
70353
72998
  name: "NoResponse",
70354
- version: "0.11.15"
72999
+ version: "0.11.17"
70355
73000
  });
70356
73001
  const getClient = deps.getSDK || (() => new NoResponseCore({
70357
73002
  security: deps.security,
@@ -70466,6 +73111,19 @@ function createMCPServer(deps) {
70466
73111
  tool(tool$evaluationsCancel);
70467
73112
  tool(tool$evaluationsPublish);
70468
73113
  tool(tool$operationsSummarize);
73114
+ tool(tool$eventsList);
73115
+ tool(tool$eventsCreate);
73116
+ tool(tool$eventsGet);
73117
+ tool(tool$eventsUpdate);
73118
+ tool(tool$eventsDelete);
73119
+ tool(tool$eventsListAttendees);
73120
+ tool(tool$eventsAddAttendees);
73121
+ tool(tool$eventsGetAttendee);
73122
+ tool(tool$eventsReviewAttendee);
73123
+ tool(tool$eventsListScreenings);
73124
+ tool(tool$eventsStartScreening);
73125
+ tool(tool$eventsGetScreening);
73126
+ tool(tool$eventsCancelScreening);
70469
73127
  if (deps.dynamic) {
70470
73128
  registerDynamicTools(deps.logger, server, getClient, toolMap, scopes);
70471
73129
  }
@@ -70518,6 +73176,19 @@ var init_server = __esm(() => {
70518
73176
  init_evaluationsGetResult2();
70519
73177
  init_evaluationsList2();
70520
73178
  init_evaluationsPublish2();
73179
+ init_eventsAddAttendees2();
73180
+ init_eventsCancelScreening2();
73181
+ init_eventsCreate2();
73182
+ init_eventsDelete2();
73183
+ init_eventsGet2();
73184
+ init_eventsGetAttendee2();
73185
+ init_eventsGetScreening2();
73186
+ init_eventsList2();
73187
+ init_eventsListAttendees2();
73188
+ init_eventsListScreenings2();
73189
+ init_eventsReviewAttendee2();
73190
+ init_eventsStartScreening2();
73191
+ init_eventsUpdate2();
70521
73192
  init_exportsCancel2();
70522
73193
  init_exportsCreate2();
70523
73194
  init_exportsDownloadChunk2();
@@ -70879,7 +73550,7 @@ Replay a recorded delivery for the current audit subscription. Requires audit_ma
70879
73550
  name: "get_workspace_usage",
70880
73551
  description: `Read a workspace's usage.
70881
73552
 
70882
- Read daily usage units for the environments you can access. These counts are unpriced. With live access it also returns the daily console lookup cap: used, limit and resets_at.`
73553
+ Read daily usage units, screenings included, for the environments you can access. These counts are unpriced. With live access it also returns the daily console lookup cap: used, limit and resets_at.`
70883
73554
  },
70884
73555
  {
70885
73556
  name: "list_invites",
@@ -70897,13 +73568,13 @@ Revoke a pending invitation with a live members_manage key. A revoked token cann
70897
73568
  name: "get_settings",
70898
73569
  description: `Read an environment's settings.
70899
73570
 
70900
- Read this environment retention, source selection and effective flow policies. A flow without its own thresholds inherits account_creation. Requires settings or management. Another environment answers404. Read-only and safe to retry.`
73571
+ Read this environment retention, source selection, daily screening cap and effective flow policies. A flow without its own thresholds inherits account_creation. Requires settings or management. Another environment answers404. Read-only and safe to retry.`
70901
73572
  },
70902
73573
  {
70903
73574
  name: "update_settings",
70904
73575
  description: `Change an environment's settings.
70905
73576
 
70906
- Change named retention, source or flow settings in one transaction. Requires settings or management; changes to active policy also require policy_publish, which legacy management includes. Use expected_policy_version to reject concurrent changes and record a change_reason. Each accepted change creates a fresh version and an atomic audit event. Retention-only edits do not require policy publication authority. Flow thresholds preserve their declared ordering and bounds.`
73577
+ Change named retention, screening cap, source or flow settings in one transaction. Requires settings or management; changes to active policy also require policy_publish, which legacy management includes. Use expected_policy_version to reject concurrent changes and record a change_reason. Each accepted change creates a fresh version and an atomic audit event. Retention and screening cap edits do not require policy publication authority. Flow thresholds preserve their declared ordering and bounds.`
70907
73578
  },
70908
73579
  {
70909
73580
  name: "list_policy_history",
@@ -71156,6 +73827,84 @@ Publish an explicitly reviewed candidate with its exact manifest, input and resu
71156
73827
  description: `Summarize retained account outcomes, enforcement reports and reviews.
71157
73828
 
71158
73829
  Read one retained snapshot of account outcomes, enforcement reports and review states for the environment and a window of at most 31 days. Each section declares its own population, numerator, denominator and label coverage. Current outcome heads preserve explicit unknown labels. Enforcement rows are reports from your application and do not independently verify execution. Requires history or investigate together with management scope. A result exceeding 100000 population rows or the query budget is refused without truncation.`
73830
+ },
73831
+ {
73832
+ name: "list_events",
73833
+ description: `List an environment's events.
73834
+
73835
+ List this environment's events, newest first. Pass next_before back as before for the next page. Requires the events scope.`
73836
+ },
73837
+ {
73838
+ name: "create_event",
73839
+ description: `Create an event to screen.
73840
+
73841
+ Create an event to screen: its name, start, venue, host, the principals it protects and the sensitive topics posts are read against. An environment holds at most 1000 events.`
73842
+ },
73843
+ {
73844
+ name: "get_event",
73845
+ description: `Read an event.
73846
+
73847
+ Read an event and how many attendees it holds.`
73848
+ },
73849
+ {
73850
+ name: "update_event",
73851
+ description: `Change an event.
73852
+
73853
+ Change the fields you name. Send expected_version to apply the change only to that version.`
73854
+ },
73855
+ {
73856
+ name: "delete_event",
73857
+ description: `Erase an event.
73858
+
73859
+ Erase an event with its attendees, their decisions and its screenings, and stop any screening still running.`
73860
+ },
73861
+ {
73862
+ name: "list_attendees",
73863
+ description: `List an event's attendees.
73864
+
73865
+ Read an event's roster in upload order, with each attendee's match state, highest finding band and decision. Filter by band or decision; pass next_after back as after.`
73866
+ },
73867
+ {
73868
+ name: "add_attendees",
73869
+ description: `Add or update a batch of attendees.
73870
+
73871
+ Add or update 1 to 500 attendees with an Idempotency-Key. A row with the same external_id, else email, else phone as an existing attendee updates it. Identities are stored encrypted.`
73872
+ },
73873
+ {
73874
+ name: "get_attendee",
73875
+ description: `Read an attendee's report.
73876
+
73877
+ Read an attendee's report: matched profiles, findings with their evidence and every recorded decision.`
73878
+ },
73879
+ {
73880
+ name: "review_attendee",
73881
+ description: `Record a decision on an attendee.
73882
+
73883
+ Record a cleared, watch or escalated decision with a note. The latest decision is the attendee's; the next screening refreshes everyone on watch or escalated.`
73884
+ },
73885
+ {
73886
+ name: "list_screenings",
73887
+ description: `List an event's screenings.
73888
+
73889
+ List an event's screenings, newest first.`
73890
+ },
73891
+ {
73892
+ name: "start_screening",
73893
+ description: `Start a screening.
73894
+
73895
+ Start a screening of new attendees and everyone on watch or escalated, with an Idempotency-Key. It finishes completed, partial or failed minutes to hours later; poll it. The answer carries estimated_spend; a screening whose estimate exceeds what the daily screening cap has left answers 409 screening_cap_exceeded. The test environment screens with stand-ins that find no accounts.`
73896
+ },
73897
+ {
73898
+ name: "get_screening",
73899
+ description: `Read a screening.
73900
+
73901
+ Read a screening's status and progress.`
73902
+ },
73903
+ {
73904
+ name: "cancel_screening",
73905
+ description: `Cancel a screening.
73906
+
73907
+ Stop a queued or running screening. Attendees already screened keep their results.`
71159
73908
  },
71160
73909
  {
71161
73910
  name: "wait_for_assessment",
@@ -79656,7 +82405,7 @@ var routes = buildRouteMap({
79656
82405
  var app = buildApplication(routes, {
79657
82406
  name: "mcp",
79658
82407
  versionInfo: {
79659
- currentVersion: "0.11.15"
82408
+ currentVersion: "0.11.17"
79660
82409
  }
79661
82410
  });
79662
82411
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -79664,5 +82413,5 @@ export {
79664
82413
  app
79665
82414
  };
79666
82415
 
79667
- //# debugId=EC0EB10BE44F5A5E64756E2164756E21
82416
+ //# debugId=BB3B4DE4198D674364756E2164756E21
79668
82417
  //# sourceMappingURL=mcp-server.js.map