Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions openapi-raw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2233,6 +2233,23 @@ paths:
examples:
default_example:
$ref: '#/components/examples/OAuthTokenGenerateResponseExample'
4XX:
description: failed_operation
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
400_example:
$ref: '#/components/examples/Error400ResponseExample'
401_example:
$ref: '#/components/examples/Error401ResponseExample'
402_example:
$ref: '#/components/examples/Error402ResponseExample'
403_example:
$ref: '#/components/examples/Error403ResponseExample'
4XX_example:
$ref: '#/components/examples/Error4XXResponseExample'
security: []
servers:
-
Expand Down Expand Up @@ -2316,6 +2333,23 @@ paths:
examples:
default_example:
$ref: '#/components/examples/OAuthTokenRefreshResponseExample'
4XX:
description: failed_operation
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
400_example:
$ref: '#/components/examples/Error400ResponseExample'
401_example:
$ref: '#/components/examples/Error401ResponseExample'
402_example:
$ref: '#/components/examples/Error402ResponseExample'
403_example:
$ref: '#/components/examples/Error403ResponseExample'
4XX_example:
$ref: '#/components/examples/Error4XXResponseExample'
security: []
servers:
-
Expand Down Expand Up @@ -7288,6 +7322,12 @@ components:
refresh_token:
description: '_t__OAuthTokenRefresh::REFRESH_TOKEN'
type: string
client_id:
description: '_t__OAuthTokenRefresh::CLIENT_ID'
type: string
client_secret:
description: '_t__OAuthTokenRefresh::CLIENT_SECRET'
type: string
type: object
ReportCreateRequest:
required:
Expand Down
40 changes: 40 additions & 0 deletions openapi-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2239,6 +2239,23 @@ paths:
examples:
default_example:
$ref: '#/components/examples/OAuthTokenGenerateResponseExample'
4XX:
description: failed_operation
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
400_example:
$ref: '#/components/examples/Error400ResponseExample'
401_example:
$ref: '#/components/examples/Error401ResponseExample'
402_example:
$ref: '#/components/examples/Error402ResponseExample'
403_example:
$ref: '#/components/examples/Error403ResponseExample'
4XX_example:
$ref: '#/components/examples/Error4XXResponseExample'
security: []
servers:
-
Expand Down Expand Up @@ -2322,6 +2339,23 @@ paths:
examples:
default_example:
$ref: '#/components/examples/OAuthTokenRefreshResponseExample'
4XX:
description: failed_operation
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
400_example:
$ref: '#/components/examples/Error400ResponseExample'
401_example:
$ref: '#/components/examples/Error401ResponseExample'
402_example:
$ref: '#/components/examples/Error402ResponseExample'
403_example:
$ref: '#/components/examples/Error403ResponseExample'
4XX_example:
$ref: '#/components/examples/Error4XXResponseExample'
security: []
servers:
-
Expand Down Expand Up @@ -7382,6 +7416,12 @@ components:
refresh_token:
description: 'The token provided when you got the expired access token.'
type: string
client_id:
description: 'The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled.'
type: string
client_secret:
description: 'The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled.'
type: string
type: object
ReportCreateRequest:
required:
Expand Down
40 changes: 40 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2239,6 +2239,23 @@ paths:
examples:
default_example:
$ref: '#/components/examples/OAuthTokenGenerateResponseExample'
4XX:
description: failed_operation
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
400_example:
$ref: '#/components/examples/Error400ResponseExample'
401_example:
$ref: '#/components/examples/Error401ResponseExample'
402_example:
$ref: '#/components/examples/Error402ResponseExample'
403_example:
$ref: '#/components/examples/Error403ResponseExample'
4XX_example:
$ref: '#/components/examples/Error4XXResponseExample'
security: []
servers:
-
Expand Down Expand Up @@ -2322,6 +2339,23 @@ paths:
examples:
default_example:
$ref: '#/components/examples/OAuthTokenRefreshResponseExample'
4XX:
description: failed_operation
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
400_example:
$ref: '#/components/examples/Error400ResponseExample'
401_example:
$ref: '#/components/examples/Error401ResponseExample'
402_example:
$ref: '#/components/examples/Error402ResponseExample'
403_example:
$ref: '#/components/examples/Error403ResponseExample'
4XX_example:
$ref: '#/components/examples/Error4XXResponseExample'
security: []
servers:
-
Expand Down Expand Up @@ -7382,6 +7416,12 @@ components:
refresh_token:
description: 'The token provided when you got the expired access token.'
type: string
client_id:
description: 'The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled.'
type: string
client_secret:
description: 'The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled.'
type: string
type: object
ReportCreateRequest:
required:
Expand Down
2 changes: 2 additions & 0 deletions sdks/dotnet/docs/OAuthApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ No authorization required
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | * X-RateLimit-Limit - <br> * X-RateLimit-Remaining - <br> * X-Ratelimit-Reset - <br> |
| **4XX** | failed_operation | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

Expand Down Expand Up @@ -191,6 +192,7 @@ No authorization required
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | * X-RateLimit-Limit - <br> * X-RateLimit-Remaining - <br> * X-Ratelimit-Reset - <br> |
| **4XX** | failed_operation | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

2 changes: 1 addition & 1 deletion sdks/dotnet/docs/OAuthTokenRefreshRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**GrantType** | **string** | When refreshing an existing token use `refresh_token`. | [default to "refresh_token"]**RefreshToken** | **string** | The token provided when you got the expired access token. |
**GrantType** | **string** | When refreshing an existing token use `refresh_token`. | [default to "refresh_token"]**RefreshToken** | **string** | The token provided when you got the expired access token. | **ClientId** | **string** | The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the &quot;Client Credentials Required&quot; setting is enabled for token refresh; optional if disabled. | [optional] **ClientSecret** | **string** | The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the &quot;Client Credentials Required&quot; setting is enabled for token refresh; optional if disabled. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

54 changes: 53 additions & 1 deletion sdks/dotnet/src/Dropbox.Sign/Model/OAuthTokenRefreshRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ protected OAuthTokenRefreshRequest() { }
/// </summary>
/// <param name="grantType">When refreshing an existing token use &#x60;refresh_token&#x60;. (required) (default to &quot;refresh_token&quot;).</param>
/// <param name="refreshToken">The token provided when you got the expired access token. (required).</param>
public OAuthTokenRefreshRequest(string grantType = @"refresh_token", string refreshToken = default(string))
/// <param name="clientId">The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the \&quot;Client Credentials Required\&quot; setting is enabled for token refresh; optional if disabled..</param>
/// <param name="clientSecret">The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the \&quot;Client Credentials Required\&quot; setting is enabled for token refresh; optional if disabled..</param>
public OAuthTokenRefreshRequest(string grantType = @"refresh_token", string refreshToken = default(string), string clientId = default(string), string clientSecret = default(string))
{

// to ensure "grantType" is required (not null)
Expand All @@ -58,6 +60,8 @@ protected OAuthTokenRefreshRequest() { }
throw new ArgumentNullException("refreshToken is a required property for OAuthTokenRefreshRequest and cannot be null");
}
this.RefreshToken = refreshToken;
this.ClientId = clientId;
this.ClientSecret = clientSecret;
}

/// <summary>
Expand Down Expand Up @@ -90,6 +94,20 @@ public static OAuthTokenRefreshRequest Init(string jsonData)
[DataMember(Name = "refresh_token", IsRequired = true, EmitDefaultValue = true)]
public string RefreshToken { get; set; }

/// <summary>
/// The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the \&quot;Client Credentials Required\&quot; setting is enabled for token refresh; optional if disabled.
/// </summary>
/// <value>The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the \&quot;Client Credentials Required\&quot; setting is enabled for token refresh; optional if disabled.</value>
[DataMember(Name = "client_id", EmitDefaultValue = true)]
public string ClientId { get; set; }

/// <summary>
/// The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the \&quot;Client Credentials Required\&quot; setting is enabled for token refresh; optional if disabled.
/// </summary>
/// <value>The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the \&quot;Client Credentials Required\&quot; setting is enabled for token refresh; optional if disabled.</value>
[DataMember(Name = "client_secret", EmitDefaultValue = true)]
public string ClientSecret { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -100,6 +118,8 @@ public override string ToString()
sb.Append("class OAuthTokenRefreshRequest {\n");
sb.Append(" GrantType: ").Append(GrantType).Append("\n");
sb.Append(" RefreshToken: ").Append(RefreshToken).Append("\n");
sb.Append(" ClientId: ").Append(ClientId).Append("\n");
sb.Append(" ClientSecret: ").Append(ClientSecret).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -144,6 +164,16 @@ public bool Equals(OAuthTokenRefreshRequest input)
this.RefreshToken == input.RefreshToken ||
(this.RefreshToken != null &&
this.RefreshToken.Equals(input.RefreshToken))
) &&
(
this.ClientId == input.ClientId ||
(this.ClientId != null &&
this.ClientId.Equals(input.ClientId))
) &&
(
this.ClientSecret == input.ClientSecret ||
(this.ClientSecret != null &&
this.ClientSecret.Equals(input.ClientSecret))
);
}

Expand All @@ -164,6 +194,14 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.RefreshToken.GetHashCode();
}
if (this.ClientId != null)
{
hashCode = (hashCode * 59) + this.ClientId.GetHashCode();
}
if (this.ClientSecret != null)
{
hashCode = (hashCode * 59) + this.ClientSecret.GetHashCode();
}
return hashCode;
}
}
Expand Down Expand Up @@ -194,6 +232,20 @@ public List<OpenApiType> GetOpenApiTypes()
Type = "string",
Value = RefreshToken,
});
types.Add(new OpenApiType()
{
Name = "client_id",
Property = "ClientId",
Type = "string",
Value = ClientId,
});
types.Add(new OpenApiType()
{
Name = "client_secret",
Property = "ClientSecret",
Type = "string",
Value = ClientSecret,
});

return types;
}
Expand Down
2 changes: 2 additions & 0 deletions sdks/java-v1/docs/OAuthApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ No authorization required
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | * X-RateLimit-Limit - <br> * X-RateLimit-Remaining - <br> * X-Ratelimit-Reset - <br> |
| **4XX** | failed_operation | - |


## oauthTokenRefresh
Expand Down Expand Up @@ -144,4 +145,5 @@ No authorization required
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | * X-RateLimit-Limit - <br> * X-RateLimit-Remaining - <br> * X-Ratelimit-Reset - <br> |
| **4XX** | failed_operation | - |

2 changes: 2 additions & 0 deletions sdks/java-v1/docs/OAuthTokenRefreshRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
|------------ | ------------- | ------------- | -------------|
| `grantType`<sup>*_required_</sup> | ```String``` | When refreshing an existing token use `refresh_token`. | |
| `refreshToken`<sup>*_required_</sup> | ```String``` | The token provided when you got the expired access token. | |
| `clientId` | ```String``` | The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the &quot;Client Credentials Required&quot; setting is enabled for token refresh; optional if disabled. | |
| `clientSecret` | ```String``` | The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the &quot;Client Credentials Required&quot; setting is enabled for token refresh; optional if disabled. | |



4 changes: 4 additions & 0 deletions sdks/java-v1/src/main/java/com/dropbox/sign/api/OAuthApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public void setApiClient(ApiClient apiClient) {
* <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> * X-RateLimit-Limit - <br> * X-RateLimit-Remaining - <br> * X-Ratelimit-Reset - <br> </td></tr>
* <tr><td> 4XX </td><td> failed_operation </td><td> - </td></tr>
* </table>
*/
public OAuthTokenResponse oauthTokenGenerate(
Expand All @@ -73,6 +74,7 @@ public OAuthTokenResponse oauthTokenGenerate(
* <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> * X-RateLimit-Limit - <br> * X-RateLimit-Remaining - <br> * X-Ratelimit-Reset - <br> </td></tr>
* <tr><td> 4XX </td><td> failed_operation </td><td> - </td></tr>
* </table>
*/
public ApiResponse<OAuthTokenResponse> oauthTokenGenerateWithHttpInfo(
Expand Down Expand Up @@ -125,6 +127,7 @@ public ApiResponse<OAuthTokenResponse> oauthTokenGenerateWithHttpInfo(
* <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> * X-RateLimit-Limit - <br> * X-RateLimit-Remaining - <br> * X-Ratelimit-Reset - <br> </td></tr>
* <tr><td> 4XX </td><td> failed_operation </td><td> - </td></tr>
* </table>
*/
public OAuthTokenResponse oauthTokenRefresh(OAuthTokenRefreshRequest oauthTokenRefreshRequest)
Expand All @@ -145,6 +148,7 @@ public OAuthTokenResponse oauthTokenRefresh(OAuthTokenRefreshRequest oauthTokenR
* <table summary="Response Details" border="1">
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> successful operation </td><td> * X-RateLimit-Limit - <br> * X-RateLimit-Remaining - <br> * X-Ratelimit-Reset - <br> </td></tr>
* <tr><td> 4XX </td><td> failed_operation </td><td> - </td></tr>
* </table>
*/
public ApiResponse<OAuthTokenResponse> oauthTokenRefreshWithHttpInfo(
Expand Down
Loading