Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client-sdks/platform/openapi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client-sdks/platform/rust/openapi-3.0.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client-sdks/platform/rust/openapi.json

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export type SyncReleaseGlobals = {
* Lock released successfully.
*/
export type SyncReleaseResponse = {
/**
* True when released or the exact terminal receipt was acknowledged. False when completion could not be established.
*/
success: boolean;
};

Expand Down
24 changes: 24 additions & 0 deletions client-sdks/platform/typescript/src/models/syncreleaserequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@
*/

import * as z from "zod/v4";
import { ClosedEnum } from "../types/enums.js";

/**
* Defaults to release. acknowledge-completed discards an exact terminal pull receipt after a lost response; it never releases newer work or grants a live lease.
*/
export const SyncReleaseRequestMode = {
Release: "release",
AcknowledgeCompleted: "acknowledge-completed",
} as const;
/**
* Defaults to release. acknowledge-completed discards an exact terminal pull receipt after a lost response; it never releases newer work or grants a live lease.
*/
export type SyncReleaseRequestMode = ClosedEnum<typeof SyncReleaseRequestMode>;

/**
* Request to release deployment lock
Expand All @@ -16,6 +29,10 @@ export type SyncReleaseRequest = {
* Session identifier to release
*/
session: string;
/**
* Defaults to release. acknowledge-completed discards an exact terminal pull receipt after a lost response; it never releases newer work or grants a live lease.
*/
mode?: SyncReleaseRequestMode | undefined;
/**
* Operation returned by acquire. Required when the lease carried update work.
*/
Expand All @@ -26,10 +43,16 @@ export type SyncReleaseRequest = {
attemptId?: string | undefined;
};

/** @internal */
export const SyncReleaseRequestMode$outboundSchema: z.ZodEnum<
typeof SyncReleaseRequestMode
> = z.enum(SyncReleaseRequestMode);

/** @internal */
export type SyncReleaseRequest$Outbound = {
deploymentId: string;
session: string;
mode?: string | undefined;
operationId?: string | undefined;
attemptId?: string | undefined;
};
Expand All @@ -41,6 +64,7 @@ export const SyncReleaseRequest$outboundSchema: z.ZodType<
> = z.object({
deploymentId: z.string(),
session: z.string(),
mode: SyncReleaseRequestMode$outboundSchema.optional(),
operationId: z.string().optional(),
attemptId: z.string().optional(),
});
Expand Down
Loading