@transai/connector-runner-ai-agent 0.53.9 → 0.53.11

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/index.cjs.map CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/index.cjs.map
3
- size: 43273459 bytes
4
- sha256: 82c47825ab35d3991da6cb69aa8c769c9d970daffd0896f5d3392d4810857dc2
3
+ size: 43273992 bytes
4
+ sha256: 1485c3e98dea2fa589c2cfc9f4e8cbf3619c0c2616e748cee8e2ded63168ea96
@@ -7,6 +7,7 @@ export interface ReceiverSDKInterface {
7
7
  readonly unprocessableEntity: KafkaCallbackResponseType;
8
8
  readonly notFound: KafkaCallbackResponseType;
9
9
  readonly internalServerError: KafkaCallbackResponseType;
10
+ readonly temporarilyUnavailable: KafkaCallbackResponseType;
10
11
  };
11
12
  registerCallback<T extends XodJobType = XodJobType>(callbackFunction: (message: T) => Promise<KafkaCallbackResponse>, eventType?: string, identifier?: string): void;
12
13
  getActionConfig(message: XodJobType): Promise<ActionInterface | null>;
@@ -1,6 +1,8 @@
1
1
  import { EventInterface, WorkflowDefinition, WorkflowRunInterface, WorkflowDrawing, WorkflowJobInterface, WorkflowDefinitionStepBase } from '@xip-online-data/types';
2
2
  export declare const isRootWorkflowStep: (step: Pick<WorkflowDefinitionStepBase, "parentIterationId">) => boolean;
3
+ /** The restart identifiers plus everything that depends on them, directly or transitively. */
4
+ export declare const getRerunIdentifiers: (steps: WorkflowDefinition["steps"], restartFrom: Array<string>) => Set<string>;
3
5
  export declare const createRunFromDefinition: (workflowDefinition: WorkflowDefinition, actionJobs: Array<Omit<WorkflowJobInterface, "run">>, eventDetails: EventInterface, drawing?: WorkflowDrawing, restartOptions?: {
4
6
  existingRun: WorkflowRunInterface;
5
- restartFrom?: string;
7
+ restartFrom?: string | Array<string>;
6
8
  }) => Omit<WorkflowRunInterface, "id" | "createdAt" | "updatedAt">;
@@ -6,3 +6,4 @@ export declare function BadRequest(additionalMessage?: string): (message: XodBas
6
6
  export declare function NotFound(additionalMessage?: string): (message: XodBaseMessageType) => Promise<KafkaCallbackResponse>;
7
7
  export declare function InternalServerError(additionalMessage?: string): (message: XodBaseMessageType) => Promise<KafkaCallbackResponse>;
8
8
  export declare function Aborted(additionalMessage?: string): (message: XodBaseMessageType) => Promise<KafkaCallbackResponse>;
9
+ export declare function TemporarilyUnavailable(additionalMessage?: string): (message: XodBaseMessageType) => Promise<KafkaCallbackResponse>;
@@ -60,5 +60,6 @@ export declare enum HttpStatusCode {
60
60
  LoopDetected = 508,
61
61
  NotExtended = 510,
62
62
  NetworkAuthenticationRequired = 511,
63
- Aborted = 512
63
+ Aborted = 512,
64
+ TemporarilyUnavailable = 513
64
65
  }
@@ -0,0 +1,26 @@
1
+ export declare enum AutoRetryBackoff {
2
+ FIXED = "FIXED",
3
+ LINEAR = "LINEAR",
4
+ EXPONENTIAL = "EXPONENTIAL"
5
+ }
6
+ export declare enum AutoRetryRestartFrom {
7
+ FAILED_STEP = "FAILED_STEP",
8
+ BEGINNING = "BEGINNING"
9
+ }
10
+ export declare enum AutoRetryOn {
11
+ RETRYABLE_ONLY = "RETRYABLE_ONLY",
12
+ ALL_FAILED = "ALL_FAILED"
13
+ }
14
+ export interface AutoRetrySettings {
15
+ enabled: boolean;
16
+ /** 1-100; automatic retries after the initial run. */
17
+ maxRetries: number;
18
+ backoff: AutoRetryBackoff;
19
+ /** 1-3600; base delay in seconds. */
20
+ delaySeconds: number;
21
+ restartFrom: AutoRetryRestartFrom;
22
+ retryOn: AutoRetryOn;
23
+ }
24
+ export declare const AUTO_RETRY_DEFAULTS: AutoRetrySettings;
25
+ /** `null`/`undefined` means auto retry is not configured; partial input is completed with the defaults. */
26
+ export declare const normalizeAutoRetrySettings: (input?: Partial<AutoRetrySettings> | null) => AutoRetrySettings | null;
@@ -12,5 +12,6 @@ export declare enum WorkflowJobStatusStatus {
12
12
  SKIPPED = "SKIPPED",
13
13
  BAD_REQUEST = "BAD_REQUEST",// input validation errors
14
14
  INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR",
15
+ TEMPORARILY_UNAVAILABLE = "TEMPORARILY_UNAVAILABLE",// connector marked the failure as temporary
15
16
  ABORTED = "ABORTED"
16
17
  }
@@ -1,5 +1,6 @@
1
1
  export * from './enums';
2
2
  export * from './action.interface';
3
+ export * from './auto-retry';
3
4
  export * from './offset.interface';
4
5
  export * from './workflow-definition.interface';
5
6
  export * from './workflow-run.interface';
@@ -1,3 +1,4 @@
1
+ import { AutoRetrySettings } from './auto-retry';
1
2
  import { NodeTypes, TriggerType } from './enums';
2
3
  import { ConditionMapper, JsonataMapper, NodeMapper, ValidationMapper, WorkflowTitleMapper } from './parameter-mapper.interface';
3
4
  import { IterationConfig, IterationInput, NodeSelectors, WorkflowDrawing } from './workflow-drawing.interface';
@@ -59,6 +60,7 @@ export interface CreateWorkflowDefinition {
59
60
  identifier: string;
60
61
  name: string;
61
62
  ttl: number;
63
+ autoRetry?: AutoRetrySettings | null;
62
64
  triggerName: string;
63
65
  triggerType: TriggerType;
64
66
  triggerIdentifier: string;
@@ -1,4 +1,5 @@
1
1
  import { ChartInterface } from '../chart.interface';
2
+ import { AutoRetrySettings } from './auto-retry';
2
3
  import { ConditionalTypes, NodeTypes, TriggerType, WorkflowRunStatusStatus } from './enums';
3
4
  import { ArrayMapper, ConditionMapper, MessageMapper, SimpleArrayMapper, ValidationMapper, WorkflowTitleMapper } from './parameter-mapper.interface';
4
5
  export interface Conditional {
@@ -101,6 +102,7 @@ export interface CreateWorkflowDrawingInterface {
101
102
  description: string;
102
103
  identifier: string;
103
104
  ttl: number;
105
+ autoRetry?: AutoRetrySettings | null;
104
106
  trigger: TriggerNode;
105
107
  nodes: Array<WorkflowNode>;
106
108
  edges: Array<Edge>;
@@ -104,5 +104,7 @@ export interface WorkflowRunInterface {
104
104
  testRun?: boolean;
105
105
  restartOf?: string;
106
106
  restartRoot?: string;
107
+ retryAttempt?: number | null;
108
+ scheduledAt?: Date | null;
107
109
  workflowIdentifier?: string;
108
110
  }
@@ -41,7 +41,8 @@ export declare enum ConfiguredConnectorTypes {
41
41
  JVC_TELEMETRY_TEST = "jvc-telemetry-test",
42
42
  RIDDER_IQ = "ridder-iq",
43
43
  XYLEM = "xylem",
44
- OSEON = "oseon"
44
+ OSEON = "oseon",
45
+ CONTROL_OFFICE = "control-office"
45
46
  }
46
47
  export interface ConnectorConfig {
47
48
  type: ConfiguredConnectorTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transai/connector-runner-ai-agent",
3
- "version": "0.53.9",
3
+ "version": "0.53.11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },