@kitman-sh/loops 0.0.0-stage → 0.7.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.js +1066 -0
- package/package.json +19 -4
- package/types/packages/core/src/agent-environment.d.ts +2429 -0
- package/types/packages/core/src/agent-sandbox-policy.d.ts +33 -0
- package/types/packages/core/src/common.d.ts +6 -0
- package/types/packages/core/src/context-pack.d.ts +182 -0
- package/types/packages/core/src/extension.d.ts +35 -0
- package/types/packages/core/src/kit.d.ts +1489 -0
- package/types/packages/core/src/loop-layers.d.ts +59 -0
- package/types/packages/core/src/loop-version.d.ts +59 -0
- package/types/packages/core/src/loop.d.ts +3076 -0
- package/types/packages/core/src/package-declarations.d.ts +435 -0
- package/types/packages/core/src/proposal.d.ts +292 -0
- package/types/packages/core/src/redaction.d.ts +73 -0
- package/types/packages/core/src/run.d.ts +566 -0
- package/types/packages/core/src/runtime-type.d.ts +36 -0
- package/types/packages/core/src/schedule.d.ts +136 -0
- package/types/packages/core/src/schema.d.ts +89 -0
- package/types/packages/core/src/trigger-dispatch.d.ts +421 -0
- package/types/packages/loops/src/build.d.ts +33 -0
- package/types/packages/loops/src/change-request-body.d.ts +14 -0
- package/types/packages/loops/src/code-quality-pass.d.ts +50 -0
- package/types/packages/loops/src/code-quality.d.ts +26 -0
- package/types/packages/loops/src/hello.d.ts +9 -0
- package/types/packages/loops/src/incident.d.ts +13 -0
- package/types/packages/loops/src/index.d.ts +172 -0
- package/types/packages/loops/src/plan.d.ts +37 -0
- package/types/packages/loops/src/release.d.ts +21 -0
- package/types/packages/loops/src/research.d.ts +8 -0
- package/types/packages/loops/src/review.d.ts +38 -0
- package/types/packages/sdk/src/loop/activities.d.ts +187 -0
- package/types/packages/sdk/src/loop/check.d.ts +39 -0
- package/types/packages/sdk/src/loop/config.d.ts +68 -0
- package/types/packages/sdk/src/loop/define.d.ts +76 -0
- package/types/packages/sdk/src/loop/evidence.d.ts +66 -0
- package/types/packages/sdk/src/loop/index.d.ts +9 -0
- package/types/packages/sdk/src/loop/plan.d.ts +43 -0
- package/types/packages/sdk/src/loop/review.d.ts +86 -0
- package/types/packages/sdk/src/loop/steps.d.ts +224 -0
- package/types/packages/sdk/src/loop/test-loop.d.ts +112 -0
- package/README.md +0 -3
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import type { TriggerIngress } from './trigger-dispatch';
|
|
3
|
+
import { SafeJson } from './run';
|
|
4
|
+
export declare const ScheduleMisfirePolicies: readonly ['skip', 'fire_once', 'catch_up'];
|
|
5
|
+
export type ScheduleMisfirePolicy = (typeof ScheduleMisfirePolicies)[number];
|
|
6
|
+
export declare const ScheduleOverlapPolicies: readonly ['allow', 'skip', 'coalesce'];
|
|
7
|
+
export type ScheduleOverlapPolicy = (typeof ScheduleOverlapPolicies)[number];
|
|
8
|
+
export declare const ScheduleVersionStatuses: readonly ['draft', 'published', 'disabled', 'archived'];
|
|
9
|
+
declare const ScheduleDispositions: readonly ['on_time', 'catch_up', 'catch_up_bounded', 'misfire_skipped', 'dst_gap_skipped', 'overlap_skipped', 'overlap_coalesced'];
|
|
10
|
+
export type ScheduleDisposition = (typeof ScheduleDispositions)[number];
|
|
11
|
+
export declare const ScheduleRule: Schema.Union<readonly [Schema.Struct<{
|
|
12
|
+
readonly frequency: Schema.Literals<readonly ["daily", "weekly"]>;
|
|
13
|
+
readonly hour: Schema.Int;
|
|
14
|
+
readonly minute: Schema.Int;
|
|
15
|
+
readonly second: Schema.optionalKey<Schema.Int>;
|
|
16
|
+
readonly daysOfWeek: Schema.optionalKey<Schema.$Array<Schema.Int>>;
|
|
17
|
+
}>, Schema.Struct<{
|
|
18
|
+
readonly cron: Schema.String;
|
|
19
|
+
}>]>;
|
|
20
|
+
export type ScheduleRule = (typeof ScheduleRule)['Type'];
|
|
21
|
+
/** Whether `value` is a Schedule rule: a calendar rule, or cron whose every field is in range. */
|
|
22
|
+
export declare function isScheduleRule(value: unknown): value is ScheduleRule;
|
|
23
|
+
export declare const ScheduleVersion: Schema.Struct<{
|
|
24
|
+
readonly contractVersion: Schema.Literal<"schedule.v1">;
|
|
25
|
+
readonly id: Schema.String;
|
|
26
|
+
readonly scheduleId: Schema.String;
|
|
27
|
+
readonly workspaceId: Schema.String;
|
|
28
|
+
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
29
|
+
/** New versions bind one stable Loop; historical rows may not have a binding. */
|
|
30
|
+
readonly loopId: Schema.optionalKey<Schema.String>;
|
|
31
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
32
|
+
readonly version: Schema.Int;
|
|
33
|
+
readonly status: Schema.Literals<readonly ["draft", "published", "disabled", "archived"]>;
|
|
34
|
+
readonly timezone: Schema.String;
|
|
35
|
+
readonly rule: Schema.Union<readonly [Schema.Struct<{
|
|
36
|
+
readonly frequency: Schema.Literals<readonly ["daily", "weekly"]>;
|
|
37
|
+
readonly hour: Schema.Int;
|
|
38
|
+
readonly minute: Schema.Int;
|
|
39
|
+
readonly second: Schema.optionalKey<Schema.Int>;
|
|
40
|
+
readonly daysOfWeek: Schema.optionalKey<Schema.$Array<Schema.Int>>;
|
|
41
|
+
}>, Schema.Struct<{
|
|
42
|
+
readonly cron: Schema.String;
|
|
43
|
+
}>]>;
|
|
44
|
+
readonly misfirePolicy: Schema.Literals<readonly ["skip", "fire_once", "catch_up"]>;
|
|
45
|
+
readonly overlapPolicy: Schema.Literals<readonly ["allow", "skip", "coalesce"]>;
|
|
46
|
+
readonly maxCatchUp: Schema.Int;
|
|
47
|
+
readonly misfireGraceSeconds: Schema.optionalKey<Schema.Int>;
|
|
48
|
+
readonly inputSchemaRef: Schema.optionalKey<Schema.Struct<{
|
|
49
|
+
readonly kind: Schema.Literal<"typebox_ref">;
|
|
50
|
+
readonly name: Schema.String;
|
|
51
|
+
readonly version: Schema.optionalKey<Schema.String>;
|
|
52
|
+
readonly sha256: Schema.optionalKey<Schema.String>;
|
|
53
|
+
}>>;
|
|
54
|
+
readonly input: Schema.optionalKey<Schema.Codec<SafeJson, SafeJson, never, never>>;
|
|
55
|
+
readonly createdAt: Schema.String;
|
|
56
|
+
}>;
|
|
57
|
+
export type ScheduleVersion = (typeof ScheduleVersion)['Type'];
|
|
58
|
+
export interface ScheduleCursor {
|
|
59
|
+
readonly lastEvaluatedAt?: string;
|
|
60
|
+
readonly lastFireKey?: string;
|
|
61
|
+
readonly resourceVersion?: number;
|
|
62
|
+
}
|
|
63
|
+
export declare function scheduleDefinitionDigest(version: Pick<ScheduleVersion, 'timezone' | 'rule' | 'misfirePolicy' | 'overlapPolicy' | 'maxCatchUp' | 'misfireGraceSeconds' | 'loopId'> & Partial<Pick<ScheduleVersion, 'status' | 'inputSchemaRef' | 'input' | 'name'>>): string;
|
|
64
|
+
interface FireIdentityInput {
|
|
65
|
+
readonly scheduleId: string;
|
|
66
|
+
readonly scheduleVersion: number;
|
|
67
|
+
readonly bindingId: string;
|
|
68
|
+
readonly localDate: string;
|
|
69
|
+
readonly localTime: string;
|
|
70
|
+
readonly fold: 0 | 1;
|
|
71
|
+
}
|
|
72
|
+
export declare function fireIdentity(input: FireIdentityInput): string;
|
|
73
|
+
type ResolvedLocalDateTime = {
|
|
74
|
+
readonly kind: 'gap';
|
|
75
|
+
readonly instants: readonly [];
|
|
76
|
+
} | {
|
|
77
|
+
readonly kind: 'unique';
|
|
78
|
+
readonly instants: readonly [Date];
|
|
79
|
+
} | {
|
|
80
|
+
readonly kind: 'fold';
|
|
81
|
+
readonly instants: readonly [Date, Date];
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Resolve a wall-clock time without silently normalizing gaps or folds. Each Schedule Host tick re-enumerates the days
|
|
85
|
+
* around now for every Schedule, and each resolution costs several Intl calls, so resolutions are kept.
|
|
86
|
+
*/
|
|
87
|
+
export declare function resolveLocalDateTime(timezone: string, date: string, time: string): ResolvedLocalDateTime;
|
|
88
|
+
export interface ScheduleCandidate {
|
|
89
|
+
readonly fireKey: string;
|
|
90
|
+
readonly scheduleId: string;
|
|
91
|
+
readonly scheduleVersion: number;
|
|
92
|
+
readonly bindingId: string;
|
|
93
|
+
readonly timezone: string;
|
|
94
|
+
readonly localDate: string;
|
|
95
|
+
readonly localTime: string;
|
|
96
|
+
readonly fold: 0 | 1;
|
|
97
|
+
readonly scheduledAt?: string;
|
|
98
|
+
readonly resolution: 'unique' | 'fold' | 'gap';
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Create one explicit test occurrence without advancing or colliding with the
|
|
102
|
+
* Schedule's normal calendar binding. Repeating a request with the same key
|
|
103
|
+
* produces the same durable Event identity.
|
|
104
|
+
*/
|
|
105
|
+
export declare function scheduleTestCandidate(input: {
|
|
106
|
+
readonly version: ScheduleVersion;
|
|
107
|
+
readonly idempotencyKey: string;
|
|
108
|
+
readonly requestedAt: string;
|
|
109
|
+
}): ScheduleCandidate;
|
|
110
|
+
/** Enumerate deterministic local-time candidates. Fold candidates are deliberately separate fires. */
|
|
111
|
+
export declare function enumerateScheduleCandidates(input: {
|
|
112
|
+
readonly version: ScheduleVersion;
|
|
113
|
+
readonly bindingId: string;
|
|
114
|
+
readonly from: string;
|
|
115
|
+
readonly to: string;
|
|
116
|
+
}): readonly ScheduleCandidate[];
|
|
117
|
+
export interface ScheduleDecision extends ScheduleCandidate {
|
|
118
|
+
readonly disposition: ScheduleDisposition;
|
|
119
|
+
readonly shouldIngress: boolean;
|
|
120
|
+
}
|
|
121
|
+
export declare function planSchedule(input: {
|
|
122
|
+
readonly version: ScheduleVersion;
|
|
123
|
+
readonly candidates: readonly ScheduleCandidate[];
|
|
124
|
+
readonly now: string;
|
|
125
|
+
readonly cursor: ScheduleCursor;
|
|
126
|
+
readonly activeBindingRuns?: ReadonlySet<string>;
|
|
127
|
+
}): readonly ScheduleDecision[];
|
|
128
|
+
export declare function scheduleTriggerIngress(input: {
|
|
129
|
+
readonly version: ScheduleVersion;
|
|
130
|
+
readonly candidate: ScheduleCandidate;
|
|
131
|
+
readonly loopId: string;
|
|
132
|
+
readonly projectId?: string;
|
|
133
|
+
readonly receivedAt: string;
|
|
134
|
+
readonly misfireDisposition?: 'on_time' | 'catch_up' | 'coalesced';
|
|
135
|
+
}): TriggerIngress;
|
|
136
|
+
export {};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import * as JsonSchema from 'effect/JsonSchema';
|
|
2
|
+
import * as Schema from 'effect/Schema';
|
|
3
|
+
import type { StandardSchemaV1 } from 'effect/StandardSchema';
|
|
4
|
+
import { type JsonObject, type JsonValue } from './runtime-type';
|
|
5
|
+
/** An RFC 3339 date-time string with a zone, as JSON Schema's `date-time` format requires. */
|
|
6
|
+
export declare const isDateTime: import("effect/SchemaAST").Filter<string>;
|
|
7
|
+
/** A number, or a numeric string read as one, as a query or a JSON body may carry it. */
|
|
8
|
+
export declare const Numeric: Schema.Union<readonly [Schema.Finite, Schema.FiniteFromString]>;
|
|
9
|
+
/**
|
|
10
|
+
* A whole `Numeric`. Its JSON Schema is `multipleOf: 1`, which holds for the string a query carries where `isInt`'s
|
|
11
|
+
* `type: integer` would not.
|
|
12
|
+
*/
|
|
13
|
+
export declare const isWholeNumber: import("effect/SchemaAST").Filter<number>;
|
|
14
|
+
/**
|
|
15
|
+
* A type guard that holds only when `input` already is a `schema` value, without properties the schema does not model,
|
|
16
|
+
* as a TypeBox `Check` of a closed object did: no transformation or decoding default applies.
|
|
17
|
+
*/
|
|
18
|
+
export declare function guard<S extends Schema.ConstraintDecoder<unknown>>(schema: S): <I>(input: I) => input is I & S['Type'];
|
|
19
|
+
/** `Schema.toStandardSchemaV1(schema)`, with a passing value decoded synchronously first. */
|
|
20
|
+
export declare function standardSchemaV1<S extends Schema.ConstraintDecoder<unknown>>(schema: S): StandardSchemaV1<S["Encoded"], S["Type"]> & S & {
|
|
21
|
+
'~standard': {
|
|
22
|
+
version: 1;
|
|
23
|
+
vendor: string;
|
|
24
|
+
types?: import("effect/StandardSchema").StandardTypedV1.Types<S["Encoded"], S["Type"]> | undefined;
|
|
25
|
+
validate: <Value>(value: Value) => Promise<StandardSchemaV1.Result<S["Type"]>> | StandardSchemaV1.Result<S["Type"]>;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
/** The JSON Schema (draft 2020-12) of `schema`, with objects closed to the properties they model. */
|
|
29
|
+
export declare function jsonSchema(schema: Schema.Top): JsonSchema.JsonSchema;
|
|
30
|
+
/**
|
|
31
|
+
* `value` with every `$defs` entry inside it moved out to `definitions`, and its `#/$defs/` refs pointed at `prefix`. A
|
|
32
|
+
* ref resolves against the whole document, so once a schema that carries its own `$defs` is embedded in a larger one,
|
|
33
|
+
* such as an OpenAPI operation, its refs hold only after the entries sit where `prefix` names. Each schema names its
|
|
34
|
+
* entries on its own, so an entry that would replace a different one under the same name, `known` ones included, moves
|
|
35
|
+
* under a new name.
|
|
36
|
+
*/
|
|
37
|
+
export declare function hoistDefinitions(value: JsonValue, prefix: string, known?: JsonObject): {
|
|
38
|
+
value: JsonValue;
|
|
39
|
+
definitions: {
|
|
40
|
+
[k: string]: JsonValue;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* `schema` as a Standard Schema validator with its JSON Schema, for Elysia routes and their OpenAPI. Validation strips
|
|
45
|
+
* properties the schema does not model; the JSON Schema closes objects, as the TypeBox contracts did. An invalid value
|
|
46
|
+
* answers `status`, 400 as TypeBox routes did, with `refused` in place of the message, which otherwise quotes the
|
|
47
|
+
* value. The validator is a copy, so the shared schema stays as it is.
|
|
48
|
+
*/
|
|
49
|
+
export declare function standard<S extends Schema.Top & Schema.ConstraintDecoder<unknown>>(schema: S, options?: {
|
|
50
|
+
readonly refused?: string;
|
|
51
|
+
readonly status?: number;
|
|
52
|
+
}): StandardSchemaV1<S["Encoded"], S["Type"]> & S & {
|
|
53
|
+
invalidStatus: number;
|
|
54
|
+
refused?: string;
|
|
55
|
+
'~standard': {
|
|
56
|
+
version: 1;
|
|
57
|
+
vendor: string;
|
|
58
|
+
types?: import("effect/StandardSchema").StandardTypedV1.Types<S["Encoded"], S["Type"]> | undefined;
|
|
59
|
+
validate: <Value>(value: Value) => Promise<StandardSchemaV1.Result<S["Type"]>> | StandardSchemaV1.Result<S["Type"]>;
|
|
60
|
+
jsonSchema: {
|
|
61
|
+
input: (target: {
|
|
62
|
+
readonly target: string;
|
|
63
|
+
}) => JsonSchema.JsonSchema;
|
|
64
|
+
output: (target: {
|
|
65
|
+
readonly target: string;
|
|
66
|
+
}) => JsonSchema.JsonSchema;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* `schema` as an Elysia response validator: the handler's value encodes to what the wire carries, without properties
|
|
72
|
+
* the schema does not model, and the JSON Schema on both sides is that encoded form.
|
|
73
|
+
*/
|
|
74
|
+
export declare function standardResponse<S extends Schema.Top & Schema.ConstraintEncoder<unknown>>(schema: S): StandardSchemaV1<(S extends Schema.flip<infer F extends Schema.Top> ? F["Rebuild"] : Schema.flip<S>)["Encoded"], (S extends Schema.flip<infer F extends Schema.Top> ? F["Rebuild"] : Schema.flip<S>)["Type"]> & (S extends Schema.flip<infer F extends Schema.Top> ? F["Rebuild"] : Schema.flip<S>) & {
|
|
75
|
+
'~standard': {
|
|
76
|
+
version: 1;
|
|
77
|
+
vendor: string;
|
|
78
|
+
types?: import("effect/StandardSchema").StandardTypedV1.Types<(S extends Schema.flip<infer F extends Schema.Top> ? F["Rebuild"] : Schema.flip<S>)["Encoded"], (S extends Schema.flip<infer F extends Schema.Top> ? F["Rebuild"] : Schema.flip<S>)["Type"]> | undefined;
|
|
79
|
+
validate: <Value>(value: Value) => Promise<StandardSchemaV1.Result<(S extends Schema.flip<infer F extends Schema.Top> ? F["Rebuild"] : Schema.flip<S>)["Type"]>> | StandardSchemaV1.Result<(S extends Schema.flip<infer F extends Schema.Top> ? F["Rebuild"] : Schema.flip<S>)["Type"]>;
|
|
80
|
+
jsonSchema: {
|
|
81
|
+
input: (options: {
|
|
82
|
+
readonly target: string;
|
|
83
|
+
}) => JsonSchema.JsonSchema;
|
|
84
|
+
output: (options: {
|
|
85
|
+
readonly target: string;
|
|
86
|
+
}) => JsonSchema.JsonSchema;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { SafeJson } from './run';
|
|
3
|
+
declare const TriggerSourceKinds: readonly ['manual', 'domain', 'webhook', 'schedule', 'message', 'result', 'parent', 'child'];
|
|
4
|
+
export type TriggerSourceKind = (typeof TriggerSourceKinds)[number];
|
|
5
|
+
export declare const TriggerSourceKind: Schema.Literals<readonly ["manual", "domain", "webhook", "schedule", "message", "result", "parent", "child"]>;
|
|
6
|
+
export declare const TriggerSource: Schema.Union<readonly [Schema.Struct<{
|
|
7
|
+
readonly kind: Schema.Literal<"manual">;
|
|
8
|
+
readonly actor: Schema.Struct<{
|
|
9
|
+
readonly actorType: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>, Schema.Literal<"runner">]>;
|
|
10
|
+
readonly actorId: Schema.String;
|
|
11
|
+
readonly delegatedByUserId: Schema.optionalKey<Schema.String>;
|
|
12
|
+
readonly agentIdentityId: Schema.optionalKey<Schema.String>;
|
|
13
|
+
readonly runnerId: Schema.optionalKey<Schema.String>;
|
|
14
|
+
}>;
|
|
15
|
+
readonly requestId: Schema.String;
|
|
16
|
+
readonly requestIdempotencyKey: Schema.String;
|
|
17
|
+
}>, Schema.Struct<{
|
|
18
|
+
readonly kind: Schema.Literal<"domain">;
|
|
19
|
+
readonly producer: Schema.Struct<{
|
|
20
|
+
readonly kind: Schema.String;
|
|
21
|
+
readonly id: Schema.String;
|
|
22
|
+
}>;
|
|
23
|
+
readonly transactionId: Schema.String;
|
|
24
|
+
readonly eventId: Schema.String;
|
|
25
|
+
readonly aggregate: Schema.Struct<{
|
|
26
|
+
readonly kind: Schema.String;
|
|
27
|
+
readonly id: Schema.String;
|
|
28
|
+
}>;
|
|
29
|
+
readonly aggregateVersion: Schema.optionalKey<Schema.Int>;
|
|
30
|
+
readonly outboxSequence: Schema.optionalKey<Schema.String>;
|
|
31
|
+
}>, Schema.Struct<{
|
|
32
|
+
readonly kind: Schema.Literal<"webhook">;
|
|
33
|
+
readonly integrationId: Schema.String;
|
|
34
|
+
readonly provider: Schema.String;
|
|
35
|
+
readonly host: Schema.optionalKey<Schema.String>;
|
|
36
|
+
readonly deliveryId: Schema.optionalKey<Schema.String>;
|
|
37
|
+
readonly normalizedEventName: Schema.String;
|
|
38
|
+
readonly bodyDigest: Schema.String;
|
|
39
|
+
readonly signature: Schema.Struct<{
|
|
40
|
+
readonly scheme: Schema.Union<readonly [Schema.Literal<"hmac">, Schema.Literal<"asymmetric">, Schema.Literal<"provider_verified">]>;
|
|
41
|
+
readonly keyRef: Schema.String;
|
|
42
|
+
readonly verified: Schema.Literal<true>;
|
|
43
|
+
readonly verifiedAt: Schema.String;
|
|
44
|
+
readonly bodyDigest: Schema.String;
|
|
45
|
+
readonly replayWindowSeconds: Schema.optionalKey<Schema.Int>;
|
|
46
|
+
}>;
|
|
47
|
+
}>, Schema.Struct<{
|
|
48
|
+
readonly kind: Schema.Literal<"schedule">;
|
|
49
|
+
readonly scheduleId: Schema.String;
|
|
50
|
+
readonly scheduleVersion: Schema.Int;
|
|
51
|
+
readonly bindingId: Schema.String;
|
|
52
|
+
readonly fireIndex: Schema.String;
|
|
53
|
+
readonly scheduledAt: Schema.String;
|
|
54
|
+
readonly timezone: Schema.String;
|
|
55
|
+
readonly misfireDisposition: Schema.Union<readonly [Schema.Literal<"on_time">, Schema.Literal<"catch_up">, Schema.Literal<"coalesced">]>;
|
|
56
|
+
readonly coalescedRange: Schema.optionalKey<Schema.Struct<{
|
|
57
|
+
readonly firstScheduledAt: Schema.String;
|
|
58
|
+
readonly lastScheduledAt: Schema.String;
|
|
59
|
+
readonly count: Schema.Int;
|
|
60
|
+
}>>;
|
|
61
|
+
}>, Schema.Struct<{
|
|
62
|
+
readonly kind: Schema.Literal<"message">;
|
|
63
|
+
readonly messageId: Schema.String;
|
|
64
|
+
readonly streamKey: Schema.String;
|
|
65
|
+
readonly sequence: Schema.Int;
|
|
66
|
+
readonly recipient: Schema.Struct<{
|
|
67
|
+
readonly kind: Schema.String;
|
|
68
|
+
readonly id: Schema.String;
|
|
69
|
+
}>;
|
|
70
|
+
}>, Schema.Struct<{
|
|
71
|
+
readonly kind: Schema.Literal<"result">;
|
|
72
|
+
readonly resultId: Schema.String;
|
|
73
|
+
readonly runId: Schema.String;
|
|
74
|
+
readonly outcome: Schema.String;
|
|
75
|
+
}>, Schema.Struct<{
|
|
76
|
+
readonly kind: Schema.Literal<"parent">;
|
|
77
|
+
readonly runLinkId: Schema.String;
|
|
78
|
+
readonly parentRunId: Schema.String;
|
|
79
|
+
readonly childRunId: Schema.String;
|
|
80
|
+
readonly relation: Schema.Union<readonly [Schema.Literal<"awaited_child">, Schema.Literal<"detached_child">]>;
|
|
81
|
+
readonly childOutcome: Schema.optionalKey<Schema.String>;
|
|
82
|
+
}>, Schema.Struct<{
|
|
83
|
+
readonly kind: Schema.Literal<"child">;
|
|
84
|
+
readonly parentRunId: Schema.String;
|
|
85
|
+
readonly rootRunId: Schema.String;
|
|
86
|
+
readonly parentStepKey: Schema.String;
|
|
87
|
+
readonly parentAttempt: Schema.Int;
|
|
88
|
+
readonly loopVersionId: Schema.String;
|
|
89
|
+
readonly requestId: Schema.String;
|
|
90
|
+
}>]>;
|
|
91
|
+
export type TriggerSource = (typeof TriggerSource)['Type'];
|
|
92
|
+
export declare const Event: Schema.Struct<{
|
|
93
|
+
readonly contractVersion: Schema.Literal<"run.v1">;
|
|
94
|
+
readonly id: Schema.String;
|
|
95
|
+
readonly workspaceId: Schema.String;
|
|
96
|
+
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
97
|
+
readonly sourceKind: Schema.Literals<readonly ["manual", "domain", "webhook", "schedule", "message", "result", "parent", "child"]>;
|
|
98
|
+
readonly eventType: Schema.String;
|
|
99
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
100
|
+
readonly kind: Schema.Literal<"manual">;
|
|
101
|
+
readonly actor: Schema.Struct<{
|
|
102
|
+
readonly actorType: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>, Schema.Literal<"runner">]>;
|
|
103
|
+
readonly actorId: Schema.String;
|
|
104
|
+
readonly delegatedByUserId: Schema.optionalKey<Schema.String>;
|
|
105
|
+
readonly agentIdentityId: Schema.optionalKey<Schema.String>;
|
|
106
|
+
readonly runnerId: Schema.optionalKey<Schema.String>;
|
|
107
|
+
}>;
|
|
108
|
+
readonly requestId: Schema.String;
|
|
109
|
+
readonly requestIdempotencyKey: Schema.String;
|
|
110
|
+
}>, Schema.Struct<{
|
|
111
|
+
readonly kind: Schema.Literal<"domain">;
|
|
112
|
+
readonly producer: Schema.Struct<{
|
|
113
|
+
readonly kind: Schema.String;
|
|
114
|
+
readonly id: Schema.String;
|
|
115
|
+
}>;
|
|
116
|
+
readonly transactionId: Schema.String;
|
|
117
|
+
readonly eventId: Schema.String;
|
|
118
|
+
readonly aggregate: Schema.Struct<{
|
|
119
|
+
readonly kind: Schema.String;
|
|
120
|
+
readonly id: Schema.String;
|
|
121
|
+
}>;
|
|
122
|
+
readonly aggregateVersion: Schema.optionalKey<Schema.Int>;
|
|
123
|
+
readonly outboxSequence: Schema.optionalKey<Schema.String>;
|
|
124
|
+
}>, Schema.Struct<{
|
|
125
|
+
readonly kind: Schema.Literal<"webhook">;
|
|
126
|
+
readonly integrationId: Schema.String;
|
|
127
|
+
readonly provider: Schema.String;
|
|
128
|
+
readonly host: Schema.optionalKey<Schema.String>;
|
|
129
|
+
readonly deliveryId: Schema.optionalKey<Schema.String>;
|
|
130
|
+
readonly normalizedEventName: Schema.String;
|
|
131
|
+
readonly bodyDigest: Schema.String;
|
|
132
|
+
readonly signature: Schema.Struct<{
|
|
133
|
+
readonly scheme: Schema.Union<readonly [Schema.Literal<"hmac">, Schema.Literal<"asymmetric">, Schema.Literal<"provider_verified">]>;
|
|
134
|
+
readonly keyRef: Schema.String;
|
|
135
|
+
readonly verified: Schema.Literal<true>;
|
|
136
|
+
readonly verifiedAt: Schema.String;
|
|
137
|
+
readonly bodyDigest: Schema.String;
|
|
138
|
+
readonly replayWindowSeconds: Schema.optionalKey<Schema.Int>;
|
|
139
|
+
}>;
|
|
140
|
+
}>, Schema.Struct<{
|
|
141
|
+
readonly kind: Schema.Literal<"schedule">;
|
|
142
|
+
readonly scheduleId: Schema.String;
|
|
143
|
+
readonly scheduleVersion: Schema.Int;
|
|
144
|
+
readonly bindingId: Schema.String;
|
|
145
|
+
readonly fireIndex: Schema.String;
|
|
146
|
+
readonly scheduledAt: Schema.String;
|
|
147
|
+
readonly timezone: Schema.String;
|
|
148
|
+
readonly misfireDisposition: Schema.Union<readonly [Schema.Literal<"on_time">, Schema.Literal<"catch_up">, Schema.Literal<"coalesced">]>;
|
|
149
|
+
readonly coalescedRange: Schema.optionalKey<Schema.Struct<{
|
|
150
|
+
readonly firstScheduledAt: Schema.String;
|
|
151
|
+
readonly lastScheduledAt: Schema.String;
|
|
152
|
+
readonly count: Schema.Int;
|
|
153
|
+
}>>;
|
|
154
|
+
}>, Schema.Struct<{
|
|
155
|
+
readonly kind: Schema.Literal<"message">;
|
|
156
|
+
readonly messageId: Schema.String;
|
|
157
|
+
readonly streamKey: Schema.String;
|
|
158
|
+
readonly sequence: Schema.Int;
|
|
159
|
+
readonly recipient: Schema.Struct<{
|
|
160
|
+
readonly kind: Schema.String;
|
|
161
|
+
readonly id: Schema.String;
|
|
162
|
+
}>;
|
|
163
|
+
}>, Schema.Struct<{
|
|
164
|
+
readonly kind: Schema.Literal<"result">;
|
|
165
|
+
readonly resultId: Schema.String;
|
|
166
|
+
readonly runId: Schema.String;
|
|
167
|
+
readonly outcome: Schema.String;
|
|
168
|
+
}>, Schema.Struct<{
|
|
169
|
+
readonly kind: Schema.Literal<"parent">;
|
|
170
|
+
readonly runLinkId: Schema.String;
|
|
171
|
+
readonly parentRunId: Schema.String;
|
|
172
|
+
readonly childRunId: Schema.String;
|
|
173
|
+
readonly relation: Schema.Union<readonly [Schema.Literal<"awaited_child">, Schema.Literal<"detached_child">]>;
|
|
174
|
+
readonly childOutcome: Schema.optionalKey<Schema.String>;
|
|
175
|
+
}>, Schema.Struct<{
|
|
176
|
+
readonly kind: Schema.Literal<"child">;
|
|
177
|
+
readonly parentRunId: Schema.String;
|
|
178
|
+
readonly rootRunId: Schema.String;
|
|
179
|
+
readonly parentStepKey: Schema.String;
|
|
180
|
+
readonly parentAttempt: Schema.Int;
|
|
181
|
+
readonly loopVersionId: Schema.String;
|
|
182
|
+
readonly requestId: Schema.String;
|
|
183
|
+
}>]>;
|
|
184
|
+
readonly auth: Schema.Union<readonly [Schema.Struct<{
|
|
185
|
+
readonly mode: Schema.Literal<"actor">;
|
|
186
|
+
readonly actor: Schema.Struct<{
|
|
187
|
+
readonly actorType: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>, Schema.Literal<"runner">]>;
|
|
188
|
+
readonly actorId: Schema.String;
|
|
189
|
+
readonly delegatedByUserId: Schema.optionalKey<Schema.String>;
|
|
190
|
+
readonly agentIdentityId: Schema.optionalKey<Schema.String>;
|
|
191
|
+
readonly runnerId: Schema.optionalKey<Schema.String>;
|
|
192
|
+
}>;
|
|
193
|
+
}>, Schema.Struct<{
|
|
194
|
+
readonly mode: Schema.Literal<"transactional_outbox">;
|
|
195
|
+
readonly producer: Schema.Struct<{
|
|
196
|
+
readonly kind: Schema.String;
|
|
197
|
+
readonly id: Schema.String;
|
|
198
|
+
}>;
|
|
199
|
+
readonly transactionId: Schema.String;
|
|
200
|
+
}>, Schema.Struct<{
|
|
201
|
+
readonly mode: Schema.Literal<"verified_signature">;
|
|
202
|
+
readonly signature: Schema.Struct<{
|
|
203
|
+
readonly scheme: Schema.Union<readonly [Schema.Literal<"hmac">, Schema.Literal<"asymmetric">, Schema.Literal<"provider_verified">]>;
|
|
204
|
+
readonly keyRef: Schema.String;
|
|
205
|
+
readonly verified: Schema.Literal<true>;
|
|
206
|
+
readonly verifiedAt: Schema.String;
|
|
207
|
+
readonly bodyDigest: Schema.String;
|
|
208
|
+
readonly replayWindowSeconds: Schema.optionalKey<Schema.Int>;
|
|
209
|
+
}>;
|
|
210
|
+
}>, Schema.Struct<{
|
|
211
|
+
readonly mode: Schema.Literal<"scheduler">;
|
|
212
|
+
readonly scheduleId: Schema.String;
|
|
213
|
+
readonly scheduleVersion: Schema.Int;
|
|
214
|
+
}>, Schema.Struct<{
|
|
215
|
+
readonly mode: Schema.Literal<"canonical_run_transition">;
|
|
216
|
+
readonly subject: Schema.Struct<{
|
|
217
|
+
readonly kind: Schema.String;
|
|
218
|
+
readonly id: Schema.String;
|
|
219
|
+
}>;
|
|
220
|
+
readonly eventId: Schema.String;
|
|
221
|
+
}>]>;
|
|
222
|
+
readonly subject: Schema.optionalKey<Schema.Struct<{
|
|
223
|
+
readonly kind: Schema.String;
|
|
224
|
+
readonly id: Schema.String;
|
|
225
|
+
}>>;
|
|
226
|
+
readonly correlation: Schema.$Record<Schema.String, Schema.Codec<SafeJson, SafeJson, never, never>>;
|
|
227
|
+
readonly occurredAt: Schema.String;
|
|
228
|
+
readonly receivedAt: Schema.String;
|
|
229
|
+
readonly ordering: Schema.Struct<{
|
|
230
|
+
readonly key: Schema.String;
|
|
231
|
+
readonly guarantee: Schema.Union<readonly [Schema.Literal<"transaction">, Schema.Literal<"source">, Schema.Literal<"provider">, Schema.Literal<"arrival">, Schema.Literal<"none">]>;
|
|
232
|
+
readonly sourcePosition: Schema.optionalKey<Schema.String>;
|
|
233
|
+
readonly predecessorPosition: Schema.optionalKey<Schema.String>;
|
|
234
|
+
readonly gapPolicy: Schema.Union<readonly [Schema.Literal<"wait">, Schema.Literal<"process_arrival">, Schema.Literal<"block_manual">]>;
|
|
235
|
+
}>;
|
|
236
|
+
readonly payload: Schema.Struct<{
|
|
237
|
+
readonly schema: Schema.Struct<{
|
|
238
|
+
readonly kind: Schema.Literal<"typebox_ref">;
|
|
239
|
+
readonly name: Schema.String;
|
|
240
|
+
readonly version: Schema.String;
|
|
241
|
+
readonly sha256: Schema.String;
|
|
242
|
+
}>;
|
|
243
|
+
readonly data: Schema.Codec<SafeJson, SafeJson, never, never>;
|
|
244
|
+
readonly digest: Schema.String;
|
|
245
|
+
}>;
|
|
246
|
+
readonly deduplication: Schema.Struct<{
|
|
247
|
+
readonly scope: Schema.String;
|
|
248
|
+
readonly keyDigest: Schema.String;
|
|
249
|
+
readonly basis: Schema.Union<readonly [Schema.Literal<"actor_idempotency">, Schema.Literal<"transaction_event">, Schema.Literal<"provider_delivery">, Schema.Literal<"provider_body_digest">, Schema.Literal<"schedule_fire">, Schema.Literal<"message_id">, Schema.Literal<"result_id">, Schema.Literal<"run_link_id">, Schema.Literal<"child_call">]>;
|
|
250
|
+
}>;
|
|
251
|
+
readonly createdAt: Schema.String;
|
|
252
|
+
}>;
|
|
253
|
+
export type Event = (typeof Event)['Type'];
|
|
254
|
+
export declare const TriggerIngress: Schema.Struct<{
|
|
255
|
+
readonly event: Schema.Struct<{
|
|
256
|
+
readonly contractVersion: Schema.Literal<"run.v1">;
|
|
257
|
+
readonly id: Schema.String;
|
|
258
|
+
readonly workspaceId: Schema.String;
|
|
259
|
+
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
260
|
+
readonly sourceKind: Schema.Literals<readonly ["manual", "domain", "webhook", "schedule", "message", "result", "parent", "child"]>;
|
|
261
|
+
readonly eventType: Schema.String;
|
|
262
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
263
|
+
readonly kind: Schema.Literal<"manual">;
|
|
264
|
+
readonly actor: Schema.Struct<{
|
|
265
|
+
readonly actorType: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>, Schema.Literal<"runner">]>;
|
|
266
|
+
readonly actorId: Schema.String;
|
|
267
|
+
readonly delegatedByUserId: Schema.optionalKey<Schema.String>;
|
|
268
|
+
readonly agentIdentityId: Schema.optionalKey<Schema.String>;
|
|
269
|
+
readonly runnerId: Schema.optionalKey<Schema.String>;
|
|
270
|
+
}>;
|
|
271
|
+
readonly requestId: Schema.String;
|
|
272
|
+
readonly requestIdempotencyKey: Schema.String;
|
|
273
|
+
}>, Schema.Struct<{
|
|
274
|
+
readonly kind: Schema.Literal<"domain">;
|
|
275
|
+
readonly producer: Schema.Struct<{
|
|
276
|
+
readonly kind: Schema.String;
|
|
277
|
+
readonly id: Schema.String;
|
|
278
|
+
}>;
|
|
279
|
+
readonly transactionId: Schema.String;
|
|
280
|
+
readonly eventId: Schema.String;
|
|
281
|
+
readonly aggregate: Schema.Struct<{
|
|
282
|
+
readonly kind: Schema.String;
|
|
283
|
+
readonly id: Schema.String;
|
|
284
|
+
}>;
|
|
285
|
+
readonly aggregateVersion: Schema.optionalKey<Schema.Int>;
|
|
286
|
+
readonly outboxSequence: Schema.optionalKey<Schema.String>;
|
|
287
|
+
}>, Schema.Struct<{
|
|
288
|
+
readonly kind: Schema.Literal<"webhook">;
|
|
289
|
+
readonly integrationId: Schema.String;
|
|
290
|
+
readonly provider: Schema.String;
|
|
291
|
+
readonly host: Schema.optionalKey<Schema.String>;
|
|
292
|
+
readonly deliveryId: Schema.optionalKey<Schema.String>;
|
|
293
|
+
readonly normalizedEventName: Schema.String;
|
|
294
|
+
readonly bodyDigest: Schema.String;
|
|
295
|
+
readonly signature: Schema.Struct<{
|
|
296
|
+
readonly scheme: Schema.Union<readonly [Schema.Literal<"hmac">, Schema.Literal<"asymmetric">, Schema.Literal<"provider_verified">]>;
|
|
297
|
+
readonly keyRef: Schema.String;
|
|
298
|
+
readonly verified: Schema.Literal<true>;
|
|
299
|
+
readonly verifiedAt: Schema.String;
|
|
300
|
+
readonly bodyDigest: Schema.String;
|
|
301
|
+
readonly replayWindowSeconds: Schema.optionalKey<Schema.Int>;
|
|
302
|
+
}>;
|
|
303
|
+
}>, Schema.Struct<{
|
|
304
|
+
readonly kind: Schema.Literal<"schedule">;
|
|
305
|
+
readonly scheduleId: Schema.String;
|
|
306
|
+
readonly scheduleVersion: Schema.Int;
|
|
307
|
+
readonly bindingId: Schema.String;
|
|
308
|
+
readonly fireIndex: Schema.String;
|
|
309
|
+
readonly scheduledAt: Schema.String;
|
|
310
|
+
readonly timezone: Schema.String;
|
|
311
|
+
readonly misfireDisposition: Schema.Union<readonly [Schema.Literal<"on_time">, Schema.Literal<"catch_up">, Schema.Literal<"coalesced">]>;
|
|
312
|
+
readonly coalescedRange: Schema.optionalKey<Schema.Struct<{
|
|
313
|
+
readonly firstScheduledAt: Schema.String;
|
|
314
|
+
readonly lastScheduledAt: Schema.String;
|
|
315
|
+
readonly count: Schema.Int;
|
|
316
|
+
}>>;
|
|
317
|
+
}>, Schema.Struct<{
|
|
318
|
+
readonly kind: Schema.Literal<"message">;
|
|
319
|
+
readonly messageId: Schema.String;
|
|
320
|
+
readonly streamKey: Schema.String;
|
|
321
|
+
readonly sequence: Schema.Int;
|
|
322
|
+
readonly recipient: Schema.Struct<{
|
|
323
|
+
readonly kind: Schema.String;
|
|
324
|
+
readonly id: Schema.String;
|
|
325
|
+
}>;
|
|
326
|
+
}>, Schema.Struct<{
|
|
327
|
+
readonly kind: Schema.Literal<"result">;
|
|
328
|
+
readonly resultId: Schema.String;
|
|
329
|
+
readonly runId: Schema.String;
|
|
330
|
+
readonly outcome: Schema.String;
|
|
331
|
+
}>, Schema.Struct<{
|
|
332
|
+
readonly kind: Schema.Literal<"parent">;
|
|
333
|
+
readonly runLinkId: Schema.String;
|
|
334
|
+
readonly parentRunId: Schema.String;
|
|
335
|
+
readonly childRunId: Schema.String;
|
|
336
|
+
readonly relation: Schema.Union<readonly [Schema.Literal<"awaited_child">, Schema.Literal<"detached_child">]>;
|
|
337
|
+
readonly childOutcome: Schema.optionalKey<Schema.String>;
|
|
338
|
+
}>, Schema.Struct<{
|
|
339
|
+
readonly kind: Schema.Literal<"child">;
|
|
340
|
+
readonly parentRunId: Schema.String;
|
|
341
|
+
readonly rootRunId: Schema.String;
|
|
342
|
+
readonly parentStepKey: Schema.String;
|
|
343
|
+
readonly parentAttempt: Schema.Int;
|
|
344
|
+
readonly loopVersionId: Schema.String;
|
|
345
|
+
readonly requestId: Schema.String;
|
|
346
|
+
}>]>;
|
|
347
|
+
readonly auth: Schema.Union<readonly [Schema.Struct<{
|
|
348
|
+
readonly mode: Schema.Literal<"actor">;
|
|
349
|
+
readonly actor: Schema.Struct<{
|
|
350
|
+
readonly actorType: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"human">, Schema.Literal<"delegated_agent">, Schema.Literal<"agent">]>, Schema.Literal<"runner">]>;
|
|
351
|
+
readonly actorId: Schema.String;
|
|
352
|
+
readonly delegatedByUserId: Schema.optionalKey<Schema.String>;
|
|
353
|
+
readonly agentIdentityId: Schema.optionalKey<Schema.String>;
|
|
354
|
+
readonly runnerId: Schema.optionalKey<Schema.String>;
|
|
355
|
+
}>;
|
|
356
|
+
}>, Schema.Struct<{
|
|
357
|
+
readonly mode: Schema.Literal<"transactional_outbox">;
|
|
358
|
+
readonly producer: Schema.Struct<{
|
|
359
|
+
readonly kind: Schema.String;
|
|
360
|
+
readonly id: Schema.String;
|
|
361
|
+
}>;
|
|
362
|
+
readonly transactionId: Schema.String;
|
|
363
|
+
}>, Schema.Struct<{
|
|
364
|
+
readonly mode: Schema.Literal<"verified_signature">;
|
|
365
|
+
readonly signature: Schema.Struct<{
|
|
366
|
+
readonly scheme: Schema.Union<readonly [Schema.Literal<"hmac">, Schema.Literal<"asymmetric">, Schema.Literal<"provider_verified">]>;
|
|
367
|
+
readonly keyRef: Schema.String;
|
|
368
|
+
readonly verified: Schema.Literal<true>;
|
|
369
|
+
readonly verifiedAt: Schema.String;
|
|
370
|
+
readonly bodyDigest: Schema.String;
|
|
371
|
+
readonly replayWindowSeconds: Schema.optionalKey<Schema.Int>;
|
|
372
|
+
}>;
|
|
373
|
+
}>, Schema.Struct<{
|
|
374
|
+
readonly mode: Schema.Literal<"scheduler">;
|
|
375
|
+
readonly scheduleId: Schema.String;
|
|
376
|
+
readonly scheduleVersion: Schema.Int;
|
|
377
|
+
}>, Schema.Struct<{
|
|
378
|
+
readonly mode: Schema.Literal<"canonical_run_transition">;
|
|
379
|
+
readonly subject: Schema.Struct<{
|
|
380
|
+
readonly kind: Schema.String;
|
|
381
|
+
readonly id: Schema.String;
|
|
382
|
+
}>;
|
|
383
|
+
readonly eventId: Schema.String;
|
|
384
|
+
}>]>;
|
|
385
|
+
readonly subject: Schema.optionalKey<Schema.Struct<{
|
|
386
|
+
readonly kind: Schema.String;
|
|
387
|
+
readonly id: Schema.String;
|
|
388
|
+
}>>;
|
|
389
|
+
readonly correlation: Schema.$Record<Schema.String, Schema.Codec<SafeJson, SafeJson, never, never>>;
|
|
390
|
+
readonly occurredAt: Schema.String;
|
|
391
|
+
readonly receivedAt: Schema.String;
|
|
392
|
+
readonly ordering: Schema.Struct<{
|
|
393
|
+
readonly key: Schema.String;
|
|
394
|
+
readonly guarantee: Schema.Union<readonly [Schema.Literal<"transaction">, Schema.Literal<"source">, Schema.Literal<"provider">, Schema.Literal<"arrival">, Schema.Literal<"none">]>;
|
|
395
|
+
readonly sourcePosition: Schema.optionalKey<Schema.String>;
|
|
396
|
+
readonly predecessorPosition: Schema.optionalKey<Schema.String>;
|
|
397
|
+
readonly gapPolicy: Schema.Union<readonly [Schema.Literal<"wait">, Schema.Literal<"process_arrival">, Schema.Literal<"block_manual">]>;
|
|
398
|
+
}>;
|
|
399
|
+
readonly payload: Schema.Struct<{
|
|
400
|
+
readonly schema: Schema.Struct<{
|
|
401
|
+
readonly kind: Schema.Literal<"typebox_ref">;
|
|
402
|
+
readonly name: Schema.String;
|
|
403
|
+
readonly version: Schema.String;
|
|
404
|
+
readonly sha256: Schema.String;
|
|
405
|
+
}>;
|
|
406
|
+
readonly data: Schema.Codec<SafeJson, SafeJson, never, never>;
|
|
407
|
+
readonly digest: Schema.String;
|
|
408
|
+
}>;
|
|
409
|
+
readonly deduplication: Schema.Struct<{
|
|
410
|
+
readonly scope: Schema.String;
|
|
411
|
+
readonly keyDigest: Schema.String;
|
|
412
|
+
readonly basis: Schema.Union<readonly [Schema.Literal<"actor_idempotency">, Schema.Literal<"transaction_event">, Schema.Literal<"provider_delivery">, Schema.Literal<"provider_body_digest">, Schema.Literal<"schedule_fire">, Schema.Literal<"message_id">, Schema.Literal<"result_id">, Schema.Literal<"run_link_id">, Schema.Literal<"child_call">]>;
|
|
413
|
+
}>;
|
|
414
|
+
readonly createdAt: Schema.String;
|
|
415
|
+
}>;
|
|
416
|
+
readonly idempotencyKey: Schema.optionalKey<Schema.String>;
|
|
417
|
+
readonly requestId: Schema.optionalKey<Schema.String>;
|
|
418
|
+
readonly traceparent: Schema.optionalKey<Schema.String>;
|
|
419
|
+
}>;
|
|
420
|
+
export type TriggerIngress = (typeof TriggerIngress)['Type'];
|
|
421
|
+
export {};
|