@qlever-llc/trellis 0.10.17 → 0.19.0-rc.1
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/esm/auth/mod.d.ts +1 -1
- package/esm/auth/mod.d.ts.map +1 -1
- package/esm/auth/mod.js +1 -1
- package/esm/auth/protocol.d.ts +416 -398
- package/esm/auth/protocol.d.ts.map +1 -1
- package/esm/auth/protocol.js +35 -33
- package/esm/codec.d.ts +1 -0
- package/esm/codec.d.ts.map +1 -1
- package/esm/codec.js +1 -0
- package/esm/contract_support/canonical.d.ts +3 -0
- package/esm/contract_support/canonical.d.ts.map +1 -1
- package/esm/contract_support/canonical.js +3 -0
- package/esm/contract_support/mod.d.ts +28 -4
- package/esm/contract_support/mod.d.ts.map +1 -1
- package/esm/contract_support/mod.js +85 -4
- package/esm/contract_support/protocol.d.ts +92 -7
- package/esm/contract_support/protocol.d.ts.map +1 -1
- package/esm/contract_support/protocol.js +40 -6
- package/esm/errors/index.d.ts +9 -9
- package/esm/generated-sdk/auth/api.d.ts +4 -1
- package/esm/generated-sdk/auth/api.d.ts.map +1 -1
- package/esm/generated-sdk/auth/api.js +6 -1
- package/esm/generated-sdk/auth/client.d.ts +47 -32
- package/esm/generated-sdk/auth/client.d.ts.map +1 -1
- package/esm/generated-sdk/auth/contract.d.ts +1 -1
- package/esm/generated-sdk/auth/contract.d.ts.map +1 -1
- package/esm/generated-sdk/auth/contract.js +1570 -1202
- package/esm/generated-sdk/auth/schemas.d.ts +1757 -1759
- package/esm/generated-sdk/auth/schemas.d.ts.map +1 -1
- package/esm/generated-sdk/auth/schemas.js +963 -768
- package/esm/generated-sdk/auth/types.d.ts +292 -302
- package/esm/generated-sdk/auth/types.d.ts.map +1 -1
- package/esm/generated-sdk/auth/types.js +1 -1
- package/esm/generated-sdk/health/client.d.ts +4 -4
- package/esm/generated-sdk/health/client.d.ts.map +1 -1
- package/esm/generated-sdk/health/contract.d.ts +1 -1
- package/esm/generated-sdk/health/contract.d.ts.map +1 -1
- package/esm/generated-sdk/health/contract.js +2 -10
- package/esm/generated-sdk/health/schemas.d.ts +1 -14
- package/esm/generated-sdk/health/schemas.d.ts.map +1 -1
- package/esm/generated-sdk/health/schemas.js +1 -9
- package/esm/generated-sdk/health/types.d.ts +3 -5
- package/esm/generated-sdk/health/types.d.ts.map +1 -1
- package/esm/generated-sdk/health/types.js +1 -2
- package/esm/generated-sdk/jobs/api.d.ts +13 -0
- package/esm/generated-sdk/jobs/api.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/client.d.ts +6 -4
- package/esm/generated-sdk/jobs/client.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/contract.d.ts +14 -1
- package/esm/generated-sdk/jobs/contract.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/contract.js +268 -1
- package/esm/generated-sdk/jobs/owned_api.d.ts +13 -0
- package/esm/generated-sdk/jobs/owned_api.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/owned_api.js +20 -1
- package/esm/generated-sdk/jobs/schemas.d.ts +437 -0
- package/esm/generated-sdk/jobs/schemas.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/schemas.js +211 -0
- package/esm/generated-sdk/jobs/types.d.ts +123 -1
- package/esm/generated-sdk/jobs/types.d.ts.map +1 -1
- package/esm/generated-sdk/jobs/types.js +1 -1
- package/esm/generated-sdk/state/client.d.ts +4 -4
- package/esm/generated-sdk/state/client.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/api.d.ts +4 -1
- package/esm/generated-sdk/trellis-core/api.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/api.js +6 -1
- package/esm/generated-sdk/trellis-core/client.d.ts +28 -3
- package/esm/generated-sdk/trellis-core/client.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/contract.d.ts +1 -1
- package/esm/generated-sdk/trellis-core/contract.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/contract.js +91 -1
- package/esm/generated-sdk/trellis-core/schemas.d.ts +113 -0
- package/esm/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/schemas.js +81 -0
- package/esm/generated-sdk/trellis-core/types.d.ts +23 -1
- package/esm/generated-sdk/trellis-core/types.d.ts.map +1 -1
- package/esm/generated-sdk/trellis-core/types.js +1 -1
- package/esm/health.d.ts +1 -1
- package/esm/health.d.ts.map +1 -1
- package/esm/health.js +1 -1
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -1
- package/esm/jobs.d.ts +69 -3
- package/esm/jobs.d.ts.map +1 -1
- package/esm/jobs.js +92 -3
- package/esm/server/health.d.ts +2 -6
- package/esm/server/health.d.ts.map +1 -1
- package/esm/server/health_schemas.d.ts +0 -8
- package/esm/server/health_schemas.d.ts.map +1 -1
- package/esm/server/health_schemas.js +0 -5
- package/esm/server/internal_jobs/bindings.d.ts +11 -0
- package/esm/server/internal_jobs/bindings.d.ts.map +1 -1
- package/esm/server/internal_jobs/job-manager.d.ts +44 -1
- package/esm/server/internal_jobs/job-manager.d.ts.map +1 -1
- package/esm/server/internal_jobs/job-manager.js +361 -51
- package/esm/server/internal_jobs/key-coordinator.d.ts +260 -0
- package/esm/server/internal_jobs/key-coordinator.d.ts.map +1 -0
- package/esm/server/internal_jobs/key-coordinator.js +580 -0
- package/esm/server/internal_jobs/projection.d.ts.map +1 -1
- package/esm/server/internal_jobs/projection.js +2 -0
- package/esm/server/internal_jobs/runtime-worker.d.ts +5 -1
- package/esm/server/internal_jobs/runtime-worker.d.ts.map +1 -1
- package/esm/server/internal_jobs/runtime-worker.js +14 -2
- package/esm/server/internal_jobs/types.d.ts +5 -5
- package/esm/server/internal_jobs/types.d.ts.map +1 -1
- package/esm/server/internal_jobs/types.js +6 -0
- package/esm/server/service.d.ts +8 -3
- package/esm/server/service.d.ts.map +1 -1
- package/esm/server/service.js +127 -6
- package/esm/service/drizzle.d.ts +27 -0
- package/esm/service/drizzle.d.ts.map +1 -0
- package/esm/service/drizzle.js +84 -0
- package/esm/service/mod.d.ts +1 -1
- package/esm/service/mod.d.ts.map +1 -1
- package/esm/service/mod.js +1 -1
- package/esm/service/outbox_inbox.d.ts.map +1 -1
- package/esm/service/outbox_inbox.js +13 -2
- package/esm/trellis.d.ts +24 -8
- package/esm/trellis.d.ts.map +1 -1
- package/esm/trellis.js +44 -22
- package/package.json +14 -2
- package/script/auth/mod.d.ts +1 -1
- package/script/auth/mod.d.ts.map +1 -1
- package/script/auth/mod.js +22 -6
- package/script/auth/protocol.d.ts +416 -398
- package/script/auth/protocol.d.ts.map +1 -1
- package/script/auth/protocol.js +40 -37
- package/script/codec.d.ts +1 -0
- package/script/codec.d.ts.map +1 -1
- package/script/codec.js +1 -0
- package/script/contract_support/canonical.d.ts +3 -0
- package/script/contract_support/canonical.d.ts.map +1 -1
- package/script/contract_support/canonical.js +3 -0
- package/script/contract_support/mod.d.ts +28 -4
- package/script/contract_support/mod.d.ts.map +1 -1
- package/script/contract_support/mod.js +90 -4
- package/script/contract_support/protocol.d.ts +92 -7
- package/script/contract_support/protocol.d.ts.map +1 -1
- package/script/contract_support/protocol.js +41 -7
- package/script/errors/index.d.ts +9 -9
- package/script/generated-sdk/auth/api.d.ts +4 -1
- package/script/generated-sdk/auth/api.d.ts.map +1 -1
- package/script/generated-sdk/auth/api.js +6 -1
- package/script/generated-sdk/auth/client.d.ts +47 -32
- package/script/generated-sdk/auth/client.d.ts.map +1 -1
- package/script/generated-sdk/auth/contract.d.ts +1 -1
- package/script/generated-sdk/auth/contract.d.ts.map +1 -1
- package/script/generated-sdk/auth/contract.js +1570 -1202
- package/script/generated-sdk/auth/schemas.d.ts +1757 -1759
- package/script/generated-sdk/auth/schemas.d.ts.map +1 -1
- package/script/generated-sdk/auth/schemas.js +963 -768
- package/script/generated-sdk/auth/types.d.ts +292 -302
- package/script/generated-sdk/auth/types.d.ts.map +1 -1
- package/script/generated-sdk/auth/types.js +1 -1
- package/script/generated-sdk/health/client.d.ts +4 -4
- package/script/generated-sdk/health/client.d.ts.map +1 -1
- package/script/generated-sdk/health/contract.d.ts +1 -1
- package/script/generated-sdk/health/contract.d.ts.map +1 -1
- package/script/generated-sdk/health/contract.js +2 -10
- package/script/generated-sdk/health/schemas.d.ts +1 -14
- package/script/generated-sdk/health/schemas.d.ts.map +1 -1
- package/script/generated-sdk/health/schemas.js +1 -9
- package/script/generated-sdk/health/types.d.ts +3 -5
- package/script/generated-sdk/health/types.d.ts.map +1 -1
- package/script/generated-sdk/health/types.js +1 -2
- package/script/generated-sdk/jobs/api.d.ts +13 -0
- package/script/generated-sdk/jobs/api.d.ts.map +1 -1
- package/script/generated-sdk/jobs/client.d.ts +6 -4
- package/script/generated-sdk/jobs/client.d.ts.map +1 -1
- package/script/generated-sdk/jobs/contract.d.ts +14 -1
- package/script/generated-sdk/jobs/contract.d.ts.map +1 -1
- package/script/generated-sdk/jobs/contract.js +268 -1
- package/script/generated-sdk/jobs/owned_api.d.ts +13 -0
- package/script/generated-sdk/jobs/owned_api.d.ts.map +1 -1
- package/script/generated-sdk/jobs/owned_api.js +19 -0
- package/script/generated-sdk/jobs/schemas.d.ts +437 -0
- package/script/generated-sdk/jobs/schemas.d.ts.map +1 -1
- package/script/generated-sdk/jobs/schemas.js +212 -1
- package/script/generated-sdk/jobs/types.d.ts +123 -1
- package/script/generated-sdk/jobs/types.d.ts.map +1 -1
- package/script/generated-sdk/jobs/types.js +1 -1
- package/script/generated-sdk/state/client.d.ts +4 -4
- package/script/generated-sdk/state/client.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/api.d.ts +4 -1
- package/script/generated-sdk/trellis-core/api.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/api.js +6 -1
- package/script/generated-sdk/trellis-core/client.d.ts +28 -3
- package/script/generated-sdk/trellis-core/client.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/contract.d.ts +1 -1
- package/script/generated-sdk/trellis-core/contract.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/contract.js +91 -1
- package/script/generated-sdk/trellis-core/schemas.d.ts +113 -0
- package/script/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/schemas.js +81 -0
- package/script/generated-sdk/trellis-core/types.d.ts +23 -1
- package/script/generated-sdk/trellis-core/types.d.ts.map +1 -1
- package/script/generated-sdk/trellis-core/types.js +1 -1
- package/script/health.d.ts +1 -1
- package/script/health.d.ts.map +1 -1
- package/script/health.js +1 -2
- package/script/index.d.ts +2 -2
- package/script/index.d.ts.map +1 -1
- package/script/index.js +2 -3
- package/script/jobs.d.ts +69 -3
- package/script/jobs.d.ts.map +1 -1
- package/script/jobs.js +93 -3
- package/script/server/health.d.ts +2 -6
- package/script/server/health.d.ts.map +1 -1
- package/script/server/health_schemas.d.ts +0 -8
- package/script/server/health_schemas.d.ts.map +1 -1
- package/script/server/health_schemas.js +1 -6
- package/script/server/internal_jobs/bindings.d.ts +11 -0
- package/script/server/internal_jobs/bindings.d.ts.map +1 -1
- package/script/server/internal_jobs/job-manager.d.ts +44 -1
- package/script/server/internal_jobs/job-manager.d.ts.map +1 -1
- package/script/server/internal_jobs/job-manager.js +361 -51
- package/script/server/internal_jobs/key-coordinator.d.ts +260 -0
- package/script/server/internal_jobs/key-coordinator.d.ts.map +1 -0
- package/script/server/internal_jobs/key-coordinator.js +593 -0
- package/script/server/internal_jobs/projection.d.ts.map +1 -1
- package/script/server/internal_jobs/projection.js +2 -0
- package/script/server/internal_jobs/runtime-worker.d.ts +5 -1
- package/script/server/internal_jobs/runtime-worker.d.ts.map +1 -1
- package/script/server/internal_jobs/runtime-worker.js +14 -2
- package/script/server/internal_jobs/types.d.ts +5 -5
- package/script/server/internal_jobs/types.d.ts.map +1 -1
- package/script/server/internal_jobs/types.js +6 -0
- package/script/server/service.d.ts +8 -3
- package/script/server/service.d.ts.map +1 -1
- package/script/server/service.js +126 -5
- package/script/service/drizzle.d.ts +27 -0
- package/script/service/drizzle.d.ts.map +1 -0
- package/script/service/drizzle.js +88 -0
- package/script/service/mod.d.ts +1 -1
- package/script/service/mod.d.ts.map +1 -1
- package/script/service/mod.js +1 -2
- package/script/service/outbox_inbox.d.ts.map +1 -1
- package/script/service/outbox_inbox.js +13 -2
- package/script/trellis.d.ts +24 -8
- package/script/trellis.d.ts.map +1 -1
- package/script/trellis.js +44 -22
- package/src/auth/mod.ts +28 -2
- package/src/auth/protocol.ts +72 -37
- package/src/codec.ts +1 -0
- package/src/contract_support/canonical.ts +3 -0
- package/src/contract_support/mod.ts +158 -5
- package/src/contract_support/protocol.ts +56 -9
- package/src/health.ts +0 -1
- package/src/index.ts +2 -1
- package/src/jobs.ts +138 -1
- package/src/sdk/_generated/auth/api.ts +9 -2
- package/src/sdk/_generated/auth/client.ts +85 -78
- package/src/sdk/_generated/auth/contract.ts +1803 -1435
- package/src/sdk/_generated/auth/schemas.ts +1166 -971
- package/src/sdk/_generated/auth/types.ts +330 -314
- package/src/sdk/_generated/core/api.ts +9 -2
- package/src/sdk/_generated/core/client.ts +41 -2
- package/src/sdk/_generated/core/contract.ts +91 -1
- package/src/sdk/_generated/core/schemas.ts +81 -0
- package/src/sdk/_generated/core/types.ts +23 -1
- package/src/sdk/_generated/health/client.ts +6 -6
- package/src/sdk/_generated/health/contract.ts +2 -10
- package/src/sdk/_generated/health/schemas.ts +1 -9
- package/src/sdk/_generated/health/types.ts +6 -2
- package/src/sdk/_generated/jobs/client.ts +17 -6
- package/src/sdk/_generated/jobs/contract.ts +269 -1
- package/src/sdk/_generated/jobs/owned_api.ts +21 -0
- package/src/sdk/_generated/jobs/schemas.ts +213 -0
- package/src/sdk/_generated/jobs/types.ts +116 -1
- package/src/sdk/_generated/state/client.ts +6 -6
- package/src/server/health.ts +2 -6
- package/src/server/health_schemas.ts +0 -6
- package/src/server/internal_jobs/bindings.ts +11 -0
- package/src/server/internal_jobs/job-manager.ts +436 -16
- package/src/server/internal_jobs/key-coordinator.ts +955 -0
- package/src/server/internal_jobs/projection.ts +2 -0
- package/src/server/internal_jobs/runtime-worker.ts +17 -1
- package/src/server/internal_jobs/types.ts +6 -0
- package/src/server/service.ts +168 -9
- package/src/service/drizzle.ts +125 -0
- package/src/service/mod.ts +0 -1
- package/src/service/outbox_inbox.ts +16 -6
- package/src/trellis.ts +76 -27
|
@@ -38,6 +38,7 @@ export interface TrellisJobsClient {
|
|
|
38
38
|
cancel(input: Types.JobsCancelInput, opts?: RequestOpts): AsyncResult<Types.JobsCancelOutput, BaseError>;
|
|
39
39
|
dismissDLQ(input: Types.JobsDismissDLQInput, opts?: RequestOpts): AsyncResult<Types.JobsDismissDLQOutput, BaseError>;
|
|
40
40
|
get(input: Types.JobsGetInput, opts?: RequestOpts): AsyncResult<Types.JobsGetOutput, BaseError>;
|
|
41
|
+
getKey(input: Types.JobsGetKeyInput, opts?: RequestOpts): AsyncResult<Types.JobsGetKeyOutput, BaseError>;
|
|
41
42
|
health(input: Types.JobsHealthInput, opts?: RequestOpts): AsyncResult<Types.JobsHealthOutput, BaseError>;
|
|
42
43
|
list(input: Types.JobsListInput, opts?: RequestOpts): AsyncResult<Types.JobsListOutput, BaseError>;
|
|
43
44
|
listDLQ(input: Types.JobsListDLQInput, opts?: RequestOpts): AsyncResult<Types.JobsListDLQOutput, BaseError>;
|
|
@@ -52,8 +53,8 @@ export interface TrellisJobsClient {
|
|
|
52
53
|
readonly event: {
|
|
53
54
|
readonly health: {
|
|
54
55
|
heartbeat: {
|
|
55
|
-
publish(event:
|
|
56
|
-
prepare(event:
|
|
56
|
+
publish(event: HealthSdk.HealthHeartbeatEvent): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
57
|
+
prepare(event: HealthSdk.HealthHeartbeatEvent): Result<PreparedTrellisEvent<HealthSdk.HealthHeartbeatEvent>, ValidationError | UnexpectedError>;
|
|
57
58
|
listen(handler: EventCallback<HealthSdk.HealthHeartbeatEvent>, subjectData?: Record<string, unknown>, opts?: EventOpts): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
58
59
|
};
|
|
59
60
|
};
|
|
@@ -74,8 +75,8 @@ export type ServiceWithDeps<TDeps> = Omit<TrellisJobsClient, "event"> & {
|
|
|
74
75
|
export interface ServiceEventSurface<TDeps> {
|
|
75
76
|
readonly health: {
|
|
76
77
|
heartbeat: {
|
|
77
|
-
publish(event:
|
|
78
|
-
prepare(event:
|
|
78
|
+
publish(event: HealthSdk.HealthHeartbeatEvent): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
79
|
+
prepare(event: HealthSdk.HealthHeartbeatEvent): Result<PreparedTrellisEvent<HealthSdk.HealthHeartbeatEvent>, ValidationError | UnexpectedError>;
|
|
79
80
|
listen(handler: ServiceEventHandler<HealthSdk.HealthHeartbeatEvent, TDeps>, subjectData?: Record<string, unknown>, opts?: EventOpts): AsyncResult<void, ValidationError | UnexpectedError>;
|
|
80
81
|
};
|
|
81
82
|
};
|
|
@@ -86,6 +87,7 @@ export interface ServiceHandle<TDeps = undefined> {
|
|
|
86
87
|
cancel(handler: RpcHandler<Types.JobsCancelInput, Types.JobsCancelOutput, TDeps>): Promise<void>;
|
|
87
88
|
dismissDLQ(handler: RpcHandler<Types.JobsDismissDLQInput, Types.JobsDismissDLQOutput, TDeps>): Promise<void>;
|
|
88
89
|
get(handler: RpcHandler<Types.JobsGetInput, Types.JobsGetOutput, TDeps>): Promise<void>;
|
|
90
|
+
getKey(handler: RpcHandler<Types.JobsGetKeyInput, Types.JobsGetKeyOutput, TDeps>): Promise<void>;
|
|
89
91
|
health(handler: RpcHandler<Types.JobsHealthInput, Types.JobsHealthOutput, TDeps>): Promise<void>;
|
|
90
92
|
list(handler: RpcHandler<Types.JobsListInput, Types.JobsListOutput, TDeps>): Promise<void>;
|
|
91
93
|
listDLQ(handler: RpcHandler<Types.JobsListDLQInput, Types.JobsListDLQOutput, TDeps>): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/jobs/client.ts"],"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2
|
import { API } from "./api.js";
|
|
3
3
|
export declare const CONTRACT_ID: "trellis.jobs@v1";
|
|
4
|
-
export declare const CONTRACT_DIGEST: "
|
|
4
|
+
export declare const CONTRACT_DIGEST: "xDigtrlrF3n3ZNgHVdwDJFcwi0PEJBiDyBG6FnzFzM8";
|
|
5
5
|
export declare const CONTRACT: TrellisContractV1;
|
|
6
6
|
export declare const sdk: SdkContractModule<typeof CONTRACT_ID, typeof API.owned>;
|
|
7
7
|
export declare const use: import("@qlever-llc/trellis").ContractUseFn<"trellis.jobs@v1", {
|
|
@@ -45,6 +45,19 @@ export declare const use: import("@qlever-llc/trellis").ContractUseFn<"trellis.j
|
|
|
45
45
|
readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
|
|
46
46
|
}];
|
|
47
47
|
};
|
|
48
|
+
"Jobs.GetKey": {
|
|
49
|
+
subject: string;
|
|
50
|
+
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsGetKeyInput>;
|
|
51
|
+
output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsGetKeyOutput>;
|
|
52
|
+
callerCapabilities: string[];
|
|
53
|
+
errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
54
|
+
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
55
|
+
runtimeErrors: readonly [{
|
|
56
|
+
readonly type: "NotFoundError";
|
|
57
|
+
readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
|
|
58
|
+
readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
|
|
59
|
+
}];
|
|
60
|
+
};
|
|
48
61
|
"Jobs.Health": {
|
|
49
62
|
subject: string;
|
|
50
63
|
input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsHealthInput>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/jobs/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,iBAAiB,EACjB,iBAAiB,EAElB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAM/B,eAAO,MAAM,WAAW,EAAG,iBAA0B,CAAC;AACtD,eAAO,MAAM,eAAe,EAC1B,6CAAsD,CAAC;AACzD,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/jobs/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,iBAAiB,EACjB,iBAAiB,EAElB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAM/B,eAAO,MAAM,WAAW,EAAG,iBAA0B,CAAC;AACtD,eAAO,MAAM,eAAe,EAC1B,6CAAsD,CAAC;AACzD,eAAO,MAAM,QAAQ,EAo0ChB,iBAAiB,CAAC;AAgCvB,eAAO,MAAM,GAAG,EAAE,iBAAiB,CAAC,OAAO,WAAW,EAAE,OAAO,GAAG,CAAC,KAAK,CA0CvE,CAAC;AAEF,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAU,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { API } from "./api.js";
|
|
2
2
|
const CONTRACT_MODULE_METADATA = Symbol.for("@qlever-llc/trellis/contracts/contract-module");
|
|
3
3
|
export const CONTRACT_ID = "trellis.jobs@v1";
|
|
4
|
-
export const CONTRACT_DIGEST = "
|
|
4
|
+
export const CONTRACT_DIGEST = "xDigtrlrF3n3ZNgHVdwDJFcwi0PEJBiDyBG6FnzFzM8";
|
|
5
5
|
export const CONTRACT = {
|
|
6
6
|
"capabilities": {
|
|
7
7
|
"trellis.jobs::admin.mutate": {
|
|
@@ -72,6 +72,20 @@ export const CONTRACT = {
|
|
|
72
72
|
"subject": "rpc.v1.Jobs.Get",
|
|
73
73
|
"version": "v1",
|
|
74
74
|
},
|
|
75
|
+
"Jobs.GetKey": {
|
|
76
|
+
"capabilities": { "call": ["trellis.jobs::admin.read"] },
|
|
77
|
+
"docs": {
|
|
78
|
+
"markdown": "Returns projection-backed keyed concurrency state for one service job key.",
|
|
79
|
+
"summary": "Read keyed job concurrency state.",
|
|
80
|
+
},
|
|
81
|
+
"errors": [{ "type": "UnexpectedError" }, { "type": "ValidationError" }, {
|
|
82
|
+
"type": "NotFoundError",
|
|
83
|
+
}],
|
|
84
|
+
"input": { "schema": "JobsGetKeyRequest" },
|
|
85
|
+
"output": { "schema": "JobsGetKeyResponse" },
|
|
86
|
+
"subject": "rpc.v1.Jobs.GetKey",
|
|
87
|
+
"version": "v1",
|
|
88
|
+
},
|
|
75
89
|
"Jobs.Health": {
|
|
76
90
|
"capabilities": { "call": ["trellis.jobs::admin.read"] },
|
|
77
91
|
"docs": {
|
|
@@ -154,6 +168,17 @@ export const CONTRACT = {
|
|
|
154
168
|
"Job": {
|
|
155
169
|
"properties": {
|
|
156
170
|
"completedAt": { "format": "date-time", "type": "string" },
|
|
171
|
+
"concurrency": {
|
|
172
|
+
"properties": {
|
|
173
|
+
"heartbeatAt": { "format": "date-time", "type": "string" },
|
|
174
|
+
"key": { "minLength": 1, "type": "string" },
|
|
175
|
+
"keyHash": { "minLength": 1, "type": "string" },
|
|
176
|
+
"leaseExpiresAt": { "format": "date-time", "type": "string" },
|
|
177
|
+
"staleTakeoverCount": { "minimum": 0, "type": "integer" },
|
|
178
|
+
},
|
|
179
|
+
"required": ["key", "keyHash"],
|
|
180
|
+
"type": "object",
|
|
181
|
+
},
|
|
157
182
|
"context": {
|
|
158
183
|
"properties": {
|
|
159
184
|
"requestId": { "minLength": 1, "type": "string" },
|
|
@@ -199,6 +224,16 @@ export const CONTRACT = {
|
|
|
199
224
|
},
|
|
200
225
|
"type": "object",
|
|
201
226
|
},
|
|
227
|
+
"queuePolicy": {
|
|
228
|
+
"properties": {
|
|
229
|
+
"existingJobId": { "minLength": 1, "type": "string" },
|
|
230
|
+
"outcome": { "minLength": 1, "type": "string" },
|
|
231
|
+
"reason": { "minLength": 1, "type": "string" },
|
|
232
|
+
"replacedJobId": { "minLength": 1, "type": "string" },
|
|
233
|
+
},
|
|
234
|
+
"required": ["outcome"],
|
|
235
|
+
"type": "object",
|
|
236
|
+
},
|
|
202
237
|
"result": {},
|
|
203
238
|
"service": { "minLength": 1, "type": "string" },
|
|
204
239
|
"startedAt": { "format": "date-time", "type": "string" },
|
|
@@ -233,6 +268,17 @@ export const CONTRACT = {
|
|
|
233
268
|
],
|
|
234
269
|
"type": "object",
|
|
235
270
|
},
|
|
271
|
+
"JobConcurrencyMetadata": {
|
|
272
|
+
"properties": {
|
|
273
|
+
"heartbeatAt": { "format": "date-time", "type": "string" },
|
|
274
|
+
"key": { "minLength": 1, "type": "string" },
|
|
275
|
+
"keyHash": { "minLength": 1, "type": "string" },
|
|
276
|
+
"leaseExpiresAt": { "format": "date-time", "type": "string" },
|
|
277
|
+
"staleTakeoverCount": { "minimum": 0, "type": "integer" },
|
|
278
|
+
},
|
|
279
|
+
"required": ["key", "keyHash"],
|
|
280
|
+
"type": "object",
|
|
281
|
+
},
|
|
236
282
|
"JobContext": {
|
|
237
283
|
"properties": {
|
|
238
284
|
"requestId": { "minLength": 1, "type": "string" },
|
|
@@ -269,6 +315,16 @@ export const CONTRACT = {
|
|
|
269
315
|
},
|
|
270
316
|
"type": "object",
|
|
271
317
|
},
|
|
318
|
+
"JobQueuePolicyMetadata": {
|
|
319
|
+
"properties": {
|
|
320
|
+
"existingJobId": { "minLength": 1, "type": "string" },
|
|
321
|
+
"outcome": { "minLength": 1, "type": "string" },
|
|
322
|
+
"reason": { "minLength": 1, "type": "string" },
|
|
323
|
+
"replacedJobId": { "minLength": 1, "type": "string" },
|
|
324
|
+
},
|
|
325
|
+
"required": ["outcome"],
|
|
326
|
+
"type": "object",
|
|
327
|
+
},
|
|
272
328
|
"JobState": {
|
|
273
329
|
"anyOf": [
|
|
274
330
|
{ "const": "pending", "type": "string" },
|
|
@@ -293,6 +349,17 @@ export const CONTRACT = {
|
|
|
293
349
|
"job": {
|
|
294
350
|
"properties": {
|
|
295
351
|
"completedAt": { "format": "date-time", "type": "string" },
|
|
352
|
+
"concurrency": {
|
|
353
|
+
"properties": {
|
|
354
|
+
"heartbeatAt": { "format": "date-time", "type": "string" },
|
|
355
|
+
"key": { "minLength": 1, "type": "string" },
|
|
356
|
+
"keyHash": { "minLength": 1, "type": "string" },
|
|
357
|
+
"leaseExpiresAt": { "format": "date-time", "type": "string" },
|
|
358
|
+
"staleTakeoverCount": { "minimum": 0, "type": "integer" },
|
|
359
|
+
},
|
|
360
|
+
"required": ["key", "keyHash"],
|
|
361
|
+
"type": "object",
|
|
362
|
+
},
|
|
296
363
|
"context": {
|
|
297
364
|
"properties": {
|
|
298
365
|
"requestId": { "minLength": 1, "type": "string" },
|
|
@@ -338,6 +405,16 @@ export const CONTRACT = {
|
|
|
338
405
|
},
|
|
339
406
|
"type": "object",
|
|
340
407
|
},
|
|
408
|
+
"queuePolicy": {
|
|
409
|
+
"properties": {
|
|
410
|
+
"existingJobId": { "minLength": 1, "type": "string" },
|
|
411
|
+
"outcome": { "minLength": 1, "type": "string" },
|
|
412
|
+
"reason": { "minLength": 1, "type": "string" },
|
|
413
|
+
"replacedJobId": { "minLength": 1, "type": "string" },
|
|
414
|
+
},
|
|
415
|
+
"required": ["outcome"],
|
|
416
|
+
"type": "object",
|
|
417
|
+
},
|
|
341
418
|
"result": {},
|
|
342
419
|
"service": { "minLength": 1, "type": "string" },
|
|
343
420
|
"startedAt": { "format": "date-time", "type": "string" },
|
|
@@ -387,6 +464,17 @@ export const CONTRACT = {
|
|
|
387
464
|
"job": {
|
|
388
465
|
"properties": {
|
|
389
466
|
"completedAt": { "format": "date-time", "type": "string" },
|
|
467
|
+
"concurrency": {
|
|
468
|
+
"properties": {
|
|
469
|
+
"heartbeatAt": { "format": "date-time", "type": "string" },
|
|
470
|
+
"key": { "minLength": 1, "type": "string" },
|
|
471
|
+
"keyHash": { "minLength": 1, "type": "string" },
|
|
472
|
+
"leaseExpiresAt": { "format": "date-time", "type": "string" },
|
|
473
|
+
"staleTakeoverCount": { "minimum": 0, "type": "integer" },
|
|
474
|
+
},
|
|
475
|
+
"required": ["key", "keyHash"],
|
|
476
|
+
"type": "object",
|
|
477
|
+
},
|
|
390
478
|
"context": {
|
|
391
479
|
"properties": {
|
|
392
480
|
"requestId": { "minLength": 1, "type": "string" },
|
|
@@ -432,6 +520,16 @@ export const CONTRACT = {
|
|
|
432
520
|
},
|
|
433
521
|
"type": "object",
|
|
434
522
|
},
|
|
523
|
+
"queuePolicy": {
|
|
524
|
+
"properties": {
|
|
525
|
+
"existingJobId": { "minLength": 1, "type": "string" },
|
|
526
|
+
"outcome": { "minLength": 1, "type": "string" },
|
|
527
|
+
"reason": { "minLength": 1, "type": "string" },
|
|
528
|
+
"replacedJobId": { "minLength": 1, "type": "string" },
|
|
529
|
+
},
|
|
530
|
+
"required": ["outcome"],
|
|
531
|
+
"type": "object",
|
|
532
|
+
},
|
|
435
533
|
"result": {},
|
|
436
534
|
"service": { "minLength": 1, "type": "string" },
|
|
437
535
|
"startedAt": { "format": "date-time", "type": "string" },
|
|
@@ -470,6 +568,70 @@ export const CONTRACT = {
|
|
|
470
568
|
"required": ["job"],
|
|
471
569
|
"type": "object",
|
|
472
570
|
},
|
|
571
|
+
"JobsGetKeyRequest": {
|
|
572
|
+
"properties": {
|
|
573
|
+
"key": { "minLength": 1, "type": "string" },
|
|
574
|
+
"service": { "minLength": 1, "type": "string" },
|
|
575
|
+
"type": { "minLength": 1, "type": "string" },
|
|
576
|
+
},
|
|
577
|
+
"required": ["service", "type", "key"],
|
|
578
|
+
"type": "object",
|
|
579
|
+
},
|
|
580
|
+
"JobsGetKeyResponse": {
|
|
581
|
+
"properties": {
|
|
582
|
+
"active": {
|
|
583
|
+
"items": {
|
|
584
|
+
"properties": {
|
|
585
|
+
"heartbeatAgeMs": { "minimum": 0, "type": "integer" },
|
|
586
|
+
"heartbeatAt": { "format": "date-time", "type": "string" },
|
|
587
|
+
"instanceId": { "type": "string" },
|
|
588
|
+
"jobId": { "minLength": 1, "type": "string" },
|
|
589
|
+
"leaseExpiresAt": { "format": "date-time", "type": "string" },
|
|
590
|
+
"startedAt": { "format": "date-time", "type": "string" },
|
|
591
|
+
},
|
|
592
|
+
"required": [
|
|
593
|
+
"jobId",
|
|
594
|
+
"instanceId",
|
|
595
|
+
"startedAt",
|
|
596
|
+
"heartbeatAt",
|
|
597
|
+
"heartbeatAgeMs",
|
|
598
|
+
"leaseExpiresAt",
|
|
599
|
+
],
|
|
600
|
+
"type": "object",
|
|
601
|
+
},
|
|
602
|
+
"type": "array",
|
|
603
|
+
},
|
|
604
|
+
"key": { "minLength": 1, "type": "string" },
|
|
605
|
+
"keyHash": { "minLength": 1, "type": "string" },
|
|
606
|
+
"latestPolicyReason": { "minLength": 1, "type": "string" },
|
|
607
|
+
"queued": {
|
|
608
|
+
"items": {
|
|
609
|
+
"properties": {
|
|
610
|
+
"createdAt": { "format": "date-time", "type": "string" },
|
|
611
|
+
"jobId": { "minLength": 1, "type": "string" },
|
|
612
|
+
},
|
|
613
|
+
"required": ["jobId", "createdAt"],
|
|
614
|
+
"type": "object",
|
|
615
|
+
},
|
|
616
|
+
"type": "array",
|
|
617
|
+
},
|
|
618
|
+
"queuedDepth": { "minimum": 0, "type": "integer" },
|
|
619
|
+
"service": { "minLength": 1, "type": "string" },
|
|
620
|
+
"staleTakeoverCount": { "minimum": 0, "type": "integer" },
|
|
621
|
+
"type": { "minLength": 1, "type": "string" },
|
|
622
|
+
},
|
|
623
|
+
"required": [
|
|
624
|
+
"service",
|
|
625
|
+
"type",
|
|
626
|
+
"key",
|
|
627
|
+
"keyHash",
|
|
628
|
+
"active",
|
|
629
|
+
"queued",
|
|
630
|
+
"queuedDepth",
|
|
631
|
+
"staleTakeoverCount",
|
|
632
|
+
],
|
|
633
|
+
"type": "object",
|
|
634
|
+
},
|
|
473
635
|
"JobsGetRequest": {
|
|
474
636
|
"description": "Jobs admin ids are globally addressable; callers identify jobs by id only.",
|
|
475
637
|
"properties": { "id": { "minLength": 1, "type": "string" } },
|
|
@@ -481,6 +643,17 @@ export const CONTRACT = {
|
|
|
481
643
|
"job": {
|
|
482
644
|
"properties": {
|
|
483
645
|
"completedAt": { "format": "date-time", "type": "string" },
|
|
646
|
+
"concurrency": {
|
|
647
|
+
"properties": {
|
|
648
|
+
"heartbeatAt": { "format": "date-time", "type": "string" },
|
|
649
|
+
"key": { "minLength": 1, "type": "string" },
|
|
650
|
+
"keyHash": { "minLength": 1, "type": "string" },
|
|
651
|
+
"leaseExpiresAt": { "format": "date-time", "type": "string" },
|
|
652
|
+
"staleTakeoverCount": { "minimum": 0, "type": "integer" },
|
|
653
|
+
},
|
|
654
|
+
"required": ["key", "keyHash"],
|
|
655
|
+
"type": "object",
|
|
656
|
+
},
|
|
484
657
|
"context": {
|
|
485
658
|
"properties": {
|
|
486
659
|
"requestId": { "minLength": 1, "type": "string" },
|
|
@@ -526,6 +699,16 @@ export const CONTRACT = {
|
|
|
526
699
|
},
|
|
527
700
|
"type": "object",
|
|
528
701
|
},
|
|
702
|
+
"queuePolicy": {
|
|
703
|
+
"properties": {
|
|
704
|
+
"existingJobId": { "minLength": 1, "type": "string" },
|
|
705
|
+
"outcome": { "minLength": 1, "type": "string" },
|
|
706
|
+
"reason": { "minLength": 1, "type": "string" },
|
|
707
|
+
"replacedJobId": { "minLength": 1, "type": "string" },
|
|
708
|
+
},
|
|
709
|
+
"required": ["outcome"],
|
|
710
|
+
"type": "object",
|
|
711
|
+
},
|
|
529
712
|
"result": {},
|
|
530
713
|
"service": { "minLength": 1, "type": "string" },
|
|
531
714
|
"startedAt": { "format": "date-time", "type": "string" },
|
|
@@ -595,6 +778,17 @@ export const CONTRACT = {
|
|
|
595
778
|
"items": {
|
|
596
779
|
"properties": {
|
|
597
780
|
"completedAt": { "format": "date-time", "type": "string" },
|
|
781
|
+
"concurrency": {
|
|
782
|
+
"properties": {
|
|
783
|
+
"heartbeatAt": { "format": "date-time", "type": "string" },
|
|
784
|
+
"key": { "minLength": 1, "type": "string" },
|
|
785
|
+
"keyHash": { "minLength": 1, "type": "string" },
|
|
786
|
+
"leaseExpiresAt": { "format": "date-time", "type": "string" },
|
|
787
|
+
"staleTakeoverCount": { "minimum": 0, "type": "integer" },
|
|
788
|
+
},
|
|
789
|
+
"required": ["key", "keyHash"],
|
|
790
|
+
"type": "object",
|
|
791
|
+
},
|
|
598
792
|
"context": {
|
|
599
793
|
"properties": {
|
|
600
794
|
"requestId": { "minLength": 1, "type": "string" },
|
|
@@ -640,6 +834,16 @@ export const CONTRACT = {
|
|
|
640
834
|
},
|
|
641
835
|
"type": "object",
|
|
642
836
|
},
|
|
837
|
+
"queuePolicy": {
|
|
838
|
+
"properties": {
|
|
839
|
+
"existingJobId": { "minLength": 1, "type": "string" },
|
|
840
|
+
"outcome": { "minLength": 1, "type": "string" },
|
|
841
|
+
"reason": { "minLength": 1, "type": "string" },
|
|
842
|
+
"replacedJobId": { "minLength": 1, "type": "string" },
|
|
843
|
+
},
|
|
844
|
+
"required": ["outcome"],
|
|
845
|
+
"type": "object",
|
|
846
|
+
},
|
|
643
847
|
"result": {},
|
|
644
848
|
"service": { "minLength": 1, "type": "string" },
|
|
645
849
|
"startedAt": { "format": "date-time", "type": "string" },
|
|
@@ -717,6 +921,17 @@ export const CONTRACT = {
|
|
|
717
921
|
"items": {
|
|
718
922
|
"properties": {
|
|
719
923
|
"completedAt": { "format": "date-time", "type": "string" },
|
|
924
|
+
"concurrency": {
|
|
925
|
+
"properties": {
|
|
926
|
+
"heartbeatAt": { "format": "date-time", "type": "string" },
|
|
927
|
+
"key": { "minLength": 1, "type": "string" },
|
|
928
|
+
"keyHash": { "minLength": 1, "type": "string" },
|
|
929
|
+
"leaseExpiresAt": { "format": "date-time", "type": "string" },
|
|
930
|
+
"staleTakeoverCount": { "minimum": 0, "type": "integer" },
|
|
931
|
+
},
|
|
932
|
+
"required": ["key", "keyHash"],
|
|
933
|
+
"type": "object",
|
|
934
|
+
},
|
|
720
935
|
"context": {
|
|
721
936
|
"properties": {
|
|
722
937
|
"requestId": { "minLength": 1, "type": "string" },
|
|
@@ -762,6 +977,16 @@ export const CONTRACT = {
|
|
|
762
977
|
},
|
|
763
978
|
"type": "object",
|
|
764
979
|
},
|
|
980
|
+
"queuePolicy": {
|
|
981
|
+
"properties": {
|
|
982
|
+
"existingJobId": { "minLength": 1, "type": "string" },
|
|
983
|
+
"outcome": { "minLength": 1, "type": "string" },
|
|
984
|
+
"reason": { "minLength": 1, "type": "string" },
|
|
985
|
+
"replacedJobId": { "minLength": 1, "type": "string" },
|
|
986
|
+
},
|
|
987
|
+
"required": ["outcome"],
|
|
988
|
+
"type": "object",
|
|
989
|
+
},
|
|
765
990
|
"result": {},
|
|
766
991
|
"service": { "minLength": 1, "type": "string" },
|
|
767
992
|
"startedAt": { "format": "date-time", "type": "string" },
|
|
@@ -860,6 +1085,17 @@ export const CONTRACT = {
|
|
|
860
1085
|
"job": {
|
|
861
1086
|
"properties": {
|
|
862
1087
|
"completedAt": { "format": "date-time", "type": "string" },
|
|
1088
|
+
"concurrency": {
|
|
1089
|
+
"properties": {
|
|
1090
|
+
"heartbeatAt": { "format": "date-time", "type": "string" },
|
|
1091
|
+
"key": { "minLength": 1, "type": "string" },
|
|
1092
|
+
"keyHash": { "minLength": 1, "type": "string" },
|
|
1093
|
+
"leaseExpiresAt": { "format": "date-time", "type": "string" },
|
|
1094
|
+
"staleTakeoverCount": { "minimum": 0, "type": "integer" },
|
|
1095
|
+
},
|
|
1096
|
+
"required": ["key", "keyHash"],
|
|
1097
|
+
"type": "object",
|
|
1098
|
+
},
|
|
863
1099
|
"context": {
|
|
864
1100
|
"properties": {
|
|
865
1101
|
"requestId": { "minLength": 1, "type": "string" },
|
|
@@ -905,6 +1141,16 @@ export const CONTRACT = {
|
|
|
905
1141
|
},
|
|
906
1142
|
"type": "object",
|
|
907
1143
|
},
|
|
1144
|
+
"queuePolicy": {
|
|
1145
|
+
"properties": {
|
|
1146
|
+
"existingJobId": { "minLength": 1, "type": "string" },
|
|
1147
|
+
"outcome": { "minLength": 1, "type": "string" },
|
|
1148
|
+
"reason": { "minLength": 1, "type": "string" },
|
|
1149
|
+
"replacedJobId": { "minLength": 1, "type": "string" },
|
|
1150
|
+
},
|
|
1151
|
+
"required": ["outcome"],
|
|
1152
|
+
"type": "object",
|
|
1153
|
+
},
|
|
908
1154
|
"result": {},
|
|
909
1155
|
"service": { "minLength": 1, "type": "string" },
|
|
910
1156
|
"startedAt": { "format": "date-time", "type": "string" },
|
|
@@ -954,6 +1200,17 @@ export const CONTRACT = {
|
|
|
954
1200
|
"job": {
|
|
955
1201
|
"properties": {
|
|
956
1202
|
"completedAt": { "format": "date-time", "type": "string" },
|
|
1203
|
+
"concurrency": {
|
|
1204
|
+
"properties": {
|
|
1205
|
+
"heartbeatAt": { "format": "date-time", "type": "string" },
|
|
1206
|
+
"key": { "minLength": 1, "type": "string" },
|
|
1207
|
+
"keyHash": { "minLength": 1, "type": "string" },
|
|
1208
|
+
"leaseExpiresAt": { "format": "date-time", "type": "string" },
|
|
1209
|
+
"staleTakeoverCount": { "minimum": 0, "type": "integer" },
|
|
1210
|
+
},
|
|
1211
|
+
"required": ["key", "keyHash"],
|
|
1212
|
+
"type": "object",
|
|
1213
|
+
},
|
|
957
1214
|
"context": {
|
|
958
1215
|
"properties": {
|
|
959
1216
|
"requestId": { "minLength": 1, "type": "string" },
|
|
@@ -999,6 +1256,16 @@ export const CONTRACT = {
|
|
|
999
1256
|
},
|
|
1000
1257
|
"type": "object",
|
|
1001
1258
|
},
|
|
1259
|
+
"queuePolicy": {
|
|
1260
|
+
"properties": {
|
|
1261
|
+
"existingJobId": { "minLength": 1, "type": "string" },
|
|
1262
|
+
"outcome": { "minLength": 1, "type": "string" },
|
|
1263
|
+
"reason": { "minLength": 1, "type": "string" },
|
|
1264
|
+
"replacedJobId": { "minLength": 1, "type": "string" },
|
|
1265
|
+
},
|
|
1266
|
+
"required": ["outcome"],
|
|
1267
|
+
"type": "object",
|
|
1268
|
+
},
|
|
1002
1269
|
"result": {},
|
|
1003
1270
|
"service": { "minLength": 1, "type": "string" },
|
|
1004
1271
|
"startedAt": { "format": "date-time", "type": "string" },
|
|
@@ -40,6 +40,19 @@ export declare const OWNED_API: {
|
|
|
40
40
|
readonly fromSerializable: typeof Types.NotFoundError.fromSerializable;
|
|
41
41
|
}];
|
|
42
42
|
};
|
|
43
|
+
"Jobs.GetKey": {
|
|
44
|
+
subject: string;
|
|
45
|
+
input: import("@qlever-llc/trellis/contracts").Schema<Types.JobsGetKeyInput>;
|
|
46
|
+
output: import("@qlever-llc/trellis/contracts").Schema<Types.JobsGetKeyOutput>;
|
|
47
|
+
callerCapabilities: string[];
|
|
48
|
+
errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
49
|
+
declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
|
|
50
|
+
runtimeErrors: readonly [{
|
|
51
|
+
readonly type: "NotFoundError";
|
|
52
|
+
readonly schema: import("@qlever-llc/trellis/contracts").Schema<Types.NotFoundErrorData>;
|
|
53
|
+
readonly fromSerializable: typeof Types.NotFoundError.fromSerializable;
|
|
54
|
+
}];
|
|
55
|
+
};
|
|
43
56
|
"Jobs.Health": {
|
|
44
57
|
subject: string;
|
|
45
58
|
input: import("@qlever-llc/trellis/contracts").Schema<Types.JobsHealthInput>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"owned_api.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/jobs/owned_api.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"owned_api.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/jobs/owned_api.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AAyBpC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2JA,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { schema } from "@qlever-llc/trellis/contracts";
|
|
2
2
|
import * as Types from "./types.js";
|
|
3
|
-
import { EmptySchema, JobsCancelRequestSchema, JobsCancelResponseSchema, JobsDismissDLQRequestSchema, JobsDismissDLQResponseSchema, JobsGetRequestSchema, JobsGetResponseSchema, JobsHealthResponseSchema, JobsListDLQRequestSchema, JobsListDLQResponseSchema, JobsListRequestSchema, JobsListResponseSchema, JobsListServicesRequestSchema, JobsListServicesResponseSchema, JobsReplayDLQRequestSchema, JobsReplayDLQResponseSchema, JobsRetryRequestSchema, JobsRetryResponseSchema, NotFoundErrorDataSchema, } from "./schemas.js";
|
|
3
|
+
import { EmptySchema, JobsCancelRequestSchema, JobsCancelResponseSchema, JobsDismissDLQRequestSchema, JobsDismissDLQResponseSchema, JobsGetKeyRequestSchema, JobsGetKeyResponseSchema, JobsGetRequestSchema, JobsGetResponseSchema, JobsHealthResponseSchema, JobsListDLQRequestSchema, JobsListDLQResponseSchema, JobsListRequestSchema, JobsListResponseSchema, JobsListServicesRequestSchema, JobsListServicesResponseSchema, JobsReplayDLQRequestSchema, JobsReplayDLQResponseSchema, JobsRetryRequestSchema, JobsRetryResponseSchema, NotFoundErrorDataSchema, } from "./schemas.js";
|
|
4
4
|
export const OWNED_API = {
|
|
5
5
|
rpc: {
|
|
6
6
|
"Jobs.Cancel": {
|
|
@@ -60,6 +60,25 @@ export const OWNED_API = {
|
|
|
60
60
|
},
|
|
61
61
|
],
|
|
62
62
|
},
|
|
63
|
+
"Jobs.GetKey": {
|
|
64
|
+
subject: "rpc.v1.Jobs.GetKey",
|
|
65
|
+
input: schema(JobsGetKeyRequestSchema),
|
|
66
|
+
output: schema(JobsGetKeyResponseSchema),
|
|
67
|
+
callerCapabilities: ["trellis.jobs::admin.read"],
|
|
68
|
+
errors: ["UnexpectedError", "ValidationError", "NotFoundError"],
|
|
69
|
+
declaredErrorTypes: [
|
|
70
|
+
"UnexpectedError",
|
|
71
|
+
"ValidationError",
|
|
72
|
+
"NotFoundError",
|
|
73
|
+
],
|
|
74
|
+
runtimeErrors: [
|
|
75
|
+
{
|
|
76
|
+
type: "NotFoundError",
|
|
77
|
+
schema: schema(NotFoundErrorDataSchema),
|
|
78
|
+
fromSerializable: Types.NotFoundError.fromSerializable,
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
},
|
|
63
82
|
"Jobs.Health": {
|
|
64
83
|
subject: "rpc.v1.Jobs.Health",
|
|
65
84
|
input: schema(EmptySchema),
|