Skip to content

Commit

Permalink
build(spec): update WebDriverBidi types
Browse files Browse the repository at this point in the history
  • Loading branch information
browser-automation-bot committed Sep 5, 2024
1 parent c64960d commit 9beb0fa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 40 deletions.
28 changes: 6 additions & 22 deletions src/protocol-parser/generated/webdriver-bidi-bluetooth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

/**
* THIS FILE IS AUTOGENERATED by cddlconv 0.1.2.
* THIS FILE IS AUTOGENERATED by cddlconv 0.1.5.
* Run `node tools/generate-bidi-types.mjs` to regenerate.
* @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs
*/
Expand All @@ -33,7 +33,7 @@ export namespace Bluetooth {
export const RequestDeviceInfoSchema = z.lazy(() =>
z.object({
id: Bluetooth.RequestDeviceSchema,
name: z.string(),
name: z.union([z.string(), z.null()]),
})
);
}
Expand Down Expand Up @@ -79,35 +79,19 @@ export namespace Bluetooth {
);
}
export namespace Bluetooth {
export const RequestDevicePromptOpenedSchema = z.lazy(() =>
export const RequestDevicePromptUpdatedSchema = z.lazy(() =>
z.object({
method: z.literal('bluetooth.requestDevicePromptOpened'),
params: Bluetooth.RequestDevicePromptOpenedParametersSchema,
method: z.literal('bluetooth.requestDevicePromptUpdated'),
params: Bluetooth.RequestDevicePromptUpdatedParametersSchema,
})
);
}
export namespace Bluetooth {
export const RequestDevicePromptOpenedParametersSchema = z.lazy(() =>
export const RequestDevicePromptUpdatedParametersSchema = z.lazy(() =>
z.object({
context: z.string(),
prompt: Bluetooth.RequestDevicePromptSchema,
devices: z.array(Bluetooth.RequestDeviceInfoSchema),
})
);
}
export namespace Bluetooth {
export const RequestDevicePromptClosedSchema = z.lazy(() =>
z.object({
method: z.literal('bluetooth.requestDevicePromptClosed'),
params: Bluetooth.RequestDevicePromptClosedParametersSchema,
})
);
}
export namespace Bluetooth {
export const RequestDevicePromptClosedParametersSchema = z.lazy(() =>
z.object({
context: z.string(),
prompt: Bluetooth.RequestDevicePromptSchema,
})
);
}
24 changes: 6 additions & 18 deletions src/protocol/generated/webdriver-bidi-bluetooth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

/**
* THIS FILE IS AUTOGENERATED by cddlconv 0.1.2.
* THIS FILE IS AUTOGENERATED by cddlconv 0.1.5.
* Run `node tools/generate-bidi-types.mjs` to regenerate.
* @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs
*/
Expand All @@ -27,7 +27,7 @@ export namespace Bluetooth {
export namespace Bluetooth {
export type RequestDeviceInfo = {
id: Bluetooth.RequestDevice;
name: string;
name: string | null;
};
}
export namespace Bluetooth {
Expand Down Expand Up @@ -60,27 +60,15 @@ export namespace Bluetooth {
};
}
export namespace Bluetooth {
export type RequestDevicePromptOpened = {
method: 'bluetooth.requestDevicePromptOpened';
params: Bluetooth.RequestDevicePromptOpenedParameters;
export type RequestDevicePromptUpdated = {
method: 'bluetooth.requestDevicePromptUpdated';
params: Bluetooth.RequestDevicePromptUpdatedParameters;
};
}
export namespace Bluetooth {
export type RequestDevicePromptOpenedParameters = {
export type RequestDevicePromptUpdatedParameters = {
context: string;
prompt: Bluetooth.RequestDevicePrompt;
devices: [...Bluetooth.RequestDeviceInfo[]];
};
}
export namespace Bluetooth {
export type RequestDevicePromptClosed = {
method: 'bluetooth.requestDevicePromptClosed';
params: Bluetooth.RequestDevicePromptClosedParameters;
};
}
export namespace Bluetooth {
export type RequestDevicePromptClosedParameters = {
context: string;
prompt: Bluetooth.RequestDevicePrompt;
};
}

0 comments on commit 9beb0fa

Please sign in to comment.