@transai/connector-runner-ai-agent 0.54.8 → 0.54.9
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/CHANGELOG.md
CHANGED
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:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 43304427 bytes
|
|
4
|
+
sha256: 15ed822a0608bbf8f4e923327a9f0b3a43eff432909a2229169432927d9f92cf
|
|
@@ -4,3 +4,16 @@ export interface IBackoff {
|
|
|
4
4
|
}
|
|
5
5
|
/** Exponential backoff: `baseMs` doubled per retry (0-based), capped at `maxMs`. */
|
|
6
6
|
export declare const backoffMs: (retries: number, backoff: IBackoff) => number;
|
|
7
|
+
export interface IAttemptOptions {
|
|
8
|
+
attempts: number;
|
|
9
|
+
backoff: IBackoff;
|
|
10
|
+
/** Default: every error is retried. */
|
|
11
|
+
isRetryable?: (error: unknown) => boolean;
|
|
12
|
+
/** Default: `backoffMs(attempt - 1, backoff)`. */
|
|
13
|
+
delayMs?: (error: unknown, attempt: number) => number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Runs `run` up to `attempts` times, waiting between attempts. The last
|
|
17
|
+
* attempt's error propagates, as does a non-retryable one straight away.
|
|
18
|
+
*/
|
|
19
|
+
export declare function withAttempts<T>(run: () => Promise<T>, options: IAttemptOptions, attempt?: number): Promise<T>;
|
|
@@ -12,6 +12,7 @@ export interface TenantInterface {
|
|
|
12
12
|
useApi: boolean;
|
|
13
13
|
featureFlags: TenantFeatureFlags;
|
|
14
14
|
auth0OrganizationId?: string | null;
|
|
15
|
+
atlassianOrganizationId?: string | null;
|
|
15
16
|
logo?: string | null;
|
|
16
17
|
workflowRunRetentionDays?: number;
|
|
17
18
|
defaultConnectorConfigs?: Record<string, unknown>;
|