diff --git a/packages/apidom-ls/src/config/openapi/oauth-flows/completion.ts b/packages/apidom-ls/src/config/openapi/oauth-flows/completion.ts index fb73df47c9..02de52bf8e 100644 --- a/packages/apidom-ls/src/config/openapi/oauth-flows/completion.ts +++ b/packages/apidom-ls/src/config/openapi/oauth-flows/completion.ts @@ -24,6 +24,20 @@ const completion: ApidomCompletionItem[] = [ { namespace: 'openapi', version: '3.0.3' }, ], }, + { + label: 'implicit', + insertText: 'implicit', + kind: 14, + format: CompletionFormat.OBJECT, + type: CompletionType.PROPERTY, + insertTextFormat: 2, + documentation: { + kind: 'markdown', + value: + '[OAuth Flow Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#oauthFlowObject)\n\\\n\\\nConfiguration for the OAuth Implicit flow.', + }, + targetSpecs: [{ namespace: 'openapi', version: '3.1.0' }], + }, { label: 'password', insertText: 'password', @@ -43,6 +57,20 @@ const completion: ApidomCompletionItem[] = [ { namespace: 'openapi', version: '3.0.3' }, ], }, + { + label: 'password', + insertText: 'password', + kind: 14, + format: CompletionFormat.OBJECT, + type: CompletionType.PROPERTY, + insertTextFormat: 2, + documentation: { + kind: 'markdown', + value: + '[OAuth Flow Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#oauthFlowObject)\n\\\n\\\nConfiguration for the OAuth Resource Owner Password flow.', + }, + targetSpecs: [{ namespace: 'openapi', version: '3.1.0' }], + }, { label: 'clientCredentials', insertText: 'clientCredentials', @@ -62,6 +90,20 @@ const completion: ApidomCompletionItem[] = [ { namespace: 'openapi', version: '3.0.3' }, ], }, + { + label: 'clientCredentials', + insertText: 'clientCredentials', + kind: 14, + format: CompletionFormat.OBJECT, + type: CompletionType.PROPERTY, + insertTextFormat: 2, + documentation: { + kind: 'markdown', + value: + '[OAuth Flow Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#oauthFlowObject)\n\\\n\\\nConfiguration for the OAuth Client Credentials flow. Previously called `application` in OpenAPI 2.0.', + }, + targetSpecs: [{ namespace: 'openapi', version: '3.1.0' }], + }, { label: 'authorizationCode', insertText: 'clientCredentials', @@ -81,6 +123,20 @@ const completion: ApidomCompletionItem[] = [ { namespace: 'openapi', version: '3.0.3' }, ], }, + { + label: 'authorizationCode', + insertText: 'clientCredentials', + kind: 14, + format: CompletionFormat.OBJECT, + type: CompletionType.PROPERTY, + insertTextFormat: 2, + documentation: { + kind: 'markdown', + value: + '[OAuth Flow Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#oauthFlowObject)\n\\\n\\\nConfiguration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0.', + }, + targetSpecs: [{ namespace: 'openapi', version: '3.1.0' }], + }, ]; export default completion;