From 63d5c4af61d55640078808880d8fb5bc96efff35 Mon Sep 17 00:00:00 2001 From: thenav56 Date: Wed, 15 Jul 2026 17:00:20 +0545 Subject: [PATCH 1/2] Update OpenAPI schema for external token revocation Regenerate schema for the user self-revoke endpoint (POST /api/v2/external-token/{id}/revoke/), the token verify endpoint response type, and the is_disabled field. --- openapi-schema.yaml | 98 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/openapi-schema.yaml b/openapi-schema.yaml index 96cead4..7f3a76c 100644 --- a/openapi-schema.yaml +++ b/openapi-schema.yaml @@ -23585,6 +23585,9 @@ components: expire_timestamp: format: date-time type: string + is_disabled: + readOnly: true + type: boolean is_old_token: readOnly: true type: boolean @@ -23592,6 +23595,7 @@ components: maxLength: 255 type: string token: + nullable: true readOnly: true type: string type: object @@ -27908,6 +27912,9 @@ components: expire_timestamp: format: date-time type: string + is_disabled: + readOnly: true + type: boolean is_old_token: readOnly: true type: boolean @@ -27915,14 +27922,33 @@ components: maxLength: 255 type: string token: + nullable: true readOnly: true type: string required: - created_at + - is_disabled - is_old_token - title - token type: object + UserExternalTokenVerify: + description: Input serializer for the external-token verify endpoint. + properties: + jti: + format: uuid + type: string + required: + - jti + type: object + UserExternalTokenVerifyResponse: + description: Output serializer for the external-token verify endpoint. + properties: + active: + type: boolean + required: + - active + type: object UserMe: description: Custom ModelSerializer with translaion logic (Also works for normal models) @@ -37036,6 +37062,46 @@ paths: - cookieAuth: [] tags: - api + /api/v2/external-token/verify/: + post: + operationId: api_v2_external_token_verify_create + parameters: + - in: query + name: format + schema: + enum: + - csv + - json + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserExternalTokenVerify' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/UserExternalTokenVerify' + multipart/form-data: + schema: + $ref: '#/components/schemas/UserExternalTokenVerify' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UserExternalTokenVerifyResponse' + text/csv: + schema: + $ref: '#/components/schemas/UserExternalTokenVerifyResponse' + description: '' + security: + - tokenAuth: [] + - basicAuth: [] + - cookieAuth: [] + - {} + tags: + - api /api/v2/external-token/{id}/: delete: operationId: api_v2_external_token_destroy @@ -37177,6 +37243,38 @@ paths: - cookieAuth: [] tags: - api + /api/v2/external-token/{id}/revoke/: + post: + operationId: api_v2_external_token_revoke_create + parameters: + - in: path + name: id + required: true + schema: + type: string + - in: query + name: format + schema: + enum: + - csv + - json + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UserExternalToken' + text/csv: + schema: + $ref: '#/components/schemas/UserExternalToken' + description: '' + security: + - tokenAuth: [] + - basicAuth: [] + - cookieAuth: [] + tags: + - api /api/v2/external_partner/: get: operationId: api_v2_external_partner_list From 59cdf3170473a0be334e0529e14c4e990200d584 Mon Sep 17 00:00:00 2001 From: thenav56 Date: Fri, 17 Jul 2026 10:38:07 +0545 Subject: [PATCH 2/2] feat: add id field to UserExternalToken schema --- openapi-schema.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openapi-schema.yaml b/openapi-schema.yaml index 7f3a76c..987284c 100644 --- a/openapi-schema.yaml +++ b/openapi-schema.yaml @@ -23585,6 +23585,9 @@ components: expire_timestamp: format: date-time type: string + id: + readOnly: true + type: integer is_disabled: readOnly: true type: boolean @@ -27912,6 +27915,9 @@ components: expire_timestamp: format: date-time type: string + id: + readOnly: true + type: integer is_disabled: readOnly: true type: boolean @@ -27927,6 +27933,7 @@ components: type: string required: - created_at + - id - is_disabled - is_old_token - title