@scalar/workspace-store 0.51.2 → 0.53.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 (92) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/channel-example/build-connection-url.d.ts +42 -0
  3. package/dist/channel-example/build-connection-url.d.ts.map +1 -0
  4. package/dist/channel-example/build-connection-url.js +184 -0
  5. package/dist/channel-example/get-all-channel-messages.d.ts +10 -0
  6. package/dist/channel-example/get-all-channel-messages.d.ts.map +1 -0
  7. package/dist/channel-example/get-all-channel-messages.js +16 -0
  8. package/dist/channel-example/get-asyncapi-security-requirements.d.ts +7 -0
  9. package/dist/channel-example/get-asyncapi-security-requirements.d.ts.map +1 -0
  10. package/dist/channel-example/get-asyncapi-security-requirements.js +76 -0
  11. package/dist/channel-example/get-channel-connection-context.d.ts +16 -0
  12. package/dist/channel-example/get-channel-connection-context.d.ts.map +1 -0
  13. package/dist/channel-example/get-channel-connection-context.js +120 -0
  14. package/dist/channel-example/get-channel-connection-security.d.ts +8 -0
  15. package/dist/channel-example/get-channel-connection-security.d.ts.map +1 -0
  16. package/dist/channel-example/get-channel-connection-security.js +20 -0
  17. package/dist/channel-example/get-channel-operations.d.ts +11 -0
  18. package/dist/channel-example/get-channel-operations.d.ts.map +1 -0
  19. package/dist/channel-example/get-channel-operations.js +20 -0
  20. package/dist/channel-example/get-channel-parameters.d.ts +14 -0
  21. package/dist/channel-example/get-channel-parameters.d.ts.map +1 -0
  22. package/dist/channel-example/get-channel-parameters.js +59 -0
  23. package/dist/channel-example/index.d.ts +20 -0
  24. package/dist/channel-example/index.d.ts.map +1 -0
  25. package/dist/channel-example/index.js +11 -0
  26. package/dist/channel-example/resolve-channel.d.ts +11 -0
  27. package/dist/channel-example/resolve-channel.d.ts.map +1 -0
  28. package/dist/channel-example/resolve-channel.js +13 -0
  29. package/dist/channel-example/resolve-operation-channel.d.ts +11 -0
  30. package/dist/channel-example/resolve-operation-channel.d.ts.map +1 -0
  31. package/dist/channel-example/resolve-operation-channel.js +39 -0
  32. package/dist/channel-example/resolve-operation-with-traits.d.ts +6 -0
  33. package/dist/channel-example/resolve-operation-with-traits.d.ts.map +1 -0
  34. package/dist/channel-example/resolve-operation-with-traits.js +41 -0
  35. package/dist/channel-example/servers.d.ts +36 -0
  36. package/dist/channel-example/servers.d.ts.map +1 -0
  37. package/dist/channel-example/servers.js +77 -0
  38. package/dist/channel-example/types.d.ts +41 -0
  39. package/dist/channel-example/types.d.ts.map +1 -0
  40. package/dist/channel-example/types.js +1 -0
  41. package/dist/client.d.ts.map +1 -1
  42. package/dist/client.js +8 -8
  43. package/dist/entities/auth/schema.d.ts +1266 -81
  44. package/dist/entities/auth/schema.d.ts.map +1 -1
  45. package/dist/events/definitions/log.d.ts +6 -0
  46. package/dist/events/definitions/log.d.ts.map +1 -1
  47. package/dist/helpers/get-name-from-ref.d.ts +15 -0
  48. package/dist/helpers/get-name-from-ref.d.ts.map +1 -0
  49. package/dist/helpers/get-name-from-ref.js +37 -0
  50. package/dist/navigation/get-navigation-options.d.ts +2 -2
  51. package/dist/navigation/get-navigation-options.d.ts.map +1 -1
  52. package/dist/navigation/get-navigation-options.js +26 -3
  53. package/dist/navigation/helpers/traverse-asyncapi-document.d.ts +23 -0
  54. package/dist/navigation/helpers/traverse-asyncapi-document.d.ts.map +1 -0
  55. package/dist/navigation/helpers/traverse-asyncapi-document.js +479 -0
  56. package/dist/navigation/helpers/traverse-description.d.ts +4 -3
  57. package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
  58. package/dist/navigation/helpers/traverse-description.js +2 -2
  59. package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
  60. package/dist/navigation/helpers/traverse-document.js +3 -3
  61. package/dist/navigation/index.d.ts +1 -0
  62. package/dist/navigation/index.d.ts.map +1 -1
  63. package/dist/navigation/index.js +1 -0
  64. package/dist/navigation/types.d.ts +3 -0
  65. package/dist/navigation/types.d.ts.map +1 -1
  66. package/dist/request-example/builder/helpers/get-example-from-schema.d.ts.map +1 -1
  67. package/dist/request-example/builder/helpers/get-example-from-schema.js +33 -2
  68. package/dist/schemas/extensions/schema/x-order.d.ts +22 -0
  69. package/dist/schemas/extensions/schema/x-order.d.ts.map +1 -0
  70. package/dist/schemas/extensions/schema/x-order.js +17 -0
  71. package/dist/schemas/extensions/server/x-scalar-selected-server.d.ts +4 -1
  72. package/dist/schemas/extensions/server/x-scalar-selected-server.d.ts.map +1 -1
  73. package/dist/schemas/extensions/server/x-scalar-selected-server.js +4 -2
  74. package/dist/schemas/navigation.d.ts +113 -4
  75. package/dist/schemas/navigation.d.ts.map +1 -1
  76. package/dist/schemas/navigation.js +22 -0
  77. package/dist/schemas/reference-config/index.d.ts +245 -8
  78. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  79. package/dist/schemas/reference-config/settings.d.ts +245 -8
  80. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  81. package/dist/schemas/v3.1/openapi/index.d.ts.map +1 -1
  82. package/dist/schemas/v3.1/openapi/index.js +61 -17
  83. package/dist/schemas/v3.1/strict/openapi-document.d.ts +9731 -1436
  84. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  85. package/dist/schemas/v3.1/strict/openapi-document.js +4 -1
  86. package/dist/schemas/v3.1/strict/ref-definitions.d.ts +3 -0
  87. package/dist/schemas/v3.1/strict/ref-definitions.d.ts.map +1 -1
  88. package/dist/schemas/v3.1/strict/ref-definitions.js +3 -0
  89. package/dist/schemas/v3.1/strict/schema.d.ts +275 -27
  90. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
  91. package/dist/schemas/v3.1/strict/schema.js +39 -29
  92. package/package.json +12 -7
@@ -0,0 +1,22 @@
1
+ /**
2
+ * x-order
3
+ *
4
+ * Controls the display order of schema properties. Properties with `x-order` are
5
+ * sorted by their numeric value (ascending) and shown before properties without it.
6
+ */
7
+ export declare const XOrderSchema: import("@scalar/typebox").TObject<{
8
+ 'x-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
9
+ }>;
10
+ export type XOrder = {
11
+ /**
12
+ * x-order
13
+ *
14
+ * Controls the display order of schema properties. Properties with `x-order` are
15
+ * sorted by their numeric value (ascending) and shown before properties without it.
16
+ */
17
+ 'x-order'?: number;
18
+ };
19
+ export declare const XOrder: import("@scalar/validation").ObjectSchema<{
20
+ 'x-order': import("@scalar/validation").OptionalSchema<import("@scalar/validation").NumberSchema>;
21
+ }>;
22
+ //# sourceMappingURL=x-order.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-order.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/schema/x-order.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;EAEvB,CAAA;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,MAAM;;EAQlB,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { Type } from '@scalar/typebox';
2
+ import { number, object, optional } from '@scalar/validation';
3
+ /**
4
+ * x-order
5
+ *
6
+ * Controls the display order of schema properties. Properties with `x-order` are
7
+ * sorted by their numeric value (ascending) and shown before properties without it.
8
+ */
9
+ export const XOrderSchema = Type.Object({
10
+ 'x-order': Type.Optional(Type.Number()),
11
+ });
12
+ export const XOrder = object({
13
+ 'x-order': optional(number()),
14
+ }, {
15
+ typeName: 'XOrder',
16
+ typeComment: 'Display order for a schema property',
17
+ });
@@ -2,7 +2,10 @@ export declare const XScalarSelectedServerSchema: import("@scalar/typebox").TObj
2
2
  'x-scalar-selected-server': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3
3
  }>;
4
4
  export type XScalarSelectedServer = {
5
- /** The URL of the currently selected server */
5
+ /**
6
+ * The currently selected server. For OpenAPI documents this is the server URL; for AsyncAPI documents this is the
7
+ * server name (key in `document.servers`).
8
+ */
6
9
  'x-scalar-selected-server'?: string;
7
10
  };
8
11
  export declare const XScalarSelectedServer: import("@scalar/validation").ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"x-scalar-selected-server.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/server/x-scalar-selected-server.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,2BAA2B;;EAEtC,CAAA;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,+CAA+C;IAC/C,0BAA0B,CAAC,EAAE,MAAM,CAAA;CACpC,CAAA;AAED,eAAO,MAAM,qBAAqB;;EAQjC,CAAA"}
1
+ {"version":3,"file":"x-scalar-selected-server.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/server/x-scalar-selected-server.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,2BAA2B;;EAEtC,CAAA;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAA;CACpC,CAAA;AAED,eAAO,MAAM,qBAAqB;;EAcjC,CAAA"}
@@ -4,8 +4,10 @@ export const XScalarSelectedServerSchema = Type.Object({
4
4
  'x-scalar-selected-server': Type.Optional(Type.String()),
5
5
  });
6
6
  export const XScalarSelectedServer = object({
7
- 'x-scalar-selected-server': optional(string({ typeComment: 'The URL of the currently selected server' })),
7
+ 'x-scalar-selected-server': optional(string({
8
+ typeComment: 'The currently selected server. For OpenAPI documents this is the server URL; for AsyncAPI documents this is the server name (key in `document.servers`).',
9
+ })),
8
10
  }, {
9
11
  typeName: 'XScalarSelectedServer',
10
- typeComment: 'The URL of the currently selected server',
12
+ typeComment: 'The currently selected server. For OpenAPI documents this is the server URL; for AsyncAPI documents this is the server name (key in `document.servers`).',
11
13
  });
@@ -1,5 +1,6 @@
1
1
  import { type HttpMethod } from '@scalar/helpers/http/http-methods';
2
2
  import { type TLiteral } from '@scalar/typebox';
3
+ import type { AsyncApiInfoObject } from '@scalar/types/asyncapi/3.1';
3
4
  import type { InfoObject } from '../schemas/v3.1/strict/info.js';
4
5
  import type { OperationObject } from '../schemas/v3.1/strict/operation.js';
5
6
  import type { SchemaObject } from '../schemas/v3.1/strict/schema.js';
@@ -90,6 +91,71 @@ export type TraversedOperation = BaseSchema & {
90
91
  isDeprecated?: boolean;
91
92
  children?: TraversedEntry[];
92
93
  };
94
+ export declare const TraversedAsyncApiOperationSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
95
+ id: import("@scalar/typebox").TString;
96
+ title: import("@scalar/typebox").TString;
97
+ }>, import("@scalar/typebox").TObject<{
98
+ type: TLiteral<"asyncapi-operation">;
99
+ operationName: import("@scalar/typebox").TString;
100
+ action: import("@scalar/typebox").TUnion<[TLiteral<"send">, TLiteral<"receive">]>;
101
+ channelName: import("@scalar/typebox").TString;
102
+ channelAddress: import("@scalar/typebox").TString;
103
+ children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
104
+ }>]>;
105
+ /**
106
+ * An entry representing an AsyncAPI operation in the navigation structure.
107
+ */
108
+ export type TraversedAsyncApiOperation = BaseSchema & {
109
+ type: 'asyncapi-operation';
110
+ /** Key in `document.operations` */
111
+ operationName: string;
112
+ action: 'send' | 'receive';
113
+ /** Resolved channel key in `document.channels` */
114
+ channelName: string;
115
+ /** Channel address for display and routing */
116
+ channelAddress: string;
117
+ /** Messages available on this operation */
118
+ children?: TraversedEntry[];
119
+ };
120
+ export declare const TraversedAsyncApiChannelSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
121
+ id: import("@scalar/typebox").TString;
122
+ title: import("@scalar/typebox").TString;
123
+ }>, import("@scalar/typebox").TObject<{
124
+ type: TLiteral<"asyncapi-channel">;
125
+ channelName: import("@scalar/typebox").TString;
126
+ channelAddress: import("@scalar/typebox").TString;
127
+ children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
128
+ }>]>;
129
+ /**
130
+ * An entry representing an AsyncAPI channel in the navigation structure.
131
+ */
132
+ export type TraversedAsyncApiChannel = BaseSchema & {
133
+ type: 'asyncapi-channel';
134
+ /** Key in `document.channels` */
135
+ channelName: string;
136
+ /** Channel address for display and routing */
137
+ channelAddress: string;
138
+ /** Operations on the channel */
139
+ children?: TraversedEntry[];
140
+ };
141
+ export declare const TraversedAsyncApiMessageSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
142
+ id: import("@scalar/typebox").TString;
143
+ title: import("@scalar/typebox").TString;
144
+ }>, import("@scalar/typebox").TObject<{
145
+ type: TLiteral<"asyncapi-message">;
146
+ messageName: import("@scalar/typebox").TString;
147
+ channelName: import("@scalar/typebox").TString;
148
+ }>]>;
149
+ /**
150
+ * An entry representing an AsyncAPI message in the navigation structure.
151
+ */
152
+ export type TraversedAsyncApiMessage = BaseSchema & {
153
+ type: 'asyncapi-message';
154
+ /** Key in `channel.messages` */
155
+ messageName: string;
156
+ /** Parent channel key in `document.channels` */
157
+ channelName: string;
158
+ };
93
159
  export declare const TraversedSchemaSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
94
160
  id: import("@scalar/typebox").TString;
95
161
  title: import("@scalar/typebox").TString;
@@ -187,6 +253,31 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
187
253
  }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
188
254
  id: import("@scalar/typebox").TString;
189
255
  title: import("@scalar/typebox").TString;
256
+ }>, import("@scalar/typebox").TObject<{
257
+ type: TLiteral<"asyncapi-operation">;
258
+ operationName: import("@scalar/typebox").TString;
259
+ action: import("@scalar/typebox").TUnion<[TLiteral<"send">, TLiteral<"receive">]>;
260
+ channelName: import("@scalar/typebox").TString;
261
+ channelAddress: import("@scalar/typebox").TString;
262
+ children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
263
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
264
+ id: import("@scalar/typebox").TString;
265
+ title: import("@scalar/typebox").TString;
266
+ }>, import("@scalar/typebox").TObject<{
267
+ type: TLiteral<"asyncapi-channel">;
268
+ channelName: import("@scalar/typebox").TString;
269
+ channelAddress: import("@scalar/typebox").TString;
270
+ children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
271
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
272
+ id: import("@scalar/typebox").TString;
273
+ title: import("@scalar/typebox").TString;
274
+ }>, import("@scalar/typebox").TObject<{
275
+ type: TLiteral<"asyncapi-message">;
276
+ messageName: import("@scalar/typebox").TString;
277
+ channelName: import("@scalar/typebox").TString;
278
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
279
+ id: import("@scalar/typebox").TString;
280
+ title: import("@scalar/typebox").TString;
190
281
  }>, import("@scalar/typebox").TObject<{
191
282
  type: TLiteral<"model">;
192
283
  ref: import("@scalar/typebox").TString;
@@ -233,7 +324,7 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
233
324
  name: import("@scalar/typebox").TString;
234
325
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
235
326
  }>]>]>;
236
- export type TraversedEntry = TraversedDescription | TraversedOperation | TraversedSchema | TraversedTag | TraversedWebhook | TraversedExample | TraversedDocument | TraversedModels;
327
+ export type TraversedEntry = TraversedDescription | TraversedOperation | TraversedAsyncApiOperation | TraversedAsyncApiChannel | TraversedAsyncApiMessage | TraversedSchema | TraversedTag | TraversedWebhook | TraversedExample | TraversedDocument | TraversedModels;
237
328
  /**
238
329
  * Type helper for when we are storing the parent entry in the entry itself.
239
330
  * The parent is recursively defined to also include its own parent, except for
@@ -244,11 +335,11 @@ export type WithParent<Entry extends TraversedEntry> = Entry & {
244
335
  };
245
336
  export type DocumentIdProps = {
246
337
  name: string;
247
- info: InfoObject;
338
+ info: InfoObject | AsyncApiInfoObject;
248
339
  type: 'document';
249
340
  };
250
341
  type DescriptionIdProps = {
251
- info: InfoObject;
342
+ info: InfoObject | AsyncApiInfoObject;
252
343
  type: 'text';
253
344
  slug?: string;
254
345
  depth?: number;
@@ -297,7 +388,25 @@ type ExampleProps = {
297
388
  name: string;
298
389
  type: 'example';
299
390
  };
300
- export type IdGeneratorProps = DocumentIdProps | DescriptionIdProps | TagProps | OperationProps | WebhookProps | ModelProps | ExampleProps;
391
+ type AsyncApiOperationProps = {
392
+ parentId: string;
393
+ operationName: string;
394
+ type: 'asyncapi-operation';
395
+ parentTag?: ParentTag;
396
+ };
397
+ type AsyncApiChannelProps = {
398
+ parentId: string;
399
+ channelName: string;
400
+ type: 'asyncapi-channel';
401
+ parentTag?: ParentTag;
402
+ };
403
+ type AsyncApiMessageProps = {
404
+ parentId: string;
405
+ messageName: string;
406
+ channelName: string;
407
+ type: 'asyncapi-message';
408
+ };
409
+ export type IdGeneratorProps = DocumentIdProps | DescriptionIdProps | TagProps | OperationProps | AsyncApiOperationProps | AsyncApiChannelProps | AsyncApiMessageProps | WebhookProps | ModelProps | ExampleProps;
301
410
  export type IdGenerator = (props: IdGeneratorProps) => string;
302
411
  export {};
303
412
  //# sourceMappingURL=navigation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/schemas/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACjF,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,iBAAiB,CAAA;AAGrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AAEtE,OAAO,KAAK,EAAE,YAAY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IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB,CAAA;AAED,KAAK,YAAY,GAAG;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;CAChB,CAAA;AAED,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,oBAAoB,CAAA;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB,CAAA;AAED,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,kBAAkB,CAAA;IACxB,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB,CAAA;AAED,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,kBAAkB,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,gBAAgB,GACxB,eAAe,GACf,kBAAkB,GAClB,QAAQ,GACR,cAAc,GACd,sBAAsB,GACtB,oBAAoB,GACpB,oBAAoB,GACpB,YAAY,GACZ,UAAU,GACV,YAAY,CAAA;AAEhB,MAAM,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,gBAAgB,KAAK,MAAM,CAAA"}
@@ -28,6 +28,25 @@ export const TraversedOperationSchemaDefinition = compose(NavigationBaseSchemaDe
28
28
  isDeprecated: Type.Optional(Type.Boolean()),
29
29
  children: Type.Optional(Type.Array(TraversedEntryObjectRef)),
30
30
  }));
31
+ export const TraversedAsyncApiOperationSchemaDefinition = compose(NavigationBaseSchemaDefinition, Type.Object({
32
+ type: Type.Literal('asyncapi-operation'),
33
+ operationName: Type.String(),
34
+ action: Type.Union([Type.Literal('send'), Type.Literal('receive')]),
35
+ channelName: Type.String(),
36
+ channelAddress: Type.String(),
37
+ children: Type.Optional(Type.Array(TraversedEntryObjectRef)),
38
+ }));
39
+ export const TraversedAsyncApiChannelSchemaDefinition = compose(NavigationBaseSchemaDefinition, Type.Object({
40
+ type: Type.Literal('asyncapi-channel'),
41
+ channelName: Type.String(),
42
+ channelAddress: Type.String(),
43
+ children: Type.Optional(Type.Array(TraversedEntryObjectRef)),
44
+ }));
45
+ export const TraversedAsyncApiMessageSchemaDefinition = compose(NavigationBaseSchemaDefinition, Type.Object({
46
+ type: Type.Literal('asyncapi-message'),
47
+ messageName: Type.String(),
48
+ channelName: Type.String(),
49
+ }));
31
50
  export const TraversedSchemaSchemaDefinition = compose(NavigationBaseSchemaDefinition, Type.Object({
32
51
  type: Type.Literal('model'),
33
52
  ref: Type.String(),
@@ -57,6 +76,9 @@ export const TraversedModelsSchemaDefinition = compose(NavigationBaseSchemaDefin
57
76
  export const TraversedEntrySchemaDefinition = Type.Union([
58
77
  TraversedDescriptionSchemaDefinition,
59
78
  TraversedOperationSchemaDefinition,
79
+ TraversedAsyncApiOperationSchemaDefinition,
80
+ TraversedAsyncApiChannelSchemaDefinition,
81
+ TraversedAsyncApiMessageSchemaDefinition,
60
82
  TraversedSchemaSchemaDefinition,
61
83
  TraversedTagSchemaDefinition,
62
84
  TraversedWebhookSchemaDefinition,