hanzoai 2.0.5 → 2.0.6

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.
@@ -1,181 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Hanzo Cloud — Unified API (V8 · Open Edition)
6
- * The single unified OpenAPI surface for ALL Hanzo services, aggregated from the per-service specs. Every route is https://api.hanzo.ai/v1/<service>/_*. Grouped by the canonical domains in capabilities.yaml (the ONE registry). cloud/openapi.yaml is hanzoai/cloud\'s own woven document, copied verbatim by sync.py, and it wins wherever it and a hand-written spec describe the same route. Regenerated by merge.py — edit the per-service <svc>/openapi.yaml + capabilities.yaml, not this file.
7
- *
8
- * The version of the OpenAPI document: 8.0.0
9
- * Contact: support@hanzo.ai
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.SearchDocsApi = exports.SearchDocsApiFactory = exports.SearchDocsApiFp = exports.SearchDocsApiAxiosParamCreator = void 0;
20
- const axios_1 = __importDefault(require("axios"));
21
- // Some imports not used depending on template conditions
22
- // @ts-ignore
23
- const common_1 = require("../common");
24
- // @ts-ignore
25
- const base_1 = require("../base");
26
- /**
27
- * SearchDocsApi - axios parameter creator
28
- * @export
29
- */
30
- const SearchDocsApiAxiosParamCreator = function (configuration) {
31
- return {
32
- /**
33
- * Lists the search indexes with their document counts and timestamps. It reads the in-cluster Meilisearch service and reshapes its /stats and /indexes replies into the rows the console\'s Search panel renders. The read is degrade-friendly by design: an unreachable Meilisearch answers 200 with an EMPTY list, so the panel shows an honest empty state instead of an error. createdAt falls back to now and lastIndexedAt to null when the index list is unavailable.
34
- * @summary Lists the search indexes with their document counts and timestamps.
35
- * @param {*} [options] Override http request option.
36
- * @throws {RequiredError}
37
- */
38
- cloudGetV1SearchDocsIndexes: async (options = {}) => {
39
- const localVarPath = `/v1/search-docs/indexes`;
40
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
41
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
42
- let baseOptions;
43
- if (configuration) {
44
- baseOptions = configuration.baseOptions;
45
- }
46
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
47
- const localVarHeaderParameter = {};
48
- const localVarQueryParameter = {};
49
- // authentication bearerAuth required
50
- // http bearer authentication required
51
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
52
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
53
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
55
- return {
56
- url: (0, common_1.toPathString)(localVarUrlObj),
57
- options: localVarRequestOptions,
58
- };
59
- },
60
- /**
61
- * Totals the documents across every search index. totalDocuments is summed from Meilisearch\'s own per-index counts. The other three fields are structurally zero rather than estimated: Meilisearch keeps no query-history counters, so searches, sessions and the per-day series are not derivable from the index and this surface reports the honest zero instead of a fabricated number. An unreachable Meilisearch answers 200 with all zeros.
62
- * @summary Totals the documents across every search index.
63
- * @param {*} [options] Override http request option.
64
- * @throws {RequiredError}
65
- */
66
- cloudGetV1SearchDocsStats: async (options = {}) => {
67
- const localVarPath = `/v1/search-docs/stats`;
68
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
69
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
70
- let baseOptions;
71
- if (configuration) {
72
- baseOptions = configuration.baseOptions;
73
- }
74
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
75
- const localVarHeaderParameter = {};
76
- const localVarQueryParameter = {};
77
- // authentication bearerAuth required
78
- // http bearer authentication required
79
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
80
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
81
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
82
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
83
- return {
84
- url: (0, common_1.toPathString)(localVarUrlObj),
85
- options: localVarRequestOptions,
86
- };
87
- },
88
- };
89
- };
90
- exports.SearchDocsApiAxiosParamCreator = SearchDocsApiAxiosParamCreator;
91
- /**
92
- * SearchDocsApi - functional programming interface
93
- * @export
94
- */
95
- const SearchDocsApiFp = function (configuration) {
96
- const localVarAxiosParamCreator = (0, exports.SearchDocsApiAxiosParamCreator)(configuration);
97
- return {
98
- /**
99
- * Lists the search indexes with their document counts and timestamps. It reads the in-cluster Meilisearch service and reshapes its /stats and /indexes replies into the rows the console\'s Search panel renders. The read is degrade-friendly by design: an unreachable Meilisearch answers 200 with an EMPTY list, so the panel shows an honest empty state instead of an error. createdAt falls back to now and lastIndexedAt to null when the index list is unavailable.
100
- * @summary Lists the search indexes with their document counts and timestamps.
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- */
104
- async cloudGetV1SearchDocsIndexes(options) {
105
- const localVarAxiosArgs = await localVarAxiosParamCreator.cloudGetV1SearchDocsIndexes(options);
106
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
107
- const localVarOperationServerBasePath = base_1.operationServerMap['SearchDocsApi.cloudGetV1SearchDocsIndexes']?.[localVarOperationServerIndex]?.url;
108
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
109
- },
110
- /**
111
- * Totals the documents across every search index. totalDocuments is summed from Meilisearch\'s own per-index counts. The other three fields are structurally zero rather than estimated: Meilisearch keeps no query-history counters, so searches, sessions and the per-day series are not derivable from the index and this surface reports the honest zero instead of a fabricated number. An unreachable Meilisearch answers 200 with all zeros.
112
- * @summary Totals the documents across every search index.
113
- * @param {*} [options] Override http request option.
114
- * @throws {RequiredError}
115
- */
116
- async cloudGetV1SearchDocsStats(options) {
117
- const localVarAxiosArgs = await localVarAxiosParamCreator.cloudGetV1SearchDocsStats(options);
118
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
119
- const localVarOperationServerBasePath = base_1.operationServerMap['SearchDocsApi.cloudGetV1SearchDocsStats']?.[localVarOperationServerIndex]?.url;
120
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
121
- },
122
- };
123
- };
124
- exports.SearchDocsApiFp = SearchDocsApiFp;
125
- /**
126
- * SearchDocsApi - factory interface
127
- * @export
128
- */
129
- const SearchDocsApiFactory = function (configuration, basePath, axios) {
130
- const localVarFp = (0, exports.SearchDocsApiFp)(configuration);
131
- return {
132
- /**
133
- * Lists the search indexes with their document counts and timestamps. It reads the in-cluster Meilisearch service and reshapes its /stats and /indexes replies into the rows the console\'s Search panel renders. The read is degrade-friendly by design: an unreachable Meilisearch answers 200 with an EMPTY list, so the panel shows an honest empty state instead of an error. createdAt falls back to now and lastIndexedAt to null when the index list is unavailable.
134
- * @summary Lists the search indexes with their document counts and timestamps.
135
- * @param {*} [options] Override http request option.
136
- * @throws {RequiredError}
137
- */
138
- cloudGetV1SearchDocsIndexes(options) {
139
- return localVarFp.cloudGetV1SearchDocsIndexes(options).then((request) => request(axios, basePath));
140
- },
141
- /**
142
- * Totals the documents across every search index. totalDocuments is summed from Meilisearch\'s own per-index counts. The other three fields are structurally zero rather than estimated: Meilisearch keeps no query-history counters, so searches, sessions and the per-day series are not derivable from the index and this surface reports the honest zero instead of a fabricated number. An unreachable Meilisearch answers 200 with all zeros.
143
- * @summary Totals the documents across every search index.
144
- * @param {*} [options] Override http request option.
145
- * @throws {RequiredError}
146
- */
147
- cloudGetV1SearchDocsStats(options) {
148
- return localVarFp.cloudGetV1SearchDocsStats(options).then((request) => request(axios, basePath));
149
- },
150
- };
151
- };
152
- exports.SearchDocsApiFactory = SearchDocsApiFactory;
153
- /**
154
- * SearchDocsApi - object-oriented interface
155
- * @export
156
- * @class SearchDocsApi
157
- * @extends {BaseAPI}
158
- */
159
- class SearchDocsApi extends base_1.BaseAPI {
160
- /**
161
- * Lists the search indexes with their document counts and timestamps. It reads the in-cluster Meilisearch service and reshapes its /stats and /indexes replies into the rows the console\'s Search panel renders. The read is degrade-friendly by design: an unreachable Meilisearch answers 200 with an EMPTY list, so the panel shows an honest empty state instead of an error. createdAt falls back to now and lastIndexedAt to null when the index list is unavailable.
162
- * @summary Lists the search indexes with their document counts and timestamps.
163
- * @param {*} [options] Override http request option.
164
- * @throws {RequiredError}
165
- * @memberof SearchDocsApi
166
- */
167
- cloudGetV1SearchDocsIndexes(options) {
168
- return (0, exports.SearchDocsApiFp)(this.configuration).cloudGetV1SearchDocsIndexes(options).then((request) => request(this.axios, this.basePath));
169
- }
170
- /**
171
- * Totals the documents across every search index. totalDocuments is summed from Meilisearch\'s own per-index counts. The other three fields are structurally zero rather than estimated: Meilisearch keeps no query-history counters, so searches, sessions and the per-day series are not derivable from the index and this surface reports the honest zero instead of a fabricated number. An unreachable Meilisearch answers 200 with all zeros.
172
- * @summary Totals the documents across every search index.
173
- * @param {*} [options] Override http request option.
174
- * @throws {RequiredError}
175
- * @memberof SearchDocsApi
176
- */
177
- cloudGetV1SearchDocsStats(options) {
178
- return (0, exports.SearchDocsApiFp)(this.configuration).cloudGetV1SearchDocsStats(options).then((request) => request(this.axios, this.basePath));
179
- }
180
- }
181
- exports.SearchDocsApi = SearchDocsApi;
@@ -1,87 +0,0 @@
1
- /**
2
- * Hanzo Cloud — Unified API (V8 · Open Edition)
3
- * The single unified OpenAPI surface for ALL Hanzo services, aggregated from the per-service specs. Every route is https://api.hanzo.ai/v1/<service>/_*. Grouped by the canonical domains in capabilities.yaml (the ONE registry). cloud/openapi.yaml is hanzoai/cloud\'s own woven document, copied verbatim by sync.py, and it wins wherever it and a hand-written spec describe the same route. Regenerated by merge.py — edit the per-service <svc>/openapi.yaml + capabilities.yaml, not this file.
4
- *
5
- * The version of the OpenAPI document: 8.0.0
6
- * Contact: support@hanzo.ai
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { Configuration } from '../configuration';
13
- import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
- import { type RequestArgs, BaseAPI } from '../base';
15
- import type { CloudEmbedStatusResp } from '../models';
16
- /**
17
- * EmbedStatusApi - axios parameter creator
18
- * @export
19
- */
20
- export declare const EmbedStatusApiAxiosParamCreator: (configuration?: Configuration) => {
21
- /**
22
- * EmbedStatus reports whether one of this brand\'s shared embedded apps (cms, erp, help) may be framed by the caller and is actually running, so a console module can choose between the embed and the provision panel. It answers two questions the browser cannot answer for itself. ENTITLEMENT is server-authoritative: each app is a single shared per-BRAND instance, so only a member of the owning brand org — or a SuperAdmin — is given the embed URL; every other caller gets phase \"not-entitled\" and no URL. REACHABILITY is a probe of that origin, which a cross-origin page cannot read for itself. The probed host is always <app>.<this deployment\'s own brand domain>: no part of it comes from the request, so this can never be steered into probing an arbitrary origin.
23
- * @summary EmbedStatus reports whether one of this brand\'s shared embedded apps (cms, erp, help) may be framed by the caller and is actually running, so a console module can choose between the embed and the provision panel.
24
- * @param {string} [app] App is the embedded app to report on: cms (Content Studio), erp or help.
25
- * @param {*} [options] Override http request option.
26
- * @throws {RequiredError}
27
- */
28
- cloudGetV1EmbedStatus: (app?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29
- };
30
- /**
31
- * EmbedStatusApi - functional programming interface
32
- * @export
33
- */
34
- export declare const EmbedStatusApiFp: (configuration?: Configuration) => {
35
- /**
36
- * EmbedStatus reports whether one of this brand\'s shared embedded apps (cms, erp, help) may be framed by the caller and is actually running, so a console module can choose between the embed and the provision panel. It answers two questions the browser cannot answer for itself. ENTITLEMENT is server-authoritative: each app is a single shared per-BRAND instance, so only a member of the owning brand org — or a SuperAdmin — is given the embed URL; every other caller gets phase \"not-entitled\" and no URL. REACHABILITY is a probe of that origin, which a cross-origin page cannot read for itself. The probed host is always <app>.<this deployment\'s own brand domain>: no part of it comes from the request, so this can never be steered into probing an arbitrary origin.
37
- * @summary EmbedStatus reports whether one of this brand\'s shared embedded apps (cms, erp, help) may be framed by the caller and is actually running, so a console module can choose between the embed and the provision panel.
38
- * @param {string} [app] App is the embedded app to report on: cms (Content Studio), erp or help.
39
- * @param {*} [options] Override http request option.
40
- * @throws {RequiredError}
41
- */
42
- cloudGetV1EmbedStatus(app?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CloudEmbedStatusResp>>;
43
- };
44
- /**
45
- * EmbedStatusApi - factory interface
46
- * @export
47
- */
48
- export declare const EmbedStatusApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
49
- /**
50
- * EmbedStatus reports whether one of this brand\'s shared embedded apps (cms, erp, help) may be framed by the caller and is actually running, so a console module can choose between the embed and the provision panel. It answers two questions the browser cannot answer for itself. ENTITLEMENT is server-authoritative: each app is a single shared per-BRAND instance, so only a member of the owning brand org — or a SuperAdmin — is given the embed URL; every other caller gets phase \"not-entitled\" and no URL. REACHABILITY is a probe of that origin, which a cross-origin page cannot read for itself. The probed host is always <app>.<this deployment\'s own brand domain>: no part of it comes from the request, so this can never be steered into probing an arbitrary origin.
51
- * @summary EmbedStatus reports whether one of this brand\'s shared embedded apps (cms, erp, help) may be framed by the caller and is actually running, so a console module can choose between the embed and the provision panel.
52
- * @param {EmbedStatusApiCloudGetV1EmbedStatusRequest} requestParameters Request parameters.
53
- * @param {*} [options] Override http request option.
54
- * @throws {RequiredError}
55
- */
56
- cloudGetV1EmbedStatus(requestParameters?: EmbedStatusApiCloudGetV1EmbedStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<CloudEmbedStatusResp>;
57
- };
58
- /**
59
- * Request parameters for cloudGetV1EmbedStatus operation in EmbedStatusApi.
60
- * @export
61
- * @interface EmbedStatusApiCloudGetV1EmbedStatusRequest
62
- */
63
- export interface EmbedStatusApiCloudGetV1EmbedStatusRequest {
64
- /**
65
- * App is the embedded app to report on: cms (Content Studio), erp or help.
66
- * @type {string}
67
- * @memberof EmbedStatusApiCloudGetV1EmbedStatus
68
- */
69
- readonly app?: string;
70
- }
71
- /**
72
- * EmbedStatusApi - object-oriented interface
73
- * @export
74
- * @class EmbedStatusApi
75
- * @extends {BaseAPI}
76
- */
77
- export declare class EmbedStatusApi extends BaseAPI {
78
- /**
79
- * EmbedStatus reports whether one of this brand\'s shared embedded apps (cms, erp, help) may be framed by the caller and is actually running, so a console module can choose between the embed and the provision panel. It answers two questions the browser cannot answer for itself. ENTITLEMENT is server-authoritative: each app is a single shared per-BRAND instance, so only a member of the owning brand org — or a SuperAdmin — is given the embed URL; every other caller gets phase \"not-entitled\" and no URL. REACHABILITY is a probe of that origin, which a cross-origin page cannot read for itself. The probed host is always <app>.<this deployment\'s own brand domain>: no part of it comes from the request, so this can never be steered into probing an arbitrary origin.
80
- * @summary EmbedStatus reports whether one of this brand\'s shared embedded apps (cms, erp, help) may be framed by the caller and is actually running, so a console module can choose between the embed and the provision panel.
81
- * @param {EmbedStatusApiCloudGetV1EmbedStatusRequest} requestParameters Request parameters.
82
- * @param {*} [options] Override http request option.
83
- * @throws {RequiredError}
84
- * @memberof EmbedStatusApi
85
- */
86
- cloudGetV1EmbedStatus(requestParameters?: EmbedStatusApiCloudGetV1EmbedStatusRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CloudEmbedStatusResp, any, {}>>;
87
- }
@@ -1,119 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Hanzo Cloud — Unified API (V8 · Open Edition)
5
- * The single unified OpenAPI surface for ALL Hanzo services, aggregated from the per-service specs. Every route is https://api.hanzo.ai/v1/<service>/_*. Grouped by the canonical domains in capabilities.yaml (the ONE registry). cloud/openapi.yaml is hanzoai/cloud\'s own woven document, copied verbatim by sync.py, and it wins wherever it and a hand-written spec describe the same route. Regenerated by merge.py — edit the per-service <svc>/openapi.yaml + capabilities.yaml, not this file.
6
- *
7
- * The version of the OpenAPI document: 8.0.0
8
- * Contact: support@hanzo.ai
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import globalAxios from 'axios';
15
- // Some imports not used depending on template conditions
16
- // @ts-ignore
17
- import { DUMMY_BASE_URL, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
18
- // @ts-ignore
19
- import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
20
- /**
21
- * EmbedStatusApi - axios parameter creator
22
- * @export
23
- */
24
- export const EmbedStatusApiAxiosParamCreator = function (configuration) {
25
- return {
26
- /**
27
- * EmbedStatus reports whether one of this brand\'s shared embedded apps (cms, erp, help) may be framed by the caller and is actually running, so a console module can choose between the embed and the provision panel. It answers two questions the browser cannot answer for itself. ENTITLEMENT is server-authoritative: each app is a single shared per-BRAND instance, so only a member of the owning brand org — or a SuperAdmin — is given the embed URL; every other caller gets phase \"not-entitled\" and no URL. REACHABILITY is a probe of that origin, which a cross-origin page cannot read for itself. The probed host is always <app>.<this deployment\'s own brand domain>: no part of it comes from the request, so this can never be steered into probing an arbitrary origin.
28
- * @summary EmbedStatus reports whether one of this brand\'s shared embedded apps (cms, erp, help) may be framed by the caller and is actually running, so a console module can choose between the embed and the provision panel.
29
- * @param {string} [app] App is the embedded app to report on: cms (Content Studio), erp or help.
30
- * @param {*} [options] Override http request option.
31
- * @throws {RequiredError}
32
- */
33
- cloudGetV1EmbedStatus: async (app, options = {}) => {
34
- const localVarPath = `/v1/embed-status`;
35
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
36
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
37
- let baseOptions;
38
- if (configuration) {
39
- baseOptions = configuration.baseOptions;
40
- }
41
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
42
- const localVarHeaderParameter = {};
43
- const localVarQueryParameter = {};
44
- // authentication bearerAuth required
45
- // http bearer authentication required
46
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
47
- if (app !== undefined) {
48
- localVarQueryParameter['app'] = app;
49
- }
50
- setSearchParams(localVarUrlObj, localVarQueryParameter);
51
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
52
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
53
- return {
54
- url: toPathString(localVarUrlObj),
55
- options: localVarRequestOptions,
56
- };
57
- },
58
- };
59
- };
60
- /**
61
- * EmbedStatusApi - functional programming interface
62
- * @export
63
- */
64
- export const EmbedStatusApiFp = function (configuration) {
65
- const localVarAxiosParamCreator = EmbedStatusApiAxiosParamCreator(configuration);
66
- return {
67
- /**
68
- * EmbedStatus reports whether one of this brand\'s shared embedded apps (cms, erp, help) may be framed by the caller and is actually running, so a console module can choose between the embed and the provision panel. It answers two questions the browser cannot answer for itself. ENTITLEMENT is server-authoritative: each app is a single shared per-BRAND instance, so only a member of the owning brand org — or a SuperAdmin — is given the embed URL; every other caller gets phase \"not-entitled\" and no URL. REACHABILITY is a probe of that origin, which a cross-origin page cannot read for itself. The probed host is always <app>.<this deployment\'s own brand domain>: no part of it comes from the request, so this can never be steered into probing an arbitrary origin.
69
- * @summary EmbedStatus reports whether one of this brand\'s shared embedded apps (cms, erp, help) may be framed by the caller and is actually running, so a console module can choose between the embed and the provision panel.
70
- * @param {string} [app] App is the embedded app to report on: cms (Content Studio), erp or help.
71
- * @param {*} [options] Override http request option.
72
- * @throws {RequiredError}
73
- */
74
- async cloudGetV1EmbedStatus(app, options) {
75
- const localVarAxiosArgs = await localVarAxiosParamCreator.cloudGetV1EmbedStatus(app, options);
76
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
77
- const localVarOperationServerBasePath = operationServerMap['EmbedStatusApi.cloudGetV1EmbedStatus']?.[localVarOperationServerIndex]?.url;
78
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
79
- },
80
- };
81
- };
82
- /**
83
- * EmbedStatusApi - factory interface
84
- * @export
85
- */
86
- export const EmbedStatusApiFactory = function (configuration, basePath, axios) {
87
- const localVarFp = EmbedStatusApiFp(configuration);
88
- return {
89
- /**
90
- * EmbedStatus reports whether one of this brand\'s shared embedded apps (cms, erp, help) may be framed by the caller and is actually running, so a console module can choose between the embed and the provision panel. It answers two questions the browser cannot answer for itself. ENTITLEMENT is server-authoritative: each app is a single shared per-BRAND instance, so only a member of the owning brand org — or a SuperAdmin — is given the embed URL; every other caller gets phase \"not-entitled\" and no URL. REACHABILITY is a probe of that origin, which a cross-origin page cannot read for itself. The probed host is always <app>.<this deployment\'s own brand domain>: no part of it comes from the request, so this can never be steered into probing an arbitrary origin.
91
- * @summary EmbedStatus reports whether one of this brand\'s shared embedded apps (cms, erp, help) may be framed by the caller and is actually running, so a console module can choose between the embed and the provision panel.
92
- * @param {EmbedStatusApiCloudGetV1EmbedStatusRequest} requestParameters Request parameters.
93
- * @param {*} [options] Override http request option.
94
- * @throws {RequiredError}
95
- */
96
- cloudGetV1EmbedStatus(requestParameters = {}, options) {
97
- return localVarFp.cloudGetV1EmbedStatus(requestParameters.app, options).then((request) => request(axios, basePath));
98
- },
99
- };
100
- };
101
- /**
102
- * EmbedStatusApi - object-oriented interface
103
- * @export
104
- * @class EmbedStatusApi
105
- * @extends {BaseAPI}
106
- */
107
- export class EmbedStatusApi extends BaseAPI {
108
- /**
109
- * EmbedStatus reports whether one of this brand\'s shared embedded apps (cms, erp, help) may be framed by the caller and is actually running, so a console module can choose between the embed and the provision panel. It answers two questions the browser cannot answer for itself. ENTITLEMENT is server-authoritative: each app is a single shared per-BRAND instance, so only a member of the owning brand org — or a SuperAdmin — is given the embed URL; every other caller gets phase \"not-entitled\" and no URL. REACHABILITY is a probe of that origin, which a cross-origin page cannot read for itself. The probed host is always <app>.<this deployment\'s own brand domain>: no part of it comes from the request, so this can never be steered into probing an arbitrary origin.
110
- * @summary EmbedStatus reports whether one of this brand\'s shared embedded apps (cms, erp, help) may be framed by the caller and is actually running, so a console module can choose between the embed and the provision panel.
111
- * @param {EmbedStatusApiCloudGetV1EmbedStatusRequest} requestParameters Request parameters.
112
- * @param {*} [options] Override http request option.
113
- * @throws {RequiredError}
114
- * @memberof EmbedStatusApi
115
- */
116
- cloudGetV1EmbedStatus(requestParameters = {}, options) {
117
- return EmbedStatusApiFp(this.configuration).cloudGetV1EmbedStatus(requestParameters.app, options).then((request) => request(this.axios, this.basePath));
118
- }
119
- }
@@ -1,75 +0,0 @@
1
- /**
2
- * Hanzo Cloud — Unified API (V8 · Open Edition)
3
- * The single unified OpenAPI surface for ALL Hanzo services, aggregated from the per-service specs. Every route is https://api.hanzo.ai/v1/<service>/_*. Grouped by the canonical domains in capabilities.yaml (the ONE registry). cloud/openapi.yaml is hanzoai/cloud\'s own woven document, copied verbatim by sync.py, and it wins wherever it and a hand-written spec describe the same route. Regenerated by merge.py — edit the per-service <svc>/openapi.yaml + capabilities.yaml, not this file.
4
- *
5
- * The version of the OpenAPI document: 8.0.0
6
- * Contact: support@hanzo.ai
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { Configuration } from '../configuration';
13
- import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
- import { type RequestArgs, BaseAPI } from '../base';
15
- /**
16
- * PricingPolicyApi - axios parameter creator
17
- * @export
18
- */
19
- export declare const PricingPolicyApiAxiosParamCreator: (configuration?: Configuration) => {
20
- /**
21
- * GetPricingPolicyAlias returns the pricing policy document at its top-level address. It is the same document GET /v1/pricing/policy returns, byte for byte, at the shorter address the marketing surface links to.
22
- * @summary GetPricingPolicyAlias returns the pricing policy document at its top-level address.
23
- * @param {*} [options] Override http request option.
24
- * @throws {RequiredError}
25
- */
26
- cloudGetV1PricingPolicy: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
27
- };
28
- /**
29
- * PricingPolicyApi - functional programming interface
30
- * @export
31
- */
32
- export declare const PricingPolicyApiFp: (configuration?: Configuration) => {
33
- /**
34
- * GetPricingPolicyAlias returns the pricing policy document at its top-level address. It is the same document GET /v1/pricing/policy returns, byte for byte, at the shorter address the marketing surface links to.
35
- * @summary GetPricingPolicyAlias returns the pricing policy document at its top-level address.
36
- * @param {*} [options] Override http request option.
37
- * @throws {RequiredError}
38
- */
39
- cloudGetV1PricingPolicy(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
40
- [key: string]: object;
41
- }>>;
42
- };
43
- /**
44
- * PricingPolicyApi - factory interface
45
- * @export
46
- */
47
- export declare const PricingPolicyApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
48
- /**
49
- * GetPricingPolicyAlias returns the pricing policy document at its top-level address. It is the same document GET /v1/pricing/policy returns, byte for byte, at the shorter address the marketing surface links to.
50
- * @summary GetPricingPolicyAlias returns the pricing policy document at its top-level address.
51
- * @param {*} [options] Override http request option.
52
- * @throws {RequiredError}
53
- */
54
- cloudGetV1PricingPolicy(options?: RawAxiosRequestConfig): AxiosPromise<{
55
- [key: string]: object;
56
- }>;
57
- };
58
- /**
59
- * PricingPolicyApi - object-oriented interface
60
- * @export
61
- * @class PricingPolicyApi
62
- * @extends {BaseAPI}
63
- */
64
- export declare class PricingPolicyApi extends BaseAPI {
65
- /**
66
- * GetPricingPolicyAlias returns the pricing policy document at its top-level address. It is the same document GET /v1/pricing/policy returns, byte for byte, at the shorter address the marketing surface links to.
67
- * @summary GetPricingPolicyAlias returns the pricing policy document at its top-level address.
68
- * @param {*} [options] Override http request option.
69
- * @throws {RequiredError}
70
- * @memberof PricingPolicyApi
71
- */
72
- cloudGetV1PricingPolicy(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
73
- [key: string]: object;
74
- }, any, {}>>;
75
- }
@@ -1,112 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Hanzo Cloud — Unified API (V8 · Open Edition)
5
- * The single unified OpenAPI surface for ALL Hanzo services, aggregated from the per-service specs. Every route is https://api.hanzo.ai/v1/<service>/_*. Grouped by the canonical domains in capabilities.yaml (the ONE registry). cloud/openapi.yaml is hanzoai/cloud\'s own woven document, copied verbatim by sync.py, and it wins wherever it and a hand-written spec describe the same route. Regenerated by merge.py — edit the per-service <svc>/openapi.yaml + capabilities.yaml, not this file.
6
- *
7
- * The version of the OpenAPI document: 8.0.0
8
- * Contact: support@hanzo.ai
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import globalAxios from 'axios';
15
- // Some imports not used depending on template conditions
16
- // @ts-ignore
17
- import { DUMMY_BASE_URL, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
18
- // @ts-ignore
19
- import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
20
- /**
21
- * PricingPolicyApi - axios parameter creator
22
- * @export
23
- */
24
- export const PricingPolicyApiAxiosParamCreator = function (configuration) {
25
- return {
26
- /**
27
- * GetPricingPolicyAlias returns the pricing policy document at its top-level address. It is the same document GET /v1/pricing/policy returns, byte for byte, at the shorter address the marketing surface links to.
28
- * @summary GetPricingPolicyAlias returns the pricing policy document at its top-level address.
29
- * @param {*} [options] Override http request option.
30
- * @throws {RequiredError}
31
- */
32
- cloudGetV1PricingPolicy: async (options = {}) => {
33
- const localVarPath = `/v1/pricing-policy`;
34
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
35
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
36
- let baseOptions;
37
- if (configuration) {
38
- baseOptions = configuration.baseOptions;
39
- }
40
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
41
- const localVarHeaderParameter = {};
42
- const localVarQueryParameter = {};
43
- // authentication bearerAuth required
44
- // http bearer authentication required
45
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
46
- setSearchParams(localVarUrlObj, localVarQueryParameter);
47
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
48
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
49
- return {
50
- url: toPathString(localVarUrlObj),
51
- options: localVarRequestOptions,
52
- };
53
- },
54
- };
55
- };
56
- /**
57
- * PricingPolicyApi - functional programming interface
58
- * @export
59
- */
60
- export const PricingPolicyApiFp = function (configuration) {
61
- const localVarAxiosParamCreator = PricingPolicyApiAxiosParamCreator(configuration);
62
- return {
63
- /**
64
- * GetPricingPolicyAlias returns the pricing policy document at its top-level address. It is the same document GET /v1/pricing/policy returns, byte for byte, at the shorter address the marketing surface links to.
65
- * @summary GetPricingPolicyAlias returns the pricing policy document at its top-level address.
66
- * @param {*} [options] Override http request option.
67
- * @throws {RequiredError}
68
- */
69
- async cloudGetV1PricingPolicy(options) {
70
- const localVarAxiosArgs = await localVarAxiosParamCreator.cloudGetV1PricingPolicy(options);
71
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
72
- const localVarOperationServerBasePath = operationServerMap['PricingPolicyApi.cloudGetV1PricingPolicy']?.[localVarOperationServerIndex]?.url;
73
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
74
- },
75
- };
76
- };
77
- /**
78
- * PricingPolicyApi - factory interface
79
- * @export
80
- */
81
- export const PricingPolicyApiFactory = function (configuration, basePath, axios) {
82
- const localVarFp = PricingPolicyApiFp(configuration);
83
- return {
84
- /**
85
- * GetPricingPolicyAlias returns the pricing policy document at its top-level address. It is the same document GET /v1/pricing/policy returns, byte for byte, at the shorter address the marketing surface links to.
86
- * @summary GetPricingPolicyAlias returns the pricing policy document at its top-level address.
87
- * @param {*} [options] Override http request option.
88
- * @throws {RequiredError}
89
- */
90
- cloudGetV1PricingPolicy(options) {
91
- return localVarFp.cloudGetV1PricingPolicy(options).then((request) => request(axios, basePath));
92
- },
93
- };
94
- };
95
- /**
96
- * PricingPolicyApi - object-oriented interface
97
- * @export
98
- * @class PricingPolicyApi
99
- * @extends {BaseAPI}
100
- */
101
- export class PricingPolicyApi extends BaseAPI {
102
- /**
103
- * GetPricingPolicyAlias returns the pricing policy document at its top-level address. It is the same document GET /v1/pricing/policy returns, byte for byte, at the shorter address the marketing surface links to.
104
- * @summary GetPricingPolicyAlias returns the pricing policy document at its top-level address.
105
- * @param {*} [options] Override http request option.
106
- * @throws {RequiredError}
107
- * @memberof PricingPolicyApi
108
- */
109
- cloudGetV1PricingPolicy(options) {
110
- return PricingPolicyApiFp(this.configuration).cloudGetV1PricingPolicy(options).then((request) => request(this.axios, this.basePath));
111
- }
112
- }