refactor(contracts): trim unused client API runtime exports (#10169)
This commit is contained in:
1 parent
5716dec97e
commit
50bc62a83d
5 files changed
+9
-14
No files matched your search
@@ -45,7 +45,6 @@ export {
|
||||
ExternalLauncherEditorSpawnError,
|
||||
ExternalLauncherUnknownEditorError,
|
||||
ExternalLauncherUnsupportedEditorError,
|
||||
isExternalLauncherError,
|
||||
} from "@t3tools/contracts";
|
||||
export type { LaunchEditorInput };
|
||||
interface EditorLaunch {
|
||||
|
||||
@@ -16,7 +16,7 @@ import * as Schema from "effect/Schema";
|
||||
import { TrimmedNonEmptyString } from "./baseSchemas.ts";
|
||||
import { BrowserProfileId } from "./browserProfile.ts";
|
||||
|
||||
export const BROWSER_IMPORT_SOURCE_IDS = [
|
||||
const BROWSER_IMPORT_SOURCE_IDS = [
|
||||
"chrome",
|
||||
"edge",
|
||||
"brave",
|
||||
@@ -139,9 +139,7 @@ export const BrowserImportResult = Schema.Struct({
|
||||
});
|
||||
export type BrowserImportResult = typeof BrowserImportResult.Type;
|
||||
|
||||
export const BROWSER_IMPORT_UNAVAILABLE_COPY: Readonly<
|
||||
Record<BrowserImportUnavailableReason, string>
|
||||
> = {
|
||||
const BROWSER_IMPORT_UNAVAILABLE_COPY: Readonly<Record<BrowserImportUnavailableReason, string>> = {
|
||||
notInstalled: "Not installed on this machine.",
|
||||
needsKeychainApproval: "Needs Keychain access to read its cookies.",
|
||||
keychainItemMissing:
|
||||
|
||||
@@ -203,5 +203,3 @@ export const ExternalLauncherError = Schema.Union([
|
||||
ExternalLauncherEditorSpawnError,
|
||||
]);
|
||||
export type ExternalLauncherError = typeof ExternalLauncherError.Type;
|
||||
|
||||
export const isExternalLauncherError = Schema.is(ExternalLauncherError);
|
||||
@@ -408,13 +408,13 @@ export const AuthOtherClientSessionsRevokeResult = Schema.Struct({
|
||||
});
|
||||
export type AuthOtherClientSessionsRevokeResult = typeof AuthOtherClientSessionsRevokeResult.Type;
|
||||
|
||||
export class EnvironmentMetadataHttpApi extends HttpApiGroup.make("metadata").add(
|
||||
class EnvironmentMetadataHttpApi extends HttpApiGroup.make("metadata").add(
|
||||
HttpApiEndpoint.get("descriptor", "/.well-known/t3/environment", {
|
||||
success: ExecutionEnvironmentDescriptor,
|
||||
}),
|
||||
) {}
|
||||
|
||||
export class EnvironmentAuthHttpApi extends HttpApiGroup.make("auth")
|
||||
class EnvironmentAuthHttpApi extends HttpApiGroup.make("auth")
|
||||
.add(
|
||||
HttpApiEndpoint.get("session", "/api/auth/session", {
|
||||
headers: OptionalBearerHeaders,
|
||||
@@ -538,7 +538,7 @@ export class EnvironmentOrchestrationHttpApi extends HttpApiGroup.make("orchestr
|
||||
) {}
|
||||
|
||||
/** Large, compressible pull-request payloads travel over HTTP rather than the RPC socket. */
|
||||
export class EnvironmentPullRequestsHttpApi extends HttpApiGroup.make("pullRequests").add(
|
||||
class EnvironmentPullRequestsHttpApi extends HttpApiGroup.make("pullRequests").add(
|
||||
HttpApiEndpoint.post("diff", "/api/pull-requests/diff", {
|
||||
headers: OptionalBearerHeaders,
|
||||
payload: PullRequestDiffInput,
|
||||
@@ -553,7 +553,7 @@ export class EnvironmentPullRequestsHttpApi extends HttpApiGroup.make("pullReque
|
||||
}).middleware(EnvironmentAuthenticatedAuth),
|
||||
) {}
|
||||
|
||||
export class EnvironmentConnectHttpApi extends HttpApiGroup.make("connect")
|
||||
class EnvironmentConnectHttpApi extends HttpApiGroup.make("connect")
|
||||
.add(
|
||||
HttpApiEndpoint.post("linkProof", "/api/connect/link-proof", {
|
||||
headers: OptionalBearerHeaders,
|
||||
|
||||
@@ -2,7 +2,7 @@ import * as Schema from "effect/Schema";
|
||||
import { ForwardCompatibleArray, TrimmedString } from "./baseSchemas.ts";
|
||||
|
||||
export const MAX_KEYBINDING_VALUE_LENGTH = 64;
|
||||
export const MAX_KEYBINDING_WHEN_LENGTH = 256;
|
||||
const MAX_KEYBINDING_WHEN_LENGTH = 256;
|
||||
export const MAX_WHEN_EXPRESSION_DEPTH = 64;
|
||||
export const MAX_SCRIPT_ID_LENGTH = 24;
|
||||
export const MAX_KEYBINDINGS_COUNT = 256;
|
||||
@@ -34,7 +34,7 @@ export const MODEL_PICKER_JUMP_KEYBINDING_COMMANDS = [
|
||||
export type ModelPickerJumpKeybindingCommand =
|
||||
(typeof MODEL_PICKER_JUMP_KEYBINDING_COMMANDS)[number];
|
||||
|
||||
export const THREAD_KEYBINDING_COMMANDS = [
|
||||
const THREAD_KEYBINDING_COMMANDS = [
|
||||
"thread.previous",
|
||||
"thread.next",
|
||||
"thread.copyReference",
|
||||
@@ -44,7 +44,7 @@ export const THREAD_KEYBINDING_COMMANDS = [
|
||||
] as const;
|
||||
export type ThreadKeybindingCommand = (typeof THREAD_KEYBINDING_COMMANDS)[number];
|
||||
|
||||
export const MODEL_PICKER_KEYBINDING_COMMANDS = [
|
||||
const MODEL_PICKER_KEYBINDING_COMMANDS = [
|
||||
"modelPicker.toggle",
|
||||
...MODEL_PICKER_JUMP_KEYBINDING_COMMANDS,
|
||||
] as const;
|
||||
|
||||
Reference in new issue
Block a user