@noresponse/mcp 0.6.13 → 0.6.14

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
@@ -48117,9 +48117,9 @@ var init_config = __esm(() => {
48117
48117
  SDK_METADATA = {
48118
48118
  language: "typescript",
48119
48119
  openapiDocVersion: "1",
48120
- sdkVersion: "0.6.13",
48120
+ sdkVersion: "0.6.14",
48121
48121
  genVersion: "internal",
48122
- userAgent: "noresponse-sdk/mcp-typescript 0.6.13 internal 1 @noresponse/mcp"
48122
+ userAgent: "noresponse-sdk/mcp-typescript 0.6.14 internal 1 @noresponse/mcp"
48123
48123
  };
48124
48124
  });
48125
48125
 
@@ -54445,6 +54445,202 @@ Retrieve the account decision at one recorded risk version. The answer uses the
54445
54445
  };
54446
54446
  });
54447
54447
 
54448
+ // src/models/aggregatedimension.ts
54449
+ var AggregateDimension$zodSchema;
54450
+ var init_aggregatedimension = __esm(() => {
54451
+ init_zod();
54452
+ AggregateDimension$zodSchema = _enum([
54453
+ "decision",
54454
+ "flow",
54455
+ "recommendation",
54456
+ "band",
54457
+ "reason",
54458
+ "lane",
54459
+ "country",
54460
+ "asn",
54461
+ "list_match"
54462
+ ]).describe("decision, recommendation and band: the first answer's. flow: the assessment's. list_match: the action of the list entry that decided the account when it was first answered. reason: a reason the first answer fired, with its impact band. lane: an evidence lane the first answer listed in incomplete_sources. country and asn: the submitted IP's, from the IP data.");
54463
+ });
54464
+
54465
+ // src/models/answerrevision.ts
54466
+ var AnswerRevision$zodSchema;
54467
+ var init_answerrevision = __esm(() => {
54468
+ init_zod();
54469
+ AnswerRevision$zodSchema = _enum([
54470
+ "latest",
54471
+ "first"
54472
+ ]).describe("Which answer of each assessment the filters describe: latest, the latest stored revision, or first, the first answer, as served when the assessment was first answered (POST /v1/assessments/aggregate counts first answers). A cell of an aggregate drills down to POST /v1/assessments/search with the same filters, revision first and the cell's bucket as from and to.");
54473
+ });
54474
+
54475
+ // src/models/bucket.ts
54476
+ var Bucket$zodSchema;
54477
+ var init_bucket = __esm(() => {
54478
+ init_zod();
54479
+ Bucket$zodSchema = _enum([
54480
+ "hour",
54481
+ "day",
54482
+ "week"
54483
+ ]).describe("The period each count covers, in UTC; a week starts on Monday.");
54484
+ });
54485
+
54486
+ // src/models/decision.ts
54487
+ var Decision$zodSchema;
54488
+ var init_decision = __esm(() => {
54489
+ init_zod();
54490
+ Decision$zodSchema = _enum([
54491
+ "allow",
54492
+ "step_up",
54493
+ "review",
54494
+ "block"
54495
+ ]).describe("An assessment's own decision: block when its stored risk.block is true, otherwise its recommendation. It is not the account's decision or held-admission state.");
54496
+ });
54497
+
54498
+ // src/models/assessmentaggregaterequest.ts
54499
+ var AssessmentAggregateRequestMetric$zodSchema, AssessmentAggregateRequest$zodSchema;
54500
+ var init_assessmentaggregaterequest = __esm(() => {
54501
+ init_zod();
54502
+ init_aggregatedimension();
54503
+ init_answerrevision();
54504
+ init_bucket();
54505
+ init_decision();
54506
+ init_flow();
54507
+ init_recommendation();
54508
+ init_status();
54509
+ AssessmentAggregateRequestMetric$zodSchema = _enum([
54510
+ "count",
54511
+ "score_histogram",
54512
+ "late_flips"
54513
+ ]);
54514
+ AssessmentAggregateRequest$zodSchema = object({
54515
+ bucket: Bucket$zodSchema.describe("The period each count covers, in UTC; a week starts on Monday."),
54516
+ decision: Decision$zodSchema.optional().describe("An assessment's own decision: block when its stored risk.block is true, otherwise its recommendation. It is not the account's decision or held-admission state."),
54517
+ flow: Flow$zodSchema.optional().describe("The event an assessment is made for: account_creation (a user creates an account), login (a user returns to an existing account) or purchase (a payment or a credit grant). The account's risk is reported with the decision for this flow."),
54518
+ from: string2().describe("The first bucket's start."),
54519
+ group_by: array(AggregateDimension$zodSchema).optional().describe("At most two dimensions to count by, of which at most one is reason, lane, country or asn. An assessment counts once in each of its reasons and incomplete lanes, so those groups can add up to more than the bucket's count."),
54520
+ limit: int().default(20).describe("The most groups answered: the largest over the whole range, then by value. groups_truncated says when there were more."),
54521
+ metrics: array(AssessmentAggregateRequestMetric$zodSchema).optional().describe("count: each bucket's count and groups. score_histogram: first answers by flow and 5-point score bucket. late_flips: changes of an assessment's account decision for its flow after its first answer, by from, to and delay."),
54522
+ recommendation: Recommendation$zodSchema.optional().describe("The recommended action: allow, step_up or review. Your application applies it."),
54523
+ revision: AnswerRevision$zodSchema.optional().describe("Which answer of each assessment the filters describe: latest, the latest stored revision, or first, the first answer, as served when the assessment was first answered (POST /v1/assessments/aggregate counts first answers). A cell of an aggregate drills down to POST /v1/assessments/search with the same filters, revision first and the cell's bucket as from and to."),
54524
+ status: Status$zodSchema.optional().describe("complete: final; nothing is still running. A lane that failed or missed its 10 s deadline stays listed in incomplete_sources, and confidence is lower. partial: a recommendation exists and at least one lane is still running or did not settle (see incomplete_sources). pending: nothing usable before the deadline; no recommendation yet, poll or wait for the webhook."),
54525
+ to: string2().describe("The end, excluded: the start of the bucket after the last.")
54526
+ }).describe("Count this environment's assessments created in [from,to) by bucket, from counts kept as each assessment is first answered, not by scanning assessments. Each assessment counts once, by its first answer (the answer served when it was first answered); later revisions and late results do not count it again, and late_flips counts its later account decision changes. from and to start a bucket (an hour, a UTC day, or a week from Monday 00:00 UTC), cover at most 366 days (31 for hour buckets) and from is inside the retention period. The filters are POST /v1/assessments/search's and describe the first answer, so a cell drills down to search with the same filters, revision first and the cell's bucket as from and to. Counts hold no identifier and stay when an assessment or account is deleted or erased; they expire with retention and go with the workspace. Reasons are counted by code and impact band, not by weight. No Idempotency-Key.");
54527
+ });
54528
+
54529
+ // src/funcs/assessmentsAggregate.ts
54530
+ function assessmentsAggregate(client$, request, options) {
54531
+ return new APIPromise($do14(client$, request, options));
54532
+ }
54533
+ async function $do14(client$, request, options) {
54534
+ const parsed$ = safeParse2(request, (value$) => AssessmentAggregateRequest$zodSchema.parse(value$), "Input validation failed");
54535
+ if (!parsed$.ok) {
54536
+ return [parsed$, { status: "invalid" }];
54537
+ }
54538
+ const payload$ = parsed$.value;
54539
+ const body$ = encodeJSON("body", payload$, { explode: true });
54540
+ const path$ = pathToFunc("/v1/assessments/aggregate")();
54541
+ const headers$ = new Headers(compactMap({
54542
+ "Content-Type": "application/json",
54543
+ Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
54544
+ }));
54545
+ const securityInput = await extractSecurity(client$._options.security);
54546
+ const requestSecurity = resolveGlobalSecurity(securityInput);
54547
+ const context = {
54548
+ options: client$._options,
54549
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
54550
+ operationID: "aggregateAssessments",
54551
+ oAuth2Scopes: null,
54552
+ resolvedSecurity: requestSecurity,
54553
+ securitySource: client$._options.security,
54554
+ retryConfig: options?.retries || client$._options.retryConfig || {
54555
+ strategy: "backoff",
54556
+ backoff: {
54557
+ initialInterval: 500,
54558
+ maxInterval: 8000,
54559
+ exponent: 2,
54560
+ maxElapsedTime: 30000
54561
+ },
54562
+ retryConnectionErrors: true
54563
+ },
54564
+ retryCodes: options?.retryCodes || [
54565
+ "408",
54566
+ "429",
54567
+ "5XX"
54568
+ ]
54569
+ };
54570
+ const requestRes = client$._createRequest(context, {
54571
+ security: requestSecurity,
54572
+ method: "POST",
54573
+ baseURL: options?.serverURL,
54574
+ path: path$,
54575
+ headers: headers$,
54576
+ body: body$,
54577
+ userAgent: client$._options.userAgent,
54578
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
54579
+ }, options);
54580
+ if (!requestRes.ok) {
54581
+ return [requestRes, { status: "invalid" }];
54582
+ }
54583
+ const req$ = requestRes.value;
54584
+ const doResult = await client$._do(req$, {
54585
+ context,
54586
+ errorCodes: [],
54587
+ retryConfig: context.retryConfig,
54588
+ retryCodes: context.retryCodes
54589
+ });
54590
+ if (!doResult.ok) {
54591
+ return [doResult, { status: "request-error", request: req$ }];
54592
+ }
54593
+ return [doResult, {
54594
+ status: "complete",
54595
+ request: req$,
54596
+ response: doResult.value
54597
+ }];
54598
+ }
54599
+ var init_assessmentsAggregate = __esm(() => {
54600
+ init_encodings();
54601
+ init_primitives();
54602
+ init_schemas3();
54603
+ init_security();
54604
+ init_url();
54605
+ init_assessmentaggregaterequest();
54606
+ init_async();
54607
+ });
54608
+
54609
+ // src/mcp-server/tools/assessmentsAggregate.ts
54610
+ var args14, tool$assessmentsAggregate;
54611
+ var init_assessmentsAggregate2 = __esm(() => {
54612
+ init_assessmentsAggregate();
54613
+ init_assessmentaggregaterequest();
54614
+ init_tools();
54615
+ args14 = {
54616
+ request: AssessmentAggregateRequest$zodSchema
54617
+ };
54618
+ tool$assessmentsAggregate = {
54619
+ name: "aggregate_assessments",
54620
+ description: `Count assessments by time, decision and reason
54621
+
54622
+ Count this environment's assessments created in [from,to) by hour, day or week, grouped by up to two of decision, flow, recommendation, band, reason, lane, country, asn and list_match. Each assessment counts once, by its first answer; late results do not count it again and appear in late_flips. Optional metrics add a score histogram per flow and late account decision changes. from and to start a bucket and cover at most 366 days (31 for hour buckets) inside the retention period. The filters are search's and describe the first answer: send them to search with revision first to list a cell's assessments. Counts hold no identifier, stay when an assessment or account is deleted, and report reasons by code and impact band. No Idempotency-Key.`,
54623
+ annotations: {
54624
+ title: "Count assessments by time, decision and reason",
54625
+ destructiveHint: false,
54626
+ idempotentHint: true,
54627
+ openWorldHint: false,
54628
+ readOnlyHint: true
54629
+ },
54630
+ args: args14,
54631
+ tool: async (client, args, ctx) => {
54632
+ const [result] = await assessmentsAggregate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
54633
+ if (!result.ok) {
54634
+ return {
54635
+ content: [{ type: "text", text: result.error.message }],
54636
+ isError: true
54637
+ };
54638
+ }
54639
+ return formatResult(result.value);
54640
+ }
54641
+ };
54642
+ });
54643
+
54448
54644
  // src/models/accountbindingrequest.ts
54449
54645
  var AccountBindingRequest$zodSchema;
54450
54646
  var init_accountbindingrequest = __esm(() => {
@@ -54495,9 +54691,9 @@ var init_bindprovisionalaccountop = __esm(() => {
54495
54691
 
54496
54692
  // src/funcs/assessmentsBindAccount.ts
54497
54693
  function assessmentsBindAccount(client$, request, options) {
54498
- return new APIPromise($do14(client$, request, options));
54694
+ return new APIPromise($do15(client$, request, options));
54499
54695
  }
54500
- async function $do14(client$, request, options) {
54696
+ async function $do15(client$, request, options) {
54501
54697
  const parsed$ = safeParse2(request, (value$) => BindProvisionalAccountRequest$zodSchema.parse(value$), "Input validation failed");
54502
54698
  if (!parsed$.ok) {
54503
54699
  return [parsed$, { status: "invalid" }];
@@ -54580,12 +54776,12 @@ var init_assessmentsBindAccount = __esm(() => {
54580
54776
  });
54581
54777
 
54582
54778
  // src/mcp-server/tools/assessmentsBindAccount.ts
54583
- var args14, tool$assessmentsBindAccount;
54779
+ var args15, tool$assessmentsBindAccount;
54584
54780
  var init_assessmentsBindAccount2 = __esm(() => {
54585
54781
  init_assessmentsBindAccount();
54586
54782
  init_bindprovisionalaccountop();
54587
54783
  init_tools();
54588
- args14 = {
54784
+ args15 = {
54589
54785
  request: BindProvisionalAccountRequest$zodSchema
54590
54786
  };
54591
54787
  tool$assessmentsBindAccount = {
@@ -54600,7 +54796,7 @@ One-time association to an opaque stable customer account. The assessment is its
54600
54796
  openWorldHint: false,
54601
54797
  readOnlyHint: false
54602
54798
  },
54603
- args: args14,
54799
+ args: args15,
54604
54800
  tool: async (client, args, ctx) => {
54605
54801
  const [result] = await assessmentsBindAccount(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
54606
54802
  if (!result.ok) {
@@ -54802,9 +54998,9 @@ var init_createassessmentop = __esm(() => {
54802
54998
 
54803
54999
  // src/funcs/assessmentsCreate.ts
54804
55000
  function assessmentsCreate(client$, request, options) {
54805
- return new APIPromise($do15(client$, request, options));
55001
+ return new APIPromise($do16(client$, request, options));
54806
55002
  }
54807
- async function $do15(client$, request, options) {
55003
+ async function $do16(client$, request, options) {
54808
55004
  const parsed$ = safeParse2(request, (value$) => CreateAssessmentRequest$zodSchema.parse(value$), "Input validation failed");
54809
55005
  if (!parsed$.ok) {
54810
55006
  return [parsed$, { status: "invalid" }];
@@ -54882,12 +55078,12 @@ var init_assessmentsCreate = __esm(() => {
54882
55078
  });
54883
55079
 
54884
55080
  // src/mcp-server/tools/assessmentsCreate.ts
54885
- var args15, tool$assessmentsCreate;
55081
+ var args16, tool$assessmentsCreate;
54886
55082
  var init_assessmentsCreate2 = __esm(() => {
54887
55083
  init_assessmentsCreate();
54888
55084
  init_createassessmentop();
54889
55085
  init_tools();
54890
- args15 = {
55086
+ args16 = {
54891
55087
  request: CreateAssessmentRequest$zodSchema
54892
55088
  };
54893
55089
  tool$assessmentsCreate = {
@@ -54902,7 +55098,7 @@ Assesses one account creation, login or purchase (flow) and answers with the acc
54902
55098
  openWorldHint: false,
54903
55099
  readOnlyHint: false
54904
55100
  },
54905
- args: args15,
55101
+ args: args16,
54906
55102
  tool: async (client, args, ctx) => {
54907
55103
  const [result] = await assessmentsCreate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
54908
55104
  if (!result.ok) {
@@ -54979,9 +55175,9 @@ var init_deleteassessmentop = __esm(() => {
54979
55175
 
54980
55176
  // src/funcs/assessmentsDelete.ts
54981
55177
  function assessmentsDelete(client$, request, options) {
54982
- return new APIPromise($do16(client$, request, options));
55178
+ return new APIPromise($do17(client$, request, options));
54983
55179
  }
54984
- async function $do16(client$, request, options) {
55180
+ async function $do17(client$, request, options) {
54985
55181
  const parsed$ = safeParse2(request, (value$) => DeleteAssessmentRequest$zodSchema.parse(value$), "Input validation failed");
54986
55182
  if (!parsed$.ok) {
54987
55183
  return [parsed$, { status: "invalid" }];
@@ -55063,12 +55259,12 @@ var init_assessmentsDelete = __esm(() => {
55063
55259
  });
55064
55260
 
55065
55261
  // src/mcp-server/tools/assessmentsDelete.ts
55066
- var args16, tool$assessmentsDelete;
55262
+ var args17, tool$assessmentsDelete;
55067
55263
  var init_assessmentsDelete2 = __esm(() => {
55068
55264
  init_assessmentsDelete();
55069
55265
  init_deleteassessmentop();
55070
55266
  init_tools();
55071
- args16 = {
55267
+ args17 = {
55072
55268
  request: DeleteAssessmentRequest$zodSchema
55073
55269
  };
55074
55270
  tool$assessmentsDelete = {
@@ -55083,7 +55279,7 @@ Deletes one assessment in the environment of your key, with its versions, eviden
55083
55279
  openWorldHint: false,
55084
55280
  readOnlyHint: false
55085
55281
  },
55086
- args: args16,
55282
+ args: args17,
55087
55283
  tool: async (client, args, ctx) => {
55088
55284
  const [result] = await assessmentsDelete(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
55089
55285
  if (!result.ok) {
@@ -55098,12 +55294,12 @@ Deletes one assessment in the environment of your key, with its versions, eviden
55098
55294
  });
55099
55295
 
55100
55296
  // src/mcp-server/tools/assessmentsGet.ts
55101
- var args17, tool$assessmentsGet;
55297
+ var args18, tool$assessmentsGet;
55102
55298
  var init_assessmentsGet2 = __esm(() => {
55103
55299
  init_assessmentsGet();
55104
55300
  init_getassessmentop();
55105
55301
  init_tools();
55106
- args17 = {
55302
+ args18 = {
55107
55303
  request: GetAssessmentRequest$zodSchema
55108
55304
  };
55109
55305
  tool$assessmentsGet = {
@@ -55118,7 +55314,7 @@ Returns the highest assessment_version, with the account's current risk. Require
55118
55314
  openWorldHint: false,
55119
55315
  readOnlyHint: true
55120
55316
  },
55121
- args: args17,
55317
+ args: args18,
55122
55318
  tool: async (client, args, ctx) => {
55123
55319
  const [result] = await assessmentsGet(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
55124
55320
  if (!result.ok) {
@@ -55147,9 +55343,9 @@ var init_assessmentquery = __esm(() => {
55147
55343
 
55148
55344
  // src/funcs/assessmentsQuery.ts
55149
55345
  function assessmentsQuery(client$, request, options) {
55150
- return new APIPromise($do17(client$, request, options));
55346
+ return new APIPromise($do18(client$, request, options));
55151
55347
  }
55152
- async function $do17(client$, request, options) {
55348
+ async function $do18(client$, request, options) {
55153
55349
  const parsed$ = safeParse2(request, (value$) => AssessmentQuery$zodSchema.parse(value$), "Input validation failed");
55154
55350
  if (!parsed$.ok) {
55155
55351
  return [parsed$, { status: "invalid" }];
@@ -55226,12 +55422,12 @@ var init_assessmentsQuery = __esm(() => {
55226
55422
  });
55227
55423
 
55228
55424
  // src/mcp-server/tools/assessmentsQuery.ts
55229
- var args18, tool$assessmentsQuery;
55425
+ var args19, tool$assessmentsQuery;
55230
55426
  var init_assessmentsQuery2 = __esm(() => {
55231
55427
  init_assessmentsQuery();
55232
55428
  init_assessmentquery();
55233
55429
  init_tools();
55234
- args18 = {
55430
+ args19 = {
55235
55431
  request: AssessmentQuery$zodSchema
55236
55432
  };
55237
55433
  tool$assessmentsQuery = {
@@ -55246,7 +55442,7 @@ History is a POST with account_id in the body so an account identifier stays out
55246
55442
  openWorldHint: false,
55247
55443
  readOnlyHint: true
55248
55444
  },
55249
- args: args18,
55445
+ args: args19,
55250
55446
  tool: async (client, args, ctx) => {
55251
55447
  const [result] = await assessmentsQuery(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
55252
55448
  if (!result.ok) {
@@ -55328,9 +55524,9 @@ var init_recordassessmentoutcomeop = __esm(() => {
55328
55524
 
55329
55525
  // src/funcs/assessmentsRecordOutcome.ts
55330
55526
  function assessmentsRecordOutcome(client$, request, options) {
55331
- return new APIPromise($do18(client$, request, options));
55527
+ return new APIPromise($do19(client$, request, options));
55332
55528
  }
55333
- async function $do18(client$, request, options) {
55529
+ async function $do19(client$, request, options) {
55334
55530
  const parsed$ = safeParse2(request, (value$) => RecordAssessmentOutcomeRequest$zodSchema.parse(value$), "Input validation failed");
55335
55531
  if (!parsed$.ok) {
55336
55532
  return [parsed$, { status: "invalid" }];
@@ -55414,12 +55610,12 @@ var init_assessmentsRecordOutcome = __esm(() => {
55414
55610
  });
55415
55611
 
55416
55612
  // src/mcp-server/tools/assessmentsRecordOutcome.ts
55417
- var args19, tool$assessmentsRecordOutcome;
55613
+ var args20, tool$assessmentsRecordOutcome;
55418
55614
  var init_assessmentsRecordOutcome2 = __esm(() => {
55419
55615
  init_assessmentsRecordOutcome();
55420
55616
  init_recordassessmentoutcomeop();
55421
55617
  init_tools();
55422
- args19 = {
55618
+ args20 = {
55423
55619
  request: RecordAssessmentOutcomeRequest$zodSchema
55424
55620
  };
55425
55621
  tool$assessmentsRecordOutcome = {
@@ -55434,7 +55630,7 @@ Records what you later learned about an assessed account: confirmed_abuse, accou
55434
55630
  openWorldHint: false,
55435
55631
  readOnlyHint: false
55436
55632
  },
55437
- args: args19,
55633
+ args: args20,
55438
55634
  tool: async (client, args, ctx) => {
55439
55635
  const [result] = await assessmentsRecordOutcome(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
55440
55636
  if (!result.ok) {
@@ -55490,9 +55686,9 @@ var init_getassessmentversionop = __esm(() => {
55490
55686
 
55491
55687
  // src/funcs/assessmentsRetrieveVersion.ts
55492
55688
  function assessmentsRetrieveVersion(client$, request, options) {
55493
- return new APIPromise($do19(client$, request, options));
55689
+ return new APIPromise($do20(client$, request, options));
55494
55690
  }
55495
- async function $do19(client$, request, options) {
55691
+ async function $do20(client$, request, options) {
55496
55692
  const parsed$ = safeParse2(request, (value$) => GetAssessmentVersionRequest$zodSchema.parse(value$), "Input validation failed");
55497
55693
  if (!parsed$.ok) {
55498
55694
  return [parsed$, { status: "invalid" }];
@@ -55582,12 +55778,12 @@ var init_assessmentsRetrieveVersion = __esm(() => {
55582
55778
  });
55583
55779
 
55584
55780
  // src/mcp-server/tools/assessmentsRetrieveVersion.ts
55585
- var args20, tool$assessmentsRetrieveVersion;
55781
+ var args21, tool$assessmentsRetrieveVersion;
55586
55782
  var init_assessmentsRetrieveVersion2 = __esm(() => {
55587
55783
  init_assessmentsRetrieveVersion();
55588
55784
  init_getassessmentversionop();
55589
55785
  init_tools();
55590
- args20 = {
55786
+ args21 = {
55591
55787
  request: GetAssessmentVersionRequest$zodSchema
55592
55788
  };
55593
55789
  tool$assessmentsRetrieveVersion = {
@@ -55602,7 +55798,7 @@ Retrieve a retained assessment version with its original decision, policy, flow
55602
55798
  openWorldHint: false,
55603
55799
  readOnlyHint: true
55604
55800
  },
55605
- args: args20,
55801
+ args: args21,
55606
55802
  tool: async (client, args, ctx) => {
55607
55803
  const [result] = await assessmentsRetrieveVersion(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
55608
55804
  if (!result.ok) {
@@ -55616,22 +55812,11 @@ Retrieve a retained assessment version with its original decision, policy, flow
55616
55812
  };
55617
55813
  });
55618
55814
 
55619
- // src/models/decision.ts
55620
- var Decision$zodSchema;
55621
- var init_decision = __esm(() => {
55622
- init_zod();
55623
- Decision$zodSchema = _enum([
55624
- "allow",
55625
- "step_up",
55626
- "review",
55627
- "block"
55628
- ]).describe("The decision of the assessment's latest stored revision: block when its stored risk.block is true, otherwise its recommendation. This is not the account's current decision or held-admission state. Combined with recommendation using AND.");
55629
- });
55630
-
55631
55815
  // src/models/assessmentsearchrequest.ts
55632
55816
  var AssessmentSearchRequest$zodSchema;
55633
55817
  var init_assessmentsearchrequest = __esm(() => {
55634
55818
  init_zod();
55819
+ init_answerrevision();
55635
55820
  init_decision();
55636
55821
  init_flow();
55637
55822
  init_recommendation();
@@ -55640,12 +55825,13 @@ var init_assessmentsearchrequest = __esm(() => {
55640
55825
  AssessmentSearchRequest$zodSchema = object({
55641
55826
  account_id: string2().optional().describe("Your own opaque identifier for the account being checked, scoped to your workspace. Use an id you mint, with no direct identifier (email, phone, name or national id) in it. '|' is accepted so an Auth0 user id such as 'auth0|64abc' passes unchanged; '@', '+', '$' and whitespace are refused by the pattern, as is an exact-shape JWT; a hex digest such as a SHA-256 is allowed, because hashing an internal id is a common pseudonymous scheme. A value such as '07700900123' or 'jane.doe.gmail.com' cannot be told apart from an opaque id. It travels in bodies, and in a URL only as the path segment of GET /v1/accounts/{account_id} and its /assessments. An assessment requested by a provider hook at pre_registration, which has no account yet, carries the server-issued account_id pre: followed by its assessment_id."),
55642
55827
  cursor: string2().optional().describe("Opaque, expiring cursor bound to this environment, operation and every filter. Keep the filters unchanged."),
55643
- decision: Decision$zodSchema.optional().describe("The decision of the assessment's latest stored revision: block when its stored risk.block is true, otherwise its recommendation. This is not the account's current decision or held-admission state. Combined with recommendation using AND."),
55828
+ decision: Decision$zodSchema.optional().describe("An assessment's own decision: block when its stored risk.block is true, otherwise its recommendation. It is not the account's decision or held-admission state."),
55644
55829
  flow: Flow$zodSchema.optional().describe("The event an assessment is made for: account_creation (a user creates an account), login (a user returns to an existing account) or purchase (a payment or a credit grant). The account's risk is reported with the decision for this flow."),
55645
55830
  from: string2(),
55646
55831
  limit: int().default(20),
55647
55832
  recommendation: Recommendation$zodSchema.optional().describe("The recommended action: allow, step_up or review. Your application applies it."),
55648
55833
  response_mode: ResponseMode$zodSchema.optional().describe("standard returns the consolidated risk response; detailed adds merged provider-neutral facts when the key has detailed scope. There is no raw mode."),
55834
+ revision: AnswerRevision$zodSchema.optional().describe("Which answer of each assessment the filters describe: latest, the latest stored revision, or first, the first answer, as served when the assessment was first answered (POST /v1/assessments/aggregate counts first answers). A cell of an aggregate drills down to POST /v1/assessments/search with the same filters, revision first and the cell's bucket as from and to."),
55649
55835
  status: Status$zodSchema.optional().describe("complete: final; nothing is still running. A lane that failed or missed its 10 s deadline stays listed in incomplete_sources, and confidence is lower. partial: a recommendation exists and at least one lane is still running or did not settle (see incomplete_sources). pending: nothing usable before the deadline; no recommendation yet, poll or wait for the webhook."),
55650
55836
  to: string2()
55651
55837
  }).describe("Search retained assessments created in [from,to), over at most 366 days. Filters use each assessment decision, rather than the current account decision. Results can change between pages. Keep the assessment version to retrieve the exact decision later. This read does not require an idempotency key.");
@@ -55653,9 +55839,9 @@ var init_assessmentsearchrequest = __esm(() => {
55653
55839
 
55654
55840
  // src/funcs/assessmentsSearch.ts
55655
55841
  function assessmentsSearch(client$, request, options) {
55656
- return new APIPromise($do20(client$, request, options));
55842
+ return new APIPromise($do21(client$, request, options));
55657
55843
  }
55658
- async function $do20(client$, request, options) {
55844
+ async function $do21(client$, request, options) {
55659
55845
  const parsed$ = safeParse2(request, (value$) => AssessmentSearchRequest$zodSchema.parse(value$), "Input validation failed");
55660
55846
  if (!parsed$.ok) {
55661
55847
  return [parsed$, { status: "invalid" }];
@@ -55732,12 +55918,12 @@ var init_assessmentsSearch = __esm(() => {
55732
55918
  });
55733
55919
 
55734
55920
  // src/mcp-server/tools/assessmentsSearch.ts
55735
- var args21, tool$assessmentsSearch;
55921
+ var args22, tool$assessmentsSearch;
55736
55922
  var init_assessmentsSearch2 = __esm(() => {
55737
55923
  init_assessmentsSearch();
55738
55924
  init_assessmentsearchrequest();
55739
55925
  init_tools();
55740
- args21 = {
55926
+ args22 = {
55741
55927
  request: AssessmentSearchRequest$zodSchema
55742
55928
  };
55743
55929
  tool$assessmentsSearch = {
@@ -55752,7 +55938,7 @@ Search retained assessments created in [from,to), over at most 366 days. Filters
55752
55938
  openWorldHint: false,
55753
55939
  readOnlyHint: true
55754
55940
  },
55755
- args: args21,
55941
+ args: args22,
55756
55942
  tool: async (client, args, ctx) => {
55757
55943
  const [result] = await assessmentsSearch(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
55758
55944
  if (!result.ok) {
@@ -55802,9 +55988,9 @@ var init_integrationrequest = __esm(() => {
55802
55988
 
55803
55989
  // src/funcs/integrationsCreate.ts
55804
55990
  function integrationsCreate(client$, request, options) {
55805
- return new APIPromise($do21(client$, request, options));
55991
+ return new APIPromise($do22(client$, request, options));
55806
55992
  }
55807
- async function $do21(client$, request, options) {
55993
+ async function $do22(client$, request, options) {
55808
55994
  const parsed$ = safeParse2(request, (value$) => IntegrationRequest$zodSchema.parse(value$), "Input validation failed");
55809
55995
  if (!parsed$.ok) {
55810
55996
  return [parsed$, { status: "invalid" }];
@@ -55868,12 +56054,12 @@ var init_integrationsCreate = __esm(() => {
55868
56054
  });
55869
56055
 
55870
56056
  // src/mcp-server/tools/integrationsCreate.ts
55871
- var args22, tool$integrationsCreate;
56057
+ var args23, tool$integrationsCreate;
55872
56058
  var init_integrationsCreate2 = __esm(() => {
55873
56059
  init_integrationsCreate();
55874
56060
  init_integrationrequest();
55875
56061
  init_tools();
55876
- args22 = {
56062
+ args23 = {
55877
56063
  request: IntegrationRequest$zodSchema
55878
56064
  };
55879
56065
  tool$integrationsCreate = {
@@ -55888,7 +56074,7 @@ Registers a WorkOS, Auth0 or Supabase integration and returns its hosted endpoin
55888
56074
  openWorldHint: false,
55889
56075
  readOnlyHint: false
55890
56076
  },
55891
- args: args22,
56077
+ args: args23,
55892
56078
  tool: async (client, args, ctx) => {
55893
56079
  const [result] = await integrationsCreate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
55894
56080
  if (!result.ok) {
@@ -55938,9 +56124,9 @@ var init_deleteintegrationop = __esm(() => {
55938
56124
 
55939
56125
  // src/funcs/integrationsDelete.ts
55940
56126
  function integrationsDelete(client$, request, options) {
55941
- return new APIPromise($do22(client$, request, options));
56127
+ return new APIPromise($do23(client$, request, options));
55942
56128
  }
55943
- async function $do22(client$, request, options) {
56129
+ async function $do23(client$, request, options) {
55944
56130
  const parsed$ = safeParse2(request, (value$) => DeleteIntegrationRequest$zodSchema.parse(value$), "Input validation failed");
55945
56131
  if (!parsed$.ok) {
55946
56132
  return [parsed$, { status: "invalid" }];
@@ -56022,12 +56208,12 @@ var init_integrationsDelete = __esm(() => {
56022
56208
  });
56023
56209
 
56024
56210
  // src/mcp-server/tools/integrationsDelete.ts
56025
- var args23, tool$integrationsDelete;
56211
+ var args24, tool$integrationsDelete;
56026
56212
  var init_integrationsDelete2 = __esm(() => {
56027
56213
  init_integrationsDelete();
56028
56214
  init_deleteintegrationop();
56029
56215
  init_tools();
56030
- args23 = {
56216
+ args24 = {
56031
56217
  request: DeleteIntegrationRequest$zodSchema
56032
56218
  };
56033
56219
  tool$integrationsDelete = {
@@ -56042,7 +56228,7 @@ Removes the integration and its secrets; its endpoint answers 404 from then on,
56042
56228
  openWorldHint: false,
56043
56229
  readOnlyHint: false
56044
56230
  },
56045
- args: args23,
56231
+ args: args24,
56046
56232
  tool: async (client, args, ctx) => {
56047
56233
  const [result] = await integrationsDelete(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
56048
56234
  if (!result.ok) {
@@ -56058,9 +56244,9 @@ Removes the integration and its secrets; its endpoint answers 404 from then on,
56058
56244
 
56059
56245
  // src/funcs/integrationsList.ts
56060
56246
  function integrationsList(client$, options) {
56061
- return new APIPromise($do23(client$, options));
56247
+ return new APIPromise($do24(client$, options));
56062
56248
  }
56063
- async function $do23(client$, options) {
56249
+ async function $do24(client$, options) {
56064
56250
  const path$ = pathToFunc("/v1/integrations")();
56065
56251
  const headers$ = new Headers(compactMap({
56066
56252
  Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
@@ -56223,9 +56409,9 @@ var init_rotateintegrationsecretop = __esm(() => {
56223
56409
 
56224
56410
  // src/funcs/integrationsRotate.ts
56225
56411
  function integrationsRotate(client$, request, options) {
56226
- return new APIPromise($do24(client$, request, options));
56412
+ return new APIPromise($do25(client$, request, options));
56227
56413
  }
56228
- async function $do24(client$, request, options) {
56414
+ async function $do25(client$, request, options) {
56229
56415
  const parsed$ = safeParse2(request, (value$) => RotateIntegrationSecretRequest$zodSchema.parse(value$), "Input validation failed");
56230
56416
  if (!parsed$.ok) {
56231
56417
  return [parsed$, { status: "invalid" }];
@@ -56295,12 +56481,12 @@ var init_integrationsRotate = __esm(() => {
56295
56481
  });
56296
56482
 
56297
56483
  // src/mcp-server/tools/integrationsRotate.ts
56298
- var args24, tool$integrationsRotate;
56484
+ var args25, tool$integrationsRotate;
56299
56485
  var init_integrationsRotate2 = __esm(() => {
56300
56486
  init_integrationsRotate();
56301
56487
  init_rotateintegrationsecretop();
56302
56488
  init_tools();
56303
- args24 = {
56489
+ args25 = {
56304
56490
  request: RotateIntegrationSecretRequest$zodSchema
56305
56491
  };
56306
56492
  tool$integrationsRotate = {
@@ -56315,7 +56501,7 @@ For Auth0, send {} and the answer's secret is the new shared secret, shown once.
56315
56501
  openWorldHint: false,
56316
56502
  readOnlyHint: false
56317
56503
  },
56318
- args: args24,
56504
+ args: args25,
56319
56505
  tool: async (client, args, ctx) => {
56320
56506
  const [result] = await integrationsRotate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
56321
56507
  if (!result.ok) {
@@ -56430,9 +56616,9 @@ var init_listkeysop = __esm(() => {
56430
56616
 
56431
56617
  // src/funcs/keysList.ts
56432
56618
  function keysList(client$, request, options) {
56433
- return new APIPromise($do25(client$, request, options));
56619
+ return new APIPromise($do26(client$, request, options));
56434
56620
  }
56435
- async function $do25(client$, request, options) {
56621
+ async function $do26(client$, request, options) {
56436
56622
  const parsed$ = safeParse2(request, (value$) => ListKeysRequest$zodSchema.parse(value$), "Input validation failed");
56437
56623
  if (!parsed$.ok) {
56438
56624
  return [parsed$, { status: "invalid" }];
@@ -56514,12 +56700,12 @@ var init_keysList = __esm(() => {
56514
56700
  });
56515
56701
 
56516
56702
  // src/mcp-server/tools/keysList.ts
56517
- var args25, tool$keysList;
56703
+ var args26, tool$keysList;
56518
56704
  var init_keysList2 = __esm(() => {
56519
56705
  init_keysList();
56520
56706
  init_listkeysop();
56521
56707
  init_tools();
56522
- args25 = {
56708
+ args26 = {
56523
56709
  request: ListKeysRequest$zodSchema
56524
56710
  };
56525
56711
  tool$keysList = {
@@ -56534,7 +56720,7 @@ Lists the keys of the signing key's environment, newest first, at most 200, revo
56534
56720
  openWorldHint: false,
56535
56721
  readOnlyHint: true
56536
56722
  },
56537
- args: args25,
56723
+ args: args26,
56538
56724
  tool: async (client, args, ctx) => {
56539
56725
  const [result] = await keysList(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
56540
56726
  if (!result.ok) {
@@ -56588,9 +56774,9 @@ var init_revokekeyop = __esm(() => {
56588
56774
 
56589
56775
  // src/funcs/keysRevoke.ts
56590
56776
  function keysRevoke(client$, request, options) {
56591
- return new APIPromise($do26(client$, request, options));
56777
+ return new APIPromise($do27(client$, request, options));
56592
56778
  }
56593
- async function $do26(client$, request, options) {
56779
+ async function $do27(client$, request, options) {
56594
56780
  const parsed$ = safeParse2(request, (value$) => RevokeKeyRequest$zodSchema.parse(value$), "Input validation failed");
56595
56781
  if (!parsed$.ok) {
56596
56782
  return [parsed$, { status: "invalid" }];
@@ -56676,12 +56862,12 @@ var init_keysRevoke = __esm(() => {
56676
56862
  });
56677
56863
 
56678
56864
  // src/mcp-server/tools/keysRevoke.ts
56679
- var args26, tool$keysRevoke;
56865
+ var args27, tool$keysRevoke;
56680
56866
  var init_keysRevoke2 = __esm(() => {
56681
56867
  init_keysRevoke();
56682
56868
  init_revokekeyop();
56683
56869
  init_tools();
56684
- args26 = {
56870
+ args27 = {
56685
56871
  request: RevokeKeyRequest$zodSchema
56686
56872
  };
56687
56873
  tool$keysRevoke = {
@@ -56696,7 +56882,7 @@ Revokes a key of the signing key's environment at once: its next request answers
56696
56882
  openWorldHint: false,
56697
56883
  readOnlyHint: false
56698
56884
  },
56699
- args: args26,
56885
+ args: args27,
56700
56886
  tool: async (client, args, ctx) => {
56701
56887
  const [result] = await keysRevoke(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
56702
56888
  if (!result.ok) {
@@ -56807,9 +56993,9 @@ var init_createlistentryop = __esm(() => {
56807
56993
 
56808
56994
  // src/funcs/listsCreate.ts
56809
56995
  function listsCreate(client$, request, options) {
56810
- return new APIPromise($do27(client$, request, options));
56996
+ return new APIPromise($do28(client$, request, options));
56811
56997
  }
56812
- async function $do27(client$, request, options) {
56998
+ async function $do28(client$, request, options) {
56813
56999
  const parsed$ = safeParse2(request, (value$) => CreateListEntryRequest$zodSchema.parse(value$), "Input validation failed");
56814
57000
  if (!parsed$.ok) {
56815
57001
  return [parsed$, { status: "invalid" }];
@@ -56896,12 +57082,12 @@ var init_listsCreate = __esm(() => {
56896
57082
  });
56897
57083
 
56898
57084
  // src/mcp-server/tools/listsCreate.ts
56899
- var args27, tool$listsCreate;
57085
+ var args28, tool$listsCreate;
56900
57086
  var init_listsCreate2 = __esm(() => {
56901
57087
  init_listsCreate();
56902
57088
  init_createlistentryop();
56903
57089
  init_tools();
56904
- args27 = {
57090
+ args28 = {
56905
57091
  request: CreateListEntryRequest$zodSchema
56906
57092
  };
56907
57093
  tool$listsCreate = {
@@ -56916,7 +57102,7 @@ Adds an exact email (kind email) or an email domain (kind email_domain) to the s
56916
57102
  openWorldHint: false,
56917
57103
  readOnlyHint: false
56918
57104
  },
56919
- args: args27,
57105
+ args: args28,
56920
57106
  tool: async (client, args, ctx) => {
56921
57107
  const [result] = await listsCreate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
56922
57108
  if (!result.ok) {
@@ -56969,9 +57155,9 @@ var init_deletelistentryop = __esm(() => {
56969
57155
 
56970
57156
  // src/funcs/listsDelete.ts
56971
57157
  function listsDelete(client$, request, options) {
56972
- return new APIPromise($do28(client$, request, options));
57158
+ return new APIPromise($do29(client$, request, options));
56973
57159
  }
56974
- async function $do28(client$, request, options) {
57160
+ async function $do29(client$, request, options) {
56975
57161
  const parsed$ = safeParse2(request, (value$) => DeleteListEntryRequest$zodSchema.parse(value$), "Input validation failed");
56976
57162
  if (!parsed$.ok) {
56977
57163
  return [parsed$, { status: "invalid" }];
@@ -57061,12 +57247,12 @@ var init_listsDelete = __esm(() => {
57061
57247
  });
57062
57248
 
57063
57249
  // src/mcp-server/tools/listsDelete.ts
57064
- var args28, tool$listsDelete;
57250
+ var args29, tool$listsDelete;
57065
57251
  var init_listsDelete2 = __esm(() => {
57066
57252
  init_listsDelete();
57067
57253
  init_deletelistentryop();
57068
57254
  init_tools();
57069
- args28 = {
57255
+ args29 = {
57070
57256
  request: DeleteListEntryRequest$zodSchema
57071
57257
  };
57072
57258
  tool$listsDelete = {
@@ -57081,7 +57267,7 @@ Removes an entry from the signing key's environment's list and re-decides the ac
57081
57267
  openWorldHint: false,
57082
57268
  readOnlyHint: false
57083
57269
  },
57084
- args: args28,
57270
+ args: args29,
57085
57271
  tool: async (client, args, ctx) => {
57086
57272
  const [result] = await listsDelete(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
57087
57273
  if (!result.ok) {
@@ -57146,9 +57332,9 @@ var init_listlistentriesop = __esm(() => {
57146
57332
 
57147
57333
  // src/funcs/listsList.ts
57148
57334
  function listsList(client$, request, options) {
57149
- return new APIPromise($do29(client$, request, options));
57335
+ return new APIPromise($do30(client$, request, options));
57150
57336
  }
57151
- async function $do29(client$, request, options) {
57337
+ async function $do30(client$, request, options) {
57152
57338
  const parsed$ = safeParse2(request, (value$) => ListListEntriesRequest$zodSchema.parse(value$), "Input validation failed");
57153
57339
  if (!parsed$.ok) {
57154
57340
  return [parsed$, { status: "invalid" }];
@@ -57234,12 +57420,12 @@ var init_listsList = __esm(() => {
57234
57420
  });
57235
57421
 
57236
57422
  // src/mcp-server/tools/listsList.ts
57237
- var args29, tool$listsList;
57423
+ var args30, tool$listsList;
57238
57424
  var init_listsList2 = __esm(() => {
57239
57425
  init_listsList();
57240
57426
  init_listlistentriesop();
57241
57427
  init_tools();
57242
- args29 = {
57428
+ args30 = {
57243
57429
  request: ListListEntriesRequest$zodSchema
57244
57430
  };
57245
57431
  tool$listsList = {
@@ -57254,7 +57440,7 @@ Lists every entry of the signing key's environment's list, newest first: each an
57254
57440
  openWorldHint: false,
57255
57441
  readOnlyHint: true
57256
57442
  },
57257
- args: args29,
57443
+ args: args30,
57258
57444
  tool: async (client, args, ctx) => {
57259
57445
  const [result] = await listsList(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
57260
57446
  if (!result.ok) {
@@ -57324,9 +57510,9 @@ var init_listrequestdiagnosticsop = __esm(() => {
57324
57510
 
57325
57511
  // src/funcs/requestsList.ts
57326
57512
  function requestsList(client$, request, options) {
57327
- return new APIPromise($do30(client$, request, options));
57513
+ return new APIPromise($do31(client$, request, options));
57328
57514
  }
57329
- async function $do30(client$, request, options) {
57515
+ async function $do31(client$, request, options) {
57330
57516
  const parsed$ = safeParse2(request, (value$) => ListRequestDiagnosticsRequest$zodSchema.parse(value$), "Input validation failed");
57331
57517
  if (!parsed$.ok) {
57332
57518
  return [parsed$, { status: "invalid" }];
@@ -57412,12 +57598,12 @@ var init_requestsList = __esm(() => {
57412
57598
  });
57413
57599
 
57414
57600
  // src/mcp-server/tools/requestsList.ts
57415
- var args30, tool$requestsList;
57601
+ var args31, tool$requestsList;
57416
57602
  var init_requestsList2 = __esm(() => {
57417
57603
  init_requestsList();
57418
57604
  init_listrequestdiagnosticsop();
57419
57605
  init_tools();
57420
- args30 = {
57606
+ args31 = {
57421
57607
  request: ListRequestDiagnosticsRequest$zodSchema
57422
57608
  };
57423
57609
  tool$requestsList = {
@@ -57432,7 +57618,7 @@ Search authenticated request attempts by time, route, status or request correlat
57432
57618
  openWorldHint: false,
57433
57619
  readOnlyHint: true
57434
57620
  },
57435
- args: args30,
57621
+ args: args31,
57436
57622
  tool: async (client, args, ctx) => {
57437
57623
  const [result] = await requestsList(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
57438
57624
  if (!result.ok) {
@@ -57582,9 +57768,9 @@ var init_getsettingsop = __esm(() => {
57582
57768
 
57583
57769
  // src/funcs/settingsGet.ts
57584
57770
  function settingsGet(client$, request, options) {
57585
- return new APIPromise($do31(client$, request, options));
57771
+ return new APIPromise($do32(client$, request, options));
57586
57772
  }
57587
- async function $do31(client$, request, options) {
57773
+ async function $do32(client$, request, options) {
57588
57774
  const parsed$ = safeParse2(request, (value$) => GetSettingsRequest$zodSchema.parse(value$), "Input validation failed");
57589
57775
  if (!parsed$.ok) {
57590
57776
  return [parsed$, { status: "invalid" }];
@@ -57670,12 +57856,12 @@ var init_settingsGet = __esm(() => {
57670
57856
  });
57671
57857
 
57672
57858
  // src/mcp-server/tools/settingsGet.ts
57673
- var args31, tool$settingsGet;
57859
+ var args32, tool$settingsGet;
57674
57860
  var init_settingsGet2 = __esm(() => {
57675
57861
  init_settingsGet();
57676
57862
  init_getsettingsop();
57677
57863
  init_tools();
57678
- args31 = {
57864
+ args32 = {
57679
57865
  request: GetSettingsRequest$zodSchema
57680
57866
  };
57681
57867
  tool$settingsGet = {
@@ -57690,7 +57876,7 @@ Reads the settings of the signing key's environment: retention in days; per flow
57690
57876
  openWorldHint: false,
57691
57877
  readOnlyHint: true
57692
57878
  },
57693
- args: args31,
57879
+ args: args32,
57694
57880
  tool: async (client, args, ctx) => {
57695
57881
  const [result] = await settingsGet(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
57696
57882
  if (!result.ok) {
@@ -57793,9 +57979,9 @@ var init_updatesettingsop = __esm(() => {
57793
57979
 
57794
57980
  // src/funcs/settingsUpdate.ts
57795
57981
  function settingsUpdate(client$, request, options) {
57796
- return new APIPromise($do32(client$, request, options));
57982
+ return new APIPromise($do33(client$, request, options));
57797
57983
  }
57798
- async function $do32(client$, request, options) {
57984
+ async function $do33(client$, request, options) {
57799
57985
  const parsed$ = safeParse2(request, (value$) => UpdateSettingsRequest$zodSchema.parse(value$), "Input validation failed");
57800
57986
  if (!parsed$.ok) {
57801
57987
  return [parsed$, { status: "invalid" }];
@@ -57882,12 +58068,12 @@ var init_settingsUpdate = __esm(() => {
57882
58068
  });
57883
58069
 
57884
58070
  // src/mcp-server/tools/settingsUpdate.ts
57885
- var args32, tool$settingsUpdate;
58071
+ var args33, tool$settingsUpdate;
57886
58072
  var init_settingsUpdate2 = __esm(() => {
57887
58073
  init_settingsUpdate();
57888
58074
  init_updatesettingsop();
57889
58075
  init_tools();
57890
- args32 = {
58076
+ args33 = {
57891
58077
  request: UpdateSettingsRequest$zodSchema
57892
58078
  };
57893
58079
  tool$settingsUpdate = {
@@ -57902,7 +58088,7 @@ Changes only what the body names, in one transaction: retention_days, refused_so
57902
58088
  openWorldHint: false,
57903
58089
  readOnlyHint: false
57904
58090
  },
57905
- args: args32,
58091
+ args: args33,
57906
58092
  tool: async (client, args, ctx) => {
57907
58093
  const [result] = await settingsUpdate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
57908
58094
  if (!result.ok) {
@@ -57929,9 +58115,9 @@ var init_webhookendpointrequest = __esm(() => {
57929
58115
 
57930
58116
  // src/funcs/webhookEndpointsCreate.ts
57931
58117
  function webhookEndpointsCreate(client$, request, options) {
57932
- return new APIPromise($do33(client$, request, options));
58118
+ return new APIPromise($do34(client$, request, options));
57933
58119
  }
57934
- async function $do33(client$, request, options) {
58120
+ async function $do34(client$, request, options) {
57935
58121
  const parsed$ = safeParse2(request, (value$) => WebhookEndpointRequest$zodSchema.parse(value$), "Input validation failed");
57936
58122
  if (!parsed$.ok) {
57937
58123
  return [parsed$, { status: "invalid" }];
@@ -57995,12 +58181,12 @@ var init_webhookEndpointsCreate = __esm(() => {
57995
58181
  });
57996
58182
 
57997
58183
  // src/mcp-server/tools/webhookEndpointsCreate.ts
57998
- var args33, tool$webhookEndpointsCreate;
58184
+ var args34, tool$webhookEndpointsCreate;
57999
58185
  var init_webhookEndpointsCreate2 = __esm(() => {
58000
58186
  init_webhookEndpointsCreate();
58001
58187
  init_webhookendpointrequest();
58002
58188
  init_tools();
58003
- args33 = {
58189
+ args34 = {
58004
58190
  request: WebhookEndpointRequest$zodSchema
58005
58191
  };
58006
58192
  tool$webhookEndpointsCreate = {
@@ -58015,7 +58201,7 @@ Registers a webhook endpoint and returns it with its first signing secret, shown
58015
58201
  openWorldHint: false,
58016
58202
  readOnlyHint: false
58017
58203
  },
58018
- args: args33,
58204
+ args: args34,
58019
58205
  tool: async (client, args, ctx) => {
58020
58206
  const [result] = await webhookEndpointsCreate(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
58021
58207
  if (!result.ok) {
@@ -58065,9 +58251,9 @@ var init_deletewebhookendpointop = __esm(() => {
58065
58251
 
58066
58252
  // src/funcs/webhookEndpointsDelete.ts
58067
58253
  function webhookEndpointsDelete(client$, request, options) {
58068
- return new APIPromise($do34(client$, request, options));
58254
+ return new APIPromise($do35(client$, request, options));
58069
58255
  }
58070
- async function $do34(client$, request, options) {
58256
+ async function $do35(client$, request, options) {
58071
58257
  const parsed$ = safeParse2(request, (value$) => DeleteWebhookEndpointRequest$zodSchema.parse(value$), "Input validation failed");
58072
58258
  if (!parsed$.ok) {
58073
58259
  return [parsed$, { status: "invalid" }];
@@ -58149,12 +58335,12 @@ var init_webhookEndpointsDelete = __esm(() => {
58149
58335
  });
58150
58336
 
58151
58337
  // src/mcp-server/tools/webhookEndpointsDelete.ts
58152
- var args34, tool$webhookEndpointsDelete;
58338
+ var args35, tool$webhookEndpointsDelete;
58153
58339
  var init_webhookEndpointsDelete2 = __esm(() => {
58154
58340
  init_webhookEndpointsDelete();
58155
58341
  init_deletewebhookendpointop();
58156
58342
  init_tools();
58157
- args34 = {
58343
+ args35 = {
58158
58344
  request: DeleteWebhookEndpointRequest$zodSchema
58159
58345
  };
58160
58346
  tool$webhookEndpointsDelete = {
@@ -58169,7 +58355,7 @@ Deletes the endpoint and its signing keys. Deliveries still queued for it are dr
58169
58355
  openWorldHint: false,
58170
58356
  readOnlyHint: false
58171
58357
  },
58172
- args: args34,
58358
+ args: args35,
58173
58359
  tool: async (client, args, ctx) => {
58174
58360
  const [result] = await webhookEndpointsDelete(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
58175
58361
  if (!result.ok) {
@@ -58185,9 +58371,9 @@ Deletes the endpoint and its signing keys. Deliveries still queued for it are dr
58185
58371
 
58186
58372
  // src/funcs/webhookEndpointsList.ts
58187
58373
  function webhookEndpointsList(client$, options) {
58188
- return new APIPromise($do35(client$, options));
58374
+ return new APIPromise($do36(client$, options));
58189
58375
  }
58190
- async function $do35(client$, options) {
58376
+ async function $do36(client$, options) {
58191
58377
  const path$ = pathToFunc("/v1/webhooks")();
58192
58378
  const headers$ = new Headers(compactMap({
58193
58379
  Accept: options?.acceptHeaderOverride || "application/json;q=1, application/problem+json;q=0"
@@ -58379,9 +58565,9 @@ var init_listwebhookdeliveriesop = __esm(() => {
58379
58565
 
58380
58566
  // src/funcs/webhookEndpointsListDeliveries.ts
58381
58567
  function webhookEndpointsListDeliveries(client$, request, options) {
58382
- return new APIPromise($do36(client$, request, options));
58568
+ return new APIPromise($do37(client$, request, options));
58383
58569
  }
58384
- async function $do36(client$, request, options) {
58570
+ async function $do37(client$, request, options) {
58385
58571
  const parsed$ = safeParse2(request, (value$) => ListWebhookDeliveriesRequest$zodSchema.parse(value$), "Input validation failed");
58386
58572
  if (!parsed$.ok) {
58387
58573
  return [parsed$, { status: "invalid" }];
@@ -58468,12 +58654,12 @@ var init_webhookEndpointsListDeliveries = __esm(() => {
58468
58654
  });
58469
58655
 
58470
58656
  // src/mcp-server/tools/webhookEndpointsListDeliveries.ts
58471
- var args35, tool$webhookEndpointsListDeliveries;
58657
+ var args36, tool$webhookEndpointsListDeliveries;
58472
58658
  var init_webhookEndpointsListDeliveries2 = __esm(() => {
58473
58659
  init_webhookEndpointsListDeliveries();
58474
58660
  init_listwebhookdeliveriesop();
58475
58661
  init_tools();
58476
- args35 = {
58662
+ args36 = {
58477
58663
  request: ListWebhookDeliveriesRequest$zodSchema
58478
58664
  };
58479
58665
  tool$webhookEndpointsListDeliveries = {
@@ -58488,7 +58674,7 @@ Every POST the endpoint received, newest first: the event id and type, which att
58488
58674
  openWorldHint: false,
58489
58675
  readOnlyHint: true
58490
58676
  },
58491
- args: args35,
58677
+ args: args36,
58492
58678
  tool: async (client, args, ctx) => {
58493
58679
  const [result] = await webhookEndpointsListDeliveries(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
58494
58680
  if (!result.ok) {
@@ -58562,9 +58748,9 @@ var init_replaywebhookdeliveryop = __esm(() => {
58562
58748
 
58563
58749
  // src/funcs/webhookEndpointsReplayDelivery.ts
58564
58750
  function webhookEndpointsReplayDelivery(client$, request, options) {
58565
- return new APIPromise($do37(client$, request, options));
58751
+ return new APIPromise($do38(client$, request, options));
58566
58752
  }
58567
- async function $do37(client$, request, options) {
58753
+ async function $do38(client$, request, options) {
58568
58754
  const parsed$ = safeParse2(request, (value$) => ReplayWebhookDeliveryRequest$zodSchema.parse(value$), "Input validation failed");
58569
58755
  if (!parsed$.ok) {
58570
58756
  return [parsed$, { status: "invalid" }];
@@ -58638,12 +58824,12 @@ var init_webhookEndpointsReplayDelivery = __esm(() => {
58638
58824
  });
58639
58825
 
58640
58826
  // src/mcp-server/tools/webhookEndpointsReplayDelivery.ts
58641
- var args36, tool$webhookEndpointsReplayDelivery;
58827
+ var args37, tool$webhookEndpointsReplayDelivery;
58642
58828
  var init_webhookEndpointsReplayDelivery2 = __esm(() => {
58643
58829
  init_webhookEndpointsReplayDelivery();
58644
58830
  init_replaywebhookdeliveryop();
58645
58831
  init_tools();
58646
- args36 = {
58832
+ args37 = {
58647
58833
  request: ReplayWebhookDeliveryRequest$zodSchema
58648
58834
  };
58649
58835
  tool$webhookEndpointsReplayDelivery = {
@@ -58658,7 +58844,7 @@ Queues the event for the endpoint again: the same event id and body it received,
58658
58844
  openWorldHint: false,
58659
58845
  readOnlyHint: false
58660
58846
  },
58661
- args: args36,
58847
+ args: args37,
58662
58848
  tool: async (client, args, ctx) => {
58663
58849
  const [result] = await webhookEndpointsReplayDelivery(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
58664
58850
  if (!result.ok) {
@@ -58744,9 +58930,9 @@ var init_rotatewebhooksigningkeyop = __esm(() => {
58744
58930
 
58745
58931
  // src/funcs/webhookEndpointsRotateSigningKey.ts
58746
58932
  function webhookEndpointsRotateSigningKey(client$, request, options) {
58747
- return new APIPromise($do38(client$, request, options));
58933
+ return new APIPromise($do39(client$, request, options));
58748
58934
  }
58749
- async function $do38(client$, request, options) {
58935
+ async function $do39(client$, request, options) {
58750
58936
  const parsed$ = safeParse2(request, (value$) => RotateWebhookSigningKeyRequest$zodSchema.parse(value$), "Input validation failed");
58751
58937
  if (!parsed$.ok) {
58752
58938
  return [parsed$, { status: "invalid" }];
@@ -58816,12 +59002,12 @@ var init_webhookEndpointsRotateSigningKey = __esm(() => {
58816
59002
  });
58817
59003
 
58818
59004
  // src/mcp-server/tools/webhookEndpointsRotateSigningKey.ts
58819
- var args37, tool$webhookEndpointsRotateSigningKey;
59005
+ var args38, tool$webhookEndpointsRotateSigningKey;
58820
59006
  var init_webhookEndpointsRotateSigningKey2 = __esm(() => {
58821
59007
  init_webhookEndpointsRotateSigningKey();
58822
59008
  init_rotatewebhooksigningkeyop();
58823
59009
  init_tools();
58824
- args37 = {
59010
+ args38 = {
58825
59011
  request: RotateWebhookSigningKeyRequest$zodSchema
58826
59012
  };
58827
59013
  tool$webhookEndpointsRotateSigningKey = {
@@ -58836,7 +59022,7 @@ Issues a new signing key for the endpoint and returns its secret once. Every del
58836
59022
  openWorldHint: false,
58837
59023
  readOnlyHint: false
58838
59024
  },
58839
- args: args37,
59025
+ args: args38,
58840
59026
  tool: async (client, args, ctx) => {
58841
59027
  const [result] = await webhookEndpointsRotateSigningKey(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
58842
59028
  if (!result.ok) {
@@ -58937,9 +59123,9 @@ var init_sendwebhooktesteventop = __esm(() => {
58937
59123
 
58938
59124
  // src/funcs/webhookEndpointsSendTestEvent.ts
58939
59125
  function webhookEndpointsSendTestEvent(client$, request, options) {
58940
- return new APIPromise($do39(client$, request, options));
59126
+ return new APIPromise($do40(client$, request, options));
58941
59127
  }
58942
- async function $do39(client$, request, options) {
59128
+ async function $do40(client$, request, options) {
58943
59129
  const parsed$ = safeParse2(request, (value$) => SendWebhookTestEventRequest$zodSchema.parse(value$), "Input validation failed");
58944
59130
  if (!parsed$.ok) {
58945
59131
  return [parsed$, { status: "invalid" }];
@@ -59009,12 +59195,12 @@ var init_webhookEndpointsSendTestEvent = __esm(() => {
59009
59195
  });
59010
59196
 
59011
59197
  // src/mcp-server/tools/webhookEndpointsSendTestEvent.ts
59012
- var args38, tool$webhookEndpointsSendTestEvent;
59198
+ var args39, tool$webhookEndpointsSendTestEvent;
59013
59199
  var init_webhookEndpointsSendTestEvent2 = __esm(() => {
59014
59200
  init_webhookEndpointsSendTestEvent();
59015
59201
  init_sendwebhooktesteventop();
59016
59202
  init_tools();
59017
- args38 = {
59203
+ args39 = {
59018
59204
  request: SendWebhookTestEventRequest$zodSchema
59019
59205
  };
59020
59206
  tool$webhookEndpointsSendTestEvent = {
@@ -59029,7 +59215,7 @@ endpoint.verification sends a signed challenge now and answers whether the endpo
59029
59215
  openWorldHint: false,
59030
59216
  readOnlyHint: false
59031
59217
  },
59032
- args: args38,
59218
+ args: args39,
59033
59219
  tool: async (client, args, ctx) => {
59034
59220
  const [result] = await webhookEndpointsSendTestEvent(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
59035
59221
  if (!result.ok) {
@@ -59047,7 +59233,7 @@ endpoint.verification sends a signed challenge now and answers whether the endpo
59047
59233
  function createMCPServer(deps) {
59048
59234
  const server = new McpServer({
59049
59235
  name: "NoResponse",
59050
- version: "0.6.13"
59236
+ version: "0.6.14"
59051
59237
  });
59052
59238
  const getClient = deps.getSDK || (() => new NoResponseCore({
59053
59239
  security: deps.security,
@@ -59071,6 +59257,7 @@ function createMCPServer(deps) {
59071
59257
  tool(tool$assessmentsDelete);
59072
59258
  tool(tool$assessmentsRecordOutcome);
59073
59259
  tool(tool$assessmentsQuery);
59260
+ tool(tool$assessmentsAggregate);
59074
59261
  tool(tool$assessmentsSearch);
59075
59262
  tool(tool$assessmentsRetrieveVersion);
59076
59263
  tool(tool$assessmentsBindAccount);
@@ -59130,6 +59317,7 @@ var init_server = __esm(() => {
59130
59317
  init_accountsRecordOutcome2();
59131
59318
  init_accountsRetireCredential2();
59132
59319
  init_accountsRetrieveDecision2();
59320
+ init_assessmentsAggregate2();
59133
59321
  init_assessmentsBindAccount2();
59134
59322
  init_assessmentsCreate2();
59135
59323
  init_assessmentsDelete2();
@@ -59192,6 +59380,12 @@ Records what you later learned about an assessed account: confirmed_abuse, accou
59192
59380
  description: `Page through one account's unexpired assessments.
59193
59381
 
59194
59382
  History is a POST with account_id in the body so an account identifier stays out of URLs and access logs. Requires the history scope. Read-only and safe to retry. Newest first, each at its latest assessment_version. An account with no assessments answers 200 with empty items. The cursor is opaque and bound to your workspace and the account; a tampered or expired cursor answers 400 invalid_cursor. response_mode=detailed needs the detailed scope. Each item's identifiers holds the identifiers its assessment was sent, exactly as received.`
59383
+ },
59384
+ {
59385
+ name: "aggregate_assessments",
59386
+ description: `Count assessments by time, decision and reason
59387
+
59388
+ Count this environment's assessments created in [from,to) by hour, day or week, grouped by up to two of decision, flow, recommendation, band, reason, lane, country, asn and list_match. Each assessment counts once, by its first answer; late results do not count it again and appear in late_flips. Optional metrics add a score histogram per flow and late account decision changes. from and to start a bucket and cover at most 366 days (31 for hour buckets) inside the retention period. The filters are search's and describe the first answer: send them to search with revision first to list a cell's assessments. Counts hold no identifier, stay when an assessment or account is deleted, and report reasons by code and impact band. No Idempotency-Key.`
59195
59389
  },
59196
59390
  {
59197
59391
  name: "search_assessments",
@@ -67896,7 +68090,7 @@ var routes = buildRouteMap({
67896
68090
  var app = buildApplication(routes, {
67897
68091
  name: "mcp",
67898
68092
  versionInfo: {
67899
- currentVersion: "0.6.13"
68093
+ currentVersion: "0.6.14"
67900
68094
  }
67901
68095
  });
67902
68096
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -67904,5 +68098,5 @@ export {
67904
68098
  app
67905
68099
  };
67906
68100
 
67907
- //# debugId=C65D8B95DD85934464756E2164756E21
68101
+ //# debugId=FF0E38F80AA6CB4764756E2164756E21
67908
68102
  //# sourceMappingURL=mcp-server.js.map