Skip to content

Commit

Permalink
feat(sdk): automated oas update
Browse files Browse the repository at this point in the history
  • Loading branch information
kong-apiops committed Sep 2, 2024
1 parent 4c4b61a commit 3a6d101
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 0 deletions.
18 changes: 18 additions & 0 deletions api-specs/Konnect/v2/yaml/api-products.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -843,13 +843,19 @@ 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
- parent_document_id
- slug
- title
- status
- created_at
- updated_at
title: API Product Document Summary
APIProductDocument:
description: an api product document
Expand Down Expand Up @@ -1817,13 +1823,19 @@ components:
metadata:
author: John Doe
children: []
created_at:
$ref: '#/components/schemas/CreatedAt'
updated_at:
$ref: '#/components/schemas/UpdatedAt'
required:
- id
- title
- slug
- metadata
- children
- status
- created_at
- updated_at
title: DocumentTree
ChildNode:
type: object
Expand Down Expand Up @@ -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: []
Expand All @@ -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
Expand All @@ -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
Expand Down
88 changes: 88 additions & 0 deletions api-specs/Konnect/v3/yaml/identity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3a6d101

Please sign in to comment.