diff --git a/openapi.yaml b/openapi.yaml index e16f22b..e1f1af2 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1436,29 +1436,6 @@ components: type: string format: uuid nullable: true - AuthStrategyCredentialType: - type: string - enum: - - client_credentials - - self_managed_client_credentials - - key_auth - ListAuthStrategiesItem: - type: object - additionalProperties: false - properties: - id: - $ref: '#/components/schemas/AuthStrategyId' - name: - type: string - example: Okta Strategy - credential_type: - $ref: '#/components/schemas/AuthStrategyCredentialType' - auth_methods: - $ref: '#/components/schemas/AuthMethods' - required: - - id - - credential_type - - name CreateCredentialPayload: additionalProperties: false type: object @@ -1505,7 +1482,7 @@ components: type: string nullable: true auth_strategy: - $ref: '#/components/schemas/AuthStrategy' + $ref: '#/components/schemas/PortalAuthStrategy' created_at: $ref: '#/components/schemas/CreatedAt' updated_at: @@ -1628,7 +1605,7 @@ components: client_secret: type: string auth_strategy: - $ref: '#/components/schemas/AuthStrategy' + $ref: '#/components/schemas/PortalAuthStrategy' created_at: $ref: '#/components/schemas/CreatedAt' updated_at: @@ -1683,7 +1660,7 @@ components: example: https://example.com/callback nullable: true auth_strategy: - $ref: '#/components/schemas/AuthStrategy' + $ref: '#/components/schemas/PortalAuthStrategy' created_at: $ref: '#/components/schemas/CreatedAt' updated_at: @@ -1708,7 +1685,7 @@ components: data: type: array items: - $ref: '#/components/schemas/ListAuthStrategiesItem' + $ref: '#/components/schemas/PortalAuthStrategy' PageMeta: type: object description: >- @@ -1749,13 +1726,14 @@ components: Cannot be set when using Dynamic Client Registration. type: string maxLength: 255 - AuthStrategyKeyAuth: + PortalAuthStrategyKeyAuth: description: KeyAuth Auth strategy that the application uses. type: object required: - id - name - credential_type + - key_names properties: id: type: string @@ -1771,6 +1749,12 @@ components: type: string enum: - key_auth + key_names: + type: array + items: + type: string + example: + - apikey AuthMethods: type: array items: @@ -1778,7 +1762,7 @@ components: type: string example: - bearer - AuthStrategyClientCredentials: + PortalAuthStrategyClientCredentials: description: Client Credential Auth strategy that the application uses. type: object required: @@ -1804,10 +1788,12 @@ components: - self_managed_client_credentials auth_methods: $ref: '#/components/schemas/AuthMethods' - AuthStrategy: + PortalAuthStrategy: + type: object + nullable: true oneOf: - - $ref: '#/components/schemas/AuthStrategyKeyAuth' - - $ref: '#/components/schemas/AuthStrategyClientCredentials' + - $ref: '#/components/schemas/PortalAuthStrategyKeyAuth' + - $ref: '#/components/schemas/PortalAuthStrategyClientCredentials' discriminator: propertyName: credential_type CreatedAt: @@ -2459,6 +2445,8 @@ components: - pending - rejected - revoked + auth_strategy: + $ref: '#/components/schemas/AuthStrategy' created_at: $ref: '#/components/schemas/CreatedAt' updated_at: @@ -2615,6 +2603,61 @@ components: example: 5f9fd312-a987-4628-b4c5-bb4f4fddd5f7 description: Contains a unique identifier for a resource. nullable: true + AuthStrategyKeyAuth: + description: KeyAuth Auth strategy that the application uses. + type: object + required: + - id + - name + - credential_type + properties: + id: + type: string + format: uuid + example: b9e81174-b5bb-4638-a3c3-8afe61a0abf8 + description: The Application Auth Strategy ID. + readOnly: true + name: + type: string + example: name + default: name + credential_type: + type: string + enum: + - key_auth + AuthStrategyClientCredentials: + description: Client Credential Auth strategy that the application uses. + type: object + required: + - id + - name + - credential_type + - auth_methods + properties: + id: + type: string + format: uuid + example: b9e81174-b5bb-4638-a3c3-8afe61a0abf8 + description: The Application Auth Strategy ID. + readOnly: true + name: + type: string + example: name + default: name + credential_type: + type: string + enum: + - client_credentials + - self_managed_client_credentials + auth_methods: + $ref: '#/components/schemas/AuthMethods' + AuthStrategy: + type: object + oneOf: + - $ref: '#/components/schemas/AuthStrategyKeyAuth' + - $ref: '#/components/schemas/AuthStrategyClientCredentials' + discriminator: + propertyName: credential_type DocumentContentTypeEnum: type: string default: application/json @@ -2718,6 +2761,7 @@ components: type: string default: application/json enum: + - text/markdown - application/json - application/vnd.konnect.document-nodes+json NodeChildren: