|
5080 | 5080 | "description" : "Filter connectors by a given type.",
|
5081 | 5081 | "explode" : true,
|
5082 | 5082 | "in" : "query",
|
5083 |
| - "name" : "type", |
| 5083 | + "name" : "filter_type", |
| 5084 | + "required" : false, |
| 5085 | + "schema" : { |
| 5086 | + "type" : "string" |
| 5087 | + }, |
| 5088 | + "style" : "form" |
| 5089 | + }, { |
| 5090 | + "description" : "Filter connectors by a given plugin reference. Mutually exclusive with `type`.", |
| 5091 | + "example" : "cloudquery/source/googleanalytics", |
| 5092 | + "explode" : true, |
| 5093 | + "in" : "query", |
| 5094 | + "name" : "filter_plugin", |
5084 | 5095 | "required" : false,
|
5085 | 5096 | "schema" : {
|
5086 | 5097 | "type" : "string"
|
|
5098 | 5109 | },
|
5099 | 5110 | "description" : "Response"
|
5100 | 5111 | },
|
| 5112 | + "400" : { |
| 5113 | + "$ref" : "#/components/responses/BadRequest" |
| 5114 | + }, |
5101 | 5115 | "401" : {
|
5102 | 5116 | "$ref" : "#/components/responses/RequiresAuthentication"
|
5103 | 5117 | },
|
|
5290 | 5304 | "401" : {
|
5291 | 5305 | "$ref" : "#/components/responses/RequiresAuthentication"
|
5292 | 5306 | },
|
| 5307 | + "403" : { |
| 5308 | + "$ref" : "#/components/responses/Forbidden" |
| 5309 | + }, |
5293 | 5310 | "404" : {
|
5294 | 5311 | "$ref" : "#/components/responses/NotFound"
|
5295 | 5312 | },
|
|
8388 | 8405 | },
|
8389 | 8406 | "required" : [ "access_key_id", "can_expire", "expires", "secret_access_key", "session_token", "source" ]
|
8390 | 8407 | },
|
| 8408 | + "ConnectorCredentialsResponseOAuth" : { |
| 8409 | + "additionalProperties" : false, |
| 8410 | + "description" : "OAuth connector credentials response", |
| 8411 | + "properties" : { |
| 8412 | + "access_token" : { |
| 8413 | + "type" : "string" |
| 8414 | + }, |
| 8415 | + "expires" : { |
| 8416 | + "format" : "date-time", |
| 8417 | + "type" : "string" |
| 8418 | + } |
| 8419 | + }, |
| 8420 | + "required" : [ "access_token" ] |
| 8421 | + }, |
8391 | 8422 | "ManagedDatabaseID" : {
|
8392 | 8423 | "description" : "The identifier for the managed database",
|
8393 | 8424 | "example" : "12345678-1234-1234-1234-1234567890ab",
|
|
8521 | 8552 | },
|
8522 | 8553 | "required" : [ "plugin_kind", "plugin_name", "plugin_team" ]
|
8523 | 8554 | },
|
| 8555 | + "ConnectorAuthRequestOAuth" : { |
| 8556 | + "additionalProperties" : false, |
| 8557 | + "description" : "OAuth connector authentication request to start the authentication process", |
| 8558 | + "properties" : { |
| 8559 | + "plugin_team" : { |
| 8560 | + "description" : "Team that owns the plugin we are authenticating the connector for", |
| 8561 | + "example" : "cloudquery", |
| 8562 | + "type" : "string" |
| 8563 | + }, |
| 8564 | + "plugin_kind" : { |
| 8565 | + "description" : "Kind of the plugin", |
| 8566 | + "example" : "source", |
| 8567 | + "type" : "string" |
| 8568 | + }, |
| 8569 | + "plugin_name" : { |
| 8570 | + "description" : "Name of the plugin", |
| 8571 | + "example" : "googleanalytics", |
| 8572 | + "type" : "string" |
| 8573 | + }, |
| 8574 | + "base_url" : { |
| 8575 | + "description" : "Base of the URL the callback url will be constructed from", |
| 8576 | + "example" : "https://cloud.cloudquery.io/oauth", |
| 8577 | + "type" : "string", |
| 8578 | + "x-go-name" : "BaseURL" |
| 8579 | + } |
| 8580 | + }, |
| 8581 | + "required" : [ "base_url", "plugin_kind", "plugin_name", "plugin_team" ] |
| 8582 | + }, |
8524 | 8583 | "ConnectorAuthResponseAWS" : {
|
8525 | 8584 | "additionalProperties" : false,
|
8526 | 8585 | "description" : "AWS connector authentication response to start the authentication process",
|
|
8551 | 8610 | },
|
8552 | 8611 | "required" : [ "redirect_url", "role_template_url", "suggested_external_id", "suggested_policy_arns" ]
|
8553 | 8612 | },
|
| 8613 | + "ConnectorAuthResponseOAuth" : { |
| 8614 | + "additionalProperties" : false, |
| 8615 | + "description" : "OAuth connector authentication response to start the authentication process", |
| 8616 | + "properties" : { |
| 8617 | + "redirect_url" : { |
| 8618 | + "description" : "URL to redirect the user to, to authenticate", |
| 8619 | + "type" : "string", |
| 8620 | + "x-go-name" : "RedirectURL" |
| 8621 | + } |
| 8622 | + }, |
| 8623 | + "required" : [ "redirect_url" ] |
| 8624 | + }, |
8554 | 8625 | "ConnectorAuthFinishRequestAWS" : {
|
8555 | 8626 | "additionalProperties" : false,
|
8556 | 8627 | "description" : "AWS connector authentication request, filled in after the user has authenticated through AWS",
|
|
8568 | 8639 | },
|
8569 | 8640 | "required" : [ "role_arn" ]
|
8570 | 8641 | },
|
| 8642 | + "ConnectorAuthFinishRequestOAuth" : { |
| 8643 | + "additionalProperties" : false, |
| 8644 | + "description" : "OAuth connector authentication request, filled in after the user has authenticated through OAuth", |
| 8645 | + "properties" : { |
| 8646 | + "auth_code" : { |
| 8647 | + "description" : "Auth code received from the OAuth provider", |
| 8648 | + "type" : "string" |
| 8649 | + }, |
| 8650 | + "state" : { |
| 8651 | + "description" : "State value received from the OAuth provider", |
| 8652 | + "type" : "string" |
| 8653 | + } |
| 8654 | + }, |
| 8655 | + "required" : [ "auth_code" ] |
| 8656 | + }, |
8571 | 8657 | "ListPluginNotificationRequests_200_response" : {
|
8572 | 8658 | "properties" : {
|
8573 | 8659 | "items" : {
|
|
9304 | 9390 | "properties" : {
|
9305 | 9391 | "aws" : {
|
9306 | 9392 | "$ref" : "#/components/schemas/ConnectorCredentialsResponseAWS"
|
| 9393 | + }, |
| 9394 | + "oauth" : { |
| 9395 | + "$ref" : "#/components/schemas/ConnectorCredentialsResponseOAuth" |
9307 | 9396 | }
|
9308 | 9397 | }
|
9309 | 9398 | },
|
|
9357 | 9446 | "properties" : {
|
9358 | 9447 | "aws" : {
|
9359 | 9448 | "$ref" : "#/components/schemas/ConnectorAuthRequestAWS"
|
| 9449 | + }, |
| 9450 | + "oauth" : { |
| 9451 | + "$ref" : "#/components/schemas/ConnectorAuthRequestOAuth" |
9360 | 9452 | }
|
9361 | 9453 | }
|
9362 | 9454 | },
|
9363 | 9455 | "AuthenticateConnector_200_response" : {
|
9364 | 9456 | "properties" : {
|
9365 | 9457 | "aws" : {
|
9366 | 9458 | "$ref" : "#/components/schemas/ConnectorAuthResponseAWS"
|
| 9459 | + }, |
| 9460 | + "oauth" : { |
| 9461 | + "$ref" : "#/components/schemas/ConnectorAuthResponseOAuth" |
9367 | 9462 | }
|
9368 | 9463 | }
|
9369 | 9464 | },
|
9370 | 9465 | "AuthenticateConnectorFinish_request" : {
|
9371 | 9466 | "properties" : {
|
9372 | 9467 | "aws" : {
|
9373 | 9468 | "$ref" : "#/components/schemas/ConnectorAuthFinishRequestAWS"
|
| 9469 | + }, |
| 9470 | + "oauth" : { |
| 9471 | + "$ref" : "#/components/schemas/ConnectorAuthFinishRequestOAuth" |
9374 | 9472 | }
|
9375 | 9473 | }
|
9376 | 9474 | },
|
|
0 commit comments