repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/index.ts
packages/hoppscotch-kernel/src/index.ts
import type { Version } from './type/versioning' import { VERSIONS as IO_VERSIONS } from './io' import { IO_IMPLS as WEB_IO_IMPLS } from './io/impl/web' import { IO_IMPLS as DESKTOP_IO_IMPLS } from './io/impl/desktop' import { VERSIONS as RELAY_VERSIONS } from './relay' import { RELAY_IMPLS as WEB_RELAY_IMPLS } from ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/util/capability.ts
packages/hoppscotch-kernel/src/util/capability.ts
import type { Version } from '@type/versioning' export function checkCapability(required: Version, available: Version): boolean { if (available.major !== required.major) return false if (available.minor < required.minor) return false return true }
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/type/versioning.ts
packages/hoppscotch-kernel/src/type/versioning.ts
export type Version = { major: number minor: number patch: number } export type VersionedAPI<T> = { version: Version api: T }
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/relay/index.ts
packages/hoppscotch-kernel/src/relay/index.ts
import { v1 } from './v/1' export type { RelayV1, } from './v/1' export const VERSIONS = { v1, } as const export const latest = v1
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/relay/v/1.ts
packages/hoppscotch-kernel/src/relay/v/1.ts
import { Request, Response } from '@hoppscotch/plugin-relay' import type { VersionedAPI } from '@type/versioning' export type PluginRequest = Request export type PluginResponse = Response import * as E from 'fp-ts/Either' import * as O from 'fp-ts/Option' import { pipe } from 'fp-ts/function' export type Method = ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/relay/impl/desktop/index.ts
packages/hoppscotch-kernel/src/relay/impl/desktop/index.ts
import { implementation as relayV1 } from './v/1' export const RELAY_IMPLS = { v1: relayV1, } as const
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/relay/impl/desktop/v/1.ts
packages/hoppscotch-kernel/src/relay/impl/desktop/v/1.ts
import type { VersionedAPI } from '@type/versioning' import { type RelayV1, type RelayRequest, type RelayRequestEvents, type RelayEventEmitter, type RelayResponse, type RelayError, body, relayRequestToNativeAdapter, } from '@relay/v/1' import * as E from 'fp-ts/Either' import { exec...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/relay/impl/web/index.ts
packages/hoppscotch-kernel/src/relay/impl/web/index.ts
import { implementation as relayV1 } from './v/1' export const RELAY_IMPLS = { v1: relayV1, } as const
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/relay/impl/web/v/1.ts
packages/hoppscotch-kernel/src/relay/impl/web/v/1.ts
import { type RelayError, type RelayEventEmitter, type RelayRequest, type RelayRequestEvents, type RelayResponse, type RelayV1, type StatusCode, body, } from "@relay/v/1" import type { VersionedAPI } from "@type/versioning" import { AwsV4Signer } from "aws4fetch" import axios, { AxiosRequestConfig } fr...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/store/index.ts
packages/hoppscotch-kernel/src/store/index.ts
import { v1 } from './v/1' export type { StoreV1, } from './v/1' export const VERSIONS = { v1, } as const export const latest = v1
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/store/v/1.ts
packages/hoppscotch-kernel/src/store/v/1.ts
import type { VersionedAPI } from '@type/versioning' import * as E from 'fp-ts/Either' import { z } from 'zod' export type StoreCapability = | 'permanent' | 'temporary' | 'structured' | 'sync' | 'watch' | 'secure' | 'namespace' export type StoreError = | { kind: 'not_found'; message: string } | { ki...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/store/impl/desktop/index.ts
packages/hoppscotch-kernel/src/store/impl/desktop/index.ts
import { implementation as storeV1 } from './v/1' export const STORE_IMPLS = { v1: storeV1, } as const
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/store/impl/desktop/v/1.ts
packages/hoppscotch-kernel/src/store/impl/desktop/v/1.ts
import * as E from 'fp-ts/Either'; import { Store } from '@tauri-apps/plugin-store'; import { VersionedAPI } from '@type/versioning'; import { StoreV1, StoreError, StoreEvents, StorageOptions, StoredData, StoredDataSchema, StoreEventEmitter, } from '@store/v/1'; type NamespacedData = Reco...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/store/impl/web/index.ts
packages/hoppscotch-kernel/src/store/impl/web/index.ts
import { implementation as storeV1 } from './v/1' export const STORE_IMPLS = { v1: storeV1, } as const
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/store/impl/web/v/1.ts
packages/hoppscotch-kernel/src/store/impl/web/v/1.ts
import * as E from 'fp-ts/Either'; import superjson from 'superjson'; import type { VersionedAPI } from '@type/versioning'; import { StoreV1, StoredData, StoredDataSchema, StoreEvents, StoreEventEmitter, } from '@store/v/1'; class BrowserStoreManager { private static instance: BrowserStoreMana...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/io/index.ts
packages/hoppscotch-kernel/src/io/index.ts
import { v1 } from './v/1' export type { IoV1, SaveFileWithDialogOptions, SaveFileResponse, OpenExternalLinkOptions, OpenExternalLinkResponse, Event, EventCallback, UnlistenFn } from './v/1' export const VERSIONS = { v1, } as const export const latest = v1
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/io/v/1.ts
packages/hoppscotch-kernel/src/io/v/1.ts
import type { VersionedAPI } from '@type/versioning' export interface Event<T> { event: string id: number payload: T } export type EventCallback<T> = (event: Event<T>) => void | Promise<void> export type UnlistenFn = () => void | Promise<void> export type SaveFileWithDialogOptions = { data: string | Uint8Arr...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/io/impl/desktop/index.ts
packages/hoppscotch-kernel/src/io/impl/desktop/index.ts
import { implementation as ioV1 } from './v/1' export const IO_IMPLS = { v1: ioV1, } as const
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/io/impl/desktop/v/1.ts
packages/hoppscotch-kernel/src/io/impl/desktop/v/1.ts
import { VersionedAPI } from '@type/versioning' import { IoV1, SaveFileWithDialogOptions, OpenExternalLinkOptions } from '@io/v/1' import { save } from "@tauri-apps/plugin-dialog" import { writeFile, writeTextFile } from "@tauri-apps/plugin-fs" import { open } from "@tauri-apps/plugin-shell" import { listen as tauriLi...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/io/impl/web/index.ts
packages/hoppscotch-kernel/src/io/impl/web/index.ts
import { implementation as ioV1 } from './v/1' export const IO_IMPLS = { v1: ioV1, } as const
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-kernel/src/io/impl/web/v/1.ts
packages/hoppscotch-kernel/src/io/impl/web/v/1.ts
import { VersionedAPI } from '@type/versioning' import { IoV1, SaveFileWithDialogOptions, OpenExternalLinkOptions, Event } from '@io/v/1' import { pipe } from 'fp-ts/function' import * as S from 'fp-ts/string' import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' export const implementation: VersionedAPI<IoV1> = { v...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/vite.config.ts
packages/hoppscotch-data/vite.config.ts
import { tuple } from "io-ts" import { resolve } from "path" import { defineConfig } from "vite" export default defineConfig({ build: { outDir: "./dist", emptyOutDir: true, lib: { entry: resolve(__dirname, "src/index.ts"), fileName: "hoppscotch-data", formats: ["es", "cjs"], }, },...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rawKeyValue.ts
packages/hoppscotch-data/src/rawKeyValue.ts
import { not } from "fp-ts/Predicate" import { pipe, flow } from "fp-ts/function" import * as Str from "fp-ts/string" import * as RA from "fp-ts/ReadonlyArray" import * as A from "fp-ts/Array" import * as O from "fp-ts/Option" import * as E from "fp-ts/Either" import * as P from "parser-ts/Parser" import * as S from "p...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/cookies.ts
packages/hoppscotch-data/src/cookies.ts
import { field } from "fp-ts" import { z } from "zod" export const CookieSchema = z.object({ name: z.string(), // Cookie name value: z.string(), // Cookie value domain: z.string(), // Domain the cookie belongs to path: z.string(), // Path scope of the cookie (default: "/") expires: z.string().optional(), // ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/predefinedVariables.ts
packages/hoppscotch-data/src/predefinedVariables.ts
export type PredefinedVariable = { key: `$${string}` description: string getValue: () => string } export const HOPP_SUPPORTED_PREDEFINED_VARIABLES: PredefinedVariable[] = [ // Common { key: "$guid", description: "A v4 style GUID.", getValue: () => { const characters = "0123456789abcdef" ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/index.ts
packages/hoppscotch-data/src/index.ts
export * from "./rest" export * from "./graphql" export * from "./collection" export * from "./rawKeyValue" export * from "./environment" export * from "./global-environment" export * from "./predefinedVariables" export * from "./utils/collection" export * from "./utils/hawk" export * from "./utils/akamai-eg" export * ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/type-utils.d.ts
packages/hoppscotch-data/src/type-utils.d.ts
interface Object { hasOwnProperty<K extends PropertyKey>(key: K): this is Record<K, unknown>; }
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/graphql/index.ts
packages/hoppscotch-data/src/graphql/index.ts
import { InferredEntity, createVersionedEntity } from "verzod" import { z } from "zod" import V1_VERSION from "./v/1" import V2_VERSION from "./v/2" import V3_VERSION from "./v/3" import V4_VERSION from "./v/4" import V5_VERSION from "./v/5" import V6_VERSION from "./v/6" import V7_VERSION from "./v/7" import V8_VERSIO...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/graphql/v/8.ts
packages/hoppscotch-data/src/graphql/v/8.ts
import { defineVersion } from "verzod" import { z } from "zod" import { HoppGQLAuthBasic, HoppGQLAuthBearer, HoppGQLAuthInherit, HoppGQLAuthNone, } from "./2" import { HoppGQLAuthAPIKey } from "./4" import { HoppGQLAuthAWSSignature } from "./6" import { HoppRESTAuthOAuth2 } from "../../rest/v/11/auth" import {...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/graphql/v/1.ts
packages/hoppscotch-data/src/graphql/v/1.ts
import { z } from "zod" import { defineVersion } from "verzod" export const GQLHeader = z.object({ key: z.string().catch(""), value: z.string().catch(""), active: z.boolean().catch(true) }) export type GQLHeader = z.infer<typeof GQLHeader> export const V1_SCHEMA = z.object({ v: z.literal(1), name: z.string...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/graphql/v/9.ts
packages/hoppscotch-data/src/graphql/v/9.ts
import { defineVersion } from "verzod" import { z } from "zod" import { HoppGQLAuthBasic, HoppGQLAuthBearer, HoppGQLAuthInherit, HoppGQLAuthNone, } from "./2" import { HoppGQLAuthAPIKey } from "./4" import { HoppGQLAuthAWSSignature } from "./6" import { HoppRESTAuthOAuth2 } from "../../rest/v/15/auth" import {...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/graphql/v/7.ts
packages/hoppscotch-data/src/graphql/v/7.ts
import { defineVersion } from "verzod" import { z } from "zod" import { HoppGQLAuthBasic, HoppGQLAuthBearer, HoppGQLAuthInherit, HoppGQLAuthNone, } from "./2" import { HoppGQLAuthAPIKey } from "./4" import { HoppGQLAuthAWSSignature, V6_SCHEMA } from "./6" import { HoppRESTAuthOAuth2 } from "./../../rest/v/7" ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/graphql/v/5.ts
packages/hoppscotch-data/src/graphql/v/5.ts
import { z } from "zod" import { defineVersion } from "verzod" import { HoppRESTAuthOAuth2 } from "../../rest/v/5" import { HoppGQLAuthBasic, HoppGQLAuthBearer, HoppGQLAuthInherit, HoppGQLAuthNone, } from "./2" import { HoppGQLAuthAPIKey, V4_SCHEMA } from "./4" export { HoppRESTAuthOAuth2 as HoppGQLAuthOAuth...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/graphql/v/3.ts
packages/hoppscotch-data/src/graphql/v/3.ts
import { z } from "zod" import { defineVersion } from "verzod" import { HoppRESTAuthOAuth2 } from "../../rest/v/3" import { HoppGQLAuthAPIKey, HoppGQLAuthBasic, HoppGQLAuthBearer, HoppGQLAuthInherit, HoppGQLAuthNone, V2_SCHEMA, } from "./2" export { HoppRESTAuthOAuth2 as HoppGQLAuthOAuth2 } from "../../r...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/graphql/v/4.ts
packages/hoppscotch-data/src/graphql/v/4.ts
import { z } from "zod" import { defineVersion } from "verzod" import { HoppRESTAuthOAuth2 } from "../../rest/v/5" import { HoppGQLAuthAPIKey as HoppGQLAuthAPIKeyOld, HoppGQLAuthBasic, HoppGQLAuthBearer, HoppGQLAuthInherit, HoppGQLAuthNone, } from "./2" import { V3_SCHEMA } from "./3" export { HoppRESTAuth...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/graphql/v/2.ts
packages/hoppscotch-data/src/graphql/v/2.ts
import { z } from "zod" import { defineVersion } from "verzod" import { GQLHeader, V1_SCHEMA } from "./1" export const HoppGQLAuthNone = z.object({ authType: z.literal("none"), }) export type HoppGQLAuthNone = z.infer<typeof HoppGQLAuthNone> export const HoppGQLAuthBasic = z.object({ authType: z.literal("basic")...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/graphql/v/6.ts
packages/hoppscotch-data/src/graphql/v/6.ts
import { defineVersion } from "verzod" import { z } from "zod" import { HoppRESTAuthAWSSignature } from "./../../rest/v/7" import { HoppGQLAuthBasic, HoppGQLAuthBearer, HoppGQLAuthInherit, HoppGQLAuthNone, } from "./2" import { HoppGQLAuthOAuth2, V5_SCHEMA } from "./5" import { HoppGQLAuthAPIKey } from "./4" e...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/collection/index.ts
packages/hoppscotch-data/src/collection/index.ts
import { InferredEntity, createVersionedEntity } from "verzod" import V1_VERSION from "./v/1" import V2_VERSION from "./v/2" import V3_VERSION from "./v/3" import V4_VERSION from "./v/4" import V5_VERSION from "./v/5" import V6_VERSION from "./v/6" import V7_VERSION from "./v/7" import V8_VERSION from "./v/8" import V...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/collection/v/8.ts
packages/hoppscotch-data/src/collection/v/8.ts
import { defineVersion, entityRefUptoVersion } from "verzod" import { z } from "zod" import { HoppGQLAuth } from "../../graphql/v/8" import { HoppRESTAuth } from "../../rest/v/13/auth" import { HoppCollection } from ".." import { v7_baseCollectionSchema, V7_SCHEMA } from "./7" export const v8_baseCollectionSchema = ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/collection/v/1.ts
packages/hoppscotch-data/src/collection/v/1.ts
import { defineVersion, entityReference, entityRefUptoVersion } from "verzod" import { z } from "zod" import { HoppRESTRequest } from "../../rest" import { HoppGQLRequest } from "../../graphql" import { HoppCollection } from ".." const baseCollectionSchema = z.object({ v: z.literal(1), id: z.optional(z.string()), ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/collection/v/11.ts
packages/hoppscotch-data/src/collection/v/11.ts
import { defineVersion, entityRefUptoVersion } from "verzod" import { z } from "zod" import { HoppCollection } from ".." import { v10_baseCollectionSchema } from "./10" export const v11_baseCollectionSchema = v10_baseCollectionSchema.extend({ v: z.literal(11), description: z.string().nullable().catch(null), }) t...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/collection/v/9.ts
packages/hoppscotch-data/src/collection/v/9.ts
import { defineVersion, entityRefUptoVersion } from "verzod" import { z } from "zod" import { HoppGQLAuth } from "../../graphql/v/9" import { HoppRESTAuth } from "../../rest/v/15/auth" import { HoppCollection } from ".." import { v8_baseCollectionSchema, V8_SCHEMA } from "./8" export const v9_baseCollectionSchema = ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/collection/v/10.ts
packages/hoppscotch-data/src/collection/v/10.ts
import { defineVersion, entityRefUptoVersion } from "verzod" import { z } from "zod" import { HoppCollection } from ".." import { v9_baseCollectionSchema } from "./9" export const CollectionVariable = z.object({ key: z.string(), initialValue: z.string(), currentValue: z.string(), secret: z.boolean(), }) expo...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/collection/v/7.ts
packages/hoppscotch-data/src/collection/v/7.ts
import { defineVersion, entityRefUptoVersion } from "verzod" import { z } from "zod" import { HoppGQLAuth } from "../../graphql/v/8" import { HoppRESTAuth } from "../../rest/v/12/auth" import { V6_SCHEMA, v6_baseCollectionSchema } from "./6" import { HoppCollection } from ".." export const v7_baseCollectionSchema = ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/collection/v/5.ts
packages/hoppscotch-data/src/collection/v/5.ts
import { defineVersion, entityRefUptoVersion } from "verzod" import { z } from "zod" import { V4_SCHEMA, v4_baseCollectionSchema } from "./4" import { generateUniqueRefId } from "../../utils/collection" import { HoppCollection } from ".." export const v5_baseCollectionSchema = v4_baseCollectionSchema.extend({ v: z....
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/collection/v/3.ts
packages/hoppscotch-data/src/collection/v/3.ts
import { defineVersion, entityRefUptoVersion } from "verzod" import { z } from "zod" import { GQLHeader as V1_GQLHeader } from "../../graphql/v/1" import { HoppRESTHeaders as V1_HoppRESTHeaders } from "../../rest/v/1" import { HoppGQLAuth, GQLHeader as V2_GQLHeader } from "../../graphql/v/6" import { HoppRESTAuth, ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/collection/v/4.ts
packages/hoppscotch-data/src/collection/v/4.ts
import { defineVersion, entityRefUptoVersion } from "verzod" import { z } from "zod" import { HoppGQLAuth } from "../../graphql/v/7" import { HoppRESTAuth } from "../../rest/v/8/auth" import { V3_SCHEMA, v3_baseCollectionSchema } from "./3" import { HoppCollection } from ".." export const v4_baseCollectionSchema = v...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/collection/v/2.ts
packages/hoppscotch-data/src/collection/v/2.ts
import { defineVersion, entityReference, entityRefUptoVersion } from "verzod" import { z } from "zod" import { HoppGQLRequest } from "../../graphql" import { GQLHeader } from "../../graphql/v/1" import { HoppGQLAuth } from "../../graphql/v/5" import { HoppRESTRequest } from "../../rest" import { HoppRESTHeaders } from...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/collection/v/6.ts
packages/hoppscotch-data/src/collection/v/6.ts
import { defineVersion, entityRefUptoVersion } from "verzod" import { z } from "zod" import { HoppGQLAuth } from "../../graphql/v/8" import { HoppRESTAuth } from "../../rest/v/11/auth" import { V5_SCHEMA, v5_baseCollectionSchema } from "./5" import { HoppCollection } from ".." export const v6_baseCollectionSchema = ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/utils/jwt.ts
packages/hoppscotch-data/src/utils/jwt.ts
import * as jose from "jose" export interface JWTTokenParams { algorithm: string secret: string privateKey: string payload: string jwtHeaders: string isSecretBase64Encoded: boolean } /** * Generates a JWT token using the provided parameters * @param params JWT token generation parameters with pre-parsed...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/utils/collection.ts
packages/hoppscotch-data/src/utils/collection.ts
import { v4 as uuidV4 } from "uuid" /** * Generate a unique reference ID * @param prefix Prefix to add to the generated ID * @returns The generated reference ID */ export const generateUniqueRefId = (prefix = "") => { const timestamp = Date.now().toString(36) const randomPart = uuidV4() return `${prefix}_${...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/utils/eq.ts
packages/hoppscotch-data/src/utils/eq.ts
import * as Eq from "fp-ts/Eq" import * as S from "fp-ts/string" import isEqual from "lodash/isEqual" /* * Eq-s are fp-ts an interface (type class) that defines how the equality * of 2 values of a certain type are matched as equal */ /** * Create an Eq from a non-undefinable value and makes it accept undefined ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/utils/record.ts
packages/hoppscotch-data/src/utils/record.ts
/** * Modify a record value with a mapping function * @param name The key to update * @param func The value to update * @returns The updated record */ export const recordUpdate = < X extends {}, K extends keyof X, R >(name: K, func: (input: X[K]) => R) => (x: X): Omit<X, K> & { [x in K]: R } => ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/utils/akamai-eg.ts
packages/hoppscotch-data/src/utils/akamai-eg.ts
export async function calculateAkamaiEdgeGridHeader(params: { accessToken: string clientToken: string clientSecret: string url: string method: string body?: string // Add body parameter nonce?: string timestamp?: string host?: string headersToSign?: string maxBodySize?: string }) { const encoder...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/utils/hawk.ts
packages/hoppscotch-data/src/utils/hawk.ts
import { HoppRESTRequest } from "../rest" interface HawkOptions { id: string key: string algorithm: "sha256" | "sha1" method: string url: string // Optional parameters user?: string nonce?: string ext?: string app?: string dlg?: string timestamp?: number // Payload options includePayloadH...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/utils/statusCodes.ts
packages/hoppscotch-data/src/utils/statusCodes.ts
export const StatusCodes: { [key: number]: string } = { // 1xx Informational // Request received, continuing process.[2] // This class of status code indicates a provisional response, consisting only of the Status-Line and optional headers, and is terminated by an empty line. Since HTTP/1.0 did not define any 1...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/global-environment/index.ts
packages/hoppscotch-data/src/global-environment/index.ts
import { InferredEntity, createVersionedEntity } from "verzod" import { z } from "zod" import V0_VERSION from "./v/0" import V1_VERSION from "./v/1" import V2_VERSION from "./v/2" const versionedObject = z.object({ v: z.number(), }) export const GlobalEnvironment = createVersionedEntity({ latestVersion: 2, ve...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/global-environment/v/1.ts
packages/hoppscotch-data/src/global-environment/v/1.ts
import { z } from "zod" import { defineVersion } from "verzod" import { V0_SCHEMA } from "./0" export const V1_SCHEMA = z.object({ v: z.literal(1), variables: z.array( z.union([ z.object({ key: z.string(), secret: z.literal(true), }), z.object({ key: z.string(), ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/global-environment/v/0.ts
packages/hoppscotch-data/src/global-environment/v/0.ts
import { z } from "zod" import { defineVersion } from "verzod" export const V0_SCHEMA = z.array( z.union([ z.object({ key: z.string(), value: z.string(), secret: z.literal(false), }), z.object({ key: z.string(), secret: z.literal(true), }), z.object({ key: z.st...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/global-environment/v/2.ts
packages/hoppscotch-data/src/global-environment/v/2.ts
import { z } from "zod" import { defineVersion } from "verzod" import { V1_SCHEMA } from "./1" export const V2_SCHEMA = V1_SCHEMA.extend({ v: z.literal(2), variables: z.array( z.object({ key: z.string(), initialValue: z.string(), currentValue: z.string(), secret: z.boolean(), }) )...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/environment/index.ts
packages/hoppscotch-data/src/environment/index.ts
import * as E from "fp-ts/Either" import { pipe } from "fp-ts/function" import { InferredEntity, createVersionedEntity } from "verzod" import { z } from "zod" import V0_VERSION from "./v/0" import V1_VERSION, { uniqueID } from "./v/1" import V2_VERSION from "./v/2" import { HOPP_SUPPORTED_PREDEFINED_VARIABLES } from ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/environment/v/1.ts
packages/hoppscotch-data/src/environment/v/1.ts
import { z } from "zod" import { defineVersion } from "verzod" import { V0_SCHEMA } from "./0" export const uniqueID = () => Math.random().toString(36).substring(2, 16) export const V1_SCHEMA = z.object({ v: z.literal(1), id: z.string(), name: z.string(), variables: z.array( z.union([ z.object({ ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/environment/v/0.ts
packages/hoppscotch-data/src/environment/v/0.ts
import { z } from "zod" import { defineVersion } from "verzod" export const V0_SCHEMA = z.object({ id: z.optional(z.string()), name: z.string(), variables: z.array( z.object({ key: z.string(), value: z.string(), }) ), }) export default defineVersion({ initial: true, schema: V0_SCHEMA, ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/environment/v/2.ts
packages/hoppscotch-data/src/environment/v/2.ts
import { z } from "zod" import { defineVersion } from "verzod" import { V1_SCHEMA } from "./1" export const V2_SCHEMA = V1_SCHEMA.extend({ v: z.literal(2), variables: z.array( z.object({ key: z.string(), initialValue: z.string(), currentValue: z.string(), secret: z.boolean(), }) )...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest-request-response/index.ts
packages/hoppscotch-data/src/rest-request-response/index.ts
import { InferredEntity, createVersionedEntity, entityReference } from "verzod" import { z } from "zod" import V0_VERSION from "./v/0" import { HoppRESTResOriginalReqSchemaVersion, HoppRESTResponseOriginalRequest, } from "./original-request" export { HoppRESTResponseOriginalRequest } from "./original-request" con...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest-request-response/v/0.ts
packages/hoppscotch-data/src/rest-request-response/v/0.ts
import { defineVersion, entityReference } from "verzod" import { z } from "zod" import { HoppRESTResponseOriginalRequest } from "../original-request" import { StatusCodes } from "../../utils/statusCodes" export const ValidCodes = z.union( Object.keys(StatusCodes).map((code) => z.literal(parseInt(code))) as [ z.Z...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest-request-response/original-request/index.ts
packages/hoppscotch-data/src/rest-request-response/original-request/index.ts
import { InferredEntity, createVersionedEntity } from "verzod" import { z } from "zod" import V1_VERSION from "./v/1" import V2_VERSION from "./v/2" import V3_VERSION from "./v/3" import V4_VERSION from "./v/4" import V5_VERSION from "./v/5" import V6_VERSION from "./v/6" const versionedObject = z.object({ // v is a...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest-request-response/original-request/v/1.ts
packages/hoppscotch-data/src/rest-request-response/original-request/v/1.ts
import { defineVersion } from "verzod" import { z } from "zod" import { HoppRESTHeaders, HoppRESTParams } from "../../../rest/v/7" import { HoppRESTReqBody } from "../../../rest/v/6" import { HoppRESTRequestVariables } from "../../../rest/v/2" import { HoppRESTAuth } from "../../../rest/v/8/auth" export const V1_SCHE...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest-request-response/original-request/v/5.ts
packages/hoppscotch-data/src/rest-request-response/original-request/v/5.ts
import { defineVersion } from "verzod" import { z } from "zod" import { V4_SCHEMA } from "./4" import { HoppRESTAuth } from "../../../rest/v/13/auth" export const V5_SCHEMA = V4_SCHEMA.extend({ v: z.literal("5"), auth: HoppRESTAuth, }) export default defineVersion({ initial: false, schema: V5_SCHEMA, up(old...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest-request-response/original-request/v/3.ts
packages/hoppscotch-data/src/rest-request-response/original-request/v/3.ts
import { defineVersion } from "verzod" import { z } from "zod" import { V2_SCHEMA } from "./2" import { HoppRESTAuth } from "../../../rest/v/11/auth" import { HoppRESTReqBody } from "../../../rest/v/10/body" export const V3_SCHEMA = V2_SCHEMA.extend({ v: z.literal("3"), auth: HoppRESTAuth, body: HoppRESTReqBody...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest-request-response/original-request/v/4.ts
packages/hoppscotch-data/src/rest-request-response/original-request/v/4.ts
import { defineVersion } from "verzod" import { z } from "zod" import { V3_SCHEMA } from "./3" import { HoppRESTAuth } from "../../../rest/v/12/auth" export const V4_SCHEMA = V3_SCHEMA.extend({ v: z.literal("4"), auth: HoppRESTAuth, }) export default defineVersion({ initial: false, schema: V4_SCHEMA, up(old...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest-request-response/original-request/v/2.ts
packages/hoppscotch-data/src/rest-request-response/original-request/v/2.ts
import { defineVersion } from "verzod" import { z } from "zod" import { V1_SCHEMA } from "./1" import { HoppRESTReqBody } from "../../../rest/v/9/body" export const V2_SCHEMA = V1_SCHEMA.extend({ v: z.literal("2"), body: HoppRESTReqBody, }) export default defineVersion({ initial: false, schema: V2_SCHEMA, u...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest-request-response/original-request/v/6.ts
packages/hoppscotch-data/src/rest-request-response/original-request/v/6.ts
import { defineVersion } from "verzod" import { z } from "zod" import { V5_SCHEMA } from "./5" import { HoppRESTAuth } from "../../../rest/v/15/auth" export const V6_SCHEMA = V5_SCHEMA.extend({ v: z.literal("6"), auth: HoppRESTAuth, }) export default defineVersion({ initial: false, schema: V6_SCHEMA, up(old...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/content-types.ts
packages/hoppscotch-data/src/rest/content-types.ts
export const knownContentTypes = { "application/json": "json", "application/ld+json": "json", "application/hal+json": "json", "application/vnd.api+json": "json", "application/xml": "xml", "text/xml": "xml", "application/x-www-form-urlencoded": "multipart", "multipart/form-data": "multipart", "applicat...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/index.ts
packages/hoppscotch-data/src/rest/index.ts
import * as Eq from "fp-ts/Eq" import * as S from "fp-ts/string" import cloneDeep from "lodash/cloneDeep" import { createVersionedEntity, InferredEntity } from "verzod" import { z } from "zod" import { lodashIsEqualEq, mapThenEq, undefinedEq } from "../utils/eq" import V0_VERSION from "./v/0" import V1_VERSION from "...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/14.ts
packages/hoppscotch-data/src/rest/v/14.ts
import { z } from "zod" import { defineVersion } from "verzod" import { V13_SCHEMA } from "./13" // Update the HoppRESTRequestResponses while migrating HoppRESTRequest export const V14_SCHEMA = V13_SCHEMA.extend({ v: z.literal("14"), }) export default defineVersion({ schema: V14_SCHEMA, initial: false, up(old...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/17.ts
packages/hoppscotch-data/src/rest/v/17.ts
import { z } from "zod" import { defineVersion } from "verzod" import { V16_SCHEMA } from "./16" export const V17_SCHEMA = V16_SCHEMA.extend({ v: z.literal("17"), description: z.string().nullable().catch(null), }) const V17_VERSION = defineVersion({ schema: V17_SCHEMA, initial: false, up(old: z.infer<typeof...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/16.ts
packages/hoppscotch-data/src/rest/v/16.ts
import { V15_SCHEMA } from "./15" import { z } from "zod" import { defineVersion } from "verzod" import { generateUniqueRefId } from "../../utils/collection" export const V16_SCHEMA = V15_SCHEMA.extend({ v: z.literal("16"), _ref_id: z.string().optional(), }) const V16_VERSION = defineVersion({ schema: V16_SCHEM...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/1.ts
packages/hoppscotch-data/src/rest/v/1.ts
import { defineVersion } from "verzod" import { z } from "zod" import { V0_SCHEMA } from "./0" export const FormDataKeyValue = z .object({ key: z.string(), active: z.boolean(), }) .and( z.union([ z.object({ isFile: z.literal(true), value: z.array(z.instanceof(Blob).nullable()),...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/7.ts
packages/hoppscotch-data/src/rest/v/7.ts
import { z } from "zod" import { defineVersion } from "verzod" import { HoppRESTAuthBasic, HoppRESTAuthBearer, HoppRESTAuthInherit, HoppRESTAuthNone, } from "./1" import { HoppRESTAuthAPIKey } from "./4" import { V6_SCHEMA } from "./6" import { AuthCodeGrantTypeParams as AuthCodeGrantTypeParamsOld } from "./5"...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/5.ts
packages/hoppscotch-data/src/rest/v/5.ts
import { z } from "zod" import { defineVersion } from "verzod" import { HoppRESTAuthBasic, HoppRESTAuthBearer, HoppRESTAuthInherit, HoppRESTAuthNone, } from "./1" import { HoppRESTAuthAPIKey, V4_SCHEMA } from "./4" import { AuthCodeGrantTypeParams as AuthCodeGrantTypeParamsOld, ClientCredentialsGrantTypePar...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/0.ts
packages/hoppscotch-data/src/rest/v/0.ts
import { defineVersion } from "verzod" import { z } from "zod" export const V0_SCHEMA = z.object({ id: z.optional(z.string()), // Firebase Firestore ID url: z.string(), path: z.string(), headers: z.array( z.object({ key: z.string(), value: z.string(), active: z.boolean() }) ), pa...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/3.ts
packages/hoppscotch-data/src/rest/v/3.ts
import { z } from "zod" import { HoppRESTAuthAPIKey, HoppRESTAuthBasic, HoppRESTAuthBearer, HoppRESTAuthInherit, HoppRESTAuthNone, } from "./1" import { V2_SCHEMA } from "./2" import { defineVersion } from "verzod" export const AuthCodeGrantTypeParams = z.object({ grantType: z.literal("AUTHORIZATION_CODE"...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/4.ts
packages/hoppscotch-data/src/rest/v/4.ts
import { z } from "zod" import { defineVersion } from "verzod" import { HoppRESTAuthOAuth2, V3_SCHEMA } from "./3" import { HoppRESTAuthAPIKey as HoppRESTAuthAPIKeyOld, HoppRESTAuthBasic, HoppRESTAuthBearer, HoppRESTAuthInherit, HoppRESTAuthNone, } from "./1" // in this new version, we update the old 'Header...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/2.ts
packages/hoppscotch-data/src/rest/v/2.ts
import { defineVersion } from "verzod" import { z } from "zod" import { V1_SCHEMA } from "./1" export const HoppRESTRequestVariables = z.array( z.object({ key: z.string().catch(""), value: z.string().catch(""), active: z.boolean().catch(true), }) ) export type HoppRESTRequestVariables = z.infer<typeof...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/6.ts
packages/hoppscotch-data/src/rest/v/6.ts
import { defineVersion } from "verzod" import { z } from "zod" import { FormDataKeyValue } from "./1" import { V5_SCHEMA } from "./5" export const HoppRESTReqBody = z.union([ z.object({ contentType: z.literal(null), body: z.literal(null).catch(null), }), z.object({ contentType: z.literal("multipart/...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/8/auth.ts
packages/hoppscotch-data/src/rest/v/8/auth.ts
import { HoppRESTAuthBasic, HoppRESTAuthBearer, HoppRESTAuthInherit, HoppRESTAuthNone, } from "../1" import { HoppRESTAuthAPIKey } from "../4" import { ClientCredentialsGrantTypeParams as ClientCredentialsGrantTypeParamsOld, ImplicitOauthFlowParams, PasswordGrantTypeParams as PasswordGrantTypeParamsOld,...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/8/index.ts
packages/hoppscotch-data/src/rest/v/8/index.ts
import { defineVersion } from "verzod" import { z } from "zod" import { V7_SCHEMA } from "../7" import { HoppRESTRequestResponses } from "../../../rest-request-response" import { HoppRESTAuth } from "./auth" export const V8_SCHEMA = V7_SCHEMA.extend({ v: z.literal("8"), auth: HoppRESTAuth, responses: HoppREST...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/15/auth.ts
packages/hoppscotch-data/src/rest/v/15/auth.ts
import { z } from "zod" import { HoppRESTAuthBasic, HoppRESTAuthBearer, HoppRESTAuthInherit, HoppRESTAuthNone, } from "../1" import { HoppRESTAuthAPIKey } from "../4" import { AuthCodeGrantTypeParams as AuthCodeGrantTypeParamsOld, HoppRESTAuthAWSSignature, } from "../7" import { HoppRESTAuthDigest, Pass...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/15/index.ts
packages/hoppscotch-data/src/rest/v/15/index.ts
import { V14_SCHEMA } from "../14" import { z } from "zod" import { defineVersion } from "verzod" import { HoppRESTAuth } from "./auth" export const V15_SCHEMA = V14_SCHEMA.extend({ v: z.literal("15"), auth: HoppRESTAuth, }) const V15_VERSION = defineVersion({ schema: V15_SCHEMA, initial: false, up(old: z...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/11/auth.ts
packages/hoppscotch-data/src/rest/v/11/auth.ts
import { HoppRESTAuthBasic, HoppRESTAuthBearer, HoppRESTAuthInherit, HoppRESTAuthNone, } from "../1" import { HoppRESTAuthAPIKey } from "../4" import { AuthCodeGrantTypeParams, HoppRESTAuthAWSSignature } from "../7" import { ClientCredentialsGrantTypeParams as ClientCredentialsGrantTypeParamsOld, HoppRESTAu...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/11/index.ts
packages/hoppscotch-data/src/rest/v/11/index.ts
import { z } from "zod" import { V10_SCHEMA } from "../10" import { defineVersion } from "verzod" import { HoppRESTAuth } from "./auth" export const V11_SCHEMA = V10_SCHEMA.extend({ v: z.literal("11"), auth: HoppRESTAuth, }) export default defineVersion({ schema: V11_SCHEMA, initial: false, up(old: z.infe...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/9/body.ts
packages/hoppscotch-data/src/rest/v/9/body.ts
import { z } from "zod" export const FormDataKeyValue = z .object({ key: z.string(), active: z.boolean(), contentType: z.string().optional().catch(undefined), }) .and( z.union([ z.object({ isFile: z.literal(true), value: z.array(z.instanceof(Blob).nullable()).catch([]), ...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/9/index.ts
packages/hoppscotch-data/src/rest/v/9/index.ts
import { defineVersion } from "verzod" import { z } from "zod" import { V8_SCHEMA } from "../8" import { HoppRESTReqBody } from "./body" export const V9_SCHEMA = V8_SCHEMA.extend({ v: z.literal("9"), body: HoppRESTReqBody, }) export default defineVersion({ schema: V9_SCHEMA, initial: false, up(old: z.infer...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/10/body.ts
packages/hoppscotch-data/src/rest/v/10/body.ts
import { z } from "zod" import { FormDataKeyValue } from "../9/body" export const HoppRESTReqBody = z.union([ z.object({ contentType: z.literal(null), body: z.literal(null).catch(null), }), z.object({ contentType: z.literal("multipart/form-data"), body: z.array(FormDataKeyValue).catch([]), sh...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/10/index.ts
packages/hoppscotch-data/src/rest/v/10/index.ts
import { z } from "zod" import { V9_SCHEMA } from "../9" import { HoppRESTReqBody } from "./body" import { defineVersion } from "verzod" export const V10_SCHEMA = V9_SCHEMA.extend({ v: z.literal("10"), body: HoppRESTReqBody, }) export default defineVersion({ schema: V10_SCHEMA, initial: false, up(old: z.inf...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/13/auth.ts
packages/hoppscotch-data/src/rest/v/13/auth.ts
import { z } from "zod" import { HoppRESTAuthBasic, HoppRESTAuthBearer, HoppRESTAuthInherit, HoppRESTAuthNone, } from "../1" import { HoppRESTAuthAPIKey } from "../4" import { HoppRESTAuthAWSSignature } from "../7" import { HoppRESTAuthDigest } from "../8/auth" import { HoppRESTAuthOAuth2 } from "../11/auth" im...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/13/index.ts
packages/hoppscotch-data/src/rest/v/13/index.ts
import { V12_SCHEMA } from "../12" import { z } from "zod" import { defineVersion } from "verzod" import { HoppRESTAuth } from "./auth" export const V13_SCHEMA = V12_SCHEMA.extend({ v: z.literal("13"), auth: HoppRESTAuth, }) export default defineVersion({ schema: V13_SCHEMA, initial: false, up(old: z.infe...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/12/auth.ts
packages/hoppscotch-data/src/rest/v/12/auth.ts
import { z } from "zod" import { HoppRESTAuthBasic, HoppRESTAuthBearer, HoppRESTAuthInherit, HoppRESTAuthNone, } from "../1" import { HoppRESTAuthAPIKey } from "../4" import { HoppRESTAuthAWSSignature } from "../7" import { HoppRESTAuthDigest } from "../8/auth" import { HoppRESTAuthOAuth2 } from "../11/auth" e...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false
hoppscotch/hoppscotch
https://github.com/hoppscotch/hoppscotch/blob/67dff5fe0f99312690c1cb0059388aee804b30e0/packages/hoppscotch-data/src/rest/v/12/index.ts
packages/hoppscotch-data/src/rest/v/12/index.ts
import { z } from "zod" import { defineVersion } from "verzod" import { V11_SCHEMA } from "../11" import { HoppRESTAuth } from "./auth" export const V12_SCHEMA = V11_SCHEMA.extend({ v: z.literal("12"), auth: HoppRESTAuth, }) export default defineVersion({ schema: V12_SCHEMA, initial: false, up(old: z.infer...
typescript
MIT
67dff5fe0f99312690c1cb0059388aee804b30e0
2026-01-04T15:25:31.920196Z
false