Skip to content

Commit 02b9100

Browse files
committed
autogen(openapi): regenerate swagger spec and internal client
[skip ci]
1 parent 59588d2 commit 02b9100

File tree

6 files changed

+566
-0
lines changed

6 files changed

+566
-0
lines changed

internal/httpclient/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Class | Method | HTTP request | Description
9696
*V0alpha2Api* | [**AdminListCourierMessages**](docs/V0alpha2Api.md#adminlistcouriermessages) | **Get** /admin/courier/messages | List Messages
9797
*V0alpha2Api* | [**AdminListIdentities**](docs/V0alpha2Api.md#adminlistidentities) | **Get** /admin/identities | List Identities
9898
*V0alpha2Api* | [**AdminListIdentitySessions**](docs/V0alpha2Api.md#adminlistidentitysessions) | **Get** /admin/identities/{id}/sessions | List an Identity's Sessions
99+
*V0alpha2Api* | [**AdminListSessions**](docs/V0alpha2Api.md#adminlistsessions) | **Get** /admin/sessions | This endpoint returns all sessions that exist.
99100
*V0alpha2Api* | [**AdminPatchIdentity**](docs/V0alpha2Api.md#adminpatchidentity) | **Patch** /admin/identities/{id} | Patch an Identity
100101
*V0alpha2Api* | [**AdminUpdateIdentity**](docs/V0alpha2Api.md#adminupdateidentity) | **Put** /admin/identities/{id} | Update an Identity
101102
*V0alpha2Api* | [**CreateSelfServiceLogoutFlowUrlForBrowsers**](docs/V0alpha2Api.md#createselfservicelogoutflowurlforbrowsers) | **Get** /self-service/logout/browser | Create a Logout URL for Browsers

internal/httpclient/api/openapi.yaml

+92
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,87 @@ paths:
645645
summary: Create a Recovery Link
646646
tags:
647647
- v0alpha2
648+
/admin/sessions:
649+
get:
650+
description: |-
651+
This endpoint is useful for:
652+
653+
Listing all sessions that exist in an administrative context.
654+
operationId: adminListSessions
655+
parameters:
656+
- description: |-
657+
Items per Page
658+
659+
This is the number of items per page to return.
660+
For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
661+
explode: true
662+
in: query
663+
name: page_size
664+
required: false
665+
schema:
666+
default: 250
667+
format: int64
668+
maximum: 1000
669+
minimum: 1
670+
type: integer
671+
style: form
672+
- description: |-
673+
Next Page Token
674+
675+
The next page token.
676+
For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
677+
explode: true
678+
in: query
679+
name: page_token
680+
required: false
681+
schema:
682+
type: string
683+
style: form
684+
- description: Active is a boolean flag that filters out sessions based on the
685+
state. If no value is provided, all sessions are returned.
686+
explode: true
687+
in: query
688+
name: active
689+
required: false
690+
schema:
691+
type: boolean
692+
style: form
693+
responses:
694+
"200":
695+
content:
696+
application/json:
697+
schema:
698+
$ref: '#/components/schemas/sessionList'
699+
description: sessionList
700+
"400":
701+
content:
702+
application/json:
703+
schema:
704+
$ref: '#/components/schemas/jsonError'
705+
description: jsonError
706+
"401":
707+
content:
708+
application/json:
709+
schema:
710+
$ref: '#/components/schemas/jsonError'
711+
description: jsonError
712+
"404":
713+
content:
714+
application/json:
715+
schema:
716+
$ref: '#/components/schemas/jsonError'
717+
description: jsonError
718+
"500":
719+
content:
720+
application/json:
721+
schema:
722+
$ref: '#/components/schemas/jsonError'
723+
description: jsonError
724+
security:
725+
- oryAccessToken: []
726+
summary: This endpoint returns all sessions that exist.
727+
tags:
728+
- v0alpha2
648729
/admin/sessions/{id}/extend:
649730
patch:
650731
description: |-
@@ -2972,6 +3053,17 @@ paths:
29723053
- metadata
29733054
components:
29743055
responses:
3056+
adminListSessions:
3057+
content:
3058+
application/json:
3059+
schema:
3060+
items:
3061+
$ref: '#/components/schemas/session'
3062+
type: array
3063+
description: |-
3064+
Session List Response
3065+
3066+
The response given when listing sessions in an administrative context.
29753067
emptyResponse:
29763068
description: Empty responses are sent when, for example, resources are deleted.
29773069
The HTTP status code for empty responses is typically 201.

internal/httpclient/api_v0alpha2.go

+197
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)