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
12 changes: 6 additions & 6 deletions src/api/generated/data-contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6033,12 +6033,12 @@ export interface SmtpImapOauth2Config {
clientId: string;
/** OAuth2 client secret */
clientSecret: string;
/** OAuth2 refresh token (long-lived) */
refreshToken: string;
/** Current OAuth2 access token (rotated by the refresh service) */
accessToken: string;
/** Unix timestamp in milliseconds when the access token expires */
accessTokenExpiry: number;
/** OAuth2 refresh token (long-lived, managed by the OAuth2 callback/refresh service) */
refreshToken?: string;
/** Current OAuth2 access token (managed by the OAuth2 callback/refresh service) */
accessToken?: string;
/** Unix timestamp in milliseconds when the access token expires (managed by the OAuth2 callback/refresh service) */
accessTokenExpiry?: number;
/** OAuth2 scope string (e.g. https://www.googleapis.com/auth/gmail.modify for Gmail) */
scope: string;
}
Expand Down
9 changes: 3 additions & 6 deletions src/api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -12903,15 +12903,15 @@
},
"refreshToken": {
"type": "string",
"description": "OAuth2 refresh token (long-lived)"
"description": "OAuth2 refresh token (long-lived, managed by the OAuth2 callback/refresh service)"
},
"accessToken": {
"type": "string",
"description": "Current OAuth2 access token (rotated by the refresh service)"
"description": "Current OAuth2 access token (managed by the OAuth2 callback/refresh service)"
},
"accessTokenExpiry": {
"type": "integer",
"description": "Unix timestamp in milliseconds when the access token expires"
"description": "Unix timestamp in milliseconds when the access token expires (managed by the OAuth2 callback/refresh service)"
},
"scope": {
"type": "string",
Expand All @@ -12922,9 +12922,6 @@
"tokenUrl",
"clientId",
"clientSecret",
"refreshToken",
"accessToken",
"accessTokenExpiry",
"scope"
],
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,6 @@ const registry: Record<string, ProviderEntry> = {
clientSecret: c.oauth2ClientSecret,
scope: c.oauth2Scope,
}
if (c.oauth2AccessTokenExpiry) {
oauth2.accessTokenExpiry = parseInt(c.oauth2AccessTokenExpiry, 10)
}
cfg.oauth2 = oauth2
}

Expand Down
Loading