Skip to content

Commit

Permalink
chore: update client
Browse files Browse the repository at this point in the history
  • Loading branch information
HumanitecBot authored Jan 14, 2025
1 parent 815876a commit 3bc0807
Show file tree
Hide file tree
Showing 216 changed files with 581 additions and 213 deletions.
170 changes: 169 additions & 1 deletion docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.0.0",
"info": {
"title": "Humanitec API",
"version": "0.26.27",
"version": "0.27.1",
"description": "# Introduction\nThe *Humanitec API* allows you to automate and integrate Humanitec into your developer and operational workflows.\nThe API is a REST based API. It is based around a set of concepts:\n\n* Core\n* External Resources\n* Sets and Deltas\n\n## Authentication\n\nAlmost all requests made to the Humanitec API require Authentication. See our [Developer Docs on API Authentication](https://developer.humanitec.com/platform-orchestrator/reference/api-references/#authentication) for instructions.\n\n## Content Types\nThe Humanitec API, unless explicitly specified, only accepts content types of `application/json` and will always return valid `application/json` or an empty response.\n\n## Response Codes\n### Success\nAny response code in the `2xx` range should be regarded as success.\n\n| **Code** | **Meaning** |\n|----------|-------------------------------------|\n| `200` | Success |\n| `201` | Success, a new resource was created |\n| `204` | Success, but no content in response |\n\n_Note: We plan to simplify the interface by replacing 201 with 200 status codes._\n\n### Failure\nAny response code in the `4xx` range should be regarded as an error that can be rectified by the client. `5xx` error codes indicate errors that cannot be corrected by the client.\n\n| **Code** | **Meaning** |\n|----------|-----------------------------------------------------------------------------------------------------------------------|\n| `400` | General error. (Body will contain details) |\n| `401` | Attempt to access protected resource without `Authorization` Header. |\n| `403` | The `Bearer` or `JWT` does not grant access to the requested resource. |\n| `404` | Resource not found. |\n| `405` | Method not allowed |\n| `409` | Conflict. Usually indicated a resource with that ID already exists. |\n| `422` | Unprocessable Entity. The body was not valid JSON, was empty or contained an object different from what was expected. |\n| `429` | Too many requests - request rate limit has been reached. |\n| `500` | Internal Error. If it occurs repeatedly, contact support. |\n",
"contact": {
"name": "Humanitec Support",
Expand Down Expand Up @@ -3608,6 +3608,14 @@
"schema": {
"type": "string"
}
},
{
"name": "legacy",
"in": "query",
"description": "If true, return resource inputs in legacy mode",
"schema": {
"type": "boolean"
}
}
],
"responses": {
Expand Down Expand Up @@ -4306,6 +4314,132 @@
}
}
},
"/orgs/{orgId}/apps/{appId}/envs/{envId}/logs": {
"get": {
"tags": [
"public",
"Logs"
],
"summary": "Get container log entries for the environment",
"parameters": [
{
"name": "orgId",
"in": "path",
"description": "The Organization ID\n\n",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "appId",
"in": "path",
"description": "The Application ID\n\n",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "envId",
"in": "path",
"description": "The Environment ID\n\n",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "workload_id",
"in": "query",
"description": "filter by workload ID\n\n",
"schema": {
"type": "string"
}
},
{
"name": "container_id",
"in": "query",
"description": "filter by container ID\n\n",
"schema": {
"type": "string"
}
},
{
"name": "deployment_id",
"in": "query",
"description": "filter by deployment ID\n\n",
"schema": {
"type": "string"
}
},
{
"name": "timestamp_from",
"in": "query",
"description": "filter by min time, RFC 3339 format, e.g. \"2021-10-02T15:01:23.045Z\"\n\n",
"schema": {
"type": "string"
}
},
{
"name": "timestamp_to",
"in": "query",
"description": "filter by max time, RFC 3330 format, e.g. \"2021-10-02T15:01:23.045Z\"\n\n",
"schema": {
"type": "string"
}
},
{
"name": "limit",
"in": "query",
"description": "limit log entries returned\n\n",
"schema": {
"type": "string"
}
},
{
"name": "asc",
"in": "query",
"description": "if true request results in ascending order, default order is descending\n\n",
"schema": {
"type": "boolean"
}
},
{
"name": "invert",
"in": "query",
"description": "if true reverse the order of the log entries in the output\n\n",
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "List of log entries returned.\n\n",
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/OutputEntryResponse"
},
"type": "array"
}
}
}
},
"400": {
"description": "The request is invalid.\n\n"
},
"404": {
"description": "The environment is not found.\n\n"
},
"429": {
"description": "Too Many Requests.\n\n"
}
}
}
},
"/orgs": {
"get": {
"tags": [
Expand Down Expand Up @@ -15703,6 +15837,34 @@
"kid"
]
},
"OutputEntryResponse": {
"description": "A container log entry.",
"properties": {
"container_id": {
"type": "string"
},
"level": {
"type": "string"
},
"payload": {
"type": "string"
},
"timestamp": {
"type": "string"
},
"workload_id": {
"type": "string"
}
},
"required": [
"level",
"payload",
"timestamp",
"workload_id",
"container_id"
],
"type": "object"
},
"LogoResponse": {
"properties": {
"dark_url": {
Expand Down Expand Up @@ -20719,6 +20881,7 @@
"Artefact",
"ArtefactVersion",
"AuditLogs",
"Logs",
"Deployment",
"EnvironmentType",
"Environment",
Expand Down Expand Up @@ -20910,6 +21073,11 @@
"x-displayName": "Keys",
"description": "PublicKey stores a Public Key an organization shares with Humanitec.\n<SchemaDefinition schemaRef=\"#/components/schemas/PublicKey\" />\n"
},
{
"name": "Logs",
"x-displayName": "Container Logs",
"description": "A container log entry.\n<SchemaDefinition schemaRef=\"#/components/schemas/OutputEntryResponse\" />\n"
},
{
"name": "Registry",
"x-displayName": "Registry",
Expand Down
1 change: 1 addition & 0 deletions src/generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ models/ModuleResponse.ts
models/NewServiceUserRequest.ts
models/NodeBodyResponse.ts
models/OrganizationResponse.ts
models/OutputEntryResponse.ts
models/PatchResourceDefinitionRequestRequest.ts
models/Pipeline.ts
models/PipelineApprovalRequest.ts
Expand Down
103 changes: 102 additions & 1 deletion src/generated/apis/PublicApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Humanitec API
* # Introduction The *Humanitec API* allows you to automate and integrate Humanitec into your developer and operational workflows. The API is a REST based API. It is based around a set of concepts: * Core * External Resources * Sets and Deltas ## Authentication Almost all requests made to the Humanitec API require Authentication. See our [Developer Docs on API Authentication](https://developer.humanitec.com/platform-orchestrator/reference/api-references/#authentication) for instructions. ## Content Types The Humanitec API, unless explicitly specified, only accepts content types of `application/json` and will always return valid `application/json` or an empty response. ## Response Codes ### Success Any response code in the `2xx` range should be regarded as success. | **Code** | **Meaning** | |----------|-------------------------------------| | `200` | Success | | `201` | Success, a new resource was created | | `204` | Success, but no content in response | _Note: We plan to simplify the interface by replacing 201 with 200 status codes._ ### Failure Any response code in the `4xx` range should be regarded as an error that can be rectified by the client. `5xx` error codes indicate errors that cannot be corrected by the client. | **Code** | **Meaning** | |----------|-----------------------------------------------------------------------------------------------------------------------| | `400` | General error. (Body will contain details) | | `401` | Attempt to access protected resource without `Authorization` Header. | | `403` | The `Bearer` or `JWT` does not grant access to the requested resource. | | `404` | Resource not found. | | `405` | Method not allowed | | `409` | Conflict. Usually indicated a resource with that ID already exists. | | `422` | Unprocessable Entity. The body was not valid JSON, was empty or contained an object different from what was expected. | | `429` | Too many requests - request rate limit has been reached. | | `500` | Internal Error. If it occurs repeatedly, contact support. |
*
* The version of the OpenAPI document: 0.26.27
* The version of the OpenAPI document: 0.27.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -70,6 +70,7 @@ import type {
NewServiceUserRequest,
NodeBodyResponse,
OrganizationResponse,
OutputEntryResponse,
PatchResourceDefinitionRequestRequest,
Pipeline,
PipelineApprovalRequest,
Expand Down Expand Up @@ -246,6 +247,8 @@ import {
NodeBodyResponseToJSON,
OrganizationResponseFromJSON,
OrganizationResponseToJSON,
OutputEntryResponseFromJSON,
OutputEntryResponseToJSON,
PatchResourceDefinitionRequestRequestFromJSON,
PatchResourceDefinitionRequestRequestToJSON,
PipelineFromJSON,
Expand Down Expand Up @@ -922,6 +925,7 @@ export interface GetSetResourceInputsRequest {
orgId: string;
appId: string;
setId: string;
legacy?: boolean;
}

export interface GetUserRoleInAppRequest {
Expand Down Expand Up @@ -1262,6 +1266,20 @@ export interface ListWorkloadProfilesRequest {
page?: string;
}

export interface OrgsOrgIdAppsAppIdEnvsEnvIdLogsGetRequest {
orgId: string;
appId: string;
envId: string;
workload_id?: string;
container_id?: string;
deployment_id?: string;
timestamp_from?: string;
timestamp_to?: string;
limit?: string;
asc?: boolean;
invert?: boolean;
}

export interface OrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsGetRequest {
orgId: string;
appId: string;
Expand Down Expand Up @@ -6115,6 +6133,10 @@ export class PublicApi extends runtime.BaseAPI {

const queryParameters: any = {};

if (requestParameters['legacy'] != null) {
queryParameters['legacy'] = requestParameters['legacy'];
}

const headerParameters: runtime.HTTPHeaders = {};

const response = await this.request({
Expand Down Expand Up @@ -8583,6 +8605,85 @@ export class PublicApi extends runtime.BaseAPI {
return await response.value();
}

/**
* Get container log entries for the environment
*/
async orgsOrgIdAppsAppIdEnvsEnvIdLogsGetRaw(requestParameters: OrgsOrgIdAppsAppIdEnvsEnvIdLogsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OutputEntryResponse>>> {
if (requestParameters['orgId'] == null) {
throw new runtime.RequiredError(
'orgId',
'Required parameter "orgId" was null or undefined when calling orgsOrgIdAppsAppIdEnvsEnvIdLogsGet().'
);
}

if (requestParameters['appId'] == null) {
throw new runtime.RequiredError(
'appId',
'Required parameter "appId" was null or undefined when calling orgsOrgIdAppsAppIdEnvsEnvIdLogsGet().'
);
}

if (requestParameters['envId'] == null) {
throw new runtime.RequiredError(
'envId',
'Required parameter "envId" was null or undefined when calling orgsOrgIdAppsAppIdEnvsEnvIdLogsGet().'
);
}

const queryParameters: any = {};

if (requestParameters['workload_id'] != null) {
queryParameters['workload_id'] = requestParameters['workload_id'];
}

if (requestParameters['container_id'] != null) {
queryParameters['container_id'] = requestParameters['container_id'];
}

if (requestParameters['deployment_id'] != null) {
queryParameters['deployment_id'] = requestParameters['deployment_id'];
}

if (requestParameters['timestamp_from'] != null) {
queryParameters['timestamp_from'] = requestParameters['timestamp_from'];
}

if (requestParameters['timestamp_to'] != null) {
queryParameters['timestamp_to'] = requestParameters['timestamp_to'];
}

if (requestParameters['limit'] != null) {
queryParameters['limit'] = requestParameters['limit'];
}

if (requestParameters['asc'] != null) {
queryParameters['asc'] = requestParameters['asc'];
}

if (requestParameters['invert'] != null) {
queryParameters['invert'] = requestParameters['invert'];
}

const headerParameters: runtime.HTTPHeaders = {};

const response = await this.request({
path: `/orgs/{orgId}/apps/{appId}/envs/{envId}/logs`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))).replace(`{${"envId"}}`, encodeURIComponent(String(requestParameters['envId']))),
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);

return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OutputEntryResponseFromJSON));
}

/**
* Get container log entries for the environment
*/
async orgsOrgIdAppsAppIdEnvsEnvIdLogsGet(requestParameters: OrgsOrgIdAppsAppIdEnvsEnvIdLogsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OutputEntryResponse>> {
const response = await this.orgsOrgIdAppsAppIdEnvsEnvIdLogsGetRaw(requestParameters, initOverrides);
return await response.value();
}

/**
* A new Value Set Version is created on every modification of a Value inside the an Environment of an App. In case this environment has no overrides the response is the same as the App level endpoint.
* List Value Set Versions in an Environment of an App
Expand Down
2 changes: 1 addition & 1 deletion src/generated/models/AWSAuthRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Humanitec API
* # Introduction The *Humanitec API* allows you to automate and integrate Humanitec into your developer and operational workflows. The API is a REST based API. It is based around a set of concepts: * Core * External Resources * Sets and Deltas ## Authentication Almost all requests made to the Humanitec API require Authentication. See our [Developer Docs on API Authentication](https://developer.humanitec.com/platform-orchestrator/reference/api-references/#authentication) for instructions. ## Content Types The Humanitec API, unless explicitly specified, only accepts content types of `application/json` and will always return valid `application/json` or an empty response. ## Response Codes ### Success Any response code in the `2xx` range should be regarded as success. | **Code** | **Meaning** | |----------|-------------------------------------| | `200` | Success | | `201` | Success, a new resource was created | | `204` | Success, but no content in response | _Note: We plan to simplify the interface by replacing 201 with 200 status codes._ ### Failure Any response code in the `4xx` range should be regarded as an error that can be rectified by the client. `5xx` error codes indicate errors that cannot be corrected by the client. | **Code** | **Meaning** | |----------|-----------------------------------------------------------------------------------------------------------------------| | `400` | General error. (Body will contain details) | | `401` | Attempt to access protected resource without `Authorization` Header. | | `403` | The `Bearer` or `JWT` does not grant access to the requested resource. | | `404` | Resource not found. | | `405` | Method not allowed | | `409` | Conflict. Usually indicated a resource with that ID already exists. | | `422` | Unprocessable Entity. The body was not valid JSON, was empty or contained an object different from what was expected. | | `429` | Too many requests - request rate limit has been reached. | | `500` | Internal Error. If it occurs repeatedly, contact support. |
*
* The version of the OpenAPI document: 0.26.27
* The version of the OpenAPI document: 0.27.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading

0 comments on commit 3bc0807

Please sign in to comment.