@scalar/api-client 2.3.8 → 2.3.10

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 (97) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
  3. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  4. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  5. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +8 -8
  6. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  7. package/dist/components/ScalarHotkey.vue.d.ts +1 -1
  8. package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
  9. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
  10. package/dist/components/Server/ServerDropdownItem.vue.js +2 -2
  11. package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts +2 -0
  12. package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts.map +1 -0
  13. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  14. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +8 -8
  15. package/dist/layouts/App/create-api-client-app.d.ts +658 -473
  16. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  17. package/dist/layouts/Modal/create-api-client-modal.d.ts +1337 -967
  18. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  19. package/dist/layouts/Modal/create-api-client-modal.js +4 -4
  20. package/dist/layouts/Web/create-api-client-web.d.ts +658 -473
  21. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  22. package/dist/libs/create-client.d.ts +651 -466
  23. package/dist/libs/create-client.d.ts.map +1 -1
  24. package/dist/libs/create-client.js +18 -20
  25. package/dist/libs/find-request.d.ts +4 -4
  26. package/dist/libs/find-request.d.ts.map +1 -1
  27. package/dist/libs/hot-keys.d.ts +2 -2
  28. package/dist/libs/send-request/build-request-security.d.ts +2 -2
  29. package/dist/libs/send-request/create-request-operation.test.d.ts +49 -47
  30. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  31. package/dist/store/active-entities.d.ts +67 -61
  32. package/dist/store/active-entities.d.ts.map +1 -1
  33. package/dist/store/collections.d.ts +44 -34
  34. package/dist/store/collections.d.ts.map +1 -1
  35. package/dist/store/cookies.d.ts +18 -18
  36. package/dist/store/environment.d.ts +9 -9
  37. package/dist/store/import-spec.d.ts +154 -2
  38. package/dist/store/import-spec.d.ts.map +1 -1
  39. package/dist/store/request-example.d.ts +272 -272
  40. package/dist/store/request-example.d.ts.map +1 -1
  41. package/dist/store/requests.d.ts +44 -44
  42. package/dist/store/requests.d.ts.map +1 -1
  43. package/dist/store/security-schemes.d.ts +10 -10
  44. package/dist/store/security-schemes.d.ts.map +1 -1
  45. package/dist/store/servers.d.ts +50 -30
  46. package/dist/store/servers.d.ts.map +1 -1
  47. package/dist/store/store.d.ts +655 -470
  48. package/dist/store/store.d.ts.map +1 -1
  49. package/dist/store/tags.d.ts +10 -10
  50. package/dist/store/workspace.d.ts +44 -44
  51. package/dist/style.css +1 -1
  52. package/dist/views/Collection/CollectionAuthentication.vue.d.ts +1 -1
  53. package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
  54. package/dist/views/Collection/CollectionAuthentication.vue.js +5 -2
  55. package/dist/views/Collection/CollectionAuthentication.vue2.js +52 -11
  56. package/dist/views/Collection/CollectionNavigation.vue.js +34 -34
  57. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
  58. package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
  59. package/dist/views/Collection/CollectionSettings.vue.js +2 -2
  60. package/dist/views/Collection/CollectionSettings.vue2.js +1 -1
  61. package/dist/views/Request/Request.vue.d.ts +2 -0
  62. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  63. package/dist/views/Request/Request.vue.js +2 -2
  64. package/dist/views/Request/Request.vue2.js +71 -75
  65. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  66. package/dist/views/Request/RequestRoot.vue.js +1 -1
  67. package/dist/views/Request/RequestRoot.vue2.js +49 -46
  68. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  69. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +24 -24
  70. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +1 -1
  71. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  72. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
  73. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +1 -1
  74. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  75. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  76. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +1 -1
  77. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
  78. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
  79. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
  80. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  81. package/dist/views/Request/RequestSection/RequestSection.test.d.ts +2 -0
  82. package/dist/views/Request/RequestSection/RequestSection.test.d.ts.map +1 -0
  83. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
  84. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  85. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  86. package/dist/views/Request/RequestSection/RequestSection.vue2.js +26 -19
  87. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -1
  88. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  89. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  90. package/dist/views/Request/RequestSection/RequestTable.vue2.js +191 -193
  91. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  92. package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts +2 -0
  93. package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts.map +1 -0
  94. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  95. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
  96. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +50 -47
  97. package/package.json +13 -13
@@ -25,8 +25,8 @@ export type EnvVariable = {
25
25
  */
26
26
  export declare const createActiveEntitiesStore: ({ collections, requestExamples, requests, router, servers, workspaces, }: CreateActiveEntitiesStoreParams) => {
27
27
  activeCollection: import("vue").ComputedRef<{
28
- type: "collection";
29
28
  uid: string & import("zod").BRAND<"collection">;
29
+ type: "collection";
30
30
  children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
31
31
  openapi: string;
32
32
  info: {
@@ -54,6 +54,7 @@ export declare const createActiveEntitiesStore: ({ collections, requestExamples,
54
54
  requests: (string & import("zod").BRAND<"operation">)[];
55
55
  tags: (string & import("zod").BRAND<"tag">)[];
56
56
  watchMode: boolean;
57
+ useCollectionSecurity: boolean;
57
58
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
58
59
  externalDocs?: {
59
60
  url: string;
@@ -68,12 +69,12 @@ export declare const createActiveEntitiesStore: ({ collections, requestExamples,
68
69
  default: string;
69
70
  description?: string | undefined;
70
71
  }>;
71
- description?: string | undefined;
72
72
  color?: string | undefined;
73
+ description?: string | undefined;
73
74
  }> | undefined;
74
75
  'x-scalar-secrets'?: Record<string, {
75
- example?: string | undefined;
76
76
  description?: string | undefined;
77
+ example?: string | undefined;
77
78
  }> | undefined;
78
79
  selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
79
80
  documentUrl?: string | undefined;
@@ -81,9 +82,37 @@ export declare const createActiveEntitiesStore: ({ collections, requestExamples,
81
82
  } | undefined>;
82
83
  activeCookieId: import("vue").ComputedRef<string & import("zod").BRAND<"cookie">>;
83
84
  activeExample: import("vue").ComputedRef<{
84
- type: "requestExample";
85
85
  uid: string & import("zod").BRAND<"example">;
86
86
  name: string;
87
+ type: "requestExample";
88
+ body: {
89
+ activeBody: "formData" | "binary" | "raw";
90
+ formData?: {
91
+ value: {
92
+ value: string;
93
+ key: string;
94
+ enabled: boolean;
95
+ minimum?: number | undefined;
96
+ type?: string | string[] | undefined;
97
+ maximum?: number | undefined;
98
+ description?: string | undefined;
99
+ default?: any;
100
+ required?: boolean | undefined;
101
+ examples?: string[] | undefined;
102
+ format?: string | undefined;
103
+ enum?: string[] | undefined;
104
+ file?: any;
105
+ nullable?: boolean | undefined;
106
+ }[];
107
+ encoding: "form-data" | "urlencoded";
108
+ } | undefined;
109
+ binary?: Blob | undefined;
110
+ raw?: {
111
+ value: string;
112
+ encoding: "xml" | "json" | "text" | "html" | "javascript" | "yaml" | "edn";
113
+ mimeType?: string | undefined;
114
+ } | undefined;
115
+ };
87
116
  parameters: {
88
117
  path: {
89
118
  value: string;
@@ -92,99 +121,71 @@ export declare const createActiveEntitiesStore: ({ collections, requestExamples,
92
121
  minimum?: number | undefined;
93
122
  type?: string | string[] | undefined;
94
123
  maximum?: number | undefined;
124
+ description?: string | undefined;
95
125
  default?: any;
96
126
  required?: boolean | undefined;
97
- description?: string | undefined;
98
- enum?: string[] | undefined;
99
127
  examples?: string[] | undefined;
100
128
  format?: string | undefined;
129
+ enum?: string[] | undefined;
101
130
  file?: any;
102
131
  nullable?: boolean | undefined;
103
132
  }[];
104
- cookies: {
133
+ query: {
105
134
  value: string;
106
135
  key: string;
107
136
  enabled: boolean;
108
137
  minimum?: number | undefined;
109
138
  type?: string | string[] | undefined;
110
139
  maximum?: number | undefined;
140
+ description?: string | undefined;
111
141
  default?: any;
112
142
  required?: boolean | undefined;
113
- description?: string | undefined;
114
- enum?: string[] | undefined;
115
143
  examples?: string[] | undefined;
116
144
  format?: string | undefined;
145
+ enum?: string[] | undefined;
117
146
  file?: any;
118
147
  nullable?: boolean | undefined;
119
148
  }[];
120
- query: {
149
+ headers: {
121
150
  value: string;
122
151
  key: string;
123
152
  enabled: boolean;
124
153
  minimum?: number | undefined;
125
154
  type?: string | string[] | undefined;
126
155
  maximum?: number | undefined;
156
+ description?: string | undefined;
127
157
  default?: any;
128
158
  required?: boolean | undefined;
129
- description?: string | undefined;
130
- enum?: string[] | undefined;
131
159
  examples?: string[] | undefined;
132
160
  format?: string | undefined;
161
+ enum?: string[] | undefined;
133
162
  file?: any;
134
163
  nullable?: boolean | undefined;
135
164
  }[];
136
- headers: {
165
+ cookies: {
137
166
  value: string;
138
167
  key: string;
139
168
  enabled: boolean;
140
169
  minimum?: number | undefined;
141
170
  type?: string | string[] | undefined;
142
171
  maximum?: number | undefined;
172
+ description?: string | undefined;
143
173
  default?: any;
144
174
  required?: boolean | undefined;
145
- description?: string | undefined;
146
- enum?: string[] | undefined;
147
175
  examples?: string[] | undefined;
148
176
  format?: string | undefined;
177
+ enum?: string[] | undefined;
149
178
  file?: any;
150
179
  nullable?: boolean | undefined;
151
180
  }[];
152
181
  };
153
- body: {
154
- activeBody: "binary" | "formData" | "raw";
155
- binary?: Blob | undefined;
156
- formData?: {
157
- value: {
158
- value: string;
159
- key: string;
160
- enabled: boolean;
161
- minimum?: number | undefined;
162
- type?: string | string[] | undefined;
163
- maximum?: number | undefined;
164
- default?: any;
165
- required?: boolean | undefined;
166
- description?: string | undefined;
167
- enum?: string[] | undefined;
168
- examples?: string[] | undefined;
169
- format?: string | undefined;
170
- file?: any;
171
- nullable?: boolean | undefined;
172
- }[];
173
- encoding: "form-data" | "urlencoded";
174
- } | undefined;
175
- raw?: {
176
- value: string;
177
- encoding: "xml" | "json" | "text" | "html" | "javascript" | "yaml" | "edn";
178
- mimeType?: string | undefined;
179
- } | undefined;
180
- };
181
182
  requestUid?: (string & import("zod").BRAND<"operation">) | undefined;
182
183
  serverVariables?: Record<string, string[]> | undefined;
183
184
  } | undefined>;
184
185
  activeRequest: import("vue").ComputedRef<{
186
+ uid: string & import("zod").BRAND<"operation">;
185
187
  path: string;
186
188
  type: "request";
187
- uid: string & import("zod").BRAND<"operation">;
188
189
  selectedSecuritySchemeUids: ((string & import("zod").BRAND<"securityScheme">) | (string & import("zod").BRAND<"securityScheme">)[])[];
189
190
  selectedServerUid: (string & import("zod").BRAND<"server">) | null;
190
191
  servers: (string & import("zod").BRAND<"server">)[];
@@ -203,12 +204,12 @@ export declare const createActiveEntitiesStore: ({ collections, requestExamples,
203
204
  deprecated?: boolean | undefined;
204
205
  operationId?: string | undefined;
205
206
  parameters?: {
206
- required: boolean;
207
207
  name: string;
208
- in: "path" | "cookie" | "query" | "header";
208
+ required: boolean;
209
+ in: "cookie" | "path" | "query" | "header";
209
210
  deprecated: boolean;
210
- example?: unknown;
211
211
  description?: string | undefined;
212
+ example?: unknown;
212
213
  schema?: unknown;
213
214
  content?: unknown;
214
215
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
@@ -233,9 +234,9 @@ export declare const createActiveEntitiesStore: ({ collections, requestExamples,
233
234
  readonly settings: string;
234
235
  }>;
235
236
  activeEnvironment: import("vue").ComputedRef<{
236
- value: string;
237
237
  uid: string & import("zod").BRAND<"environment">;
238
238
  name: string;
239
+ value: string;
239
240
  color: string;
240
241
  isDefault?: boolean | undefined;
241
242
  }>;
@@ -243,36 +244,38 @@ export declare const createActiveEntitiesStore: ({ collections, requestExamples,
243
244
  uid: string & import("zod").BRAND<"server">;
244
245
  url: string;
245
246
  description?: string | undefined;
246
- variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
247
- enum?: [string, ...string[]];
248
- value?: string;
247
+ variables?: Record<string, {
248
+ value?: string | undefined;
249
+ description?: string | undefined;
250
+ default?: string | undefined;
251
+ enum?: string[] | undefined;
249
252
  }> | undefined;
250
253
  } | undefined>;
251
254
  activeWorkspace: import("vue").ComputedRef<{
252
255
  uid: string & import("zod").BRAND<"workspace">;
253
256
  name: string;
254
257
  description: string;
258
+ cookies: (string & import("zod").BRAND<"cookie">)[];
255
259
  collections: (string & import("zod").BRAND<"collection">)[];
256
260
  environments: Record<string, string>;
257
261
  activeEnvironmentId: string;
258
- cookies: (string & import("zod").BRAND<"cookie">)[];
259
262
  themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
260
263
  selectedHttpClient: {
261
264
  targetKey: string;
262
265
  clientKey: string;
263
266
  };
264
267
  hotKeyConfig?: {
265
- modifiers: ("Meta" | "Control" | "Shift" | "Alt" | "default")[];
266
- hotKeys?: Partial<Record<"" | "/" | "0" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "[" | "\\" | "]", {
268
+ modifiers: ("default" | "Meta" | "Control" | "Shift" | "Alt")[];
269
+ hotKeys?: Partial<Record<"" | "0" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "/" | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "[" | "\\" | "]", {
267
270
  event: "addTopNav" | "closeModal" | "closeTopNav" | "createNew" | "executeRequest" | "focusAddressBar" | "focusRequestSearch" | "jumpToLastTab" | "jumpToTab" | "navigateSearchResultsDown" | "navigateSearchResultsUp" | "navigateTopNavLeft" | "navigateTopNavRight" | "openCommandPalette" | "selectSearchResult" | "toggleSidebar";
268
- modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default")[] | undefined;
271
+ modifiers?: ("default" | "Meta" | "Control" | "Shift" | "Alt")[] | undefined;
269
272
  }>> | undefined;
270
273
  } | undefined;
271
274
  proxyUrl?: string | undefined;
272
275
  } | undefined>;
273
276
  activeWorkspaceCollections: import("vue").ComputedRef<{
274
- type: "collection";
275
277
  uid: string & import("zod").BRAND<"collection">;
278
+ type: "collection";
276
279
  children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
277
280
  openapi: string;
278
281
  info: {
@@ -300,6 +303,7 @@ export declare const createActiveEntitiesStore: ({ collections, requestExamples,
300
303
  requests: (string & import("zod").BRAND<"operation">)[];
301
304
  tags: (string & import("zod").BRAND<"tag">)[];
302
305
  watchMode: boolean;
306
+ useCollectionSecurity: boolean;
303
307
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
304
308
  externalDocs?: {
305
309
  url: string;
@@ -314,12 +318,12 @@ export declare const createActiveEntitiesStore: ({ collections, requestExamples,
314
318
  default: string;
315
319
  description?: string | undefined;
316
320
  }>;
317
- description?: string | undefined;
318
321
  color?: string | undefined;
322
+ description?: string | undefined;
319
323
  }> | undefined;
320
324
  'x-scalar-secrets'?: Record<string, {
321
- example?: string | undefined;
322
325
  description?: string | undefined;
326
+ example?: string | undefined;
323
327
  }> | undefined;
324
328
  selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
325
329
  documentUrl?: string | undefined;
@@ -329,9 +333,11 @@ export declare const createActiveEntitiesStore: ({ collections, requestExamples,
329
333
  uid: string & import("zod").BRAND<"server">;
330
334
  url: string;
331
335
  description?: string | undefined;
332
- variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
333
- enum?: [string, ...string[]];
334
- value?: string;
336
+ variables?: Record<string, {
337
+ value?: string | undefined;
338
+ description?: string | undefined;
339
+ default?: string | undefined;
340
+ enum?: string[] | undefined;
335
341
  }> | undefined;
336
342
  } | undefined)[]>;
337
343
  activeEnvVariables: import("vue").ComputedRef<EnvVariable[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"active-entities.d.ts","sourceRoot":"","sources":["../../src/store/active-entities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAC5F,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAClG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAErE,OAAO,EAAE,KAAK,YAAY,EAAoB,MAAM,KAAK,CAAA;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAGxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAE/D,KAAK,+BAA+B,GAAG;IACrC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;IACvC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IACzC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC/C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EA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65W,CAAC;mBAAqC,CAAC;0BAA4C,CAAC;mBAAqC,CAAC;oBAAoB,CAAC;mBAAqC,CAAC;qBAAuC,CAAC;;mBAA4D,CAAC;oBAAoB,CAAC;0BAAmD,CAAC;mBAAqC,CAAC;;;;;;;;;;;;;;;uBAA+jB,CAAC;;;;;;;;;2BAAuY,CAAC;;iBAA+C,CAAC;uBAAyC,CAAC;;;uBAAuG,CAAC;mBAAqC,CAAC;;;;;;;;;;;iBA/Cr6c,CAAC;uBACH,CAAC;mBAGd,CAAA;gBAAkC,CAAC;;;;;CAuBtC,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAC9E,eAAO,MAAM,sBAAsB,EAAe,YAAY,CAAC,mBAAmB,CAAC,CAAA;AAEnF;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,QAAO,mBAMpC,CAAA"}
@@ -4,8 +4,8 @@ import type { Workspace } from '@scalar/oas-utils/entities/workspace';
4
4
  /** Initiate the workspace collections */
5
5
  export declare function createStoreCollections(useLocalStorage: boolean): {
6
6
  collections: Record<string, {
7
- type: "collection";
8
7
  uid: string & import("zod").BRAND<"collection">;
8
+ type: "collection";
9
9
  children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
10
10
  openapi: string;
11
11
  info: {
@@ -33,6 +33,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
33
33
  requests: (string & import("zod").BRAND<"operation">)[];
34
34
  tags: (string & import("zod").BRAND<"tag">)[];
35
35
  watchMode: boolean;
36
+ useCollectionSecurity: boolean;
36
37
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
37
38
  externalDocs?: {
38
39
  url: string;
@@ -47,12 +48,12 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
47
48
  default: string;
48
49
  description?: string | undefined;
49
50
  }>;
50
- description?: string | undefined;
51
51
  color?: string | undefined;
52
+ description?: string | undefined;
52
53
  }> | undefined;
53
54
  'x-scalar-secrets'?: Record<string, {
54
- example?: string | undefined;
55
55
  description?: string | undefined;
56
+ example?: string | undefined;
56
57
  }> | undefined;
57
58
  selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
58
59
  documentUrl?: string | undefined;
@@ -60,8 +61,8 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
60
61
  }>;
61
62
  collectionMutators: {
62
63
  add: (item: {
63
- type: "collection";
64
64
  uid: string & import("zod").BRAND<"collection">;
65
+ type: "collection";
65
66
  children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
66
67
  openapi: string;
67
68
  info: {
@@ -89,6 +90,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
89
90
  requests: (string & import("zod").BRAND<"operation">)[];
90
91
  tags: (string & import("zod").BRAND<"tag">)[];
91
92
  watchMode: boolean;
93
+ useCollectionSecurity: boolean;
92
94
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
93
95
  externalDocs?: {
94
96
  url: string;
@@ -103,12 +105,12 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
103
105
  default: string;
104
106
  description?: string | undefined;
105
107
  }>;
106
- description?: string | undefined;
107
108
  color?: string | undefined;
109
+ description?: string | undefined;
108
110
  }> | undefined;
109
111
  'x-scalar-secrets'?: Record<string, {
110
- example?: string | undefined;
111
112
  description?: string | undefined;
113
+ example?: string | undefined;
112
114
  }> | undefined;
113
115
  selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
114
116
  documentUrl?: string | undefined;
@@ -116,8 +118,8 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
116
118
  }) => void;
117
119
  delete: (uid: (string & import("zod").BRAND<"collection">) | null | undefined) => void;
118
120
  set: (item: {
119
- type: "collection";
120
121
  uid: string & import("zod").BRAND<"collection">;
122
+ type: "collection";
121
123
  children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
122
124
  openapi: string;
123
125
  info: {
@@ -145,6 +147,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
145
147
  requests: (string & import("zod").BRAND<"operation">)[];
146
148
  tags: (string & import("zod").BRAND<"tag">)[];
147
149
  watchMode: boolean;
150
+ useCollectionSecurity: boolean;
148
151
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
149
152
  externalDocs?: {
150
153
  url: string;
@@ -159,20 +162,20 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
159
162
  default: string;
160
163
  description?: string | undefined;
161
164
  }>;
162
- description?: string | undefined;
163
165
  color?: string | undefined;
166
+ description?: string | undefined;
164
167
  }> | undefined;
165
168
  'x-scalar-secrets'?: Record<string, {
166
- example?: string | undefined;
167
169
  description?: string | undefined;
170
+ example?: string | undefined;
168
171
  }> | undefined;
169
172
  selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
170
173
  documentUrl?: string | undefined;
171
174
  integration?: string | null | undefined;
172
175
  }) => void;
173
- edit: <P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${number}` | "info.summary" | "info.description" | "info.title" | "info.version" | "info.termsOfService" | "info.contact" | "info.license" | "info.contact.name" | "info.contact.url" | "info.contact.email" | "info.license.name" | "info.license.url" | "info.license.identifier" | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | `servers.${number}` | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: (string & import("zod").BRAND<"collection">) | null | undefined, path: P, value: P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? {
174
- type: "collection";
176
+ edit: <P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "useCollectionSecurity" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${number}` | "info.summary" | "info.description" | "info.title" | "info.version" | "info.termsOfService" | "info.contact" | "info.license" | "info.contact.name" | "info.contact.url" | "info.contact.email" | "info.license.name" | "info.license.url" | "info.license.identifier" | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | `servers.${number}` | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: (string & import("zod").BRAND<"collection">) | null | undefined, path: P, value: P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "useCollectionSecurity" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? {
175
177
  uid: string & import("zod").BRAND<"collection">;
178
+ type: "collection";
176
179
  children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
177
180
  openapi: string;
178
181
  info: {
@@ -200,6 +203,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
200
203
  requests: (string & import("zod").BRAND<"operation">)[];
201
204
  tags: (string & import("zod").BRAND<"tag">)[];
202
205
  watchMode: boolean;
206
+ useCollectionSecurity: boolean;
203
207
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
204
208
  externalDocs?: {
205
209
  url: string;
@@ -214,19 +218,19 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
214
218
  default: string;
215
219
  description?: string | undefined;
216
220
  }>;
217
- description?: string | undefined;
218
221
  color?: string | undefined;
222
+ description?: string | undefined;
219
223
  }> | undefined;
220
224
  'x-scalar-secrets'?: Record<string, {
221
- example?: string | undefined;
222
225
  description?: string | undefined;
226
+ example?: string | undefined;
223
227
  }> | undefined;
224
228
  selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
225
229
  documentUrl?: string | undefined;
226
230
  integration?: string | null | undefined;
227
- }[P] : P extends `${infer K}.${infer R}` ? K extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? R extends import("@scalar/object-utils/nested").Path<{
228
- type: "collection";
231
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "useCollectionSecurity" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? R extends import("@scalar/object-utils/nested").Path<{
229
232
  uid: string & import("zod").BRAND<"collection">;
233
+ type: "collection";
230
234
  children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
231
235
  openapi: string;
232
236
  info: {
@@ -254,6 +258,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
254
258
  requests: (string & import("zod").BRAND<"operation">)[];
255
259
  tags: (string & import("zod").BRAND<"tag">)[];
256
260
  watchMode: boolean;
261
+ useCollectionSecurity: boolean;
257
262
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
258
263
  externalDocs?: {
259
264
  url: string;
@@ -268,19 +273,19 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
268
273
  default: string;
269
274
  description?: string | undefined;
270
275
  }>;
271
- description?: string | undefined;
272
276
  color?: string | undefined;
277
+ description?: string | undefined;
273
278
  }> | undefined;
274
279
  'x-scalar-secrets'?: Record<string, {
275
- example?: string | undefined;
276
280
  description?: string | undefined;
281
+ example?: string | undefined;
277
282
  }> | undefined;
278
283
  selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
279
284
  documentUrl?: string | undefined;
280
285
  integration?: string | null | undefined;
281
286
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
282
- type: "collection";
283
287
  uid: string & import("zod").BRAND<"collection">;
288
+ type: "collection";
284
289
  children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
285
290
  openapi: string;
286
291
  info: {
@@ -308,6 +313,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
308
313
  requests: (string & import("zod").BRAND<"operation">)[];
309
314
  tags: (string & import("zod").BRAND<"tag">)[];
310
315
  watchMode: boolean;
316
+ useCollectionSecurity: boolean;
311
317
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
312
318
  externalDocs?: {
313
319
  url: string;
@@ -322,20 +328,20 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
322
328
  default: string;
323
329
  description?: string | undefined;
324
330
  }>;
325
- description?: string | undefined;
326
331
  color?: string | undefined;
332
+ description?: string | undefined;
327
333
  }> | undefined;
328
334
  'x-scalar-secrets'?: Record<string, {
329
- example?: string | undefined;
330
335
  description?: string | undefined;
336
+ example?: string | undefined;
331
337
  }> | undefined;
332
338
  selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
333
339
  documentUrl?: string | undefined;
334
340
  integration?: string | null | undefined;
335
341
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
336
- untrackedEdit: <P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${number}` | "info.summary" | "info.description" | "info.title" | "info.version" | "info.termsOfService" | "info.contact" | "info.license" | "info.contact.name" | "info.contact.url" | "info.contact.email" | "info.license.name" | "info.license.url" | "info.license.identifier" | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | `servers.${number}` | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: string & import("zod").BRAND<"collection">, path: P, value: P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? {
337
- type: "collection";
342
+ untrackedEdit: <P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "useCollectionSecurity" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${number}` | "info.summary" | "info.description" | "info.title" | "info.version" | "info.termsOfService" | "info.contact" | "info.license" | "info.contact.name" | "info.contact.url" | "info.contact.email" | "info.license.name" | "info.license.url" | "info.license.identifier" | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | `servers.${number}` | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: string & import("zod").BRAND<"collection">, path: P, value: P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "useCollectionSecurity" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? {
338
343
  uid: string & import("zod").BRAND<"collection">;
344
+ type: "collection";
339
345
  children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
340
346
  openapi: string;
341
347
  info: {
@@ -363,6 +369,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
363
369
  requests: (string & import("zod").BRAND<"operation">)[];
364
370
  tags: (string & import("zod").BRAND<"tag">)[];
365
371
  watchMode: boolean;
372
+ useCollectionSecurity: boolean;
366
373
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
367
374
  externalDocs?: {
368
375
  url: string;
@@ -377,19 +384,19 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
377
384
  default: string;
378
385
  description?: string | undefined;
379
386
  }>;
380
- description?: string | undefined;
381
387
  color?: string | undefined;
388
+ description?: string | undefined;
382
389
  }> | undefined;
383
390
  'x-scalar-secrets'?: Record<string, {
384
- example?: string | undefined;
385
391
  description?: string | undefined;
392
+ example?: string | undefined;
386
393
  }> | undefined;
387
394
  selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
388
395
  documentUrl?: string | undefined;
389
396
  integration?: string | null | undefined;
390
- }[P] : P extends `${infer K}.${infer R}` ? K extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? R extends import("@scalar/object-utils/nested").Path<{
391
- type: "collection";
397
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "useCollectionSecurity" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? R extends import("@scalar/object-utils/nested").Path<{
392
398
  uid: string & import("zod").BRAND<"collection">;
399
+ type: "collection";
393
400
  children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
394
401
  openapi: string;
395
402
  info: {
@@ -417,6 +424,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
417
424
  requests: (string & import("zod").BRAND<"operation">)[];
418
425
  tags: (string & import("zod").BRAND<"tag">)[];
419
426
  watchMode: boolean;
427
+ useCollectionSecurity: boolean;
420
428
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
421
429
  externalDocs?: {
422
430
  url: string;
@@ -431,19 +439,19 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
431
439
  default: string;
432
440
  description?: string | undefined;
433
441
  }>;
434
- description?: string | undefined;
435
442
  color?: string | undefined;
443
+ description?: string | undefined;
436
444
  }> | undefined;
437
445
  'x-scalar-secrets'?: Record<string, {
438
- example?: string | undefined;
439
446
  description?: string | undefined;
447
+ example?: string | undefined;
440
448
  }> | undefined;
441
449
  selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
442
450
  documentUrl?: string | undefined;
443
451
  integration?: string | null | undefined;
444
452
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
445
- type: "collection";
446
453
  uid: string & import("zod").BRAND<"collection">;
454
+ type: "collection";
447
455
  children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
448
456
  openapi: string;
449
457
  info: {
@@ -471,6 +479,7 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
471
479
  requests: (string & import("zod").BRAND<"operation">)[];
472
480
  tags: (string & import("zod").BRAND<"tag">)[];
473
481
  watchMode: boolean;
482
+ useCollectionSecurity: boolean;
474
483
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
475
484
  externalDocs?: {
476
485
  url: string;
@@ -485,12 +494,12 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
485
494
  default: string;
486
495
  description?: string | undefined;
487
496
  }>;
488
- description?: string | undefined;
489
497
  color?: string | undefined;
498
+ description?: string | undefined;
490
499
  }> | undefined;
491
500
  'x-scalar-secrets'?: Record<string, {
492
- example?: string | undefined;
493
501
  description?: string | undefined;
502
+ example?: string | undefined;
494
503
  }> | undefined;
495
504
  selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
496
505
  documentUrl?: string | undefined;
@@ -504,8 +513,8 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
504
513
  /** Extended mutators and data for collections that required workspace access */
505
514
  export declare function extendedCollectionDataFactory({ requests, requestMutators, requestExamples, requestExampleMutators, workspaces, workspaceMutators, collections, collectionMutators, tagMutators, serverMutators, }: StoreContext): {
506
515
  addCollection: (payload: CollectionPayload, workspaceUid: Workspace["uid"]) => {
507
- type: "collection";
508
516
  uid: string & import("zod").BRAND<"collection">;
517
+ type: "collection";
509
518
  children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
510
519
  openapi: string;
511
520
  info: {
@@ -533,6 +542,7 @@ export declare function extendedCollectionDataFactory({ requests, requestMutator
533
542
  requests: (string & import("zod").BRAND<"operation">)[];
534
543
  tags: (string & import("zod").BRAND<"tag">)[];
535
544
  watchMode: boolean;
545
+ useCollectionSecurity: boolean;
536
546
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
537
547
  externalDocs?: {
538
548
  url: string;
@@ -547,12 +557,12 @@ export declare function extendedCollectionDataFactory({ requests, requestMutator
547
557
  default: string;
548
558
  description?: string | undefined;
549
559
  }>;
550
- description?: string | undefined;
551
560
  color?: string | undefined;
561
+ description?: string | undefined;
552
562
  }> | undefined;
553
563
  'x-scalar-secrets'?: Record<string, {
554
- example?: string | undefined;
555
564
  description?: string | undefined;
565
+ example?: string | undefined;
556
566
  }> | undefined;
557
567
  selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
558
568
  documentUrl?: string | undefined;