@scalar/workspace-store 0.73.0 → 0.75.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 (122) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +10 -0
  3. package/dist/client.d.ts +3 -0
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/client.js +77 -10
  6. package/dist/entities/auth/schema.d.ts +405 -40
  7. package/dist/entities/auth/schema.d.ts.map +1 -1
  8. package/dist/helpers/async-api-schema-resources/load-inline.d.ts +7 -0
  9. package/dist/helpers/async-api-schema-resources/load-inline.d.ts.map +1 -0
  10. package/dist/helpers/async-api-schema-resources/load-inline.js +31 -0
  11. package/dist/helpers/async-api-schema-resources/protobuf-imports.d.ts +8 -0
  12. package/dist/helpers/async-api-schema-resources/protobuf-imports.d.ts.map +1 -0
  13. package/dist/helpers/async-api-schema-resources/protobuf-imports.js +25 -0
  14. package/dist/helpers/async-api-schema-resources/raml-source.d.ts +12 -0
  15. package/dist/helpers/async-api-schema-resources/raml-source.d.ts.map +1 -0
  16. package/dist/helpers/async-api-schema-resources/raml-source.js +32 -0
  17. package/dist/helpers/async-api-schema-resources/resolver.d.ts +12 -0
  18. package/dist/helpers/async-api-schema-resources/resolver.d.ts.map +1 -0
  19. package/dist/helpers/async-api-schema-resources/resolver.js +31 -0
  20. package/dist/helpers/async-api-schema-resources/resources.d.ts +13 -0
  21. package/dist/helpers/async-api-schema-resources/resources.d.ts.map +1 -0
  22. package/dist/helpers/async-api-schema-resources/resources.js +133 -0
  23. package/dist/helpers/async-api-schema-resources/schema-resource-path.d.ts +3 -0
  24. package/dist/helpers/async-api-schema-resources/schema-resource-path.d.ts.map +1 -0
  25. package/dist/helpers/async-api-schema-resources/schema-resource-path.js +9 -0
  26. package/dist/helpers/async-api-schema-resources/schema-wrappers.d.ts +9 -0
  27. package/dist/helpers/async-api-schema-resources/schema-wrappers.d.ts.map +1 -0
  28. package/dist/helpers/async-api-schema-resources/schema-wrappers.js +69 -0
  29. package/dist/helpers/async-api-schema-resources/track-edits.d.ts +3 -0
  30. package/dist/helpers/async-api-schema-resources/track-edits.d.ts.map +1 -0
  31. package/dist/helpers/async-api-schema-resources/track-edits.js +46 -0
  32. package/dist/helpers/compact-upgrade-metadata.d.ts +3 -0
  33. package/dist/helpers/compact-upgrade-metadata.d.ts.map +1 -0
  34. package/dist/helpers/compact-upgrade-metadata.js +71 -0
  35. package/dist/helpers/is-file-schema.js +1 -1
  36. package/dist/helpers/querystring-parameter.d.ts +3 -1
  37. package/dist/helpers/querystring-parameter.d.ts.map +1 -1
  38. package/dist/helpers/querystring-parameter.js +2 -2
  39. package/dist/helpers/resolve-async-api-schema.d.ts +2 -0
  40. package/dist/helpers/resolve-async-api-schema.d.ts.map +1 -1
  41. package/dist/helpers/resolve-async-api-schema.js +25 -1
  42. package/dist/helpers/use-async-api-schema-resources.d.ts +12 -0
  43. package/dist/helpers/use-async-api-schema-resources.d.ts.map +1 -0
  44. package/dist/helpers/use-async-api-schema-resources.js +24 -0
  45. package/dist/mutators/operation/parameters.d.ts.map +1 -1
  46. package/dist/mutators/operation/parameters.js +9 -1
  47. package/dist/mutators/operation/reset-request-body.d.ts.map +1 -1
  48. package/dist/mutators/operation/reset-request-body.js +3 -1
  49. package/dist/navigation/helpers/get-x-badges.d.ts +10 -0
  50. package/dist/navigation/helpers/get-x-badges.d.ts.map +1 -0
  51. package/dist/navigation/helpers/get-x-badges.js +26 -0
  52. package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
  53. package/dist/navigation/helpers/traverse-paths.js +3 -0
  54. package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
  55. package/dist/navigation/helpers/traverse-schemas.js +3 -0
  56. package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
  57. package/dist/navigation/helpers/traverse-tags.js +3 -0
  58. package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
  59. package/dist/navigation/helpers/traverse-webhooks.js +3 -0
  60. package/dist/plugins/bundler/async-api-schema-resources.d.ts +4 -0
  61. package/dist/plugins/bundler/async-api-schema-resources.d.ts.map +1 -0
  62. package/dist/plugins/bundler/async-api-schema-resources.js +20 -0
  63. package/dist/plugins/bundler/index.d.ts +1 -1
  64. package/dist/plugins/bundler/index.d.ts.map +1 -1
  65. package/dist/plugins/bundler/index.js +7 -4
  66. package/dist/plugins/bundler/openapi-document.d.ts +5 -1
  67. package/dist/plugins/bundler/openapi-document.d.ts.map +1 -1
  68. package/dist/plugins/bundler/openapi-document.js +7 -3
  69. package/dist/plugins/bundler/upgrade-documents.d.ts +4 -0
  70. package/dist/plugins/bundler/upgrade-documents.d.ts.map +1 -0
  71. package/dist/plugins/bundler/upgrade-documents.js +357 -0
  72. package/dist/request-example/builder/body/build-request-body.d.ts +1 -1
  73. package/dist/request-example/builder/body/build-request-body.d.ts.map +1 -1
  74. package/dist/request-example/builder/body/build-request-body.js +2 -2
  75. package/dist/request-example/builder/body/get-request-body-example.d.ts +2 -2
  76. package/dist/request-example/builder/body/get-request-body-example.d.ts.map +1 -1
  77. package/dist/request-example/builder/body/get-request-body-example.js +7 -3
  78. package/dist/request-example/builder/build-request.d.ts.map +1 -1
  79. package/dist/request-example/builder/build-request.js +3 -2
  80. package/dist/request-example/builder/helpers/array-contains.d.ts +15 -0
  81. package/dist/request-example/builder/helpers/array-contains.d.ts.map +1 -0
  82. package/dist/request-example/builder/helpers/array-contains.js +199 -0
  83. package/dist/request-example/builder/helpers/get-example-from-schema.d.ts +9 -0
  84. package/dist/request-example/builder/helpers/get-example-from-schema.d.ts.map +1 -1
  85. package/dist/request-example/builder/helpers/get-example-from-schema.js +162 -31
  86. package/dist/request-example/builder/request-factory.d.ts +5 -1
  87. package/dist/request-example/builder/request-factory.d.ts.map +1 -1
  88. package/dist/request-example/builder/request-factory.js +5 -3
  89. package/dist/request-example/builder/security/build-request-security.d.ts +6 -4
  90. package/dist/request-example/builder/security/build-request-security.d.ts.map +1 -1
  91. package/dist/request-example/builder/security/build-request-security.js +1 -0
  92. package/dist/schemas/extensions/security/x-scalar-token-prefix.d.ts +11 -0
  93. package/dist/schemas/extensions/security/x-scalar-token-prefix.d.ts.map +1 -0
  94. package/dist/schemas/extensions/security/x-scalar-token-prefix.js +8 -0
  95. package/dist/schemas/navigation.d.ts +49 -0
  96. package/dist/schemas/navigation.d.ts.map +1 -1
  97. package/dist/schemas/navigation.js +5 -0
  98. package/dist/schemas/reference-config/index.d.ts +81 -8
  99. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  100. package/dist/schemas/reference-config/settings.d.ts +81 -8
  101. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  102. package/dist/schemas/v3.1/strict/openapi-document.d.ts +2835 -280
  103. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  104. package/dist/schemas/v3.1/strict/schema.d.ts +62 -10
  105. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
  106. package/dist/schemas/v3.1/strict/schema.js +10 -2
  107. package/dist/schemas/v3.1/strict/security-scheme.d.ts +4 -1
  108. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
  109. package/dist/schemas/v3.1/strict/security-scheme.js +2 -1
  110. package/dist/schemas/v3.2/openapi/index.d.ts.map +1 -1
  111. package/dist/schemas/v3.2/openapi/index.js +7 -2
  112. package/dist/schemas/v3.2/strict/openapi-document.d.ts +2835 -280
  113. package/dist/schemas/v3.2/strict/openapi-document.d.ts.map +1 -1
  114. package/dist/schemas/v3.2/strict/schema.d.ts +62 -10
  115. package/dist/schemas/v3.2/strict/schema.d.ts.map +1 -1
  116. package/dist/schemas/v3.2/strict/schema.js +10 -2
  117. package/dist/schemas/v3.2/strict/security-scheme.d.ts +4 -1
  118. package/dist/schemas/v3.2/strict/security-scheme.d.ts.map +1 -1
  119. package/dist/schemas/v3.2/strict/security-scheme.js +2 -1
  120. package/dist/server.d.ts.map +1 -1
  121. package/dist/server.js +33 -3
  122. package/package.json +16 -15
@@ -49,6 +49,8 @@ const OtherTypes = Type.Object({
49
49
  });
50
50
  const Extensions = compose(XScalarIgnoreSchema, XInternalSchema, XVariableSchema, XExamplesSchema, XEnumDescriptionsSchema, XEnumVarNamesSchema, XAdditionalPropertiesNameSchema, XOrderSchema, XTagsSchema);
51
51
  const CorePropertiesWithSchema = Type.Object({
52
+ /** JSON Schema dialect for this schema resource. */
53
+ $schema: Type.Optional(Type.String()),
52
54
  /**
53
55
  * JSON Schema 2020-12 core reference keywords.
54
56
  *
@@ -151,6 +153,12 @@ const StringValidationProperties = compose(Type.Object({
151
153
  format: Type.Optional(Type.String()),
152
154
  }), StringValidationKeywords);
153
155
  const ArrayValidationKeywordsWithSchema = Type.Object({
156
+ /** Schema matched by a bounded number of array items. */
157
+ contains: Type.Optional(Type.Union([schemaOrReference, Type.Boolean()])),
158
+ /** Minimum matches; defaults to one when contains is present. */
159
+ minContains: Type.Optional(Type.Integer({ minimum: 0 })),
160
+ /** Maximum matches; ignored without contains. */
161
+ maxContains: Type.Optional(Type.Integer({ minimum: 0 })),
154
162
  /** Maximum number of items in array. */
155
163
  maxItems: Type.Optional(Type.Integer({ minimum: 0 })),
156
164
  /** Minimum number of items in array. */
@@ -158,9 +166,9 @@ const ArrayValidationKeywordsWithSchema = Type.Object({
158
166
  /** Whether array items must be unique. */
159
167
  uniqueItems: Type.Optional(Type.Boolean()),
160
168
  /** Schema for array items. */
161
- items: Type.Optional(schemaOrReference),
169
+ items: Type.Optional(Type.Union([schemaOrReference, Type.Boolean()])),
162
170
  /** Schema for tuple validation. */
163
- prefixItems: Type.Optional(Type.Array(schemaOrReference)),
171
+ prefixItems: Type.Optional(Type.Array(Type.Union([schemaOrReference, Type.Boolean()]))),
164
172
  });
165
173
  const ArrayValidationPropertiesWithSchema = compose(Type.Object({
166
174
  type: Type.Literal('array'),
@@ -1,12 +1,13 @@
1
1
  import { type XScalarIgnore } from '../../extensions/document/x-scalar-ignore.js';
2
2
  import { type XDefaultScopes } from '../../extensions/security/x-default-scopes.js';
3
3
  import { type XScalarCredentialPlaceholders } from '../../extensions/security/x-scalar-credential-placeholders.js';
4
+ import { type XScalarTokenPrefix } from '../../extensions/security/x-scalar-token-prefix.js';
4
5
  import type { OAuthFlowsObject } from './oauthflows.js';
5
6
  type Description = {
6
7
  /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
7
8
  description?: string;
8
9
  } & XScalarIgnore & XScalarCredentialPlaceholders;
9
- export type ApiKeyObject = Description & {
10
+ export type ApiKeyObject = Description & XScalarTokenPrefix & {
10
11
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
11
12
  type: 'apiKey';
12
13
  /** REQUIRED. The name of the header, query or cookie parameter to be used. */
@@ -54,6 +55,8 @@ export declare const SecuritySchemeObjectSchemaDefinition: import("@scalar/typeb
54
55
  mask: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
55
56
  }>>>;
56
57
  }>]>, import("@scalar/typebox").TObject<{
58
+ 'x-scalar-token-prefix': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
59
+ }>, import("@scalar/typebox").TObject<{
57
60
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
58
61
  type: import("@scalar/typebox").TLiteral<"apiKey">;
59
62
  /** REQUIRED. The name of the header, query or cookie parameter to be used. */
@@ -1 +1 @@
1
- {"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/security-scheme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,+CAA+C,CAAA;AACvG,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,gDAAgD,CAAA;AAC1G,OAAO,EACL,KAAK,6BAA6B,EAEnC,MAAM,gEAAgE,CAAA;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAcxE,KAAK,WAAW,GAAG;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AA;AAaD,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG;IACvC,4HAA4H;IAC5H,IAAI,EAAE,QAAQ,CAAA;IACd,6FAA6F;IAC7F,KAAK,EAAE,gBAAgB,CAAA;CACxB,GAAG,cAAc,CAAA;AAYlB,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG;IAC9C,4HAA4H;IAC5H,IAAI,EAAE,eAAe,CAAA;IACrB,+FAA+F;IAC/F,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oCAAoC;IA9G7C,qGAAqG;;;;;;;;;;;;IAiBrG,4HAA4H;;IAE5H,8EAA8E;;IAE9E,8FAA8F;;;IArB9F,qGAAqG;;;;;;;;;;IAuCrG,4HAA4H;;IAE5H,gQAAgQ;;IAEhQ,uMAAuM;;;IA3CvM,qGAAqG;;;;;;;;;;IA4DrG,4HAA4H;;;IA5D5H,qGAAqG;;;;;;;;;;IAyErG,4HAA4H;;IAE5H,6FAA6F;;;;;IA3E7F,qGAAqG;;;;;;;;;;IA2FrG,4HAA4H;;IAE5H,+FAA+F;;MAuBjG,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG,UAAU,GAAG,eAAe,GAAG,YAAY,GAAG,mBAAmB,CAAA"}
@@ -3,6 +3,7 @@ import { compose } from '../../compose.js';
3
3
  import { XScalarIgnoreSchema } from '../../extensions/document/x-scalar-ignore.js';
4
4
  import { XDefaultScopesSchema } from '../../extensions/security/x-default-scopes.js';
5
5
  import { XScalarCredentialPlaceholdersSchema, } from '../../extensions/security/x-scalar-credential-placeholders.js';
6
+ import { XScalarTokenPrefixSchema } from '../../extensions/security/x-scalar-token-prefix.js';
6
7
  import { OAuthFlowsObjectRef } from './ref-definitions.js';
7
8
  // Shared base for every security scheme: a description plus the ignore extension, so any
8
9
  // scheme can be hidden from the auth UI with `x-scalar-ignore`. See documentation/openapi.md.
@@ -10,7 +11,7 @@ const DescriptionSchema = compose(Type.Object({
10
11
  /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
11
12
  description: Type.Optional(Type.String()),
12
13
  }), XScalarIgnoreSchema, XScalarCredentialPlaceholdersSchema);
13
- const ApiKeySchema = compose(DescriptionSchema, Type.Object({
14
+ const ApiKeySchema = compose(DescriptionSchema, XScalarTokenPrefixSchema, Type.Object({
14
15
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
15
16
  type: Type.Literal('apiKey'),
16
17
  /** REQUIRED. The name of the header, query or cookie parameter to be used. */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/openapi/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,MAAM,EAcZ,MAAM,oBAAoB,CAAA;AAgD3B,0CAA0C;AAC1C,KAAK,qBAAqB,GAAG;IAC3B;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAC/B,CAAA;AAoED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,aAAc,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,KAAG,MAyM1E,CAAA;AAED,eAAO,MAAM,cAAc,aAAc,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,YAAW,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA43BjG,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/openapi/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,MAAM,EAcZ,MAAM,oBAAoB,CAAA;AAiD3B,0CAA0C;AAC1C,KAAK,qBAAqB,GAAG;IAC3B;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAC/B,CAAA;AAoED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,aAAc,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,KAAG,MA8M1E,CAAA;AAED,eAAO,MAAM,cAAc,aAAc,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,YAAW,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA63BjG,CAAA"}
@@ -40,6 +40,7 @@ import { XScalarCredentialsLocation } from '../../extensions/security/x-scalar-c
40
40
  import { XScalarSecurityBody } from '../../extensions/security/x-scalar-security-body.js';
41
41
  import { XScalarSecurityQuery } from '../../extensions/security/x-scalar-security-query.js';
42
42
  import { XScalarAuthUrl, XScalarTokenUrl } from '../../extensions/security/x-scalar-security-secrets.js';
43
+ import { XScalarTokenPrefix } from '../../extensions/security/x-scalar-token-prefix.js';
43
44
  import { XTokenName } from '../../extensions/security/x-tokenName.js';
44
45
  import { XusePkce } from '../../extensions/security/x-use-pkce.js';
45
46
  import { XScalarSelectedServer } from '../../extensions/server/x-scalar-selected-server.js';
@@ -178,11 +179,14 @@ export const generateSchemaObject = (maybeRef) => {
178
179
  objectValidationKeywords,
179
180
  ], { typeName: 'ObjectSchemaObject' });
180
181
  const arrayValidationKeywords = object({
182
+ contains: optional(union([boolean(), maybeRef(lazy(() => schema))])),
183
+ minContains: optional(number({ typeComment: 'Minimum number of items matching contains.' })),
184
+ maxContains: optional(number({ typeComment: 'Maximum number of items matching contains.' })),
181
185
  maxItems: optional(number({ typeComment: 'Maximum number of items in array.' })),
182
186
  minItems: optional(number({ typeComment: 'Minimum number of items in array.' })),
183
187
  uniqueItems: optional(boolean({ typeComment: 'Whether array items must be unique.' })),
184
- items: optional(maybeRef(lazy(() => schema))),
185
- prefixItems: optional(array(maybeRef(lazy(() => schema)), { typeComment: 'Schema for tuple validation.' })),
188
+ items: optional(union([boolean(), maybeRef(lazy(() => schema))])),
189
+ prefixItems: optional(array(union([boolean(), maybeRef(lazy(() => schema))]), { typeComment: 'Schema for tuple validation.' })),
186
190
  });
187
191
  const arraySchema = intersection([
188
192
  object({
@@ -322,6 +326,7 @@ export const generateSchema = (maybeRef, options = {}) => {
322
326
  });
323
327
  const apiKeySecurityScheme = object({
324
328
  ...securitySchemeBase.properties,
329
+ ...XScalarTokenPrefix.properties,
325
330
  type: literal('apiKey'),
326
331
  name: string({ typeComment: 'REQUIRED. The name of the header, query or cookie parameter to be used.' }),
327
332
  in: union([literal('query'), literal('header'), literal('cookie')], {