@stackone/connect-sdk 3.2.0 → 3.4.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.cjs +6 -6
- package/dist/index.d.cts +12 -1
- package/dist/index.d.mts +12 -1
- package/dist/index.mjs +6 -6
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import { ILogger } from "@stackone/logger";
|
|
|
3
3
|
import { IOlapClient } from "@stackone/olap";
|
|
4
4
|
import { HttpMethod, IHttpClient, IMcpClient, McpClientConfig, McpServerProber, McpToolDefinition } from "@stackone/transport";
|
|
5
5
|
import { z } from "@stackone/utils";
|
|
6
|
-
import { ArgumentValue, CedarEvaluator, LevelPolicies, PrincipalRef, ToolDecision } from "@stackone/policy";
|
|
6
|
+
import { ArgumentValue, CedarEvaluator, FieldDecisions, LevelPolicies, PrincipalRef, ToolDecision } from "@stackone/policy";
|
|
7
7
|
|
|
8
8
|
//#region \0rolldown/runtime.js
|
|
9
9
|
//#endregion
|
|
@@ -5369,6 +5369,16 @@ type ActionPolicy = {
|
|
|
5369
5369
|
client?: string;
|
|
5370
5370
|
toolName?: string;
|
|
5371
5371
|
};
|
|
5372
|
+
declare const decideReadFields: (input: {
|
|
5373
|
+
policy: ActionPolicy;
|
|
5374
|
+
account: Account;
|
|
5375
|
+
action: Pick<Action, "id" | "categories">;
|
|
5376
|
+
paths: string[];
|
|
5377
|
+
authType?: AuthType;
|
|
5378
|
+
sessionId?: string;
|
|
5379
|
+
logger?: ILogger;
|
|
5380
|
+
evaluator?: CedarEvaluator;
|
|
5381
|
+
}) => Promise<FieldDecisions>;
|
|
5372
5382
|
declare const decideInvokeTool: (input: {
|
|
5373
5383
|
policy: ActionPolicy;
|
|
5374
5384
|
account: Account;
|
|
@@ -5505,6 +5515,7 @@ type BaseRunActionParams = {
|
|
|
5505
5515
|
policy?: ActionPolicy;
|
|
5506
5516
|
logger?: ILogger;
|
|
5507
5517
|
decideInvokeToolFn?: typeof decideInvokeTool;
|
|
5518
|
+
decideReadFieldsFn?: typeof decideReadFields;
|
|
5508
5519
|
parseConnector?: typeof parseYamlConnector;
|
|
5509
5520
|
parseActionInputsFn?: typeof parseActionInputs;
|
|
5510
5521
|
createBlockContextFn?: typeof createBlockContext;
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { t as __name } from "./chunk-BhWHdk3m.mjs";
|
|
|
2
2
|
import { z } from "@stackone/utils";
|
|
3
3
|
import { HttpMethod, IHttpClient, IMcpClient, McpClientConfig, McpServerProber, McpToolDefinition } from "@stackone/transport";
|
|
4
4
|
import { Account, Action, ActionAnnotations, AuthType, AuthenticationConfig, AuthenticationField, AuthenticationNotice, Block, BlockContext, Category, Checkpoint, Connector, ConnectorDocumentation, Cursor, CursorPaginationConfig, DataSyncConfig, DeltaTokenIncrementalConfig, Effect, EventToEmit, FlowType, IncrementalConfig, Input, InputLocation, OffsetPaginationConfig, PagePaginationConfig, PaginationConfig, ReleaseStage, Settings, Source, SourceType, Step, StepFunctionName, StepFunctionParams, StepFunctionsFactory, StreamType, SupportConfig, TestActionConfig, TimeFilterIncrementalConfig, TransportType, WebhookSetupPhase, WebhookSetupPhaseKind } from "@stackone/core";
|
|
5
|
-
import { ArgumentValue, CedarEvaluator, LevelPolicies, PrincipalRef, ToolDecision } from "@stackone/policy";
|
|
5
|
+
import { ArgumentValue, CedarEvaluator, FieldDecisions, LevelPolicies, PrincipalRef, ToolDecision } from "@stackone/policy";
|
|
6
6
|
import { IOlapClient } from "@stackone/olap";
|
|
7
7
|
import { ILogger } from "@stackone/logger";
|
|
8
8
|
|
|
@@ -5368,6 +5368,16 @@ type ActionPolicy = {
|
|
|
5368
5368
|
client?: string;
|
|
5369
5369
|
toolName?: string;
|
|
5370
5370
|
};
|
|
5371
|
+
declare const decideReadFields: (input: {
|
|
5372
|
+
policy: ActionPolicy;
|
|
5373
|
+
account: Account;
|
|
5374
|
+
action: Pick<Action, "id" | "categories">;
|
|
5375
|
+
paths: string[];
|
|
5376
|
+
authType?: AuthType;
|
|
5377
|
+
sessionId?: string;
|
|
5378
|
+
logger?: ILogger;
|
|
5379
|
+
evaluator?: CedarEvaluator;
|
|
5380
|
+
}) => Promise<FieldDecisions>;
|
|
5371
5381
|
declare const decideInvokeTool: (input: {
|
|
5372
5382
|
policy: ActionPolicy;
|
|
5373
5383
|
account: Account;
|
|
@@ -5504,6 +5514,7 @@ type BaseRunActionParams = {
|
|
|
5504
5514
|
policy?: ActionPolicy;
|
|
5505
5515
|
logger?: ILogger;
|
|
5506
5516
|
decideInvokeToolFn?: typeof decideInvokeTool;
|
|
5517
|
+
decideReadFieldsFn?: typeof decideReadFields;
|
|
5507
5518
|
parseConnector?: typeof parseYamlConnector;
|
|
5508
5519
|
parseActionInputsFn?: typeof parseActionInputs;
|
|
5509
5520
|
createBlockContextFn?: typeof createBlockContext;
|