Skip to content

Commit 3e8a268

Browse files
committed
autogen: regenerate OpenAPI client for v1.21.1
Version: v1.21.1
1 parent 8f1ece6 commit 3e8a268

File tree

643 files changed

+1372
-942
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

643 files changed

+1372
-942
lines changed

api/openapi.yaml

Lines changed: 93 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ info:
3939
url: https://www.apache.org/licenses/LICENSE-2.0.html
4040
termsOfService: /tos
4141
title: Ory APIs
42-
version: v1.21.0
42+
version: v1.21.1
4343
servers:
4444
- url: "https://{project_slug}.projects.oryapis.com/"
4545
variables:
@@ -898,6 +898,73 @@ paths:
898898
x-content-type: application/json
899899
x-accepts:
900900
- application/json
901+
/admin/identities/by/external/{externalID}:
902+
get:
903+
description: |-
904+
Return an [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model) by its external ID. You can optionally
905+
include credentials (e.g. social sign in connections) in the response by using the `include_credential` query parameter.
906+
operationId: getIdentityByExternalID
907+
parameters:
908+
- description: ExternalID must be set to the ID of identity you want to get
909+
explode: false
910+
in: path
911+
name: externalID
912+
required: true
913+
schema:
914+
type: string
915+
style: simple
916+
- description: |-
917+
Include Credentials in Response
918+
919+
Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return
920+
the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available.
921+
explode: true
922+
in: query
923+
name: include_credential
924+
required: false
925+
schema:
926+
items:
927+
enum:
928+
- password
929+
- oidc
930+
- totp
931+
- lookup_secret
932+
- webauthn
933+
- code
934+
- passkey
935+
- profile
936+
- saml
937+
- link_recovery
938+
- code_recovery
939+
type: string
940+
type: array
941+
style: form
942+
responses:
943+
"200":
944+
content:
945+
application/json:
946+
schema:
947+
$ref: '#/components/schemas/identity'
948+
description: identity
949+
"404":
950+
content:
951+
application/json:
952+
schema:
953+
$ref: '#/components/schemas/errorGeneric'
954+
description: errorGeneric
955+
default:
956+
content:
957+
application/json:
958+
schema:
959+
$ref: '#/components/schemas/errorGeneric'
960+
description: errorGeneric
961+
security:
962+
- oryAccessToken: []
963+
summary: Get an Identity by its External ID
964+
tags:
965+
- identity
966+
x-accepts:
967+
- application/json
901968
/admin/identities/{id}:
902969
delete:
903970
description: |-
@@ -12360,6 +12427,12 @@ components:
1236012427
properties:
1236112428
credentials:
1236212429
$ref: '#/components/schemas/identityWithCredentials'
12430+
external_id:
12431+
description: |-
12432+
ExternalID is an optional external ID of the identity. This is used to link
12433+
the identity to an external system. If set, the external ID must be unique
12434+
across all identities.
12435+
type: string
1236312436
metadata_admin:
1236412437
description: Store metadata about the user which is only accessible through
1236512438
admin APIs such as `GET /admin/identities/<id>`.
@@ -13366,6 +13439,7 @@ components:
1336613439
version: 0
1336713440
state_changed_at: 2000-01-23T04:56:07.000+00:00
1336813441
created_at: 2000-01-23T04:56:07.000+00:00
13442+
external_id: external_id
1336913443
recovery_addresses:
1337013444
- updated_at: 2000-01-23T04:56:07.000+00:00
1337113445
created_at: 2000-01-23T04:56:07.000+00:00
@@ -13413,6 +13487,12 @@ components:
1341313487
description: Credentials represents all credentials that can be used for
1341413488
authenticating this identity.
1341513489
type: object
13490+
external_id:
13491+
description: |-
13492+
ExternalID is an optional external ID of the identity. This is used to link
13493+
the identity to an external system. If set, the external ID must be unique
13494+
across all identities.
13495+
type: string
1341613496
id:
1341713497
description: |-
1341813498
ID is the identity's unique identifier.
@@ -21124,6 +21204,7 @@ components:
2112421204
version: 0
2112521205
state_changed_at: 2000-01-23T04:56:07.000+00:00
2112621206
created_at: 2000-01-23T04:56:07.000+00:00
21207+
external_id: external_id
2112721208
recovery_addresses:
2112821209
- updated_at: 2000-01-23T04:56:07.000+00:00
2112921210
created_at: 2000-01-23T04:56:07.000+00:00
@@ -21512,6 +21593,7 @@ components:
2151221593
version: 0
2151321594
state_changed_at: 2000-01-23T04:56:07.000+00:00
2151421595
created_at: 2000-01-23T04:56:07.000+00:00
21596+
external_id: external_id
2151521597
recovery_addresses:
2151621598
- updated_at: 2000-01-23T04:56:07.000+00:00
2151721599
created_at: 2000-01-23T04:56:07.000+00:00
@@ -21823,6 +21905,7 @@ components:
2182321905
version: 0
2182421906
state_changed_at: 2000-01-23T04:56:07.000+00:00
2182521907
created_at: 2000-01-23T04:56:07.000+00:00
21908+
external_id: external_id
2182621909
recovery_addresses:
2182721910
- updated_at: 2000-01-23T04:56:07.000+00:00
2182821911
created_at: 2000-01-23T04:56:07.000+00:00
@@ -21918,6 +22001,7 @@ components:
2191822001
version: 0
2191922002
state_changed_at: 2000-01-23T04:56:07.000+00:00
2192022003
created_at: 2000-01-23T04:56:07.000+00:00
22004+
external_id: external_id
2192122005
recovery_addresses:
2192222006
- updated_at: 2000-01-23T04:56:07.000+00:00
2192322007
created_at: 2000-01-23T04:56:07.000+00:00
@@ -21992,6 +22076,7 @@ components:
2199222076
version: 0
2199322077
state_changed_at: 2000-01-23T04:56:07.000+00:00
2199422078
created_at: 2000-01-23T04:56:07.000+00:00
22079+
external_id: external_id
2199522080
recovery_addresses:
2199622081
- updated_at: 2000-01-23T04:56:07.000+00:00
2199722082
created_at: 2000-01-23T04:56:07.000+00:00
@@ -23104,6 +23189,12 @@ components:
2310423189
properties:
2310523190
credentials:
2310623191
$ref: '#/components/schemas/identityWithCredentials'
23192+
external_id:
23193+
description: |-
23194+
ExternalID is an optional external ID of the identity. This is used to link
23195+
the identity to an external system. If set, the external ID must be unique
23196+
across all identities.
23197+
type: string
2310723198
metadata_admin:
2310823199
description: Store metadata about the user which is only accessible through
2310923200
admin APIs such as `GET /admin/identities/<id>`.
@@ -23497,8 +23588,7 @@ components:
2349723588
type: string
2349823589
screen:
2349923590
description: |-
23500-
Go back in the flow, meaningfully.
23501-
The actual value is not important (it is typically "previous"), the system checks whether the value is empty or not.
23591+
Set to "previous" to return to the previous screen.
2350223592
Used in RecoveryV2.
2350323593
type: string
2350423594
transient_payload:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'sh.ory'
7-
version = 'v1.21.0'
7+
version = 'v1.21.1'
88

99
buildscript {
1010
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "sh.ory",
44
name := "client",
5-
version := "v1.21.0",
5+
version := "v1.21.1",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/CreateIdentityBody.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Create Identity Body
99
| Name | Type | Description | Notes |
1010
|------------ | ------------- | ------------- | -------------|
1111
|**credentials** | [**IdentityWithCredentials**](IdentityWithCredentials.md) | | [optional] |
12+
|**externalId** | **String** | ExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities. | [optional] |
1213
|**metadataAdmin** | **Object** | Store metadata about the user which is only accessible through admin APIs such as &#x60;GET /admin/identities/&lt;id&gt;&#x60;. | [optional] |
1314
|**metadataPublic** | **Object** | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] |
1415
|**organizationId** | **String** | | [optional] |

docs/Identity.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ An [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model) repre
1010
|------------ | ------------- | ------------- | -------------|
1111
|**createdAt** | **OffsetDateTime** | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] |
1212
|**credentials** | [**Map&lt;String, IdentityCredentials&gt;**](IdentityCredentials.md) | Credentials represents all credentials that can be used for authenticating this identity. | [optional] |
13+
|**externalId** | **String** | ExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities. | [optional] |
1314
|**id** | **String** | ID is the identity&#39;s unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB. | |
1415
|**metadataAdmin** | **Object** | NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable- | [optional] |
1516
|**metadataPublic** | **Object** | NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable- | [optional] |

docs/IdentityApi.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ All URIs are relative to *https://playground.projects.oryapis.com*
1414
| [**disableSession**](IdentityApi.md#disableSession) | **DELETE** /admin/sessions/{id} | Deactivate a Session |
1515
| [**extendSession**](IdentityApi.md#extendSession) | **PATCH** /admin/sessions/{id}/extend | Extend a Session |
1616
| [**getIdentity**](IdentityApi.md#getIdentity) | **GET** /admin/identities/{id} | Get an Identity |
17+
| [**getIdentityByExternalID**](IdentityApi.md#getIdentityByExternalID) | **GET** /admin/identities/by/external/{externalID} | Get an Identity by its External ID |
1718
| [**getIdentitySchema**](IdentityApi.md#getIdentitySchema) | **GET** /schemas/{id} | Get Identity JSON Schema |
1819
| [**getSession**](IdentityApi.md#getSession) | **GET** /admin/sessions/{id} | Get Session |
1920
| [**listIdentities**](IdentityApi.md#listIdentities) | **GET** /admin/identities | List Identities |
@@ -727,6 +728,77 @@ public class Example {
727728
| **404** | errorGeneric | - |
728729
| **0** | errorGeneric | - |
729730

731+
<a id="getIdentityByExternalID"></a>
732+
# **getIdentityByExternalID**
733+
> Identity getIdentityByExternalID(externalID, includeCredential)
734+
735+
Get an Identity by its External ID
736+
737+
Return an [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model) by its external ID. You can optionally include credentials (e.g. social sign in connections) in the response by using the &#x60;include_credential&#x60; query parameter.
738+
739+
### Example
740+
```java
741+
// Import classes:
742+
import sh.ory.ApiClient;
743+
import sh.ory.ApiException;
744+
import sh.ory.Configuration;
745+
import sh.ory.auth.*;
746+
import sh.ory.models.*;
747+
import sh.ory.api.IdentityApi;
748+
749+
public class Example {
750+
public static void main(String[] args) {
751+
ApiClient defaultClient = Configuration.getDefaultApiClient();
752+
defaultClient.setBasePath("https://playground.projects.oryapis.com");
753+
754+
// Configure HTTP bearer authorization: oryAccessToken
755+
HttpBearerAuth oryAccessToken = (HttpBearerAuth) defaultClient.getAuthentication("oryAccessToken");
756+
oryAccessToken.setBearerToken("BEARER TOKEN");
757+
758+
IdentityApi apiInstance = new IdentityApi(defaultClient);
759+
String externalID = "externalID_example"; // String | ExternalID must be set to the ID of identity you want to get
760+
List<String> includeCredential = Arrays.asList(); // List<String> | Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available.
761+
try {
762+
Identity result = apiInstance.getIdentityByExternalID(externalID, includeCredential);
763+
System.out.println(result);
764+
} catch (ApiException e) {
765+
System.err.println("Exception when calling IdentityApi#getIdentityByExternalID");
766+
System.err.println("Status code: " + e.getCode());
767+
System.err.println("Reason: " + e.getResponseBody());
768+
System.err.println("Response headers: " + e.getResponseHeaders());
769+
e.printStackTrace();
770+
}
771+
}
772+
}
773+
```
774+
775+
### Parameters
776+
777+
| Name | Type | Description | Notes |
778+
|------------- | ------------- | ------------- | -------------|
779+
| **externalID** | **String**| ExternalID must be set to the ID of identity you want to get | |
780+
| **includeCredential** | [**List&lt;String&gt;**](String.md)| Include Credentials in Response Include any credential, for example &#x60;password&#x60; or &#x60;oidc&#x60;, in the response. When set to &#x60;oidc&#x60;, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. | [optional] [enum: password, oidc, totp, lookup_secret, webauthn, code, passkey, profile, saml, link_recovery, code_recovery] |
781+
782+
### Return type
783+
784+
[**Identity**](Identity.md)
785+
786+
### Authorization
787+
788+
[oryAccessToken](../README.md#oryAccessToken)
789+
790+
### HTTP request headers
791+
792+
- **Content-Type**: Not defined
793+
- **Accept**: application/json
794+
795+
### HTTP response details
796+
| Status code | Description | Response headers |
797+
|-------------|-------------|------------------|
798+
| **200** | identity | - |
799+
| **404** | errorGeneric | - |
800+
| **0** | errorGeneric | - |
801+
730802
<a id="getIdentitySchema"></a>
731803
# **getIdentitySchema**
732804
> Object getIdentitySchema(id)

docs/UpdateIdentityBody.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Update Identity Body
99
| Name | Type | Description | Notes |
1010
|------------ | ------------- | ------------- | -------------|
1111
|**credentials** | [**IdentityWithCredentials**](IdentityWithCredentials.md) | | [optional] |
12+
|**externalId** | **String** | ExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities. | [optional] |
1213
|**metadataAdmin** | **Object** | Store metadata about the user which is only accessible through admin APIs such as &#x60;GET /admin/identities/&lt;id&gt;&#x60;. | [optional] |
1314
|**metadataPublic** | **Object** | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] |
1415
|**schemaId** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity&#39;s traits. If set will update the Identity&#39;s SchemaID. | |

docs/UpdateRecoveryFlowBody.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Update Recovery Flow Request Body
1616
|**recoveryAddress** | **String** | A recovery address that is registered for the user. It can be an email, a phone number (to receive the code via SMS), etc. Used in RecoveryV2. | [optional] |
1717
|**recoveryConfirmAddress** | **String** | If there are multiple recovery addresses registered for the user, and the initially provided address is different from the address chosen when the choice (of masked addresses) is presented, then we need to make sure that the user actually knows the full address to avoid information exfiltration, so we ask for the full address. Used in RecoveryV2. | [optional] |
1818
|**recoverySelectAddress** | **String** | If there are multiple addresses registered for the user, a choice is presented and this field stores the result of this choice. Addresses are &#39;masked&#39; (never sent in full to the client and shown partially in the UI) since at this point in the recovery flow, the user has not yet proven that it knows the full address and we want to avoid information exfiltration. So for all intents and purposes, the value of this field should be treated as an opaque identifier. Used in RecoveryV2. | [optional] |
19-
|**screen** | **String** | Go back in the flow, meaningfully. The actual value is not important (it is typically \&quot;previous\&quot;), the system checks whether the value is empty or not. Used in RecoveryV2. | [optional] |
19+
|**screen** | **String** | Set to \&quot;previous\&quot; to return to the previous screen. Used in RecoveryV2. | [optional] |
2020

2121

2222

docs/UpdateRecoveryFlowWithCodeMethod.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Update Recovery Flow with Code Method
1515
|**recoveryAddress** | **String** | A recovery address that is registered for the user. It can be an email, a phone number (to receive the code via SMS), etc. Used in RecoveryV2. | [optional] |
1616
|**recoveryConfirmAddress** | **String** | If there are multiple recovery addresses registered for the user, and the initially provided address is different from the address chosen when the choice (of masked addresses) is presented, then we need to make sure that the user actually knows the full address to avoid information exfiltration, so we ask for the full address. Used in RecoveryV2. | [optional] |
1717
|**recoverySelectAddress** | **String** | If there are multiple addresses registered for the user, a choice is presented and this field stores the result of this choice. Addresses are &#39;masked&#39; (never sent in full to the client and shown partially in the UI) since at this point in the recovery flow, the user has not yet proven that it knows the full address and we want to avoid information exfiltration. So for all intents and purposes, the value of this field should be treated as an opaque identifier. Used in RecoveryV2. | [optional] |
18-
|**screen** | **String** | Go back in the flow, meaningfully. The actual value is not important (it is typically \&quot;previous\&quot;), the system checks whether the value is empty or not. Used in RecoveryV2. | [optional] |
18+
|**screen** | **String** | Set to \&quot;previous\&quot; to return to the previous screen. Used in RecoveryV2. | [optional] |
1919
|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] |
2020

2121

0 commit comments

Comments
 (0)