@daytonaio/api-client 0.7.0 → 0.9.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 (113) hide show
  1. package/.openapi-generator/FILES +16 -1
  2. package/README.md +2 -2
  3. package/api/toolbox-api.ts +1149 -104
  4. package/api/users-api.ts +68 -0
  5. package/api/workspace-api.ts +78 -0
  6. package/api.ts +0 -1
  7. package/dist/api/toolbox-api.d.ts +473 -0
  8. package/dist/api/toolbox-api.js +967 -1
  9. package/dist/api/users-api.d.ts +30 -0
  10. package/dist/api/users-api.js +62 -0
  11. package/dist/api/workspace-api.d.ts +33 -0
  12. package/dist/api/workspace-api.js +73 -0
  13. package/dist/api.d.ts +0 -1
  14. package/dist/api.js +0 -1
  15. package/dist/esm/api/toolbox-api.d.ts +473 -0
  16. package/dist/esm/api/toolbox-api.js +967 -1
  17. package/dist/esm/api/users-api.d.ts +30 -0
  18. package/dist/esm/api/users-api.js +62 -0
  19. package/dist/esm/api/workspace-api.d.ts +33 -0
  20. package/dist/esm/api/workspace-api.js +73 -0
  21. package/dist/esm/api.d.ts +0 -1
  22. package/dist/esm/api.js +0 -1
  23. package/dist/esm/models/command.d.ts +42 -0
  24. package/dist/esm/models/command.js +14 -0
  25. package/dist/esm/models/completion-context.d.ts +30 -0
  26. package/dist/esm/models/completion-context.js +14 -0
  27. package/dist/esm/models/completion-item.d.ts +60 -0
  28. package/dist/esm/models/completion-item.js +14 -0
  29. package/dist/esm/models/completion-list.d.ts +31 -0
  30. package/dist/esm/models/completion-list.js +14 -0
  31. package/dist/esm/models/create-session-request.d.ts +24 -0
  32. package/dist/esm/models/create-session-request.js +14 -0
  33. package/dist/esm/models/index.d.ts +16 -0
  34. package/dist/esm/models/index.js +16 -0
  35. package/dist/esm/models/lsp-completion-params.d.ts +50 -0
  36. package/dist/esm/models/lsp-completion-params.js +14 -0
  37. package/dist/esm/models/lsp-document-request.d.ts +36 -0
  38. package/dist/esm/models/lsp-document-request.js +14 -0
  39. package/dist/esm/models/lsp-location.d.ts +31 -0
  40. package/dist/esm/models/lsp-location.js +14 -0
  41. package/dist/esm/models/lsp-server-request.d.ts +30 -0
  42. package/dist/esm/models/lsp-server-request.js +14 -0
  43. package/dist/esm/models/lsp-symbol.d.ts +37 -0
  44. package/dist/esm/models/lsp-symbol.js +14 -0
  45. package/dist/esm/models/position.d.ts +30 -0
  46. package/dist/esm/models/position.js +14 -0
  47. package/dist/esm/models/range.d.ts +31 -0
  48. package/dist/esm/models/range.js +14 -0
  49. package/dist/esm/models/session-execute-request.d.ts +30 -0
  50. package/dist/esm/models/session-execute-request.js +14 -0
  51. package/dist/esm/models/session-execute-response.d.ts +36 -0
  52. package/dist/esm/models/session-execute-response.js +14 -0
  53. package/dist/esm/models/session.d.ts +31 -0
  54. package/dist/esm/models/session.js +14 -0
  55. package/dist/esm/models/usage-overview.d.ts +84 -0
  56. package/dist/esm/models/usage-overview.js +14 -0
  57. package/dist/models/command.d.ts +42 -0
  58. package/dist/models/command.js +15 -0
  59. package/dist/models/completion-context.d.ts +30 -0
  60. package/dist/models/completion-context.js +15 -0
  61. package/dist/models/completion-item.d.ts +60 -0
  62. package/dist/models/completion-item.js +15 -0
  63. package/dist/models/completion-list.d.ts +31 -0
  64. package/dist/models/completion-list.js +15 -0
  65. package/dist/models/create-session-request.d.ts +24 -0
  66. package/dist/models/create-session-request.js +15 -0
  67. package/dist/models/index.d.ts +16 -0
  68. package/dist/models/index.js +16 -0
  69. package/dist/models/lsp-completion-params.d.ts +50 -0
  70. package/dist/models/lsp-completion-params.js +15 -0
  71. package/dist/models/lsp-document-request.d.ts +36 -0
  72. package/dist/models/lsp-document-request.js +15 -0
  73. package/dist/models/lsp-location.d.ts +31 -0
  74. package/dist/models/lsp-location.js +15 -0
  75. package/dist/models/lsp-server-request.d.ts +30 -0
  76. package/dist/models/lsp-server-request.js +15 -0
  77. package/dist/models/lsp-symbol.d.ts +37 -0
  78. package/dist/models/lsp-symbol.js +15 -0
  79. package/dist/models/position.d.ts +30 -0
  80. package/dist/models/position.js +15 -0
  81. package/dist/models/range.d.ts +31 -0
  82. package/dist/models/range.js +15 -0
  83. package/dist/models/session-execute-request.d.ts +30 -0
  84. package/dist/models/session-execute-request.js +15 -0
  85. package/dist/models/session-execute-response.d.ts +36 -0
  86. package/dist/models/session-execute-response.js +15 -0
  87. package/dist/models/session.d.ts +31 -0
  88. package/dist/models/session.js +15 -0
  89. package/dist/models/usage-overview.d.ts +84 -0
  90. package/dist/models/usage-overview.js +15 -0
  91. package/models/command.ts +48 -0
  92. package/models/completion-context.ts +36 -0
  93. package/models/completion-item.ts +66 -0
  94. package/models/completion-list.ts +39 -0
  95. package/models/create-session-request.ts +30 -0
  96. package/models/index.ts +16 -0
  97. package/models/lsp-completion-params.ts +60 -0
  98. package/models/lsp-document-request.ts +42 -0
  99. package/models/lsp-location.ts +39 -0
  100. package/models/lsp-server-request.ts +36 -0
  101. package/models/lsp-symbol.ts +45 -0
  102. package/models/position.ts +36 -0
  103. package/models/range.ts +39 -0
  104. package/models/session-execute-request.ts +36 -0
  105. package/models/session-execute-response.ts +42 -0
  106. package/models/session.ts +39 -0
  107. package/models/usage-overview.ts +90 -0
  108. package/package.json +1 -1
  109. package/api/app-api.ts +0 -118
  110. package/dist/api/app-api.d.ts +0 -65
  111. package/dist/api/app-api.js +0 -124
  112. package/dist/esm/api/app-api.d.ts +0 -65
  113. package/dist/esm/api/app-api.js +0 -117
@@ -1,65 +0,0 @@
1
- /**
2
- * Daytona Workspaces
3
- * Daytona Workspaces API Docs
4
- *
5
- * The version of the OpenAPI document: 1.0
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
- /**
16
- * AppApi - axios parameter creator
17
- * @export
18
- */
19
- export declare const AppApiAxiosParamCreator: (configuration?: Configuration) => {
20
- /**
21
- *
22
- * @param {*} [options] Override http request option.
23
- * @throws {RequiredError}
24
- */
25
- appControllerGetHello: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26
- };
27
- /**
28
- * AppApi - functional programming interface
29
- * @export
30
- */
31
- export declare const AppApiFp: (configuration?: Configuration) => {
32
- /**
33
- *
34
- * @param {*} [options] Override http request option.
35
- * @throws {RequiredError}
36
- */
37
- appControllerGetHello(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
38
- };
39
- /**
40
- * AppApi - factory interface
41
- * @export
42
- */
43
- export declare const AppApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
44
- /**
45
- *
46
- * @param {*} [options] Override http request option.
47
- * @throws {RequiredError}
48
- */
49
- appControllerGetHello(options?: RawAxiosRequestConfig): AxiosPromise<void>;
50
- };
51
- /**
52
- * AppApi - object-oriented interface
53
- * @export
54
- * @class AppApi
55
- * @extends {BaseAPI}
56
- */
57
- export declare class AppApi extends BaseAPI {
58
- /**
59
- *
60
- * @param {*} [options] Override http request option.
61
- * @throws {RequiredError}
62
- * @memberof AppApi
63
- */
64
- appControllerGetHello(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
65
- }
@@ -1,117 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Daytona Workspaces
5
- * Daytona Workspaces API Docs
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- *
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
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
- import globalAxios from 'axios';
24
- // Some imports not used depending on template conditions
25
- // @ts-ignore
26
- import { DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from '../common';
27
- // @ts-ignore
28
- import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
- /**
30
- * AppApi - axios parameter creator
31
- * @export
32
- */
33
- export const AppApiAxiosParamCreator = function (configuration) {
34
- return {
35
- /**
36
- *
37
- * @param {*} [options] Override http request option.
38
- * @throws {RequiredError}
39
- */
40
- appControllerGetHello: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
41
- const localVarPath = `/`;
42
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
43
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44
- let baseOptions;
45
- if (configuration) {
46
- baseOptions = configuration.baseOptions;
47
- }
48
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
49
- const localVarHeaderParameter = {};
50
- const localVarQueryParameter = {};
51
- setSearchParams(localVarUrlObj, localVarQueryParameter);
52
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
53
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
54
- return {
55
- url: toPathString(localVarUrlObj),
56
- options: localVarRequestOptions,
57
- };
58
- }),
59
- };
60
- };
61
- /**
62
- * AppApi - functional programming interface
63
- * @export
64
- */
65
- export const AppApiFp = function (configuration) {
66
- const localVarAxiosParamCreator = AppApiAxiosParamCreator(configuration);
67
- return {
68
- /**
69
- *
70
- * @param {*} [options] Override http request option.
71
- * @throws {RequiredError}
72
- */
73
- appControllerGetHello(options) {
74
- return __awaiter(this, void 0, void 0, function* () {
75
- var _a, _b, _c;
76
- const localVarAxiosArgs = yield localVarAxiosParamCreator.appControllerGetHello(options);
77
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
78
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AppApi.appControllerGetHello']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
79
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
80
- });
81
- },
82
- };
83
- };
84
- /**
85
- * AppApi - factory interface
86
- * @export
87
- */
88
- export const AppApiFactory = function (configuration, basePath, axios) {
89
- const localVarFp = AppApiFp(configuration);
90
- return {
91
- /**
92
- *
93
- * @param {*} [options] Override http request option.
94
- * @throws {RequiredError}
95
- */
96
- appControllerGetHello(options) {
97
- return localVarFp.appControllerGetHello(options).then((request) => request(axios, basePath));
98
- },
99
- };
100
- };
101
- /**
102
- * AppApi - object-oriented interface
103
- * @export
104
- * @class AppApi
105
- * @extends {BaseAPI}
106
- */
107
- export class AppApi extends BaseAPI {
108
- /**
109
- *
110
- * @param {*} [options] Override http request option.
111
- * @throws {RequiredError}
112
- * @memberof AppApi
113
- */
114
- appControllerGetHello(options) {
115
- return AppApiFp(this.configuration).appControllerGetHello(options).then((request) => request(this.axios, this.basePath));
116
- }
117
- }