@algolia/monitoring 1.27.0 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/browser.d.ts +52 -52
- package/dist/builds/browser.js +5 -5
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +1 -1
- package/dist/builds/fetch.js +5 -5
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +5 -5
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +5 -5
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +5 -5
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +52 -52
- package/dist/node.d.cts +52 -52
- package/dist/node.d.ts +52 -52
- package/dist/src/monitoringClient.cjs +5 -5
- package/dist/src/monitoringClient.cjs.map +1 -1
- package/dist/src/monitoringClient.js +5 -5
- package/dist/src/monitoringClient.js.map +1 -1
- package/dist/worker.d.ts +52 -52
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/monitoringClient.ts"],"sourcesContent":["// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.\n\nimport type {\n CreateClientOptions,\n Headers,\n Host,\n QueryParameters,\n Request,\n RequestOptions,\n} from '@algolia/client-common';\nimport { createAuth, createTransporter, getAlgoliaAgent } from '@algolia/client-common';\n\nimport type { IncidentsResponse } from '../model/incidentsResponse';\nimport type { IndexingTimeResponse } from '../model/indexingTimeResponse';\nimport type { InfrastructureResponse } from '../model/infrastructureResponse';\nimport type { InventoryResponse } from '../model/inventoryResponse';\nimport type { LatencyResponse } from '../model/latencyResponse';\n\nimport type { StatusResponse } from '../model/statusResponse';\n\nimport type {\n CustomDeleteProps,\n CustomGetProps,\n CustomPostProps,\n CustomPutProps,\n GetClusterIncidentsProps,\n GetClusterStatusProps,\n GetIndexingTimeProps,\n GetLatencyProps,\n GetMetricsProps,\n GetReachabilityProps,\n} from '../model/clientMethodProps';\n\nexport const apiClientVersion = '1.27.0';\n\nfunction getDefaultHosts(): Host[] {\n return [{ url: 'status.algolia.com', accept: 'readWrite', protocol: 'https' }];\n}\n\nexport function createMonitoringClient({\n appId: appIdOption,\n apiKey: apiKeyOption,\n authMode,\n algoliaAgents,\n ...options\n}: CreateClientOptions) {\n const auth = createAuth(appIdOption, apiKeyOption, authMode);\n const transporter = createTransporter({\n hosts: getDefaultHosts(),\n ...options,\n algoliaAgent: getAlgoliaAgent({\n algoliaAgents,\n client: 'Monitoring',\n version: apiClientVersion,\n }),\n baseHeaders: {\n 'content-type': 'text/plain',\n ...auth.headers(),\n ...options.baseHeaders,\n },\n baseQueryParameters: {\n ...auth.queryParameters(),\n ...options.baseQueryParameters,\n },\n });\n\n return {\n transporter,\n\n /**\n * The `appId` currently in use.\n */\n appId: appIdOption,\n\n /**\n * The `apiKey` currently in use.\n */\n apiKey: apiKeyOption,\n\n /**\n * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.\n */\n clearCache(): Promise<void> {\n return Promise.all([transporter.requestsCache.clear(), transporter.responsesCache.clear()]).then(() => undefined);\n },\n\n /**\n * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.\n */\n get _ua(): string {\n return transporter.algoliaAgent.value;\n },\n\n /**\n * Adds a `segment` to the `x-algolia-agent` sent with every requests.\n *\n * @param segment - The algolia agent (user-agent) segment to add.\n * @param version - The version of the agent.\n */\n addAlgoliaAgent(segment: string, version?: string): void {\n transporter.algoliaAgent.add({ segment, version });\n },\n\n /**\n * Helper method to switch the API key used to authenticate the requests.\n *\n * @param params - Method params.\n * @param params.apiKey - The new API Key to use.\n */\n setClientApiKey({ apiKey }: { apiKey: string }): void {\n if (!authMode || authMode === 'WithinHeaders') {\n transporter.baseHeaders['x-algolia-api-key'] = apiKey;\n } else {\n transporter.baseQueryParameters['x-algolia-api-key'] = apiKey;\n }\n },\n\n /**\n * This method lets you send requests to the Algolia REST API.\n * @param customDelete - The customDelete object.\n * @param customDelete.path - Path of the endpoint, anything after \\\"/1\\\" must be specified.\n * @param customDelete.parameters - Query parameters to apply to the current query.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customDelete(\n { path, parameters }: CustomDeleteProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n if (!path) {\n throw new Error('Parameter `path` is required when calling `customDelete`.');\n }\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'DELETE',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * This method lets you send requests to the Algolia REST API.\n * @param customGet - The customGet object.\n * @param customGet.path - Path of the endpoint, anything after \\\"/1\\\" must be specified.\n * @param customGet.parameters - Query parameters to apply to the current query.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>> {\n if (!path) {\n throw new Error('Parameter `path` is required when calling `customGet`.');\n }\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * This method lets you send requests to the Algolia REST API.\n * @param customPost - The customPost object.\n * @param customPost.path - Path of the endpoint, anything after \\\"/1\\\" must be specified.\n * @param customPost.parameters - Query parameters to apply to the current query.\n * @param customPost.body - Parameters to send with the custom request.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customPost(\n { path, parameters, body }: CustomPostProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n if (!path) {\n throw new Error('Parameter `path` is required when calling `customPost`.');\n }\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: body ? body : {},\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * This method lets you send requests to the Algolia REST API.\n * @param customPut - The customPut object.\n * @param customPut.path - Path of the endpoint, anything after \\\"/1\\\" must be specified.\n * @param customPut.parameters - Query parameters to apply to the current query.\n * @param customPut.body - Parameters to send with the custom request.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customPut(\n { path, parameters, body }: CustomPutProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n if (!path) {\n throw new Error('Parameter `path` is required when calling `customPut`.');\n }\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'PUT',\n path: requestPath,\n queryParameters,\n headers,\n data: body ? body : {},\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves known incidents for the selected clusters.\n * @param getClusterIncidents - The getClusterIncidents object.\n * @param getClusterIncidents.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getClusterIncidents(\n { clusters }: GetClusterIncidentsProps,\n requestOptions?: RequestOptions,\n ): Promise<IncidentsResponse> {\n if (!clusters) {\n throw new Error('Parameter `clusters` is required when calling `getClusterIncidents`.');\n }\n\n const requestPath = '/1/incidents/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves the status of selected clusters.\n * @param getClusterStatus - The getClusterStatus object.\n * @param getClusterStatus.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getClusterStatus({ clusters }: GetClusterStatusProps, requestOptions?: RequestOptions): Promise<StatusResponse> {\n if (!clusters) {\n throw new Error('Parameter `clusters` is required when calling `getClusterStatus`.');\n }\n\n const requestPath = '/1/status/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves known incidents for all clusters.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getIncidents(requestOptions?: RequestOptions): Promise<IncidentsResponse> {\n const requestPath = '/1/incidents';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves average times for indexing operations for selected clusters.\n * @param getIndexingTime - The getIndexingTime object.\n * @param getIndexingTime.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getIndexingTime(\n { clusters }: GetIndexingTimeProps,\n requestOptions?: RequestOptions,\n ): Promise<IndexingTimeResponse> {\n if (!clusters) {\n throw new Error('Parameter `clusters` is required when calling `getIndexingTime`.');\n }\n\n const requestPath = '/1/indexing/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves the average latency for search requests for selected clusters.\n * @param getLatency - The getLatency object.\n * @param getLatency.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getLatency({ clusters }: GetLatencyProps, requestOptions?: RequestOptions): Promise<LatencyResponse> {\n if (!clusters) {\n throw new Error('Parameter `clusters` is required when calling `getLatency`.');\n }\n\n const requestPath = '/1/latency/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves metrics related to your Algolia infrastructure, aggregated over a selected time window. Access to this API is available as part of the [Premium or Elevate plans](https://www.algolia.com/pricing). You must authenticate requests with the `x-algolia-application-id` and `x-algolia-api-key` headers (using the Monitoring API key).\n * @param getMetrics - The getMetrics object.\n * @param getMetrics.metric - Metric to report. For more information about the individual metrics, see the description of the API response. To include all metrics, use `*`.\n * @param getMetrics.period - Period over which to aggregate the metrics: - `minute`. Aggregate the last minute. 1 data point per 10 seconds. - `hour`. Aggregate the last hour. 1 data point per minute. - `day`. Aggregate the last day. 1 data point per 10 minutes. - `week`. Aggregate the last week. 1 data point per hour. - `month`. Aggregate the last month. 1 data point per day.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getMetrics({ metric, period }: GetMetricsProps, requestOptions?: RequestOptions): Promise<InfrastructureResponse> {\n if (!metric) {\n throw new Error('Parameter `metric` is required when calling `getMetrics`.');\n }\n\n if (!period) {\n throw new Error('Parameter `period` is required when calling `getMetrics`.');\n }\n\n const requestPath = '/1/infrastructure/{metric}/period/{period}'\n .replace('{metric}', encodeURIComponent(metric))\n .replace('{period}', encodeURIComponent(period));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Test whether clusters are reachable or not.\n * @param getReachability - The getReachability object.\n * @param getReachability.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getReachability(\n { clusters }: GetReachabilityProps,\n requestOptions?: RequestOptions,\n ): Promise<{ [key: string]: { [key: string]: boolean } }> {\n if (!clusters) {\n throw new Error('Parameter `clusters` is required when calling `getReachability`.');\n }\n\n const requestPath = '/1/reachability/{clusters}/probes'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves the servers that belong to clusters. The response depends on whether you authenticate your API request: - With authentication, the response lists the servers assigned to your Algolia application\\'s cluster. - Without authentication, the response lists the servers for all Algolia clusters.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getServers(requestOptions?: RequestOptions): Promise<InventoryResponse> {\n const requestPath = '/1/inventory/servers';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves the status of all Algolia clusters and instances.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getStatus(requestOptions?: RequestOptions): Promise<StatusResponse> {\n const requestPath = '/1/status';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n };\n}\n"],"mappings":";AAUA,SAAS,YAAY,mBAAmB,uBAAuB;AAuBxD,IAAM,mBAAmB;AAEhC,SAAS,kBAA0B;AACjC,SAAO,CAAC,EAAE,KAAK,sBAAsB,QAAQ,aAAa,UAAU,QAAQ,CAAC;AAC/E;AAEO,SAAS,uBAAuB;AAAA,EACrC,OAAO;AAAA,EACP,QAAQ;AAAA,EACR;AAAA,EACA;AAAA,EACA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;AAAA,EACF;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/monitoringClient.ts"],"sourcesContent":["// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.\n\nimport type {\n CreateClientOptions,\n Headers,\n Host,\n QueryParameters,\n Request,\n RequestOptions,\n} from '@algolia/client-common';\nimport { createAuth, createTransporter, getAlgoliaAgent } from '@algolia/client-common';\n\nimport type { IncidentsResponse } from '../model/incidentsResponse';\nimport type { IndexingTimeResponse } from '../model/indexingTimeResponse';\nimport type { InfrastructureResponse } from '../model/infrastructureResponse';\nimport type { InventoryResponse } from '../model/inventoryResponse';\nimport type { LatencyResponse } from '../model/latencyResponse';\n\nimport type { StatusResponse } from '../model/statusResponse';\n\nimport type {\n CustomDeleteProps,\n CustomGetProps,\n CustomPostProps,\n CustomPutProps,\n GetClusterIncidentsProps,\n GetClusterStatusProps,\n GetIndexingTimeProps,\n GetLatencyProps,\n GetMetricsProps,\n GetReachabilityProps,\n} from '../model/clientMethodProps';\n\nexport const apiClientVersion = '1.29.0';\n\nfunction getDefaultHosts(): Host[] {\n return [{ url: 'status.algolia.com', accept: 'readWrite', protocol: 'https' }];\n}\n\nexport function createMonitoringClient({\n appId: appIdOption,\n apiKey: apiKeyOption,\n authMode,\n algoliaAgents,\n ...options\n}: CreateClientOptions) {\n const auth = createAuth(appIdOption, apiKeyOption, authMode);\n const transporter = createTransporter({\n hosts: getDefaultHosts(),\n ...options,\n algoliaAgent: getAlgoliaAgent({\n algoliaAgents,\n client: 'Monitoring',\n version: apiClientVersion,\n }),\n baseHeaders: {\n 'content-type': 'text/plain',\n ...auth.headers(),\n ...options.baseHeaders,\n },\n baseQueryParameters: {\n ...auth.queryParameters(),\n ...options.baseQueryParameters,\n },\n });\n\n return {\n transporter,\n\n /**\n * The `appId` currently in use.\n */\n appId: appIdOption,\n\n /**\n * The `apiKey` currently in use.\n */\n apiKey: apiKeyOption,\n\n /**\n * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.\n */\n clearCache(): Promise<void> {\n return Promise.all([transporter.requestsCache.clear(), transporter.responsesCache.clear()]).then(() => undefined);\n },\n\n /**\n * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.\n */\n get _ua(): string {\n return transporter.algoliaAgent.value;\n },\n\n /**\n * Adds a `segment` to the `x-algolia-agent` sent with every requests.\n *\n * @param segment - The algolia agent (user-agent) segment to add.\n * @param version - The version of the agent.\n */\n addAlgoliaAgent(segment: string, version?: string | undefined): void {\n transporter.algoliaAgent.add({ segment, version });\n },\n\n /**\n * Helper method to switch the API key used to authenticate the requests.\n *\n * @param params - Method params.\n * @param params.apiKey - The new API Key to use.\n */\n setClientApiKey({ apiKey }: { apiKey: string }): void {\n if (!authMode || authMode === 'WithinHeaders') {\n transporter.baseHeaders['x-algolia-api-key'] = apiKey;\n } else {\n transporter.baseQueryParameters['x-algolia-api-key'] = apiKey;\n }\n },\n\n /**\n * This method lets you send requests to the Algolia REST API.\n * @param customDelete - The customDelete object.\n * @param customDelete.path - Path of the endpoint, for example `1/newFeature`.\n * @param customDelete.parameters - Query parameters to apply to the current query.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customDelete(\n { path, parameters }: CustomDeleteProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n if (!path) {\n throw new Error('Parameter `path` is required when calling `customDelete`.');\n }\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'DELETE',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * This method lets you send requests to the Algolia REST API.\n * @param customGet - The customGet object.\n * @param customGet.path - Path of the endpoint, for example `1/newFeature`.\n * @param customGet.parameters - Query parameters to apply to the current query.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>> {\n if (!path) {\n throw new Error('Parameter `path` is required when calling `customGet`.');\n }\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * This method lets you send requests to the Algolia REST API.\n * @param customPost - The customPost object.\n * @param customPost.path - Path of the endpoint, for example `1/newFeature`.\n * @param customPost.parameters - Query parameters to apply to the current query.\n * @param customPost.body - Parameters to send with the custom request.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customPost(\n { path, parameters, body }: CustomPostProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n if (!path) {\n throw new Error('Parameter `path` is required when calling `customPost`.');\n }\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: body ? body : {},\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * This method lets you send requests to the Algolia REST API.\n * @param customPut - The customPut object.\n * @param customPut.path - Path of the endpoint, for example `1/newFeature`.\n * @param customPut.parameters - Query parameters to apply to the current query.\n * @param customPut.body - Parameters to send with the custom request.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customPut(\n { path, parameters, body }: CustomPutProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n if (!path) {\n throw new Error('Parameter `path` is required when calling `customPut`.');\n }\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'PUT',\n path: requestPath,\n queryParameters,\n headers,\n data: body ? body : {},\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves known incidents for the selected clusters.\n * @param getClusterIncidents - The getClusterIncidents object.\n * @param getClusterIncidents.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getClusterIncidents(\n { clusters }: GetClusterIncidentsProps,\n requestOptions?: RequestOptions,\n ): Promise<IncidentsResponse> {\n if (!clusters) {\n throw new Error('Parameter `clusters` is required when calling `getClusterIncidents`.');\n }\n\n const requestPath = '/1/incidents/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves the status of selected clusters.\n * @param getClusterStatus - The getClusterStatus object.\n * @param getClusterStatus.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getClusterStatus({ clusters }: GetClusterStatusProps, requestOptions?: RequestOptions): Promise<StatusResponse> {\n if (!clusters) {\n throw new Error('Parameter `clusters` is required when calling `getClusterStatus`.');\n }\n\n const requestPath = '/1/status/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves known incidents for all clusters.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getIncidents(requestOptions?: RequestOptions | undefined): Promise<IncidentsResponse> {\n const requestPath = '/1/incidents';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves average times for indexing operations for selected clusters.\n * @param getIndexingTime - The getIndexingTime object.\n * @param getIndexingTime.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getIndexingTime(\n { clusters }: GetIndexingTimeProps,\n requestOptions?: RequestOptions,\n ): Promise<IndexingTimeResponse> {\n if (!clusters) {\n throw new Error('Parameter `clusters` is required when calling `getIndexingTime`.');\n }\n\n const requestPath = '/1/indexing/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves the average latency for search requests for selected clusters.\n * @param getLatency - The getLatency object.\n * @param getLatency.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getLatency({ clusters }: GetLatencyProps, requestOptions?: RequestOptions): Promise<LatencyResponse> {\n if (!clusters) {\n throw new Error('Parameter `clusters` is required when calling `getLatency`.');\n }\n\n const requestPath = '/1/latency/{clusters}'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves metrics related to your Algolia infrastructure, aggregated over a selected time window. Access to this API is available as part of the [Premium or Elevate plans](https://www.algolia.com/pricing). You must authenticate requests with the `x-algolia-application-id` and `x-algolia-api-key` headers (using the Monitoring API key).\n * @param getMetrics - The getMetrics object.\n * @param getMetrics.metric - Metric to report. For more information about the individual metrics, see the description of the API response. To include all metrics, use `*`.\n * @param getMetrics.period - Period over which to aggregate the metrics: - `minute`. Aggregate the last minute. 1 data point per 10 seconds. - `hour`. Aggregate the last hour. 1 data point per minute. - `day`. Aggregate the last day. 1 data point per 10 minutes. - `week`. Aggregate the last week. 1 data point per hour. - `month`. Aggregate the last month. 1 data point per day.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getMetrics({ metric, period }: GetMetricsProps, requestOptions?: RequestOptions): Promise<InfrastructureResponse> {\n if (!metric) {\n throw new Error('Parameter `metric` is required when calling `getMetrics`.');\n }\n\n if (!period) {\n throw new Error('Parameter `period` is required when calling `getMetrics`.');\n }\n\n const requestPath = '/1/infrastructure/{metric}/period/{period}'\n .replace('{metric}', encodeURIComponent(metric))\n .replace('{period}', encodeURIComponent(period));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Test whether clusters are reachable or not.\n * @param getReachability - The getReachability object.\n * @param getReachability.clusters - Subset of clusters, separated by commas.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getReachability(\n { clusters }: GetReachabilityProps,\n requestOptions?: RequestOptions,\n ): Promise<{ [key: string]: { [key: string]: boolean } }> {\n if (!clusters) {\n throw new Error('Parameter `clusters` is required when calling `getReachability`.');\n }\n\n const requestPath = '/1/reachability/{clusters}/probes'.replace('{clusters}', encodeURIComponent(clusters));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves the servers that belong to clusters. The response depends on whether you authenticate your API request: - With authentication, the response lists the servers assigned to your Algolia application\\'s cluster. - Without authentication, the response lists the servers for all Algolia clusters.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getServers(requestOptions?: RequestOptions | undefined): Promise<InventoryResponse> {\n const requestPath = '/1/inventory/servers';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves the status of all Algolia clusters and instances.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getStatus(requestOptions?: RequestOptions | undefined): Promise<StatusResponse> {\n const requestPath = '/1/status';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n };\n}\n"],"mappings":";AAUA,SAAS,YAAY,mBAAmB,uBAAuB;AAuBxD,IAAM,mBAAmB;AAEhC,SAAS,kBAA0B;AACjC,SAAO,CAAC,EAAE,KAAK,sBAAsB,QAAQ,aAAa,UAAU,QAAQ,CAAC;AAC/E;AAEO,SAAS,uBAAuB;AAAA,EACrC,OAAO;AAAA,EACP,QAAQ;AAAA,EACR;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAwB;AACtB,QAAM,OAAO,WAAW,aAAa,cAAc,QAAQ;AAC3D,QAAM,cAAc,kBAAkB;AAAA,IACpC,OAAO,gBAAgB;AAAA,IACvB,GAAG;AAAA,IACH,cAAc,gBAAgB;AAAA,MAC5B;AAAA,MACA,QAAQ;AAAA,MACR,SAAS;AAAA,IACX,CAAC;AAAA,IACD,aAAa;AAAA,MACX,gBAAgB;AAAA,MAChB,GAAG,KAAK,QAAQ;AAAA,MAChB,GAAG,QAAQ;AAAA,IACb;AAAA,IACA,qBAAqB;AAAA,MACnB,GAAG,KAAK,gBAAgB;AAAA,MACxB,GAAG,QAAQ;AAAA,IACb;AAAA,EACF,CAAC;AAED,SAAO;AAAA,IACL;AAAA;AAAA;AAAA;AAAA,IAKA,OAAO;AAAA;AAAA;AAAA;AAAA,IAKP,QAAQ;AAAA;AAAA;AAAA;AAAA,IAKR,aAA4B;AAC1B,aAAO,QAAQ,IAAI,CAAC,YAAY,cAAc,MAAM,GAAG,YAAY,eAAe,MAAM,CAAC,CAAC,EAAE,KAAK,MAAM,MAAS;AAAA,IAClH;AAAA;AAAA;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;AAAA,IACpD;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,WAAW,gBAAyE;AAClF,YAAM,cAAc;AACpB,YAAM,UAAmB,CAAC;AAC1B,YAAM,kBAAmC,CAAC;AAE1C,YAAM,UAAmB;AAAA,QACvB,QAAQ;AAAA,QACR,MAAM;AAAA,QACN;AAAA,QACA;AAAA,MACF;AAEA,aAAO,YAAY,QAAQ,SAAS,cAAc;AAAA,IACpD;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,UAAU,gBAAsE;AAC9E,YAAM,cAAc;AACpB,YAAM,UAAmB,CAAC;AAC1B,YAAM,kBAAmC,CAAC;AAE1C,YAAM,UAAmB;AAAA,QACvB,QAAQ;AAAA,QACR,MAAM;AAAA,QACN;AAAA,QACA;AAAA,MACF;AAEA,aAAO,YAAY,QAAQ,SAAS,cAAc;AAAA,IACpD;AAAA,EACF;AACF;","names":[]}
|
package/dist/worker.d.ts
CHANGED
|
@@ -13,54 +13,54 @@ type Incident = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Description of the incident.
|
|
15
15
|
*/
|
|
16
|
-
title?: string;
|
|
17
|
-
status?: Status;
|
|
16
|
+
title?: string | undefined;
|
|
17
|
+
status?: Status | undefined;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
type IncidentEntry = {
|
|
21
21
|
/**
|
|
22
22
|
* Timestamp, measured in milliseconds since the Unix epoch.
|
|
23
23
|
*/
|
|
24
|
-
t?: number;
|
|
25
|
-
v?: Incident;
|
|
24
|
+
t?: number | undefined;
|
|
25
|
+
v?: Incident | undefined;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
type IncidentsResponse = {
|
|
29
29
|
incidents?: {
|
|
30
30
|
[key: string]: Array<IncidentEntry>;
|
|
31
|
-
};
|
|
31
|
+
} | undefined;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
type TimeEntry = {
|
|
35
35
|
/**
|
|
36
36
|
* Timestamp, measured in milliseconds since the Unix epoch.
|
|
37
37
|
*/
|
|
38
|
-
t?: number;
|
|
38
|
+
t?: number | undefined;
|
|
39
39
|
/**
|
|
40
40
|
* Time in ms.
|
|
41
41
|
*/
|
|
42
|
-
v?: number;
|
|
42
|
+
v?: number | undefined;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
type IndexingMetric = {
|
|
46
46
|
indexing?: {
|
|
47
47
|
[key: string]: Array<TimeEntry>;
|
|
48
|
-
};
|
|
48
|
+
} | undefined;
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
type IndexingTimeResponse = {
|
|
52
|
-
metrics?: IndexingMetric;
|
|
52
|
+
metrics?: IndexingMetric | undefined;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
type ProbesMetric = {
|
|
56
56
|
/**
|
|
57
57
|
* Timestamp, measured in milliseconds since the Unix epoch.
|
|
58
58
|
*/
|
|
59
|
-
t?: number;
|
|
59
|
+
t?: number | undefined;
|
|
60
60
|
/**
|
|
61
61
|
* Value of the metric.
|
|
62
62
|
*/
|
|
63
|
-
v?: number;
|
|
63
|
+
v?: number | undefined;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
type Metrics = {
|
|
@@ -69,35 +69,35 @@ type Metrics = {
|
|
|
69
69
|
*/
|
|
70
70
|
cpu_usage?: {
|
|
71
71
|
[key: string]: Array<ProbesMetric>;
|
|
72
|
-
};
|
|
72
|
+
} | undefined;
|
|
73
73
|
/**
|
|
74
74
|
* RAM used for indexing in MB.
|
|
75
75
|
*/
|
|
76
76
|
ram_indexing_usage?: {
|
|
77
77
|
[key: string]: Array<ProbesMetric>;
|
|
78
|
-
};
|
|
78
|
+
} | undefined;
|
|
79
79
|
/**
|
|
80
80
|
* RAM used for search in MB.
|
|
81
81
|
*/
|
|
82
82
|
ram_search_usage?: {
|
|
83
83
|
[key: string]: Array<ProbesMetric>;
|
|
84
|
-
};
|
|
84
|
+
} | undefined;
|
|
85
85
|
/**
|
|
86
86
|
* Solid-state disk (SSD) usage expressed as % of RAM. 0% means no SSD usage. A value of 50% indicates 32 GB SSD usage for a machine with 64 RAM.
|
|
87
87
|
*/
|
|
88
88
|
ssd_usage?: {
|
|
89
89
|
[key: string]: Array<ProbesMetric>;
|
|
90
|
-
};
|
|
90
|
+
} | undefined;
|
|
91
91
|
/**
|
|
92
92
|
* Average build time of the indices in seconds.
|
|
93
93
|
*/
|
|
94
94
|
avg_build_time?: {
|
|
95
95
|
[key: string]: Array<ProbesMetric>;
|
|
96
|
-
};
|
|
96
|
+
} | undefined;
|
|
97
97
|
};
|
|
98
98
|
|
|
99
99
|
type InfrastructureResponse = {
|
|
100
|
-
metrics?: Metrics;
|
|
100
|
+
metrics?: Metrics | undefined;
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
/**
|
|
@@ -113,42 +113,42 @@ type Server = {
|
|
|
113
113
|
/**
|
|
114
114
|
* Server name.
|
|
115
115
|
*/
|
|
116
|
-
name?: string;
|
|
117
|
-
region?: Region;
|
|
116
|
+
name?: string | undefined;
|
|
117
|
+
region?: Region | undefined;
|
|
118
118
|
/**
|
|
119
119
|
* Included to support legacy applications. Use `is_replica` instead.
|
|
120
120
|
*/
|
|
121
|
-
is_slave?: boolean;
|
|
121
|
+
is_slave?: boolean | undefined;
|
|
122
122
|
/**
|
|
123
123
|
* Whether this server is a replica of another server.
|
|
124
124
|
*/
|
|
125
|
-
is_replica?: boolean;
|
|
125
|
+
is_replica?: boolean | undefined;
|
|
126
126
|
/**
|
|
127
127
|
* Name of the cluster to which this server belongs.
|
|
128
128
|
*/
|
|
129
|
-
cluster?: string;
|
|
130
|
-
status?: ServerStatus;
|
|
131
|
-
type?: Type;
|
|
129
|
+
cluster?: string | undefined;
|
|
130
|
+
status?: ServerStatus | undefined;
|
|
131
|
+
type?: Type | undefined;
|
|
132
132
|
};
|
|
133
133
|
|
|
134
134
|
type InventoryResponse = {
|
|
135
|
-
inventory?: Array<Server
|
|
135
|
+
inventory?: Array<Server> | undefined;
|
|
136
136
|
};
|
|
137
137
|
|
|
138
138
|
type LatencyMetric = {
|
|
139
139
|
latency?: {
|
|
140
140
|
[key: string]: Array<TimeEntry>;
|
|
141
|
-
};
|
|
141
|
+
} | undefined;
|
|
142
142
|
};
|
|
143
143
|
|
|
144
144
|
type LatencyResponse = {
|
|
145
|
-
metrics?: LatencyMetric;
|
|
145
|
+
metrics?: LatencyMetric | undefined;
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
type StatusResponse = {
|
|
149
149
|
status?: {
|
|
150
150
|
[key: string]: Status;
|
|
151
|
-
};
|
|
151
|
+
} | undefined;
|
|
152
152
|
};
|
|
153
153
|
|
|
154
154
|
type Metric = 'avg_build_time' | 'ssd_usage' | 'ram_search_usage' | 'ram_indexing_usage' | 'cpu_usage' | '*';
|
|
@@ -160,7 +160,7 @@ type Period = 'minute' | 'hour' | 'day' | 'week' | 'month';
|
|
|
160
160
|
*/
|
|
161
161
|
type CustomDeleteProps = {
|
|
162
162
|
/**
|
|
163
|
-
* Path of the endpoint,
|
|
163
|
+
* Path of the endpoint, for example `1/newFeature`.
|
|
164
164
|
*/
|
|
165
165
|
path: string;
|
|
166
166
|
/**
|
|
@@ -168,14 +168,14 @@ type CustomDeleteProps = {
|
|
|
168
168
|
*/
|
|
169
169
|
parameters?: {
|
|
170
170
|
[key: string]: any;
|
|
171
|
-
};
|
|
171
|
+
} | undefined;
|
|
172
172
|
};
|
|
173
173
|
/**
|
|
174
174
|
* Properties for the `customGet` method.
|
|
175
175
|
*/
|
|
176
176
|
type CustomGetProps = {
|
|
177
177
|
/**
|
|
178
|
-
* Path of the endpoint,
|
|
178
|
+
* Path of the endpoint, for example `1/newFeature`.
|
|
179
179
|
*/
|
|
180
180
|
path: string;
|
|
181
181
|
/**
|
|
@@ -183,14 +183,14 @@ type CustomGetProps = {
|
|
|
183
183
|
*/
|
|
184
184
|
parameters?: {
|
|
185
185
|
[key: string]: any;
|
|
186
|
-
};
|
|
186
|
+
} | undefined;
|
|
187
187
|
};
|
|
188
188
|
/**
|
|
189
189
|
* Properties for the `customPost` method.
|
|
190
190
|
*/
|
|
191
191
|
type CustomPostProps = {
|
|
192
192
|
/**
|
|
193
|
-
* Path of the endpoint,
|
|
193
|
+
* Path of the endpoint, for example `1/newFeature`.
|
|
194
194
|
*/
|
|
195
195
|
path: string;
|
|
196
196
|
/**
|
|
@@ -198,18 +198,18 @@ type CustomPostProps = {
|
|
|
198
198
|
*/
|
|
199
199
|
parameters?: {
|
|
200
200
|
[key: string]: any;
|
|
201
|
-
};
|
|
201
|
+
} | undefined;
|
|
202
202
|
/**
|
|
203
203
|
* Parameters to send with the custom request.
|
|
204
204
|
*/
|
|
205
|
-
body?: Record<string, unknown
|
|
205
|
+
body?: Record<string, unknown> | undefined;
|
|
206
206
|
};
|
|
207
207
|
/**
|
|
208
208
|
* Properties for the `customPut` method.
|
|
209
209
|
*/
|
|
210
210
|
type CustomPutProps = {
|
|
211
211
|
/**
|
|
212
|
-
* Path of the endpoint,
|
|
212
|
+
* Path of the endpoint, for example `1/newFeature`.
|
|
213
213
|
*/
|
|
214
214
|
path: string;
|
|
215
215
|
/**
|
|
@@ -217,11 +217,11 @@ type CustomPutProps = {
|
|
|
217
217
|
*/
|
|
218
218
|
parameters?: {
|
|
219
219
|
[key: string]: any;
|
|
220
|
-
};
|
|
220
|
+
} | undefined;
|
|
221
221
|
/**
|
|
222
222
|
* Parameters to send with the custom request.
|
|
223
223
|
*/
|
|
224
|
-
body?: Record<string, unknown
|
|
224
|
+
body?: Record<string, unknown> | undefined;
|
|
225
225
|
};
|
|
226
226
|
/**
|
|
227
227
|
* Properties for the `getClusterIncidents` method.
|
|
@@ -282,7 +282,7 @@ type GetReachabilityProps = {
|
|
|
282
282
|
clusters: string;
|
|
283
283
|
};
|
|
284
284
|
|
|
285
|
-
declare const apiClientVersion = "1.
|
|
285
|
+
declare const apiClientVersion = "1.29.0";
|
|
286
286
|
declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
287
287
|
transporter: _algolia_client_common.Transporter;
|
|
288
288
|
/**
|
|
@@ -307,7 +307,7 @@ declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOpti
|
|
|
307
307
|
* @param segment - The algolia agent (user-agent) segment to add.
|
|
308
308
|
* @param version - The version of the agent.
|
|
309
309
|
*/
|
|
310
|
-
addAlgoliaAgent(segment: string, version?: string): void;
|
|
310
|
+
addAlgoliaAgent(segment: string, version?: string | undefined): void;
|
|
311
311
|
/**
|
|
312
312
|
* Helper method to switch the API key used to authenticate the requests.
|
|
313
313
|
*
|
|
@@ -320,7 +320,7 @@ declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOpti
|
|
|
320
320
|
/**
|
|
321
321
|
* This method lets you send requests to the Algolia REST API.
|
|
322
322
|
* @param customDelete - The customDelete object.
|
|
323
|
-
* @param customDelete.path - Path of the endpoint,
|
|
323
|
+
* @param customDelete.path - Path of the endpoint, for example `1/newFeature`.
|
|
324
324
|
* @param customDelete.parameters - Query parameters to apply to the current query.
|
|
325
325
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
326
326
|
*/
|
|
@@ -328,7 +328,7 @@ declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOpti
|
|
|
328
328
|
/**
|
|
329
329
|
* This method lets you send requests to the Algolia REST API.
|
|
330
330
|
* @param customGet - The customGet object.
|
|
331
|
-
* @param customGet.path - Path of the endpoint,
|
|
331
|
+
* @param customGet.path - Path of the endpoint, for example `1/newFeature`.
|
|
332
332
|
* @param customGet.parameters - Query parameters to apply to the current query.
|
|
333
333
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
334
334
|
*/
|
|
@@ -336,7 +336,7 @@ declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOpti
|
|
|
336
336
|
/**
|
|
337
337
|
* This method lets you send requests to the Algolia REST API.
|
|
338
338
|
* @param customPost - The customPost object.
|
|
339
|
-
* @param customPost.path - Path of the endpoint,
|
|
339
|
+
* @param customPost.path - Path of the endpoint, for example `1/newFeature`.
|
|
340
340
|
* @param customPost.parameters - Query parameters to apply to the current query.
|
|
341
341
|
* @param customPost.body - Parameters to send with the custom request.
|
|
342
342
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -345,7 +345,7 @@ declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOpti
|
|
|
345
345
|
/**
|
|
346
346
|
* This method lets you send requests to the Algolia REST API.
|
|
347
347
|
* @param customPut - The customPut object.
|
|
348
|
-
* @param customPut.path - Path of the endpoint,
|
|
348
|
+
* @param customPut.path - Path of the endpoint, for example `1/newFeature`.
|
|
349
349
|
* @param customPut.parameters - Query parameters to apply to the current query.
|
|
350
350
|
* @param customPut.body - Parameters to send with the custom request.
|
|
351
351
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -369,7 +369,7 @@ declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOpti
|
|
|
369
369
|
* Retrieves known incidents for all clusters.
|
|
370
370
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
371
371
|
*/
|
|
372
|
-
getIncidents(requestOptions?: RequestOptions): Promise<IncidentsResponse>;
|
|
372
|
+
getIncidents(requestOptions?: RequestOptions | undefined): Promise<IncidentsResponse>;
|
|
373
373
|
/**
|
|
374
374
|
* Retrieves average times for indexing operations for selected clusters.
|
|
375
375
|
* @param getIndexingTime - The getIndexingTime object.
|
|
@@ -407,35 +407,35 @@ declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOpti
|
|
|
407
407
|
* Retrieves the servers that belong to clusters. The response depends on whether you authenticate your API request: - With authentication, the response lists the servers assigned to your Algolia application\'s cluster. - Without authentication, the response lists the servers for all Algolia clusters.
|
|
408
408
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
409
409
|
*/
|
|
410
|
-
getServers(requestOptions?: RequestOptions): Promise<InventoryResponse>;
|
|
410
|
+
getServers(requestOptions?: RequestOptions | undefined): Promise<InventoryResponse>;
|
|
411
411
|
/**
|
|
412
412
|
* Retrieves the status of all Algolia clusters and instances.
|
|
413
413
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
414
414
|
*/
|
|
415
|
-
getStatus(requestOptions?: RequestOptions): Promise<StatusResponse>;
|
|
415
|
+
getStatus(requestOptions?: RequestOptions | undefined): Promise<StatusResponse>;
|
|
416
416
|
};
|
|
417
417
|
|
|
418
418
|
type BadRequest = {
|
|
419
|
-
reason?: string;
|
|
419
|
+
reason?: string | undefined;
|
|
420
420
|
};
|
|
421
421
|
|
|
422
422
|
/**
|
|
423
423
|
* Error.
|
|
424
424
|
*/
|
|
425
425
|
type ErrorBase = Record<string, any> & {
|
|
426
|
-
message?: string;
|
|
426
|
+
message?: string | undefined;
|
|
427
427
|
};
|
|
428
428
|
|
|
429
429
|
type Forbidden = {
|
|
430
|
-
reason?: string;
|
|
430
|
+
reason?: string | undefined;
|
|
431
431
|
};
|
|
432
432
|
|
|
433
433
|
type Unauthorized = {
|
|
434
|
-
reason?: string;
|
|
434
|
+
reason?: string | undefined;
|
|
435
435
|
};
|
|
436
436
|
|
|
437
437
|
type MonitoringClient = ReturnType<typeof createMonitoringClient>;
|
|
438
438
|
|
|
439
|
-
declare function monitoringClient(appId: string, apiKey: string, options?: ClientOptions): MonitoringClient;
|
|
439
|
+
declare function monitoringClient(appId: string, apiKey: string, options?: ClientOptions | undefined): MonitoringClient;
|
|
440
440
|
|
|
441
441
|
export { type BadRequest, type CustomDeleteProps, type CustomGetProps, type CustomPostProps, type CustomPutProps, type ErrorBase, type Forbidden, type GetClusterIncidentsProps, type GetClusterStatusProps, type GetIndexingTimeProps, type GetLatencyProps, type GetMetricsProps, type GetReachabilityProps, type Incident, type IncidentEntry, type IncidentsResponse, type IndexingMetric, type IndexingTimeResponse, type InfrastructureResponse, type InventoryResponse, type LatencyMetric, type LatencyResponse, type Metric, type Metrics, type MonitoringClient, type Period, type ProbesMetric, type Region, type Server, type ServerStatus, type Status, type StatusResponse, type TimeEntry, type Type, type Unauthorized, apiClientVersion, monitoringClient };
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.29.0",
|
|
3
3
|
"repository": {
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"index.d.ts"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@algolia/client-common": "5.
|
|
53
|
-
"@algolia/requester-browser-xhr": "5.
|
|
54
|
-
"@algolia/requester-fetch": "5.
|
|
55
|
-
"@algolia/requester-node-http": "5.
|
|
52
|
+
"@algolia/client-common": "5.29.0",
|
|
53
|
+
"@algolia/requester-browser-xhr": "5.29.0",
|
|
54
|
+
"@algolia/requester-fetch": "5.29.0",
|
|
55
|
+
"@algolia/requester-node-http": "5.29.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@arethetypeswrong/cli": "0.18.
|
|
59
|
-
"@types/node": "22.15.
|
|
58
|
+
"@arethetypeswrong/cli": "0.18.2",
|
|
59
|
+
"@types/node": "22.15.31",
|
|
60
60
|
"publint": "0.3.12",
|
|
61
61
|
"rollup": "4.41.0",
|
|
62
62
|
"tsup": "8.5.0",
|