@stackone/connect-sdk 3.10.0 → 3.12.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.cts CHANGED
@@ -1,4 +1,4 @@
1
- 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";
1
+ import { Account, ActingUser, 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";
2
2
  import { ILogger } from "@stackone/logger";
3
3
  import { IOlapClient, PolicyContext } from "@stackone/olap";
4
4
  import { HttpMethod, IHttpClient, IMcpClient, McpClientConfig, McpServerProber, McpToolDefinition } from "@stackone/transport";
@@ -12,6 +12,7 @@ declare const createBlock: ({
12
12
  connector,
13
13
  inputs,
14
14
  context,
15
+ user,
15
16
  action,
16
17
  credentials,
17
18
  nextCursor,
@@ -24,6 +25,7 @@ declare const createBlock: ({
24
25
  connector: Connector;
25
26
  inputs?: Record<string, unknown>;
26
27
  context: BlockContext;
28
+ user?: ActingUser;
27
29
  action?: Action;
28
30
  credentials?: Record<string, unknown>;
29
31
  nextCursor?: Cursor;
@@ -142,7 +144,7 @@ declare const resolveReleaseStageCounts: (counts: ReleaseStageCounts, owner: str
142
144
  declare const applyReleaseStageToConnector: (connector: Connector, allowedStages?: string[]) => Connector | undefined;
143
145
  //#endregion
144
146
  //#region src/errors/types.d.ts
145
- type ErrorType = 'CONNECTOR_PARSE_ERROR' | 'MISSING_ACTION_ERROR' | 'INCOMPATIBLE_AUTH_TYPE_ERROR' | 'INVALID_ACTION_INPUTS_ERROR' | 'INVALID_CURSOR_ERROR' | 'INVALID_EVENT_OUTPUT_ERROR' | 'POLICY_DENIED_ERROR' | 'POLICY_EVALUATION_ERROR' | 'POLICY_PREPARSE_ERROR';
147
+ type ErrorType = 'CONNECTOR_PARSE_ERROR' | 'MISSING_ACTION_ERROR' | 'INCOMPATIBLE_AUTH_TYPE_ERROR' | 'INVALID_ACTION_INPUTS_ERROR' | 'INVALID_CURSOR_ERROR' | 'INVALID_EVENT_OUTPUT_ERROR' | 'POLICY_DENIED_ERROR' | 'POLICY_EVALUATION_ERROR' | 'POLICY_PREPARSE_ERROR' | 'ACTING_USER_REQUIRED_ERROR';
146
148
  //#endregion
147
149
  //#region src/errors/connectSDKErrors.d.ts
148
150
  type InputValidationError = {
@@ -165,6 +167,9 @@ declare class InvalidActionInputsError extends ConnectSDKError {
165
167
  declare class IncompatibleAuthTypeError extends ConnectSDKError {
166
168
  constructor(context: BlockContext, message?: string);
167
169
  }
170
+ declare class ActingUserRequiredError extends ConnectSDKError {
171
+ constructor(context: BlockContext, message?: string);
172
+ }
168
173
  declare class InvalidEventOutputError extends ConnectSDKError {
169
174
  constructor(context: BlockContext, message?: string);
170
175
  }
@@ -451,6 +456,7 @@ declare const ACTION_SCHEMA: z.ZodObject<{
451
456
  body: "body";
452
457
  query: "query";
453
458
  }>;
459
+ startOffset: z.ZodOptional<z.ZodNumber>;
454
460
  defaultLimit: z.ZodOptional<z.ZodNumber>;
455
461
  }, z.core.$strict>;
456
462
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -511,6 +517,7 @@ declare const ACTION_SCHEMA: z.ZodObject<{
511
517
  }, z.core.$strict>>;
512
518
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
513
519
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
520
+ userScoped: z.ZodOptional<z.ZodBoolean>;
514
521
  }, z.core.$strict>;
515
522
  declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
516
523
  StackOne: z.ZodString;
@@ -1037,6 +1044,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
1037
1044
  body: "body";
1038
1045
  query: "query";
1039
1046
  }>;
1047
+ startOffset: z.ZodOptional<z.ZodNumber>;
1040
1048
  defaultLimit: z.ZodOptional<z.ZodNumber>;
1041
1049
  }, z.core.$strict>;
1042
1050
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -1097,6 +1105,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
1097
1105
  }, z.core.$strict>>;
1098
1106
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1099
1107
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1108
+ userScoped: z.ZodOptional<z.ZodBoolean>;
1100
1109
  actionType: z.ZodLiteral<"refresh_token">;
1101
1110
  }, z.core.$strict>;
1102
1111
  }, z.core.$strict>>;
@@ -1351,6 +1360,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
1351
1360
  body: "body";
1352
1361
  query: "query";
1353
1362
  }>;
1363
+ startOffset: z.ZodOptional<z.ZodNumber>;
1354
1364
  defaultLimit: z.ZodOptional<z.ZodNumber>;
1355
1365
  }, z.core.$strict>;
1356
1366
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -1411,6 +1421,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
1411
1421
  }, z.core.$strict>>;
1412
1422
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1413
1423
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1424
+ userScoped: z.ZodOptional<z.ZodBoolean>;
1414
1425
  }, z.core.$strict>]>;
1415
1426
  condition: z.ZodOptional<z.ZodString>;
1416
1427
  required: z.ZodDefault<z.ZodBoolean>;
@@ -1916,6 +1927,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
1916
1927
  body: "body";
1917
1928
  query: "query";
1918
1929
  }>;
1930
+ startOffset: z.ZodOptional<z.ZodNumber>;
1919
1931
  defaultLimit: z.ZodOptional<z.ZodNumber>;
1920
1932
  }, z.core.$strict>;
1921
1933
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -1976,6 +1988,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
1976
1988
  }, z.core.$strict>>;
1977
1989
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1978
1990
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1991
+ userScoped: z.ZodOptional<z.ZodBoolean>;
1979
1992
  actionType: z.ZodLiteral<"refresh_token">;
1980
1993
  }, z.core.$strict>;
1981
1994
  }, z.core.$strict>>;
@@ -2230,6 +2243,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
2230
2243
  body: "body";
2231
2244
  query: "query";
2232
2245
  }>;
2246
+ startOffset: z.ZodOptional<z.ZodNumber>;
2233
2247
  defaultLimit: z.ZodOptional<z.ZodNumber>;
2234
2248
  }, z.core.$strict>;
2235
2249
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -2290,6 +2304,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
2290
2304
  }, z.core.$strict>>;
2291
2305
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
2292
2306
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2307
+ userScoped: z.ZodOptional<z.ZodBoolean>;
2293
2308
  }, z.core.$strict>]>;
2294
2309
  condition: z.ZodOptional<z.ZodString>;
2295
2310
  required: z.ZodDefault<z.ZodBoolean>;
@@ -2791,6 +2806,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
2791
2806
  body: "body";
2792
2807
  query: "query";
2793
2808
  }>;
2809
+ startOffset: z.ZodOptional<z.ZodNumber>;
2794
2810
  defaultLimit: z.ZodOptional<z.ZodNumber>;
2795
2811
  }, z.core.$strict>;
2796
2812
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -2851,6 +2867,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
2851
2867
  }, z.core.$strict>>;
2852
2868
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
2853
2869
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2870
+ userScoped: z.ZodOptional<z.ZodBoolean>;
2854
2871
  actionType: z.ZodLiteral<"refresh_token">;
2855
2872
  }, z.core.$strict>;
2856
2873
  }, z.core.$strict>>;
@@ -3105,6 +3122,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
3105
3122
  body: "body";
3106
3123
  query: "query";
3107
3124
  }>;
3125
+ startOffset: z.ZodOptional<z.ZodNumber>;
3108
3126
  defaultLimit: z.ZodOptional<z.ZodNumber>;
3109
3127
  }, z.core.$strict>;
3110
3128
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -3165,6 +3183,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
3165
3183
  }, z.core.$strict>>;
3166
3184
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
3167
3185
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
3186
+ userScoped: z.ZodOptional<z.ZodBoolean>;
3168
3187
  }, z.core.$strict>]>;
3169
3188
  condition: z.ZodOptional<z.ZodString>;
3170
3189
  required: z.ZodDefault<z.ZodBoolean>;
@@ -3666,6 +3685,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
3666
3685
  body: "body";
3667
3686
  query: "query";
3668
3687
  }>;
3688
+ startOffset: z.ZodOptional<z.ZodNumber>;
3669
3689
  defaultLimit: z.ZodOptional<z.ZodNumber>;
3670
3690
  }, z.core.$strict>;
3671
3691
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -3726,6 +3746,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
3726
3746
  }, z.core.$strict>>;
3727
3747
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
3728
3748
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
3749
+ userScoped: z.ZodOptional<z.ZodBoolean>;
3729
3750
  actionType: z.ZodLiteral<"refresh_token">;
3730
3751
  }, z.core.$strict>;
3731
3752
  }, z.core.$strict>>;
@@ -3980,6 +4001,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
3980
4001
  body: "body";
3981
4002
  query: "query";
3982
4003
  }>;
4004
+ startOffset: z.ZodOptional<z.ZodNumber>;
3983
4005
  defaultLimit: z.ZodOptional<z.ZodNumber>;
3984
4006
  }, z.core.$strict>;
3985
4007
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -4040,6 +4062,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
4040
4062
  }, z.core.$strict>>;
4041
4063
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
4042
4064
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4065
+ userScoped: z.ZodOptional<z.ZodBoolean>;
4043
4066
  }, z.core.$strict>]>;
4044
4067
  condition: z.ZodOptional<z.ZodString>;
4045
4068
  required: z.ZodDefault<z.ZodBoolean>;
@@ -4305,6 +4328,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
4305
4328
  body: "body";
4306
4329
  query: "query";
4307
4330
  }>;
4331
+ startOffset: z.ZodOptional<z.ZodNumber>;
4308
4332
  defaultLimit: z.ZodOptional<z.ZodNumber>;
4309
4333
  }, z.core.$strict>;
4310
4334
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -4365,6 +4389,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
4365
4389
  }, z.core.$strict>>;
4366
4390
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
4367
4391
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4392
+ userScoped: z.ZodOptional<z.ZodBoolean>;
4368
4393
  }, z.core.$strict>>>;
4369
4394
  events: z.ZodOptional<z.ZodObject<{
4370
4395
  setup: z.ZodOptional<z.ZodObject<{
@@ -4731,6 +4756,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
4731
4756
  body: "body";
4732
4757
  query: "query";
4733
4758
  }>;
4759
+ startOffset: z.ZodOptional<z.ZodNumber>;
4734
4760
  defaultLimit: z.ZodOptional<z.ZodNumber>;
4735
4761
  }, z.core.$strict>;
4736
4762
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -4791,6 +4817,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
4791
4817
  }, z.core.$strict>>;
4792
4818
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
4793
4819
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4820
+ userScoped: z.ZodOptional<z.ZodBoolean>;
4794
4821
  actionType: z.ZodLiteral<"event">;
4795
4822
  requiresManualSetup: z.ZodOptional<z.ZodBoolean>;
4796
4823
  }, z.core.$strict>>>;
@@ -5049,6 +5076,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
5049
5076
  body: "body";
5050
5077
  query: "query";
5051
5078
  }>;
5079
+ startOffset: z.ZodOptional<z.ZodNumber>;
5052
5080
  defaultLimit: z.ZodOptional<z.ZodNumber>;
5053
5081
  }, z.core.$strict>;
5054
5082
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -5109,6 +5137,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
5109
5137
  }, z.core.$strict>>;
5110
5138
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
5111
5139
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
5140
+ userScoped: z.ZodOptional<z.ZodBoolean>;
5112
5141
  actionType: z.ZodLiteral<"custom">;
5113
5142
  result: z.ZodString;
5114
5143
  }, z.core.$strict>>;
@@ -5178,6 +5207,7 @@ interface Paginator {
5178
5207
  computeNextInputs(args: {
5179
5208
  previousResponse: Block | undefined;
5180
5209
  currentIteration: number;
5210
+ recordsRetrieved?: number;
5181
5211
  }): Record<string, unknown>;
5182
5212
  extractData(response: Block): unknown[];
5183
5213
  isExhausted(response: Block, currentIteration: number): boolean;
@@ -5343,6 +5373,7 @@ interface MetaAction {
5343
5373
  releaseStage?: ReleaseStage;
5344
5374
  effects?: Effect[];
5345
5375
  annotations?: ActionAnnotations;
5376
+ userScoped?: boolean;
5346
5377
  [key: string]: unknown;
5347
5378
  }
5348
5379
  type ConnectorMetaAuthenticationConfig = {
@@ -5379,6 +5410,7 @@ type ConnectorMetaAction = {
5379
5410
  release_stage?: ReleaseStage;
5380
5411
  effects?: Effect[];
5381
5412
  annotations?: ActionAnnotations;
5413
+ user_scoped?: boolean;
5382
5414
  action_details?: MetaAction;
5383
5415
  authentication: ActionMetaAuthenticationConfig[];
5384
5416
  };
@@ -5600,6 +5632,7 @@ type BaseRunActionParams = {
5600
5632
  headers?: Record<string, string>;
5601
5633
  settings?: Settings;
5602
5634
  source?: Source;
5635
+ user?: ActingUser;
5603
5636
  policy?: ActionPolicy;
5604
5637
  logger?: ILogger;
5605
5638
  decideInvokeToolFn?: typeof decideInvokeTool;
@@ -5672,7 +5705,7 @@ type ExecutedAction = {
5672
5705
  };
5673
5706
  } | {
5674
5707
  outcome: 'refused';
5675
- policy: PolicyContext;
5708
+ policy?: PolicyContext;
5676
5709
  error: ConnectSDKError;
5677
5710
  };
5678
5711
  declare const applyDefender: ({
@@ -5893,4 +5926,4 @@ declare const runWebhookSetupPhase: ({
5893
5926
  runStepActionFn?: typeof runStepAction;
5894
5927
  }) => Promise<WebhookSetupPhaseResult>;
5895
5928
  //#endregion
5896
- export { ACTION_SCHEMA, type ActionMetaAuthenticationConfig, type ActionPolicy, CATEGORY_ACRONYMS, CONNECTOR_YAML_SCHEMA, type CallAction, type CompleteMcpConnectorOptions, type CompletedMcpConnector, ConnectSDKError, type ConnectorMeta, type ConnectorMetaEvent, type ConnectorMetaSummary, type CreatePaginatorOptions, DEFAULT_TIME_FILTER_SAFETY_BUFFER_SECONDS, DELTA_TOKEN_INCREMENTAL_SCHEMA, type EnabledActionsConfig, type ErrorType, type GenerateMcpConnectorInput, type GeneratedMcpConnector, INCREMENTAL_SCHEMA, IncompatibleAuthTypeError, type IncrementalStrategy, type InputValidationError, InvalidActionInputsError, InvalidEventOutputError, POLICY_ERROR_STATUS, type PaginateOptions, type PaginateResult, type PaginationProgress, type Paginator, PolicyDeniedError, type PolicyErrorType, PolicyEvaluationError, PolicyPreparseError, type ReleaseStageCountGroup, type ReleaseStageCounts, type ReleaseStageCountsResolution, type ReleaseStageProfile, type ReleaseStageProfileItem, type ReleaseStageResolution, TIME_FILTER_INCREMENTAL_SCHEMA, type ValidationError, type ValidationErrorResponse, type WebhookSetupPhaseResult, addMcpToolActions, applyDefender, applyReleaseStageResolutionToMeta, applyReleaseStageToConnector, buildReleaseStageProfile, completeMcpConnector, computeCredentialsVerifiedByAuth, countReleaseStageProfile, createBlock, createCursorPaginator, createDeltaTokenStrategy, createIncrementalStrategy, createOffsetPaginator, createPagePaginator, createPaginator, createTimeFilterStrategy, decideInvokeTool, decideReadFields, evaluateExternalAccountIdExtractorByConnector, executeStepFunction, extractItems, fieldPathsOf, filterActionsByAuthType, formatValidationErrorResponse, generateMcpConnector, getActionAuthenticationMethods, getActionFromUrl, getActionMeta, getActionsMeta, getActionsMetaFromConnectors, getActionsMetaSummary, getActionsMetaSummaryFromConnectors, getRefreshTokenExpiresIn, getTokenExpiresIn, hasCatastrophicBacktrackingRisk, isConnectorReleased, isMcpConnector, isPolicyErrorType, loadConnector, maskFields, paginate, parseActionInputs, parseYamlConnector, resolveReleaseStageCounts, resolveReleaseStageProfile, runAction, runConnectorActionById, runConnectorActionByPath, runEventActionById, runStepAction, runTestActions, runWebhookSetupPhase, supportsRefreshAuthentication, validateYamlConnector };
5929
+ export { ACTION_SCHEMA, ActingUserRequiredError, type ActionMetaAuthenticationConfig, type ActionPolicy, CATEGORY_ACRONYMS, CONNECTOR_YAML_SCHEMA, type CallAction, type CompleteMcpConnectorOptions, type CompletedMcpConnector, ConnectSDKError, type ConnectorMeta, type ConnectorMetaEvent, type ConnectorMetaSummary, type CreatePaginatorOptions, DEFAULT_TIME_FILTER_SAFETY_BUFFER_SECONDS, DELTA_TOKEN_INCREMENTAL_SCHEMA, type EnabledActionsConfig, type ErrorType, type GenerateMcpConnectorInput, type GeneratedMcpConnector, INCREMENTAL_SCHEMA, IncompatibleAuthTypeError, type IncrementalStrategy, type InputValidationError, InvalidActionInputsError, InvalidEventOutputError, POLICY_ERROR_STATUS, type PaginateOptions, type PaginateResult, type PaginationProgress, type Paginator, PolicyDeniedError, type PolicyErrorType, PolicyEvaluationError, PolicyPreparseError, type ReleaseStageCountGroup, type ReleaseStageCounts, type ReleaseStageCountsResolution, type ReleaseStageProfile, type ReleaseStageProfileItem, type ReleaseStageResolution, TIME_FILTER_INCREMENTAL_SCHEMA, type ValidationError, type ValidationErrorResponse, type WebhookSetupPhaseResult, addMcpToolActions, applyDefender, applyReleaseStageResolutionToMeta, applyReleaseStageToConnector, buildReleaseStageProfile, completeMcpConnector, computeCredentialsVerifiedByAuth, countReleaseStageProfile, createBlock, createCursorPaginator, createDeltaTokenStrategy, createIncrementalStrategy, createOffsetPaginator, createPagePaginator, createPaginator, createTimeFilterStrategy, decideInvokeTool, decideReadFields, evaluateExternalAccountIdExtractorByConnector, executeStepFunction, extractItems, fieldPathsOf, filterActionsByAuthType, formatValidationErrorResponse, generateMcpConnector, getActionAuthenticationMethods, getActionFromUrl, getActionMeta, getActionsMeta, getActionsMetaFromConnectors, getActionsMetaSummary, getActionsMetaSummaryFromConnectors, getRefreshTokenExpiresIn, getTokenExpiresIn, hasCatastrophicBacktrackingRisk, isConnectorReleased, isMcpConnector, isPolicyErrorType, loadConnector, maskFields, paginate, parseActionInputs, parseYamlConnector, resolveReleaseStageCounts, resolveReleaseStageProfile, runAction, runConnectorActionById, runConnectorActionByPath, runEventActionById, runStepAction, runTestActions, runWebhookSetupPhase, supportsRefreshAuthentication, validateYamlConnector };
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  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
- 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";
4
+ import { Account, ActingUser, 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
5
  import { ArgumentValue, CedarEvaluator, FieldDecisions, LevelPolicies, PrincipalRef, ToolDecision } from "@stackone/policy";
6
6
  import { IOlapClient, PolicyContext } from "@stackone/olap";
7
7
  import { ILogger } from "@stackone/logger";
@@ -11,6 +11,7 @@ declare const createBlock: ({
11
11
  connector,
12
12
  inputs,
13
13
  context,
14
+ user,
14
15
  action,
15
16
  credentials,
16
17
  nextCursor,
@@ -23,6 +24,7 @@ declare const createBlock: ({
23
24
  connector: Connector;
24
25
  inputs?: Record<string, unknown>;
25
26
  context: BlockContext;
27
+ user?: ActingUser;
26
28
  action?: Action;
27
29
  credentials?: Record<string, unknown>;
28
30
  nextCursor?: Cursor;
@@ -141,7 +143,7 @@ declare const resolveReleaseStageCounts: (counts: ReleaseStageCounts, owner: str
141
143
  declare const applyReleaseStageToConnector: (connector: Connector, allowedStages?: string[]) => Connector | undefined;
142
144
  //#endregion
143
145
  //#region src/errors/types.d.ts
144
- type ErrorType = 'CONNECTOR_PARSE_ERROR' | 'MISSING_ACTION_ERROR' | 'INCOMPATIBLE_AUTH_TYPE_ERROR' | 'INVALID_ACTION_INPUTS_ERROR' | 'INVALID_CURSOR_ERROR' | 'INVALID_EVENT_OUTPUT_ERROR' | 'POLICY_DENIED_ERROR' | 'POLICY_EVALUATION_ERROR' | 'POLICY_PREPARSE_ERROR';
146
+ type ErrorType = 'CONNECTOR_PARSE_ERROR' | 'MISSING_ACTION_ERROR' | 'INCOMPATIBLE_AUTH_TYPE_ERROR' | 'INVALID_ACTION_INPUTS_ERROR' | 'INVALID_CURSOR_ERROR' | 'INVALID_EVENT_OUTPUT_ERROR' | 'POLICY_DENIED_ERROR' | 'POLICY_EVALUATION_ERROR' | 'POLICY_PREPARSE_ERROR' | 'ACTING_USER_REQUIRED_ERROR';
145
147
  //#endregion
146
148
  //#region src/errors/connectSDKErrors.d.ts
147
149
  type InputValidationError = {
@@ -164,6 +166,9 @@ declare class InvalidActionInputsError extends ConnectSDKError {
164
166
  declare class IncompatibleAuthTypeError extends ConnectSDKError {
165
167
  constructor(context: BlockContext, message?: string);
166
168
  }
169
+ declare class ActingUserRequiredError extends ConnectSDKError {
170
+ constructor(context: BlockContext, message?: string);
171
+ }
167
172
  declare class InvalidEventOutputError extends ConnectSDKError {
168
173
  constructor(context: BlockContext, message?: string);
169
174
  }
@@ -450,6 +455,7 @@ declare const ACTION_SCHEMA: z.ZodObject<{
450
455
  body: "body";
451
456
  query: "query";
452
457
  }>;
458
+ startOffset: z.ZodOptional<z.ZodNumber>;
453
459
  defaultLimit: z.ZodOptional<z.ZodNumber>;
454
460
  }, z.core.$strict>;
455
461
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -510,6 +516,7 @@ declare const ACTION_SCHEMA: z.ZodObject<{
510
516
  }, z.core.$strict>>;
511
517
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
512
518
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
519
+ userScoped: z.ZodOptional<z.ZodBoolean>;
513
520
  }, z.core.$strict>;
514
521
  declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
515
522
  StackOne: z.ZodString;
@@ -1036,6 +1043,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
1036
1043
  body: "body";
1037
1044
  query: "query";
1038
1045
  }>;
1046
+ startOffset: z.ZodOptional<z.ZodNumber>;
1039
1047
  defaultLimit: z.ZodOptional<z.ZodNumber>;
1040
1048
  }, z.core.$strict>;
1041
1049
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -1096,6 +1104,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
1096
1104
  }, z.core.$strict>>;
1097
1105
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1098
1106
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1107
+ userScoped: z.ZodOptional<z.ZodBoolean>;
1099
1108
  actionType: z.ZodLiteral<"refresh_token">;
1100
1109
  }, z.core.$strict>;
1101
1110
  }, z.core.$strict>>;
@@ -1350,6 +1359,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
1350
1359
  body: "body";
1351
1360
  query: "query";
1352
1361
  }>;
1362
+ startOffset: z.ZodOptional<z.ZodNumber>;
1353
1363
  defaultLimit: z.ZodOptional<z.ZodNumber>;
1354
1364
  }, z.core.$strict>;
1355
1365
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -1410,6 +1420,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
1410
1420
  }, z.core.$strict>>;
1411
1421
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1412
1422
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1423
+ userScoped: z.ZodOptional<z.ZodBoolean>;
1413
1424
  }, z.core.$strict>]>;
1414
1425
  condition: z.ZodOptional<z.ZodString>;
1415
1426
  required: z.ZodDefault<z.ZodBoolean>;
@@ -1915,6 +1926,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
1915
1926
  body: "body";
1916
1927
  query: "query";
1917
1928
  }>;
1929
+ startOffset: z.ZodOptional<z.ZodNumber>;
1918
1930
  defaultLimit: z.ZodOptional<z.ZodNumber>;
1919
1931
  }, z.core.$strict>;
1920
1932
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -1975,6 +1987,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
1975
1987
  }, z.core.$strict>>;
1976
1988
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1977
1989
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1990
+ userScoped: z.ZodOptional<z.ZodBoolean>;
1978
1991
  actionType: z.ZodLiteral<"refresh_token">;
1979
1992
  }, z.core.$strict>;
1980
1993
  }, z.core.$strict>>;
@@ -2229,6 +2242,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
2229
2242
  body: "body";
2230
2243
  query: "query";
2231
2244
  }>;
2245
+ startOffset: z.ZodOptional<z.ZodNumber>;
2232
2246
  defaultLimit: z.ZodOptional<z.ZodNumber>;
2233
2247
  }, z.core.$strict>;
2234
2248
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -2289,6 +2303,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
2289
2303
  }, z.core.$strict>>;
2290
2304
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
2291
2305
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2306
+ userScoped: z.ZodOptional<z.ZodBoolean>;
2292
2307
  }, z.core.$strict>]>;
2293
2308
  condition: z.ZodOptional<z.ZodString>;
2294
2309
  required: z.ZodDefault<z.ZodBoolean>;
@@ -2790,6 +2805,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
2790
2805
  body: "body";
2791
2806
  query: "query";
2792
2807
  }>;
2808
+ startOffset: z.ZodOptional<z.ZodNumber>;
2793
2809
  defaultLimit: z.ZodOptional<z.ZodNumber>;
2794
2810
  }, z.core.$strict>;
2795
2811
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -2850,6 +2866,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
2850
2866
  }, z.core.$strict>>;
2851
2867
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
2852
2868
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2869
+ userScoped: z.ZodOptional<z.ZodBoolean>;
2853
2870
  actionType: z.ZodLiteral<"refresh_token">;
2854
2871
  }, z.core.$strict>;
2855
2872
  }, z.core.$strict>>;
@@ -3104,6 +3121,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
3104
3121
  body: "body";
3105
3122
  query: "query";
3106
3123
  }>;
3124
+ startOffset: z.ZodOptional<z.ZodNumber>;
3107
3125
  defaultLimit: z.ZodOptional<z.ZodNumber>;
3108
3126
  }, z.core.$strict>;
3109
3127
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -3164,6 +3182,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
3164
3182
  }, z.core.$strict>>;
3165
3183
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
3166
3184
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
3185
+ userScoped: z.ZodOptional<z.ZodBoolean>;
3167
3186
  }, z.core.$strict>]>;
3168
3187
  condition: z.ZodOptional<z.ZodString>;
3169
3188
  required: z.ZodDefault<z.ZodBoolean>;
@@ -3665,6 +3684,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
3665
3684
  body: "body";
3666
3685
  query: "query";
3667
3686
  }>;
3687
+ startOffset: z.ZodOptional<z.ZodNumber>;
3668
3688
  defaultLimit: z.ZodOptional<z.ZodNumber>;
3669
3689
  }, z.core.$strict>;
3670
3690
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -3725,6 +3745,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
3725
3745
  }, z.core.$strict>>;
3726
3746
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
3727
3747
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
3748
+ userScoped: z.ZodOptional<z.ZodBoolean>;
3728
3749
  actionType: z.ZodLiteral<"refresh_token">;
3729
3750
  }, z.core.$strict>;
3730
3751
  }, z.core.$strict>>;
@@ -3979,6 +4000,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
3979
4000
  body: "body";
3980
4001
  query: "query";
3981
4002
  }>;
4003
+ startOffset: z.ZodOptional<z.ZodNumber>;
3982
4004
  defaultLimit: z.ZodOptional<z.ZodNumber>;
3983
4005
  }, z.core.$strict>;
3984
4006
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -4039,6 +4061,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
4039
4061
  }, z.core.$strict>>;
4040
4062
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
4041
4063
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4064
+ userScoped: z.ZodOptional<z.ZodBoolean>;
4042
4065
  }, z.core.$strict>]>;
4043
4066
  condition: z.ZodOptional<z.ZodString>;
4044
4067
  required: z.ZodDefault<z.ZodBoolean>;
@@ -4304,6 +4327,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
4304
4327
  body: "body";
4305
4328
  query: "query";
4306
4329
  }>;
4330
+ startOffset: z.ZodOptional<z.ZodNumber>;
4307
4331
  defaultLimit: z.ZodOptional<z.ZodNumber>;
4308
4332
  }, z.core.$strict>;
4309
4333
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -4364,6 +4388,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
4364
4388
  }, z.core.$strict>>;
4365
4389
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
4366
4390
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4391
+ userScoped: z.ZodOptional<z.ZodBoolean>;
4367
4392
  }, z.core.$strict>>>;
4368
4393
  events: z.ZodOptional<z.ZodObject<{
4369
4394
  setup: z.ZodOptional<z.ZodObject<{
@@ -4730,6 +4755,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
4730
4755
  body: "body";
4731
4756
  query: "query";
4732
4757
  }>;
4758
+ startOffset: z.ZodOptional<z.ZodNumber>;
4733
4759
  defaultLimit: z.ZodOptional<z.ZodNumber>;
4734
4760
  }, z.core.$strict>;
4735
4761
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -4790,6 +4816,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
4790
4816
  }, z.core.$strict>>;
4791
4817
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
4792
4818
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4819
+ userScoped: z.ZodOptional<z.ZodBoolean>;
4793
4820
  actionType: z.ZodLiteral<"event">;
4794
4821
  requiresManualSetup: z.ZodOptional<z.ZodBoolean>;
4795
4822
  }, z.core.$strict>>>;
@@ -5048,6 +5075,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
5048
5075
  body: "body";
5049
5076
  query: "query";
5050
5077
  }>;
5078
+ startOffset: z.ZodOptional<z.ZodNumber>;
5051
5079
  defaultLimit: z.ZodOptional<z.ZodNumber>;
5052
5080
  }, z.core.$strict>;
5053
5081
  stopCondition: z.ZodOptional<z.ZodString>;
@@ -5108,6 +5136,7 @@ declare const CONNECTOR_YAML_SCHEMA: z.ZodObject<{
5108
5136
  }, z.core.$strict>>;
5109
5137
  providerEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
5110
5138
  prerequisiteActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
5139
+ userScoped: z.ZodOptional<z.ZodBoolean>;
5111
5140
  actionType: z.ZodLiteral<"custom">;
5112
5141
  result: z.ZodString;
5113
5142
  }, z.core.$strict>>;
@@ -5177,6 +5206,7 @@ interface Paginator {
5177
5206
  computeNextInputs(args: {
5178
5207
  previousResponse: Block | undefined;
5179
5208
  currentIteration: number;
5209
+ recordsRetrieved?: number;
5180
5210
  }): Record<string, unknown>;
5181
5211
  extractData(response: Block): unknown[];
5182
5212
  isExhausted(response: Block, currentIteration: number): boolean;
@@ -5342,6 +5372,7 @@ interface MetaAction {
5342
5372
  releaseStage?: ReleaseStage;
5343
5373
  effects?: Effect[];
5344
5374
  annotations?: ActionAnnotations;
5375
+ userScoped?: boolean;
5345
5376
  [key: string]: unknown;
5346
5377
  }
5347
5378
  type ConnectorMetaAuthenticationConfig = {
@@ -5378,6 +5409,7 @@ type ConnectorMetaAction = {
5378
5409
  release_stage?: ReleaseStage;
5379
5410
  effects?: Effect[];
5380
5411
  annotations?: ActionAnnotations;
5412
+ user_scoped?: boolean;
5381
5413
  action_details?: MetaAction;
5382
5414
  authentication: ActionMetaAuthenticationConfig[];
5383
5415
  };
@@ -5599,6 +5631,7 @@ type BaseRunActionParams = {
5599
5631
  headers?: Record<string, string>;
5600
5632
  settings?: Settings;
5601
5633
  source?: Source;
5634
+ user?: ActingUser;
5602
5635
  policy?: ActionPolicy;
5603
5636
  logger?: ILogger;
5604
5637
  decideInvokeToolFn?: typeof decideInvokeTool;
@@ -5671,7 +5704,7 @@ type ExecutedAction = {
5671
5704
  };
5672
5705
  } | {
5673
5706
  outcome: 'refused';
5674
- policy: PolicyContext;
5707
+ policy?: PolicyContext;
5675
5708
  error: ConnectSDKError;
5676
5709
  };
5677
5710
  declare const applyDefender: ({
@@ -5892,4 +5925,4 @@ declare const runWebhookSetupPhase: ({
5892
5925
  runStepActionFn?: typeof runStepAction;
5893
5926
  }) => Promise<WebhookSetupPhaseResult>;
5894
5927
  //#endregion
5895
- export { ACTION_SCHEMA, type ActionMetaAuthenticationConfig, type ActionPolicy, CATEGORY_ACRONYMS, CONNECTOR_YAML_SCHEMA, type CallAction, type CompleteMcpConnectorOptions, type CompletedMcpConnector, ConnectSDKError, type ConnectorMeta, type ConnectorMetaEvent, type ConnectorMetaSummary, type CreatePaginatorOptions, DEFAULT_TIME_FILTER_SAFETY_BUFFER_SECONDS, DELTA_TOKEN_INCREMENTAL_SCHEMA, type EnabledActionsConfig, type ErrorType, type GenerateMcpConnectorInput, type GeneratedMcpConnector, INCREMENTAL_SCHEMA, IncompatibleAuthTypeError, type IncrementalStrategy, type InputValidationError, InvalidActionInputsError, InvalidEventOutputError, POLICY_ERROR_STATUS, type PaginateOptions, type PaginateResult, type PaginationProgress, type Paginator, PolicyDeniedError, type PolicyErrorType, PolicyEvaluationError, PolicyPreparseError, type ReleaseStageCountGroup, type ReleaseStageCounts, type ReleaseStageCountsResolution, type ReleaseStageProfile, type ReleaseStageProfileItem, type ReleaseStageResolution, TIME_FILTER_INCREMENTAL_SCHEMA, type ValidationError, type ValidationErrorResponse, type WebhookSetupPhaseResult, addMcpToolActions, applyDefender, applyReleaseStageResolutionToMeta, applyReleaseStageToConnector, buildReleaseStageProfile, completeMcpConnector, computeCredentialsVerifiedByAuth, countReleaseStageProfile, createBlock, createCursorPaginator, createDeltaTokenStrategy, createIncrementalStrategy, createOffsetPaginator, createPagePaginator, createPaginator, createTimeFilterStrategy, decideInvokeTool, decideReadFields, evaluateExternalAccountIdExtractorByConnector, executeStepFunction, extractItems, fieldPathsOf, filterActionsByAuthType, formatValidationErrorResponse, generateMcpConnector, getActionAuthenticationMethods, getActionFromUrl, getActionMeta, getActionsMeta, getActionsMetaFromConnectors, getActionsMetaSummary, getActionsMetaSummaryFromConnectors, getRefreshTokenExpiresIn, getTokenExpiresIn, hasCatastrophicBacktrackingRisk, isConnectorReleased, isMcpConnector, isPolicyErrorType, loadConnector, maskFields, paginate, parseActionInputs, parseYamlConnector, resolveReleaseStageCounts, resolveReleaseStageProfile, runAction, runConnectorActionById, runConnectorActionByPath, runEventActionById, runStepAction, runTestActions, runWebhookSetupPhase, supportsRefreshAuthentication, validateYamlConnector };
5928
+ export { ACTION_SCHEMA, ActingUserRequiredError, type ActionMetaAuthenticationConfig, type ActionPolicy, CATEGORY_ACRONYMS, CONNECTOR_YAML_SCHEMA, type CallAction, type CompleteMcpConnectorOptions, type CompletedMcpConnector, ConnectSDKError, type ConnectorMeta, type ConnectorMetaEvent, type ConnectorMetaSummary, type CreatePaginatorOptions, DEFAULT_TIME_FILTER_SAFETY_BUFFER_SECONDS, DELTA_TOKEN_INCREMENTAL_SCHEMA, type EnabledActionsConfig, type ErrorType, type GenerateMcpConnectorInput, type GeneratedMcpConnector, INCREMENTAL_SCHEMA, IncompatibleAuthTypeError, type IncrementalStrategy, type InputValidationError, InvalidActionInputsError, InvalidEventOutputError, POLICY_ERROR_STATUS, type PaginateOptions, type PaginateResult, type PaginationProgress, type Paginator, PolicyDeniedError, type PolicyErrorType, PolicyEvaluationError, PolicyPreparseError, type ReleaseStageCountGroup, type ReleaseStageCounts, type ReleaseStageCountsResolution, type ReleaseStageProfile, type ReleaseStageProfileItem, type ReleaseStageResolution, TIME_FILTER_INCREMENTAL_SCHEMA, type ValidationError, type ValidationErrorResponse, type WebhookSetupPhaseResult, addMcpToolActions, applyDefender, applyReleaseStageResolutionToMeta, applyReleaseStageToConnector, buildReleaseStageProfile, completeMcpConnector, computeCredentialsVerifiedByAuth, countReleaseStageProfile, createBlock, createCursorPaginator, createDeltaTokenStrategy, createIncrementalStrategy, createOffsetPaginator, createPagePaginator, createPaginator, createTimeFilterStrategy, decideInvokeTool, decideReadFields, evaluateExternalAccountIdExtractorByConnector, executeStepFunction, extractItems, fieldPathsOf, filterActionsByAuthType, formatValidationErrorResponse, generateMcpConnector, getActionAuthenticationMethods, getActionFromUrl, getActionMeta, getActionsMeta, getActionsMetaFromConnectors, getActionsMetaSummary, getActionsMetaSummaryFromConnectors, getRefreshTokenExpiresIn, getTokenExpiresIn, hasCatastrophicBacktrackingRisk, isConnectorReleased, isMcpConnector, isPolicyErrorType, loadConnector, maskFields, paginate, parseActionInputs, parseYamlConnector, resolveReleaseStageCounts, resolveReleaseStageProfile, runAction, runConnectorActionById, runConnectorActionByPath, runEventActionById, runStepAction, runTestActions, runWebhookSetupPhase, supportsRefreshAuthentication, validateYamlConnector };