@forteplatforms/sdk 1.0.20 → 1.0.24
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/dist/generated/apis/ProjectsServerApi.d.ts +30 -1
- package/dist/generated/apis/ProjectsServerApi.js +139 -0
- package/dist/generated/apis/UsersServerApi.d.ts +0 -1
- package/dist/generated/apis/UsersServerApi.js +2 -5
- package/dist/generated/models/ApiKeySummary.d.ts +50 -0
- package/dist/generated/models/ApiKeySummary.js +55 -0
- package/dist/generated/models/CreateProjectApiKeyRequest.d.ts +38 -0
- package/dist/generated/models/CreateProjectApiKeyRequest.js +53 -0
- package/dist/generated/models/CreateProjectApiKeyResponse.d.ts +39 -0
- package/dist/generated/models/CreateProjectApiKeyResponse.js +52 -0
- package/dist/generated/models/ForteApiException.d.ts +2 -0
- package/dist/generated/models/ForteApiException.js +3 -1
- package/dist/generated/models/index.d.ts +3 -0
- package/dist/generated/models/index.js +3 -0
- package/package.json +1 -1
|
@@ -10,10 +10,14 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateForteServiceRequest, CreateServiceRequestProxyRequest, CreateServiceRequestProxyResponse, PaginatedResponseLogLineObject, PaginatedResponseRequestLogObject, PaginatedResponseServiceBuildRequestObject, PaginatedResponseUserActionLogObject, PaginatedResponseUserObject, ProjectObject, RequestLogObject, ServiceBuildRequestObject, ServiceMetricsResponse, ServiceObject, UpdateForteServiceRequest, UpdateForteServiceResponse, UpdateProjectRequest, UserMetricsResponse, UserObject } from '../models/index';
|
|
13
|
+
import type { ApiKeySummary, CreateForteServiceRequest, CreateProjectApiKeyRequest, CreateProjectApiKeyResponse, CreateServiceRequestProxyRequest, CreateServiceRequestProxyResponse, PaginatedResponseLogLineObject, PaginatedResponseRequestLogObject, PaginatedResponseServiceBuildRequestObject, PaginatedResponseUserActionLogObject, PaginatedResponseUserObject, ProjectObject, RequestLogObject, ServiceBuildRequestObject, ServiceMetricsResponse, ServiceObject, UpdateForteServiceRequest, UpdateForteServiceResponse, UpdateProjectRequest, UserMetricsResponse, UserObject } from '../models/index';
|
|
14
14
|
export interface CreateProjectRequest {
|
|
15
15
|
projectName: string;
|
|
16
16
|
}
|
|
17
|
+
export interface CreateProjectApiKeyOperationRequest {
|
|
18
|
+
projectId: string;
|
|
19
|
+
createProjectApiKeyRequest: CreateProjectApiKeyRequest;
|
|
20
|
+
}
|
|
17
21
|
export interface CreateServiceRequest {
|
|
18
22
|
projectId: string;
|
|
19
23
|
createForteServiceRequest: CreateForteServiceRequest;
|
|
@@ -31,6 +35,10 @@ export interface CreateServiceRequestProxyOperationRequest {
|
|
|
31
35
|
export interface DeleteProjectRequest {
|
|
32
36
|
projectId: string;
|
|
33
37
|
}
|
|
38
|
+
export interface DeleteProjectApiKeyRequest {
|
|
39
|
+
projectId: string;
|
|
40
|
+
apiKeyId: string;
|
|
41
|
+
}
|
|
34
42
|
export interface DeleteServiceRequest {
|
|
35
43
|
projectId: string;
|
|
36
44
|
serviceId: string;
|
|
@@ -78,6 +86,9 @@ export interface ListLogLinesRequest {
|
|
|
78
86
|
buildId?: string;
|
|
79
87
|
nextToken?: string;
|
|
80
88
|
}
|
|
89
|
+
export interface ListProjectApiKeysRequest {
|
|
90
|
+
projectId: string;
|
|
91
|
+
}
|
|
81
92
|
export interface ListRequestInvocationLogsRequest {
|
|
82
93
|
projectId: string;
|
|
83
94
|
serviceId: string;
|
|
@@ -146,6 +157,12 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
|
|
|
146
157
|
/**
|
|
147
158
|
*/
|
|
148
159
|
createProject(requestParameters: CreateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectObject>;
|
|
160
|
+
/**
|
|
161
|
+
*/
|
|
162
|
+
createProjectApiKeyRaw(requestParameters: CreateProjectApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateProjectApiKeyResponse>>;
|
|
163
|
+
/**
|
|
164
|
+
*/
|
|
165
|
+
createProjectApiKey(requestParameters: CreateProjectApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateProjectApiKeyResponse>;
|
|
149
166
|
/**
|
|
150
167
|
*/
|
|
151
168
|
createServiceRaw(requestParameters: CreateServiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ServiceObject>>;
|
|
@@ -170,6 +187,12 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
|
|
|
170
187
|
/**
|
|
171
188
|
*/
|
|
172
189
|
deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
190
|
+
/**
|
|
191
|
+
*/
|
|
192
|
+
deleteProjectApiKeyRaw(requestParameters: DeleteProjectApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
193
|
+
/**
|
|
194
|
+
*/
|
|
195
|
+
deleteProjectApiKey(requestParameters: DeleteProjectApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
173
196
|
/**
|
|
174
197
|
*/
|
|
175
198
|
deleteServiceRaw(requestParameters: DeleteServiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
@@ -224,6 +247,12 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
|
|
|
224
247
|
/**
|
|
225
248
|
*/
|
|
226
249
|
listLogLines(requestParameters: ListLogLinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseLogLineObject>;
|
|
250
|
+
/**
|
|
251
|
+
*/
|
|
252
|
+
listProjectApiKeysRaw(requestParameters: ListProjectApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiKeySummary>>>;
|
|
253
|
+
/**
|
|
254
|
+
*/
|
|
255
|
+
listProjectApiKeys(requestParameters: ListProjectApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiKeySummary>>;
|
|
227
256
|
/**
|
|
228
257
|
*/
|
|
229
258
|
listProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectObject>>>;
|
|
@@ -121,6 +121,55 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
|
+
/**
|
|
125
|
+
*/
|
|
126
|
+
ProjectsServerApi.prototype.createProjectApiKeyRaw = function (requestParameters, initOverrides) {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
128
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
switch (_a.label) {
|
|
131
|
+
case 0:
|
|
132
|
+
if (requestParameters['projectId'] == null) {
|
|
133
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createProjectApiKey().');
|
|
134
|
+
}
|
|
135
|
+
if (requestParameters['createProjectApiKeyRequest'] == null) {
|
|
136
|
+
throw new runtime.RequiredError('createProjectApiKeyRequest', 'Required parameter "createProjectApiKeyRequest" was null or undefined when calling createProjectApiKey().');
|
|
137
|
+
}
|
|
138
|
+
queryParameters = {};
|
|
139
|
+
headerParameters = {};
|
|
140
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
141
|
+
urlPath = "/api/v1/projects/{projectId}/api-keys";
|
|
142
|
+
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
143
|
+
return [4 /*yield*/, this.request({
|
|
144
|
+
path: urlPath,
|
|
145
|
+
method: 'POST',
|
|
146
|
+
headers: headerParameters,
|
|
147
|
+
query: queryParameters,
|
|
148
|
+
body: (0, index_1.CreateProjectApiKeyRequestToJSON)(requestParameters['createProjectApiKeyRequest']),
|
|
149
|
+
}, initOverrides)];
|
|
150
|
+
case 1:
|
|
151
|
+
response = _a.sent();
|
|
152
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateProjectApiKeyResponseFromJSON)(jsonValue); })];
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
*/
|
|
159
|
+
ProjectsServerApi.prototype.createProjectApiKey = function (requestParameters, initOverrides) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
161
|
+
var response;
|
|
162
|
+
return __generator(this, function (_a) {
|
|
163
|
+
switch (_a.label) {
|
|
164
|
+
case 0: return [4 /*yield*/, this.createProjectApiKeyRaw(requestParameters, initOverrides)];
|
|
165
|
+
case 1:
|
|
166
|
+
response = _a.sent();
|
|
167
|
+
return [4 /*yield*/, response.value()];
|
|
168
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
};
|
|
124
173
|
/**
|
|
125
174
|
*/
|
|
126
175
|
ProjectsServerApi.prototype.createServiceRaw = function (requestParameters, initOverrides) {
|
|
@@ -316,6 +365,52 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
316
365
|
});
|
|
317
366
|
});
|
|
318
367
|
};
|
|
368
|
+
/**
|
|
369
|
+
*/
|
|
370
|
+
ProjectsServerApi.prototype.deleteProjectApiKeyRaw = function (requestParameters, initOverrides) {
|
|
371
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
372
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
373
|
+
return __generator(this, function (_a) {
|
|
374
|
+
switch (_a.label) {
|
|
375
|
+
case 0:
|
|
376
|
+
if (requestParameters['projectId'] == null) {
|
|
377
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteProjectApiKey().');
|
|
378
|
+
}
|
|
379
|
+
if (requestParameters['apiKeyId'] == null) {
|
|
380
|
+
throw new runtime.RequiredError('apiKeyId', 'Required parameter "apiKeyId" was null or undefined when calling deleteProjectApiKey().');
|
|
381
|
+
}
|
|
382
|
+
queryParameters = {};
|
|
383
|
+
headerParameters = {};
|
|
384
|
+
urlPath = "/api/v1/projects/{projectId}/api-keys/{apiKeyId}";
|
|
385
|
+
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
386
|
+
urlPath = urlPath.replace("{".concat("apiKeyId", "}"), encodeURIComponent(String(requestParameters['apiKeyId'])));
|
|
387
|
+
return [4 /*yield*/, this.request({
|
|
388
|
+
path: urlPath,
|
|
389
|
+
method: 'DELETE',
|
|
390
|
+
headers: headerParameters,
|
|
391
|
+
query: queryParameters,
|
|
392
|
+
}, initOverrides)];
|
|
393
|
+
case 1:
|
|
394
|
+
response = _a.sent();
|
|
395
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
});
|
|
399
|
+
};
|
|
400
|
+
/**
|
|
401
|
+
*/
|
|
402
|
+
ProjectsServerApi.prototype.deleteProjectApiKey = function (requestParameters, initOverrides) {
|
|
403
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
404
|
+
return __generator(this, function (_a) {
|
|
405
|
+
switch (_a.label) {
|
|
406
|
+
case 0: return [4 /*yield*/, this.deleteProjectApiKeyRaw(requestParameters, initOverrides)];
|
|
407
|
+
case 1:
|
|
408
|
+
_a.sent();
|
|
409
|
+
return [2 /*return*/];
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
});
|
|
413
|
+
};
|
|
319
414
|
/**
|
|
320
415
|
*/
|
|
321
416
|
ProjectsServerApi.prototype.deleteServiceRaw = function (requestParameters, initOverrides) {
|
|
@@ -779,6 +874,50 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
779
874
|
});
|
|
780
875
|
});
|
|
781
876
|
};
|
|
877
|
+
/**
|
|
878
|
+
*/
|
|
879
|
+
ProjectsServerApi.prototype.listProjectApiKeysRaw = function (requestParameters, initOverrides) {
|
|
880
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
881
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
882
|
+
return __generator(this, function (_a) {
|
|
883
|
+
switch (_a.label) {
|
|
884
|
+
case 0:
|
|
885
|
+
if (requestParameters['projectId'] == null) {
|
|
886
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listProjectApiKeys().');
|
|
887
|
+
}
|
|
888
|
+
queryParameters = {};
|
|
889
|
+
headerParameters = {};
|
|
890
|
+
urlPath = "/api/v1/projects/{projectId}/api-keys";
|
|
891
|
+
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
892
|
+
return [4 /*yield*/, this.request({
|
|
893
|
+
path: urlPath,
|
|
894
|
+
method: 'GET',
|
|
895
|
+
headers: headerParameters,
|
|
896
|
+
query: queryParameters,
|
|
897
|
+
}, initOverrides)];
|
|
898
|
+
case 1:
|
|
899
|
+
response = _a.sent();
|
|
900
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.ApiKeySummaryFromJSON); })];
|
|
901
|
+
}
|
|
902
|
+
});
|
|
903
|
+
});
|
|
904
|
+
};
|
|
905
|
+
/**
|
|
906
|
+
*/
|
|
907
|
+
ProjectsServerApi.prototype.listProjectApiKeys = function (requestParameters, initOverrides) {
|
|
908
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
909
|
+
var response;
|
|
910
|
+
return __generator(this, function (_a) {
|
|
911
|
+
switch (_a.label) {
|
|
912
|
+
case 0: return [4 /*yield*/, this.listProjectApiKeysRaw(requestParameters, initOverrides)];
|
|
913
|
+
case 1:
|
|
914
|
+
response = _a.sent();
|
|
915
|
+
return [4 /*yield*/, response.value()];
|
|
916
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
917
|
+
}
|
|
918
|
+
});
|
|
919
|
+
});
|
|
920
|
+
};
|
|
782
921
|
/**
|
|
783
922
|
*/
|
|
784
923
|
ProjectsServerApi.prototype.listProjectsRaw = function (initOverrides) {
|
|
@@ -228,9 +228,6 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
228
228
|
if (requestParameters['gCsrfToken'] == null) {
|
|
229
229
|
throw new runtime.RequiredError('gCsrfToken', 'Required parameter "gCsrfToken" was null or undefined when calling googleAuthLoginCallback().');
|
|
230
230
|
}
|
|
231
|
-
if (requestParameters['gCsrfToken2'] == null) {
|
|
232
|
-
throw new runtime.RequiredError('gCsrfToken2', 'Required parameter "gCsrfToken2" was null or undefined when calling googleAuthLoginCallback().');
|
|
233
|
-
}
|
|
234
231
|
if (requestParameters['credential'] == null) {
|
|
235
232
|
throw new runtime.RequiredError('credential', 'Required parameter "credential" was null or undefined when calling googleAuthLoginCallback().');
|
|
236
233
|
}
|
|
@@ -247,8 +244,8 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
247
244
|
else {
|
|
248
245
|
formParams = new URLSearchParams();
|
|
249
246
|
}
|
|
250
|
-
if (requestParameters['
|
|
251
|
-
formParams.append('g_csrf_token', requestParameters['
|
|
247
|
+
if (requestParameters['gCsrfToken'] != null) {
|
|
248
|
+
formParams.append('g_csrf_token', requestParameters['gCsrfToken']);
|
|
252
249
|
}
|
|
253
250
|
if (requestParameters['credential'] != null) {
|
|
254
251
|
formParams.append('credential', requestParameters['credential']);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiKeySummary
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiKeySummary {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiKeySummary
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiKeySummary
|
|
28
|
+
*/
|
|
29
|
+
keyName?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof ApiKeySummary
|
|
34
|
+
*/
|
|
35
|
+
creationTime?: Date;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof ApiKeySummary
|
|
40
|
+
*/
|
|
41
|
+
expirationTime?: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ApiKeySummary interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfApiKeySummary(value: object): value is ApiKeySummary;
|
|
47
|
+
export declare function ApiKeySummaryFromJSON(json: any): ApiKeySummary;
|
|
48
|
+
export declare function ApiKeySummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeySummary;
|
|
49
|
+
export declare function ApiKeySummaryToJSON(json: any): ApiKeySummary;
|
|
50
|
+
export declare function ApiKeySummaryToJSONTyped(value?: ApiKeySummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
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.instanceOfApiKeySummary = instanceOfApiKeySummary;
|
|
17
|
+
exports.ApiKeySummaryFromJSON = ApiKeySummaryFromJSON;
|
|
18
|
+
exports.ApiKeySummaryFromJSONTyped = ApiKeySummaryFromJSONTyped;
|
|
19
|
+
exports.ApiKeySummaryToJSON = ApiKeySummaryToJSON;
|
|
20
|
+
exports.ApiKeySummaryToJSONTyped = ApiKeySummaryToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiKeySummary interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiKeySummary(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ApiKeySummaryFromJSON(json) {
|
|
28
|
+
return ApiKeySummaryFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ApiKeySummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'keyName': json['keyName'] == null ? undefined : json['keyName'],
|
|
37
|
+
'creationTime': json['creationTime'] == null ? undefined : (new Date(json['creationTime'])),
|
|
38
|
+
'expirationTime': json['expirationTime'] == null ? undefined : (new Date(json['expirationTime'])),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ApiKeySummaryToJSON(json) {
|
|
42
|
+
return ApiKeySummaryToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ApiKeySummaryToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'keyName': value['keyName'],
|
|
52
|
+
'creationTime': value['creationTime'] == null ? value['creationTime'] : value['creationTime'].toISOString(),
|
|
53
|
+
'expirationTime': value['expirationTime'] == null ? value['expirationTime'] : value['expirationTime'].toISOString(),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateProjectApiKeyRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateProjectApiKeyRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateProjectApiKeyRequest
|
|
22
|
+
*/
|
|
23
|
+
keyName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof CreateProjectApiKeyRequest
|
|
28
|
+
*/
|
|
29
|
+
expirationTime?: Date;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateProjectApiKeyRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreateProjectApiKeyRequest(value: object): value is CreateProjectApiKeyRequest;
|
|
35
|
+
export declare function CreateProjectApiKeyRequestFromJSON(json: any): CreateProjectApiKeyRequest;
|
|
36
|
+
export declare function CreateProjectApiKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProjectApiKeyRequest;
|
|
37
|
+
export declare function CreateProjectApiKeyRequestToJSON(json: any): CreateProjectApiKeyRequest;
|
|
38
|
+
export declare function CreateProjectApiKeyRequestToJSONTyped(value?: CreateProjectApiKeyRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
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.instanceOfCreateProjectApiKeyRequest = instanceOfCreateProjectApiKeyRequest;
|
|
17
|
+
exports.CreateProjectApiKeyRequestFromJSON = CreateProjectApiKeyRequestFromJSON;
|
|
18
|
+
exports.CreateProjectApiKeyRequestFromJSONTyped = CreateProjectApiKeyRequestFromJSONTyped;
|
|
19
|
+
exports.CreateProjectApiKeyRequestToJSON = CreateProjectApiKeyRequestToJSON;
|
|
20
|
+
exports.CreateProjectApiKeyRequestToJSONTyped = CreateProjectApiKeyRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateProjectApiKeyRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateProjectApiKeyRequest(value) {
|
|
25
|
+
if (!('keyName' in value) || value['keyName'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function CreateProjectApiKeyRequestFromJSON(json) {
|
|
30
|
+
return CreateProjectApiKeyRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function CreateProjectApiKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'keyName': json['keyName'],
|
|
38
|
+
'expirationTime': json['expirationTime'] == null ? undefined : (new Date(json['expirationTime'])),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function CreateProjectApiKeyRequestToJSON(json) {
|
|
42
|
+
return CreateProjectApiKeyRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function CreateProjectApiKeyRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'keyName': value['keyName'],
|
|
51
|
+
'expirationTime': value['expirationTime'] == null ? value['expirationTime'] : value['expirationTime'].toISOString(),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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 { ApiKeySummary } from './ApiKeySummary';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateProjectApiKeyResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateProjectApiKeyResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateProjectApiKeyResponse
|
|
23
|
+
*/
|
|
24
|
+
accessToken?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ApiKeySummary}
|
|
28
|
+
* @memberof CreateProjectApiKeyResponse
|
|
29
|
+
*/
|
|
30
|
+
apiKey?: ApiKeySummary;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the CreateProjectApiKeyResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfCreateProjectApiKeyResponse(value: object): value is CreateProjectApiKeyResponse;
|
|
36
|
+
export declare function CreateProjectApiKeyResponseFromJSON(json: any): CreateProjectApiKeyResponse;
|
|
37
|
+
export declare function CreateProjectApiKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProjectApiKeyResponse;
|
|
38
|
+
export declare function CreateProjectApiKeyResponseToJSON(json: any): CreateProjectApiKeyResponse;
|
|
39
|
+
export declare function CreateProjectApiKeyResponseToJSONTyped(value?: CreateProjectApiKeyResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
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.instanceOfCreateProjectApiKeyResponse = instanceOfCreateProjectApiKeyResponse;
|
|
17
|
+
exports.CreateProjectApiKeyResponseFromJSON = CreateProjectApiKeyResponseFromJSON;
|
|
18
|
+
exports.CreateProjectApiKeyResponseFromJSONTyped = CreateProjectApiKeyResponseFromJSONTyped;
|
|
19
|
+
exports.CreateProjectApiKeyResponseToJSON = CreateProjectApiKeyResponseToJSON;
|
|
20
|
+
exports.CreateProjectApiKeyResponseToJSONTyped = CreateProjectApiKeyResponseToJSONTyped;
|
|
21
|
+
var ApiKeySummary_1 = require("./ApiKeySummary");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CreateProjectApiKeyResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCreateProjectApiKeyResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function CreateProjectApiKeyResponseFromJSON(json) {
|
|
29
|
+
return CreateProjectApiKeyResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function CreateProjectApiKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'accessToken': json['accessToken'] == null ? undefined : json['accessToken'],
|
|
37
|
+
'apiKey': json['apiKey'] == null ? undefined : (0, ApiKeySummary_1.ApiKeySummaryFromJSON)(json['apiKey']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function CreateProjectApiKeyResponseToJSON(json) {
|
|
41
|
+
return CreateProjectApiKeyResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function CreateProjectApiKeyResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'accessToken': value['accessToken'],
|
|
50
|
+
'apiKey': (0, ApiKeySummary_1.ApiKeySummaryToJSON)(value['apiKey']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -72,6 +72,8 @@ export declare const ForteApiExceptionErrorCodeType: {
|
|
|
72
72
|
readonly SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED";
|
|
73
73
|
readonly GOOGLE_OAUTH_NOT_CONFIGURED: "GOOGLE_OAUTH_NOT_CONFIGURED";
|
|
74
74
|
readonly TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED: "TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED";
|
|
75
|
+
readonly API_KEY_NOT_FOUND: "API_KEY_NOT_FOUND";
|
|
76
|
+
readonly CANNOT_DELETE_SYSTEM_API_KEY: "CANNOT_DELETE_SYSTEM_API_KEY";
|
|
75
77
|
};
|
|
76
78
|
export type ForteApiExceptionErrorCodeType = typeof ForteApiExceptionErrorCodeType[keyof typeof ForteApiExceptionErrorCodeType];
|
|
77
79
|
/**
|
|
@@ -56,7 +56,9 @@ exports.ForteApiExceptionErrorCodeType = {
|
|
|
56
56
|
BILLING_NOT_CONFIGURED: 'BILLING_NOT_CONFIGURED',
|
|
57
57
|
SERVICE_QUOTA_EXCEEDED: 'SERVICE_QUOTA_EXCEEDED',
|
|
58
58
|
GOOGLE_OAUTH_NOT_CONFIGURED: 'GOOGLE_OAUTH_NOT_CONFIGURED',
|
|
59
|
-
TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED: 'TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED'
|
|
59
|
+
TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED: 'TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED',
|
|
60
|
+
API_KEY_NOT_FOUND: 'API_KEY_NOT_FOUND',
|
|
61
|
+
CANNOT_DELETE_SYSTEM_API_KEY: 'CANNOT_DELETE_SYSTEM_API_KEY'
|
|
60
62
|
};
|
|
61
63
|
/**
|
|
62
64
|
* Check if a given object implements the ForteApiException interface.
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from './AddContactMethodRequest';
|
|
2
|
+
export * from './ApiKeySummary';
|
|
2
3
|
export * from './BuildStepLog';
|
|
3
4
|
export * from './ContactMethod';
|
|
4
5
|
export * from './CreateForteServiceRequest';
|
|
6
|
+
export * from './CreateProjectApiKeyRequest';
|
|
7
|
+
export * from './CreateProjectApiKeyResponse';
|
|
5
8
|
export * from './CreateServiceRequestProxyRequest';
|
|
6
9
|
export * from './CreateServiceRequestProxyResponse';
|
|
7
10
|
export * from './DockerfileDetectionOutput';
|
|
@@ -17,9 +17,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AddContactMethodRequest"), exports);
|
|
20
|
+
__exportStar(require("./ApiKeySummary"), exports);
|
|
20
21
|
__exportStar(require("./BuildStepLog"), exports);
|
|
21
22
|
__exportStar(require("./ContactMethod"), exports);
|
|
22
23
|
__exportStar(require("./CreateForteServiceRequest"), exports);
|
|
24
|
+
__exportStar(require("./CreateProjectApiKeyRequest"), exports);
|
|
25
|
+
__exportStar(require("./CreateProjectApiKeyResponse"), exports);
|
|
23
26
|
__exportStar(require("./CreateServiceRequestProxyRequest"), exports);
|
|
24
27
|
__exportStar(require("./CreateServiceRequestProxyResponse"), exports);
|
|
25
28
|
__exportStar(require("./DockerfileDetectionOutput"), exports);
|