mixpeek 0.81.19 → 0.81.21

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 (29) hide show
  1. package/dist/api/analytics-api.d.ts +47 -0
  2. package/dist/api/analytics-api.d.ts.map +1 -1
  3. package/dist/api/analytics-namespaces-api.d.ts +47 -0
  4. package/dist/api/analytics-namespaces-api.d.ts.map +1 -1
  5. package/dist/index.js +52 -0
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +52 -0
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/client.d.ts +132 -0
  10. package/dist/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/client.d.ts.map +1 -0
  11. package/dist/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/index.d.ts +7 -0
  12. package/dist/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/index.d.ts.map +1 -0
  13. package/dist/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/client.d.ts +132 -0
  14. package/dist/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/client.d.ts.map +1 -0
  15. package/dist/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/index.d.ts +7 -0
  16. package/dist/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/index.d.ts.map +1 -0
  17. package/dist/models/execution-detail.d.ts +6 -0
  18. package/dist/models/execution-detail.d.ts.map +1 -1
  19. package/dist/models/index.d.ts +2 -0
  20. package/dist/models/index.d.ts.map +1 -1
  21. package/dist/models/namespace-errors-response.d.ts +50 -0
  22. package/dist/models/namespace-errors-response.d.ts.map +1 -0
  23. package/dist/models/resource-error-count.d.ts +31 -0
  24. package/dist/models/resource-error-count.d.ts.map +1 -0
  25. package/dist/models/retriever-config.d.ts +6 -0
  26. package/dist/models/retriever-config.d.ts.map +1 -1
  27. package/dist/models/retriever-model-output.d.ts +6 -0
  28. package/dist/models/retriever-model-output.d.ts.map +1 -1
  29. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -2901,6 +2901,34 @@ var AnalyticsApiAxiosParamCreator = function(configuration) {
2901
2901
  options: localVarRequestOptions
2902
2902
  };
2903
2903
  },
2904
+ /**
2905
+ * Batch error/failure counts for every collection & cluster in the namespace.
2906
+ * @summary Get Namespace Errors
2907
+ * @param {number} [hours] Hours of history to analyze
2908
+ * @param {*} [options] Override http request option.
2909
+ * @throws {RequiredError}
2910
+ */
2911
+ getNamespaceErrorsAnalytics: async (hours, options = {}) => {
2912
+ const localVarPath = `/v1/analytics/namespaces/errors`;
2913
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2914
+ let baseOptions;
2915
+ if (configuration) {
2916
+ baseOptions = configuration.baseOptions;
2917
+ }
2918
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2919
+ const localVarHeaderParameter = {};
2920
+ const localVarQueryParameter = {};
2921
+ if (hours !== void 0) {
2922
+ localVarQueryParameter["hours"] = hours;
2923
+ }
2924
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2925
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2926
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2927
+ return {
2928
+ url: toPathString(localVarUrlObj),
2929
+ options: localVarRequestOptions
2930
+ };
2931
+ },
2904
2932
  /**
2905
2933
  * Get comprehensive namespace optimization summary. Provides a complete overview of namespace performance including: - Top index recommendations - Most queried fields - Slowest fields - Compound index opportunities - Summary statistics **Use Cases:** - Get full optimization picture - Regular performance reviews - Database health checks - Planning optimization work **Response Includes:** - Summary statistics (field counts, priority levels) - Top 10 index recommendations - Top 10 most queried fields - Top 10 slowest fields - Top 10 compound index opportunities **Recommended Workflow:** 1. Call this endpoint for overview 2. Use specific endpoints for details 3. Implement high-priority recommendations 4. Monitor improvement over time **Example:** ```bash curl -X GET \"https://api.mixpeek.com/v1/analytics/namespaces/summary?days=30\" \\ -H \"Authorization: Bearer YOUR_API_KEY\" \\ -H \"X-Namespace: your-namespace\" ```
2906
2934
  * @summary Get Namespace Summary
@@ -3702,6 +3730,19 @@ var AnalyticsApiFp = function(configuration) {
3702
3730
  const localVarOperationServerBasePath = operationServerMap["AnalyticsApi.getMostQueriedFieldsAnalyticsNamespaces"]?.[localVarOperationServerIndex]?.url;
3703
3731
  return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios5, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
3704
3732
  },
3733
+ /**
3734
+ * Batch error/failure counts for every collection & cluster in the namespace.
3735
+ * @summary Get Namespace Errors
3736
+ * @param {number} [hours] Hours of history to analyze
3737
+ * @param {*} [options] Override http request option.
3738
+ * @throws {RequiredError}
3739
+ */
3740
+ async getNamespaceErrorsAnalytics(hours, options) {
3741
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getNamespaceErrorsAnalytics(hours, options);
3742
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3743
+ const localVarOperationServerBasePath = operationServerMap["AnalyticsApi.getNamespaceErrorsAnalytics"]?.[localVarOperationServerIndex]?.url;
3744
+ return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios5, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
3745
+ },
3705
3746
  /**
3706
3747
  * Get comprehensive namespace optimization summary. Provides a complete overview of namespace performance including: - Top index recommendations - Most queried fields - Slowest fields - Compound index opportunities - Summary statistics **Use Cases:** - Get full optimization picture - Regular performance reviews - Database health checks - Planning optimization work **Response Includes:** - Summary statistics (field counts, priority levels) - Top 10 index recommendations - Top 10 most queried fields - Top 10 slowest fields - Top 10 compound index opportunities **Recommended Workflow:** 1. Call this endpoint for overview 2. Use specific endpoints for details 3. Implement high-priority recommendations 4. Monitor improvement over time **Example:** ```bash curl -X GET \"https://api.mixpeek.com/v1/analytics/namespaces/summary?days=30\" \\ -H \"Authorization: Bearer YOUR_API_KEY\" \\ -H \"X-Namespace: your-namespace\" ```
3707
3748
  * @summary Get Namespace Summary
@@ -4187,6 +4228,17 @@ var AnalyticsApi = class extends BaseAPI {
4187
4228
  getMostQueriedFieldsAnalyticsNamespaces(requestParameters = {}, options) {
4188
4229
  return AnalyticsApiFp(this.configuration).getMostQueriedFieldsAnalyticsNamespaces(requestParameters.days, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
4189
4230
  }
4231
+ /**
4232
+ * Batch error/failure counts for every collection & cluster in the namespace.
4233
+ * @summary Get Namespace Errors
4234
+ * @param {AnalyticsApiGetNamespaceErrorsAnalyticsRequest} requestParameters Request parameters.
4235
+ * @param {*} [options] Override http request option.
4236
+ * @throws {RequiredError}
4237
+ * @memberof AnalyticsApi
4238
+ */
4239
+ getNamespaceErrorsAnalytics(requestParameters = {}, options) {
4240
+ return AnalyticsApiFp(this.configuration).getNamespaceErrorsAnalytics(requestParameters.hours, options).then((request) => request(this.axios, this.basePath));
4241
+ }
4190
4242
  /**
4191
4243
  * Get comprehensive namespace optimization summary. Provides a complete overview of namespace performance including: - Top index recommendations - Most queried fields - Slowest fields - Compound index opportunities - Summary statistics **Use Cases:** - Get full optimization picture - Regular performance reviews - Database health checks - Planning optimization work **Response Includes:** - Summary statistics (field counts, priority levels) - Top 10 index recommendations - Top 10 most queried fields - Top 10 slowest fields - Top 10 compound index opportunities **Recommended Workflow:** 1. Call this endpoint for overview 2. Use specific endpoints for details 3. Implement high-priority recommendations 4. Monitor improvement over time **Example:** ```bash curl -X GET \"https://api.mixpeek.com/v1/analytics/namespaces/summary?days=30\" \\ -H \"Authorization: Bearer YOUR_API_KEY\" \\ -H \"X-Namespace: your-namespace\" ```
4192
4244
  * @summary Get Namespace Summary