@scalar/workspace-store 0.43.1 → 0.44.0

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.
Files changed (60) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/entities/auth/schema.d.ts +30 -0
  3. package/dist/entities/auth/schema.d.ts.map +1 -1
  4. package/dist/events/definitions/document.d.ts +5 -0
  5. package/dist/events/definitions/document.d.ts.map +1 -1
  6. package/dist/mutators/document.d.ts +6 -0
  7. package/dist/mutators/document.d.ts.map +1 -1
  8. package/dist/mutators/document.js +11 -0
  9. package/dist/mutators/index.d.ts +2 -0
  10. package/dist/mutators/index.d.ts.map +1 -1
  11. package/dist/request-example/builder/build-request.d.ts.map +1 -1
  12. package/dist/request-example/builder/build-request.js +41 -55
  13. package/dist/request-example/builder/index.d.ts +1 -0
  14. package/dist/request-example/builder/index.d.ts.map +1 -1
  15. package/dist/request-example/builder/request-factory.d.ts +150 -12
  16. package/dist/request-example/builder/request-factory.d.ts.map +1 -1
  17. package/dist/request-example/builder/request-factory.js +3 -9
  18. package/dist/request-example/builder/resolve-request-factory-url.d.ts +11 -0
  19. package/dist/request-example/builder/resolve-request-factory-url.d.ts.map +1 -0
  20. package/dist/request-example/builder/resolve-request-factory-url.js +28 -0
  21. package/dist/request-example/builder/security/build-request-security.d.ts +39 -6
  22. package/dist/request-example/builder/security/build-request-security.d.ts.map +1 -1
  23. package/dist/request-example/builder/security/build-request-security.js +14 -6
  24. package/dist/request-example/index.d.ts +4 -2
  25. package/dist/request-example/index.d.ts.map +1 -1
  26. package/dist/request-example/index.js +1 -0
  27. package/dist/request-example/variable-store/index.d.ts +7 -0
  28. package/dist/request-example/variable-store/index.d.ts.map +1 -0
  29. package/dist/request-example/variable-store/index.js +41 -0
  30. package/dist/request-example/variable-store/types.d.ts +59 -0
  31. package/dist/request-example/variable-store/types.d.ts.map +1 -0
  32. package/dist/request-example/variable-store/types.js +11 -0
  33. package/dist/schemas/extensions/general/x-post-response.d.ts.map +1 -0
  34. package/dist/schemas/extensions/general/x-pre-request.d.ts +25 -0
  35. package/dist/schemas/extensions/general/x-pre-request.d.ts.map +1 -0
  36. package/dist/schemas/extensions/general/x-pre-request.js +26 -0
  37. package/dist/schemas/extensions/operation/index.d.ts +0 -1
  38. package/dist/schemas/extensions/operation/index.d.ts.map +1 -1
  39. package/dist/schemas/extensions/operation/index.js +0 -1
  40. package/dist/schemas/inmemory-workspace.d.ts +18 -0
  41. package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
  42. package/dist/schemas/reference-config/index.d.ts +6 -0
  43. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  44. package/dist/schemas/reference-config/settings.d.ts +6 -0
  45. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  46. package/dist/schemas/v3.1/openapi/index.d.ts +4 -0
  47. package/dist/schemas/v3.1/openapi/index.d.ts.map +1 -1
  48. package/dist/schemas/v3.1/openapi/index.js +5 -1
  49. package/dist/schemas/v3.1/strict/openapi-document.d.ts +217 -1
  50. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  51. package/dist/schemas/v3.1/strict/openapi-document.js +3 -1
  52. package/dist/schemas/v3.1/strict/operation.d.ts +5 -2
  53. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  54. package/dist/schemas/v3.1/strict/operation.js +3 -2
  55. package/dist/schemas/workspace.d.ts +18 -0
  56. package/dist/schemas/workspace.d.ts.map +1 -1
  57. package/package.json +5 -5
  58. package/dist/schemas/extensions/operation/x-post-response.d.ts.map +0 -1
  59. /package/dist/schemas/extensions/{operation → general}/x-post-response.d.ts +0 -0
  60. /package/dist/schemas/extensions/{operation → general}/x-post-response.js +0 -0
@@ -0,0 +1,11 @@
1
+ import type { RequestFactory } from '../../request-example/builder/request-factory.js';
2
+ /**
3
+ * Resolves the request URL string from a {@link RequestFactory} using the same
4
+ * rules as {@link buildRequest} (path variables, query, security query params),
5
+ * without proxy rewriting or reserved-query encoding.
6
+ */
7
+ export declare const resolveRequestFactoryUrl: (request: RequestFactory, options: {
8
+ envVariables: Record<string, string>;
9
+ securityQueryParams: URLSearchParams;
10
+ }) => string;
11
+ //# sourceMappingURL=resolve-request-factory-url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-request-factory-url.d.ts","sourceRoot":"","sources":["../../../src/request-example/builder/resolve-request-factory-url.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAA;AAE/E;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GACnC,SAAS,cAAc,EACvB,SAAS;IAAE,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,mBAAmB,EAAE,eAAe,CAAA;CAAE,KACtF,MA2BF,CAAA"}
@@ -0,0 +1,28 @@
1
+ import { replaceEnvVariables, replacePathVariables } from '@scalar/helpers/regex/replace-variables';
2
+ import { mergeUrls } from '@scalar/helpers/url/merge-urls';
3
+ /**
4
+ * Resolves the request URL string from a {@link RequestFactory} using the same
5
+ * rules as {@link buildRequest} (path variables, query, security query params),
6
+ * without proxy rewriting or reserved-query encoding.
7
+ */
8
+ export const resolveRequestFactoryUrl = (request, options) => {
9
+ const variables = options.envVariables;
10
+ const pathVariables = Object.fromEntries(Object.entries(request.path.variables).map(([key, value]) => [
11
+ key,
12
+ encodeURIComponent(replaceEnvVariables(value, variables)),
13
+ ]));
14
+ const baseUrl = replaceEnvVariables(request.baseUrl, variables);
15
+ const path = replacePathVariables(request.path.raw, pathVariables);
16
+ const mergedUrl = mergeUrls(baseUrl, path);
17
+ const urlBase = globalThis.window?.location?.origin ?? 'http://localhost:3000';
18
+ const url = new URL(mergedUrl, urlBase);
19
+ // Merge in operation query params
20
+ for (const [key, value] of request.query.entries()) {
21
+ url.searchParams.set(replaceEnvVariables(key, variables), replaceEnvVariables(value, variables));
22
+ }
23
+ // Merge in security query params
24
+ for (const [key, value] of options.securityQueryParams.entries()) {
25
+ url.searchParams.set(key, value);
26
+ }
27
+ return url.toString();
28
+ };
@@ -1,14 +1,47 @@
1
1
  import type { SecuritySchemeObjectSecret } from '../../../request-example/builder/security/secret-types.js';
2
+ /**
3
+ * BuildRequestSecurityResult
4
+ *
5
+ * Represents an extracted and normalized security credential for an OpenAPI operation input,
6
+ * to be used directly when building HTTP requests (headers, query params, or cookies).
7
+ *
8
+ * This type is produced by the security builder whenever a user selects a security scheme
9
+ * (such as API key, HTTP Basic, or HTTP Bearer) for an operation. Each object here maps directly
10
+ * to one HTTP request authentication mechanism, with its resolved, ready-to-use value.
11
+ *
12
+ * Detailed Fields:
13
+ * - `in`: Where to apply this security value in the outgoing HTTP request.
14
+ * - `'header'`: Set as an HTTP header (e.g., `Authorization`, or API key header).
15
+ * - `'query'`: Set as a query parameter (e.g., `/path?apikey=123`).
16
+ * - `'cookie'`: Set as a cookie header (`Cookie: apikey=123`).
17
+ *
18
+ * - `name`: The key name to use for the security credential in the selected location.
19
+ * - For headers/params, the header or query name.
20
+ * - For cookies, the cookie key.
21
+ *
22
+ * - `format` (optional): Clarifies the expected format, especially for HTTP schemes.
23
+ * - `'basic'`: HTTP Basic Auth.
24
+ * - `'bearer'`: HTTP Bearer token.
25
+ * - Not present for schemes without a special format (e.g., generic API keys).
26
+ *
27
+ * - `value`: The fully resolved secret value to use in the request.
28
+ * - This may already include necessary prefixes (e.g., "Bearer x", "Basic y"),
29
+ * or be a direct value depending on the scheme and usage.
30
+ *
31
+ * NOTE: This type does not capture UI display info, secret labels, or environment binding.
32
+ * It is intended purely for producing the final request input object. Multiple
33
+ * BuildRequestSecurityResult objects may be generated from a single operation if multiple
34
+ * security schemes are selected and must be included simultaneously.
35
+ */
2
36
  export type BuildRequestSecurityResult = {
3
- /** The location of the security scheme */
37
+ /** The location of the security scheme in the HTTP request */
4
38
  in: 'header' | 'query' | 'cookie';
5
- /** The name of the security scheme */
39
+ /** The key/name for the authentication value (header/query/cookie name) */
6
40
  name: string;
7
- /** The type of security scheme */
8
- type: 'simple' | 'basic' | 'bearer';
41
+ /** Format code for HTTP schemes (e.g., 'basic' | 'bearer'), if relevant */
42
+ format?: 'basic' | 'bearer';
9
43
  /**
10
- * The value of the security scheme
11
- * For basic auth we need to base64 encode the value when we build the request
44
+ * The fully resolved authentication value to use (may include tokens, encoded credentials, etc.)
12
45
  */
13
46
  value: string;
14
47
  };
@@ -1 +1 @@
1
- {"version":3,"file":"build-request-security.d.ts","sourceRoot":"","sources":["../../../../src/request-example/builder/security/build-request-security.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAA;AAEjG,MAAM,MAAM,0BAA0B,GAAG;IACvC,0CAA0C;IAC1C,EAAE,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;IACjC,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,kCAAkC;IAClC,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;IACnC;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB;AAC/B,4DAA4D;AAC5D,yBAAyB,0BAA0B,EAAE;AACrD,qEAAqE;AACrE,8BAA0B,KACzB,0BAA0B,EA6E5B,CAAA"}
1
+ {"version":3,"file":"build-request-security.d.ts","sourceRoot":"","sources":["../../../../src/request-example/builder/security/build-request-security.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAA;AAEjG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,8DAA8D;IAC9D,EAAE,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;IACjC,2EAA2E;IAC3E,IAAI,EAAE,MAAM,CAAA;IACZ,2EAA2E;IAC3E,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IAC3B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB;AAC/B,4DAA4D;AAC5D,yBAAyB,0BAA0B,EAAE;AACrD,qEAAqE;AACrE,8BAA0B,KACzB,0BAA0B,EAuF5B,CAAA"}
@@ -19,7 +19,6 @@ emptyTokenPlaceholder = '') => {
19
19
  in: scheme.in,
20
20
  name,
21
21
  value,
22
- type: 'simple',
23
22
  });
24
23
  }
25
24
  if (scheme.in === 'query') {
@@ -27,7 +26,6 @@ emptyTokenPlaceholder = '') => {
27
26
  in: 'query',
28
27
  name,
29
28
  value,
30
- type: 'simple',
31
29
  });
32
30
  }
33
31
  if (scheme.in === 'cookie') {
@@ -35,7 +33,6 @@ emptyTokenPlaceholder = '') => {
35
33
  in: 'cookie',
36
34
  name,
37
35
  value,
38
- type: 'simple',
39
36
  });
40
37
  }
41
38
  }
@@ -50,7 +47,7 @@ emptyTokenPlaceholder = '') => {
50
47
  name: 'Authorization',
51
48
  // We encode the value when we build the request since we want to be able to replace the variables in the value
52
49
  value: value === ':' ? 'username:password' : value,
53
- type: 'basic',
50
+ format: 'basic',
54
51
  });
55
52
  }
56
53
  // Bearer auth
@@ -59,7 +56,7 @@ emptyTokenPlaceholder = '') => {
59
56
  in: 'header',
60
57
  name: 'Authorization',
61
58
  value: value || emptyTokenPlaceholder,
62
- type: 'bearer',
59
+ format: 'bearer',
63
60
  });
64
61
  }
65
62
  // OAuth2
@@ -70,7 +67,18 @@ emptyTokenPlaceholder = '') => {
70
67
  in: 'header',
71
68
  name: 'Authorization',
72
69
  value: token || emptyTokenPlaceholder,
73
- type: 'bearer',
70
+ format: 'bearer',
71
+ });
72
+ }
73
+ // OpenID Connect
74
+ if (scheme.type === 'openIdConnect') {
75
+ const flows = Object.values(scheme?.flows ?? {});
76
+ const token = flows.filter(isDefined).find((f) => f['x-scalar-secret-token'])?.['x-scalar-secret-token'] ?? '';
77
+ return result.push({
78
+ in: 'header',
79
+ name: 'Authorization',
80
+ value: token || emptyTokenPlaceholder,
81
+ format: 'bearer',
74
82
  });
75
83
  }
76
84
  return null;
@@ -1,5 +1,7 @@
1
- export { buildRequest, buildRequestSecurity, deSerializeParameter, filterGlobalCookie, getEnvironmentVariables, getExample, getExampleFromBody, getExampleFromSchema, getResolvedUrl, getSelectedBodyContentType, getServerVariables, requestFactory, serializeContentValue, serializeDeepObjectStyle, serializeFormStyle, serializeFormStyleForCookies, serializePipeDelimitedStyle, serializeSimpleStyle, serializeSpaceDelimitedStyle, } from './builder/index.js';
2
1
  export type { ApiKeyObjectSecret, HttpObjectSecret, OAuth2ObjectSecret, OAuthFlowAuthorizationCodeSecret, OAuthFlowClientCredentialsSecret, OAuthFlowImplicitSecret, OAuthFlowPasswordSecret, OAuthFlowsObjectSecret, OpenIdConnectObjectSecret, SecuritySchemeObjectSecret, } from './builder/index.js';
3
- export { combineParams, getActiveEnvironment, getActiveProxyUrl, getRequestExampleContext, getSecurityRequirements, getSecuritySchemes, getSelectedSecurity, getSelectedServer, getServers, isAuthOptional, mergeSecurity, } from './context/index.js';
2
+ export { type RequestFactory, buildRequest, buildRequestSecurity, deSerializeParameter, filterGlobalCookie, getEnvironmentVariables, getExample, getExampleFromBody, getExampleFromSchema, getResolvedUrl, getSelectedBodyContentType, getServerVariables, requestFactory, serializeContentValue, serializeDeepObjectStyle, serializeFormStyle, serializeFormStyleForCookies, serializePipeDelimitedStyle, serializeSimpleStyle, serializeSpaceDelimitedStyle, } from './builder/index.js';
4
3
  export type { MergedSecuritySchemes } from './context/index.js';
4
+ export { combineParams, getActiveEnvironment, getActiveProxyUrl, getRequestExampleContext, getSecurityRequirements, getSecuritySchemes, getSelectedSecurity, getSelectedServer, getServers, isAuthOptional, mergeSecurity, } from './context/index.js';
5
+ export { createVariablesStoreForRequest } from './variable-store/index.js';
6
+ export type { VariableEntry, VariablesStore } from './variable-store/types.js';
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/request-example/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EACvB,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,0BAA0B,EAC1B,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,EAClB,4BAA4B,EAC5B,2BAA2B,EAC3B,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,WAAW,CAAA;AAClB,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,gCAAgC,EAChC,gCAAgC,EAChC,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,aAAa,GACd,MAAM,WAAW,CAAA;AAClB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/request-example/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,gCAAgC,EAChC,gCAAgC,EAChC,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,KAAK,cAAc,EACnB,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EACvB,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,0BAA0B,EAC1B,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,EAClB,4BAA4B,EAC5B,2BAA2B,EAC3B,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,WAAW,CAAA;AAClB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,aAAa,GACd,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAA;AACjE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export { buildRequest, buildRequestSecurity, deSerializeParameter, filterGlobalCookie, getEnvironmentVariables, getExample, getExampleFromBody, getExampleFromSchema, getResolvedUrl, getSelectedBodyContentType, getServerVariables, requestFactory, serializeContentValue, serializeDeepObjectStyle, serializeFormStyle, serializeFormStyleForCookies, serializePipeDelimitedStyle, serializeSimpleStyle, serializeSpaceDelimitedStyle, } from './builder/index.js';
2
2
  export { combineParams, getActiveEnvironment, getActiveProxyUrl, getRequestExampleContext, getSecurityRequirements, getSecuritySchemes, getSelectedSecurity, getSelectedServer, getServers, isAuthOptional, mergeSecurity, } from './context/index.js';
3
+ export { createVariablesStoreForRequest } from './variable-store/index.js';
@@ -0,0 +1,7 @@
1
+ import type { VariablesStore } from '../../request-example/variable-store/types.js';
2
+ /**
3
+ * Creates an in-memory VariablesStore for a single request execution,
4
+ * managing environment, collection, global, and local variables in priority order.
5
+ */
6
+ export declare function createVariablesStoreForRequest(): VariablesStore;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/request-example/variable-store/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,cAAc,EAAE,MAAM,wCAAwC,CAAA;AAE3F;;;GAGG;AACH,wBAAgB,8BAA8B,IAAI,cAAc,CAuC/D"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Creates an in-memory VariablesStore for a single request execution,
3
+ * managing environment, collection, global, and local variables in priority order.
4
+ */
5
+ export function createVariablesStoreForRequest() {
6
+ const environmentEntries = [];
7
+ const collectionEntries = [];
8
+ const worksapceEntries = [];
9
+ const localVariables = [];
10
+ return {
11
+ getEnvironment: () => environmentEntries,
12
+ getGlobals: () => worksapceEntries,
13
+ getCollectionVariables: () => collectionEntries,
14
+ getData: () => ({}),
15
+ getLocalVariables: () => {
16
+ return localVariables;
17
+ },
18
+ setLocalVariables: (variables) => {
19
+ localVariables.length = 0;
20
+ localVariables.push(...variables);
21
+ },
22
+ setCollectionVariables: (variables) => {
23
+ collectionEntries.length = 0;
24
+ collectionEntries.push(...variables);
25
+ },
26
+ setEnvironment: (variables) => {
27
+ environmentEntries.length = 0;
28
+ environmentEntries.push(...variables);
29
+ },
30
+ setGlobals: (variables) => {
31
+ worksapceEntries.length = 0;
32
+ worksapceEntries.push(...variables);
33
+ },
34
+ getVariables: () => {
35
+ return Object.fromEntries([...worksapceEntries, ...collectionEntries, ...environmentEntries, ...localVariables].map((v) => [
36
+ v.key,
37
+ v.value,
38
+ ]));
39
+ },
40
+ };
41
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * External store for pm.variables used by post-response (and pre-request) scripts.
3
+ *
4
+ * Mirrors the Postman variable precedence: local (in-memory) overrides data, then
5
+ * environment, then collection, then globals. Scripts can read all scopes via
6
+ * pm.variables.get() and only write to the local scope via pm.variables.set();
7
+ * after execution, the adapter writes local variables back through setLocalVariables.
8
+ *
9
+ * @see https://github.com/postmanlabs/postman-sandbox test/unit/pm-variables.test.js
10
+ */
11
+ export type VariableEntry = {
12
+ key: string;
13
+ value: string;
14
+ };
15
+ /**
16
+ * Store interface for workspace/env and in-memory local variables used by the
17
+ * Postman sandbox. The host (e.g. api-client) can implement this to provide
18
+ * environment/globals/collection variables and to persist local variables
19
+ * set by scripts (pm.variables.set), collection variables (pm.collectionVariables.set),
20
+ * and globals (pm.globals.set).
21
+ */
22
+ export type VariablesStore = {
23
+ /** Workspace / environment variables (read-only in scripts). */
24
+ getEnvironment(): VariableEntry[] | Record<string, string>;
25
+ /** Global variables; scripts can set via pm.globals.set. */
26
+ getGlobals(): VariableEntry[] | Record<string, string>;
27
+ /** Collection-level variables; scripts can set via pm.collectionVariables.set. */
28
+ getCollectionVariables(): VariableEntry[] | Record<string, string>;
29
+ /** Request/iteration data (read-only in scripts). */
30
+ getData(): Record<string, string>;
31
+ /** In-memory local variables; scripts can set these via pm.variables.set. */
32
+ getLocalVariables(): VariableEntry[] | Record<string, string>;
33
+ /**
34
+ * Called after script execution with the updated local variables so the host
35
+ * can persist them for the next request or display.
36
+ */
37
+ setLocalVariables(variables: VariableEntry[]): void;
38
+ /**
39
+ * Optional. Called after script execution with collection variables set by
40
+ * the script (pm.collectionVariables.set). If implemented, the host can
41
+ * persist or merge these for the next request.
42
+ */
43
+ setCollectionVariables?(variables: VariableEntry[]): void;
44
+ /**
45
+ * Optional. Called after script execution with environment variables set by the script
46
+ * (pm.environment.set). If implemented, the host can persist or merge these
47
+ * for the next request.
48
+ */
49
+ setEnvironment?(variables: VariableEntry[]): void;
50
+ /**
51
+ * Optional. Called after script execution with globals set by the script
52
+ * (pm.globals.set). If implemented, the host can persist or merge these
53
+ * for the next request.
54
+ */
55
+ setGlobals?(variables: VariableEntry[]): void;
56
+ /** Merged variables from all scopes based on the different leyers. */
57
+ getVariables(): Record<string, string>;
58
+ };
59
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/request-example/variable-store/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,MAAM,aAAa,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE1D;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,gEAAgE;IAChE,cAAc,IAAI,aAAa,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC1D,4DAA4D;IAC5D,UAAU,IAAI,aAAa,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACtD,kFAAkF;IAClF,sBAAsB,IAAI,aAAa,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAClE,qDAAqD;IACrD,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACjC,6EAA6E;IAC7E,iBAAiB,IAAI,aAAa,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7D;;;OAGG;IACH,iBAAiB,CAAC,SAAS,EAAE,aAAa,EAAE,GAAG,IAAI,CAAA;IACnD;;;;OAIG;IACH,sBAAsB,CAAC,CAAC,SAAS,EAAE,aAAa,EAAE,GAAG,IAAI,CAAA;IACzD;;;;OAIG;IACH,cAAc,CAAC,CAAC,SAAS,EAAE,aAAa,EAAE,GAAG,IAAI,CAAA;IACjD;;;;OAIG;IACH,UAAU,CAAC,CAAC,SAAS,EAAE,aAAa,EAAE,GAAG,IAAI,CAAA;IAC7C,sEAAsE;IACtE,YAAY,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACvC,CAAA"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * External store for pm.variables used by post-response (and pre-request) scripts.
3
+ *
4
+ * Mirrors the Postman variable precedence: local (in-memory) overrides data, then
5
+ * environment, then collection, then globals. Scripts can read all scopes via
6
+ * pm.variables.get() and only write to the local scope via pm.variables.set();
7
+ * after execution, the adapter writes local variables back through setLocalVariables.
8
+ *
9
+ * @see https://github.com/postmanlabs/postman-sandbox test/unit/pm-variables.test.js
10
+ */
11
+ export {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-post-response.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/general/x-post-response.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB;;EAE9B,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;;;;;;;;;;;OAcG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,aAAa;;EAYzB,CAAA"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Pre-request scripts run before a request is sent. They are used to prepare or modify anything needed for the request to succeed.
3
+ *
4
+ * Common uses:
5
+ * - Set up data and variables
6
+ * - Generate timestamps, random values, IDs, or nonces
7
+ * - Set environment or collection variables for use in the URL, headers, or body
8
+ *
9
+ * @example
10
+ * ```yaml
11
+ * x-pre-request: |
12
+ * var token = pm.environment.get("token")
13
+ * pm.request.headers.set("Authorization", `Bearer ${token}`)
14
+ * ```
15
+ */
16
+ export declare const XPreRequestSchema: import("@scalar/typebox").TObject<{
17
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
18
+ }>;
19
+ export declare const XPreRequest: import("@scalar/validation").ObjectSchema<{
20
+ 'x-pre-request': import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
21
+ }>;
22
+ export type XPreRequest = {
23
+ 'x-pre-request'?: string;
24
+ };
25
+ //# sourceMappingURL=x-pre-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-pre-request.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/general/x-pre-request.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB;;EAE5B,CAAA;AAEF,eAAO,MAAM,WAAW;;EAQvB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA"}
@@ -0,0 +1,26 @@
1
+ import { Type } from '@scalar/typebox';
2
+ import { object, optional, string } from '@scalar/validation';
3
+ /**
4
+ * Pre-request scripts run before a request is sent. They are used to prepare or modify anything needed for the request to succeed.
5
+ *
6
+ * Common uses:
7
+ * - Set up data and variables
8
+ * - Generate timestamps, random values, IDs, or nonces
9
+ * - Set environment or collection variables for use in the URL, headers, or body
10
+ *
11
+ * @example
12
+ * ```yaml
13
+ * x-pre-request: |
14
+ * var token = pm.environment.get("token")
15
+ * pm.request.headers.set("Authorization", `Bearer ${token}`)
16
+ * ```
17
+ */
18
+ export const XPreRequestSchema = Type.Object({
19
+ 'x-pre-request': Type.Optional(Type.String()),
20
+ });
21
+ export const XPreRequest = object({
22
+ 'x-pre-request': optional(string()),
23
+ }, {
24
+ typeName: 'XPreRequest',
25
+ typeComment: 'Pre-request script to run before the request is sent.',
26
+ });
@@ -1,6 +1,5 @@
1
1
  export { type XBadge, XBadgeSchema, type XBadges, XBadgesSchema, } from './x-badge.js';
2
2
  export { type XCodeSample, type XCodeSamples, XCodeSamplesSchema, } from './x-code-samples.js';
3
- export { type XPostResponse, XPostResponseSchema, } from './x-post-response.js';
4
3
  export { type XScalarSelectedContentType, XScalarSelectedContentTypeSchema, } from './x-scalar-selected-content-type.js';
5
4
  export { XScalarStabilitySchema, XScalarStabilityValues, } from './x-scalar-stability.js';
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,YAAY,EACZ,KAAK,OAAO,EACZ,aAAa,GACd,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,kBAAkB,GACnB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,KAAK,aAAa,EAClB,mBAAmB,GACpB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,KAAK,0BAA0B,EAC/B,gCAAgC,GACjC,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,sBAAsB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,YAAY,EACZ,KAAK,OAAO,EACZ,aAAa,GACd,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,kBAAkB,GACnB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,KAAK,0BAA0B,EAC/B,gCAAgC,GACjC,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,sBAAsB,CAAA"}
@@ -1,5 +1,4 @@
1
1
  export { XBadgeSchema, XBadgesSchema, } from './x-badge.js';
2
2
  export { XCodeSamplesSchema, } from './x-code-samples.js';
3
- export { XPostResponseSchema, } from './x-post-response.js';
4
3
  export { XScalarSelectedContentTypeSchema, } from './x-scalar-selected-content-type.js';
5
4
  export { XScalarStabilitySchema, XScalarStabilityValues, } from './x-scalar-stability.js';
@@ -343,6 +343,8 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
343
343
  }>>;
344
344
  }>, import("@scalar/typebox").TObject<{
345
345
  'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
346
+ }>, import("@scalar/typebox").TObject<{
347
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
346
348
  }>, import("@scalar/typebox").TObject<{
347
349
  'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
348
350
  }>, import("@scalar/typebox").TObject<{
@@ -1352,6 +1354,10 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
1352
1354
  namespace: import("@scalar/typebox").TString;
1353
1355
  slug: import("@scalar/typebox").TString;
1354
1356
  }>>;
1357
+ }>, import("@scalar/typebox").TObject<{
1358
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1359
+ }>, import("@scalar/typebox").TObject<{
1360
+ 'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1355
1361
  }>]>]>;
1356
1362
  TraversedDescriptionObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
1357
1363
  id: import("@scalar/typebox").TString;
@@ -2025,6 +2031,8 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
2025
2031
  }>>;
2026
2032
  }>, import("@scalar/typebox").TObject<{
2027
2033
  'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
2034
+ }>, import("@scalar/typebox").TObject<{
2035
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
2028
2036
  }>, import("@scalar/typebox").TObject<{
2029
2037
  'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
2030
2038
  }>, import("@scalar/typebox").TObject<{
@@ -3034,6 +3042,10 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
3034
3042
  namespace: import("@scalar/typebox").TString;
3035
3043
  slug: import("@scalar/typebox").TString;
3036
3044
  }>>;
3045
+ }>, import("@scalar/typebox").TObject<{
3046
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3047
+ }>, import("@scalar/typebox").TObject<{
3048
+ 'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3037
3049
  }>]>]>;
3038
3050
  TraversedDescriptionObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
3039
3051
  id: import("@scalar/typebox").TString;
@@ -3462,6 +3474,8 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
3462
3474
  }>>;
3463
3475
  }>, import("@scalar/typebox").TObject<{
3464
3476
  'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3477
+ }>, import("@scalar/typebox").TObject<{
3478
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3465
3479
  }>, import("@scalar/typebox").TObject<{
3466
3480
  'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
3467
3481
  }>, import("@scalar/typebox").TObject<{
@@ -4471,6 +4485,10 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
4471
4485
  namespace: import("@scalar/typebox").TString;
4472
4486
  slug: import("@scalar/typebox").TString;
4473
4487
  }>>;
4488
+ }>, import("@scalar/typebox").TObject<{
4489
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
4490
+ }>, import("@scalar/typebox").TObject<{
4491
+ 'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
4474
4492
  }>]>]>;
4475
4493
  TraversedDescriptionObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
4476
4494
  id: import("@scalar/typebox").TString;
@@ -1 +1 @@
1
- {"version":3,"file":"inmemory-workspace.d.ts","sourceRoot":"","sources":["../../src/schemas/inmemory-workspace.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,wBAAwB,CAAA;AAC9E,OAAO,EAAE,KAAK,eAAe,EAAyB,MAAM,2BAA2B,CAAA;AAEvF,OAAO,EACL,KAAK,iBAAiB,EAEtB,KAAK,mBAAmB,EAExB,KAAK,aAAa,EAEnB,MAAM,qBAAqB,CAAA;AAI5B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ox").TObject<{
320
320
  'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
321
+ }>, import("@scalar/typebox").TObject<{
322
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
321
323
  }>, import("@scalar/typebox").TObject<{
322
324
  'x-draft-examples': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TString>>;
323
325
  }>, import("@scalar/typebox").TObject<{
@@ -1327,6 +1329,10 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
1327
1329
  namespace: import("@scalar/typebox").TString;
1328
1330
  slug: import("@scalar/typebox").TString;
1329
1331
  }>>;
1332
+ }>, import("@scalar/typebox").TObject<{
1333
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1334
+ }>, import("@scalar/typebox").TObject<{
1335
+ 'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1330
1336
  }>]>]>;
1331
1337
  TraversedDescriptionObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
1332
1338
  id: import("@scalar/typebox").TString;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAQ,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAA2C,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACvG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAE7C,OAAO,EAAE,KAAK,UAAU,EAAuC,MAAM,cAAc,CAAA;AACnF,OAAO,EAAE,KAAK,QAAQ,EAAmC,MAAM,YAAY,CAAA;AAC3E,OAAO,EAAE,KAAK,IAAI,EAA2B,MAAM,QAAQ,CAAA;AAC3D,OAAO,EAAE,KAAK,OAAO,EAAiC,MAAM,WAAW,CAAA;AACvE,OAAO,EAAE,KAAK,QAAQ,EAAm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ACX,WAAW,CAAC,EAAE,gBAAgB,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC,eAAe,CAgChE,CAAA"}
@@ -304,6 +304,8 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
304
304
  }>>;
305
305
  }>, import("@scalar/typebox").TObject<{
306
306
  'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
307
+ }>, import("@scalar/typebox").TObject<{
308
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
307
309
  }>, import("@scalar/typebox").TObject<{
308
310
  'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
309
311
  }>, import("@scalar/typebox").TObject<{
@@ -1313,6 +1315,10 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
1313
1315
  namespace: import("@scalar/typebox").TString;
1314
1316
  slug: import("@scalar/typebox").TString;
1315
1317
  }>>;
1318
+ }>, import("@scalar/typebox").TObject<{
1319
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1320
+ }>, import("@scalar/typebox").TObject<{
1321
+ 'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1316
1322
  }>]>]>;
1317
1323
  TraversedDescriptionObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
1318
1324
  id: import("@scalar/typebox").TString;
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/settings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAG7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEhE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW1B,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,QAAQ,CAKlD,CAAA"}
@@ -108,5 +108,9 @@ export declare const generateSchema: (maybeRef: (inner: Schema) => Schema) => im
108
108
  namespace: import("@scalar/validation").StringSchema;
109
109
  slug: import("@scalar/validation").StringSchema;
110
110
  }>>;
111
+ }>, import("@scalar/validation").ObjectSchema<{
112
+ 'x-pre-request': import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
113
+ }>, import("@scalar/validation").ObjectSchema<{
114
+ 'x-post-response': import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
111
115
  }>]>;
112
116
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/openapi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAaZ,MAAM,oBAAoB,CAAA;AAyC3B,eAAO,MAAM,cAAc,GAAI,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6gCjE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/openapi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAaZ,MAAM,oBAAoB,CAAA;AA0C3B,eAAO,MAAM,cAAc,GAAI,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAghCjE,CAAA"}