@daytonaio/api-client 0.191.0 → 0.192.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api/admin-api.d.ts +55 -12
- package/src/api/admin-api.js +105 -15
- package/src/api/admin-api.js.map +1 -1
- package/src/api/audit-api.d.ts +55 -12
- package/src/api/audit-api.js +105 -15
- package/src/api/audit-api.js.map +1 -1
- package/src/api/sandbox-api.d.ts +37 -0
- package/src/api/sandbox-api.js +74 -0
- package/src/api/sandbox-api.js.map +1 -1
- package/src/api/secret-api.d.ts +217 -0
- package/src/api/secret-api.js +426 -0
- package/src/api/secret-api.js.map +1 -0
- package/src/api.d.ts +1 -0
- package/src/api.js +1 -0
- package/src/api.js.map +1 -1
- package/src/models/api-key-list.d.ts +2 -0
- package/src/models/api-key-list.js +2 -0
- package/src/models/api-key-list.js.map +1 -1
- package/src/models/api-key-response.d.ts +2 -0
- package/src/models/api-key-response.js +2 -0
- package/src/models/api-key-response.js.map +1 -1
- package/src/models/create-api-key.d.ts +2 -0
- package/src/models/create-api-key.js +2 -0
- package/src/models/create-api-key.js.map +1 -1
- package/src/models/create-organization-role.d.ts +2 -0
- package/src/models/create-organization-role.js +2 -0
- package/src/models/create-organization-role.js.map +1 -1
- package/src/models/create-sandbox.d.ts +6 -0
- package/src/models/create-secret.d.ts +29 -0
- package/src/models/create-secret.js +16 -0
- package/src/models/create-secret.js.map +1 -0
- package/src/models/date-filter.d.ts +29 -0
- package/src/models/date-filter.js +16 -0
- package/src/models/date-filter.js.map +1 -0
- package/src/models/index.d.ts +7 -0
- package/src/models/index.js +7 -0
- package/src/models/index.js.map +1 -1
- package/src/models/int-filter.d.ts +45 -0
- package/src/models/int-filter.js +16 -0
- package/src/models/int-filter.js.map +1 -0
- package/src/models/organization-role.d.ts +2 -0
- package/src/models/organization-role.js +2 -0
- package/src/models/organization-role.js.map +1 -1
- package/src/models/resolve-sandbox-secrets200-response-inner.d.ts +17 -0
- package/src/models/resolve-sandbox-secrets200-response-inner.js +16 -0
- package/src/models/resolve-sandbox-secrets200-response-inner.js.map +1 -0
- package/src/models/secret.d.ts +41 -0
- package/src/models/secret.js +16 -0
- package/src/models/secret.js.map +1 -0
- package/src/models/string-filter.d.ts +29 -0
- package/src/models/string-filter.js +16 -0
- package/src/models/string-filter.js.map +1 -0
- package/src/models/update-organization-role.d.ts +2 -0
- package/src/models/update-organization-role.js +2 -0
- package/src/models/update-organization-role.js.map +1 -1
- package/src/models/update-secret.d.ts +25 -0
- package/src/models/update-secret.js +16 -0
- package/src/models/update-secret.js.map +1 -0
package/src/api/audit-api.d.ts
CHANGED
|
@@ -12,7 +12,10 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { DateFilter } from '../models';
|
|
16
|
+
import type { IntFilter } from '../models';
|
|
15
17
|
import type { PaginatedAuditLogs } from '../models';
|
|
18
|
+
import type { StringFilter } from '../models';
|
|
16
19
|
/**
|
|
17
20
|
* AuditApi - axios parameter creator
|
|
18
21
|
*/
|
|
@@ -23,13 +26,23 @@ export declare const AuditApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
23
26
|
* @param {string} organizationId Organization ID
|
|
24
27
|
* @param {number} [page] Page number of the results
|
|
25
28
|
* @param {number} [limit] Number of results per page
|
|
26
|
-
* @param {Date} [from] From date (ISO 8601 format)
|
|
27
|
-
* @param {Date} [to] To date (ISO 8601 format)
|
|
29
|
+
* @param {Date} [from] Deprecated alias for `createdAt[gte]`. From date (ISO 8601 format).
|
|
30
|
+
* @param {Date} [to] Deprecated alias for `createdAt[lte]`. To date (ISO 8601 format).
|
|
28
31
|
* @param {string} [nextToken] Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
32
|
+
* @param {StringFilter} [id] Filter by audit log ID.
|
|
33
|
+
* @param {StringFilter} [actorId] Filter by actor user ID.
|
|
34
|
+
* @param {StringFilter} [actorEmail] Filter by actor email.
|
|
35
|
+
* @param {StringFilter} [actorApiKeyPrefix] Filter by actor API key prefix.
|
|
36
|
+
* @param {StringFilter} [actorApiKeySuffix] Filter by actor API key suffix.
|
|
37
|
+
* @param {StringFilter} [action] Filter by action.
|
|
38
|
+
* @param {StringFilter} [targetType] Filter by target type.
|
|
39
|
+
* @param {StringFilter} [targetId] Filter by target ID.
|
|
40
|
+
* @param {IntFilter} [statusCode] Filter by HTTP status code.
|
|
41
|
+
* @param {DateFilter} [createdAt] Filter by creation timestamp.
|
|
29
42
|
* @param {*} [options] Override http request option.
|
|
30
43
|
* @throws {RequiredError}
|
|
31
44
|
*/
|
|
32
|
-
getOrganizationAuditLogs: (organizationId: string, page?: number, limit?: number, from?: Date, to?: Date, nextToken?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
|
+
getOrganizationAuditLogs: (organizationId: string, page?: number, limit?: number, from?: Date, to?: Date, nextToken?: string, id?: StringFilter, actorId?: StringFilter, actorEmail?: StringFilter, actorApiKeyPrefix?: StringFilter, actorApiKeySuffix?: StringFilter, action?: StringFilter, targetType?: StringFilter, targetId?: StringFilter, statusCode?: IntFilter, createdAt?: DateFilter, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
46
|
};
|
|
34
47
|
/**
|
|
35
48
|
* AuditApi - functional programming interface
|
|
@@ -41,13 +54,23 @@ export declare const AuditApiFp: (configuration?: Configuration) => {
|
|
|
41
54
|
* @param {string} organizationId Organization ID
|
|
42
55
|
* @param {number} [page] Page number of the results
|
|
43
56
|
* @param {number} [limit] Number of results per page
|
|
44
|
-
* @param {Date} [from] From date (ISO 8601 format)
|
|
45
|
-
* @param {Date} [to] To date (ISO 8601 format)
|
|
57
|
+
* @param {Date} [from] Deprecated alias for `createdAt[gte]`. From date (ISO 8601 format).
|
|
58
|
+
* @param {Date} [to] Deprecated alias for `createdAt[lte]`. To date (ISO 8601 format).
|
|
46
59
|
* @param {string} [nextToken] Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
60
|
+
* @param {StringFilter} [id] Filter by audit log ID.
|
|
61
|
+
* @param {StringFilter} [actorId] Filter by actor user ID.
|
|
62
|
+
* @param {StringFilter} [actorEmail] Filter by actor email.
|
|
63
|
+
* @param {StringFilter} [actorApiKeyPrefix] Filter by actor API key prefix.
|
|
64
|
+
* @param {StringFilter} [actorApiKeySuffix] Filter by actor API key suffix.
|
|
65
|
+
* @param {StringFilter} [action] Filter by action.
|
|
66
|
+
* @param {StringFilter} [targetType] Filter by target type.
|
|
67
|
+
* @param {StringFilter} [targetId] Filter by target ID.
|
|
68
|
+
* @param {IntFilter} [statusCode] Filter by HTTP status code.
|
|
69
|
+
* @param {DateFilter} [createdAt] Filter by creation timestamp.
|
|
47
70
|
* @param {*} [options] Override http request option.
|
|
48
71
|
* @throws {RequiredError}
|
|
49
72
|
*/
|
|
50
|
-
getOrganizationAuditLogs(organizationId: string, page?: number, limit?: number, from?: Date, to?: Date, nextToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedAuditLogs>>;
|
|
73
|
+
getOrganizationAuditLogs(organizationId: string, page?: number, limit?: number, from?: Date, to?: Date, nextToken?: string, id?: StringFilter, actorId?: StringFilter, actorEmail?: StringFilter, actorApiKeyPrefix?: StringFilter, actorApiKeySuffix?: StringFilter, action?: StringFilter, targetType?: StringFilter, targetId?: StringFilter, statusCode?: IntFilter, createdAt?: DateFilter, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedAuditLogs>>;
|
|
51
74
|
};
|
|
52
75
|
/**
|
|
53
76
|
* AuditApi - factory interface
|
|
@@ -59,13 +82,23 @@ export declare const AuditApiFactory: (configuration?: Configuration, basePath?:
|
|
|
59
82
|
* @param {string} organizationId Organization ID
|
|
60
83
|
* @param {number} [page] Page number of the results
|
|
61
84
|
* @param {number} [limit] Number of results per page
|
|
62
|
-
* @param {Date} [from] From date (ISO 8601 format)
|
|
63
|
-
* @param {Date} [to] To date (ISO 8601 format)
|
|
85
|
+
* @param {Date} [from] Deprecated alias for `createdAt[gte]`. From date (ISO 8601 format).
|
|
86
|
+
* @param {Date} [to] Deprecated alias for `createdAt[lte]`. To date (ISO 8601 format).
|
|
64
87
|
* @param {string} [nextToken] Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
88
|
+
* @param {StringFilter} [id] Filter by audit log ID.
|
|
89
|
+
* @param {StringFilter} [actorId] Filter by actor user ID.
|
|
90
|
+
* @param {StringFilter} [actorEmail] Filter by actor email.
|
|
91
|
+
* @param {StringFilter} [actorApiKeyPrefix] Filter by actor API key prefix.
|
|
92
|
+
* @param {StringFilter} [actorApiKeySuffix] Filter by actor API key suffix.
|
|
93
|
+
* @param {StringFilter} [action] Filter by action.
|
|
94
|
+
* @param {StringFilter} [targetType] Filter by target type.
|
|
95
|
+
* @param {StringFilter} [targetId] Filter by target ID.
|
|
96
|
+
* @param {IntFilter} [statusCode] Filter by HTTP status code.
|
|
97
|
+
* @param {DateFilter} [createdAt] Filter by creation timestamp.
|
|
65
98
|
* @param {*} [options] Override http request option.
|
|
66
99
|
* @throws {RequiredError}
|
|
67
100
|
*/
|
|
68
|
-
getOrganizationAuditLogs(organizationId: string, page?: number, limit?: number, from?: Date, to?: Date, nextToken?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedAuditLogs>;
|
|
101
|
+
getOrganizationAuditLogs(organizationId: string, page?: number, limit?: number, from?: Date, to?: Date, nextToken?: string, id?: StringFilter, actorId?: StringFilter, actorEmail?: StringFilter, actorApiKeyPrefix?: StringFilter, actorApiKeySuffix?: StringFilter, action?: StringFilter, targetType?: StringFilter, targetId?: StringFilter, statusCode?: IntFilter, createdAt?: DateFilter, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedAuditLogs>;
|
|
69
102
|
};
|
|
70
103
|
/**
|
|
71
104
|
* AuditApi - object-oriented interface
|
|
@@ -77,11 +110,21 @@ export declare class AuditApi extends BaseAPI {
|
|
|
77
110
|
* @param {string} organizationId Organization ID
|
|
78
111
|
* @param {number} [page] Page number of the results
|
|
79
112
|
* @param {number} [limit] Number of results per page
|
|
80
|
-
* @param {Date} [from] From date (ISO 8601 format)
|
|
81
|
-
* @param {Date} [to] To date (ISO 8601 format)
|
|
113
|
+
* @param {Date} [from] Deprecated alias for `createdAt[gte]`. From date (ISO 8601 format).
|
|
114
|
+
* @param {Date} [to] Deprecated alias for `createdAt[lte]`. To date (ISO 8601 format).
|
|
82
115
|
* @param {string} [nextToken] Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
116
|
+
* @param {StringFilter} [id] Filter by audit log ID.
|
|
117
|
+
* @param {StringFilter} [actorId] Filter by actor user ID.
|
|
118
|
+
* @param {StringFilter} [actorEmail] Filter by actor email.
|
|
119
|
+
* @param {StringFilter} [actorApiKeyPrefix] Filter by actor API key prefix.
|
|
120
|
+
* @param {StringFilter} [actorApiKeySuffix] Filter by actor API key suffix.
|
|
121
|
+
* @param {StringFilter} [action] Filter by action.
|
|
122
|
+
* @param {StringFilter} [targetType] Filter by target type.
|
|
123
|
+
* @param {StringFilter} [targetId] Filter by target ID.
|
|
124
|
+
* @param {IntFilter} [statusCode] Filter by HTTP status code.
|
|
125
|
+
* @param {DateFilter} [createdAt] Filter by creation timestamp.
|
|
83
126
|
* @param {*} [options] Override http request option.
|
|
84
127
|
* @throws {RequiredError}
|
|
85
128
|
*/
|
|
86
|
-
getOrganizationAuditLogs(organizationId: string, page?: number, limit?: number, from?: Date, to?: Date, nextToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedAuditLogs, any, {}>>;
|
|
129
|
+
getOrganizationAuditLogs(organizationId: string, page?: number, limit?: number, from?: Date, to?: Date, nextToken?: string, id?: StringFilter, actorId?: StringFilter, actorEmail?: StringFilter, actorApiKeyPrefix?: StringFilter, actorApiKeySuffix?: StringFilter, action?: StringFilter, targetType?: StringFilter, targetId?: StringFilter, statusCode?: IntFilter, createdAt?: DateFilter, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedAuditLogs, any, {}>>;
|
|
87
130
|
}
|
package/src/api/audit-api.js
CHANGED
|
@@ -31,13 +31,23 @@ const AuditApiAxiosParamCreator = function (configuration) {
|
|
|
31
31
|
* @param {string} organizationId Organization ID
|
|
32
32
|
* @param {number} [page] Page number of the results
|
|
33
33
|
* @param {number} [limit] Number of results per page
|
|
34
|
-
* @param {Date} [from] From date (ISO 8601 format)
|
|
35
|
-
* @param {Date} [to] To date (ISO 8601 format)
|
|
34
|
+
* @param {Date} [from] Deprecated alias for `createdAt[gte]`. From date (ISO 8601 format).
|
|
35
|
+
* @param {Date} [to] Deprecated alias for `createdAt[lte]`. To date (ISO 8601 format).
|
|
36
36
|
* @param {string} [nextToken] Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
37
|
+
* @param {StringFilter} [id] Filter by audit log ID.
|
|
38
|
+
* @param {StringFilter} [actorId] Filter by actor user ID.
|
|
39
|
+
* @param {StringFilter} [actorEmail] Filter by actor email.
|
|
40
|
+
* @param {StringFilter} [actorApiKeyPrefix] Filter by actor API key prefix.
|
|
41
|
+
* @param {StringFilter} [actorApiKeySuffix] Filter by actor API key suffix.
|
|
42
|
+
* @param {StringFilter} [action] Filter by action.
|
|
43
|
+
* @param {StringFilter} [targetType] Filter by target type.
|
|
44
|
+
* @param {StringFilter} [targetId] Filter by target ID.
|
|
45
|
+
* @param {IntFilter} [statusCode] Filter by HTTP status code.
|
|
46
|
+
* @param {DateFilter} [createdAt] Filter by creation timestamp.
|
|
37
47
|
* @param {*} [options] Override http request option.
|
|
38
48
|
* @throws {RequiredError}
|
|
39
49
|
*/
|
|
40
|
-
getOrganizationAuditLogs: async (organizationId, page, limit, from, to, nextToken, options = {}) => {
|
|
50
|
+
getOrganizationAuditLogs: async (organizationId, page, limit, from, to, nextToken, id, actorId, actorEmail, actorApiKeyPrefix, actorApiKeySuffix, action, targetType, targetId, statusCode, createdAt, options = {}) => {
|
|
41
51
|
// verify required parameter 'organizationId' is not null or undefined
|
|
42
52
|
(0, common_1.assertParamExists)('getOrganizationAuditLogs', 'organizationId', organizationId);
|
|
43
53
|
const localVarPath = `/audit/organizations/{organizationId}`
|
|
@@ -74,6 +84,56 @@ const AuditApiAxiosParamCreator = function (configuration) {
|
|
|
74
84
|
if (nextToken !== undefined) {
|
|
75
85
|
localVarQueryParameter['nextToken'] = nextToken;
|
|
76
86
|
}
|
|
87
|
+
if (id !== undefined) {
|
|
88
|
+
for (const [key, value] of Object.entries(id)) {
|
|
89
|
+
localVarQueryParameter[key] = value;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
if (actorId !== undefined) {
|
|
93
|
+
for (const [key, value] of Object.entries(actorId)) {
|
|
94
|
+
localVarQueryParameter[key] = value;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
if (actorEmail !== undefined) {
|
|
98
|
+
for (const [key, value] of Object.entries(actorEmail)) {
|
|
99
|
+
localVarQueryParameter[key] = value;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
if (actorApiKeyPrefix !== undefined) {
|
|
103
|
+
for (const [key, value] of Object.entries(actorApiKeyPrefix)) {
|
|
104
|
+
localVarQueryParameter[key] = value;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (actorApiKeySuffix !== undefined) {
|
|
108
|
+
for (const [key, value] of Object.entries(actorApiKeySuffix)) {
|
|
109
|
+
localVarQueryParameter[key] = value;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
if (action !== undefined) {
|
|
113
|
+
for (const [key, value] of Object.entries(action)) {
|
|
114
|
+
localVarQueryParameter[key] = value;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
if (targetType !== undefined) {
|
|
118
|
+
for (const [key, value] of Object.entries(targetType)) {
|
|
119
|
+
localVarQueryParameter[key] = value;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
if (targetId !== undefined) {
|
|
123
|
+
for (const [key, value] of Object.entries(targetId)) {
|
|
124
|
+
localVarQueryParameter[key] = value;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if (statusCode !== undefined) {
|
|
128
|
+
for (const [key, value] of Object.entries(statusCode)) {
|
|
129
|
+
localVarQueryParameter[key] = value;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
if (createdAt !== undefined) {
|
|
133
|
+
for (const [key, value] of Object.entries(createdAt)) {
|
|
134
|
+
localVarQueryParameter[key] = value;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
77
137
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
78
138
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
79
139
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -98,14 +158,24 @@ const AuditApiFp = function (configuration) {
|
|
|
98
158
|
* @param {string} organizationId Organization ID
|
|
99
159
|
* @param {number} [page] Page number of the results
|
|
100
160
|
* @param {number} [limit] Number of results per page
|
|
101
|
-
* @param {Date} [from] From date (ISO 8601 format)
|
|
102
|
-
* @param {Date} [to] To date (ISO 8601 format)
|
|
161
|
+
* @param {Date} [from] Deprecated alias for `createdAt[gte]`. From date (ISO 8601 format).
|
|
162
|
+
* @param {Date} [to] Deprecated alias for `createdAt[lte]`. To date (ISO 8601 format).
|
|
103
163
|
* @param {string} [nextToken] Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
164
|
+
* @param {StringFilter} [id] Filter by audit log ID.
|
|
165
|
+
* @param {StringFilter} [actorId] Filter by actor user ID.
|
|
166
|
+
* @param {StringFilter} [actorEmail] Filter by actor email.
|
|
167
|
+
* @param {StringFilter} [actorApiKeyPrefix] Filter by actor API key prefix.
|
|
168
|
+
* @param {StringFilter} [actorApiKeySuffix] Filter by actor API key suffix.
|
|
169
|
+
* @param {StringFilter} [action] Filter by action.
|
|
170
|
+
* @param {StringFilter} [targetType] Filter by target type.
|
|
171
|
+
* @param {StringFilter} [targetId] Filter by target ID.
|
|
172
|
+
* @param {IntFilter} [statusCode] Filter by HTTP status code.
|
|
173
|
+
* @param {DateFilter} [createdAt] Filter by creation timestamp.
|
|
104
174
|
* @param {*} [options] Override http request option.
|
|
105
175
|
* @throws {RequiredError}
|
|
106
176
|
*/
|
|
107
|
-
async getOrganizationAuditLogs(organizationId, page, limit, from, to, nextToken, options) {
|
|
108
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationAuditLogs(organizationId, page, limit, from, to, nextToken, options);
|
|
177
|
+
async getOrganizationAuditLogs(organizationId, page, limit, from, to, nextToken, id, actorId, actorEmail, actorApiKeyPrefix, actorApiKeySuffix, action, targetType, targetId, statusCode, createdAt, options) {
|
|
178
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationAuditLogs(organizationId, page, limit, from, to, nextToken, id, actorId, actorEmail, actorApiKeyPrefix, actorApiKeySuffix, action, targetType, targetId, statusCode, createdAt, options);
|
|
109
179
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
110
180
|
const localVarOperationServerBasePath = base_1.operationServerMap['AuditApi.getOrganizationAuditLogs']?.[localVarOperationServerIndex]?.url;
|
|
111
181
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -125,14 +195,24 @@ const AuditApiFactory = function (configuration, basePath, axios) {
|
|
|
125
195
|
* @param {string} organizationId Organization ID
|
|
126
196
|
* @param {number} [page] Page number of the results
|
|
127
197
|
* @param {number} [limit] Number of results per page
|
|
128
|
-
* @param {Date} [from] From date (ISO 8601 format)
|
|
129
|
-
* @param {Date} [to] To date (ISO 8601 format)
|
|
198
|
+
* @param {Date} [from] Deprecated alias for `createdAt[gte]`. From date (ISO 8601 format).
|
|
199
|
+
* @param {Date} [to] Deprecated alias for `createdAt[lte]`. To date (ISO 8601 format).
|
|
130
200
|
* @param {string} [nextToken] Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
201
|
+
* @param {StringFilter} [id] Filter by audit log ID.
|
|
202
|
+
* @param {StringFilter} [actorId] Filter by actor user ID.
|
|
203
|
+
* @param {StringFilter} [actorEmail] Filter by actor email.
|
|
204
|
+
* @param {StringFilter} [actorApiKeyPrefix] Filter by actor API key prefix.
|
|
205
|
+
* @param {StringFilter} [actorApiKeySuffix] Filter by actor API key suffix.
|
|
206
|
+
* @param {StringFilter} [action] Filter by action.
|
|
207
|
+
* @param {StringFilter} [targetType] Filter by target type.
|
|
208
|
+
* @param {StringFilter} [targetId] Filter by target ID.
|
|
209
|
+
* @param {IntFilter} [statusCode] Filter by HTTP status code.
|
|
210
|
+
* @param {DateFilter} [createdAt] Filter by creation timestamp.
|
|
131
211
|
* @param {*} [options] Override http request option.
|
|
132
212
|
* @throws {RequiredError}
|
|
133
213
|
*/
|
|
134
|
-
getOrganizationAuditLogs(organizationId, page, limit, from, to, nextToken, options) {
|
|
135
|
-
return localVarFp.getOrganizationAuditLogs(organizationId, page, limit, from, to, nextToken, options).then((request) => request(axios, basePath));
|
|
214
|
+
getOrganizationAuditLogs(organizationId, page, limit, from, to, nextToken, id, actorId, actorEmail, actorApiKeyPrefix, actorApiKeySuffix, action, targetType, targetId, statusCode, createdAt, options) {
|
|
215
|
+
return localVarFp.getOrganizationAuditLogs(organizationId, page, limit, from, to, nextToken, id, actorId, actorEmail, actorApiKeyPrefix, actorApiKeySuffix, action, targetType, targetId, statusCode, createdAt, options).then((request) => request(axios, basePath));
|
|
136
216
|
},
|
|
137
217
|
};
|
|
138
218
|
};
|
|
@@ -147,14 +227,24 @@ class AuditApi extends base_1.BaseAPI {
|
|
|
147
227
|
* @param {string} organizationId Organization ID
|
|
148
228
|
* @param {number} [page] Page number of the results
|
|
149
229
|
* @param {number} [limit] Number of results per page
|
|
150
|
-
* @param {Date} [from] From date (ISO 8601 format)
|
|
151
|
-
* @param {Date} [to] To date (ISO 8601 format)
|
|
230
|
+
* @param {Date} [from] Deprecated alias for `createdAt[gte]`. From date (ISO 8601 format).
|
|
231
|
+
* @param {Date} [to] Deprecated alias for `createdAt[lte]`. To date (ISO 8601 format).
|
|
152
232
|
* @param {string} [nextToken] Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
233
|
+
* @param {StringFilter} [id] Filter by audit log ID.
|
|
234
|
+
* @param {StringFilter} [actorId] Filter by actor user ID.
|
|
235
|
+
* @param {StringFilter} [actorEmail] Filter by actor email.
|
|
236
|
+
* @param {StringFilter} [actorApiKeyPrefix] Filter by actor API key prefix.
|
|
237
|
+
* @param {StringFilter} [actorApiKeySuffix] Filter by actor API key suffix.
|
|
238
|
+
* @param {StringFilter} [action] Filter by action.
|
|
239
|
+
* @param {StringFilter} [targetType] Filter by target type.
|
|
240
|
+
* @param {StringFilter} [targetId] Filter by target ID.
|
|
241
|
+
* @param {IntFilter} [statusCode] Filter by HTTP status code.
|
|
242
|
+
* @param {DateFilter} [createdAt] Filter by creation timestamp.
|
|
153
243
|
* @param {*} [options] Override http request option.
|
|
154
244
|
* @throws {RequiredError}
|
|
155
245
|
*/
|
|
156
|
-
getOrganizationAuditLogs(organizationId, page, limit, from, to, nextToken, options) {
|
|
157
|
-
return (0, exports.AuditApiFp)(this.configuration).getOrganizationAuditLogs(organizationId, page, limit, from, to, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
246
|
+
getOrganizationAuditLogs(organizationId, page, limit, from, to, nextToken, id, actorId, actorEmail, actorApiKeyPrefix, actorApiKeySuffix, action, targetType, targetId, statusCode, createdAt, options) {
|
|
247
|
+
return (0, exports.AuditApiFp)(this.configuration).getOrganizationAuditLogs(organizationId, page, limit, from, to, nextToken, id, actorId, actorEmail, actorApiKeyPrefix, actorApiKeySuffix, action, targetType, targetId, statusCode, createdAt, options).then((request) => request(this.axios, this.basePath));
|
|
158
248
|
}
|
|
159
249
|
}
|
|
160
250
|
exports.AuditApi = AuditApi;
|
package/src/api/audit-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-api.js","sourceRoot":"","sources":["../../../../api-client/src/api/audit-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAKH,iCAAgC;AAChC,yDAAyD;AACzD,aAAa;AACb,sCAAkQ;AAClQ,aAAa;AACb,kCAAsH;
|
|
1
|
+
{"version":3,"file":"audit-api.js","sourceRoot":"","sources":["../../../../api-client/src/api/audit-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAKH,iCAAgC;AAChC,yDAAyD;AACzD,aAAa;AACb,sCAAkQ;AAClQ,aAAa;AACb,kCAAsH;AAStH;;GAEG;AACI,MAAM,yBAAyB,GAAG,UAAU,aAA6B;IAC5E,OAAO;QACH;;;;;;;;;;;;;;;;;;;;;WAqBG;QACH,wBAAwB,EAAE,KAAK,EAAE,cAAsB,EAAE,IAAa,EAAE,KAAc,EAAE,IAAW,EAAE,EAAS,EAAE,SAAkB,EAAE,EAAiB,EAAE,OAAsB,EAAE,UAAyB,EAAE,iBAAgC,EAAE,iBAAgC,EAAE,MAAqB,EAAE,UAAyB,EAAE,QAAuB,EAAE,UAAsB,EAAE,SAAsB,EAAE,UAAiC,EAAE,EAAwB,EAAE;YAClc,sEAAsE;YACtE,IAAA,0BAAiB,EAAC,0BAA0B,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAA;YAC/E,MAAM,YAAY,GAAG,uCAAuC;iBACvD,OAAO,CAAC,IAAI,gBAAgB,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;YAClF,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,uBAAc,CAAC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,IAAI,CAAC,aAAa,CAAC,CAAC,wBAAwB,CAAC,cAAc,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxS,CAAC;CACJ;AA1BD,4BA0BC"}
|
package/src/api/sandbox-api.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ import type { PaginatedTraces } from '../models';
|
|
|
24
24
|
import type { PortPreviewUrl } from '../models';
|
|
25
25
|
import type { RegionQuota } from '../models';
|
|
26
26
|
import type { ResizeSandbox } from '../models';
|
|
27
|
+
import type { ResolveSandboxSecrets200ResponseInner } from '../models';
|
|
27
28
|
import type { Sandbox } from '../models';
|
|
28
29
|
import type { SandboxClass } from '../models';
|
|
29
30
|
import type { SandboxLabels } from '../models';
|
|
@@ -384,6 +385,15 @@ export declare const SandboxApiAxiosParamCreator: (configuration?: Configuration
|
|
|
384
385
|
* @throws {RequiredError}
|
|
385
386
|
*/
|
|
386
387
|
resizeSandbox: (sandboxIdOrName: string, resizeSandbox: ResizeSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
388
|
+
/**
|
|
389
|
+
*
|
|
390
|
+
* @summary Resolve sandbox secrets
|
|
391
|
+
* @param {string} sandboxId Sandbox ID
|
|
392
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
*/
|
|
396
|
+
resolveSandboxSecrets: (sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
387
397
|
/**
|
|
388
398
|
*
|
|
389
399
|
* @summary Revoke SSH access for sandbox
|
|
@@ -838,6 +848,15 @@ export declare const SandboxApiFp: (configuration?: Configuration) => {
|
|
|
838
848
|
* @throws {RequiredError}
|
|
839
849
|
*/
|
|
840
850
|
resizeSandbox(sandboxIdOrName: string, resizeSandbox: ResizeSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Sandbox>>;
|
|
851
|
+
/**
|
|
852
|
+
*
|
|
853
|
+
* @summary Resolve sandbox secrets
|
|
854
|
+
* @param {string} sandboxId Sandbox ID
|
|
855
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
856
|
+
* @param {*} [options] Override http request option.
|
|
857
|
+
* @throws {RequiredError}
|
|
858
|
+
*/
|
|
859
|
+
resolveSandboxSecrets(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ResolveSandboxSecrets200ResponseInner>>>;
|
|
841
860
|
/**
|
|
842
861
|
*
|
|
843
862
|
* @summary Revoke SSH access for sandbox
|
|
@@ -1292,6 +1311,15 @@ export declare const SandboxApiFactory: (configuration?: Configuration, basePath
|
|
|
1292
1311
|
* @throws {RequiredError}
|
|
1293
1312
|
*/
|
|
1294
1313
|
resizeSandbox(sandboxIdOrName: string, resizeSandbox: ResizeSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Sandbox>;
|
|
1314
|
+
/**
|
|
1315
|
+
*
|
|
1316
|
+
* @summary Resolve sandbox secrets
|
|
1317
|
+
* @param {string} sandboxId Sandbox ID
|
|
1318
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1319
|
+
* @param {*} [options] Override http request option.
|
|
1320
|
+
* @throws {RequiredError}
|
|
1321
|
+
*/
|
|
1322
|
+
resolveSandboxSecrets(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ResolveSandboxSecrets200ResponseInner>>;
|
|
1295
1323
|
/**
|
|
1296
1324
|
*
|
|
1297
1325
|
* @summary Revoke SSH access for sandbox
|
|
@@ -1746,6 +1774,15 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
1746
1774
|
* @throws {RequiredError}
|
|
1747
1775
|
*/
|
|
1748
1776
|
resizeSandbox(sandboxIdOrName: string, resizeSandbox: ResizeSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any, {}>>;
|
|
1777
|
+
/**
|
|
1778
|
+
*
|
|
1779
|
+
* @summary Resolve sandbox secrets
|
|
1780
|
+
* @param {string} sandboxId Sandbox ID
|
|
1781
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1782
|
+
* @param {*} [options] Override http request option.
|
|
1783
|
+
* @throws {RequiredError}
|
|
1784
|
+
*/
|
|
1785
|
+
resolveSandboxSecrets(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ResolveSandboxSecrets200ResponseInner[], any, {}>>;
|
|
1749
1786
|
/**
|
|
1750
1787
|
*
|
|
1751
1788
|
* @summary Revoke SSH access for sandbox
|
package/src/api/sandbox-api.js
CHANGED
|
@@ -1486,6 +1486,44 @@ const SandboxApiAxiosParamCreator = function (configuration) {
|
|
|
1486
1486
|
options: localVarRequestOptions,
|
|
1487
1487
|
};
|
|
1488
1488
|
},
|
|
1489
|
+
/**
|
|
1490
|
+
*
|
|
1491
|
+
* @summary Resolve sandbox secrets
|
|
1492
|
+
* @param {string} sandboxId Sandbox ID
|
|
1493
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1494
|
+
* @param {*} [options] Override http request option.
|
|
1495
|
+
* @throws {RequiredError}
|
|
1496
|
+
*/
|
|
1497
|
+
resolveSandboxSecrets: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
|
|
1498
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
1499
|
+
(0, common_1.assertParamExists)('resolveSandboxSecrets', 'sandboxId', sandboxId);
|
|
1500
|
+
const localVarPath = `/sandbox/{sandboxId}/secrets`
|
|
1501
|
+
.replace(`{${"sandboxId"}}`, encodeURIComponent(String(sandboxId)));
|
|
1502
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1503
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1504
|
+
let baseOptions;
|
|
1505
|
+
if (configuration) {
|
|
1506
|
+
baseOptions = configuration.baseOptions;
|
|
1507
|
+
}
|
|
1508
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1509
|
+
const localVarHeaderParameter = {};
|
|
1510
|
+
const localVarQueryParameter = {};
|
|
1511
|
+
// authentication bearer required
|
|
1512
|
+
// http bearer authentication required
|
|
1513
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1514
|
+
// authentication oauth2 required
|
|
1515
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1516
|
+
if (xDaytonaOrganizationID != null) {
|
|
1517
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
1518
|
+
}
|
|
1519
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1520
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1521
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1522
|
+
return {
|
|
1523
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1524
|
+
options: localVarRequestOptions,
|
|
1525
|
+
};
|
|
1526
|
+
},
|
|
1489
1527
|
/**
|
|
1490
1528
|
*
|
|
1491
1529
|
* @summary Revoke SSH access for sandbox
|
|
@@ -2439,6 +2477,20 @@ const SandboxApiFp = function (configuration) {
|
|
|
2439
2477
|
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.resizeSandbox']?.[localVarOperationServerIndex]?.url;
|
|
2440
2478
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2441
2479
|
},
|
|
2480
|
+
/**
|
|
2481
|
+
*
|
|
2482
|
+
* @summary Resolve sandbox secrets
|
|
2483
|
+
* @param {string} sandboxId Sandbox ID
|
|
2484
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2485
|
+
* @param {*} [options] Override http request option.
|
|
2486
|
+
* @throws {RequiredError}
|
|
2487
|
+
*/
|
|
2488
|
+
async resolveSandboxSecrets(sandboxId, xDaytonaOrganizationID, options) {
|
|
2489
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resolveSandboxSecrets(sandboxId, xDaytonaOrganizationID, options);
|
|
2490
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2491
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.resolveSandboxSecrets']?.[localVarOperationServerIndex]?.url;
|
|
2492
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2493
|
+
},
|
|
2442
2494
|
/**
|
|
2443
2495
|
*
|
|
2444
2496
|
* @summary Revoke SSH access for sandbox
|
|
@@ -3012,6 +3064,17 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
|
|
|
3012
3064
|
resizeSandbox(sandboxIdOrName, resizeSandbox, xDaytonaOrganizationID, options) {
|
|
3013
3065
|
return localVarFp.resizeSandbox(sandboxIdOrName, resizeSandbox, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
3014
3066
|
},
|
|
3067
|
+
/**
|
|
3068
|
+
*
|
|
3069
|
+
* @summary Resolve sandbox secrets
|
|
3070
|
+
* @param {string} sandboxId Sandbox ID
|
|
3071
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
3072
|
+
* @param {*} [options] Override http request option.
|
|
3073
|
+
* @throws {RequiredError}
|
|
3074
|
+
*/
|
|
3075
|
+
resolveSandboxSecrets(sandboxId, xDaytonaOrganizationID, options) {
|
|
3076
|
+
return localVarFp.resolveSandboxSecrets(sandboxId, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
3077
|
+
},
|
|
3015
3078
|
/**
|
|
3016
3079
|
*
|
|
3017
3080
|
* @summary Revoke SSH access for sandbox
|
|
@@ -3550,6 +3613,17 @@ class SandboxApi extends base_1.BaseAPI {
|
|
|
3550
3613
|
resizeSandbox(sandboxIdOrName, resizeSandbox, xDaytonaOrganizationID, options) {
|
|
3551
3614
|
return (0, exports.SandboxApiFp)(this.configuration).resizeSandbox(sandboxIdOrName, resizeSandbox, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
|
|
3552
3615
|
}
|
|
3616
|
+
/**
|
|
3617
|
+
*
|
|
3618
|
+
* @summary Resolve sandbox secrets
|
|
3619
|
+
* @param {string} sandboxId Sandbox ID
|
|
3620
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
3621
|
+
* @param {*} [options] Override http request option.
|
|
3622
|
+
* @throws {RequiredError}
|
|
3623
|
+
*/
|
|
3624
|
+
resolveSandboxSecrets(sandboxId, xDaytonaOrganizationID, options) {
|
|
3625
|
+
return (0, exports.SandboxApiFp)(this.configuration).resolveSandboxSecrets(sandboxId, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
|
|
3626
|
+
}
|
|
3553
3627
|
/**
|
|
3554
3628
|
*
|
|
3555
3629
|
* @summary Revoke SSH access for sandbox
|