diff --git a/openapi-schema.yaml b/openapi-schema.yaml index 96cead4..987284c 100644 --- a/openapi-schema.yaml +++ b/openapi-schema.yaml @@ -23585,6 +23585,12 @@ components: expire_timestamp: format: date-time type: string + id: + readOnly: true + type: integer + is_disabled: + readOnly: true + type: boolean is_old_token: readOnly: true type: boolean @@ -23592,6 +23598,7 @@ components: maxLength: 255 type: string token: + nullable: true readOnly: true type: string type: object @@ -27908,6 +27915,12 @@ components: expire_timestamp: format: date-time type: string + id: + readOnly: true + type: integer + is_disabled: + readOnly: true + type: boolean is_old_token: readOnly: true type: boolean @@ -27915,14 +27928,34 @@ components: maxLength: 255 type: string token: + nullable: true readOnly: true type: string required: - created_at + - id + - 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 +37069,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 +37250,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