Skip to content

Commit fd28130

Browse files
algolia-botsbelloneFluf22
committed
feat(specs): Ingestion API: new code property in oauth authentication (generated)
algolia/api-clients-automation#5897 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Sylvain Bellone <sylvain.bellone@algolia.com> Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
1 parent 91672e8 commit fd28130

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

packages/ingestion/model/authOAuth.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ export type AuthOAuth = {
1212
/**
1313
* Client ID.
1414
*/
15-
client_id: string;
15+
client_id?: string | undefined;
1616

1717
/**
1818
* Client secret. This field is `null` in the API response.
1919
*/
20-
client_secret: string;
20+
client_secret?: string | undefined;
21+
22+
/**
23+
* Authorization code. Used during an `authorization_code` grant type flow, to request an access_token when creating/updating the authentication. This field is not returned in the API response.
24+
*/
25+
code?: string | undefined;
2126

2227
/**
2328
* OAuth scope.

packages/ingestion/model/authOAuthPartial.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export type AuthOAuthPartial = {
1919
*/
2020
client_secret?: string | undefined;
2121

22+
/**
23+
* Authorization code. Used during an `authorization_code` grant type flow, to request an access_token when creating/updating the authentication. This field is not returned in the API response.
24+
*/
25+
code?: string | undefined;
26+
2227
/**
2328
* OAuth scope.
2429
*/

0 commit comments

Comments
 (0)