@globus/sdk 5.8.0 → 6.0.0-rc.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 (201) hide show
  1. package/README.md +8 -15
  2. package/dist/cjs/core/authorization/index.js +142 -18
  3. package/dist/cjs/core/authorization/index.js.map +3 -3
  4. package/dist/cjs/index.js +450 -148
  5. package/dist/cjs/index.js.map +4 -4
  6. package/dist/cjs/services/globus-connect-server/client.js +2 -2
  7. package/dist/cjs/services/globus-connect-server/client.js.map +3 -3
  8. package/dist/esm/apps/web.d.ts +1 -1
  9. package/dist/esm/apps/web.d.ts.map +1 -1
  10. package/dist/esm/core/authorization/AuthorizationManager.d.ts +14 -8
  11. package/dist/esm/core/authorization/AuthorizationManager.d.ts.map +1 -1
  12. package/dist/esm/core/authorization/AuthorizationManager.js +13 -5
  13. package/dist/esm/core/authorization/AuthorizationManager.js.map +1 -1
  14. package/dist/esm/core/authorization/PopupTransport.d.ts +25 -0
  15. package/dist/esm/core/authorization/PopupTransport.d.ts.map +1 -0
  16. package/dist/esm/core/authorization/PopupTransport.js +161 -0
  17. package/dist/esm/core/authorization/PopupTransport.js.map +1 -0
  18. package/dist/esm/core/authorization/RedirectTransport.d.ts +4 -10
  19. package/dist/esm/core/authorization/RedirectTransport.d.ts.map +1 -1
  20. package/dist/esm/core/authorization/RedirectTransport.js +6 -17
  21. package/dist/esm/core/authorization/RedirectTransport.js.map +1 -1
  22. package/dist/esm/core/authorization/TokenManager.js +1 -1
  23. package/dist/esm/core/authorization/TokenManager.js.map +1 -1
  24. package/dist/esm/core/authorization/pkce.d.ts +15 -0
  25. package/dist/esm/core/authorization/pkce.d.ts.map +1 -1
  26. package/dist/esm/core/authorization/pkce.js +18 -0
  27. package/dist/esm/core/authorization/pkce.js.map +1 -1
  28. package/dist/esm/core/global.d.ts +1 -1
  29. package/dist/esm/core/global.d.ts.map +1 -1
  30. package/dist/esm/core/global.js +3 -3
  31. package/dist/esm/core/global.js.map +1 -1
  32. package/dist/esm/index.d.ts +1 -1
  33. package/dist/esm/index.d.ts.map +1 -1
  34. package/dist/esm/index.js +1 -5
  35. package/dist/esm/index.js.map +1 -1
  36. package/dist/esm/open-api/types/compute.d.ts +3759 -0
  37. package/dist/esm/open-api/types/compute.d.ts.map +1 -0
  38. package/dist/esm/open-api/types/compute.js +2 -0
  39. package/dist/esm/open-api/types/compute.js.map +1 -0
  40. package/dist/esm/open-api/types/flows.d.ts +2540 -0
  41. package/dist/esm/open-api/types/flows.d.ts.map +1 -0
  42. package/dist/esm/open-api/types/flows.js +6 -0
  43. package/dist/esm/open-api/types/flows.js.map +1 -0
  44. package/dist/esm/open-api/types/gcs/v5.4.d.ts +12052 -0
  45. package/dist/esm/open-api/types/gcs/v5.4.d.ts.map +1 -0
  46. package/dist/esm/open-api/types/gcs/v5.4.js +2 -0
  47. package/dist/esm/open-api/types/gcs/v5.4.js.map +1 -0
  48. package/dist/esm/open-api/types/groups.d.ts +2382 -0
  49. package/dist/esm/open-api/types/groups.d.ts.map +1 -0
  50. package/dist/esm/open-api/types/groups.js +2 -0
  51. package/dist/esm/open-api/types/groups.js.map +1 -0
  52. package/dist/esm/open-api/types/search.d.ts +2215 -0
  53. package/dist/esm/open-api/types/search.d.ts.map +1 -0
  54. package/dist/esm/open-api/types/search.js +2 -0
  55. package/dist/esm/open-api/types/search.js.map +1 -0
  56. package/dist/esm/open-api/types/timer.d.ts +942 -0
  57. package/dist/esm/open-api/types/timer.d.ts.map +1 -0
  58. package/dist/esm/open-api/types/timer.js +2 -0
  59. package/dist/esm/open-api/types/timer.js.map +1 -0
  60. package/dist/esm/open-api/types/timers.d.ts +942 -0
  61. package/dist/esm/open-api/types/timers.d.ts.map +1 -0
  62. package/dist/esm/open-api/types/timers.js +2 -0
  63. package/dist/esm/open-api/types/timers.js.map +1 -0
  64. package/dist/esm/package.json +1 -1
  65. package/dist/esm/services/auth/config.d.ts +1 -1
  66. package/dist/esm/services/auth/config.js +2 -2
  67. package/dist/esm/services/auth/config.js.map +1 -1
  68. package/dist/esm/services/auth/index.d.ts +1 -0
  69. package/dist/esm/services/auth/index.d.ts.map +1 -1
  70. package/dist/esm/services/auth/index.js.map +1 -1
  71. package/dist/esm/services/auth/utils.d.ts +1 -1
  72. package/dist/esm/services/auth/utils.d.ts.map +1 -1
  73. package/dist/esm/services/compute/index.d.ts +1 -0
  74. package/dist/esm/services/compute/index.d.ts.map +1 -1
  75. package/dist/esm/services/compute/index.js.map +1 -1
  76. package/dist/esm/services/compute/service/endpoints.d.ts +34 -5
  77. package/dist/esm/services/compute/service/endpoints.d.ts.map +1 -1
  78. package/dist/esm/services/compute/service/endpoints.js +31 -0
  79. package/dist/esm/services/compute/service/endpoints.js.map +1 -1
  80. package/dist/esm/services/flows/index.d.ts +1 -0
  81. package/dist/esm/services/flows/index.d.ts.map +1 -1
  82. package/dist/esm/services/flows/index.js.map +1 -1
  83. package/dist/esm/services/flows/service/flows.d.ts +12 -77
  84. package/dist/esm/services/flows/service/flows.d.ts.map +1 -1
  85. package/dist/esm/services/flows/service/flows.js.map +1 -1
  86. package/dist/esm/services/flows/service/runs.d.ts +13 -0
  87. package/dist/esm/services/flows/service/runs.d.ts.map +1 -1
  88. package/dist/esm/services/flows/service/runs.js +11 -0
  89. package/dist/esm/services/flows/service/runs.js.map +1 -1
  90. package/dist/esm/services/globus-connect-server/client.d.ts +646 -261
  91. package/dist/esm/services/globus-connect-server/client.d.ts.map +1 -1
  92. package/dist/esm/services/globus-connect-server/index.d.ts +1 -0
  93. package/dist/esm/services/globus-connect-server/index.d.ts.map +1 -1
  94. package/dist/esm/services/globus-connect-server/index.js.map +1 -1
  95. package/dist/esm/services/globus-connect-server/service/collections.d.ts +40 -40
  96. package/dist/esm/services/globus-connect-server/service/collections.d.ts.map +1 -1
  97. package/dist/esm/services/globus-connect-server/service/collections.js.map +1 -1
  98. package/dist/esm/services/globus-connect-server/service/endpoint.d.ts +35 -35
  99. package/dist/esm/services/globus-connect-server/service/endpoint.d.ts.map +1 -1
  100. package/dist/esm/services/globus-connect-server/service/endpoint.js.map +1 -1
  101. package/dist/esm/services/globus-connect-server/service/nodes.d.ts +30 -30
  102. package/dist/esm/services/globus-connect-server/service/nodes.d.ts.map +1 -1
  103. package/dist/esm/services/globus-connect-server/service/nodes.js.map +1 -1
  104. package/dist/esm/services/globus-connect-server/service/roles.d.ts +20 -20
  105. package/dist/esm/services/globus-connect-server/service/roles.d.ts.map +1 -1
  106. package/dist/esm/services/globus-connect-server/service/roles.js.map +1 -1
  107. package/dist/esm/services/globus-connect-server/service/storage-gateways.d.ts +31 -31
  108. package/dist/esm/services/globus-connect-server/service/storage-gateways.d.ts.map +1 -1
  109. package/dist/esm/services/globus-connect-server/service/storage-gateways.js.map +1 -1
  110. package/dist/esm/services/globus-connect-server/service/user-credentials.d.ts +30 -30
  111. package/dist/esm/services/globus-connect-server/service/user-credentials.d.ts.map +1 -1
  112. package/dist/esm/services/globus-connect-server/service/user-credentials.js.map +1 -1
  113. package/dist/esm/services/globus-connect-server/service/versioning.d.ts +6 -6
  114. package/dist/esm/services/globus-connect-server/service/versioning.d.ts.map +1 -1
  115. package/dist/esm/services/globus-connect-server/service/versioning.js.map +1 -1
  116. package/dist/esm/services/groups/index.d.ts +1 -0
  117. package/dist/esm/services/groups/index.d.ts.map +1 -1
  118. package/dist/esm/services/groups/index.js.map +1 -1
  119. package/dist/esm/services/groups/service/groups.d.ts +5 -5
  120. package/dist/esm/services/groups/service/groups.d.ts.map +1 -1
  121. package/dist/esm/services/groups/service/groups.js.map +1 -1
  122. package/dist/esm/services/groups/service/membership.d.ts +3 -3
  123. package/dist/esm/services/groups/service/membership.d.ts.map +1 -1
  124. package/dist/esm/services/groups/service/membership.js.map +1 -1
  125. package/dist/esm/services/groups/service/policies.d.ts +2 -2
  126. package/dist/esm/services/groups/service/policies.d.ts.map +1 -1
  127. package/dist/esm/services/groups/service/policies.js.map +1 -1
  128. package/dist/esm/services/search/index.d.ts +2 -0
  129. package/dist/esm/services/search/index.d.ts.map +1 -1
  130. package/dist/esm/services/search/index.js.map +1 -1
  131. package/dist/esm/services/shared.d.ts +1 -0
  132. package/dist/esm/services/shared.d.ts.map +1 -1
  133. package/dist/esm/services/shared.js.map +1 -1
  134. package/dist/esm/services/timer/index.d.ts +1 -0
  135. package/dist/esm/services/timer/index.d.ts.map +1 -1
  136. package/dist/esm/services/timer/index.js.map +1 -1
  137. package/dist/esm/services/timer/service/timer.d.ts +28 -2
  138. package/dist/esm/services/timer/service/timer.d.ts.map +1 -1
  139. package/dist/esm/services/timer/service/timer.js.map +1 -1
  140. package/dist/esm/services/timers/config.d.ts +4 -0
  141. package/dist/esm/services/timers/config.d.ts.map +1 -0
  142. package/dist/esm/services/timers/config.js +10 -0
  143. package/dist/esm/services/timers/config.js.map +1 -0
  144. package/dist/esm/services/timers/index.d.ts +16 -0
  145. package/dist/esm/services/timers/index.d.ts.map +1 -0
  146. package/dist/esm/services/timers/index.js +15 -0
  147. package/dist/esm/services/timers/index.js.map +1 -0
  148. package/dist/esm/services/timers/service/jobs/index.d.ts +62 -0
  149. package/dist/esm/services/timers/service/jobs/index.d.ts.map +1 -0
  150. package/dist/esm/services/timers/service/jobs/index.js +70 -0
  151. package/dist/esm/services/timers/service/jobs/index.js.map +1 -0
  152. package/dist/esm/services/timers/service/timer.d.ts +31 -0
  153. package/dist/esm/services/timers/service/timer.d.ts.map +1 -0
  154. package/dist/esm/services/timers/service/timer.js +12 -0
  155. package/dist/esm/services/timers/service/timer.js.map +1 -0
  156. package/dist/esm/services/transfer/index.d.ts +2 -0
  157. package/dist/esm/services/transfer/index.d.ts.map +1 -1
  158. package/dist/esm/services/transfer/index.js +1 -0
  159. package/dist/esm/services/transfer/index.js.map +1 -1
  160. package/dist/esm/services/transfer/service/access.d.ts +35 -12
  161. package/dist/esm/services/transfer/service/access.d.ts.map +1 -1
  162. package/dist/esm/services/transfer/service/access.js +5 -5
  163. package/dist/esm/services/transfer/service/access.js.map +1 -1
  164. package/dist/esm/services/transfer/service/collection-bookmarks.d.ts +20 -6
  165. package/dist/esm/services/transfer/service/collection-bookmarks.d.ts.map +1 -1
  166. package/dist/esm/services/transfer/service/collection-bookmarks.js.map +1 -1
  167. package/dist/esm/services/transfer/service/endpoint-manager/endpoint.d.ts +11 -9
  168. package/dist/esm/services/transfer/service/endpoint-manager/endpoint.d.ts.map +1 -1
  169. package/dist/esm/services/transfer/service/endpoint-manager/endpoint.js.map +1 -1
  170. package/dist/esm/services/transfer/service/endpoint-manager/pause-rule.d.ts +28 -6
  171. package/dist/esm/services/transfer/service/endpoint-manager/pause-rule.d.ts.map +1 -1
  172. package/dist/esm/services/transfer/service/endpoint-manager/pause-rule.js.map +1 -1
  173. package/dist/esm/services/transfer/service/endpoint-manager/task.d.ts +100 -22
  174. package/dist/esm/services/transfer/service/endpoint-manager/task.d.ts.map +1 -1
  175. package/dist/esm/services/transfer/service/endpoint-manager/task.js +1 -1
  176. package/dist/esm/services/transfer/service/endpoint-manager/task.js.map +1 -1
  177. package/dist/esm/services/transfer/service/endpoint-search.d.ts +19 -12
  178. package/dist/esm/services/transfer/service/endpoint-search.d.ts.map +1 -1
  179. package/dist/esm/services/transfer/service/endpoint-search.js +2 -11
  180. package/dist/esm/services/transfer/service/endpoint-search.js.map +1 -1
  181. package/dist/esm/services/transfer/service/endpoint.d.ts +257 -9
  182. package/dist/esm/services/transfer/service/endpoint.d.ts.map +1 -1
  183. package/dist/esm/services/transfer/service/endpoint.js.map +1 -1
  184. package/dist/esm/services/transfer/service/file-operations.d.ts +22 -6
  185. package/dist/esm/services/transfer/service/file-operations.d.ts.map +1 -1
  186. package/dist/esm/services/transfer/service/file-operations.js.map +1 -1
  187. package/dist/esm/services/transfer/service/roles.d.ts +75 -0
  188. package/dist/esm/services/transfer/service/roles.d.ts.map +1 -0
  189. package/dist/esm/services/transfer/service/roles.js +49 -0
  190. package/dist/esm/services/transfer/service/roles.js.map +1 -0
  191. package/dist/esm/services/transfer/service/task-submission.d.ts +84 -3
  192. package/dist/esm/services/transfer/service/task-submission.d.ts.map +1 -1
  193. package/dist/esm/services/transfer/service/task-submission.js.map +1 -1
  194. package/dist/esm/services/transfer/service/task.d.ts +162 -16
  195. package/dist/esm/services/transfer/service/task.d.ts.map +1 -1
  196. package/dist/esm/services/transfer/service/task.js.map +1 -1
  197. package/dist/esm/services/transfer/types.d.ts +79 -343
  198. package/dist/esm/services/transfer/types.d.ts.map +1 -1
  199. package/dist/umd/globus.production.js +2 -2
  200. package/dist/umd/globus.production.js.map +4 -4
  201. package/package.json +10 -17
@@ -0,0 +1,2215 @@
1
+ export interface paths {
2
+ "/v1/index/{index_id}/search": {
3
+ parameters: {
4
+ query?: never;
5
+ header?: never;
6
+ path?: never;
7
+ cookie?: never;
8
+ };
9
+ /**
10
+ * Search Query
11
+ * @description Takes a GET request and parses the query from (url-encoded) query parameters.
12
+ * Returns query results.
13
+ *
14
+ * The results can be paginated with limit+offset up to the boundary of 10,000 results.
15
+ */
16
+ get: {
17
+ parameters: {
18
+ query: {
19
+ q: string;
20
+ limit?: number;
21
+ advanced?: boolean;
22
+ /** @description Set to true to allow this operation to return data with visibility which does not include the current user. Only allowed for index admins and owners. */
23
+ bypass_visible_to?: boolean;
24
+ filter_principal_sets?: string[];
25
+ offset?: number;
26
+ };
27
+ header?: never;
28
+ path: {
29
+ index_id: string;
30
+ };
31
+ cookie?: never;
32
+ };
33
+ requestBody?: never;
34
+ responses: {
35
+ /** @description
36
+ * A Search Result document.
37
+ *
38
+ * The offset, count, total, and has_next_page fields are computed based on the
39
+ * number of results which were matched and which results were returned by the
40
+ * search.
41
+ * As long as `has_next_page` is True, you can add the count of results to the offset
42
+ * of a prior query to fetch another page of results.
43
+ * */
44
+ 200: {
45
+ headers: {
46
+ [name: string]: unknown;
47
+ };
48
+ content: {
49
+ "application/json": components["schemas"]["GSearchResult"];
50
+ };
51
+ };
52
+ };
53
+ };
54
+ put?: never;
55
+ /**
56
+ * Complex Search Query
57
+ * @description Takes a POST request and parses the query from the request body.
58
+ * The search may include advanced filtering criteria, facets (aggregations), field
59
+ * weights (boosts), and sorting criteria.
60
+ *
61
+ * The results can be paginated with limit+offset up to the boundary of 10,000 results.
62
+ */
63
+ post: {
64
+ parameters: {
65
+ query?: never;
66
+ header?: never;
67
+ path: {
68
+ index_id: string;
69
+ };
70
+ cookie?: never;
71
+ };
72
+ requestBody?: {
73
+ content: {
74
+ "application/json": components["schemas"]["GSearchRequestBody"];
75
+ };
76
+ };
77
+ responses: {
78
+ /** @description
79
+ * A Search Result document.
80
+ *
81
+ * The offset, count, total, and has_next_page fields are computed based on the
82
+ * number of results which were matched and which results were returned by the
83
+ * search.
84
+ * As long as `has_next_page` is True, you can add the count of results to the offset
85
+ * of a prior query to fetch another page of results.
86
+ * */
87
+ 200: {
88
+ headers: {
89
+ [name: string]: unknown;
90
+ };
91
+ content: {
92
+ "application/json": components["schemas"]["GSearchResult"];
93
+ };
94
+ };
95
+ };
96
+ };
97
+ delete?: never;
98
+ options?: never;
99
+ head?: never;
100
+ patch?: never;
101
+ trace?: never;
102
+ };
103
+ "/v1/index/{index_id}/scroll": {
104
+ parameters: {
105
+ query?: never;
106
+ header?: never;
107
+ path?: never;
108
+ cookie?: never;
109
+ };
110
+ get?: never;
111
+ put?: never;
112
+ /**
113
+ * Scroll Query
114
+ * @description Scrolling is similar to a complex post query, but is intended for collecting all
115
+ * results matching a search.
116
+ *
117
+ * Scroll queries use marker+has_next_page for pagination and have no pagination limit.
118
+ */
119
+ post: {
120
+ parameters: {
121
+ query?: never;
122
+ header?: never;
123
+ path: {
124
+ index_id: string;
125
+ };
126
+ cookie?: never;
127
+ };
128
+ requestBody?: {
129
+ content: {
130
+ "application/json": components["schemas"]["GScrollRequest"];
131
+ };
132
+ };
133
+ responses: {
134
+ /** @description
135
+ * A Scroll Result document.
136
+ *
137
+ * This is nearly identical to a Search Result, but includes the `marker` parameter.
138
+ * `marker` is an opaque token which can be used on subsequent requests for pagination.
139
+ *
140
+ * NOTE: In rare cases, `has_next_page` may be True until an empty page of results is
141
+ * reached.
142
+ * */
143
+ 200: {
144
+ headers: {
145
+ [name: string]: unknown;
146
+ };
147
+ content: {
148
+ "application/json": components["schemas"]["GScrollResponse"];
149
+ };
150
+ };
151
+ };
152
+ };
153
+ delete?: never;
154
+ options?: never;
155
+ head?: never;
156
+ patch?: never;
157
+ trace?: never;
158
+ };
159
+ "/v1/index/{index_id}/ingest": {
160
+ parameters: {
161
+ query?: never;
162
+ header?: never;
163
+ path?: never;
164
+ cookie?: never;
165
+ };
166
+ get?: never;
167
+ put?: never;
168
+ /**
169
+ * Ingest
170
+ * @description Create or update a single document or a collection of documents.
171
+ * This submits an asynchronous task and returns the task ID.
172
+ *
173
+ * It is possible for ingest to fail immediately with a non-200 response, but a 200 Ok
174
+ * does not indicate that the task will succeed. It just means it was accepted for
175
+ * processing. The status of the resulting task will be given by the state of the task.
176
+ *
177
+ * Use Get Task to monitor tasks after submission.
178
+ */
179
+ post: {
180
+ parameters: {
181
+ query?: never;
182
+ header?: never;
183
+ path: {
184
+ index_id: string;
185
+ };
186
+ cookie?: never;
187
+ };
188
+ requestBody?: {
189
+ content: {
190
+ "application/json": components["schemas"]["GIngest"];
191
+ };
192
+ };
193
+ responses: {
194
+ /** @description A Task Submission response */
195
+ 200: {
196
+ headers: {
197
+ [name: string]: unknown;
198
+ };
199
+ content: {
200
+ "application/json": components["schemas"]["TaskSubmitResponse"];
201
+ };
202
+ };
203
+ };
204
+ };
205
+ delete?: never;
206
+ options?: never;
207
+ head?: never;
208
+ patch?: never;
209
+ trace?: never;
210
+ };
211
+ "/v1/task/{task_id}": {
212
+ parameters: {
213
+ query?: never;
214
+ header?: never;
215
+ path?: never;
216
+ cookie?: never;
217
+ };
218
+ /**
219
+ * Get Task
220
+ * @description Lookup a Task by ID.
221
+ */
222
+ get: {
223
+ parameters: {
224
+ query?: never;
225
+ header?: never;
226
+ path: {
227
+ task_id: string;
228
+ };
229
+ cookie?: never;
230
+ };
231
+ requestBody?: never;
232
+ responses: {
233
+ 200: {
234
+ headers: {
235
+ [name: string]: unknown;
236
+ };
237
+ content: {
238
+ "application/json": components["schemas"]["Task"];
239
+ };
240
+ };
241
+ };
242
+ };
243
+ put?: never;
244
+ post?: never;
245
+ delete?: never;
246
+ options?: never;
247
+ head?: never;
248
+ patch?: never;
249
+ trace?: never;
250
+ };
251
+ "/v1/task_list/{index_id}": {
252
+ parameters: {
253
+ query?: never;
254
+ header?: never;
255
+ path?: never;
256
+ cookie?: never;
257
+ };
258
+ /**
259
+ * Task List
260
+ * @description List up to 1000 of the most recent tasks for an index.
261
+ */
262
+ get: {
263
+ parameters: {
264
+ query?: never;
265
+ header?: never;
266
+ path: {
267
+ index_id: string;
268
+ };
269
+ cookie?: never;
270
+ };
271
+ requestBody?: never;
272
+ responses: {
273
+ 200: {
274
+ headers: {
275
+ [name: string]: unknown;
276
+ };
277
+ content: {
278
+ "application/json": components["schemas"]["TaskList"];
279
+ };
280
+ };
281
+ };
282
+ };
283
+ put?: never;
284
+ post?: never;
285
+ delete?: never;
286
+ options?: never;
287
+ head?: never;
288
+ patch?: never;
289
+ trace?: never;
290
+ };
291
+ "/v1/index/{index_id}/entry": {
292
+ parameters: {
293
+ query?: never;
294
+ header?: never;
295
+ path?: never;
296
+ cookie?: never;
297
+ };
298
+ /**
299
+ * Get Entry
300
+ * @description Lookup a specific entry by ID.
301
+ */
302
+ get: {
303
+ parameters: {
304
+ query: {
305
+ /** @description The subject for this entry */
306
+ subject: string;
307
+ /** @description The entry ID for this entry. The default entry ID is null */
308
+ entry_id?: string | null;
309
+ /** @description Set to true to allow this operation to return data with visibility which does not include the current user. Only allowed for index admins and owners. */
310
+ bypass_visible_to?: boolean;
311
+ };
312
+ header?: never;
313
+ path: {
314
+ index_id: string;
315
+ };
316
+ cookie?: never;
317
+ };
318
+ requestBody?: never;
319
+ responses: {
320
+ 200: {
321
+ headers: {
322
+ [name: string]: unknown;
323
+ };
324
+ content: {
325
+ "application/json": components["schemas"]["GMetaResult"];
326
+ };
327
+ };
328
+ };
329
+ };
330
+ /**
331
+ * Upsert Entry
332
+ * @description Create or update a single entry.
333
+ * This is just a wrapper around Ingest.
334
+ */
335
+ put: {
336
+ parameters: {
337
+ query?: never;
338
+ header?: never;
339
+ path: {
340
+ index_id: string;
341
+ };
342
+ cookie?: never;
343
+ };
344
+ requestBody?: {
345
+ content: {
346
+ "application/json": components["schemas"]["GMetaEntry"];
347
+ };
348
+ };
349
+ responses: {
350
+ /** @description A Task Submission response */
351
+ 200: {
352
+ headers: {
353
+ [name: string]: unknown;
354
+ };
355
+ content: {
356
+ "application/json": components["schemas"]["TaskSubmitResponse"];
357
+ };
358
+ };
359
+ };
360
+ };
361
+ /**
362
+ * Upsert Entry
363
+ * @description Create or update a single entry.
364
+ * This is just a wrapper around Ingest.
365
+ */
366
+ post: {
367
+ parameters: {
368
+ query?: never;
369
+ header?: never;
370
+ path: {
371
+ index_id: string;
372
+ };
373
+ cookie?: never;
374
+ };
375
+ requestBody?: {
376
+ content: {
377
+ "application/json": components["schemas"]["GMetaEntry"];
378
+ };
379
+ };
380
+ responses: {
381
+ /** @description A Task Submission response */
382
+ 200: {
383
+ headers: {
384
+ [name: string]: unknown;
385
+ };
386
+ content: {
387
+ "application/json": components["schemas"]["TaskSubmitResponse"];
388
+ };
389
+ };
390
+ };
391
+ };
392
+ /**
393
+ * Delete Entry
394
+ * @description Delete a specific entry by ID.
395
+ */
396
+ delete: {
397
+ parameters: {
398
+ query: {
399
+ /** @description The subject for this entry */
400
+ subject: string;
401
+ /** @description The entry ID for this entry. The default entry ID is null */
402
+ entry_id?: string | null;
403
+ };
404
+ header?: never;
405
+ path: {
406
+ index_id: string;
407
+ };
408
+ cookie?: never;
409
+ };
410
+ requestBody?: never;
411
+ responses: {
412
+ /** @description A Task Submission response */
413
+ 200: {
414
+ headers: {
415
+ [name: string]: unknown;
416
+ };
417
+ content: {
418
+ "application/json": components["schemas"]["TaskSubmitResponse"];
419
+ };
420
+ };
421
+ };
422
+ };
423
+ options?: never;
424
+ head?: never;
425
+ patch?: never;
426
+ trace?: never;
427
+ };
428
+ "/v1/index/{index_id}": {
429
+ parameters: {
430
+ query?: never;
431
+ header?: never;
432
+ path?: never;
433
+ cookie?: never;
434
+ };
435
+ /**
436
+ * Index Info
437
+ * @description Lookup descriptive information about an index.
438
+ */
439
+ get: {
440
+ parameters: {
441
+ query?: never;
442
+ header?: never;
443
+ path: {
444
+ index_id: string;
445
+ };
446
+ cookie?: never;
447
+ };
448
+ requestBody?: never;
449
+ responses: {
450
+ 200: {
451
+ headers: {
452
+ [name: string]: unknown;
453
+ };
454
+ content: {
455
+ "application/json": components["schemas"]["IndexWithPermissions"];
456
+ };
457
+ };
458
+ };
459
+ };
460
+ put?: never;
461
+ post?: never;
462
+ /**
463
+ * Index Delete
464
+ * @description Delete an Index.
465
+ * This operation is not instantaneous, but marks the index for deletion by
466
+ * putting it into the 'delete-pending' state.
467
+ * Once all active tasks have been cancelled and the index is safe to clean up,
468
+ * it will be deleted.
469
+ *
470
+ * If an index is non-trial, the deletion will wait for 30 days.
471
+ * During that time, the index will not be usable, except for the
472
+ * `POST /v1/index/<index_id>/reopen` operation, which cancels the deletion.
473
+ */
474
+ delete: {
475
+ parameters: {
476
+ query?: never;
477
+ header?: never;
478
+ path: {
479
+ index_id: string;
480
+ };
481
+ cookie?: never;
482
+ };
483
+ requestBody?: never;
484
+ responses: {
485
+ /** @description An index deletion response */
486
+ 200: {
487
+ headers: {
488
+ [name: string]: unknown;
489
+ };
490
+ content: {
491
+ "application/json": components["schemas"]["IndexDeleteResponse"];
492
+ };
493
+ };
494
+ };
495
+ };
496
+ options?: never;
497
+ head?: never;
498
+ patch?: never;
499
+ trace?: never;
500
+ };
501
+ "/v1/index_list": {
502
+ parameters: {
503
+ query?: never;
504
+ header?: never;
505
+ path?: never;
506
+ cookie?: never;
507
+ };
508
+ /**
509
+ * Index List
510
+ * @description Lookup descriptive information about all indices on which you have write or admin
511
+ * permissions. Returns a list of at most 100 such indices.
512
+ *
513
+ * The indices will be annotated with a list of permissions which the current user has
514
+ * on the indices.
515
+ *
516
+ * By default, all indices where the user has a role are included in the results.
517
+ * To filter to a subset of roles, pass the `filter_roles` query parameter.
518
+ */
519
+ get: {
520
+ parameters: {
521
+ query?: {
522
+ filter_roles?: ("owner" | "admin" | "writer")[];
523
+ };
524
+ header?: never;
525
+ path?: never;
526
+ cookie?: never;
527
+ };
528
+ requestBody?: never;
529
+ responses: {
530
+ 200: {
531
+ headers: {
532
+ [name: string]: unknown;
533
+ };
534
+ content: {
535
+ "application/json": components["schemas"]["IndexListWPermissions"];
536
+ };
537
+ };
538
+ };
539
+ };
540
+ put?: never;
541
+ post?: never;
542
+ delete?: never;
543
+ options?: never;
544
+ head?: never;
545
+ patch?: never;
546
+ trace?: never;
547
+ };
548
+ "/v1/index": {
549
+ parameters: {
550
+ query?: never;
551
+ header?: never;
552
+ path?: never;
553
+ cookie?: never;
554
+ };
555
+ get?: never;
556
+ put?: never;
557
+ /**
558
+ * Index Create
559
+ * @description Create a new Index. You will automatically be assigned as an 'owner' on the
560
+ * resulting index.
561
+ *
562
+ * New indices have `is_trial=true` when they are created. Users are limited
563
+ * in the number of trial indices they may own -- so the operation may fail if
564
+ * you already own a trial index.
565
+ */
566
+ post: {
567
+ parameters: {
568
+ query?: never;
569
+ header?: never;
570
+ path?: never;
571
+ cookie?: never;
572
+ };
573
+ requestBody?: {
574
+ content: {
575
+ "application/json": components["schemas"]["IndexCreate"];
576
+ };
577
+ };
578
+ responses: {
579
+ 200: {
580
+ headers: {
581
+ [name: string]: unknown;
582
+ };
583
+ content: {
584
+ "application/json": components["schemas"]["IndexInfo"];
585
+ };
586
+ };
587
+ };
588
+ };
589
+ delete?: never;
590
+ options?: never;
591
+ head?: never;
592
+ patch?: never;
593
+ trace?: never;
594
+ };
595
+ "/v1/index/{index_id}/reopen": {
596
+ parameters: {
597
+ query?: never;
598
+ header?: never;
599
+ path?: never;
600
+ cookie?: never;
601
+ };
602
+ get?: never;
603
+ put?: never;
604
+ /**
605
+ * Index Reopen
606
+ * @description On an index which has a status of `delete-pending`, reopen that index and
607
+ * change its status to `open`. This operation is a special case of index
608
+ * update and requires 'owner' permissions on the index.
609
+ *
610
+ * Reopening an index is valid on trial and non-trial indices, but trial indices
611
+ * may be deleted at any time after their deletion.
612
+ * Therefore, this API is most useful for cancelling the deletion of a non-trial index.
613
+ */
614
+ post: {
615
+ parameters: {
616
+ query?: never;
617
+ header?: never;
618
+ path: {
619
+ index_id: string;
620
+ };
621
+ cookie?: never;
622
+ };
623
+ requestBody?: never;
624
+ responses: {
625
+ /** @description An index reopen response */
626
+ 200: {
627
+ headers: {
628
+ [name: string]: unknown;
629
+ };
630
+ content: {
631
+ "application/json": components["schemas"]["IndexReopenResponse"];
632
+ };
633
+ };
634
+ };
635
+ };
636
+ delete?: never;
637
+ options?: never;
638
+ head?: never;
639
+ patch?: never;
640
+ trace?: never;
641
+ };
642
+ "/v1/index/{index_id}/role_list": {
643
+ parameters: {
644
+ query?: never;
645
+ header?: never;
646
+ path?: never;
647
+ cookie?: never;
648
+ };
649
+ /**
650
+ * Role List
651
+ * @description List all roles on an index. In order to list roles, you must have the
652
+ * 'admin' or 'owner' role on an index.
653
+ */
654
+ get: {
655
+ parameters: {
656
+ query?: never;
657
+ header?: never;
658
+ path: {
659
+ index_id: string;
660
+ };
661
+ cookie?: never;
662
+ };
663
+ requestBody?: never;
664
+ responses: {
665
+ 200: {
666
+ headers: {
667
+ [name: string]: unknown;
668
+ };
669
+ content: {
670
+ "application/json": components["schemas"]["RoleList"];
671
+ };
672
+ };
673
+ };
674
+ };
675
+ put?: never;
676
+ post?: never;
677
+ delete?: never;
678
+ options?: never;
679
+ head?: never;
680
+ patch?: never;
681
+ trace?: never;
682
+ };
683
+ "/v1/index/{index_id}/role": {
684
+ parameters: {
685
+ query?: never;
686
+ header?: never;
687
+ path?: never;
688
+ cookie?: never;
689
+ };
690
+ get?: never;
691
+ put?: never;
692
+ /**
693
+ * Role Create
694
+ * @description Create a new Role on an index. In order to create a role, you must already
695
+ * have the 'admin' or 'owner' role. Only owners can create other owners.
696
+ */
697
+ post: {
698
+ parameters: {
699
+ query?: never;
700
+ header?: never;
701
+ path: {
702
+ index_id: string;
703
+ };
704
+ cookie?: never;
705
+ };
706
+ requestBody?: {
707
+ content: {
708
+ "application/json": components["schemas"]["RoleCreate"];
709
+ };
710
+ };
711
+ responses: {
712
+ 200: {
713
+ headers: {
714
+ [name: string]: unknown;
715
+ };
716
+ content: {
717
+ "application/json": components["schemas"]["Role"];
718
+ };
719
+ };
720
+ };
721
+ };
722
+ delete?: never;
723
+ options?: never;
724
+ head?: never;
725
+ patch?: never;
726
+ trace?: never;
727
+ };
728
+ "/v1/index/{index_id}/role/{role_id}": {
729
+ parameters: {
730
+ query?: never;
731
+ header?: never;
732
+ path?: never;
733
+ cookie?: never;
734
+ };
735
+ get?: never;
736
+ put?: never;
737
+ post?: never;
738
+ /**
739
+ * Role Delete
740
+ * @description Delete a Role on an index. In order to delete a role, you must have the
741
+ * 'admin' or 'owner' role. Unlike role creation, admin users can delete owner
742
+ * roles.
743
+ *
744
+ * The last owner role on an index cannot be deleted -- there is always at
745
+ * least one owner.
746
+ */
747
+ delete: {
748
+ parameters: {
749
+ query?: never;
750
+ header?: never;
751
+ path: {
752
+ index_id: string;
753
+ role_id: string;
754
+ };
755
+ cookie?: never;
756
+ };
757
+ requestBody?: never;
758
+ responses: {
759
+ 200: {
760
+ headers: {
761
+ [name: string]: unknown;
762
+ };
763
+ content: {
764
+ "application/json": components["schemas"]["DeletedRole"];
765
+ };
766
+ };
767
+ };
768
+ };
769
+ options?: never;
770
+ head?: never;
771
+ patch?: never;
772
+ trace?: never;
773
+ };
774
+ "/v1/index/{index_id}/batch_delete_by_subject": {
775
+ parameters: {
776
+ query?: never;
777
+ header?: never;
778
+ path?: never;
779
+ cookie?: never;
780
+ };
781
+ get?: never;
782
+ put?: never;
783
+ /**
784
+ * Delete By Subject
785
+ * @description Delete the document with the given Subject(s).
786
+ */
787
+ post: {
788
+ parameters: {
789
+ query?: never;
790
+ header?: never;
791
+ path: {
792
+ index_id: string;
793
+ };
794
+ cookie?: never;
795
+ };
796
+ requestBody?: {
797
+ content: {
798
+ "application/json": components["schemas"]["DeleteBySubjectRequest"];
799
+ };
800
+ };
801
+ responses: {
802
+ /** @description A Task Submission response */
803
+ 200: {
804
+ headers: {
805
+ [name: string]: unknown;
806
+ };
807
+ content: {
808
+ "application/json": components["schemas"]["TaskSubmitResponse"];
809
+ };
810
+ };
811
+ };
812
+ };
813
+ delete?: never;
814
+ options?: never;
815
+ head?: never;
816
+ patch?: never;
817
+ trace?: never;
818
+ };
819
+ "/v1/index/{index_id}/subject": {
820
+ parameters: {
821
+ query?: never;
822
+ header?: never;
823
+ path?: never;
824
+ cookie?: never;
825
+ };
826
+ /**
827
+ * Get Subject
828
+ * @description Lookup the document for a given Subject.
829
+ */
830
+ get: {
831
+ parameters: {
832
+ query: {
833
+ /** @description The subject for this operation */
834
+ subject: string;
835
+ /** @description Set to true to allow this operation to return data with visibility which does not include the current user. Only allowed for index admins and owners. */
836
+ bypass_visible_to?: boolean;
837
+ };
838
+ header?: never;
839
+ path: {
840
+ index_id: string;
841
+ };
842
+ cookie?: never;
843
+ };
844
+ requestBody?: never;
845
+ responses: {
846
+ 200: {
847
+ headers: {
848
+ [name: string]: unknown;
849
+ };
850
+ content: {
851
+ "application/json": components["schemas"]["GMetaResult"];
852
+ };
853
+ };
854
+ };
855
+ };
856
+ put?: never;
857
+ post?: never;
858
+ /**
859
+ * Delete Subject
860
+ * @description Delete the document with the given Subject.
861
+ */
862
+ delete: {
863
+ parameters: {
864
+ query: {
865
+ /** @description The subject for this operation */
866
+ subject: string;
867
+ };
868
+ header?: never;
869
+ path: {
870
+ index_id: string;
871
+ };
872
+ cookie?: never;
873
+ };
874
+ requestBody?: never;
875
+ responses: {
876
+ /** @description A Task Submission response */
877
+ 200: {
878
+ headers: {
879
+ [name: string]: unknown;
880
+ };
881
+ content: {
882
+ "application/json": components["schemas"]["TaskSubmitResponse"];
883
+ };
884
+ };
885
+ };
886
+ };
887
+ options?: never;
888
+ head?: never;
889
+ patch?: never;
890
+ trace?: never;
891
+ };
892
+ "/v1/index/{index_id}/delete_by_query": {
893
+ parameters: {
894
+ query?: never;
895
+ header?: never;
896
+ path?: never;
897
+ cookie?: never;
898
+ };
899
+ get?: never;
900
+ put?: never;
901
+ /**
902
+ * Delete By Query
903
+ * @description Delete all documents in an index matching a given query.
904
+ * Boost, sort, limit, offset, and facet parameters are allowed but will be ignored.
905
+ */
906
+ post: {
907
+ parameters: {
908
+ query?: never;
909
+ header?: never;
910
+ path: {
911
+ index_id: string;
912
+ };
913
+ cookie?: never;
914
+ };
915
+ requestBody?: {
916
+ content: {
917
+ "application/json": components["schemas"]["DeleteByQuery"];
918
+ };
919
+ };
920
+ responses: {
921
+ /** @description A Task Submission response */
922
+ 200: {
923
+ headers: {
924
+ [name: string]: unknown;
925
+ };
926
+ content: {
927
+ "application/json": components["schemas"]["TaskSubmitResponse"];
928
+ };
929
+ };
930
+ };
931
+ };
932
+ delete?: never;
933
+ options?: never;
934
+ head?: never;
935
+ patch?: never;
936
+ trace?: never;
937
+ };
938
+ "/beta/index/{index_id}/mapping/{field_name}": {
939
+ parameters: {
940
+ query?: never;
941
+ header?: never;
942
+ path?: never;
943
+ cookie?: never;
944
+ };
945
+ /**
946
+ * [BETA] Get Field Mapping
947
+ * @description Lookup the mapped type for a specific field in an index.
948
+ * The `mappings` object will contain only one field.
949
+ *
950
+ * Requires a `writer`, `admin`, or `owner` role on the index.
951
+ */
952
+ get: {
953
+ parameters: {
954
+ query?: never;
955
+ header?: never;
956
+ path: {
957
+ index_id: string;
958
+ field_name: string;
959
+ };
960
+ cookie?: never;
961
+ };
962
+ requestBody?: never;
963
+ responses: {
964
+ /** @description Field to type mapping. */
965
+ 200: {
966
+ headers: {
967
+ [name: string]: unknown;
968
+ };
969
+ content: {
970
+ "application/json": components["schemas"]["UGFieldMappings"];
971
+ };
972
+ };
973
+ };
974
+ };
975
+ put?: never;
976
+ post?: never;
977
+ delete?: never;
978
+ options?: never;
979
+ head?: never;
980
+ patch?: never;
981
+ trace?: never;
982
+ };
983
+ "/beta/index/{index_id}/field_budget": {
984
+ parameters: {
985
+ query?: never;
986
+ header?: never;
987
+ path?: never;
988
+ cookie?: never;
989
+ };
990
+ /**
991
+ * [BETA] Get Field Budget Information
992
+ * @description Requires a `writer`, `admin`, or `owner` role on the index.
993
+ */
994
+ get: {
995
+ parameters: {
996
+ query?: never;
997
+ header?: never;
998
+ path: {
999
+ index_id: string;
1000
+ };
1001
+ cookie?: never;
1002
+ };
1003
+ requestBody?: never;
1004
+ responses: {
1005
+ /** @description Field budget information, showing an index's usage of fields. */
1006
+ 200: {
1007
+ headers: {
1008
+ [name: string]: unknown;
1009
+ };
1010
+ content: {
1011
+ "application/json": components["schemas"]["FieldBudget"];
1012
+ };
1013
+ };
1014
+ };
1015
+ };
1016
+ put?: never;
1017
+ post?: never;
1018
+ delete?: never;
1019
+ options?: never;
1020
+ head?: never;
1021
+ patch?: never;
1022
+ trace?: never;
1023
+ };
1024
+ "/beta/index/{index_id}/mapping": {
1025
+ parameters: {
1026
+ query?: never;
1027
+ header?: never;
1028
+ path?: never;
1029
+ cookie?: never;
1030
+ };
1031
+ /**
1032
+ * [BETA] Get Index Mapping
1033
+ * @description Lookup the mapped types of all fields in an index.
1034
+ *
1035
+ * Requires a `writer`, `admin`, or `owner` role on the index.
1036
+ */
1037
+ get: {
1038
+ parameters: {
1039
+ query?: never;
1040
+ header?: never;
1041
+ path: {
1042
+ index_id: string;
1043
+ };
1044
+ cookie?: never;
1045
+ };
1046
+ requestBody?: never;
1047
+ responses: {
1048
+ /** @description Field to type mapping. */
1049
+ 200: {
1050
+ headers: {
1051
+ [name: string]: unknown;
1052
+ };
1053
+ content: {
1054
+ "application/json": components["schemas"]["UGFieldMappings"];
1055
+ };
1056
+ };
1057
+ };
1058
+ };
1059
+ put?: never;
1060
+ post?: never;
1061
+ delete?: never;
1062
+ options?: never;
1063
+ head?: never;
1064
+ patch?: never;
1065
+ trace?: never;
1066
+ };
1067
+ }
1068
+ export type webhooks = Record<string, never>;
1069
+ export interface components {
1070
+ schemas: {
1071
+ ResultEntry: {
1072
+ content?: {
1073
+ [key: string]: unknown;
1074
+ };
1075
+ entry_id?: string;
1076
+ matched_principal_sets?: string[];
1077
+ };
1078
+ GMetaResult: {
1079
+ /** @default 2019-08-27 */
1080
+ readonly "@version": unknown;
1081
+ subject?: string;
1082
+ entries?: components["schemas"]["ResultEntry"][];
1083
+ };
1084
+ ApproximateMetricFacetResult: {
1085
+ readonly name?: string;
1086
+ approximate_value?: number;
1087
+ };
1088
+ MetricFacetResult: {
1089
+ readonly name?: string;
1090
+ value?: number;
1091
+ };
1092
+ GBucket: {
1093
+ value?: unknown;
1094
+ count?: number;
1095
+ };
1096
+ BucketFacetResult: {
1097
+ readonly name?: string;
1098
+ buckets?: components["schemas"]["GBucket"][];
1099
+ };
1100
+ GFacetResult: components["schemas"]["ApproximateMetricFacetResult"] | components["schemas"]["MetricFacetResult"] | components["schemas"]["BucketFacetResult"];
1101
+ GSearchResult: {
1102
+ total?: number;
1103
+ /** @description The length of the 'gmeta' array. */
1104
+ count?: number;
1105
+ gmeta?: components["schemas"]["GMetaResult"][];
1106
+ /** @description True if another page of results is available with pagination. */
1107
+ has_next_page?: boolean;
1108
+ offset?: number;
1109
+ facet_results?: components["schemas"]["GFacetResult"][];
1110
+ };
1111
+ TermsFacet: {
1112
+ /**
1113
+ * @description The field to which the facet refers.
1114
+ * Any dots (`.`) must be escaped with a preceding backslash (`\`) character.
1115
+ * @example my_field_name
1116
+ */
1117
+ field_name: string;
1118
+ /** @description A name for this facet which is referenced in the results.
1119
+ *
1120
+ * If `name` is omitted, it will default to the value of the `field_name` property. If more than one facet in a single search request references the same field, a name *must* be provided. */
1121
+ name?: string;
1122
+ /**
1123
+ * @description discriminator enum property added by openapi-typescript
1124
+ * @enum {string}
1125
+ */
1126
+ type: "terms";
1127
+ /** @default 10 */
1128
+ size: number;
1129
+ };
1130
+ MetricFacet: {
1131
+ /**
1132
+ * @description The field to which the facet refers.
1133
+ * Any dots (`.`) must be escaped with a preceding backslash (`\`) character.
1134
+ * @example my_field_name
1135
+ */
1136
+ field_name: string;
1137
+ /** @description A name for this facet which is referenced in the results.
1138
+ *
1139
+ * If `name` is omitted, it will default to the value of the `field_name` property. If more than one facet in a single search request references the same field, a name *must* be provided. */
1140
+ name?: string;
1141
+ /**
1142
+ * @description discriminator enum property added by openapi-typescript
1143
+ * @enum {string}
1144
+ */
1145
+ type: "sum" | "avg";
1146
+ missing?: number;
1147
+ };
1148
+ DateHistogramRange: {
1149
+ low?: unknown;
1150
+ high?: unknown;
1151
+ };
1152
+ DateHistogramFacet: {
1153
+ /**
1154
+ * @description The field to which the facet refers.
1155
+ * Any dots (`.`) must be escaped with a preceding backslash (`\`) character.
1156
+ * @example my_field_name
1157
+ */
1158
+ field_name: string;
1159
+ /** @description A name for this facet which is referenced in the results.
1160
+ *
1161
+ * If `name` is omitted, it will default to the value of the `field_name` property. If more than one facet in a single search request references the same field, a name *must* be provided. */
1162
+ name?: string;
1163
+ /**
1164
+ * @description discriminator enum property added by openapi-typescript
1165
+ * @enum {string}
1166
+ */
1167
+ type: "date_histogram";
1168
+ histogram_range?: components["schemas"]["DateHistogramRange"];
1169
+ /** @enum {string} */
1170
+ date_interval: "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second";
1171
+ };
1172
+ NumericHistogramRange: {
1173
+ low: number;
1174
+ high: number;
1175
+ };
1176
+ NumericHistogramFacet: {
1177
+ /**
1178
+ * @description The field to which the facet refers.
1179
+ * Any dots (`.`) must be escaped with a preceding backslash (`\`) character.
1180
+ * @example my_field_name
1181
+ */
1182
+ field_name: string;
1183
+ /** @description A name for this facet which is referenced in the results.
1184
+ *
1185
+ * If `name` is omitted, it will default to the value of the `field_name` property. If more than one facet in a single search request references the same field, a name *must* be provided. */
1186
+ name?: string;
1187
+ /**
1188
+ * @description discriminator enum property added by openapi-typescript
1189
+ * @enum {string}
1190
+ */
1191
+ type: "numeric_histogram";
1192
+ size: number;
1193
+ histogram_range: components["schemas"]["NumericHistogramRange"];
1194
+ };
1195
+ GFacet: components["schemas"]["TermsFacet"] | components["schemas"]["MetricFacet"] | components["schemas"]["MetricFacet"] | components["schemas"]["DateHistogramFacet"] | components["schemas"]["NumericHistogramFacet"];
1196
+ GFilterMatchAll: {
1197
+ /**
1198
+ * @description discriminator enum property added by openapi-typescript
1199
+ * @enum {string}
1200
+ */
1201
+ type: "match_all";
1202
+ /**
1203
+ * @description Control whether or not this filter should be applied before or after facets are
1204
+ * calculated. If True, the filter will not impact facet results, but will filter the
1205
+ * query results.
1206
+ *
1207
+ * Defaults to True for all filters except `match_all`, where it defaults to False.
1208
+ *
1209
+ * @default false
1210
+ */
1211
+ post_filter: boolean;
1212
+ /** @example my_field_name */
1213
+ field_name: string;
1214
+ values: unknown[];
1215
+ };
1216
+ GFilterMatchAny: {
1217
+ /**
1218
+ * @description discriminator enum property added by openapi-typescript
1219
+ * @enum {string}
1220
+ */
1221
+ type: "match_any";
1222
+ /**
1223
+ * @description Control whether or not this filter should be applied before or after facets are
1224
+ * calculated. If True, the filter will not impact facet results, but will filter the
1225
+ * query results.
1226
+ *
1227
+ * Defaults to True for all filters except `match_all`, where it defaults to False.
1228
+ *
1229
+ * @default true
1230
+ */
1231
+ post_filter: boolean;
1232
+ /** @example my_field_name */
1233
+ field_name: string;
1234
+ values: unknown[];
1235
+ };
1236
+ RangeFilterValue: {
1237
+ from?: unknown;
1238
+ to?: unknown;
1239
+ gte?: unknown;
1240
+ gt?: unknown;
1241
+ lte?: unknown;
1242
+ lt?: unknown;
1243
+ };
1244
+ GFilterRange: {
1245
+ /**
1246
+ * @description discriminator enum property added by openapi-typescript
1247
+ * @enum {string}
1248
+ */
1249
+ type: "range";
1250
+ /**
1251
+ * @description Control whether or not this filter should be applied before or after facets are
1252
+ * calculated. If True, the filter will not impact facet results, but will filter the
1253
+ * query results.
1254
+ *
1255
+ * Defaults to True for all filters except `match_all`, where it defaults to False.
1256
+ *
1257
+ * @default true
1258
+ */
1259
+ post_filter: boolean;
1260
+ /** @example my_field_name */
1261
+ field_name: string;
1262
+ values: components["schemas"]["RangeFilterValue"][];
1263
+ };
1264
+ Coordinate: {
1265
+ lat: number;
1266
+ lon: number;
1267
+ };
1268
+ GFilterBoundingBox: {
1269
+ /**
1270
+ * @description discriminator enum property added by openapi-typescript
1271
+ * @enum {string}
1272
+ */
1273
+ type: "geo_bounding_box";
1274
+ /**
1275
+ * @description Control whether or not this filter should be applied before or after facets are
1276
+ * calculated. If True, the filter will not impact facet results, but will filter the
1277
+ * query results.
1278
+ *
1279
+ * Defaults to True for all filters except `match_all`, where it defaults to False.
1280
+ *
1281
+ * @default true
1282
+ */
1283
+ post_filter: boolean;
1284
+ /** @example my_field_name */
1285
+ field_name: string;
1286
+ /**
1287
+ * @description A coordinate pair is a geographical point, expressed as an object with two keys, `lat`
1288
+ * and `lon`, for latitude and longitude. The values must be floats, positive or negative,
1289
+ * within the range of acceptable coordinate values: [-90.0, 90.0] for latitude, and
1290
+ * [-180.0, 180.0] for longitude.
1291
+ *
1292
+ * @example {
1293
+ * "lat": 40.9,
1294
+ * "lon": 87.5
1295
+ * }
1296
+ */
1297
+ top_left: components["schemas"]["Coordinate"];
1298
+ /**
1299
+ * @description A coordinate pair is a geographical point, expressed as an object with two keys, `lat`
1300
+ * and `lon`, for latitude and longitude. The values must be floats, positive or negative,
1301
+ * within the range of acceptable coordinate values: [-90.0, 90.0] for latitude, and
1302
+ * [-180.0, 180.0] for longitude.
1303
+ *
1304
+ * @example {
1305
+ * "lat": 40.9,
1306
+ * "lon": 87.5
1307
+ * }
1308
+ */
1309
+ bottom_right: components["schemas"]["Coordinate"];
1310
+ };
1311
+ GeoPolygon: {
1312
+ /**
1313
+ * @description discriminator enum property added by openapi-typescript
1314
+ * @enum {string}
1315
+ */
1316
+ type: "Polygon";
1317
+ coordinates: unknown[][];
1318
+ };
1319
+ GeoShape: components["schemas"]["GeoPolygon"];
1320
+ GFilterGeoShape: {
1321
+ /**
1322
+ * @description discriminator enum property added by openapi-typescript
1323
+ * @enum {string}
1324
+ */
1325
+ type: "geo_shape";
1326
+ /**
1327
+ * @description Control whether or not this filter should be applied before or after facets are
1328
+ * calculated. If True, the filter will not impact facet results, but will filter the
1329
+ * query results.
1330
+ *
1331
+ * Defaults to True for all filters except `match_all`, where it defaults to False.
1332
+ *
1333
+ * @default true
1334
+ */
1335
+ post_filter: boolean;
1336
+ /** @example my_field_name */
1337
+ field_name: string;
1338
+ shape: components["schemas"]["GeoShape"];
1339
+ /**
1340
+ * @description The relationship between the provided shape and the queried field.
1341
+ *
1342
+ * 'intersects': (default) Return documents whose shape intersects the query shape.
1343
+ * 'within': Return documents whose shape is fully within the query shape.
1344
+ *
1345
+ * @default intersects
1346
+ * @enum {string}
1347
+ */
1348
+ relation: "intersects" | "within";
1349
+ };
1350
+ GFilterExists: {
1351
+ /**
1352
+ * @description discriminator enum property added by openapi-typescript
1353
+ * @enum {string}
1354
+ */
1355
+ type: "exists";
1356
+ /**
1357
+ * @description Control whether or not this filter should be applied before or after facets are
1358
+ * calculated. If True, the filter will not impact facet results, but will filter the
1359
+ * query results.
1360
+ *
1361
+ * Defaults to True for all filters except `match_all`, where it defaults to False.
1362
+ *
1363
+ * @default true
1364
+ */
1365
+ post_filter: boolean;
1366
+ /** @example my_field_name */
1367
+ field_name: string;
1368
+ };
1369
+ GFilterLike: {
1370
+ /**
1371
+ * @description discriminator enum property added by openapi-typescript
1372
+ * @enum {string}
1373
+ */
1374
+ type: "like";
1375
+ /**
1376
+ * @description Control whether or not this filter should be applied before or after facets are
1377
+ * calculated. If True, the filter will not impact facet results, but will filter the
1378
+ * query results.
1379
+ *
1380
+ * Defaults to True for all filters except `match_all`, where it defaults to False.
1381
+ *
1382
+ * @default true
1383
+ */
1384
+ post_filter: boolean;
1385
+ /**
1386
+ * @description The field name to query with this 'like' filter. This field must be a text field.
1387
+ * @example my_field_name
1388
+ */
1389
+ field_name: string;
1390
+ /** @description A filter expression containing * and ? wildcards for a 'like' filter. */
1391
+ value: string;
1392
+ };
1393
+ GFilterMatchAllNested: {
1394
+ /**
1395
+ * @description discriminator enum property added by openapi-typescript
1396
+ * @enum {string}
1397
+ */
1398
+ type: "match_all";
1399
+ /** @example my_field_name */
1400
+ field_name: string;
1401
+ values: unknown[];
1402
+ };
1403
+ GFilterMatchAnyNested: {
1404
+ /**
1405
+ * @description discriminator enum property added by openapi-typescript
1406
+ * @enum {string}
1407
+ */
1408
+ type: "match_any";
1409
+ /** @example my_field_name */
1410
+ field_name: string;
1411
+ values: unknown[];
1412
+ };
1413
+ GFilterRangeNested: {
1414
+ /**
1415
+ * @description discriminator enum property added by openapi-typescript
1416
+ * @enum {string}
1417
+ */
1418
+ type: "range";
1419
+ /** @example my_field_name */
1420
+ field_name: string;
1421
+ values: components["schemas"]["RangeFilterValue"][];
1422
+ };
1423
+ GFilterBoundingBoxNested: {
1424
+ /**
1425
+ * @description discriminator enum property added by openapi-typescript
1426
+ * @enum {string}
1427
+ */
1428
+ type: "geo_bounding_box";
1429
+ /** @example my_field_name */
1430
+ field_name: string;
1431
+ /**
1432
+ * @description A coordinate pair is a geographical point, expressed as an object with two keys, `lat`
1433
+ * and `lon`, for latitude and longitude. The values must be floats, positive or negative,
1434
+ * within the range of acceptable coordinate values: [-90.0, 90.0] for latitude, and
1435
+ * [-180.0, 180.0] for longitude.
1436
+ *
1437
+ * @example {
1438
+ * "lat": 40.9,
1439
+ * "lon": 87.5
1440
+ * }
1441
+ */
1442
+ top_left: components["schemas"]["Coordinate"];
1443
+ /**
1444
+ * @description A coordinate pair is a geographical point, expressed as an object with two keys, `lat`
1445
+ * and `lon`, for latitude and longitude. The values must be floats, positive or negative,
1446
+ * within the range of acceptable coordinate values: [-90.0, 90.0] for latitude, and
1447
+ * [-180.0, 180.0] for longitude.
1448
+ *
1449
+ * @example {
1450
+ * "lat": 40.9,
1451
+ * "lon": 87.5
1452
+ * }
1453
+ */
1454
+ bottom_right: components["schemas"]["Coordinate"];
1455
+ };
1456
+ GFilterGeoShapeNested: {
1457
+ /**
1458
+ * @description discriminator enum property added by openapi-typescript
1459
+ * @enum {string}
1460
+ */
1461
+ type: "geo_shape";
1462
+ /** @example my_field_name */
1463
+ field_name: string;
1464
+ shape: components["schemas"]["GeoShape"];
1465
+ /**
1466
+ * @description The relationship between the provided shape and the queried field.
1467
+ *
1468
+ * 'intersects': (default) Return documents whose shape intersects the query shape.
1469
+ * 'within': Return documents whose shape is fully within the query shape.
1470
+ *
1471
+ * @default intersects
1472
+ * @enum {string}
1473
+ */
1474
+ relation: "intersects" | "within";
1475
+ };
1476
+ GFilterExistsNested: {
1477
+ /**
1478
+ * @description discriminator enum property added by openapi-typescript
1479
+ * @enum {string}
1480
+ */
1481
+ type: "exists";
1482
+ /** @example my_field_name */
1483
+ field_name: string;
1484
+ };
1485
+ GFilterLikeNested: {
1486
+ /**
1487
+ * @description discriminator enum property added by openapi-typescript
1488
+ * @enum {string}
1489
+ */
1490
+ type: "like";
1491
+ /**
1492
+ * @description The field name to query with this 'like' filter. This field must be a text field.
1493
+ * @example my_field_name
1494
+ */
1495
+ field_name: string;
1496
+ /** @description A filter expression containing * and ? wildcards for a 'like' filter. */
1497
+ value: string;
1498
+ };
1499
+ GFilterNotNested: {
1500
+ /**
1501
+ * @description discriminator enum property added by openapi-typescript
1502
+ * @enum {string}
1503
+ */
1504
+ type: "not";
1505
+ filter: components["schemas"]["GFilterNested"];
1506
+ };
1507
+ GFilterOrNested: {
1508
+ /**
1509
+ * @description discriminator enum property added by openapi-typescript
1510
+ * @enum {string}
1511
+ */
1512
+ type: "or";
1513
+ filters: components["schemas"]["GFilterNested"][];
1514
+ };
1515
+ GFilterAndNested: {
1516
+ /**
1517
+ * @description discriminator enum property added by openapi-typescript
1518
+ * @enum {string}
1519
+ */
1520
+ type: "and";
1521
+ filters: components["schemas"]["GFilterNested"][];
1522
+ };
1523
+ GFilterNested: components["schemas"]["GFilterMatchAllNested"] | components["schemas"]["GFilterMatchAnyNested"] | components["schemas"]["GFilterRangeNested"] | components["schemas"]["GFilterBoundingBoxNested"] | components["schemas"]["GFilterGeoShapeNested"] | components["schemas"]["GFilterExistsNested"] | components["schemas"]["GFilterLikeNested"] | components["schemas"]["GFilterNotNested"] | components["schemas"]["GFilterOrNested"] | components["schemas"]["GFilterAndNested"];
1524
+ GFilterNot: {
1525
+ /**
1526
+ * @description discriminator enum property added by openapi-typescript
1527
+ * @enum {string}
1528
+ */
1529
+ type: "not";
1530
+ /**
1531
+ * @description Control whether or not this filter should be applied before or after facets are
1532
+ * calculated. If True, the filter will not impact facet results, but will filter the
1533
+ * query results.
1534
+ *
1535
+ * Defaults to True for all filters except `match_all`, where it defaults to False.
1536
+ *
1537
+ * @default true
1538
+ */
1539
+ post_filter: boolean;
1540
+ filter: components["schemas"]["GFilterNested"];
1541
+ };
1542
+ GFilterOr: {
1543
+ /**
1544
+ * @description discriminator enum property added by openapi-typescript
1545
+ * @enum {string}
1546
+ */
1547
+ type: "or";
1548
+ /**
1549
+ * @description Control whether or not this filter should be applied before or after facets are
1550
+ * calculated. If True, the filter will not impact facet results, but will filter the
1551
+ * query results.
1552
+ *
1553
+ * Defaults to True for all filters except `match_all`, where it defaults to False.
1554
+ *
1555
+ * @default true
1556
+ */
1557
+ post_filter: boolean;
1558
+ filters: components["schemas"]["GFilterNested"][];
1559
+ };
1560
+ GFilterAnd: {
1561
+ /**
1562
+ * @description discriminator enum property added by openapi-typescript
1563
+ * @enum {string}
1564
+ */
1565
+ type: "and";
1566
+ /**
1567
+ * @description Control whether or not this filter should be applied before or after facets are
1568
+ * calculated. If True, the filter will not impact facet results, but will filter the
1569
+ * query results.
1570
+ *
1571
+ * Defaults to True for all filters except `match_all`, where it defaults to False.
1572
+ *
1573
+ * @default true
1574
+ */
1575
+ post_filter: boolean;
1576
+ filters: components["schemas"]["GFilterNested"][];
1577
+ };
1578
+ GFilter: components["schemas"]["GFilterMatchAll"] | components["schemas"]["GFilterMatchAny"] | components["schemas"]["GFilterRange"] | components["schemas"]["GFilterBoundingBox"] | components["schemas"]["GFilterGeoShape"] | components["schemas"]["GFilterExists"] | components["schemas"]["GFilterLike"] | components["schemas"]["GFilterNot"] | components["schemas"]["GFilterOr"] | components["schemas"]["GFilterAnd"];
1579
+ GBoost: {
1580
+ /** @example my_field_name */
1581
+ field_name: string;
1582
+ factor: number;
1583
+ };
1584
+ GSort: {
1585
+ /** @example my_field_name */
1586
+ field_name: string;
1587
+ /**
1588
+ * @default desc
1589
+ * @enum {string}
1590
+ */
1591
+ order: "asc" | "desc";
1592
+ };
1593
+ GSearchRequestBody2017: {
1594
+ q?: string;
1595
+ /** @default 10 */
1596
+ limit: number;
1597
+ advanced?: boolean;
1598
+ /**
1599
+ * @description Set to true to allow this operation to return data with visibility which does not include the current user. Only allowed for index admins and owners.
1600
+ * @default false
1601
+ */
1602
+ bypass_visible_to: boolean;
1603
+ filter_principal_sets?: string[];
1604
+ offset?: number;
1605
+ facets?: components["schemas"]["GFacet"][];
1606
+ filters?: components["schemas"]["GFilter"][];
1607
+ boosts?: components["schemas"]["GBoost"][];
1608
+ sort?: components["schemas"]["GSort"][];
1609
+ /**
1610
+ * @description discriminator enum property added by openapi-typescript
1611
+ * @enum {string}
1612
+ */
1613
+ "@version": "2017-09-01" | "2016-11-09";
1614
+ };
1615
+ GFilterMatchAllV1: {
1616
+ /**
1617
+ * @description discriminator enum property added by openapi-typescript
1618
+ * @enum {string}
1619
+ */
1620
+ type: "match_all";
1621
+ /** @example my_field_name */
1622
+ field_name: string;
1623
+ values: unknown[];
1624
+ };
1625
+ GFilterMatchAnyV1: {
1626
+ /**
1627
+ * @description discriminator enum property added by openapi-typescript
1628
+ * @enum {string}
1629
+ */
1630
+ type: "match_any";
1631
+ /** @example my_field_name */
1632
+ field_name: string;
1633
+ values: unknown[];
1634
+ };
1635
+ RangeFilterValueV1: {
1636
+ from?: unknown;
1637
+ to?: unknown;
1638
+ gte?: unknown;
1639
+ gt?: unknown;
1640
+ lte?: unknown;
1641
+ lt?: unknown;
1642
+ };
1643
+ GFilterRangeV1: {
1644
+ /**
1645
+ * @description discriminator enum property added by openapi-typescript
1646
+ * @enum {string}
1647
+ */
1648
+ type: "range";
1649
+ /** @example my_field_name */
1650
+ field_name: string;
1651
+ values: components["schemas"]["RangeFilterValueV1"][];
1652
+ };
1653
+ GFilterBoundingBoxV1: {
1654
+ /**
1655
+ * @description discriminator enum property added by openapi-typescript
1656
+ * @enum {string}
1657
+ */
1658
+ type: "geo_bounding_box";
1659
+ /** @example my_field_name */
1660
+ field_name: string;
1661
+ /**
1662
+ * @description A coordinate pair is a geographical point, expressed as an object with two keys, `lat`
1663
+ * and `lon`, for latitude and longitude. The values must be floats, positive or negative,
1664
+ * within the range of acceptable coordinate values: [-90.0, 90.0] for latitude, and
1665
+ * [-180.0, 180.0] for longitude.
1666
+ *
1667
+ * @example {
1668
+ * "lat": 40.9,
1669
+ * "lon": 87.5
1670
+ * }
1671
+ */
1672
+ top_left: components["schemas"]["Coordinate"];
1673
+ /**
1674
+ * @description A coordinate pair is a geographical point, expressed as an object with two keys, `lat`
1675
+ * and `lon`, for latitude and longitude. The values must be floats, positive or negative,
1676
+ * within the range of acceptable coordinate values: [-90.0, 90.0] for latitude, and
1677
+ * [-180.0, 180.0] for longitude.
1678
+ *
1679
+ * @example {
1680
+ * "lat": 40.9,
1681
+ * "lon": 87.5
1682
+ * }
1683
+ */
1684
+ bottom_right: components["schemas"]["Coordinate"];
1685
+ };
1686
+ GeoPolygonV1: {
1687
+ /**
1688
+ * @description discriminator enum property added by openapi-typescript
1689
+ * @enum {string}
1690
+ */
1691
+ type: "Polygon";
1692
+ coordinates: unknown[][];
1693
+ };
1694
+ GeoShapeV1: components["schemas"]["GeoPolygonV1"];
1695
+ GFilterGeoShapeV1: {
1696
+ /**
1697
+ * @description discriminator enum property added by openapi-typescript
1698
+ * @enum {string}
1699
+ */
1700
+ type: "geo_shape";
1701
+ /** @example my_field_name */
1702
+ field_name: string;
1703
+ shape: components["schemas"]["GeoShapeV1"];
1704
+ /**
1705
+ * @description The relationship between the provided shape and the queried field.
1706
+ *
1707
+ * 'intersects': (default) Return documents whose shape intersects the query shape.
1708
+ * 'within': Return documents whose shape is fully within the query shape.
1709
+ *
1710
+ * @default intersects
1711
+ * @enum {string}
1712
+ */
1713
+ relation: "intersects" | "within";
1714
+ };
1715
+ GFilterExistsV1: {
1716
+ /**
1717
+ * @description discriminator enum property added by openapi-typescript
1718
+ * @enum {string}
1719
+ */
1720
+ type: "exists";
1721
+ /** @example my_field_name */
1722
+ field_name: string;
1723
+ };
1724
+ GFilterLikeV1: {
1725
+ /**
1726
+ * @description discriminator enum property added by openapi-typescript
1727
+ * @enum {string}
1728
+ */
1729
+ type: "like";
1730
+ /**
1731
+ * @description The field name to query with this 'like' filter. This field must be a text field.
1732
+ * @example my_field_name
1733
+ */
1734
+ field_name: string;
1735
+ /** @description A filter expression containing * and ? wildcards for a 'like' filter. */
1736
+ value: string;
1737
+ };
1738
+ GFilterNotV1: {
1739
+ /**
1740
+ * @description discriminator enum property added by openapi-typescript
1741
+ * @enum {string}
1742
+ */
1743
+ type: "not";
1744
+ filter: components["schemas"]["GFilterV1"];
1745
+ };
1746
+ GFilterOrV1: {
1747
+ /**
1748
+ * @description discriminator enum property added by openapi-typescript
1749
+ * @enum {string}
1750
+ */
1751
+ type: "or";
1752
+ filters: components["schemas"]["GFilterV1"][];
1753
+ };
1754
+ GFilterAndV1: {
1755
+ /**
1756
+ * @description discriminator enum property added by openapi-typescript
1757
+ * @enum {string}
1758
+ */
1759
+ type: "and";
1760
+ filters: components["schemas"]["GFilterV1"][];
1761
+ };
1762
+ GFilterV1: components["schemas"]["GFilterMatchAllV1"] | components["schemas"]["GFilterMatchAnyV1"] | components["schemas"]["GFilterRangeV1"] | components["schemas"]["GFilterBoundingBoxV1"] | components["schemas"]["GFilterGeoShapeV1"] | components["schemas"]["GFilterExistsV1"] | components["schemas"]["GFilterLikeV1"] | components["schemas"]["GFilterNotV1"] | components["schemas"]["GFilterOrV1"] | components["schemas"]["GFilterAndV1"];
1763
+ TermsFacetV1: {
1764
+ /**
1765
+ * @description The field to which the facet refers.
1766
+ * Any dots (`.`) must be escaped with a preceding backslash (`\`) character.
1767
+ * @example my_field_name
1768
+ */
1769
+ field_name: string;
1770
+ /** @description A name for this facet which is referenced in the results.
1771
+ *
1772
+ * If `name` is omitted, it will default to the value of the `field_name` property. If more than one facet in a single search request references the same field, a name *must* be provided. */
1773
+ name?: string;
1774
+ /**
1775
+ * @description discriminator enum property added by openapi-typescript
1776
+ * @enum {string}
1777
+ */
1778
+ type: "terms";
1779
+ additional_filters?: components["schemas"]["GFilterV1"][];
1780
+ /** @default 10 */
1781
+ size: number;
1782
+ };
1783
+ MetricFacetV1: {
1784
+ /**
1785
+ * @description The field to which the facet refers.
1786
+ * Any dots (`.`) must be escaped with a preceding backslash (`\`) character.
1787
+ * @example my_field_name
1788
+ */
1789
+ field_name: string;
1790
+ /** @description A name for this facet which is referenced in the results.
1791
+ *
1792
+ * If `name` is omitted, it will default to the value of the `field_name` property. If more than one facet in a single search request references the same field, a name *must* be provided. */
1793
+ name?: string;
1794
+ /**
1795
+ * @description discriminator enum property added by openapi-typescript
1796
+ * @enum {string}
1797
+ */
1798
+ type: "sum" | "avg";
1799
+ additional_filters?: components["schemas"]["GFilterV1"][];
1800
+ missing?: number;
1801
+ };
1802
+ DistinctCountFacetV1: {
1803
+ /**
1804
+ * @description The field to which the facet refers.
1805
+ * Any dots (`.`) must be escaped with a preceding backslash (`\`) character.
1806
+ * @example my_field_name
1807
+ */
1808
+ field_name: string;
1809
+ /** @description A name for this facet which is referenced in the results.
1810
+ *
1811
+ * If `name` is omitted, it will default to the value of the `field_name` property. If more than one facet in a single search request references the same field, a name *must* be provided. */
1812
+ name?: string;
1813
+ /**
1814
+ * @description discriminator enum property added by openapi-typescript
1815
+ * @enum {string}
1816
+ */
1817
+ type: "distinct_count";
1818
+ additional_filters?: components["schemas"]["GFilterV1"][];
1819
+ };
1820
+ DateHistogramRangeV1: {
1821
+ low?: unknown;
1822
+ high?: unknown;
1823
+ };
1824
+ DateHistogramFacetV1: {
1825
+ /**
1826
+ * @description The field to which the facet refers.
1827
+ * Any dots (`.`) must be escaped with a preceding backslash (`\`) character.
1828
+ * @example my_field_name
1829
+ */
1830
+ field_name: string;
1831
+ /** @description A name for this facet which is referenced in the results.
1832
+ *
1833
+ * If `name` is omitted, it will default to the value of the `field_name` property. If more than one facet in a single search request references the same field, a name *must* be provided. */
1834
+ name?: string;
1835
+ /**
1836
+ * @description discriminator enum property added by openapi-typescript
1837
+ * @enum {string}
1838
+ */
1839
+ type: "date_histogram";
1840
+ additional_filters?: components["schemas"]["GFilterV1"][];
1841
+ histogram_range?: components["schemas"]["DateHistogramRangeV1"];
1842
+ /** @enum {string} */
1843
+ date_interval: "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second";
1844
+ };
1845
+ NumericHistogramRangeV1: {
1846
+ low: number;
1847
+ high: number;
1848
+ };
1849
+ NumericHistogramFacetV1: {
1850
+ /**
1851
+ * @description The field to which the facet refers.
1852
+ * Any dots (`.`) must be escaped with a preceding backslash (`\`) character.
1853
+ * @example my_field_name
1854
+ */
1855
+ field_name: string;
1856
+ /** @description A name for this facet which is referenced in the results.
1857
+ *
1858
+ * If `name` is omitted, it will default to the value of the `field_name` property. If more than one facet in a single search request references the same field, a name *must* be provided. */
1859
+ name?: string;
1860
+ /**
1861
+ * @description discriminator enum property added by openapi-typescript
1862
+ * @enum {string}
1863
+ */
1864
+ type: "numeric_histogram";
1865
+ additional_filters?: components["schemas"]["GFilterV1"][];
1866
+ size: number;
1867
+ histogram_range: components["schemas"]["NumericHistogramRangeV1"];
1868
+ };
1869
+ GFacetV1: components["schemas"]["TermsFacetV1"] | components["schemas"]["MetricFacetV1"] | components["schemas"]["MetricFacetV1"] | components["schemas"]["DistinctCountFacetV1"] | components["schemas"]["DateHistogramFacetV1"] | components["schemas"]["NumericHistogramFacetV1"];
1870
+ GBoostV1: {
1871
+ /** @example my_field_name */
1872
+ field_name: string;
1873
+ factor: number;
1874
+ };
1875
+ GSortV1: {
1876
+ /** @example my_field_name */
1877
+ field_name: string;
1878
+ /**
1879
+ * @default desc
1880
+ * @enum {string}
1881
+ */
1882
+ order: "asc" | "desc";
1883
+ };
1884
+ SimpleQSettings: {
1885
+ /**
1886
+ * @description discriminator enum property added by openapi-typescript
1887
+ * @enum {string}
1888
+ */
1889
+ mode: "query_string";
1890
+ default_operator: string;
1891
+ };
1892
+ AdvancedQSettings: {
1893
+ /**
1894
+ * @description discriminator enum property added by openapi-typescript
1895
+ * @enum {string}
1896
+ */
1897
+ mode: "advanced_query_string";
1898
+ default_operator: string;
1899
+ };
1900
+ QSettings: components["schemas"]["SimpleQSettings"] | components["schemas"]["AdvancedQSettings"];
1901
+ GSearchRequestBodyV1: {
1902
+ q?: string;
1903
+ /** @default 10 */
1904
+ limit: number;
1905
+ advanced?: boolean;
1906
+ /**
1907
+ * @description Set to true to allow this operation to return data with visibility which does not include the current user. Only allowed for index admins and owners.
1908
+ * @default false
1909
+ */
1910
+ bypass_visible_to: boolean;
1911
+ filter_principal_sets?: string[];
1912
+ /**
1913
+ * @description discriminator enum property added by openapi-typescript
1914
+ * @enum {string}
1915
+ */
1916
+ "@version": "query#1.0.0";
1917
+ offset?: number;
1918
+ facets?: components["schemas"]["GFacetV1"][];
1919
+ filters?: components["schemas"]["GFilterV1"][];
1920
+ boosts?: components["schemas"]["GBoostV1"][];
1921
+ sort?: components["schemas"]["GSortV1"][];
1922
+ q_settings?: components["schemas"]["QSettings"];
1923
+ post_facet_filters?: components["schemas"]["GFilterV1"][];
1924
+ };
1925
+ GSearchRequestBody: components["schemas"]["GSearchRequestBody2017"] | components["schemas"]["GSearchRequestBody2017"] | components["schemas"]["GSearchRequestBodyV1"];
1926
+ GScrollRequest2017: {
1927
+ marker?: unknown;
1928
+ q?: string;
1929
+ /** @default 10 */
1930
+ limit: number;
1931
+ advanced?: boolean;
1932
+ /**
1933
+ * @description Set to true to allow this operation to return data with visibility which does not include the current user. Only allowed for index admins and owners.
1934
+ * @default false
1935
+ */
1936
+ bypass_visible_to: boolean;
1937
+ filter_principal_sets?: string[];
1938
+ /**
1939
+ * @description discriminator enum property added by openapi-typescript
1940
+ * @enum {string}
1941
+ */
1942
+ "@version": "2017-09-01";
1943
+ filters?: components["schemas"]["GFilter"][];
1944
+ };
1945
+ GScrollRequestV1: {
1946
+ marker?: unknown;
1947
+ q?: string;
1948
+ /** @default 10 */
1949
+ limit: number;
1950
+ advanced?: boolean;
1951
+ /**
1952
+ * @description Set to true to allow this operation to return data with visibility which does not include the current user. Only allowed for index admins and owners.
1953
+ * @default false
1954
+ */
1955
+ bypass_visible_to: boolean;
1956
+ filter_principal_sets?: string[];
1957
+ /**
1958
+ * @description discriminator enum property added by openapi-typescript
1959
+ * @enum {string}
1960
+ */
1961
+ "@version": "scroll#1.0.0";
1962
+ filters?: components["schemas"]["GFilterV1"][];
1963
+ q_settings?: components["schemas"]["QSettings"];
1964
+ };
1965
+ GScrollRequest: components["schemas"]["GScrollRequest2017"] | components["schemas"]["GScrollRequestV1"];
1966
+ GScrollResponse: {
1967
+ total?: number;
1968
+ /** @description The length of the 'gmeta' array. */
1969
+ count?: number;
1970
+ gmeta?: components["schemas"]["GMetaResult"][];
1971
+ /** @description True if another page of results is available with pagination. */
1972
+ has_next_page?: boolean;
1973
+ marker?: unknown;
1974
+ };
1975
+ GMetaEntry: {
1976
+ subject: string;
1977
+ /** @default null */
1978
+ id: string | null;
1979
+ content: {
1980
+ [key: string]: unknown;
1981
+ };
1982
+ visible_to: string[];
1983
+ principal_sets?: {
1984
+ [key: string]: string[];
1985
+ };
1986
+ };
1987
+ GIngestEntry: {
1988
+ /**
1989
+ * @description discriminator enum property added by openapi-typescript
1990
+ * @enum {string}
1991
+ */
1992
+ ingest_type: "GMetaEntry";
1993
+ /**
1994
+ * @description A field_mapping explicitly sets the type for fields being used in the ingest document.
1995
+ * The fieldnames are used as keys and their values are the types to which they map. Dots
1996
+ * in fieldnames are interpreted as part of the path to a field, but may be escaped with a
1997
+ * backslash.
1998
+ *
1999
+ * Currently, only geo datatypes are supported.
2000
+ *
2001
+ * @example {
2002
+ * "location.center": "geo_point",
2003
+ * "location.boundary": "geo_shape"
2004
+ * }
2005
+ */
2006
+ field_mapping?: {
2007
+ [key: string]: "geo_point" | "geo_shape";
2008
+ };
2009
+ ingest_data: components["schemas"]["GMetaEntry"];
2010
+ };
2011
+ GMetaList: {
2012
+ gmeta: components["schemas"]["GMetaEntry"][];
2013
+ };
2014
+ GIngestList: {
2015
+ /**
2016
+ * @description discriminator enum property added by openapi-typescript
2017
+ * @enum {string}
2018
+ */
2019
+ ingest_type: "GMetaList";
2020
+ /**
2021
+ * @description A field_mapping explicitly sets the type for fields being used in the ingest document.
2022
+ * The fieldnames are used as keys and their values are the types to which they map. Dots
2023
+ * in fieldnames are interpreted as part of the path to a field, but may be escaped with a
2024
+ * backslash.
2025
+ *
2026
+ * Currently, only geo datatypes are supported.
2027
+ *
2028
+ * @example {
2029
+ * "location.center": "geo_point",
2030
+ * "location.boundary": "geo_shape"
2031
+ * }
2032
+ */
2033
+ field_mapping?: {
2034
+ [key: string]: "geo_point" | "geo_shape";
2035
+ };
2036
+ ingest_data: components["schemas"]["GMetaList"];
2037
+ };
2038
+ GIngest: components["schemas"]["GIngestEntry"] | components["schemas"]["GIngestList"];
2039
+ TaskSubmitResponse: {
2040
+ /** @description Always true for successful task submission. */
2041
+ acknowledged?: boolean;
2042
+ /**
2043
+ * Format: uuid
2044
+ * @description The ID of the task which was just created.
2045
+ */
2046
+ task_id?: string;
2047
+ };
2048
+ Task: {
2049
+ /** Format: uuid */
2050
+ task_id?: string;
2051
+ /** @enum {string} */
2052
+ state?: "PENDING" | "PROGRESS" | "SUCCESS" | "FAILED" | "CREATING";
2053
+ state_description?: string;
2054
+ task_type?: string;
2055
+ /** Format: uuid */
2056
+ index_id?: string;
2057
+ /** Format: date */
2058
+ creation_date?: string;
2059
+ message?: string;
2060
+ additional_details?: unknown;
2061
+ /** Format: date */
2062
+ completion_date?: string | null;
2063
+ };
2064
+ TaskList: {
2065
+ /** Format: uuid */
2066
+ index_id?: string;
2067
+ tasks?: components["schemas"]["Task"][];
2068
+ };
2069
+ IndexWithPermissions: {
2070
+ display_name?: string;
2071
+ description?: string;
2072
+ /** Format: uuid */
2073
+ id?: string;
2074
+ max_size_in_mb?: number;
2075
+ size_in_mb?: number;
2076
+ num_subjects?: number;
2077
+ num_entries?: number;
2078
+ /** Format: date */
2079
+ creation_date?: string;
2080
+ entry_schema?: {
2081
+ [key: string]: unknown;
2082
+ };
2083
+ /** Format: uuid */
2084
+ subscription_id?: string;
2085
+ is_trial?: boolean;
2086
+ status?: string;
2087
+ permissions?: ("owner" | "admin" | "writer")[];
2088
+ };
2089
+ IndexDeleteResponse: {
2090
+ /** @description Always true for successful index deletion. */
2091
+ acknowledged?: boolean;
2092
+ /**
2093
+ * Format: uuid
2094
+ * @description The ID of the index which was marked for deletion.
2095
+ */
2096
+ index_id?: string;
2097
+ };
2098
+ IndexListWPermissions: {
2099
+ index_list?: components["schemas"]["IndexWithPermissions"][];
2100
+ };
2101
+ IndexCreate: {
2102
+ /** @description The name of the index */
2103
+ display_name: string;
2104
+ /** @description A description of the index */
2105
+ description: string;
2106
+ };
2107
+ IndexInfo: {
2108
+ display_name?: string;
2109
+ description?: string;
2110
+ /** Format: uuid */
2111
+ id?: string;
2112
+ max_size_in_mb?: number;
2113
+ size_in_mb?: number;
2114
+ num_subjects?: number;
2115
+ num_entries?: number;
2116
+ /** Format: date */
2117
+ creation_date?: string;
2118
+ entry_schema?: {
2119
+ [key: string]: unknown;
2120
+ };
2121
+ /** Format: uuid */
2122
+ subscription_id?: string;
2123
+ is_trial?: boolean;
2124
+ status?: string;
2125
+ };
2126
+ IndexReopenResponse: {
2127
+ /** @description Always true for successful index reopen. */
2128
+ acknowledged?: boolean;
2129
+ /**
2130
+ * Format: uuid
2131
+ * @description The ID of the index which was reopened.
2132
+ */
2133
+ index_id?: string;
2134
+ };
2135
+ Role: {
2136
+ /** @description The ID of the role. */
2137
+ id?: string;
2138
+ /**
2139
+ * @description The name of the role. This implies some set of permissions.
2140
+ * @enum {string}
2141
+ */
2142
+ role_name?: "owner" | "admin" | "writer";
2143
+ /** Format: uuid */
2144
+ index_id?: string;
2145
+ /** @description The principal URN for the entity which has this role. */
2146
+ principal?: string;
2147
+ /**
2148
+ * @description The type of principal encoded by the URN.
2149
+ * @enum {string}
2150
+ */
2151
+ principal_type?: "identity" | "group";
2152
+ /** Format: date */
2153
+ creation_date?: string;
2154
+ };
2155
+ RoleList: {
2156
+ role_list?: components["schemas"]["Role"][];
2157
+ };
2158
+ RoleCreate: {
2159
+ /**
2160
+ * @description The name of the role. This implies some set of permissions.
2161
+ * @enum {string}
2162
+ */
2163
+ role_name?: "owner" | "admin" | "writer";
2164
+ /** @description The principal URN for the entity which has this role. */
2165
+ principal?: string;
2166
+ };
2167
+ DeletedRole: {
2168
+ deleted?: components["schemas"]["Role"];
2169
+ success?: boolean;
2170
+ };
2171
+ DeleteBySubjectRequest: {
2172
+ subjects: string[];
2173
+ };
2174
+ DeleteByQueryV1: {
2175
+ /**
2176
+ * @description discriminator enum property added by openapi-typescript
2177
+ * @enum {string}
2178
+ */
2179
+ "@version": "delete_by_query#1.0.0";
2180
+ q?: string;
2181
+ advanced?: boolean;
2182
+ q_settings?: components["schemas"]["QSettings"];
2183
+ filters?: components["schemas"]["GFilterV1"][];
2184
+ };
2185
+ DeleteByQuery: components["schemas"]["GSearchRequestBody2017"] | components["schemas"]["GSearchRequestBody2017"] | components["schemas"]["DeleteByQueryV1"];
2186
+ UGFieldMappings: {
2187
+ /**
2188
+ * @description A mapping from full field names to their types.
2189
+ * @example {
2190
+ * "foo": "long",
2191
+ * "bar.baz": "text"
2192
+ * }
2193
+ */
2194
+ mappings?: {
2195
+ [key: string]: unknown;
2196
+ };
2197
+ };
2198
+ FieldBudget: {
2199
+ /** @description The size of the budget for the index. */
2200
+ budget?: number;
2201
+ /** @description The amount of the budget which has been used (i.e., budget - remaining). */
2202
+ used?: number;
2203
+ /** @description The amount of the budget remaining (i.e., budget - used). */
2204
+ remaining?: number;
2205
+ };
2206
+ };
2207
+ responses: never;
2208
+ parameters: never;
2209
+ requestBodies: never;
2210
+ headers: never;
2211
+ pathItems: never;
2212
+ }
2213
+ export type $defs = Record<string, never>;
2214
+ export type operations = Record<string, never>;
2215
+ //# sourceMappingURL=search.d.ts.map