@kortexya/reasoninglayer 1.19.0 → 1.20.0

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/dist/index.d.ts CHANGED
@@ -109,7 +109,7 @@ type JsonValue$1 = string | number | boolean | null | JsonValue$1[] | object;
109
109
  * This is the single source of truth for the version constant.
110
110
  * The `scripts/release.sh` script updates this value alongside `package.json`.
111
111
  */
112
- declare const SDK_VERSION = "1.19.0";
112
+ declare const SDK_VERSION = "1.20.0";
113
113
  /**
114
114
  * Authentication mode for the SDK.
115
115
  *
@@ -33177,6 +33177,28 @@ declare class WebSocketClient {
33177
33177
  * Reason why an entity requires human review.
33178
33178
  */
33179
33179
  type ReviewReason = 'ambiguous_sort' | 'low_confidence' | 'multiple_candidates' | 'unknown_sort' | 'conflicting_features' | 'missing_required_features' | 'manual_request';
33180
+ /**
33181
+ * Filters and pagination for `GET /api/v1/reviews/pending`.
33182
+ *
33183
+ * @remarks
33184
+ * Every field is optional; omit the argument entirely to list the first page
33185
+ * of every pending review.
33186
+ *
33187
+ * There is deliberately no `tenantId` field. The route accepts a `tenant_id`
33188
+ * query parameter for wire-compatibility but ignores it: the tenant is always
33189
+ * the authenticated principal's, taken from the `X-Tenant-Id` header the SDK
33190
+ * sends on every request. Trusting the query parameter was a cross-tenant IDOR.
33191
+ */
33192
+ interface ListPendingReviewsOptions {
33193
+ /** Return only reviews whose entity carries this sort name. */
33194
+ sort?: string;
33195
+ /** Return only reviews raised for this reason. */
33196
+ reason?: ReviewReason;
33197
+ /** Zero-indexed page number. Defaults to 0 server-side. */
33198
+ page?: number;
33199
+ /** Entries per page. Defaults to 50 server-side. */
33200
+ pageSize?: number;
33201
+ }
33180
33202
  /**
33181
33203
  * How to resolve feature conflicts when merging an entity with an existing term.
33182
33204
  */
@@ -33352,6 +33374,7 @@ type reviews_BulkMergeRequest = BulkMergeRequest;
33352
33374
  type reviews_BulkRejectRequest = BulkRejectRequest;
33353
33375
  type reviews_ConflictResolution = ConflictResolution;
33354
33376
  type reviews_CorrectEntityRequest = CorrectEntityRequest;
33377
+ type reviews_ListPendingReviewsOptions = ListPendingReviewsOptions;
33355
33378
  type reviews_MergeEntityRequest = MergeEntityRequest;
33356
33379
  type reviews_ReExtractRequest = ReExtractRequest;
33357
33380
  type reviews_RejectEntityRequest = RejectEntityRequest;
@@ -33359,7 +33382,7 @@ type reviews_ReviewCandidateMatchDto = ReviewCandidateMatchDto;
33359
33382
  type reviews_ReviewReason = ReviewReason;
33360
33383
  type reviews_SortSuggestionDto = SortSuggestionDto;
33361
33384
  declare namespace reviews {
33362
- export type { reviews_AddPendingReviewRequest as AddPendingReviewRequest, reviews_ApproveEntityRequest as ApproveEntityRequest, reviews_BulkApproveRequest as BulkApproveRequest, reviews_BulkMergeRequest as BulkMergeRequest, reviews_BulkRejectRequest as BulkRejectRequest, reviews_ConflictResolution as ConflictResolution, reviews_CorrectEntityRequest as CorrectEntityRequest, reviews_MergeEntityRequest as MergeEntityRequest, PendingReviewDto$1 as PendingReviewDto, reviews_ReExtractRequest as ReExtractRequest, reviews_RejectEntityRequest as RejectEntityRequest, reviews_ReviewCandidateMatchDto as ReviewCandidateMatchDto, reviews_ReviewReason as ReviewReason, reviews_SortSuggestionDto as SortSuggestionDto };
33385
+ export type { reviews_AddPendingReviewRequest as AddPendingReviewRequest, reviews_ApproveEntityRequest as ApproveEntityRequest, reviews_BulkApproveRequest as BulkApproveRequest, reviews_BulkMergeRequest as BulkMergeRequest, reviews_BulkRejectRequest as BulkRejectRequest, reviews_ConflictResolution as ConflictResolution, reviews_CorrectEntityRequest as CorrectEntityRequest, reviews_ListPendingReviewsOptions as ListPendingReviewsOptions, reviews_MergeEntityRequest as MergeEntityRequest, PendingReviewDto$1 as PendingReviewDto, reviews_ReExtractRequest as ReExtractRequest, reviews_RejectEntityRequest as RejectEntityRequest, reviews_ReviewCandidateMatchDto as ReviewCandidateMatchDto, reviews_ReviewReason as ReviewReason, reviews_SortSuggestionDto as SortSuggestionDto };
33363
33386
  }
33364
33387
 
33365
33388
  /**
@@ -43403,7 +43426,30 @@ declare class Reviews<SecurityDataType = unknown> {
43403
43426
  * @request GET:/api/v1/reviews/pending
43404
43427
  * @secure
43405
43428
  */
43406
- listPendingReviews: (params?: RequestParams) => Promise<HttpResponse<ListPendingReviewsResponse, void>>;
43429
+ listPendingReviews: (query?: {
43430
+ /**
43431
+ * Page number (0-indexed)
43432
+ * @min 0
43433
+ */
43434
+ page?: number;
43435
+ /**
43436
+ * Page size (default: 50)
43437
+ * @min 0
43438
+ */
43439
+ page_size?: number;
43440
+ /** Filter by review reason */
43441
+ reason?: null | ReviewReason$1;
43442
+ /** Filter by specific sort */
43443
+ sort?: string | null;
43444
+ /**
43445
+ * Filter by tenant ID. Optional and ignored: the tenant is always the
43446
+ * authenticated principal's, resolved from the `X-Tenant-Id` header (the
43447
+ * app-wide header-trust auth model). Kept for wire-compatibility with
43448
+ * clients that still send it.
43449
+ * @format uuid
43450
+ */
43451
+ tenant_id?: string | null;
43452
+ }, params?: RequestParams) => Promise<HttpResponse<ListPendingReviewsResponse, void>>;
43407
43453
  /**
43408
43454
  * @description POST /api/v1/reviews/merge Merges the entity's features into an existing term.
43409
43455
  *
@@ -43501,22 +43547,38 @@ declare class ReviewsClient {
43501
43547
  */
43502
43548
  mergeEntity(request: MergeEntityRequest): Promise<unknown>;
43503
43549
  /**
43504
- * List all pending reviews for the authenticated tenant.
43550
+ * List pending reviews for the authenticated tenant.
43505
43551
  *
43552
+ * @param options - Optional filters and pagination. Omit to list the first
43553
+ * page of every pending review.
43506
43554
  * @returns List of pending review entries.
43507
43555
  * @throws {ApiError} If the request fails.
43508
43556
  *
43509
43557
  * @remarks
43510
- * `GET /api/v1/reviews/pending` no longer accepts a `tenant_id` query parameter:
43511
- * the tenant is taken from the authenticated principal (the `X-Tenant-Id` header the
43512
- * SDK already sends on every request), never from the caller.
43558
+ * The tenant is taken from the authenticated principal (the `X-Tenant-Id`
43559
+ * header the SDK sends on every request), never from the caller. The route
43560
+ * still accepts a `tenant_id` query parameter for wire-compatibility but
43561
+ * ignores it, so {@link ListPendingReviewsOptions} does not expose one.
43513
43562
  *
43514
- * @example
43563
+ * Filters are sent as query parameters in wire `snake_case`; any option left
43564
+ * `undefined` is omitted from the query string entirely, letting the backend
43565
+ * apply its own default.
43566
+ *
43567
+ * @example List everything pending
43515
43568
  * ```typescript
43516
43569
  * const pending = await client.reviews.listPending();
43517
43570
  * ```
43571
+ *
43572
+ * @example Second page of low-confidence reviews
43573
+ * ```typescript
43574
+ * const page = await client.reviews.listPending({
43575
+ * reason: 'low_confidence',
43576
+ * page: 1,
43577
+ * pageSize: 25,
43578
+ * });
43579
+ * ```
43518
43580
  */
43519
- listPending(): Promise<unknown>;
43581
+ listPending(options?: ListPendingReviewsOptions): Promise<unknown>;
43520
43582
  /**
43521
43583
  * Re-extract entities from a document.
43522
43584
  *
@@ -47745,7 +47807,7 @@ declare class Communities<SecurityDataType = unknown> {
47745
47807
  */
47746
47808
  detectCommunities: (data: DetectCommunitiesRequest$1, params?: RequestParams) => Promise<HttpResponse<DetectCommunitiesResponse$1, void>>;
47747
47809
  /**
47748
- * @description `GET /api/v1/graph/export?tenant_id=…&format=graphml|gexf|csv-nodes|csv-edges|dot` Read-only: returns the serialized graph as raw text with the matching content type. The graph is the same `Value::Reference` projection the analytics use, labelled by each term's `name` feature.
47810
+ * @description `GET /api/v1/graph/export?format=graphml|gexf|csv-nodes|csv-edges|dot` Read-only: returns the serialized graph as raw text with the matching content type. The graph is the same `Value::Reference` projection the analytics use, labelled by each term's `name` feature.
47749
47811
  *
47750
47812
  * @tags communities
47751
47813
  * @name ExportGraph
@@ -47753,7 +47815,17 @@ declare class Communities<SecurityDataType = unknown> {
47753
47815
  * @request GET:/api/v1/graph/export
47754
47816
  * @secure
47755
47817
  */
47756
- exportGraph: (params?: RequestParams) => Promise<HttpResponse<void, void>>;
47818
+ exportGraph: (query: {
47819
+ /** Output format: `graphml` | `gexf` | `csv-nodes` | `csv-edges` | `dot`. */
47820
+ format: string;
47821
+ /**
47822
+ * Tenant whose terms form the graph. Optional and ignored: the tenant is
47823
+ * always the authenticated principal's, resolved from the `X-Tenant-Id`
47824
+ * header. Kept for wire-compatibility with clients that still send it.
47825
+ * @format uuid
47826
+ */
47827
+ tenant_id?: string | null;
47828
+ }, params?: RequestParams) => Promise<HttpResponse<void, void>>;
47757
47829
  /**
47758
47830
  * @description POST /api/v1/communities/memberships Returns all communities that a term belongs to, with membership degrees.
47759
47831
  *
@@ -48059,6 +48131,15 @@ interface LinkPredictionResponse {
48059
48131
  /** The source node. */
48060
48132
  source: string;
48061
48133
  }
48134
+ /**
48135
+ * Interchange format for `GET /api/v1/graph/export`.
48136
+ *
48137
+ * @remarks
48138
+ * The route rejects any other value with 400. Each format returns raw text
48139
+ * under its own content type: `graphml` and `gexf` as XML, `csv-nodes` and
48140
+ * `csv-edges` as CSV, `dot` as Graphviz source.
48141
+ */
48142
+ type GraphExportFormat = 'graphml' | 'gexf' | 'csv-nodes' | 'csv-edges' | 'dot';
48062
48143
 
48063
48144
  type communities_CentralityRequest = CentralityRequest;
48064
48145
  type communities_CentralityResponse = CentralityResponse;
@@ -48076,6 +48157,7 @@ type communities_DetectCommunitiesRequest = DetectCommunitiesRequest;
48076
48157
  type communities_DetectCommunitiesResponse = DetectCommunitiesResponse;
48077
48158
  type communities_GetMembershipsRequest = GetMembershipsRequest;
48078
48159
  type communities_GetMembershipsResponse = GetMembershipsResponse;
48160
+ type communities_GraphExportFormat = GraphExportFormat;
48079
48161
  type communities_LinkPredictionRequest = LinkPredictionRequest;
48080
48162
  type communities_LinkPredictionResponse = LinkPredictionResponse;
48081
48163
  type communities_MembershipDto = MembershipDto;
@@ -48085,7 +48167,7 @@ type communities_PathResponse = PathResponse;
48085
48167
  type communities_SearchCommunitiesRequest = SearchCommunitiesRequest;
48086
48168
  type communities_SearchCommunitiesResponse = SearchCommunitiesResponse;
48087
48169
  declare namespace communities {
48088
- export type { communities_CentralityRequest as CentralityRequest, communities_CentralityResponse as CentralityResponse, communities_CohesionRequest as CohesionRequest, communities_CohesionResponse as CohesionResponse, communities_CommunityDetectionConfigDto as CommunityDetectionConfigDto, communities_CommunityDetectionStatsDto as CommunityDetectionStatsDto, communities_CommunityDto as CommunityDto, communities_CommunityMatchDto as CommunityMatchDto, communities_CommunityReportDto as CommunityReportDto, communities_CommunityReportSummaryDto as CommunityReportSummaryDto, communities_CommunitySearchModeDto as CommunitySearchModeDto, communities_CommunitySearchStatsDto as CommunitySearchStatsDto, communities_DetectCommunitiesRequest as DetectCommunitiesRequest, communities_DetectCommunitiesResponse as DetectCommunitiesResponse, communities_GetMembershipsRequest as GetMembershipsRequest, communities_GetMembershipsResponse as GetMembershipsResponse, communities_LinkPredictionRequest as LinkPredictionRequest, communities_LinkPredictionResponse as LinkPredictionResponse, communities_MembershipDto as MembershipDto, communities_NodeScore as NodeScore, communities_PathRequest as PathRequest, communities_PathResponse as PathResponse, communities_SearchCommunitiesRequest as SearchCommunitiesRequest, communities_SearchCommunitiesResponse as SearchCommunitiesResponse };
48170
+ export type { communities_CentralityRequest as CentralityRequest, communities_CentralityResponse as CentralityResponse, communities_CohesionRequest as CohesionRequest, communities_CohesionResponse as CohesionResponse, communities_CommunityDetectionConfigDto as CommunityDetectionConfigDto, communities_CommunityDetectionStatsDto as CommunityDetectionStatsDto, communities_CommunityDto as CommunityDto, communities_CommunityMatchDto as CommunityMatchDto, communities_CommunityReportDto as CommunityReportDto, communities_CommunityReportSummaryDto as CommunityReportSummaryDto, communities_CommunitySearchModeDto as CommunitySearchModeDto, communities_CommunitySearchStatsDto as CommunitySearchStatsDto, communities_DetectCommunitiesRequest as DetectCommunitiesRequest, communities_DetectCommunitiesResponse as DetectCommunitiesResponse, communities_GetMembershipsRequest as GetMembershipsRequest, communities_GetMembershipsResponse as GetMembershipsResponse, communities_GraphExportFormat as GraphExportFormat, communities_LinkPredictionRequest as LinkPredictionRequest, communities_LinkPredictionResponse as LinkPredictionResponse, communities_MembershipDto as MembershipDto, communities_NodeScore as NodeScore, communities_PathRequest as PathRequest, communities_PathResponse as PathResponse, communities_SearchCommunitiesRequest as SearchCommunitiesRequest, communities_SearchCommunitiesResponse as SearchCommunitiesResponse };
48089
48171
  }
48090
48172
 
48091
48173
  /**
@@ -48152,6 +48234,32 @@ declare class CommunitiesClient {
48152
48234
  * @returns Candidate targets with positive score, sorted descending.
48153
48235
  */
48154
48236
  predictLinks(request: LinkPredictionRequest): Promise<LinkPredictionResponse>;
48237
+ /**
48238
+ * Export the tenant's reference graph to a graph-interchange format.
48239
+ *
48240
+ * @param format - The interchange format to serialize to.
48241
+ * @returns The serialized graph as raw text.
48242
+ * @throws {ApiError} If the format is unknown (the backend answers 400).
48243
+ *
48244
+ * @remarks
48245
+ * `format` is mandatory on the wire — a request without it is rejected with
48246
+ * 400. Only the tenant of the authenticated principal is exported; the route
48247
+ * accepts a `tenant_id` query parameter for wire-compatibility but ignores
48248
+ * it, because trusting it allowed one tenant to export another's graph.
48249
+ *
48250
+ * The response is raw text, not JSON, and its content type varies by format
48251
+ * (XML for `graphml` and `gexf`, CSV for the `csv-*` pair, Graphviz source
48252
+ * for `dot`). The generated route class declares `void` because the OpenAPI
48253
+ * spec omits the response schema, so this calls `http.request` directly with
48254
+ * `format: 'text'` to read the body.
48255
+ *
48256
+ * @example
48257
+ * ```typescript
48258
+ * const dot = await client.communities.exportGraph('dot');
48259
+ * const graphml = await client.communities.exportGraph('graphml');
48260
+ * ```
48261
+ */
48262
+ exportGraph(format: GraphExportFormat): Promise<string>;
48155
48263
  }
48156
48264
 
48157
48265
  declare class Strings<SecurityDataType = unknown> {
@@ -49320,12 +49428,12 @@ declare class ActionReviews<SecurityDataType = unknown> {
49320
49428
  * @request GET:/api/v1/action-reviews/summary
49321
49429
  * @secure
49322
49430
  */
49323
- getActionReviewSummary: (query: {
49431
+ getActionReviewSummary: (query?: {
49324
49432
  /**
49325
- * Tenant ID to get summary for
49433
+ * Ignored. The tenant is the authenticated principal's, resolved from the `X-Tenant-Id` header. Declared optional so a generated client is not forced to send a value the handler discards (issue #146).
49326
49434
  * @format uuid
49327
49435
  */
49328
- tenant_id: string;
49436
+ tenant_id?: string;
49329
49437
  }, params?: RequestParams) => Promise<HttpResponse<ActionReviewSummaryDto$1, void>>;
49330
49438
  /**
49331
49439
  * @description GET /api/v1/action-reviews/pending Returns paginated list of actions requiring human review.
@@ -49336,7 +49444,36 @@ declare class ActionReviews<SecurityDataType = unknown> {
49336
49444
  * @request GET:/api/v1/action-reviews/pending
49337
49445
  * @secure
49338
49446
  */
49339
- listPendingActionReviews: (params?: RequestParams) => Promise<HttpResponse<ListActionReviewsResponse$1, void>>;
49447
+ listPendingActionReviews: (query?: {
49448
+ /** Filter by action sort (e.g., "llm_generate", "file_write") */
49449
+ action_sort?: string | null;
49450
+ /**
49451
+ * Filter by agent ID
49452
+ * @format uuid
49453
+ */
49454
+ agent_id?: string | null;
49455
+ /**
49456
+ * Page number (0-indexed)
49457
+ * @min 0
49458
+ */
49459
+ page?: number;
49460
+ /**
49461
+ * Page size (default: 50)
49462
+ * @min 0
49463
+ */
49464
+ page_size?: number;
49465
+ /** Only include pending reviews (default: true) */
49466
+ pending_only?: boolean;
49467
+ /** Filter by review reason */
49468
+ reason?: null | ActionReviewReasonDto$1;
49469
+ /**
49470
+ * Filter by tenant ID. Optional: when omitted, the tenant is resolved from
49471
+ * the `X-Tenant-Id` header (the app-wide header-trust auth model), so
49472
+ * clients need not duplicate it in the query string.
49473
+ * @format uuid
49474
+ */
49475
+ tenant_id?: string | null;
49476
+ }, params?: RequestParams) => Promise<HttpResponse<ListActionReviewsResponse$1, void>>;
49340
49477
  /**
49341
49478
  * @description POST /api/v1/action-reviews/modify Modifies the action parameters and approves for execution.
49342
49479
  *
@@ -49369,6 +49506,41 @@ type ActionReviewStatusDto = 'pending' | 'approved' | 'rejected' | 'modified' |
49369
49506
  type ActionReviewReasonDto = 'requires_approval' | 'high_risk' | 'external_side_effect' | 'low_confidence' | 'first_use' | {
49370
49507
  custom: string;
49371
49508
  };
49509
+ /**
49510
+ * The subset of {@link ActionReviewReasonDto} usable as a query filter.
49511
+ *
49512
+ * @remarks
49513
+ * `GET /api/v1/action-reviews/pending` reads `reason` from the query string,
49514
+ * which carries flat scalars only. The `{ custom }` variant of
49515
+ * {@link ActionReviewReasonDto} serializes as an object and cannot survive a
49516
+ * query string, so it is excluded here rather than failing at request time.
49517
+ */
49518
+ type ActionReviewReasonFilter = 'requires_approval' | 'high_risk' | 'external_side_effect' | 'low_confidence' | 'first_use';
49519
+ /**
49520
+ * Filters and pagination for `GET /api/v1/action-reviews/pending`.
49521
+ *
49522
+ * @remarks
49523
+ * Every field is optional; omit the argument entirely to list the first page
49524
+ * of pending action reviews.
49525
+ *
49526
+ * There is deliberately no `tenantId` field. The route accepts a `tenant_id`
49527
+ * query parameter for wire-compatibility but ignores it: the tenant is always
49528
+ * the authenticated principal's, taken from the `X-Tenant-Id` header.
49529
+ */
49530
+ interface ListActionReviewsOptions {
49531
+ /** Return only actions proposed by this agent (UUID). */
49532
+ agentId?: string;
49533
+ /** Return only actions of this sort (e.g. `"llm_generate"`, `"file_write"`). */
49534
+ actionSort?: string;
49535
+ /** Return only actions held for this reason. */
49536
+ reason?: ActionReviewReasonFilter;
49537
+ /** Restrict to reviews still pending a decision. Defaults to `true` server-side. */
49538
+ pendingOnly?: boolean;
49539
+ /** Zero-indexed page number. Defaults to 0 server-side. */
49540
+ page?: number;
49541
+ /** Entries per page. Defaults to 50 server-side. */
49542
+ pageSize?: number;
49543
+ }
49372
49544
  /**
49373
49545
  * Request to approve an autonomous action.
49374
49546
  */
@@ -49520,6 +49692,7 @@ interface ActionReviewSummaryDto {
49520
49692
  }
49521
49693
 
49522
49694
  type actionReviews_ActionReviewReasonDto = ActionReviewReasonDto;
49695
+ type actionReviews_ActionReviewReasonFilter = ActionReviewReasonFilter;
49523
49696
  type actionReviews_ActionReviewResponse = ActionReviewResponse;
49524
49697
  type actionReviews_ActionReviewStatusDto = ActionReviewStatusDto;
49525
49698
  type actionReviews_ActionReviewSummaryDto = ActionReviewSummaryDto;
@@ -49528,12 +49701,13 @@ type actionReviews_BulkActionReviewResponse = BulkActionReviewResponse;
49528
49701
  type actionReviews_BulkApproveActionsRequest = BulkApproveActionsRequest;
49529
49702
  type actionReviews_BulkRejectActionsRequest = BulkRejectActionsRequest;
49530
49703
  type actionReviews_FailedReviewDto = FailedReviewDto;
49704
+ type actionReviews_ListActionReviewsOptions = ListActionReviewsOptions;
49531
49705
  type actionReviews_ListActionReviewsResponse = ListActionReviewsResponse;
49532
49706
  type actionReviews_ModifyActionRequest = ModifyActionRequest;
49533
49707
  type actionReviews_PendingActionReviewDto = PendingActionReviewDto;
49534
49708
  type actionReviews_RejectActionRequest = RejectActionRequest;
49535
49709
  declare namespace actionReviews {
49536
- export type { actionReviews_ActionReviewReasonDto as ActionReviewReasonDto, actionReviews_ActionReviewResponse as ActionReviewResponse, actionReviews_ActionReviewStatusDto as ActionReviewStatusDto, actionReviews_ActionReviewSummaryDto as ActionReviewSummaryDto, actionReviews_ApproveActionRequest as ApproveActionRequest, actionReviews_BulkActionReviewResponse as BulkActionReviewResponse, actionReviews_BulkApproveActionsRequest as BulkApproveActionsRequest, actionReviews_BulkRejectActionsRequest as BulkRejectActionsRequest, actionReviews_FailedReviewDto as FailedReviewDto, actionReviews_ListActionReviewsResponse as ListActionReviewsResponse, actionReviews_ModifyActionRequest as ModifyActionRequest, actionReviews_PendingActionReviewDto as PendingActionReviewDto, actionReviews_RejectActionRequest as RejectActionRequest };
49710
+ export type { actionReviews_ActionReviewReasonDto as ActionReviewReasonDto, actionReviews_ActionReviewReasonFilter as ActionReviewReasonFilter, actionReviews_ActionReviewResponse as ActionReviewResponse, actionReviews_ActionReviewStatusDto as ActionReviewStatusDto, actionReviews_ActionReviewSummaryDto as ActionReviewSummaryDto, actionReviews_ApproveActionRequest as ApproveActionRequest, actionReviews_BulkActionReviewResponse as BulkActionReviewResponse, actionReviews_BulkApproveActionsRequest as BulkApproveActionsRequest, actionReviews_BulkRejectActionsRequest as BulkRejectActionsRequest, actionReviews_FailedReviewDto as FailedReviewDto, actionReviews_ListActionReviewsOptions as ListActionReviewsOptions, actionReviews_ListActionReviewsResponse as ListActionReviewsResponse, actionReviews_ModifyActionRequest as ModifyActionRequest, actionReviews_PendingActionReviewDto as PendingActionReviewDto, actionReviews_RejectActionRequest as RejectActionRequest };
49537
49711
  }
49538
49712
 
49539
49713
  /**
@@ -49590,9 +49764,27 @@ declare class ActionReviewsClient {
49590
49764
  /**
49591
49765
  * List pending action reviews.
49592
49766
  *
49767
+ * @param options - Optional filters and pagination. Omit to list the first
49768
+ * page of pending action reviews.
49593
49769
  * @returns Paginated list of pending reviews.
49770
+ * @throws {ApiError} If the request fails.
49771
+ *
49772
+ * @remarks
49773
+ * The tenant is taken from the authenticated principal (the `X-Tenant-Id`
49774
+ * header), never from the caller, so {@link ListActionReviewsOptions} exposes
49775
+ * no `tenantId`. Filters are sent as query parameters in wire `snake_case`;
49776
+ * any option left `undefined` is omitted, letting the backend default apply
49777
+ * (`pendingOnly` defaults to `true`, `pageSize` to 50).
49778
+ *
49779
+ * @example Highest-risk actions awaiting a decision
49780
+ * ```typescript
49781
+ * const pending = await client.actionReviews.listPending({
49782
+ * reason: 'high_risk',
49783
+ * pageSize: 20,
49784
+ * });
49785
+ * ```
49594
49786
  */
49595
- listPending(): Promise<ListActionReviewsResponse>;
49787
+ listPending(options?: ListActionReviewsOptions): Promise<ListActionReviewsResponse>;
49596
49788
  /**
49597
49789
  * Get action review summary statistics.
49598
49790
  *
@@ -52547,12 +52739,12 @@ declare class WebhookActions<SecurityDataType = unknown> {
52547
52739
  * @summary List all registered external actions for a tenant.
52548
52740
  * @request GET:/api/v1/external-actions
52549
52741
  */
52550
- listExternalActions: (query: {
52742
+ listExternalActions: (query?: {
52551
52743
  /**
52552
- * Tenant ID
52744
+ * Ignored. The tenant is the authenticated principal's, resolved from the `X-Tenant-Id` header. Declared optional so a generated client is not forced to send a value the handler discards (issue #146).
52553
52745
  * @format uuid
52554
52746
  */
52555
- tenant_id: string;
52747
+ tenant_id?: string;
52556
52748
  }, params?: RequestParams) => Promise<HttpResponse<ListExternalActionsResponse$1, any>>;
52557
52749
  /**
52558
52750
  * No description
@@ -52562,12 +52754,12 @@ declare class WebhookActions<SecurityDataType = unknown> {
52562
52754
  * @summary List pending invocations for a tenant.
52563
52755
  * @request GET:/api/v1/invocations
52564
52756
  */
52565
- listPendingInvocations: (query: {
52757
+ listPendingInvocations: (query?: {
52566
52758
  /**
52567
- * Tenant ID
52759
+ * Ignored. The tenant is the authenticated principal's, resolved from the `X-Tenant-Id` header. Declared optional so a generated client is not forced to send a value the handler discards (issue #146).
52568
52760
  * @format uuid
52569
52761
  */
52570
- tenant_id: string;
52762
+ tenant_id?: string;
52571
52763
  }, params?: RequestParams) => Promise<HttpResponse<ListPendingInvocationsResponse$1, any>>;
52572
52764
  /**
52573
52765
  * @description Creates a sort inheriting from `effect` in the sort hierarchy.
@@ -74303,4 +74495,4 @@ declare function toUntaggedFeatures(features: PlainFeatureMap): Record<string, F
74303
74495
  */
74304
74496
  declare function toTermInputDto(input: PsiTermInput | TermInputDto): TermInputDto;
74305
74497
 
74306
- export { ANY_ROLE, actionReviews as ActionReviews, actions as Actions, type AddFactRequest, type AddFactResponse, type AddRuleRequest, type AddRuleResponse, admin as Admin, agui as Agui, type AguiContextItem, type AguiEvent, type AguiFunctionCall, type AguiMessage, type AguiRole, type AguiRunOptions, type AguiTool, type AguiToolCall, type AiGroup, type AlcConcept, analysis as Analysis, type AnalysisGroup, anonymization as Anonymization, ApiError, type ApiResponse, type ArithmeticOp, type AuthConfig, AuthenticationError, authz as Authz, type AuthzAction, type AuthzDryRunRequest, type AuthzDryRunResponse, type AuthzEffect, type BackwardChainRequest, type BackwardChainResponse, BadRequestError, type BulkAddTermsRequest, type BulkAddTermsResponse, type BulkCreateSortsRequest, type BulkCreateSortsResponse, cdl as CDL, type CascadeOptions, type CatalogPage, causal as Causal, type CertificateDetail, chase as Chase, type ChaseArgDto, type ChaseAtomDto, type ChaseRunRequest, type ChaseRunResponse, type CheckDocumentRequest, type CheckDocumentResponse, type CheckFinding, type CheckSummary, type ClaimAssessment, type ClaimCitation, type ClaimSubtype, type ClaimVerdict, type ClassifyEdgesInput, type ClassifyEdgesVars, type ClearTermsResponse, type ClientConfig, cognitive as Cognitive, type CognitiveStrategyDto, coherence as Coherence, type CoherenceAnalyzeRequest, type CoherenceAnalyzeResponse, collections as Collections, communities as Communities, type CompareDocumentsRequest, type ComparisonOp, compliance as Compliance, complianceMarkings as ComplianceMarkings, conformal as Conformal, conformance as Conformance, type ConformanceCheckResponse, type ConformanceRepairResponse, type ConformanceRequest, connectors as Connectors, type ConstrainedPlainVar, Constraint, ConstraintViolationError, constraints as Constraints, control as Control, conversation as Conversation, type ConversationMessageRequest, type ConversationMessageResponse, type ConversationSummaryDto, type ConversationTurnsResponse, type CoreGroup, corpus as Corpus, type CorpusBridgesRequest, type CorpusBridgesResponse, type CorpusCommunitiesRequest, type CorpusCommunitiesResponse, type CorpusCrossCuttingRequest, type CorpusCrossCuttingResponse, type CorpusScope, type CreateResearchSessionRequest, type CreateResearchSessionResponse, type CreateSortRequest, type CreateTermRequest, type CtlFormula, dl as DL, type DataGroup, demo as Demo, discovery as Discovery, type DlSatisfiableRequest, type DlSatisfiableResponse, type DlSubsumesRequest, type DlSubsumesResponse, documentCheck as DocumentCheck, documents as Documents, embeddings as Embeddings, type EqLiteralDto, type EqualityAtomDto, type ErrorResponse$1 as ErrorResponse, execution as Execution, extract as Extract, feasibility as Feasibility, type FeatureInputValueDto, type FeatureValueDto, type FindingKind, type FindingSeverity, Flow, type FlowProblem as FlowBuilderProblem, type FlowEdgeInput, type FlowEdgeOptions, flowNetworks as FlowNetworks, type FlowNode, type FlowProblemInputBase, type FocusEntryDto, ForbiddenError, forecast as Forecast, type ForecastDomain, type ForecastDomainsResponse, type ForecastEntityInput, type ForecastRequest, type ForecastResponse, type ForwardChainRequest, type ForwardChainResponse, functions as Functions, fuzzy as Fuzzy, FuzzyShape, type FuzzyShapeDto, generation as Generation, type GlbRequest, type GlbResponse, type GraphSparqlQueryRequest, type GraphSparqlResults, guardrail as Guardrail, type GuardrailReport, type GuardrailRequest, type GuardrailSummary, health as Health, homoiconic as Homoiconic, ilp as ILP, imageExtraction as ImageExtraction, inference as Inference, type IngestPaperRequest, type IngestPaperResponse, ingestion as Ingestion, IngestionFailedError, IngestionSession, type IngestionSyncOptions, type InlineDocument, type InstallList, type InstallPluginRequest, type InstallPluginResponse, type InstallState, type InstallSummary, type Interceptor, InternalServerError, type JsonValue$1 as JsonValue, type KripkeState, type KripkeTransition, LP, ltn as LTN, type ListCatalogParams, type ListConversationsResponse, type ListInstallsParams, type ListResearchSessionsResponse, type LtnInstance, type LtnQueryRequest, type LtnQueryResponse, type LtnRefuteRequest, type LtnRefuteResponse, type LtnRule, type LtnTrainRequest, type LtnTrainResponse, type LubRequest, type LubResponse, marketplace as Marketplace, type MarketplaceScope, type MaxFlowInput, type MaxFlowVars, type MinCostMaxFlowInput, type MinCostMaxFlowVars, type MinCutInput, type MinCutVars, namespaces as Namespaces, NetworkError, neuroSymbolic as NeuroSymbolic, NotFoundError, ontology as Ontology, ontologyAlignment as OntologyAlignment, ontologyBridge as OntologyBridge, ontologyExport as OntologyExport, type OntologyExportDocument, type OntologyExportFormat, type OntologyExportOptions, ontologyFacade as OntologyFacade, type Operand, operations as Operations, optimize as Optimize, osfDiff as OsfDiff, type OsfDiffReport, type OsfDiffRequest, type OsfDiffResponse, type OsfDiffSelector, type OsfDiffSequenceReport, type OsfDiffSequenceRequest, type OsfDiffSequenceResponse, type OsfDiffTemporalRequest, type OsfSearchRequest, type OsfSearchResponse, osfql as Osfql, type OsfqlRequest, type OsfqlResponse, type OsfqlValue, oversight as Oversight, type PaginationParams, type PaperMetadataDto, type PaperSource, type PlainFeatureMap, type PlainFeatureValue, plainValues as PlainValues, type PluginDependency, type PluginDetail, type PluginManifest, type PluginSummary, type PluginVersion, preferences as Preferences, proofEngine as ProofEngine, propertyGraph as PropertyGraph, type PropertyGraphErrorResponse, type PropertyGraphExecuteResponse, type PropertyGraphQueryRequest, type PropertyGraphTranslateResponse, type PropertyGraphValue, type PsiTermDto, type PsiTermInput, type PublishPluginRequest, type PublishPluginResponse, query as Query, rag as RAG, RateLimitError, type RateLimitInfo, reasoning as Reasoning, type ReasoningGroup, ReasoningLayerClient, ReasoningLayerError, type ReasoningStageDto, type ReasoningTraceDto, type RequestOptions, research as Research, type ResearchContradictionsResponse, type ResearchCycleResponse, type ResearchFindingsResponse, type ResearchGapsResponse, type ResearchReportResponse, type ResearchSessionResponse, type ResearchSessionSummaryDto, type ResolvedCoreferenceDto, reviews as Reviews, reward as Reward, row as Row, type RuleAggregatorDto, type RunAgentRequest, SDK_VERSION, sat as Sat, type SatLiteralDto, type SatSolveRequest, type SatSolveResponse, type SatVerdict, scenarios as Scenarios, scheduling as Scheduling, type SearchCatalogRequest, type SearchCatalogResponse, type SearchPapersRequest, type SearchPapersResponse, type SessionGraphDto, type SimpleTgdDto, smt as Smt, type SmtCheckRequest, type SmtCheckResponse, type SmtFunctionApplicationDto, type SmtVerdict, solver as Solver, SortBuilder, type SortDto, type SortInfoDto, sorts as Sorts, sources as Sources, spaces as Spaces, sparql as Sparql, type SparqlAskResults, type SparqlBindingSet, type SparqlEntailmentRegime, type SparqlQueryRequest, type SparqlQueryResults, type SparqlRdfTerm, type SparqlSelectResults, type SparqlTranslation, type SparqlUpdateRequest, type SparqlUpdateTranslation, speakers as Speakers, speech as Speech, statistical as Statistical, streaming as Streaming, synthetic as Synthetic, type SystemGroup, temporal as Temporal, type TemporalModelCheckRequest, type TemporalModelCheckResponse, type TemporalSeriesRequest, type TemporalSeriesResponse, type TemporalSeriesSpec, type TermDto, type TermInputArg, type TermInputDto, type TermListResponse, type TermPatternDto, type TermResponse, type TermSetSelector, terms as Terms, TimeoutError, translation as Translation, type TurnDto, ui as UI, type UpdateTermRequest, type UpgradeInstallRequest, utilities as Utilities, ValidationError, Value, type ValueDto, values as Values, verification as Verification, type VerifyClaimRequest, type VerifyClaimResponse, vision as Vision, visualization as Visualization, WebSocketClient, WebSocketConnection, webhookActions as WebhookActions, type WorkflowGroup, type YankPluginRequest, type YankPluginResponse, allen, constrained, discriminateFeatureValue, guard, isConstrainedPlainVar, isPsiTermInput, isTaggedValueDto, isUuid, psi, toTaggedFeatures, toTaggedValue, toTermInputDto, toUntaggedFeatures, toUntaggedValue };
74498
+ export { ANY_ROLE, type ActionReviewReasonFilter, actionReviews as ActionReviews, actions as Actions, type AddFactRequest, type AddFactResponse, type AddRuleRequest, type AddRuleResponse, admin as Admin, agui as Agui, type AguiContextItem, type AguiEvent, type AguiFunctionCall, type AguiMessage, type AguiRole, type AguiRunOptions, type AguiTool, type AguiToolCall, type AiGroup, type AlcConcept, analysis as Analysis, type AnalysisGroup, anonymization as Anonymization, ApiError, type ApiResponse, type ArithmeticOp, type AuthConfig, AuthenticationError, authz as Authz, type AuthzAction, type AuthzDryRunRequest, type AuthzDryRunResponse, type AuthzEffect, type BackwardChainRequest, type BackwardChainResponse, BadRequestError, type BulkAddTermsRequest, type BulkAddTermsResponse, type BulkCreateSortsRequest, type BulkCreateSortsResponse, cdl as CDL, type CascadeOptions, type CatalogPage, causal as Causal, type CertificateDetail, chase as Chase, type ChaseArgDto, type ChaseAtomDto, type ChaseRunRequest, type ChaseRunResponse, type CheckDocumentRequest, type CheckDocumentResponse, type CheckFinding, type CheckSummary, type ClaimAssessment, type ClaimCitation, type ClaimSubtype, type ClaimVerdict, type ClassifyEdgesInput, type ClassifyEdgesVars, type ClearTermsResponse, type ClientConfig, cognitive as Cognitive, type CognitiveStrategyDto, coherence as Coherence, type CoherenceAnalyzeRequest, type CoherenceAnalyzeResponse, collections as Collections, communities as Communities, type CompareDocumentsRequest, type ComparisonOp, compliance as Compliance, complianceMarkings as ComplianceMarkings, conformal as Conformal, conformance as Conformance, type ConformanceCheckResponse, type ConformanceRepairResponse, type ConformanceRequest, connectors as Connectors, type ConstrainedPlainVar, Constraint, ConstraintViolationError, constraints as Constraints, control as Control, conversation as Conversation, type ConversationMessageRequest, type ConversationMessageResponse, type ConversationSummaryDto, type ConversationTurnsResponse, type CoreGroup, corpus as Corpus, type CorpusBridgesRequest, type CorpusBridgesResponse, type CorpusCommunitiesRequest, type CorpusCommunitiesResponse, type CorpusCrossCuttingRequest, type CorpusCrossCuttingResponse, type CorpusScope, type CreateResearchSessionRequest, type CreateResearchSessionResponse, type CreateSortRequest, type CreateTermRequest, type CtlFormula, dl as DL, type DataGroup, demo as Demo, discovery as Discovery, type DlSatisfiableRequest, type DlSatisfiableResponse, type DlSubsumesRequest, type DlSubsumesResponse, documentCheck as DocumentCheck, documents as Documents, embeddings as Embeddings, type EqLiteralDto, type EqualityAtomDto, type ErrorResponse$1 as ErrorResponse, execution as Execution, extract as Extract, feasibility as Feasibility, type FeatureInputValueDto, type FeatureValueDto, type FindingKind, type FindingSeverity, Flow, type FlowProblem as FlowBuilderProblem, type FlowEdgeInput, type FlowEdgeOptions, flowNetworks as FlowNetworks, type FlowNode, type FlowProblemInputBase, type FocusEntryDto, ForbiddenError, forecast as Forecast, type ForecastDomain, type ForecastDomainsResponse, type ForecastEntityInput, type ForecastRequest, type ForecastResponse, type ForwardChainRequest, type ForwardChainResponse, functions as Functions, fuzzy as Fuzzy, FuzzyShape, type FuzzyShapeDto, generation as Generation, type GlbRequest, type GlbResponse, type GraphExportFormat, type GraphSparqlQueryRequest, type GraphSparqlResults, guardrail as Guardrail, type GuardrailReport, type GuardrailRequest, type GuardrailSummary, health as Health, homoiconic as Homoiconic, ilp as ILP, imageExtraction as ImageExtraction, inference as Inference, type IngestPaperRequest, type IngestPaperResponse, ingestion as Ingestion, IngestionFailedError, IngestionSession, type IngestionSyncOptions, type InlineDocument, type InstallList, type InstallPluginRequest, type InstallPluginResponse, type InstallState, type InstallSummary, type Interceptor, InternalServerError, type JsonValue$1 as JsonValue, type KripkeState, type KripkeTransition, LP, ltn as LTN, type ListActionReviewsOptions, type ListCatalogParams, type ListConversationsResponse, type ListInstallsParams, type ListPendingReviewsOptions, type ListResearchSessionsResponse, type LtnInstance, type LtnQueryRequest, type LtnQueryResponse, type LtnRefuteRequest, type LtnRefuteResponse, type LtnRule, type LtnTrainRequest, type LtnTrainResponse, type LubRequest, type LubResponse, marketplace as Marketplace, type MarketplaceScope, type MaxFlowInput, type MaxFlowVars, type MinCostMaxFlowInput, type MinCostMaxFlowVars, type MinCutInput, type MinCutVars, namespaces as Namespaces, NetworkError, neuroSymbolic as NeuroSymbolic, NotFoundError, ontology as Ontology, ontologyAlignment as OntologyAlignment, ontologyBridge as OntologyBridge, ontologyExport as OntologyExport, type OntologyExportDocument, type OntologyExportFormat, type OntologyExportOptions, ontologyFacade as OntologyFacade, type Operand, operations as Operations, optimize as Optimize, osfDiff as OsfDiff, type OsfDiffReport, type OsfDiffRequest, type OsfDiffResponse, type OsfDiffSelector, type OsfDiffSequenceReport, type OsfDiffSequenceRequest, type OsfDiffSequenceResponse, type OsfDiffTemporalRequest, type OsfSearchRequest, type OsfSearchResponse, osfql as Osfql, type OsfqlRequest, type OsfqlResponse, type OsfqlValue, oversight as Oversight, type PaginationParams, type PaperMetadataDto, type PaperSource, type PlainFeatureMap, type PlainFeatureValue, plainValues as PlainValues, type PluginDependency, type PluginDetail, type PluginManifest, type PluginSummary, type PluginVersion, preferences as Preferences, proofEngine as ProofEngine, propertyGraph as PropertyGraph, type PropertyGraphErrorResponse, type PropertyGraphExecuteResponse, type PropertyGraphQueryRequest, type PropertyGraphTranslateResponse, type PropertyGraphValue, type PsiTermDto, type PsiTermInput, type PublishPluginRequest, type PublishPluginResponse, query as Query, rag as RAG, RateLimitError, type RateLimitInfo, reasoning as Reasoning, type ReasoningGroup, ReasoningLayerClient, ReasoningLayerError, type ReasoningStageDto, type ReasoningTraceDto, type RequestOptions, research as Research, type ResearchContradictionsResponse, type ResearchCycleResponse, type ResearchFindingsResponse, type ResearchGapsResponse, type ResearchReportResponse, type ResearchSessionResponse, type ResearchSessionSummaryDto, type ResolvedCoreferenceDto, type ReviewReason, reviews as Reviews, reward as Reward, row as Row, type RuleAggregatorDto, type RunAgentRequest, SDK_VERSION, sat as Sat, type SatLiteralDto, type SatSolveRequest, type SatSolveResponse, type SatVerdict, scenarios as Scenarios, scheduling as Scheduling, type SearchCatalogRequest, type SearchCatalogResponse, type SearchPapersRequest, type SearchPapersResponse, type SessionGraphDto, type SimpleTgdDto, smt as Smt, type SmtCheckRequest, type SmtCheckResponse, type SmtFunctionApplicationDto, type SmtVerdict, solver as Solver, SortBuilder, type SortDto, type SortInfoDto, sorts as Sorts, sources as Sources, spaces as Spaces, sparql as Sparql, type SparqlAskResults, type SparqlBindingSet, type SparqlEntailmentRegime, type SparqlQueryRequest, type SparqlQueryResults, type SparqlRdfTerm, type SparqlSelectResults, type SparqlTranslation, type SparqlUpdateRequest, type SparqlUpdateTranslation, speakers as Speakers, speech as Speech, statistical as Statistical, streaming as Streaming, synthetic as Synthetic, type SystemGroup, temporal as Temporal, type TemporalModelCheckRequest, type TemporalModelCheckResponse, type TemporalSeriesRequest, type TemporalSeriesResponse, type TemporalSeriesSpec, type TermDto, type TermInputArg, type TermInputDto, type TermListResponse, type TermPatternDto, type TermResponse, type TermSetSelector, terms as Terms, TimeoutError, translation as Translation, type TurnDto, ui as UI, type UpdateTermRequest, type UpgradeInstallRequest, utilities as Utilities, ValidationError, Value, type ValueDto, values as Values, verification as Verification, type VerifyClaimRequest, type VerifyClaimResponse, vision as Vision, visualization as Visualization, WebSocketClient, WebSocketConnection, webhookActions as WebhookActions, type WorkflowGroup, type YankPluginRequest, type YankPluginResponse, allen, constrained, discriminateFeatureValue, guard, isConstrainedPlainVar, isPsiTermInput, isTaggedValueDto, isUuid, psi, toTaggedFeatures, toTaggedValue, toTermInputDto, toUntaggedFeatures, toUntaggedValue };
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ var __export = (target, all) => {
5
5
  };
6
6
 
7
7
  // src/config.ts
8
- var SDK_VERSION = "1.19.0";
8
+ var SDK_VERSION = "1.20.0";
9
9
  function resolveConfig(config) {
10
10
  if (!config.baseUrl) {
11
11
  throw new Error("ClientConfig.baseUrl is required");
@@ -3880,7 +3880,7 @@ var Communities = class {
3880
3880
  ...params
3881
3881
  });
3882
3882
  /**
3883
- * @description `GET /api/v1/graph/export?tenant_id=…&format=graphml|gexf|csv-nodes|csv-edges|dot` Read-only: returns the serialized graph as raw text with the matching content type. The graph is the same `Value::Reference` projection the analytics use, labelled by each term's `name` feature.
3883
+ * @description `GET /api/v1/graph/export?format=graphml|gexf|csv-nodes|csv-edges|dot` Read-only: returns the serialized graph as raw text with the matching content type. The graph is the same `Value::Reference` projection the analytics use, labelled by each term's `name` feature.
3884
3884
  *
3885
3885
  * @tags communities
3886
3886
  * @name ExportGraph
@@ -3888,9 +3888,10 @@ var Communities = class {
3888
3888
  * @request GET:/api/v1/graph/export
3889
3889
  * @secure
3890
3890
  */
3891
- exportGraph = (params = {}) => this.http.request({
3891
+ exportGraph = (query, params = {}) => this.http.request({
3892
3892
  path: `/api/v1/graph/export`,
3893
3893
  method: "GET",
3894
+ query,
3894
3895
  secure: true,
3895
3896
  ...params
3896
3897
  });
@@ -5300,9 +5301,10 @@ var Reviews = class {
5300
5301
  * @request GET:/api/v1/reviews/pending
5301
5302
  * @secure
5302
5303
  */
5303
- listPendingReviews = (params = {}) => this.http.request({
5304
+ listPendingReviews = (query, params = {}) => this.http.request({
5304
5305
  path: `/api/v1/reviews/pending`,
5305
5306
  method: "GET",
5307
+ query,
5306
5308
  secure: true,
5307
5309
  format: "json",
5308
5310
  ...params
@@ -5851,9 +5853,10 @@ var ActionReviews = class {
5851
5853
  * @request GET:/api/v1/action-reviews/pending
5852
5854
  * @secure
5853
5855
  */
5854
- listPendingActionReviews = (params = {}) => this.http.request({
5856
+ listPendingActionReviews = (query, params = {}) => this.http.request({
5855
5857
  path: `/api/v1/action-reviews/pending`,
5856
5858
  method: "GET",
5859
+ query,
5857
5860
  secure: true,
5858
5861
  format: "json",
5859
5862
  ...params
@@ -20717,23 +20720,44 @@ var ReviewsClient = class {
20717
20720
  return response.data;
20718
20721
  }
20719
20722
  /**
20720
- * List all pending reviews for the authenticated tenant.
20723
+ * List pending reviews for the authenticated tenant.
20721
20724
  *
20725
+ * @param options - Optional filters and pagination. Omit to list the first
20726
+ * page of every pending review.
20722
20727
  * @returns List of pending review entries.
20723
20728
  * @throws {ApiError} If the request fails.
20724
20729
  *
20725
20730
  * @remarks
20726
- * `GET /api/v1/reviews/pending` no longer accepts a `tenant_id` query parameter:
20727
- * the tenant is taken from the authenticated principal (the `X-Tenant-Id` header the
20728
- * SDK already sends on every request), never from the caller.
20731
+ * The tenant is taken from the authenticated principal (the `X-Tenant-Id`
20732
+ * header the SDK sends on every request), never from the caller. The route
20733
+ * still accepts a `tenant_id` query parameter for wire-compatibility but
20734
+ * ignores it, so {@link ListPendingReviewsOptions} does not expose one.
20729
20735
  *
20730
- * @example
20736
+ * Filters are sent as query parameters in wire `snake_case`; any option left
20737
+ * `undefined` is omitted from the query string entirely, letting the backend
20738
+ * apply its own default.
20739
+ *
20740
+ * @example List everything pending
20731
20741
  * ```typescript
20732
20742
  * const pending = await client.reviews.listPending();
20733
20743
  * ```
20744
+ *
20745
+ * @example Second page of low-confidence reviews
20746
+ * ```typescript
20747
+ * const page = await client.reviews.listPending({
20748
+ * reason: 'low_confidence',
20749
+ * page: 1,
20750
+ * pageSize: 25,
20751
+ * });
20752
+ * ```
20734
20753
  */
20735
- async listPending() {
20736
- const response = await this.api.listPendingReviews();
20754
+ async listPending(options = {}) {
20755
+ const response = await this.api.listPendingReviews({
20756
+ sort: options.sort,
20757
+ reason: options.reason,
20758
+ page: options.page,
20759
+ page_size: options.pageSize
20760
+ });
20737
20761
  return response.data;
20738
20762
  }
20739
20763
  /**
@@ -23184,6 +23208,41 @@ var CommunitiesClient = class {
23184
23208
  const response = await this.api.predictLinks(LinkPredictionRequestFromFrontToApi(request));
23185
23209
  return LinkPredictionResponseFromApiToFront(response.data);
23186
23210
  }
23211
+ /**
23212
+ * Export the tenant's reference graph to a graph-interchange format.
23213
+ *
23214
+ * @param format - The interchange format to serialize to.
23215
+ * @returns The serialized graph as raw text.
23216
+ * @throws {ApiError} If the format is unknown (the backend answers 400).
23217
+ *
23218
+ * @remarks
23219
+ * `format` is mandatory on the wire — a request without it is rejected with
23220
+ * 400. Only the tenant of the authenticated principal is exported; the route
23221
+ * accepts a `tenant_id` query parameter for wire-compatibility but ignores
23222
+ * it, because trusting it allowed one tenant to export another's graph.
23223
+ *
23224
+ * The response is raw text, not JSON, and its content type varies by format
23225
+ * (XML for `graphml` and `gexf`, CSV for the `csv-*` pair, Graphviz source
23226
+ * for `dot`). The generated route class declares `void` because the OpenAPI
23227
+ * spec omits the response schema, so this calls `http.request` directly with
23228
+ * `format: 'text'` to read the body.
23229
+ *
23230
+ * @example
23231
+ * ```typescript
23232
+ * const dot = await client.communities.exportGraph('dot');
23233
+ * const graphml = await client.communities.exportGraph('graphml');
23234
+ * ```
23235
+ */
23236
+ async exportGraph(format) {
23237
+ const response = await this.api.http.request({
23238
+ path: "/api/v1/graph/export",
23239
+ method: "GET",
23240
+ query: { format },
23241
+ secure: true,
23242
+ format: "text"
23243
+ });
23244
+ return response.data;
23245
+ }
23187
23246
  };
23188
23247
 
23189
23248
  // src/normalizers/utilities.ts
@@ -23941,10 +24000,35 @@ var ActionReviewsClient = class {
23941
24000
  /**
23942
24001
  * List pending action reviews.
23943
24002
  *
24003
+ * @param options - Optional filters and pagination. Omit to list the first
24004
+ * page of pending action reviews.
23944
24005
  * @returns Paginated list of pending reviews.
24006
+ * @throws {ApiError} If the request fails.
24007
+ *
24008
+ * @remarks
24009
+ * The tenant is taken from the authenticated principal (the `X-Tenant-Id`
24010
+ * header), never from the caller, so {@link ListActionReviewsOptions} exposes
24011
+ * no `tenantId`. Filters are sent as query parameters in wire `snake_case`;
24012
+ * any option left `undefined` is omitted, letting the backend default apply
24013
+ * (`pendingOnly` defaults to `true`, `pageSize` to 50).
24014
+ *
24015
+ * @example Highest-risk actions awaiting a decision
24016
+ * ```typescript
24017
+ * const pending = await client.actionReviews.listPending({
24018
+ * reason: 'high_risk',
24019
+ * pageSize: 20,
24020
+ * });
24021
+ * ```
23945
24022
  */
23946
- async listPending() {
23947
- const response = await this.api.listPendingActionReviews();
24023
+ async listPending(options = {}) {
24024
+ const response = await this.api.listPendingActionReviews({
24025
+ agent_id: options.agentId,
24026
+ action_sort: options.actionSort,
24027
+ reason: options.reason,
24028
+ pending_only: options.pendingOnly,
24029
+ page: options.page,
24030
+ page_size: options.pageSize
24031
+ });
23948
24032
  return ListActionReviewsResponseFromApiToFront(response.data);
23949
24033
  }
23950
24034
  /**