@daytona/analytics-api-client 0.162.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.
Files changed (49) hide show
  1. package/package.json +25 -0
  2. package/src/api/telemetry-api.d.ts +248 -0
  3. package/src/api/telemetry-api.js +459 -0
  4. package/src/api/telemetry-api.js.map +1 -0
  5. package/src/api/usage-api.d.ts +216 -0
  6. package/src/api/usage-api.js +407 -0
  7. package/src/api/usage-api.js.map +1 -0
  8. package/src/api.d.ts +13 -0
  9. package/src/api.js +32 -0
  10. package/src/api.js.map +1 -0
  11. package/src/base.d.ts +66 -0
  12. package/src/base.js +69 -0
  13. package/src/base.js.map +1 -0
  14. package/src/common.d.ts +65 -0
  15. package/src/common.js +146 -0
  16. package/src/common.js.map +1 -0
  17. package/src/configuration.d.ts +91 -0
  18. package/src/configuration.js +105 -0
  19. package/src/configuration.js.map +1 -0
  20. package/src/index.d.ts +14 -0
  21. package/src/index.js +33 -0
  22. package/src/index.js.map +1 -0
  23. package/src/models/index.d.ts +8 -0
  24. package/src/models/index.js +25 -0
  25. package/src/models/index.js.map +1 -0
  26. package/src/models/models-aggregated-usage.d.ts +66 -0
  27. package/src/models/models-aggregated-usage.js +16 -0
  28. package/src/models/models-aggregated-usage.js.map +1 -0
  29. package/src/models/models-log-entry.d.ts +76 -0
  30. package/src/models/models-log-entry.js +16 -0
  31. package/src/models/models-log-entry.js.map +1 -0
  32. package/src/models/models-metric-point.d.ts +36 -0
  33. package/src/models/models-metric-point.js +16 -0
  34. package/src/models/models-metric-point.js.map +1 -0
  35. package/src/models/models-sandbox-usage.d.ts +66 -0
  36. package/src/models/models-sandbox-usage.js +16 -0
  37. package/src/models/models-sandbox-usage.js.map +1 -0
  38. package/src/models/models-span.d.ts +74 -0
  39. package/src/models/models-span.js +16 -0
  40. package/src/models/models-span.js.map +1 -0
  41. package/src/models/models-trace-summary.d.ts +60 -0
  42. package/src/models/models-trace-summary.js +16 -0
  43. package/src/models/models-trace-summary.js.map +1 -0
  44. package/src/models/models-usage-chart-point.d.ts +60 -0
  45. package/src/models/models-usage-chart-point.js +16 -0
  46. package/src/models/models-usage-chart-point.js.map +1 -0
  47. package/src/models/models-usage-period.d.ts +60 -0
  48. package/src/models/models-usage-period.js +16 -0
  49. package/src/models/models-usage-period.js.map +1 -0
@@ -0,0 +1,216 @@
1
+ /**
2
+ * Daytona Analytics API
3
+ * Daytona Analytics API - Read-only telemetry and usage data. Authenticated via Daytona API keys or JWT tokens.
4
+ *
5
+ * The version of the OpenAPI document: v0.0.0-dev
6
+ *
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 { ModelsAggregatedUsage } from '../models';
16
+ import type { ModelsSandboxUsage } from '../models';
17
+ import type { ModelsUsageChartPoint } from '../models';
18
+ import type { ModelsUsagePeriod } from '../models';
19
+ /**
20
+ * UsageApi - axios parameter creator
21
+ * @export
22
+ */
23
+ export declare const UsageApiAxiosParamCreator: (configuration?: Configuration) => {
24
+ /**
25
+ * Returns individual usage records for a specific sandbox within a time range
26
+ * @summary Get sandbox usage periods
27
+ * @param {string} organizationId Organization ID
28
+ * @param {string} sandboxId Sandbox ID
29
+ * @param {string} from Start time (RFC3339)
30
+ * @param {string} to End time (RFC3339)
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ organizationOrganizationIdSandboxSandboxIdUsageGet: (organizationId: string, sandboxId: string, from: string, to: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
35
+ /**
36
+ * Returns organization-level resource usage totals for a given time period
37
+ * @summary Get aggregated usage
38
+ * @param {string} organizationId Organization ID
39
+ * @param {string} from Start time (RFC3339)
40
+ * @param {string} to End time (RFC3339)
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ organizationOrganizationIdUsageAggregatedGet: (organizationId: string, from: string, to: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
45
+ /**
46
+ * Returns per-minute resource usage data points for a given time period
47
+ * @summary Get usage chart data
48
+ * @param {string} organizationId Organization ID
49
+ * @param {string} from Start time (RFC3339)
50
+ * @param {string} to End time (RFC3339)
51
+ * @param {string} [region] Region filter
52
+ * @param {*} [options] Override http request option.
53
+ * @throws {RequiredError}
54
+ */
55
+ organizationOrganizationIdUsageChartGet: (organizationId: string, from: string, to: string, region?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
56
+ /**
57
+ * Returns resource usage aggregated per sandbox for a given time period
58
+ * @summary Get per-sandbox usage
59
+ * @param {string} organizationId Organization ID
60
+ * @param {string} from Start time (RFC3339)
61
+ * @param {string} to End time (RFC3339)
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ organizationOrganizationIdUsageSandboxGet: (organizationId: string, from: string, to: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
66
+ };
67
+ /**
68
+ * UsageApi - functional programming interface
69
+ * @export
70
+ */
71
+ export declare const UsageApiFp: (configuration?: Configuration) => {
72
+ /**
73
+ * Returns individual usage records for a specific sandbox within a time range
74
+ * @summary Get sandbox usage periods
75
+ * @param {string} organizationId Organization ID
76
+ * @param {string} sandboxId Sandbox ID
77
+ * @param {string} from Start time (RFC3339)
78
+ * @param {string} to End time (RFC3339)
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ organizationOrganizationIdSandboxSandboxIdUsageGet(organizationId: string, sandboxId: string, from: string, to: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ModelsUsagePeriod>>>;
83
+ /**
84
+ * Returns organization-level resource usage totals for a given time period
85
+ * @summary Get aggregated usage
86
+ * @param {string} organizationId Organization ID
87
+ * @param {string} from Start time (RFC3339)
88
+ * @param {string} to End time (RFC3339)
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ */
92
+ organizationOrganizationIdUsageAggregatedGet(organizationId: string, from: string, to: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModelsAggregatedUsage>>;
93
+ /**
94
+ * Returns per-minute resource usage data points for a given time period
95
+ * @summary Get usage chart data
96
+ * @param {string} organizationId Organization ID
97
+ * @param {string} from Start time (RFC3339)
98
+ * @param {string} to End time (RFC3339)
99
+ * @param {string} [region] Region filter
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ organizationOrganizationIdUsageChartGet(organizationId: string, from: string, to: string, region?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ModelsUsageChartPoint>>>;
104
+ /**
105
+ * Returns resource usage aggregated per sandbox for a given time period
106
+ * @summary Get per-sandbox usage
107
+ * @param {string} organizationId Organization ID
108
+ * @param {string} from Start time (RFC3339)
109
+ * @param {string} to End time (RFC3339)
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ */
113
+ organizationOrganizationIdUsageSandboxGet(organizationId: string, from: string, to: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ModelsSandboxUsage>>>;
114
+ };
115
+ /**
116
+ * UsageApi - factory interface
117
+ * @export
118
+ */
119
+ export declare const UsageApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
120
+ /**
121
+ * Returns individual usage records for a specific sandbox within a time range
122
+ * @summary Get sandbox usage periods
123
+ * @param {string} organizationId Organization ID
124
+ * @param {string} sandboxId Sandbox ID
125
+ * @param {string} from Start time (RFC3339)
126
+ * @param {string} to End time (RFC3339)
127
+ * @param {*} [options] Override http request option.
128
+ * @throws {RequiredError}
129
+ */
130
+ organizationOrganizationIdSandboxSandboxIdUsageGet(organizationId: string, sandboxId: string, from: string, to: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ModelsUsagePeriod>>;
131
+ /**
132
+ * Returns organization-level resource usage totals for a given time period
133
+ * @summary Get aggregated usage
134
+ * @param {string} organizationId Organization ID
135
+ * @param {string} from Start time (RFC3339)
136
+ * @param {string} to End time (RFC3339)
137
+ * @param {*} [options] Override http request option.
138
+ * @throws {RequiredError}
139
+ */
140
+ organizationOrganizationIdUsageAggregatedGet(organizationId: string, from: string, to: string, options?: RawAxiosRequestConfig): AxiosPromise<ModelsAggregatedUsage>;
141
+ /**
142
+ * Returns per-minute resource usage data points for a given time period
143
+ * @summary Get usage chart data
144
+ * @param {string} organizationId Organization ID
145
+ * @param {string} from Start time (RFC3339)
146
+ * @param {string} to End time (RFC3339)
147
+ * @param {string} [region] Region filter
148
+ * @param {*} [options] Override http request option.
149
+ * @throws {RequiredError}
150
+ */
151
+ organizationOrganizationIdUsageChartGet(organizationId: string, from: string, to: string, region?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ModelsUsageChartPoint>>;
152
+ /**
153
+ * Returns resource usage aggregated per sandbox for a given time period
154
+ * @summary Get per-sandbox usage
155
+ * @param {string} organizationId Organization ID
156
+ * @param {string} from Start time (RFC3339)
157
+ * @param {string} to End time (RFC3339)
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ organizationOrganizationIdUsageSandboxGet(organizationId: string, from: string, to: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ModelsSandboxUsage>>;
162
+ };
163
+ /**
164
+ * UsageApi - object-oriented interface
165
+ * @export
166
+ * @class UsageApi
167
+ * @extends {BaseAPI}
168
+ */
169
+ export declare class UsageApi extends BaseAPI {
170
+ /**
171
+ * Returns individual usage records for a specific sandbox within a time range
172
+ * @summary Get sandbox usage periods
173
+ * @param {string} organizationId Organization ID
174
+ * @param {string} sandboxId Sandbox ID
175
+ * @param {string} from Start time (RFC3339)
176
+ * @param {string} to End time (RFC3339)
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ * @memberof UsageApi
180
+ */
181
+ organizationOrganizationIdSandboxSandboxIdUsageGet(organizationId: string, sandboxId: string, from: string, to: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ModelsUsagePeriod[], any, {}>>;
182
+ /**
183
+ * Returns organization-level resource usage totals for a given time period
184
+ * @summary Get aggregated usage
185
+ * @param {string} organizationId Organization ID
186
+ * @param {string} from Start time (RFC3339)
187
+ * @param {string} to End time (RFC3339)
188
+ * @param {*} [options] Override http request option.
189
+ * @throws {RequiredError}
190
+ * @memberof UsageApi
191
+ */
192
+ organizationOrganizationIdUsageAggregatedGet(organizationId: string, from: string, to: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ModelsAggregatedUsage, any, {}>>;
193
+ /**
194
+ * Returns per-minute resource usage data points for a given time period
195
+ * @summary Get usage chart data
196
+ * @param {string} organizationId Organization ID
197
+ * @param {string} from Start time (RFC3339)
198
+ * @param {string} to End time (RFC3339)
199
+ * @param {string} [region] Region filter
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ * @memberof UsageApi
203
+ */
204
+ organizationOrganizationIdUsageChartGet(organizationId: string, from: string, to: string, region?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ModelsUsageChartPoint[], any, {}>>;
205
+ /**
206
+ * Returns resource usage aggregated per sandbox for a given time period
207
+ * @summary Get per-sandbox usage
208
+ * @param {string} organizationId Organization ID
209
+ * @param {string} from Start time (RFC3339)
210
+ * @param {string} to End time (RFC3339)
211
+ * @param {*} [options] Override http request option.
212
+ * @throws {RequiredError}
213
+ * @memberof UsageApi
214
+ */
215
+ organizationOrganizationIdUsageSandboxGet(organizationId: string, from: string, to: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ModelsSandboxUsage[], any, {}>>;
216
+ }
@@ -0,0 +1,407 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Daytona Analytics API
6
+ * Daytona Analytics API - Read-only telemetry and usage data. Authenticated via Daytona API keys or JWT tokens.
7
+ *
8
+ * The version of the OpenAPI document: v0.0.0-dev
9
+ *
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UsageApi = exports.UsageApiFactory = exports.UsageApiFp = exports.UsageApiAxiosParamCreator = void 0;
17
+ const axios_1 = require("axios");
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ const common_1 = require("../common");
21
+ // @ts-ignore
22
+ const base_1 = require("../base");
23
+ /**
24
+ * UsageApi - axios parameter creator
25
+ * @export
26
+ */
27
+ const UsageApiAxiosParamCreator = function (configuration) {
28
+ return {
29
+ /**
30
+ * Returns individual usage records for a specific sandbox within a time range
31
+ * @summary Get sandbox usage periods
32
+ * @param {string} organizationId Organization ID
33
+ * @param {string} sandboxId Sandbox ID
34
+ * @param {string} from Start time (RFC3339)
35
+ * @param {string} to End time (RFC3339)
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ organizationOrganizationIdSandboxSandboxIdUsageGet: async (organizationId, sandboxId, from, to, options = {}) => {
40
+ // verify required parameter 'organizationId' is not null or undefined
41
+ (0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdUsageGet', 'organizationId', organizationId);
42
+ // verify required parameter 'sandboxId' is not null or undefined
43
+ (0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdUsageGet', 'sandboxId', sandboxId);
44
+ // verify required parameter 'from' is not null or undefined
45
+ (0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdUsageGet', 'from', from);
46
+ // verify required parameter 'to' is not null or undefined
47
+ (0, common_1.assertParamExists)('organizationOrganizationIdSandboxSandboxIdUsageGet', 'to', to);
48
+ const localVarPath = `/organization/{organizationId}/sandbox/{sandboxId}/usage`
49
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
50
+ .replace(`{${"sandboxId"}}`, encodeURIComponent(String(sandboxId)));
51
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
53
+ let baseOptions;
54
+ if (configuration) {
55
+ baseOptions = configuration.baseOptions;
56
+ }
57
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
58
+ const localVarHeaderParameter = {};
59
+ const localVarQueryParameter = {};
60
+ // authentication Bearer required
61
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
62
+ if (from !== undefined) {
63
+ localVarQueryParameter['from'] = from;
64
+ }
65
+ if (to !== undefined) {
66
+ localVarQueryParameter['to'] = to;
67
+ }
68
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
69
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
70
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
71
+ return {
72
+ url: (0, common_1.toPathString)(localVarUrlObj),
73
+ options: localVarRequestOptions,
74
+ };
75
+ },
76
+ /**
77
+ * Returns organization-level resource usage totals for a given time period
78
+ * @summary Get aggregated usage
79
+ * @param {string} organizationId Organization ID
80
+ * @param {string} from Start time (RFC3339)
81
+ * @param {string} to End time (RFC3339)
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ organizationOrganizationIdUsageAggregatedGet: async (organizationId, from, to, options = {}) => {
86
+ // verify required parameter 'organizationId' is not null or undefined
87
+ (0, common_1.assertParamExists)('organizationOrganizationIdUsageAggregatedGet', 'organizationId', organizationId);
88
+ // verify required parameter 'from' is not null or undefined
89
+ (0, common_1.assertParamExists)('organizationOrganizationIdUsageAggregatedGet', 'from', from);
90
+ // verify required parameter 'to' is not null or undefined
91
+ (0, common_1.assertParamExists)('organizationOrganizationIdUsageAggregatedGet', 'to', to);
92
+ const localVarPath = `/organization/{organizationId}/usage/aggregated`
93
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
94
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
95
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
96
+ let baseOptions;
97
+ if (configuration) {
98
+ baseOptions = configuration.baseOptions;
99
+ }
100
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
101
+ const localVarHeaderParameter = {};
102
+ const localVarQueryParameter = {};
103
+ // authentication Bearer required
104
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
105
+ if (from !== undefined) {
106
+ localVarQueryParameter['from'] = from;
107
+ }
108
+ if (to !== undefined) {
109
+ localVarQueryParameter['to'] = to;
110
+ }
111
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
112
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
113
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
114
+ return {
115
+ url: (0, common_1.toPathString)(localVarUrlObj),
116
+ options: localVarRequestOptions,
117
+ };
118
+ },
119
+ /**
120
+ * Returns per-minute resource usage data points for a given time period
121
+ * @summary Get usage chart data
122
+ * @param {string} organizationId Organization ID
123
+ * @param {string} from Start time (RFC3339)
124
+ * @param {string} to End time (RFC3339)
125
+ * @param {string} [region] Region filter
126
+ * @param {*} [options] Override http request option.
127
+ * @throws {RequiredError}
128
+ */
129
+ organizationOrganizationIdUsageChartGet: async (organizationId, from, to, region, options = {}) => {
130
+ // verify required parameter 'organizationId' is not null or undefined
131
+ (0, common_1.assertParamExists)('organizationOrganizationIdUsageChartGet', 'organizationId', organizationId);
132
+ // verify required parameter 'from' is not null or undefined
133
+ (0, common_1.assertParamExists)('organizationOrganizationIdUsageChartGet', 'from', from);
134
+ // verify required parameter 'to' is not null or undefined
135
+ (0, common_1.assertParamExists)('organizationOrganizationIdUsageChartGet', 'to', to);
136
+ const localVarPath = `/organization/{organizationId}/usage/chart`
137
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
138
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
139
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
140
+ let baseOptions;
141
+ if (configuration) {
142
+ baseOptions = configuration.baseOptions;
143
+ }
144
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
145
+ const localVarHeaderParameter = {};
146
+ const localVarQueryParameter = {};
147
+ // authentication Bearer required
148
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
149
+ if (from !== undefined) {
150
+ localVarQueryParameter['from'] = from;
151
+ }
152
+ if (to !== undefined) {
153
+ localVarQueryParameter['to'] = to;
154
+ }
155
+ if (region !== undefined) {
156
+ localVarQueryParameter['region'] = region;
157
+ }
158
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
159
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
160
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
161
+ return {
162
+ url: (0, common_1.toPathString)(localVarUrlObj),
163
+ options: localVarRequestOptions,
164
+ };
165
+ },
166
+ /**
167
+ * Returns resource usage aggregated per sandbox for a given time period
168
+ * @summary Get per-sandbox usage
169
+ * @param {string} organizationId Organization ID
170
+ * @param {string} from Start time (RFC3339)
171
+ * @param {string} to End time (RFC3339)
172
+ * @param {*} [options] Override http request option.
173
+ * @throws {RequiredError}
174
+ */
175
+ organizationOrganizationIdUsageSandboxGet: async (organizationId, from, to, options = {}) => {
176
+ // verify required parameter 'organizationId' is not null or undefined
177
+ (0, common_1.assertParamExists)('organizationOrganizationIdUsageSandboxGet', 'organizationId', organizationId);
178
+ // verify required parameter 'from' is not null or undefined
179
+ (0, common_1.assertParamExists)('organizationOrganizationIdUsageSandboxGet', 'from', from);
180
+ // verify required parameter 'to' is not null or undefined
181
+ (0, common_1.assertParamExists)('organizationOrganizationIdUsageSandboxGet', 'to', to);
182
+ const localVarPath = `/organization/{organizationId}/usage/sandbox`
183
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
184
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
185
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
186
+ let baseOptions;
187
+ if (configuration) {
188
+ baseOptions = configuration.baseOptions;
189
+ }
190
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
191
+ const localVarHeaderParameter = {};
192
+ const localVarQueryParameter = {};
193
+ // authentication Bearer required
194
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
195
+ if (from !== undefined) {
196
+ localVarQueryParameter['from'] = from;
197
+ }
198
+ if (to !== undefined) {
199
+ localVarQueryParameter['to'] = to;
200
+ }
201
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
202
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
203
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
204
+ return {
205
+ url: (0, common_1.toPathString)(localVarUrlObj),
206
+ options: localVarRequestOptions,
207
+ };
208
+ },
209
+ };
210
+ };
211
+ exports.UsageApiAxiosParamCreator = UsageApiAxiosParamCreator;
212
+ /**
213
+ * UsageApi - functional programming interface
214
+ * @export
215
+ */
216
+ const UsageApiFp = function (configuration) {
217
+ const localVarAxiosParamCreator = (0, exports.UsageApiAxiosParamCreator)(configuration);
218
+ return {
219
+ /**
220
+ * Returns individual usage records for a specific sandbox within a time range
221
+ * @summary Get sandbox usage periods
222
+ * @param {string} organizationId Organization ID
223
+ * @param {string} sandboxId Sandbox ID
224
+ * @param {string} from Start time (RFC3339)
225
+ * @param {string} to End time (RFC3339)
226
+ * @param {*} [options] Override http request option.
227
+ * @throws {RequiredError}
228
+ */
229
+ async organizationOrganizationIdSandboxSandboxIdUsageGet(organizationId, sandboxId, from, to, options) {
230
+ const localVarAxiosArgs = await localVarAxiosParamCreator.organizationOrganizationIdSandboxSandboxIdUsageGet(organizationId, sandboxId, from, to, options);
231
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
232
+ const localVarOperationServerBasePath = base_1.operationServerMap['UsageApi.organizationOrganizationIdSandboxSandboxIdUsageGet']?.[localVarOperationServerIndex]?.url;
233
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
234
+ },
235
+ /**
236
+ * Returns organization-level resource usage totals for a given time period
237
+ * @summary Get aggregated usage
238
+ * @param {string} organizationId Organization ID
239
+ * @param {string} from Start time (RFC3339)
240
+ * @param {string} to End time (RFC3339)
241
+ * @param {*} [options] Override http request option.
242
+ * @throws {RequiredError}
243
+ */
244
+ async organizationOrganizationIdUsageAggregatedGet(organizationId, from, to, options) {
245
+ const localVarAxiosArgs = await localVarAxiosParamCreator.organizationOrganizationIdUsageAggregatedGet(organizationId, from, to, options);
246
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
247
+ const localVarOperationServerBasePath = base_1.operationServerMap['UsageApi.organizationOrganizationIdUsageAggregatedGet']?.[localVarOperationServerIndex]?.url;
248
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
249
+ },
250
+ /**
251
+ * Returns per-minute resource usage data points for a given time period
252
+ * @summary Get usage chart data
253
+ * @param {string} organizationId Organization ID
254
+ * @param {string} from Start time (RFC3339)
255
+ * @param {string} to End time (RFC3339)
256
+ * @param {string} [region] Region filter
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ async organizationOrganizationIdUsageChartGet(organizationId, from, to, region, options) {
261
+ const localVarAxiosArgs = await localVarAxiosParamCreator.organizationOrganizationIdUsageChartGet(organizationId, from, to, region, options);
262
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
263
+ const localVarOperationServerBasePath = base_1.operationServerMap['UsageApi.organizationOrganizationIdUsageChartGet']?.[localVarOperationServerIndex]?.url;
264
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
265
+ },
266
+ /**
267
+ * Returns resource usage aggregated per sandbox for a given time period
268
+ * @summary Get per-sandbox usage
269
+ * @param {string} organizationId Organization ID
270
+ * @param {string} from Start time (RFC3339)
271
+ * @param {string} to End time (RFC3339)
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ async organizationOrganizationIdUsageSandboxGet(organizationId, from, to, options) {
276
+ const localVarAxiosArgs = await localVarAxiosParamCreator.organizationOrganizationIdUsageSandboxGet(organizationId, from, to, options);
277
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
278
+ const localVarOperationServerBasePath = base_1.operationServerMap['UsageApi.organizationOrganizationIdUsageSandboxGet']?.[localVarOperationServerIndex]?.url;
279
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
280
+ },
281
+ };
282
+ };
283
+ exports.UsageApiFp = UsageApiFp;
284
+ /**
285
+ * UsageApi - factory interface
286
+ * @export
287
+ */
288
+ const UsageApiFactory = function (configuration, basePath, axios) {
289
+ const localVarFp = (0, exports.UsageApiFp)(configuration);
290
+ return {
291
+ /**
292
+ * Returns individual usage records for a specific sandbox within a time range
293
+ * @summary Get sandbox usage periods
294
+ * @param {string} organizationId Organization ID
295
+ * @param {string} sandboxId Sandbox ID
296
+ * @param {string} from Start time (RFC3339)
297
+ * @param {string} to End time (RFC3339)
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ organizationOrganizationIdSandboxSandboxIdUsageGet(organizationId, sandboxId, from, to, options) {
302
+ return localVarFp.organizationOrganizationIdSandboxSandboxIdUsageGet(organizationId, sandboxId, from, to, options).then((request) => request(axios, basePath));
303
+ },
304
+ /**
305
+ * Returns organization-level resource usage totals for a given time period
306
+ * @summary Get aggregated usage
307
+ * @param {string} organizationId Organization ID
308
+ * @param {string} from Start time (RFC3339)
309
+ * @param {string} to End time (RFC3339)
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ organizationOrganizationIdUsageAggregatedGet(organizationId, from, to, options) {
314
+ return localVarFp.organizationOrganizationIdUsageAggregatedGet(organizationId, from, to, options).then((request) => request(axios, basePath));
315
+ },
316
+ /**
317
+ * Returns per-minute resource usage data points for a given time period
318
+ * @summary Get usage chart data
319
+ * @param {string} organizationId Organization ID
320
+ * @param {string} from Start time (RFC3339)
321
+ * @param {string} to End time (RFC3339)
322
+ * @param {string} [region] Region filter
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ */
326
+ organizationOrganizationIdUsageChartGet(organizationId, from, to, region, options) {
327
+ return localVarFp.organizationOrganizationIdUsageChartGet(organizationId, from, to, region, options).then((request) => request(axios, basePath));
328
+ },
329
+ /**
330
+ * Returns resource usage aggregated per sandbox for a given time period
331
+ * @summary Get per-sandbox usage
332
+ * @param {string} organizationId Organization ID
333
+ * @param {string} from Start time (RFC3339)
334
+ * @param {string} to End time (RFC3339)
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ */
338
+ organizationOrganizationIdUsageSandboxGet(organizationId, from, to, options) {
339
+ return localVarFp.organizationOrganizationIdUsageSandboxGet(organizationId, from, to, options).then((request) => request(axios, basePath));
340
+ },
341
+ };
342
+ };
343
+ exports.UsageApiFactory = UsageApiFactory;
344
+ /**
345
+ * UsageApi - object-oriented interface
346
+ * @export
347
+ * @class UsageApi
348
+ * @extends {BaseAPI}
349
+ */
350
+ class UsageApi extends base_1.BaseAPI {
351
+ /**
352
+ * Returns individual usage records for a specific sandbox within a time range
353
+ * @summary Get sandbox usage periods
354
+ * @param {string} organizationId Organization ID
355
+ * @param {string} sandboxId Sandbox ID
356
+ * @param {string} from Start time (RFC3339)
357
+ * @param {string} to End time (RFC3339)
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ * @memberof UsageApi
361
+ */
362
+ organizationOrganizationIdSandboxSandboxIdUsageGet(organizationId, sandboxId, from, to, options) {
363
+ return (0, exports.UsageApiFp)(this.configuration).organizationOrganizationIdSandboxSandboxIdUsageGet(organizationId, sandboxId, from, to, options).then((request) => request(this.axios, this.basePath));
364
+ }
365
+ /**
366
+ * Returns organization-level resource usage totals for a given time period
367
+ * @summary Get aggregated usage
368
+ * @param {string} organizationId Organization ID
369
+ * @param {string} from Start time (RFC3339)
370
+ * @param {string} to End time (RFC3339)
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ * @memberof UsageApi
374
+ */
375
+ organizationOrganizationIdUsageAggregatedGet(organizationId, from, to, options) {
376
+ return (0, exports.UsageApiFp)(this.configuration).organizationOrganizationIdUsageAggregatedGet(organizationId, from, to, options).then((request) => request(this.axios, this.basePath));
377
+ }
378
+ /**
379
+ * Returns per-minute resource usage data points for a given time period
380
+ * @summary Get usage chart data
381
+ * @param {string} organizationId Organization ID
382
+ * @param {string} from Start time (RFC3339)
383
+ * @param {string} to End time (RFC3339)
384
+ * @param {string} [region] Region filter
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ * @memberof UsageApi
388
+ */
389
+ organizationOrganizationIdUsageChartGet(organizationId, from, to, region, options) {
390
+ return (0, exports.UsageApiFp)(this.configuration).organizationOrganizationIdUsageChartGet(organizationId, from, to, region, options).then((request) => request(this.axios, this.basePath));
391
+ }
392
+ /**
393
+ * Returns resource usage aggregated per sandbox for a given time period
394
+ * @summary Get per-sandbox usage
395
+ * @param {string} organizationId Organization ID
396
+ * @param {string} from Start time (RFC3339)
397
+ * @param {string} to End time (RFC3339)
398
+ * @param {*} [options] Override http request option.
399
+ * @throws {RequiredError}
400
+ * @memberof UsageApi
401
+ */
402
+ organizationOrganizationIdUsageSandboxGet(organizationId, from, to, options) {
403
+ return (0, exports.UsageApiFp)(this.configuration).organizationOrganizationIdUsageSandboxGet(organizationId, from, to, options).then((request) => request(this.axios, this.basePath));
404
+ }
405
+ }
406
+ exports.UsageApi = UsageApi;
407
+ //# sourceMappingURL=usage-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-api.js","sourceRoot":"","sources":["../../../../../libs/analytics-api-client/src/api/usage-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAKH,iCAAgC;AAChC,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAStH;;;GAGG;AACI,MAAM,yBAAyB,GAAG,UAAU,aAA6B;IAC5E,OAAO;QACH;;;;;;;;;WASG;QACH,kDAAkD,EAAE,KAAK,EAAE,cAAsB,EAAE,SAAiB,EAAE,IAAY,EAAE,EAAU,EAAE,UAAiC,EAAE,EAAwB,EAAE;YACzL,sEAAsE;YACtE,IAAA,0BAAiB,EAAC,oDAAoD,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAA;YACzG,iEAAiE;YACjE,IAAA,0BAAiB,EAAC,oDAAoD,EAAE,WAAW,EAAE,SAAS,CAAC,CAAA;YAC/F,4DAA4D;YAC5D,IAAA,0BAAiB,EAAC,oDAAoD,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;YACrF,0DAA0D;YAC1D,IAAA,0BAAiB,EAAC,oDAAoD,EAAE,IAAI,EAAE,EAAE,CAAC,CAAA;YACjF,MAAM,YAAY,GAAG,0DAA0D;iBAC1E,OAAO,CAAC,IAAI,gBAAgB,GA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,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnL,CAAC;IAED;;;;;;;;;OASG;IACI,yCAAyC,CAAC,cAAsB,EAAE,IAAY,EAAE,EAAU,EAAE,OAA+B;QAC9H,OAAO,IAAA,kBAAU,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,yCAAyC,CAAC,cAAc,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7K,CAAC;CACJ;AA1DD,4BA0DC"}
package/src/api.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Daytona Analytics API
3
+ * Daytona Analytics API - Read-only telemetry and usage data. Authenticated via Daytona API keys or JWT tokens.
4
+ *
5
+ * The version of the OpenAPI document: v0.0.0-dev
6
+ *
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
+ export * from './api/telemetry-api';
13
+ export * from './api/usage-api';