@scalar/workspace-store 0.52.0 → 0.54.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 (128) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/dist/channel-example/build-connection-url.d.ts.map +1 -1
  3. package/dist/channel-example/build-connection-url.js +11 -8
  4. package/dist/channel-example/get-all-channel-messages.d.ts +10 -0
  5. package/dist/channel-example/get-all-channel-messages.d.ts.map +1 -0
  6. package/dist/channel-example/get-all-channel-messages.js +16 -0
  7. package/dist/channel-example/get-asyncapi-security-requirements.d.ts +7 -0
  8. package/dist/channel-example/get-asyncapi-security-requirements.d.ts.map +1 -0
  9. package/dist/channel-example/get-asyncapi-security-requirements.js +76 -0
  10. package/dist/channel-example/get-channel-connection-context.d.ts +16 -0
  11. package/dist/channel-example/get-channel-connection-context.d.ts.map +1 -0
  12. package/dist/channel-example/get-channel-connection-context.js +120 -0
  13. package/dist/channel-example/get-channel-connection-security.d.ts +8 -0
  14. package/dist/channel-example/get-channel-connection-security.d.ts.map +1 -0
  15. package/dist/channel-example/get-channel-connection-security.js +20 -0
  16. package/dist/channel-example/get-channel-operations.d.ts +11 -0
  17. package/dist/channel-example/get-channel-operations.d.ts.map +1 -0
  18. package/dist/channel-example/get-channel-operations.js +20 -0
  19. package/dist/channel-example/get-channel-parameters.d.ts +14 -0
  20. package/dist/channel-example/get-channel-parameters.d.ts.map +1 -0
  21. package/dist/channel-example/get-channel-parameters.js +59 -0
  22. package/dist/channel-example/index.d.ts +15 -0
  23. package/dist/channel-example/index.d.ts.map +1 -1
  24. package/dist/channel-example/index.js +9 -0
  25. package/dist/channel-example/resolve-channel.d.ts +11 -0
  26. package/dist/channel-example/resolve-channel.d.ts.map +1 -0
  27. package/dist/channel-example/resolve-channel.js +13 -0
  28. package/dist/channel-example/resolve-operation-channel.d.ts +11 -0
  29. package/dist/channel-example/resolve-operation-channel.d.ts.map +1 -0
  30. package/dist/channel-example/resolve-operation-channel.js +39 -0
  31. package/dist/channel-example/resolve-operation-with-traits.d.ts +6 -0
  32. package/dist/channel-example/resolve-operation-with-traits.d.ts.map +1 -0
  33. package/dist/channel-example/resolve-operation-with-traits.js +41 -0
  34. package/dist/channel-example/servers.d.ts.map +1 -1
  35. package/dist/channel-example/servers.js +23 -0
  36. package/dist/channel-example/types.d.ts +41 -0
  37. package/dist/channel-example/types.d.ts.map +1 -0
  38. package/dist/channel-example/types.js +1 -0
  39. package/dist/client.d.ts.map +1 -1
  40. package/dist/client.js +8 -8
  41. package/dist/entities/auth/schema.d.ts +1473 -88
  42. package/dist/entities/auth/schema.d.ts.map +1 -1
  43. package/dist/events/definitions/meta.d.ts +5 -3
  44. package/dist/events/definitions/meta.d.ts.map +1 -1
  45. package/dist/events/definitions/server.d.ts +21 -0
  46. package/dist/events/definitions/server.d.ts.map +1 -1
  47. package/dist/events/definitions/workspace.d.ts +7 -3
  48. package/dist/events/definitions/workspace.d.ts.map +1 -1
  49. package/dist/helpers/get-name-from-ref.d.ts +15 -0
  50. package/dist/helpers/get-name-from-ref.d.ts.map +1 -0
  51. package/dist/helpers/get-name-from-ref.js +37 -0
  52. package/dist/mutators/index.d.ts +4 -0
  53. package/dist/mutators/index.d.ts.map +1 -1
  54. package/dist/mutators/server.d.ts +26 -0
  55. package/dist/mutators/server.d.ts.map +1 -1
  56. package/dist/mutators/server.js +44 -1
  57. package/dist/navigation/get-navigation-options.d.ts +2 -2
  58. package/dist/navigation/get-navigation-options.d.ts.map +1 -1
  59. package/dist/navigation/get-navigation-options.js +26 -3
  60. package/dist/navigation/helpers/traverse-asyncapi-document.d.ts +23 -0
  61. package/dist/navigation/helpers/traverse-asyncapi-document.d.ts.map +1 -0
  62. package/dist/navigation/helpers/traverse-asyncapi-document.js +479 -0
  63. package/dist/navigation/helpers/traverse-description.d.ts +4 -3
  64. package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
  65. package/dist/navigation/helpers/traverse-description.js +2 -2
  66. package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
  67. package/dist/navigation/helpers/traverse-document.js +3 -3
  68. package/dist/navigation/index.d.ts +1 -0
  69. package/dist/navigation/index.d.ts.map +1 -1
  70. package/dist/navigation/index.js +1 -0
  71. package/dist/navigation/types.d.ts +3 -0
  72. package/dist/navigation/types.d.ts.map +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 +32 -1
  75. package/dist/request-example/builder/body/serialize-form-property.d.ts +23 -0
  76. package/dist/request-example/builder/body/serialize-form-property.d.ts.map +1 -0
  77. package/dist/request-example/builder/body/serialize-form-property.js +101 -0
  78. package/dist/request-example/builder/header/de-serialize-parameter.d.ts +4 -1
  79. package/dist/request-example/builder/header/de-serialize-parameter.d.ts.map +1 -1
  80. package/dist/request-example/builder/header/de-serialize-parameter.js +19 -13
  81. package/dist/request-example/builder/index.d.ts +1 -0
  82. package/dist/request-example/builder/index.d.ts.map +1 -1
  83. package/dist/request-example/builder/index.js +1 -0
  84. package/dist/request-example/context/security/extract-security-scheme-secrets.d.ts +1 -1
  85. package/dist/request-example/context/security/extract-security-scheme-secrets.d.ts.map +1 -1
  86. package/dist/request-example/context/security/extract-security-scheme-secrets.js +12 -8
  87. package/dist/request-example/context/security/merge-security.d.ts +1 -1
  88. package/dist/request-example/context/security/merge-security.d.ts.map +1 -1
  89. package/dist/request-example/context/security/merge-security.js +2 -2
  90. package/dist/request-example/index.d.ts +1 -1
  91. package/dist/request-example/index.d.ts.map +1 -1
  92. package/dist/request-example/index.js +1 -1
  93. package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts +1 -3
  94. package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts.map +1 -1
  95. package/dist/schemas/extensions/document/x-scalar-sdk-installation.js +0 -2
  96. package/dist/schemas/extensions/operation/index.d.ts +1 -1
  97. package/dist/schemas/extensions/operation/index.d.ts.map +1 -1
  98. package/dist/schemas/extensions/operation/x-code-samples.d.ts +71 -0
  99. package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
  100. package/dist/schemas/extensions/operation/x-code-samples.js +50 -7
  101. package/dist/schemas/navigation.d.ts +113 -4
  102. package/dist/schemas/navigation.d.ts.map +1 -1
  103. package/dist/schemas/navigation.js +22 -0
  104. package/dist/schemas/reference-config/index.d.ts +286 -9
  105. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  106. package/dist/schemas/reference-config/settings.d.ts +286 -9
  107. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  108. package/dist/schemas/v3.1/openapi/index.d.ts +0 -1
  109. package/dist/schemas/v3.1/openapi/index.d.ts.map +1 -1
  110. package/dist/schemas/v3.1/openapi/index.js +59 -17
  111. package/dist/schemas/v3.1/strict/info.d.ts +0 -1
  112. package/dist/schemas/v3.1/strict/info.d.ts.map +1 -1
  113. package/dist/schemas/v3.1/strict/openapi-document.d.ts +11168 -1473
  114. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  115. package/dist/schemas/v3.1/strict/openapi-document.js +4 -1
  116. package/dist/schemas/v3.1/strict/operation.d.ts +25 -0
  117. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  118. package/dist/schemas/v3.1/strict/ref-definitions.d.ts +3 -0
  119. package/dist/schemas/v3.1/strict/ref-definitions.d.ts.map +1 -1
  120. package/dist/schemas/v3.1/strict/ref-definitions.js +3 -0
  121. package/dist/schemas/v3.1/strict/schema.d.ts +387 -26
  122. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
  123. package/dist/schemas/v3.1/strict/schema.js +53 -28
  124. package/dist/schemas/workspace-specification/index.d.ts +1 -1
  125. package/dist/schemas/workspace.d.ts +2 -3
  126. package/dist/schemas/workspace.d.ts.map +1 -1
  127. package/dist/schemas/workspace.js +5 -1
  128. package/package.json +7 -7
@@ -1 +1 @@
1
- {"version":3,"file":"x-code-samples.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-code-samples.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;EAI7B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,eAAO,MAAM,WAAW;;;;EAUvB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,eAAe,CAAC,EAAE,WAAW,EAAE,CAAA;IAC/B,gBAAgB,CAAC,EAAE,WAAW,EAAE,CAAA;IAChC,mBAAmB,CAAC,EAAE,WAAW,EAAE,CAAA;CACpC,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;EAUxB,CAAA"}
1
+ {"version":3,"file":"x-code-samples.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-code-samples.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ7B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,0CAA0C;AAC1C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAC9B,CAAA;AAED,yEAAyE;AACzE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW;;;;EAItB,CAAA;AAuBF,MAAM,MAAM,YAAY,GAAG;IACzB,eAAe,CAAC,EAAE,WAAW,EAAE,CAAA;IAC/B,gBAAgB,CAAC,EAAE,WAAW,EAAE,CAAA;IAChC,mBAAmB,CAAC,EAAE,WAAW,EAAE,CAAA;IACnC,UAAU,CAAC,EAAE;QACX,cAAc,CAAC,EAAE,iBAAiB,EAAE,CAAA;QACpC,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;KAC/B,CAAA;IACD,sBAAsB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/C,sBAAsB,CAAC,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAA;IAC9D,mBAAmB,CAAC,EAAE,WAAW,EAAE,CAAA;CACpC,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQvB,CAAA"}
@@ -1,28 +1,71 @@
1
1
  import { Type } from '@scalar/typebox';
2
- import { array, object, optional, string } from '@scalar/validation';
2
+ import { array, object, optional, record, string, union, unknown } from '@scalar/validation';
3
3
  const XCodeSampleSchema = Type.Object({
4
4
  lang: Type.Optional(Type.String()),
5
5
  label: Type.Optional(Type.String()),
6
6
  source: Type.String(),
7
7
  });
8
+ /** A single ReadMe custom code sample (`x-readme.code-samples`). */
9
+ const XReadmeCodeSampleSchema = Type.Object({
10
+ language: Type.Optional(Type.String()),
11
+ code: Type.String(),
12
+ name: Type.Optional(Type.String()),
13
+ install: Type.Optional(Type.String()),
14
+ correspondingExample: Type.Optional(Type.String()),
15
+ });
16
+ /** ReadMe extension object. Only `code-samples` carries source code. */
17
+ const XReadmeSchema = Type.Object({
18
+ 'code-samples': Type.Optional(Type.Array(XReadmeCodeSampleSchema)),
19
+ 'samples-languages': Type.Optional(Type.Array(Type.String())),
20
+ });
21
+ /**
22
+ * A Stainless/Scalar example: per-language request snippets, with an optional
23
+ * title and response. Matches the shape of `x-stainless-examples`.
24
+ */
25
+ const XLanguageExampleSchema = Type.Object({
26
+ title: Type.Optional(Type.String()),
27
+ request: Type.Optional(Type.Record(Type.String(), Type.String())),
28
+ response: Type.Optional(Type.Unknown()),
29
+ });
30
+ /** A single example or an array of examples. */
31
+ const XLanguageExamplesSchema = Type.Union([XLanguageExampleSchema, Type.Array(XLanguageExampleSchema)]);
8
32
  export const XCodeSamplesSchema = Type.Object({
9
33
  'x-codeSamples': Type.Optional(Type.Array(XCodeSampleSchema)),
10
34
  'x-code-samples': Type.Optional(Type.Array(XCodeSampleSchema)),
11
35
  'x-custom-examples': Type.Optional(Type.Array(XCodeSampleSchema)),
36
+ 'x-readme': Type.Optional(XReadmeSchema),
37
+ 'x-stainless-snippets': Type.Optional(Type.Record(Type.String(), Type.String())),
38
+ 'x-stainless-examples': Type.Optional(XLanguageExamplesSchema),
39
+ 'x-scalar-examples': Type.Optional(Type.Array(XCodeSampleSchema)),
12
40
  });
13
41
  export const XCodeSample = object({
14
42
  lang: optional(string()),
15
43
  label: optional(string()),
16
44
  source: string(),
17
- }, {
18
- typeName: 'XCodeSample',
19
- typeComment: 'A single code sample for documentation or examples',
20
45
  });
46
+ const XReadmeCodeSample = object({
47
+ language: optional(string()),
48
+ code: string(),
49
+ name: optional(string()),
50
+ install: optional(string()),
51
+ correspondingExample: optional(string()),
52
+ });
53
+ const XReadme = object({
54
+ 'code-samples': optional(array(XReadmeCodeSample)),
55
+ 'samples-languages': optional(array(string())),
56
+ });
57
+ const XLanguageExample = object({
58
+ title: optional(string()),
59
+ request: optional(record(string(), string())),
60
+ response: optional(unknown()),
61
+ });
62
+ const XLanguageExamples = union([XLanguageExample, array(XLanguageExample)]);
21
63
  export const XCodeSamples = object({
22
64
  'x-codeSamples': optional(array(XCodeSample)),
23
65
  'x-code-samples': optional(array(XCodeSample)),
24
66
  'x-custom-examples': optional(array(XCodeSample)),
25
- }, {
26
- typeName: 'XCodeSamples',
27
- typeComment: 'Code samples attached to an operation',
67
+ 'x-readme': optional(XReadme),
68
+ 'x-stainless-snippets': optional(record(string(), string())),
69
+ 'x-stainless-examples': optional(XLanguageExamples),
70
+ 'x-scalar-examples': optional(array(XCodeSample)),
28
71
  });
@@ -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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AAW,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,