@stackone/connect-sdk 3.14.0 → 3.16.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
@@ -5485,6 +5485,7 @@ declare const fieldPathsOf: (payload: unknown, options?: {
5485
5485
  truncated: boolean;
5486
5486
  valueTypes: Record<string, FieldValueType>;
5487
5487
  neighbours: Record<string, FieldNeighbours>;
5488
+ identifierPaths: string[];
5488
5489
  };
5489
5490
  declare const labelKeyOf: (path: string) => string;
5490
5491
  //#endregion
@@ -5507,10 +5508,11 @@ type PolicyCall = {
5507
5508
  declare const decideReadFields: (input: {
5508
5509
  policy: ActionPolicy;
5509
5510
  account: Account;
5510
- action: Pick<Action, "id" | "categories"> & Partial<Pick<Action, "description">>;
5511
+ action: Pick<Action, "id" | "categories"> & Partial<Pick<Action, "description" | "steps">>;
5511
5512
  paths: string[];
5512
5513
  valueTypes?: Record<string, FieldValueType>;
5513
5514
  neighbours?: Record<string, FieldNeighbours>;
5515
+ identifierPaths?: string[];
5514
5516
  authType?: AuthType;
5515
5517
  sessionId?: string;
5516
5518
  logger?: ILogger;
@@ -5555,6 +5557,7 @@ type LabelEvidence = {
5555
5557
  connector: string;
5556
5558
  action: string;
5557
5559
  actionDescription?: string;
5560
+ requests: string[];
5558
5561
  valueType: FieldValueType;
5559
5562
  parent: string;
5560
5563
  siblings: string[];
@@ -5585,6 +5588,7 @@ type LabelDecision = {
5585
5588
  };
5586
5589
  declare const labelsReferencedBy: (levels: LevelPolicies[]) => string[];
5587
5590
  declare const unlabelledAllowPolicyIdsOf: (levels: LevelPolicies[]) => Set<string>;
5591
+ declare const providerRequestsOf: (action: Partial<Pick<Action, "steps">>) => string[];
5588
5592
  type LabellingOutcome = {
5589
5593
  decisions: LabelDecision[];
5590
5594
  unanswered: string[];
@@ -5998,4 +6002,4 @@ declare const runWebhookSetupPhase: ({
5998
6002
  runStepActionFn?: typeof runStepAction;
5999
6003
  }) => Promise<WebhookSetupPhaseResult>;
6000
6004
  //#endregion
6001
- 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 FieldLabeller, type FieldValueType, type GenerateMcpConnectorInput, type GeneratedMcpConnector, INCREMENTAL_SCHEMA, IncompatibleAuthTypeError, type IncrementalStrategy, type InputValidationError, InvalidActionInputsError, InvalidEventOutputError, type LabelAnswer, type LabelDecision, type LabelEvidence, type LabelQuestion, type LabellingOutcome, MAX_FIELD_PATHS, POLICY_ERROR_STATUS, type PaginateOptions, type PaginateResult, type PaginationProgress, type Paginator, PolicyDeniedError, type PolicyErrorType, PolicyEvaluationError, PolicyPreparseError, type Refusal, type RefusalType, 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, createLabellingDecideReadFields, createOffsetPaginator, createPagePaginator, createPaginator, createTimeFilterStrategy, decideInvokeTool, decideReadFields, definitionVersionOf, evaluateExternalAccountIdExtractorByConnector, executeStepFunction, extractItems, fieldPathsOf, filterActionsByAuthType, formatValidationErrorResponse, generateMcpConnector, getActionAuthenticationMethods, getActionFromUrl, getActionMeta, getActionsMeta, getActionsMetaFromConnectors, getActionsMetaSummary, getActionsMetaSummaryFromConnectors, getRefreshTokenExpiresIn, getTokenExpiresIn, hasCatastrophicBacktrackingRisk, isConnectorReleased, isMcpConnector, isPolicyErrorType, labelKeyOf, labelsReferencedBy, loadConnector, maskFields, paginate, parseActionInputs, parseYamlConnector, refusalOf, resolveReleaseStageCounts, resolveReleaseStageProfile, runAction, runConnectorActionById, runConnectorActionByPath, runEventActionById, runStepAction, runTestActions, runWebhookSetupPhase, supportsRefreshAuthentication, unlabelledAllowPolicyIdsOf, validateYamlConnector };
6005
+ 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 FieldLabeller, type FieldValueType, type GenerateMcpConnectorInput, type GeneratedMcpConnector, INCREMENTAL_SCHEMA, IncompatibleAuthTypeError, type IncrementalStrategy, type InputValidationError, InvalidActionInputsError, InvalidEventOutputError, type LabelAnswer, type LabelDecision, type LabelEvidence, type LabelQuestion, type LabellingOutcome, MAX_FIELD_PATHS, POLICY_ERROR_STATUS, type PaginateOptions, type PaginateResult, type PaginationProgress, type Paginator, PolicyDeniedError, type PolicyErrorType, PolicyEvaluationError, PolicyPreparseError, type Refusal, type RefusalType, 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, createLabellingDecideReadFields, createOffsetPaginator, createPagePaginator, createPaginator, createTimeFilterStrategy, decideInvokeTool, decideReadFields, definitionVersionOf, evaluateExternalAccountIdExtractorByConnector, executeStepFunction, extractItems, fieldPathsOf, filterActionsByAuthType, formatValidationErrorResponse, generateMcpConnector, getActionAuthenticationMethods, getActionFromUrl, getActionMeta, getActionsMeta, getActionsMetaFromConnectors, getActionsMetaSummary, getActionsMetaSummaryFromConnectors, getRefreshTokenExpiresIn, getTokenExpiresIn, hasCatastrophicBacktrackingRisk, isConnectorReleased, isMcpConnector, isPolicyErrorType, labelKeyOf, labelsReferencedBy, loadConnector, maskFields, paginate, parseActionInputs, parseYamlConnector, providerRequestsOf, refusalOf, resolveReleaseStageCounts, resolveReleaseStageProfile, runAction, runConnectorActionById, runConnectorActionByPath, runEventActionById, runStepAction, runTestActions, runWebhookSetupPhase, supportsRefreshAuthentication, unlabelledAllowPolicyIdsOf, validateYamlConnector };
package/dist/index.d.mts CHANGED
@@ -5484,6 +5484,7 @@ declare const fieldPathsOf: (payload: unknown, options?: {
5484
5484
  truncated: boolean;
5485
5485
  valueTypes: Record<string, FieldValueType>;
5486
5486
  neighbours: Record<string, FieldNeighbours>;
5487
+ identifierPaths: string[];
5487
5488
  };
5488
5489
  declare const labelKeyOf: (path: string) => string;
5489
5490
  //#endregion
@@ -5506,10 +5507,11 @@ type PolicyCall = {
5506
5507
  declare const decideReadFields: (input: {
5507
5508
  policy: ActionPolicy;
5508
5509
  account: Account;
5509
- action: Pick<Action, "id" | "categories"> & Partial<Pick<Action, "description">>;
5510
+ action: Pick<Action, "id" | "categories"> & Partial<Pick<Action, "description" | "steps">>;
5510
5511
  paths: string[];
5511
5512
  valueTypes?: Record<string, FieldValueType>;
5512
5513
  neighbours?: Record<string, FieldNeighbours>;
5514
+ identifierPaths?: string[];
5513
5515
  authType?: AuthType;
5514
5516
  sessionId?: string;
5515
5517
  logger?: ILogger;
@@ -5554,6 +5556,7 @@ type LabelEvidence = {
5554
5556
  connector: string;
5555
5557
  action: string;
5556
5558
  actionDescription?: string;
5559
+ requests: string[];
5557
5560
  valueType: FieldValueType;
5558
5561
  parent: string;
5559
5562
  siblings: string[];
@@ -5584,6 +5587,7 @@ type LabelDecision = {
5584
5587
  };
5585
5588
  declare const labelsReferencedBy: (levels: LevelPolicies[]) => string[];
5586
5589
  declare const unlabelledAllowPolicyIdsOf: (levels: LevelPolicies[]) => Set<string>;
5590
+ declare const providerRequestsOf: (action: Partial<Pick<Action, "steps">>) => string[];
5587
5591
  type LabellingOutcome = {
5588
5592
  decisions: LabelDecision[];
5589
5593
  unanswered: string[];
@@ -5997,4 +6001,4 @@ declare const runWebhookSetupPhase: ({
5997
6001
  runStepActionFn?: typeof runStepAction;
5998
6002
  }) => Promise<WebhookSetupPhaseResult>;
5999
6003
  //#endregion
6000
- 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 FieldLabeller, type FieldValueType, type GenerateMcpConnectorInput, type GeneratedMcpConnector, INCREMENTAL_SCHEMA, IncompatibleAuthTypeError, type IncrementalStrategy, type InputValidationError, InvalidActionInputsError, InvalidEventOutputError, type LabelAnswer, type LabelDecision, type LabelEvidence, type LabelQuestion, type LabellingOutcome, MAX_FIELD_PATHS, POLICY_ERROR_STATUS, type PaginateOptions, type PaginateResult, type PaginationProgress, type Paginator, PolicyDeniedError, type PolicyErrorType, PolicyEvaluationError, PolicyPreparseError, type Refusal, type RefusalType, 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, createLabellingDecideReadFields, createOffsetPaginator, createPagePaginator, createPaginator, createTimeFilterStrategy, decideInvokeTool, decideReadFields, definitionVersionOf, evaluateExternalAccountIdExtractorByConnector, executeStepFunction, extractItems, fieldPathsOf, filterActionsByAuthType, formatValidationErrorResponse, generateMcpConnector, getActionAuthenticationMethods, getActionFromUrl, getActionMeta, getActionsMeta, getActionsMetaFromConnectors, getActionsMetaSummary, getActionsMetaSummaryFromConnectors, getRefreshTokenExpiresIn, getTokenExpiresIn, hasCatastrophicBacktrackingRisk, isConnectorReleased, isMcpConnector, isPolicyErrorType, labelKeyOf, labelsReferencedBy, loadConnector, maskFields, paginate, parseActionInputs, parseYamlConnector, refusalOf, resolveReleaseStageCounts, resolveReleaseStageProfile, runAction, runConnectorActionById, runConnectorActionByPath, runEventActionById, runStepAction, runTestActions, runWebhookSetupPhase, supportsRefreshAuthentication, unlabelledAllowPolicyIdsOf, validateYamlConnector };
6004
+ 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 FieldLabeller, type FieldValueType, type GenerateMcpConnectorInput, type GeneratedMcpConnector, INCREMENTAL_SCHEMA, IncompatibleAuthTypeError, type IncrementalStrategy, type InputValidationError, InvalidActionInputsError, InvalidEventOutputError, type LabelAnswer, type LabelDecision, type LabelEvidence, type LabelQuestion, type LabellingOutcome, MAX_FIELD_PATHS, POLICY_ERROR_STATUS, type PaginateOptions, type PaginateResult, type PaginationProgress, type Paginator, PolicyDeniedError, type PolicyErrorType, PolicyEvaluationError, PolicyPreparseError, type Refusal, type RefusalType, 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, createLabellingDecideReadFields, createOffsetPaginator, createPagePaginator, createPaginator, createTimeFilterStrategy, decideInvokeTool, decideReadFields, definitionVersionOf, evaluateExternalAccountIdExtractorByConnector, executeStepFunction, extractItems, fieldPathsOf, filterActionsByAuthType, formatValidationErrorResponse, generateMcpConnector, getActionAuthenticationMethods, getActionFromUrl, getActionMeta, getActionsMeta, getActionsMetaFromConnectors, getActionsMetaSummary, getActionsMetaSummaryFromConnectors, getRefreshTokenExpiresIn, getTokenExpiresIn, hasCatastrophicBacktrackingRisk, isConnectorReleased, isMcpConnector, isPolicyErrorType, labelKeyOf, labelsReferencedBy, loadConnector, maskFields, paginate, parseActionInputs, parseYamlConnector, providerRequestsOf, refusalOf, resolveReleaseStageCounts, resolveReleaseStageProfile, runAction, runConnectorActionById, runConnectorActionByPath, runEventActionById, runStepAction, runTestActions, runWebhookSetupPhase, supportsRefreshAuthentication, unlabelledAllowPolicyIdsOf, validateYamlConnector };