From 3a6d101462a3c1809a77b58c42270b8eb373f599 Mon Sep 17 00:00:00 2001 From: kong-apiops <122612077+kong-apiops@users.noreply.github.com> Date: Mon, 2 Sep 2024 15:00:37 +0100 Subject: [PATCH] feat(sdk): automated oas update --- api-specs/Konnect/v2/yaml/api-products.yaml | 18 +++++ api-specs/Konnect/v3/yaml/identity.yaml | 88 +++++++++++++++++++++ 2 files changed, 106 insertions(+) diff --git a/api-specs/Konnect/v2/yaml/api-products.yaml b/api-specs/Konnect/v2/yaml/api-products.yaml index 9477bfbc286e..fe7cddd1e3bb 100644 --- a/api-specs/Konnect/v2/yaml/api-products.yaml +++ b/api-specs/Konnect/v2/yaml/api-products.yaml @@ -843,6 +843,10 @@ components: description: API product document title type: string example: API Product Document + created_at: + $ref: '#/components/schemas/CreatedAt' + updated_at: + $ref: '#/components/schemas/UpdatedAt' additionalProperties: false required: - id @@ -850,6 +854,8 @@ components: - slug - title - status + - created_at + - updated_at title: API Product Document Summary APIProductDocument: description: an api product document @@ -1817,6 +1823,10 @@ components: metadata: author: John Doe children: [] + created_at: + $ref: '#/components/schemas/CreatedAt' + updated_at: + $ref: '#/components/schemas/UpdatedAt' required: - id - title @@ -1824,6 +1834,8 @@ components: - metadata - children - status + - created_at + - updated_at title: DocumentTree ChildNode: type: object @@ -2308,6 +2320,8 @@ components: slug: api-product-document status: published title: API Product Document + created_at: '2022-11-04T20:10:06.927Z' + updated_at: '2022-11-04T20:10:06.927Z' metadata: {} children: - children: [] @@ -2317,6 +2331,8 @@ components: slug: api-product-document-child status: published title: API Product Document Child + created_at: '2022-11-04T20:10:06.927Z' + updated_at: '2022-11-04T20:10:06.927Z' meta: page: number: 1 @@ -2330,6 +2346,8 @@ components: slug: api-product-document status: published title: API Product Document + created_at: '2022-11-04T20:10:06.927Z' + updated_at: '2022-11-04T20:10:06.927Z' meta: page: number: 1 diff --git a/api-specs/Konnect/v3/yaml/identity.yaml b/api-specs/Konnect/v3/yaml/identity.yaml index 79ed7518f838..74e8c7665323 100644 --- a/api-specs/Konnect/v3/yaml/identity.yaml +++ b/api-specs/Konnect/v3/yaml/identity.yaml @@ -1144,6 +1144,33 @@ paths: $ref: '#/components/responses/IdentityNotFound' tags: - System Accounts - Team Membership + /users/me: + get: + operationId: get-users-me + summary: Retrieve My User Account + description: Returns the user account for the user identified in the token of the request. + responses: + '200': + $ref: '#/components/responses/UserSingle' + '401': + $ref: '#/components/responses/IdentityUnauthenticated' + security: + - personalAccessToken: [] + - konnectAccessToken: [] + tags: + - Me + /organizations/me: + get: + operationId: get-organizations-me + summary: Retrieve My Organization + description: Returns the organization of the user identified in the token of the request. + responses: + '200': + $ref: '#/components/responses/MeOrganization' + '401': + $ref: '#/components/responses/IdentityUnauthenticated' + tags: + - Me '/authenticate/{organizationLoginPath}': get: operationId: authenticate-sso @@ -3637,6 +3664,66 @@ components: expires_at: '2019-08-24T14:15:22Z' last_used_at: '2019-08-24T14:15:22Z' token: npat_12345678901234567890123456789012345678901234567890 + MeOrganization: + description: Me Organization + content: + application/json: + schema: + type: object + properties: + id: + description: UUID of the organization. + type: string + format: uuid + readOnly: true + name: + description: Name of the organization. + type: string + owner_id: + description: Owner ID of the organization. + type: string + login_path: + description: Path to organization-specific login when single sign on (SSO) is enabled. Blank otherwise. + type: string + created_at: + description: Date the organization was created. + type: string + format: date-time + readOnly: true + updated_at: + description: Date the organization was last updated. + type: string + format: date-time + readOnly: true + state: + description: State of the organization + type: string + enum: + - active + - inactive + retention_period_days: + description: The number of days an organization spends inactive before being deleted. + type: integer + example: + id: d99c041a-c7cf-46a2-bf3a-44bb5f75400e + name: string + owner_id: 1c9c3848-5897-4f2c-beed-df6f3e3adb37 + created_at: '2023-01-23T17:22:52.150Z' + updated_at: '2023-01-23T17:22:52.150Z' + state: active + retention_period_days: 90 + title: Me Organization Response + examples: + Example: + value: + created_at: '2023-01-18T11:35:45.130Z' + id: 023bfa42-3513-4cbf-b059-a9ddb4ea995d + name: Acme Co. + owner_id: e02c829c-0e2d-44b5-9057-07714ea613a3 + login_path: acme + updated_at: '2023-01-23T17:22:52.150Z' + state: active + retention_period_days: 90 IdPConfiguration: description: A get action response of the IdP configuration. content: @@ -3679,6 +3766,7 @@ tags: - name: System Accounts - Access Tokens - name: System Accounts - Roles - name: System Accounts - Team Membership + - name: Me - name: Authentication - name: Impersonation Settings security: