Skip to content

Commit 5135e51

Browse files
Update OpenAPI to version generated from ref e68580c (#811)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent e68580c commit 5135e51

File tree

1 file changed

+82
-3
lines changed

1 file changed

+82
-3
lines changed

api/openapi.json

Lines changed: 82 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,54 @@
336336
}
337337
}
338338
},
339+
"/api/v1/provider-endpoints/{provider_id}/auth-material": {
340+
"put": {
341+
"tags": [
342+
"CodeGate API",
343+
"Providers"
344+
],
345+
"summary": "Configure Auth Material",
346+
"description": "Configure auth material for a provider.",
347+
"operationId": "v1_configure_auth_material",
348+
"parameters": [
349+
{
350+
"name": "provider_id",
351+
"in": "path",
352+
"required": true,
353+
"schema": {
354+
"type": "string",
355+
"format": "uuid",
356+
"title": "Provider Id"
357+
}
358+
}
359+
],
360+
"requestBody": {
361+
"required": true,
362+
"content": {
363+
"application/json": {
364+
"schema": {
365+
"$ref": "#/components/schemas/ConfigureAuthMaterial"
366+
}
367+
}
368+
}
369+
},
370+
"responses": {
371+
"204": {
372+
"description": "Successful Response"
373+
},
374+
"422": {
375+
"description": "Validation Error",
376+
"content": {
377+
"application/json": {
378+
"schema": {
379+
"$ref": "#/components/schemas/HTTPValidationError"
380+
}
381+
}
382+
}
383+
}
384+
}
385+
}
386+
},
339387
"/api/v1/workspaces": {
340388
"get": {
341389
"tags": [
@@ -1201,6 +1249,30 @@
12011249
],
12021250
"title": "CodeSnippet"
12031251
},
1252+
"ConfigureAuthMaterial": {
1253+
"properties": {
1254+
"auth_type": {
1255+
"$ref": "#/components/schemas/ProviderAuthType"
1256+
},
1257+
"api_key": {
1258+
"anyOf": [
1259+
{
1260+
"type": "string"
1261+
},
1262+
{
1263+
"type": "null"
1264+
}
1265+
],
1266+
"title": "Api Key"
1267+
}
1268+
},
1269+
"type": "object",
1270+
"required": [
1271+
"auth_type"
1272+
],
1273+
"title": "ConfigureAuthMaterial",
1274+
"description": "Represents a request to configure auth material for a provider."
1275+
},
12041276
"Conversation": {
12051277
"properties": {
12061278
"question_answers": {
@@ -1447,15 +1519,22 @@
14471519
"title": "Endpoint"
14481520
},
14491521
"auth_type": {
1450-
"$ref": "#/components/schemas/ProviderAuthType"
1522+
"anyOf": [
1523+
{
1524+
"$ref": "#/components/schemas/ProviderAuthType"
1525+
},
1526+
{
1527+
"type": "null"
1528+
}
1529+
],
1530+
"default": "none"
14511531
}
14521532
},
14531533
"type": "object",
14541534
"required": [
14551535
"name",
14561536
"provider_type",
1457-
"endpoint",
1458-
"auth_type"
1537+
"endpoint"
14591538
],
14601539
"title": "ProviderEndpoint",
14611540
"description": "Represents a provider's endpoint configuration. This\nallows us to persist the configuration for each provider,\nso we can use this for muxing messages."

0 commit comments

Comments
 (0)