@scalar/workspace-store 0.15.7 → 0.16.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 (113) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/client.d.ts +1 -38
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +2 -5
  5. package/dist/client.js.map +2 -2
  6. package/dist/navigation/get-navigation-options.d.ts +9 -0
  7. package/dist/navigation/get-navigation-options.d.ts.map +1 -0
  8. package/dist/navigation/get-navigation-options.js +77 -0
  9. package/dist/navigation/get-navigation-options.js.map +7 -0
  10. package/dist/navigation/helpers/get-x-keys.d.ts +10 -0
  11. package/dist/navigation/helpers/get-x-keys.d.ts.map +1 -0
  12. package/dist/navigation/helpers/get-x-keys.js +10 -0
  13. package/dist/navigation/helpers/get-x-keys.js.map +7 -0
  14. package/dist/navigation/helpers/traverse-description.d.ts +3 -5
  15. package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
  16. package/dist/navigation/helpers/traverse-description.js +4 -5
  17. package/dist/navigation/helpers/traverse-description.js.map +2 -2
  18. package/dist/navigation/helpers/traverse-document.d.ts +121 -28
  19. package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
  20. package/dist/navigation/helpers/traverse-document.js +16 -21
  21. package/dist/navigation/helpers/traverse-document.js.map +2 -2
  22. package/dist/navigation/helpers/traverse-paths.d.ts +4 -5
  23. package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
  24. package/dist/navigation/helpers/traverse-paths.js +14 -7
  25. package/dist/navigation/helpers/traverse-paths.js.map +2 -2
  26. package/dist/navigation/helpers/traverse-schemas.d.ts +3 -6
  27. package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
  28. package/dist/navigation/helpers/traverse-schemas.js +7 -7
  29. package/dist/navigation/helpers/traverse-schemas.js.map +2 -2
  30. package/dist/navigation/helpers/traverse-tags.d.ts +2 -5
  31. package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
  32. package/dist/navigation/helpers/traverse-tags.js +16 -13
  33. package/dist/navigation/helpers/traverse-tags.js.map +2 -2
  34. package/dist/navigation/helpers/traverse-webhooks.d.ts +3 -6
  35. package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
  36. package/dist/navigation/helpers/traverse-webhooks.js +27 -7
  37. package/dist/navigation/helpers/traverse-webhooks.js.map +2 -2
  38. package/dist/navigation/index.d.ts +1 -0
  39. package/dist/navigation/index.d.ts.map +1 -1
  40. package/dist/navigation/index.js +2 -0
  41. package/dist/navigation/index.js.map +2 -2
  42. package/dist/navigation/types.d.ts +3 -4
  43. package/dist/navigation/types.d.ts.map +1 -1
  44. package/dist/schemas/extensions/operation/index.d.ts +2 -0
  45. package/dist/schemas/extensions/operation/index.d.ts.map +1 -0
  46. package/dist/schemas/extensions/operation/index.js +1 -0
  47. package/dist/schemas/extensions/operation/index.js.map +7 -0
  48. package/dist/schemas/extensions/operation/x-code-samples.d.ts +2 -0
  49. package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
  50. package/dist/schemas/extensions/operation/x-code-samples.js.map +2 -2
  51. package/dist/schemas/extensions/security/x-default-scopes.d.ts +17 -0
  52. package/dist/schemas/extensions/security/x-default-scopes.d.ts.map +1 -0
  53. package/dist/schemas/extensions/security/x-default-scopes.js +8 -0
  54. package/dist/schemas/extensions/security/x-default-scopes.js.map +7 -0
  55. package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts +6 -1
  56. package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts.map +1 -1
  57. package/dist/schemas/extensions/security/x-scalar-redirect-uri.js +1 -1
  58. package/dist/schemas/extensions/security/x-scalar-redirect-uri.js.map +2 -2
  59. package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts +27 -3
  60. package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts.map +1 -1
  61. package/dist/schemas/extensions/security/x-scalar-security-secrets.js +15 -3
  62. package/dist/schemas/extensions/security/x-scalar-security-secrets.js.map +2 -2
  63. package/dist/schemas/extensions/security/x-use-pkce.d.ts +1 -1
  64. package/dist/schemas/extensions/security/x-use-pkce.d.ts.map +1 -1
  65. package/dist/schemas/extensions/security/x-use-pkce.js +1 -3
  66. package/dist/schemas/extensions/security/x-use-pkce.js.map +2 -2
  67. package/dist/schemas/inmemory-workspace.d.ts +312 -134
  68. package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
  69. package/dist/schemas/navigation.d.ts +60 -128
  70. package/dist/schemas/navigation.d.ts.map +1 -1
  71. package/dist/schemas/navigation.js +40 -44
  72. package/dist/schemas/navigation.js.map +2 -2
  73. package/dist/schemas/reference-config/index.d.ts +156 -67
  74. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  75. package/dist/schemas/reference-config/settings.d.ts +156 -67
  76. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  77. package/dist/schemas/v3.1/strict/oauth-flow.d.ts +135 -24
  78. package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
  79. package/dist/schemas/v3.1/strict/oauth-flow.js +37 -15
  80. package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
  81. package/dist/schemas/v3.1/strict/oauthflows.d.ts +67 -12
  82. package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
  83. package/dist/schemas/v3.1/strict/openapi-document.d.ts +12434 -1877
  84. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  85. package/dist/schemas/v3.1/strict/openapi-document.js +32 -4
  86. package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
  87. package/dist/schemas/v3.1/strict/operation.d.ts +1 -0
  88. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  89. package/dist/schemas/v3.1/strict/operation.js +2 -1
  90. package/dist/schemas/v3.1/strict/operation.js.map +2 -2
  91. package/dist/schemas/v3.1/strict/ref-definitions.d.ts +8 -0
  92. package/dist/schemas/v3.1/strict/ref-definitions.d.ts.map +1 -1
  93. package/dist/schemas/v3.1/strict/ref-definitions.js +12 -1
  94. package/dist/schemas/v3.1/strict/ref-definitions.js.map +2 -2
  95. package/dist/schemas/v3.1/strict/schema.d.ts +2 -2
  96. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
  97. package/dist/schemas/v3.1/strict/schema.js +2 -44
  98. package/dist/schemas/v3.1/strict/schema.js.map +2 -2
  99. package/dist/schemas/v3.1/strict/security-scheme.d.ts +12 -8
  100. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
  101. package/dist/schemas/v3.1/strict/security-scheme.js +3 -1
  102. package/dist/schemas/v3.1/strict/security-scheme.js.map +2 -2
  103. package/dist/schemas/workspace-specification/config.d.ts +188 -67
  104. package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
  105. package/dist/schemas/workspace-specification/config.js.map +2 -2
  106. package/dist/schemas/workspace-specification/index.d.ts +156 -67
  107. package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
  108. package/dist/schemas/workspace.d.ts +1092 -469
  109. package/dist/schemas/workspace.d.ts.map +1 -1
  110. package/dist/server.d.ts +3 -4
  111. package/dist/server.d.ts.map +1 -1
  112. package/dist/server.js.map +2 -2
  113. package/package.json +13 -13
@@ -1 +1 @@
1
- {"version":3,"file":"inmemory-workspace.d.ts","sourceRoot":"","sources":["../../src/schemas/inmemory-workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AAOnD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAelC,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
@@ -1,154 +1,86 @@
1
- import { type Static } from '@scalar/typebox';
2
- export declare const NavigationBaseSchema: import("@scalar/typebox").TObject<{
3
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
1
+ import { type HttpMethod } from '@scalar/helpers/http/http-methods';
2
+ import { type TLiteral } from '@scalar/typebox';
3
+ export declare const NavigationBaseSchemaDefinition: import("@scalar/typebox").TObject<{
4
4
  id: import("@scalar/typebox").TString;
5
5
  title: import("@scalar/typebox").TString;
6
6
  }>;
7
- export declare const TraversedDescriptionSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
8
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
7
+ export declare const TraversedDescriptionSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
9
8
  id: import("@scalar/typebox").TString;
10
9
  title: import("@scalar/typebox").TString;
11
10
  }>, import("@scalar/typebox").TObject<{
12
- type: import("@scalar/typebox").TLiteral<"text">;
13
- children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
14
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
15
- id: import("@scalar/typebox").TString;
16
- title: import("@scalar/typebox").TString;
17
- }>>>;
11
+ type: TLiteral<"text">;
12
+ children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
18
13
  }>]>;
19
- export type TraversedDescription = Static<typeof TraversedDescriptionSchema>;
20
- export declare const TraversedOperationSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
21
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
14
+ export declare const TraversedOperationSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
22
15
  id: import("@scalar/typebox").TString;
23
16
  title: import("@scalar/typebox").TString;
24
17
  }>, import("@scalar/typebox").TObject<{
25
- type: import("@scalar/typebox").TLiteral<"operation">;
18
+ type: TLiteral<"operation">;
26
19
  ref: import("@scalar/typebox").TString;
27
- method: import("@scalar/typebox").TString;
20
+ method: TLiteral<HttpMethod>;
28
21
  path: import("@scalar/typebox").TString;
22
+ isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
29
23
  }>]>;
30
- export type TraversedOperation = Static<typeof TraversedOperationSchema>;
31
- export declare const TraversedSchemaSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
32
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
24
+ export declare const TraversedSchemaSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
33
25
  id: import("@scalar/typebox").TString;
34
26
  title: import("@scalar/typebox").TString;
35
27
  }>, import("@scalar/typebox").TObject<{
36
- type: import("@scalar/typebox").TLiteral<"model">;
28
+ type: TLiteral<"model">;
37
29
  ref: import("@scalar/typebox").TString;
38
30
  name: import("@scalar/typebox").TString;
39
31
  }>]>;
40
- export type TraversedSchema = Static<typeof TraversedSchemaSchema>;
41
- export declare const TraversedWebhookSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
42
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
32
+ export declare const TraversedWebhookSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
43
33
  id: import("@scalar/typebox").TString;
44
34
  title: import("@scalar/typebox").TString;
45
35
  }>, import("@scalar/typebox").TObject<{
46
- type: import("@scalar/typebox").TLiteral<"webhook">;
36
+ type: TLiteral<"webhook">;
47
37
  ref: import("@scalar/typebox").TString;
48
- method: import("@scalar/typebox").TString;
38
+ method: TLiteral<HttpMethod>;
49
39
  name: import("@scalar/typebox").TString;
40
+ isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
50
41
  }>]>;
51
- export type TraversedWebhook = Static<typeof TraversedWebhookSchema>;
52
- export declare const TraversedTagSchema: import("@scalar/typebox").TImport<{
53
- TraversedTagSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
54
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
55
- id: import("@scalar/typebox").TString;
56
- title: import("@scalar/typebox").TString;
57
- }>, import("@scalar/typebox").TObject<{
58
- type: import("@scalar/typebox").TLiteral<"tag">;
59
- name: import("@scalar/typebox").TString;
60
- children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntrySchema">>>;
61
- isGroup: import("@scalar/typebox").TBoolean;
62
- }>]>;
63
- TraversedEntrySchema: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"TraversedTagSchema">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
64
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
65
- id: import("@scalar/typebox").TString;
66
- title: import("@scalar/typebox").TString;
67
- }>, import("@scalar/typebox").TObject<{
68
- type: import("@scalar/typebox").TLiteral<"text">;
69
- children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
70
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
71
- id: import("@scalar/typebox").TString;
72
- title: import("@scalar/typebox").TString;
73
- }>>>;
74
- }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
75
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
76
- id: import("@scalar/typebox").TString;
77
- title: import("@scalar/typebox").TString;
78
- }>, import("@scalar/typebox").TObject<{
79
- type: import("@scalar/typebox").TLiteral<"operation">;
80
- ref: import("@scalar/typebox").TString;
81
- method: import("@scalar/typebox").TString;
82
- path: import("@scalar/typebox").TString;
83
- }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
84
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
85
- id: import("@scalar/typebox").TString;
86
- title: import("@scalar/typebox").TString;
87
- }>, import("@scalar/typebox").TObject<{
88
- type: import("@scalar/typebox").TLiteral<"model">;
89
- ref: import("@scalar/typebox").TString;
90
- name: import("@scalar/typebox").TString;
91
- }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
92
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
93
- id: import("@scalar/typebox").TString;
94
- title: import("@scalar/typebox").TString;
95
- }>, import("@scalar/typebox").TObject<{
96
- type: import("@scalar/typebox").TLiteral<"webhook">;
97
- ref: import("@scalar/typebox").TString;
98
- method: import("@scalar/typebox").TString;
99
- name: import("@scalar/typebox").TString;
100
- }>]>]>;
101
- }, "TraversedTagSchema">;
102
- export declare const TraversedEntrySchema: import("@scalar/typebox").TImport<{
103
- TraversedTagSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
104
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
105
- id: import("@scalar/typebox").TString;
106
- title: import("@scalar/typebox").TString;
107
- }>, import("@scalar/typebox").TObject<{
108
- type: import("@scalar/typebox").TLiteral<"tag">;
109
- name: import("@scalar/typebox").TString;
110
- children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntrySchema">>>;
111
- isGroup: import("@scalar/typebox").TBoolean;
112
- }>]>;
113
- TraversedEntrySchema: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"TraversedTagSchema">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
114
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
115
- id: import("@scalar/typebox").TString;
116
- title: import("@scalar/typebox").TString;
117
- }>, import("@scalar/typebox").TObject<{
118
- type: import("@scalar/typebox").TLiteral<"text">;
119
- children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
120
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
121
- id: import("@scalar/typebox").TString;
122
- title: import("@scalar/typebox").TString;
123
- }>>>;
124
- }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
125
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
126
- id: import("@scalar/typebox").TString;
127
- title: import("@scalar/typebox").TString;
128
- }>, import("@scalar/typebox").TObject<{
129
- type: import("@scalar/typebox").TLiteral<"operation">;
130
- ref: import("@scalar/typebox").TString;
131
- method: import("@scalar/typebox").TString;
132
- path: import("@scalar/typebox").TString;
133
- }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
134
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
135
- id: import("@scalar/typebox").TString;
136
- title: import("@scalar/typebox").TString;
137
- }>, import("@scalar/typebox").TObject<{
138
- type: import("@scalar/typebox").TLiteral<"model">;
139
- ref: import("@scalar/typebox").TString;
140
- name: import("@scalar/typebox").TString;
141
- }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
142
- type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
143
- id: import("@scalar/typebox").TString;
144
- title: import("@scalar/typebox").TString;
145
- }>, import("@scalar/typebox").TObject<{
146
- type: import("@scalar/typebox").TLiteral<"webhook">;
147
- ref: import("@scalar/typebox").TString;
148
- method: import("@scalar/typebox").TString;
149
- name: import("@scalar/typebox").TString;
150
- }>]>]>;
151
- }, "TraversedEntrySchema">;
152
- export type TraversedTag = Static<typeof TraversedTagSchema>;
153
- export type TraversedEntry = Static<typeof TraversedEntrySchema>;
42
+ export declare const TraversedTagSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
43
+ id: import("@scalar/typebox").TString;
44
+ title: import("@scalar/typebox").TString;
45
+ }>, import("@scalar/typebox").TObject<{
46
+ type: TLiteral<"tag">;
47
+ name: import("@scalar/typebox").TString;
48
+ description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
49
+ children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
50
+ isGroup: import("@scalar/typebox").TBoolean;
51
+ isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
52
+ xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
53
+ }>]>;
54
+ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"TraversedTagObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
55
+ id: import("@scalar/typebox").TString;
56
+ title: import("@scalar/typebox").TString;
57
+ }>, import("@scalar/typebox").TObject<{
58
+ type: TLiteral<"text">;
59
+ children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
60
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
61
+ id: import("@scalar/typebox").TString;
62
+ title: import("@scalar/typebox").TString;
63
+ }>, import("@scalar/typebox").TObject<{
64
+ type: TLiteral<"operation">;
65
+ ref: import("@scalar/typebox").TString;
66
+ method: TLiteral<HttpMethod>;
67
+ path: import("@scalar/typebox").TString;
68
+ isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
69
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
70
+ id: import("@scalar/typebox").TString;
71
+ title: import("@scalar/typebox").TString;
72
+ }>, import("@scalar/typebox").TObject<{
73
+ type: TLiteral<"model">;
74
+ ref: import("@scalar/typebox").TString;
75
+ name: import("@scalar/typebox").TString;
76
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
77
+ id: import("@scalar/typebox").TString;
78
+ title: import("@scalar/typebox").TString;
79
+ }>, import("@scalar/typebox").TObject<{
80
+ type: TLiteral<"webhook">;
81
+ ref: import("@scalar/typebox").TString;
82
+ method: TLiteral<HttpMethod>;
83
+ name: import("@scalar/typebox").TString;
84
+ isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
85
+ }>]>]>;
154
86
  //# sourceMappingURL=navigation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/schemas/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AAInD,eAAO,MAAM,oBAAoB;;;;EAU/B,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;IAMtC,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAE5E,eAAO,MAAM,wBAAwB;;;;;;;;;IAQpC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAExE,eAAO,MAAM,qBAAqB;;;;;;;;IAOjC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAElE,eAAO,MAAM,sBAAsB;;;;;;;;;IAQlC,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;AA4BpE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAAsC,CAAA;AACrE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAAwC,CAAA;AAEzE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAC5D,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
1
+ {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/schemas/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,mCAAmC,CAAA;AAChF,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,iBAAiB,CAAA;AAKrD,eAAO,MAAM,8BAA8B;;;EAGzC,CAAA;AAEF,eAAO,MAAM,oCAAoC;;;;;;IAMhD,CAAA;AAED,eAAO,MAAM,kCAAkC;;;;;;YAO3B,QAAQ,CAAC,UAAU,CAAC;;;IAIvC,CAAA;AAED,eAAO,MAAM,+BAA+B;;;;;;;IAO3C,CAAA;AAED,eAAO,MAAM,gCAAgC;;;;;;YAOzB,QAAQ,CAAC,UAAU,CAAC;;;IAIvC,CAAA;AAED,eAAO,MAAM,4BAA4B;;;;;;;;;;;IAWxC,CAAA;AAED,eAAO,MAAM,8BAA8B;;;;;;;;;;;;YAzCvB,QAAQ,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;YAsBpB,QAAQ,CAAC,UAAU,CAAC;;;MAyBtC,CAAA"}
@@ -1,80 +1,76 @@
1
+ import { httpMethods } from "@scalar/helpers/http/http-methods";
1
2
  import { Type } from "@scalar/typebox";
2
3
  import { compose } from "../schemas/compose.js";
3
- const NavigationBaseSchema = Type.Object({
4
- type: Type.Union([
5
- Type.Literal("text"),
6
- Type.Literal("operation"),
7
- Type.Literal("model"),
8
- Type.Literal("tag"),
9
- Type.Literal("webhook")
10
- ]),
4
+ import { TraversedEntryObjectRef, TraversedTagObjectRef } from "../schemas/v3.1/strict/ref-definitions.js";
5
+ const NavigationBaseSchemaDefinition = Type.Object({
11
6
  id: Type.String(),
12
7
  title: Type.String()
13
8
  });
14
- const TraversedDescriptionSchema = compose(
15
- NavigationBaseSchema,
9
+ const TraversedDescriptionSchemaDefinition = compose(
10
+ NavigationBaseSchemaDefinition,
16
11
  Type.Object({
17
12
  type: Type.Literal("text"),
18
- children: Type.Optional(Type.Array(NavigationBaseSchema))
13
+ children: Type.Optional(Type.Array(TraversedEntryObjectRef))
19
14
  })
20
15
  );
21
- const TraversedOperationSchema = compose(
22
- NavigationBaseSchema,
16
+ const TraversedOperationSchemaDefinition = compose(
17
+ NavigationBaseSchemaDefinition,
23
18
  Type.Object({
24
19
  type: Type.Literal("operation"),
25
20
  ref: Type.String(),
26
- method: Type.String(),
27
- path: Type.String()
21
+ method: Type.Union(
22
+ Array.from(httpMethods.keys()).map((method) => Type.Literal(method))
23
+ ),
24
+ path: Type.String(),
25
+ isDeprecated: Type.Optional(Type.Boolean())
28
26
  })
29
27
  );
30
- const TraversedSchemaSchema = compose(
31
- NavigationBaseSchema,
28
+ const TraversedSchemaSchemaDefinition = compose(
29
+ NavigationBaseSchemaDefinition,
32
30
  Type.Object({
33
31
  type: Type.Literal("model"),
34
32
  ref: Type.String(),
35
33
  name: Type.String()
36
34
  })
37
35
  );
38
- const TraversedWebhookSchema = compose(
39
- NavigationBaseSchema,
36
+ const TraversedWebhookSchemaDefinition = compose(
37
+ NavigationBaseSchemaDefinition,
40
38
  Type.Object({
41
39
  type: Type.Literal("webhook"),
42
40
  ref: Type.String(),
43
- method: Type.String(),
44
- name: Type.String()
41
+ method: Type.Union(
42
+ Array.from(httpMethods.keys()).map((method) => Type.Literal(method))
43
+ ),
44
+ name: Type.String(),
45
+ isDeprecated: Type.Optional(Type.Boolean())
45
46
  })
46
47
  );
47
- const TraversedEntryRef = Type.Ref("TraversedEntrySchema");
48
- const TraversedTagRef = Type.Ref("TraversedTagSchema");
49
48
  const TraversedTagSchemaDefinition = compose(
50
- NavigationBaseSchema,
49
+ NavigationBaseSchemaDefinition,
51
50
  Type.Object({
52
51
  type: Type.Literal("tag"),
53
52
  name: Type.String(),
54
- children: Type.Optional(Type.Array(TraversedEntryRef)),
55
- isGroup: Type.Boolean()
53
+ description: Type.Optional(Type.String()),
54
+ children: Type.Optional(Type.Array(TraversedEntryObjectRef)),
55
+ isGroup: Type.Boolean(),
56
+ isWebhooks: Type.Optional(Type.Boolean()),
57
+ xKeys: Type.Optional(Type.Record(Type.String(), Type.Unknown()))
56
58
  })
57
59
  );
58
60
  const TraversedEntrySchemaDefinition = Type.Union([
59
- TraversedTagRef,
60
- TraversedDescriptionSchema,
61
- TraversedOperationSchema,
62
- TraversedSchemaSchema,
63
- TraversedWebhookSchema
61
+ TraversedTagObjectRef,
62
+ TraversedDescriptionSchemaDefinition,
63
+ TraversedOperationSchemaDefinition,
64
+ TraversedSchemaSchemaDefinition,
65
+ TraversedWebhookSchemaDefinition
64
66
  ]);
65
- const module = Type.Module({
66
- TraversedTagSchema: TraversedTagSchemaDefinition,
67
- TraversedEntrySchema: TraversedEntrySchemaDefinition
68
- });
69
- const TraversedTagSchema = module.Import("TraversedTagSchema");
70
- const TraversedEntrySchema = module.Import("TraversedEntrySchema");
71
67
  export {
72
- NavigationBaseSchema,
73
- TraversedDescriptionSchema,
74
- TraversedEntrySchema,
75
- TraversedOperationSchema,
76
- TraversedSchemaSchema,
77
- TraversedTagSchema,
78
- TraversedWebhookSchema
68
+ NavigationBaseSchemaDefinition,
69
+ TraversedDescriptionSchemaDefinition,
70
+ TraversedEntrySchemaDefinition,
71
+ TraversedOperationSchemaDefinition,
72
+ TraversedSchemaSchemaDefinition,
73
+ TraversedTagSchemaDefinition,
74
+ TraversedWebhookSchemaDefinition
79
75
  };
80
76
  //# sourceMappingURL=navigation.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/schemas/navigation.ts"],
4
- "sourcesContent": ["import { type Static, Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\n\nexport const NavigationBaseSchema = Type.Object({\n type: Type.Union([\n Type.Literal('text'),\n Type.Literal('operation'),\n Type.Literal('model'),\n Type.Literal('tag'),\n Type.Literal('webhook'),\n ]),\n id: Type.String(),\n title: Type.String(),\n})\n\nexport const TraversedDescriptionSchema = compose(\n NavigationBaseSchema,\n Type.Object({\n type: Type.Literal('text'),\n children: Type.Optional(Type.Array(NavigationBaseSchema)),\n }),\n)\n\nexport type TraversedDescription = Static<typeof TraversedDescriptionSchema>\n\nexport const TraversedOperationSchema = compose(\n NavigationBaseSchema,\n Type.Object({\n type: Type.Literal('operation'),\n ref: Type.String(),\n method: Type.String(),\n path: Type.String(),\n }),\n)\n\nexport type TraversedOperation = Static<typeof TraversedOperationSchema>\n\nexport const TraversedSchemaSchema = compose(\n NavigationBaseSchema,\n Type.Object({\n type: Type.Literal('model'),\n ref: Type.String(),\n name: Type.String(),\n }),\n)\n\nexport type TraversedSchema = Static<typeof TraversedSchemaSchema>\n\nexport const TraversedWebhookSchema = compose(\n NavigationBaseSchema,\n Type.Object({\n type: Type.Literal('webhook'),\n ref: Type.String(),\n method: Type.String(),\n name: Type.String(),\n }),\n)\n\nexport type TraversedWebhook = Static<typeof TraversedWebhookSchema>\n\nconst TraversedEntryRef = Type.Ref('TraversedEntrySchema')\nconst TraversedTagRef = Type.Ref('TraversedTagSchema')\n\nconst TraversedTagSchemaDefinition = compose(\n NavigationBaseSchema,\n Type.Object({\n type: Type.Literal('tag'),\n name: Type.String(),\n children: Type.Optional(Type.Array(TraversedEntryRef)),\n isGroup: Type.Boolean(),\n }),\n)\n\nconst TraversedEntrySchemaDefinition = Type.Union([\n TraversedTagRef,\n TraversedDescriptionSchema,\n TraversedOperationSchema,\n TraversedSchemaSchema,\n TraversedWebhookSchema,\n])\n\nconst module = Type.Module({\n TraversedTagSchema: TraversedTagSchemaDefinition,\n TraversedEntrySchema: TraversedEntrySchemaDefinition,\n})\n\nexport const TraversedTagSchema = module.Import('TraversedTagSchema')\nexport const TraversedEntrySchema = module.Import('TraversedEntrySchema')\n\nexport type TraversedTag = Static<typeof TraversedTagSchema>\nexport type TraversedEntry = Static<typeof TraversedEntrySchema>\n"],
5
- "mappings": "AAAA,SAAsB,YAAY;AAElC,SAAS,eAAe;AAEjB,MAAM,uBAAuB,KAAK,OAAO;AAAA,EAC9C,MAAM,KAAK,MAAM;AAAA,IACf,KAAK,QAAQ,MAAM;AAAA,IACnB,KAAK,QAAQ,WAAW;AAAA,IACxB,KAAK,QAAQ,OAAO;AAAA,IACpB,KAAK,QAAQ,KAAK;AAAA,IAClB,KAAK,QAAQ,SAAS;AAAA,EACxB,CAAC;AAAA,EACD,IAAI,KAAK,O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SAAS,KAAK,OAAO;AAAA,EACzB,oBAAoB;AAAA,EACpB,sBAAsB;AACxB,CAAC;AAEM,MAAM,qBAAqB,OAAO,OAAO,oBAAoB;AAC7D,MAAM,uBAAuB,OAAO,OAAO,sBAAsB;",
4
+ "sourcesContent": ["import { type HttpMethod, httpMethods } from '@scalar/helpers/http/http-methods'\nimport { type TLiteral, Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { TraversedEntryObjectRef, TraversedTagObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\n\nexport const NavigationBaseSchemaDefinition = Type.Object({\n id: Type.String(),\n title: Type.String(),\n})\n\nexport const TraversedDescriptionSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('text'),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n\nexport const TraversedOperationSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('operation'),\n ref: Type.String(),\n method: Type.Union(\n Array.from(httpMethods.keys()).map((method) => Type.Literal(method)),\n ) as unknown as TLiteral<HttpMethod>,\n path: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n }),\n)\n\nexport const TraversedSchemaSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('model'),\n ref: Type.String(),\n name: Type.String(),\n }),\n)\n\nexport const TraversedWebhookSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('webhook'),\n ref: Type.String(),\n method: Type.Union(\n Array.from(httpMethods.keys()).map((method) => Type.Literal(method)),\n ) as unknown as TLiteral<HttpMethod>,\n name: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n }),\n)\n\nexport const TraversedTagSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('tag'),\n name: Type.String(),\n description: Type.Optional(Type.String()),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n isGroup: Type.Boolean(),\n isWebhooks: Type.Optional(Type.Boolean()),\n xKeys: Type.Optional(Type.Record(Type.String(), Type.Unknown())),\n }),\n)\n\nexport const TraversedEntrySchemaDefinition = Type.Union([\n TraversedTagObjectRef,\n TraversedDescriptionSchemaDefinition,\n TraversedOperationSchemaDefinition,\n TraversedSchemaSchemaDefinition,\n TraversedWebhookSchemaDefinition,\n])\n"],
5
+ "mappings": "AAAA,SAA0B,mBAAmB;AAC7C,SAAwB,YAAY;AAEpC,SAAS,eAAe;AACxB,SAAS,yBAAyB,6BAA6B;AAExD,MAAM,iCAAiC,KAAK,OAAO;AAAA,EACxD,IAAI,KAAK,OAAO;AAAA,EAChB,OAAO,KAAK,OAAO;AACrB,CAAC;AAEM,MAAM,uCAAuC;AAAA,EAClD;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,MAAM;AAAA,IACzB,UAAU,KAAK,SAAS,KAAK,MAAM,uBAAuB,CAAC;AAAA,EAC7D,CAAC;AACH;AAEO,MAAM,qCAAqC;AAAA,EAChD;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,WAAW;AAAA,IAC9B,KAAK,KAAK,OAAO;AAAA,IACjB,QAAQ,KAAK;AAAA,MACX,MAAM,KAAK,YAAY,KAAK,CAAC,EAAE,IAAI,CAAC,WAAW,KAAK,QAAQ,MAAM,CAAC;AAAA,IACrE;AAAA,IACA,MAAM,KAAK,OAAO;AAAA,IAClB,cAAc,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,EAC5C,CAAC;AACH;AAEO,MAAM,kCAAkC;AAAA,EAC7C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,OAAO;AAAA,IAC1B,KAAK,KAAK,OAAO;AAAA,IACjB,MAAM,KAAK,OAAO;AAAA,EACpB,CAAC;AACH;AAEO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,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