@superblocksteam/types 0.1859.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/agent/v1/index.d.ts +2 -0
- package/dist/src/agent/v1/index.d.ts.map +1 -0
- package/dist/src/agent/v1/index.js +18 -0
- package/dist/src/agent/v1/index.js.map +1 -0
- package/dist/src/agent/v1/service_pb.d.ts +398 -0
- package/dist/src/agent/v1/service_pb.d.ts.map +1 -0
- package/dist/src/agent/v1/service_pb.js +608 -0
- package/dist/src/agent/v1/service_pb.js.map +1 -0
- package/dist/src/ai/v1/ai_pb.d.ts +592 -0
- package/dist/src/ai/v1/ai_pb.d.ts.map +1 -0
- package/dist/src/ai/v1/ai_pb.js +775 -0
- package/dist/src/ai/v1/ai_pb.js.map +1 -0
- package/dist/src/ai/v1/metadata_pb.d.ts +101 -0
- package/dist/src/ai/v1/metadata_pb.d.ts.map +1 -0
- package/dist/src/ai/v1/metadata_pb.js +57 -0
- package/dist/src/ai/v1/metadata_pb.js.map +1 -0
- package/dist/src/ai/v1/service_pb.d.ts +79 -0
- package/dist/src/ai/v1/service_pb.d.ts.map +1 -0
- package/dist/src/ai/v1/service_pb.js +132 -0
- package/dist/src/ai/v1/service_pb.js.map +1 -0
- package/dist/src/ai/v1/vector_pb.d.ts +32 -0
- package/dist/src/ai/v1/vector_pb.d.ts.map +1 -0
- package/dist/src/ai/v1/vector_pb.js +55 -0
- package/dist/src/ai/v1/vector_pb.js.map +1 -0
- package/dist/src/api/v1/api_pb.d.ts +1540 -0
- package/dist/src/api/v1/api_pb.d.ts.map +1 -0
- package/dist/src/api/v1/api_pb.js +1657 -0
- package/dist/src/api/v1/api_pb.js.map +1 -0
- package/dist/src/api/v1/blocks_pb.d.ts +109 -0
- package/dist/src/api/v1/blocks_pb.d.ts.map +1 -0
- package/dist/src/api/v1/blocks_pb.js +162 -0
- package/dist/src/api/v1/blocks_pb.js.map +1 -0
- package/dist/src/api/v1/event_pb.d.ts +431 -0
- package/dist/src/api/v1/event_pb.d.ts.map +1 -0
- package/dist/src/api/v1/event_pb.js +600 -0
- package/dist/src/api/v1/event_pb.js.map +1 -0
- package/dist/src/api/v1/index.d.ts +7 -0
- package/dist/src/api/v1/index.d.ts.map +1 -0
- package/dist/src/api/v1/index.js +23 -0
- package/dist/src/api/v1/index.js.map +1 -0
- package/dist/src/api/v1/integration_auth_service_pb.d.ts +195 -0
- package/dist/src/api/v1/integration_auth_service_pb.d.ts.map +1 -0
- package/dist/src/api/v1/integration_auth_service_pb.js +315 -0
- package/dist/src/api/v1/integration_auth_service_pb.js.map +1 -0
- package/dist/src/api/v1/requests_pb.d.ts +525 -0
- package/dist/src/api/v1/requests_pb.d.ts.map +1 -0
- package/dist/src/api/v1/requests_pb.js +693 -0
- package/dist/src/api/v1/requests_pb.js.map +1 -0
- package/dist/src/api/v1/service_pb.d.ts +1391 -0
- package/dist/src/api/v1/service_pb.d.ts.map +1 -0
- package/dist/src/api/v1/service_pb.js +2002 -0
- package/dist/src/api/v1/service_pb.js.map +1 -0
- package/dist/src/auth/v1/auth_pb.d.ts +75 -0
- package/dist/src/auth/v1/auth_pb.d.ts.map +1 -0
- package/dist/src/auth/v1/auth_pb.js +118 -0
- package/dist/src/auth/v1/auth_pb.js.map +1 -0
- package/dist/src/buf/validate/expression_pb.d.ts +133 -0
- package/dist/src/buf/validate/expression_pb.d.ts.map +1 -0
- package/dist/src/buf/validate/expression_pb.js +195 -0
- package/dist/src/buf/validate/expression_pb.js.map +1 -0
- package/dist/src/buf/validate/priv/private_pb.d.ts +49 -0
- package/dist/src/buf/validate/priv/private_pb.d.ts.map +1 -0
- package/dist/src/buf/validate/priv/private_pb.js +94 -0
- package/dist/src/buf/validate/priv/private_pb.js.map +1 -0
- package/dist/src/buf/validate/validate_pb.d.ts +3681 -0
- package/dist/src/buf/validate/validate_pb.d.ts.map +1 -0
- package/dist/src/buf/validate/validate_pb.js +2437 -0
- package/dist/src/buf/validate/validate_pb.js.map +1 -0
- package/dist/src/cache/v1/cache_pb.d.ts +80 -0
- package/dist/src/cache/v1/cache_pb.d.ts.map +1 -0
- package/dist/src/cache/v1/cache_pb.js +127 -0
- package/dist/src/cache/v1/cache_pb.js.map +1 -0
- package/dist/src/common/v1/api_pb.d.ts +79 -0
- package/dist/src/common/v1/api_pb.d.ts.map +1 -0
- package/dist/src/common/v1/api_pb.js +138 -0
- package/dist/src/common/v1/api_pb.js.map +1 -0
- package/dist/src/common/v1/common_pb.d.ts +124 -0
- package/dist/src/common/v1/common_pb.d.ts.map +1 -0
- package/dist/src/common/v1/common_pb.js +189 -0
- package/dist/src/common/v1/common_pb.js.map +1 -0
- package/dist/src/common/v1/errors_pb.d.ts +85 -0
- package/dist/src/common/v1/errors_pb.d.ts.map +1 -0
- package/dist/src/common/v1/errors_pb.js +124 -0
- package/dist/src/common/v1/errors_pb.js.map +1 -0
- package/dist/src/common/v1/health_pb.d.ts +77 -0
- package/dist/src/common/v1/health_pb.d.ts.map +1 -0
- package/dist/src/common/v1/health_pb.js +121 -0
- package/dist/src/common/v1/health_pb.js.map +1 -0
- package/dist/src/common/v1/index.d.ts +6 -0
- package/dist/src/common/v1/index.d.ts.map +1 -0
- package/dist/src/common/v1/index.js +22 -0
- package/dist/src/common/v1/index.js.map +1 -0
- package/dist/src/common/v1/language_pb.d.ts +506 -0
- package/dist/src/common/v1/language_pb.d.ts.map +1 -0
- package/dist/src/common/v1/language_pb.js +643 -0
- package/dist/src/common/v1/language_pb.js.map +1 -0
- package/dist/src/common/v1/plugin_pb.d.ts +135 -0
- package/dist/src/common/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/common/v1/plugin_pb.js +206 -0
- package/dist/src/common/v1/plugin_pb.js.map +1 -0
- package/dist/src/common/v1/utils_pb.d.ts +20 -0
- package/dist/src/common/v1/utils_pb.d.ts.map +1 -0
- package/dist/src/common/v1/utils_pb.js +40 -0
- package/dist/src/common/v1/utils_pb.js.map +1 -0
- package/dist/src/event/v1/cloudevent_pb.d.ts +170 -0
- package/dist/src/event/v1/cloudevent_pb.d.ts.map +1 -0
- package/dist/src/event/v1/cloudevent_pb.js +124 -0
- package/dist/src/event/v1/cloudevent_pb.js.map +1 -0
- package/dist/src/event/v1/event_pb.d.ts +165 -0
- package/dist/src/event/v1/event_pb.d.ts.map +1 -0
- package/dist/src/event/v1/event_pb.js +232 -0
- package/dist/src/event/v1/event_pb.js.map +1 -0
- package/dist/src/event/v1/service_pb.d.ts +62 -0
- package/dist/src/event/v1/service_pb.d.ts.map +1 -0
- package/dist/src/event/v1/service_pb.js +112 -0
- package/dist/src/event/v1/service_pb.js.map +1 -0
- package/dist/src/event/v2/cloudevent_pb.d.ts +170 -0
- package/dist/src/event/v2/cloudevent_pb.d.ts.map +1 -0
- package/dist/src/event/v2/cloudevent_pb.js +124 -0
- package/dist/src/event/v2/cloudevent_pb.js.map +1 -0
- package/dist/src/google/api/http_pb.d.ts +454 -0
- package/dist/src/google/api/http_pb.d.ts.map +1 -0
- package/dist/src/google/api/http_pb.js +467 -0
- package/dist/src/google/api/http_pb.js.map +1 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +25 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/intake/v1/logs_pb.d.ts +20 -0
- package/dist/src/intake/v1/logs_pb.d.ts.map +1 -0
- package/dist/src/intake/v1/logs_pb.js +40 -0
- package/dist/src/intake/v1/logs_pb.js.map +1 -0
- package/dist/src/integration/v1/service_pb.d.ts +174 -0
- package/dist/src/integration/v1/service_pb.d.ts.map +1 -0
- package/dist/src/integration/v1/service_pb.js +274 -0
- package/dist/src/integration/v1/service_pb.js.map +1 -0
- package/dist/src/kafka/v1/index.d.ts +2 -0
- package/dist/src/kafka/v1/index.d.ts.map +1 -0
- package/dist/src/kafka/v1/index.js +28 -0
- package/dist/src/kafka/v1/index.js.map +1 -0
- package/dist/src/kafka/v1/kafka_pb.d.ts +66 -0
- package/dist/src/kafka/v1/kafka_pb.d.ts.map +1 -0
- package/dist/src/kafka/v1/kafka_pb.js +96 -0
- package/dist/src/kafka/v1/kafka_pb.js.map +1 -0
- package/dist/src/plugins/adls/v1/plugin_pb.d.ts +305 -0
- package/dist/src/plugins/adls/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/adls/v1/plugin_pb.js +435 -0
- package/dist/src/plugins/adls/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/athena/v1/plugin_pb.d.ts +91 -0
- package/dist/src/plugins/athena/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/athena/v1/plugin_pb.js +141 -0
- package/dist/src/plugins/athena/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/bigquery/v1/plugin_pb.d.ts +119 -0
- package/dist/src/plugins/bigquery/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/bigquery/v1/plugin_pb.js +193 -0
- package/dist/src/plugins/bigquery/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/cockroachdb/v1/plugin_pb.d.ts +110 -0
- package/dist/src/plugins/cockroachdb/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/cockroachdb/v1/plugin_pb.js +172 -0
- package/dist/src/plugins/cockroachdb/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/common/v1/auth_pb.d.ts +514 -0
- package/dist/src/plugins/common/v1/auth_pb.d.ts.map +1 -0
- package/dist/src/plugins/common/v1/auth_pb.js +711 -0
- package/dist/src/plugins/common/v1/auth_pb.js.map +1 -0
- package/dist/src/plugins/common/v1/metadata_pb.d.ts +96 -0
- package/dist/src/plugins/common/v1/metadata_pb.d.ts.map +1 -0
- package/dist/src/plugins/common/v1/metadata_pb.js +164 -0
- package/dist/src/plugins/common/v1/metadata_pb.js.map +1 -0
- package/dist/src/plugins/common/v1/plugin_pb.d.ts +294 -0
- package/dist/src/plugins/common/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/common/v1/plugin_pb.js +452 -0
- package/dist/src/plugins/common/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/cosmosdb/v1/plugin_pb.d.ts +373 -0
- package/dist/src/plugins/cosmosdb/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/cosmosdb/v1/plugin_pb.js +525 -0
- package/dist/src/plugins/cosmosdb/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/couchbase/v1/plugin_pb.d.ts +259 -0
- package/dist/src/plugins/couchbase/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/couchbase/v1/plugin_pb.js +395 -0
- package/dist/src/plugins/couchbase/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/custom/v1/plugin_pb.d.ts +32 -0
- package/dist/src/plugins/custom/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/custom/v1/plugin_pb.js +54 -0
- package/dist/src/plugins/custom/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/databricks/v1/plugin_pb.d.ts +117 -0
- package/dist/src/plugins/databricks/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/databricks/v1/plugin_pb.js +171 -0
- package/dist/src/plugins/databricks/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/dynamodb/v1/plugin_pb.d.ts +194 -0
- package/dist/src/plugins/dynamodb/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/dynamodb/v1/plugin_pb.js +316 -0
- package/dist/src/plugins/dynamodb/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/email/v1/plugin_pb.d.ts +65 -0
- package/dist/src/plugins/email/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/email/v1/plugin_pb.js +106 -0
- package/dist/src/plugins/email/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/gcs/v1/plugin_pb.d.ts +147 -0
- package/dist/src/plugins/gcs/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/gcs/v1/plugin_pb.js +228 -0
- package/dist/src/plugins/gcs/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/graphql/v1/plugin_pb.d.ts +70 -0
- package/dist/src/plugins/graphql/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/graphql/v1/plugin_pb.js +111 -0
- package/dist/src/plugins/graphql/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/gsheets/v1/plugin_pb.d.ts +123 -0
- package/dist/src/plugins/gsheets/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/gsheets/v1/plugin_pb.js +187 -0
- package/dist/src/plugins/gsheets/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/index.d.ts +19 -0
- package/dist/src/plugins/index.d.ts.map +1 -0
- package/dist/src/plugins/index.js +45 -0
- package/dist/src/plugins/index.js.map +1 -0
- package/dist/src/plugins/javascript/v1/plugin_pb.d.ts +41 -0
- package/dist/src/plugins/javascript/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/javascript/v1/plugin_pb.js +76 -0
- package/dist/src/plugins/javascript/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/kafka/v1/plugin_pb.d.ts +521 -0
- package/dist/src/plugins/kafka/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/kafka/v1/plugin_pb.js +788 -0
- package/dist/src/plugins/kafka/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/kinesis/v1/plugin_pb.d.ts +234 -0
- package/dist/src/plugins/kinesis/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/kinesis/v1/plugin_pb.js +351 -0
- package/dist/src/plugins/kinesis/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/mariadb/v1/plugin_pb.d.ts +110 -0
- package/dist/src/plugins/mariadb/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/mariadb/v1/plugin_pb.js +172 -0
- package/dist/src/plugins/mariadb/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/mongodb/v1/plugin_pb.d.ts +100 -0
- package/dist/src/plugins/mongodb/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/mongodb/v1/plugin_pb.js +149 -0
- package/dist/src/plugins/mongodb/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/mssql/v1/plugin_pb.d.ts +131 -0
- package/dist/src/plugins/mssql/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/mssql/v1/plugin_pb.js +208 -0
- package/dist/src/plugins/mssql/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/mysql/v1/plugin_pb.d.ts +131 -0
- package/dist/src/plugins/mysql/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/mysql/v1/plugin_pb.js +208 -0
- package/dist/src/plugins/mysql/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/ocr/v1/plugin_pb.d.ts +28 -0
- package/dist/src/plugins/ocr/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/ocr/v1/plugin_pb.js +50 -0
- package/dist/src/plugins/ocr/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/openai/v1/plugin_pb.d.ts +264 -0
- package/dist/src/plugins/openai/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/openai/v1/plugin_pb.js +373 -0
- package/dist/src/plugins/openai/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/oracledb/v1/plugin_pb.d.ts +86 -0
- package/dist/src/plugins/oracledb/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/oracledb/v1/plugin_pb.js +132 -0
- package/dist/src/plugins/oracledb/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/pinecone/v1/plugin_pb.d.ts +158 -0
- package/dist/src/plugins/pinecone/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/pinecone/v1/plugin_pb.js +218 -0
- package/dist/src/plugins/pinecone/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/postgresql/v1/plugin_pb.d.ts +131 -0
- package/dist/src/plugins/postgresql/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/postgresql/v1/plugin_pb.js +208 -0
- package/dist/src/plugins/postgresql/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/python/v1/plugin_pb.d.ts +41 -0
- package/dist/src/plugins/python/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/python/v1/plugin_pb.js +76 -0
- package/dist/src/plugins/python/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/redis/v1/plugin_pb.d.ts +1136 -0
- package/dist/src/plugins/redis/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/redis/v1/plugin_pb.js +1552 -0
- package/dist/src/plugins/redis/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/redshift/v1/plugin_pb.d.ts +119 -0
- package/dist/src/plugins/redshift/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/redshift/v1/plugin_pb.js +193 -0
- package/dist/src/plugins/redshift/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/restapi/v1/plugin_pb.d.ts +77 -0
- package/dist/src/plugins/restapi/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/restapi/v1/plugin_pb.js +110 -0
- package/dist/src/plugins/restapi/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/restapiintegration/v1/plugin_pb.d.ts +99 -0
- package/dist/src/plugins/restapiintegration/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/restapiintegration/v1/plugin_pb.js +137 -0
- package/dist/src/plugins/restapiintegration/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/rockset/v1/plugin_pb.d.ts +123 -0
- package/dist/src/plugins/rockset/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/rockset/v1/plugin_pb.js +198 -0
- package/dist/src/plugins/rockset/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/s3/v1/plugin_pb.d.ts +168 -0
- package/dist/src/plugins/s3/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/s3/v1/plugin_pb.js +263 -0
- package/dist/src/plugins/s3/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/salesforce/v1/plugin_pb.d.ts +293 -0
- package/dist/src/plugins/salesforce/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/salesforce/v1/plugin_pb.js +429 -0
- package/dist/src/plugins/salesforce/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/smtp/v1/plugin_pb.d.ts +96 -0
- package/dist/src/plugins/smtp/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/smtp/v1/plugin_pb.js +144 -0
- package/dist/src/plugins/smtp/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/snowflake/v1/plugin_pb.d.ts +119 -0
- package/dist/src/plugins/snowflake/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/snowflake/v1/plugin_pb.js +193 -0
- package/dist/src/plugins/snowflake/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/workflow/v1/plugin_pb.d.ts +58 -0
- package/dist/src/plugins/workflow/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/workflow/v1/plugin_pb.js +92 -0
- package/dist/src/plugins/workflow/v1/plugin_pb.js.map +1 -0
- package/dist/src/plugins/workflow/v2/plugin_pb.d.ts +25 -0
- package/dist/src/plugins/workflow/v2/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/workflow/v2/plugin_pb.js +46 -0
- package/dist/src/plugins/workflow/v2/plugin_pb.js.map +1 -0
- package/dist/src/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +1388 -0
- package/dist/src/protoc-gen-openapiv2/options/openapiv2_pb.d.ts.map +1 -0
- package/dist/src/protoc-gen-openapiv2/options/openapiv2_pb.js +1772 -0
- package/dist/src/protoc-gen-openapiv2/options/openapiv2_pb.js.map +1 -0
- package/dist/src/secrets/v1/index.d.ts +2 -0
- package/dist/src/secrets/v1/index.d.ts.map +1 -0
- package/dist/src/secrets/v1/index.js +28 -0
- package/dist/src/secrets/v1/index.js.map +1 -0
- package/dist/src/secrets/v1/secrets_pb.d.ts +344 -0
- package/dist/src/secrets/v1/secrets_pb.d.ts.map +1 -0
- package/dist/src/secrets/v1/secrets_pb.js +483 -0
- package/dist/src/secrets/v1/secrets_pb.js.map +1 -0
- package/dist/src/secrets/v1/store_pb.d.ts +98 -0
- package/dist/src/secrets/v1/store_pb.d.ts.map +1 -0
- package/dist/src/secrets/v1/store_pb.js +166 -0
- package/dist/src/secrets/v1/store_pb.js.map +1 -0
- package/dist/src/security/v1/index.d.ts +3 -0
- package/dist/src/security/v1/index.d.ts.map +1 -0
- package/dist/src/security/v1/index.js +19 -0
- package/dist/src/security/v1/index.js.map +1 -0
- package/dist/src/security/v1/requests_pb.d.ts +135 -0
- package/dist/src/security/v1/requests_pb.d.ts.map +1 -0
- package/dist/src/security/v1/requests_pb.js +214 -0
- package/dist/src/security/v1/requests_pb.js.map +1 -0
- package/dist/src/security/v1/service_pb.d.ts +192 -0
- package/dist/src/security/v1/service_pb.d.ts.map +1 -0
- package/dist/src/security/v1/service_pb.js +270 -0
- package/dist/src/security/v1/service_pb.js.map +1 -0
- package/dist/src/store/v1/service_pb.d.ts +81 -0
- package/dist/src/store/v1/service_pb.d.ts.map +1 -0
- package/dist/src/store/v1/service_pb.js +145 -0
- package/dist/src/store/v1/service_pb.js.map +1 -0
- package/dist/src/store/v1/store_pb.d.ts +42 -0
- package/dist/src/store/v1/store_pb.d.ts.map +1 -0
- package/dist/src/store/v1/store_pb.js +77 -0
- package/dist/src/store/v1/store_pb.js.map +1 -0
- package/dist/src/superblocks/v1/options_pb.d.ts +37 -0
- package/dist/src/superblocks/v1/options_pb.d.ts.map +1 -0
- package/dist/src/superblocks/v1/options_pb.js +71 -0
- package/dist/src/superblocks/v1/options_pb.js.map +1 -0
- package/dist/src/syncer/v1/index.d.ts +2 -0
- package/dist/src/syncer/v1/index.d.ts.map +1 -0
- package/dist/src/syncer/v1/index.js +28 -0
- package/dist/src/syncer/v1/index.js.map +1 -0
- package/dist/src/syncer/v1/service_pb.d.ts +186 -0
- package/dist/src/syncer/v1/service_pb.d.ts.map +1 -0
- package/dist/src/syncer/v1/service_pb.js +320 -0
- package/dist/src/syncer/v1/service_pb.js.map +1 -0
- package/dist/src/syncer/v1/syncer_pb.d.ts +41 -0
- package/dist/src/syncer/v1/syncer_pb.d.ts.map +1 -0
- package/dist/src/syncer/v1/syncer_pb.js +66 -0
- package/dist/src/syncer/v1/syncer_pb.js.map +1 -0
- package/dist/src/transport/v1/transport_pb.d.ts +614 -0
- package/dist/src/transport/v1/transport_pb.d.ts.map +1 -0
- package/dist/src/transport/v1/transport_pb.js +928 -0
- package/dist/src/transport/v1/transport_pb.js.map +1 -0
- package/dist/src/utils/v1/index.d.ts +2 -0
- package/dist/src/utils/v1/index.d.ts.map +1 -0
- package/dist/src/utils/v1/index.js +28 -0
- package/dist/src/utils/v1/index.js.map +1 -0
- package/dist/src/utils/v1/utils_pb.d.ts +45 -0
- package/dist/src/utils/v1/utils_pb.d.ts.map +1 -0
- package/dist/src/utils/v1/utils_pb.js +74 -0
- package/dist/src/utils/v1/utils_pb.js.map +1 -0
- package/dist/src/validate/validate_pb.d.ts +1794 -0
- package/dist/src/validate/validate_pb.d.ts.map +1 -0
- package/dist/src/validate/validate_pb.js +2044 -0
- package/dist/src/validate/validate_pb.js.map +1 -0
- package/dist/src/worker/v1/step_executor_pb.d.ts +23 -0
- package/dist/src/worker/v1/step_executor_pb.d.ts.map +1 -0
- package/dist/src/worker/v1/step_executor_pb.js +43 -0
- package/dist/src/worker/v1/step_executor_pb.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +18 -0
- package/src/agent/v1/index.ts +1 -0
- package/src/agent/v1/service_pb.ts +716 -0
- package/src/ai/v1/ai_pb.ts +977 -0
- package/src/ai/v1/metadata_pb.ts +134 -0
- package/src/ai/v1/service_pb.ts +154 -0
- package/src/ai/v1/vector_pb.ts +63 -0
- package/src/api/v1/api_pb.ts +2493 -0
- package/src/api/v1/blocks_pb.ts +182 -0
- package/src/api/v1/event_pb.ts +735 -0
- package/src/api/v1/index.ts +6 -0
- package/src/api/v1/integration_auth_service_pb.ts +372 -0
- package/src/api/v1/requests_pb.ts +906 -0
- package/src/api/v1/service_pb.ts +2464 -0
- package/src/auth/v1/auth_pb.ts +138 -0
- package/src/buf/validate/expression_pb.ts +222 -0
- package/src/buf/validate/priv/private_pb.ts +112 -0
- package/src/buf/validate/validate_pb.ts +4357 -0
- package/src/cache/v1/cache_pb.ts +146 -0
- package/src/common/v1/api_pb.ts +162 -0
- package/src/common/v1/common_pb.ts +220 -0
- package/src/common/v1/errors_pb.ts +143 -0
- package/src/common/v1/health_pb.ts +142 -0
- package/src/common/v1/index.ts +5 -0
- package/src/common/v1/language_pb.ts +765 -0
- package/src/common/v1/plugin_pb.ts +242 -0
- package/src/common/v1/utils_pb.ts +45 -0
- package/src/event/v1/cloudevent_pb.ts +225 -0
- package/src/event/v1/event_pb.ts +264 -0
- package/src/event/v1/service_pb.ts +131 -0
- package/src/event/v2/cloudevent_pb.ts +225 -0
- package/src/google/api/http_pb.ts +547 -0
- package/src/index.ts +8 -0
- package/src/intake/v1/logs_pb.ts +45 -0
- package/src/integration/v1/service_pb.ts +322 -0
- package/src/kafka/v1/index.ts +1 -0
- package/src/kafka/v1/kafka_pb.ts +118 -0
- package/src/plugins/adls/v1/plugin_pb.ts +562 -0
- package/src/plugins/athena/v1/plugin_pb.ts +163 -0
- package/src/plugins/bigquery/v1/plugin_pb.ts +228 -0
- package/src/plugins/cockroachdb/v1/plugin_pb.ts +203 -0
- package/src/plugins/common/v1/auth_pb.ts +918 -0
- package/src/plugins/common/v1/metadata_pb.ts +193 -0
- package/src/plugins/common/v1/plugin_pb.ts +527 -0
- package/src/plugins/cosmosdb/v1/plugin_pb.ts +670 -0
- package/src/plugins/couchbase/v1/plugin_pb.ts +492 -0
- package/src/plugins/custom/v1/plugin_pb.ts +61 -0
- package/src/plugins/databricks/v1/plugin_pb.ts +197 -0
- package/src/plugins/dynamodb/v1/plugin_pb.ts +375 -0
- package/src/plugins/email/v1/plugin_pb.ts +124 -0
- package/src/plugins/gcs/v1/plugin_pb.ts +270 -0
- package/src/plugins/graphql/v1/plugin_pb.ts +129 -0
- package/src/plugins/gsheets/v1/plugin_pb.ts +220 -0
- package/src/plugins/index.ts +19 -0
- package/src/plugins/javascript/v1/plugin_pb.ts +88 -0
- package/src/plugins/kafka/v1/plugin_pb.ts +921 -0
- package/src/plugins/kinesis/v1/plugin_pb.ts +406 -0
- package/src/plugins/mariadb/v1/plugin_pb.ts +203 -0
- package/src/plugins/mongodb/v1/plugin_pb.ts +175 -0
- package/src/plugins/mssql/v1/plugin_pb.ts +246 -0
- package/src/plugins/mysql/v1/plugin_pb.ts +246 -0
- package/src/plugins/ocr/v1/plugin_pb.ts +57 -0
- package/src/plugins/openai/v1/plugin_pb.ts +443 -0
- package/src/plugins/oracledb/v1/plugin_pb.ts +155 -0
- package/src/plugins/pinecone/v1/plugin_pb.ts +288 -0
- package/src/plugins/postgresql/v1/plugin_pb.ts +246 -0
- package/src/plugins/python/v1/plugin_pb.ts +88 -0
- package/src/plugins/redis/v1/plugin_pb.ts +2073 -0
- package/src/plugins/redshift/v1/plugin_pb.ts +228 -0
- package/src/plugins/restapi/v1/plugin_pb.ts +128 -0
- package/src/plugins/restapiintegration/v1/plugin_pb.ts +160 -0
- package/src/plugins/rockset/v1/plugin_pb.ts +234 -0
- package/src/plugins/s3/v1/plugin_pb.ts +311 -0
- package/src/plugins/salesforce/v1/plugin_pb.ts +516 -0
- package/src/plugins/smtp/v1/plugin_pb.ts +169 -0
- package/src/plugins/snowflake/v1/plugin_pb.ts +228 -0
- package/src/plugins/workflow/v1/plugin_pb.ts +107 -0
- package/src/plugins/workflow/v2/plugin_pb.ts +52 -0
- package/src/protoc-gen-openapiv2/options/openapiv2_pb.ts +1995 -0
- package/src/secrets/v1/index.ts +1 -0
- package/src/secrets/v1/secrets_pb.ts +609 -0
- package/src/secrets/v1/store_pb.ts +195 -0
- package/src/security/v1/index.ts +2 -0
- package/src/security/v1/requests_pb.ts +249 -0
- package/src/security/v1/service_pb.ts +350 -0
- package/src/store/v1/service_pb.ts +170 -0
- package/src/store/v1/store_pb.ts +89 -0
- package/src/superblocks/v1/options_pb.ts +82 -0
- package/src/syncer/v1/index.ts +1 -0
- package/src/syncer/v1/service_pb.ts +379 -0
- package/src/syncer/v1/syncer_pb.ts +76 -0
- package/src/transport/v1/transport_pb.ts +1099 -0
- package/src/utils/v1/index.ts +1 -0
- package/src/utils/v1/utils_pb.ts +83 -0
- package/src/validate/validate_pb.ts +2574 -0
- package/src/worker/v1/step_executor_pb.ts +48 -0
|
@@ -0,0 +1,1995 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file protoc-gen-openapiv2/options/openapiv2.proto (package grpc.gateway.protoc_gen_openapiv2.options, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3, protoInt64, Value } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Scheme describes the schemes supported by the OpenAPI Swagger
|
|
11
|
+
* and Operation objects.
|
|
12
|
+
*
|
|
13
|
+
* @generated from enum grpc.gateway.protoc_gen_openapiv2.options.Scheme
|
|
14
|
+
*/
|
|
15
|
+
export enum Scheme {
|
|
16
|
+
/**
|
|
17
|
+
* @generated from enum value: UNKNOWN = 0;
|
|
18
|
+
*/
|
|
19
|
+
UNKNOWN = 0,
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @generated from enum value: HTTP = 1;
|
|
23
|
+
*/
|
|
24
|
+
HTTP = 1,
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @generated from enum value: HTTPS = 2;
|
|
28
|
+
*/
|
|
29
|
+
HTTPS = 2,
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum value: WS = 3;
|
|
33
|
+
*/
|
|
34
|
+
WS = 3,
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum value: WSS = 4;
|
|
38
|
+
*/
|
|
39
|
+
WSS = 4,
|
|
40
|
+
}
|
|
41
|
+
// Retrieve enum metadata with: proto3.getEnumType(Scheme)
|
|
42
|
+
proto3.util.setEnumType(Scheme, "grpc.gateway.protoc_gen_openapiv2.options.Scheme", [
|
|
43
|
+
{ no: 0, name: "UNKNOWN" },
|
|
44
|
+
{ no: 1, name: "HTTP" },
|
|
45
|
+
{ no: 2, name: "HTTPS" },
|
|
46
|
+
{ no: 3, name: "WS" },
|
|
47
|
+
{ no: 4, name: "WSS" },
|
|
48
|
+
]);
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* `Swagger` is a representation of OpenAPI v2 specification's Swagger object.
|
|
52
|
+
*
|
|
53
|
+
* See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#swaggerObject
|
|
54
|
+
*
|
|
55
|
+
* Example:
|
|
56
|
+
*
|
|
57
|
+
* option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
|
|
58
|
+
* info: {
|
|
59
|
+
* title: "Echo API";
|
|
60
|
+
* version: "1.0";
|
|
61
|
+
* description: "";
|
|
62
|
+
* contact: {
|
|
63
|
+
* name: "gRPC-Gateway project";
|
|
64
|
+
* url: "https://github.com/grpc-ecosystem/grpc-gateway";
|
|
65
|
+
* email: "none@example.com";
|
|
66
|
+
* };
|
|
67
|
+
* license: {
|
|
68
|
+
* name: "BSD 3-Clause License";
|
|
69
|
+
* url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE";
|
|
70
|
+
* };
|
|
71
|
+
* };
|
|
72
|
+
* schemes: HTTPS;
|
|
73
|
+
* consumes: "application/json";
|
|
74
|
+
* produces: "application/json";
|
|
75
|
+
* };
|
|
76
|
+
*
|
|
77
|
+
*
|
|
78
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.Swagger
|
|
79
|
+
*/
|
|
80
|
+
export class Swagger extends Message<Swagger> {
|
|
81
|
+
/**
|
|
82
|
+
* Specifies the OpenAPI Specification version being used. It can be
|
|
83
|
+
* used by the OpenAPI UI and other clients to interpret the API listing. The
|
|
84
|
+
* value MUST be "2.0".
|
|
85
|
+
*
|
|
86
|
+
* @generated from field: string swagger = 1;
|
|
87
|
+
*/
|
|
88
|
+
swagger = "";
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Provides metadata about the API. The metadata can be used by the
|
|
92
|
+
* clients if needed.
|
|
93
|
+
*
|
|
94
|
+
* @generated from field: grpc.gateway.protoc_gen_openapiv2.options.Info info = 2;
|
|
95
|
+
*/
|
|
96
|
+
info?: Info;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The host (name or ip) serving the API. This MUST be the host only and does
|
|
100
|
+
* not include the scheme nor sub-paths. It MAY include a port. If the host is
|
|
101
|
+
* not included, the host serving the documentation is to be used (including
|
|
102
|
+
* the port). The host does not support path templating.
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: string host = 3;
|
|
105
|
+
*/
|
|
106
|
+
host = "";
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The base path on which the API is served, which is relative to the host. If
|
|
110
|
+
* it is not included, the API is served directly under the host. The value
|
|
111
|
+
* MUST start with a leading slash (/). The basePath does not support path
|
|
112
|
+
* templating.
|
|
113
|
+
* Note that using `base_path` does not change the endpoint paths that are
|
|
114
|
+
* generated in the resulting OpenAPI file. If you wish to use `base_path`
|
|
115
|
+
* with relatively generated OpenAPI paths, the `base_path` prefix must be
|
|
116
|
+
* manually removed from your `google.api.http` paths and your code changed to
|
|
117
|
+
* serve the API from the `base_path`.
|
|
118
|
+
*
|
|
119
|
+
* @generated from field: string base_path = 4;
|
|
120
|
+
*/
|
|
121
|
+
basePath = "";
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The transfer protocol of the API. Values MUST be from the list: "http",
|
|
125
|
+
* "https", "ws", "wss". If the schemes is not included, the default scheme to
|
|
126
|
+
* be used is the one used to access the OpenAPI definition itself.
|
|
127
|
+
*
|
|
128
|
+
* @generated from field: repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5;
|
|
129
|
+
*/
|
|
130
|
+
schemes: Scheme[] = [];
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* A list of MIME types the APIs can consume. This is global to all APIs but
|
|
134
|
+
* can be overridden on specific API calls. Value MUST be as described under
|
|
135
|
+
* Mime Types.
|
|
136
|
+
*
|
|
137
|
+
* @generated from field: repeated string consumes = 6;
|
|
138
|
+
*/
|
|
139
|
+
consumes: string[] = [];
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* A list of MIME types the APIs can produce. This is global to all APIs but
|
|
143
|
+
* can be overridden on specific API calls. Value MUST be as described under
|
|
144
|
+
* Mime Types.
|
|
145
|
+
*
|
|
146
|
+
* @generated from field: repeated string produces = 7;
|
|
147
|
+
*/
|
|
148
|
+
produces: string[] = [];
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* An object to hold responses that can be used across operations. This
|
|
152
|
+
* property does not define global responses for all operations.
|
|
153
|
+
*
|
|
154
|
+
* @generated from field: map<string, grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10;
|
|
155
|
+
*/
|
|
156
|
+
responses: { [key: string]: Response } = {};
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Security scheme definitions that can be used across the specification.
|
|
160
|
+
*
|
|
161
|
+
* @generated from field: grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11;
|
|
162
|
+
*/
|
|
163
|
+
securityDefinitions?: SecurityDefinitions;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* A declaration of which security schemes are applied for the API as a whole.
|
|
167
|
+
* The list of values describes alternative security schemes that can be used
|
|
168
|
+
* (that is, there is a logical OR between the security requirements).
|
|
169
|
+
* Individual operations can override this definition.
|
|
170
|
+
*
|
|
171
|
+
* @generated from field: repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12;
|
|
172
|
+
*/
|
|
173
|
+
security: SecurityRequirement[] = [];
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* A list of tags for API documentation control. Tags can be used for logical
|
|
177
|
+
* grouping of operations by resources or any other qualifier.
|
|
178
|
+
*
|
|
179
|
+
* @generated from field: repeated grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13;
|
|
180
|
+
*/
|
|
181
|
+
tags: Tag[] = [];
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Additional external documentation.
|
|
185
|
+
*
|
|
186
|
+
* @generated from field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14;
|
|
187
|
+
*/
|
|
188
|
+
externalDocs?: ExternalDocumentation;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Custom properties that start with "x-" such as "x-foo" used to describe
|
|
192
|
+
* extra functionality that is not covered by the standard OpenAPI Specification.
|
|
193
|
+
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
|
|
194
|
+
*
|
|
195
|
+
* @generated from field: map<string, google.protobuf.Value> extensions = 15;
|
|
196
|
+
*/
|
|
197
|
+
extensions: { [key: string]: Value } = {};
|
|
198
|
+
|
|
199
|
+
constructor(data?: PartialMessage<Swagger>) {
|
|
200
|
+
super();
|
|
201
|
+
proto3.util.initPartial(data, this);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
205
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.Swagger";
|
|
206
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
207
|
+
{ no: 1, name: "swagger", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
208
|
+
{ no: 2, name: "info", kind: "message", T: Info },
|
|
209
|
+
{ no: 3, name: "host", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
210
|
+
{ no: 4, name: "base_path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
211
|
+
{ no: 5, name: "schemes", kind: "enum", T: proto3.getEnumType(Scheme), repeated: true },
|
|
212
|
+
{ no: 6, name: "consumes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
213
|
+
{ no: 7, name: "produces", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
214
|
+
{ no: 10, name: "responses", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Response} },
|
|
215
|
+
{ no: 11, name: "security_definitions", kind: "message", T: SecurityDefinitions },
|
|
216
|
+
{ no: 12, name: "security", kind: "message", T: SecurityRequirement, repeated: true },
|
|
217
|
+
{ no: 13, name: "tags", kind: "message", T: Tag, repeated: true },
|
|
218
|
+
{ no: 14, name: "external_docs", kind: "message", T: ExternalDocumentation },
|
|
219
|
+
{ no: 15, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Value} },
|
|
220
|
+
]);
|
|
221
|
+
|
|
222
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Swagger {
|
|
223
|
+
return new Swagger().fromBinary(bytes, options);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Swagger {
|
|
227
|
+
return new Swagger().fromJson(jsonValue, options);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Swagger {
|
|
231
|
+
return new Swagger().fromJsonString(jsonString, options);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
static equals(a: Swagger | PlainMessage<Swagger> | undefined, b: Swagger | PlainMessage<Swagger> | undefined): boolean {
|
|
235
|
+
return proto3.util.equals(Swagger, a, b);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* `Operation` is a representation of OpenAPI v2 specification's Operation object.
|
|
241
|
+
*
|
|
242
|
+
* See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#operationObject
|
|
243
|
+
*
|
|
244
|
+
* Example:
|
|
245
|
+
*
|
|
246
|
+
* service EchoService {
|
|
247
|
+
* rpc Echo(SimpleMessage) returns (SimpleMessage) {
|
|
248
|
+
* option (google.api.http) = {
|
|
249
|
+
* get: "/v1/example/echo/{id}"
|
|
250
|
+
* };
|
|
251
|
+
*
|
|
252
|
+
* option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
|
253
|
+
* summary: "Get a message.";
|
|
254
|
+
* operation_id: "getMessage";
|
|
255
|
+
* tags: "echo";
|
|
256
|
+
* responses: {
|
|
257
|
+
* key: "200"
|
|
258
|
+
* value: {
|
|
259
|
+
* description: "OK";
|
|
260
|
+
* }
|
|
261
|
+
* }
|
|
262
|
+
* };
|
|
263
|
+
* }
|
|
264
|
+
* }
|
|
265
|
+
*
|
|
266
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.Operation
|
|
267
|
+
*/
|
|
268
|
+
export class Operation extends Message<Operation> {
|
|
269
|
+
/**
|
|
270
|
+
* A list of tags for API documentation control. Tags can be used for logical
|
|
271
|
+
* grouping of operations by resources or any other qualifier.
|
|
272
|
+
*
|
|
273
|
+
* @generated from field: repeated string tags = 1;
|
|
274
|
+
*/
|
|
275
|
+
tags: string[] = [];
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* A short summary of what the operation does. For maximum readability in the
|
|
279
|
+
* swagger-ui, this field SHOULD be less than 120 characters.
|
|
280
|
+
*
|
|
281
|
+
* @generated from field: string summary = 2;
|
|
282
|
+
*/
|
|
283
|
+
summary = "";
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* A verbose explanation of the operation behavior. GFM syntax can be used for
|
|
287
|
+
* rich text representation.
|
|
288
|
+
*
|
|
289
|
+
* @generated from field: string description = 3;
|
|
290
|
+
*/
|
|
291
|
+
description = "";
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Additional external documentation for this operation.
|
|
295
|
+
*
|
|
296
|
+
* @generated from field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4;
|
|
297
|
+
*/
|
|
298
|
+
externalDocs?: ExternalDocumentation;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Unique string used to identify the operation. The id MUST be unique among
|
|
302
|
+
* all operations described in the API. Tools and libraries MAY use the
|
|
303
|
+
* operationId to uniquely identify an operation, therefore, it is recommended
|
|
304
|
+
* to follow common programming naming conventions.
|
|
305
|
+
*
|
|
306
|
+
* @generated from field: string operation_id = 5;
|
|
307
|
+
*/
|
|
308
|
+
operationId = "";
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* A list of MIME types the operation can consume. This overrides the consumes
|
|
312
|
+
* definition at the OpenAPI Object. An empty value MAY be used to clear the
|
|
313
|
+
* global definition. Value MUST be as described under Mime Types.
|
|
314
|
+
*
|
|
315
|
+
* @generated from field: repeated string consumes = 6;
|
|
316
|
+
*/
|
|
317
|
+
consumes: string[] = [];
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* A list of MIME types the operation can produce. This overrides the produces
|
|
321
|
+
* definition at the OpenAPI Object. An empty value MAY be used to clear the
|
|
322
|
+
* global definition. Value MUST be as described under Mime Types.
|
|
323
|
+
*
|
|
324
|
+
* @generated from field: repeated string produces = 7;
|
|
325
|
+
*/
|
|
326
|
+
produces: string[] = [];
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* The list of possible responses as they are returned from executing this
|
|
330
|
+
* operation.
|
|
331
|
+
*
|
|
332
|
+
* @generated from field: map<string, grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9;
|
|
333
|
+
*/
|
|
334
|
+
responses: { [key: string]: Response } = {};
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* The transfer protocol for the operation. Values MUST be from the list:
|
|
338
|
+
* "http", "https", "ws", "wss". The value overrides the OpenAPI Object
|
|
339
|
+
* schemes definition.
|
|
340
|
+
*
|
|
341
|
+
* @generated from field: repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10;
|
|
342
|
+
*/
|
|
343
|
+
schemes: Scheme[] = [];
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Declares this operation to be deprecated. Usage of the declared operation
|
|
347
|
+
* should be refrained. Default value is false.
|
|
348
|
+
*
|
|
349
|
+
* @generated from field: bool deprecated = 11;
|
|
350
|
+
*/
|
|
351
|
+
deprecated = false;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* A declaration of which security schemes are applied for this operation. The
|
|
355
|
+
* list of values describes alternative security schemes that can be used
|
|
356
|
+
* (that is, there is a logical OR between the security requirements). This
|
|
357
|
+
* definition overrides any declared top-level security. To remove a top-level
|
|
358
|
+
* security declaration, an empty array can be used.
|
|
359
|
+
*
|
|
360
|
+
* @generated from field: repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12;
|
|
361
|
+
*/
|
|
362
|
+
security: SecurityRequirement[] = [];
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Custom properties that start with "x-" such as "x-foo" used to describe
|
|
366
|
+
* extra functionality that is not covered by the standard OpenAPI Specification.
|
|
367
|
+
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
|
|
368
|
+
*
|
|
369
|
+
* @generated from field: map<string, google.protobuf.Value> extensions = 13;
|
|
370
|
+
*/
|
|
371
|
+
extensions: { [key: string]: Value } = {};
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Custom parameters such as HTTP request headers.
|
|
375
|
+
* See: https://swagger.io/docs/specification/2-0/describing-parameters/
|
|
376
|
+
* and https://swagger.io/specification/v2/#parameter-object.
|
|
377
|
+
*
|
|
378
|
+
* @generated from field: grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14;
|
|
379
|
+
*/
|
|
380
|
+
parameters?: Parameters;
|
|
381
|
+
|
|
382
|
+
constructor(data?: PartialMessage<Operation>) {
|
|
383
|
+
super();
|
|
384
|
+
proto3.util.initPartial(data, this);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
388
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.Operation";
|
|
389
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
390
|
+
{ no: 1, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
391
|
+
{ no: 2, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
392
|
+
{ no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
393
|
+
{ no: 4, name: "external_docs", kind: "message", T: ExternalDocumentation },
|
|
394
|
+
{ no: 5, name: "operation_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
395
|
+
{ no: 6, name: "consumes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
396
|
+
{ no: 7, name: "produces", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
397
|
+
{ no: 9, name: "responses", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Response} },
|
|
398
|
+
{ no: 10, name: "schemes", kind: "enum", T: proto3.getEnumType(Scheme), repeated: true },
|
|
399
|
+
{ no: 11, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
400
|
+
{ no: 12, name: "security", kind: "message", T: SecurityRequirement, repeated: true },
|
|
401
|
+
{ no: 13, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Value} },
|
|
402
|
+
{ no: 14, name: "parameters", kind: "message", T: Parameters },
|
|
403
|
+
]);
|
|
404
|
+
|
|
405
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation {
|
|
406
|
+
return new Operation().fromBinary(bytes, options);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation {
|
|
410
|
+
return new Operation().fromJson(jsonValue, options);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation {
|
|
414
|
+
return new Operation().fromJsonString(jsonString, options);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
static equals(a: Operation | PlainMessage<Operation> | undefined, b: Operation | PlainMessage<Operation> | undefined): boolean {
|
|
418
|
+
return proto3.util.equals(Operation, a, b);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* `Parameters` is a representation of OpenAPI v2 specification's parameters object.
|
|
424
|
+
* Note: This technically breaks compatibility with the OpenAPI 2 definition structure as we only
|
|
425
|
+
* allow header parameters to be set here since we do not want users specifying custom non-header
|
|
426
|
+
* parameters beyond those inferred from the Protobuf schema.
|
|
427
|
+
* See: https://swagger.io/specification/v2/#parameter-object
|
|
428
|
+
*
|
|
429
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.Parameters
|
|
430
|
+
*/
|
|
431
|
+
export class Parameters extends Message<Parameters> {
|
|
432
|
+
/**
|
|
433
|
+
* `Headers` is one or more HTTP header parameter.
|
|
434
|
+
* See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
|
|
435
|
+
*
|
|
436
|
+
* @generated from field: repeated grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
|
|
437
|
+
*/
|
|
438
|
+
headers: HeaderParameter[] = [];
|
|
439
|
+
|
|
440
|
+
constructor(data?: PartialMessage<Parameters>) {
|
|
441
|
+
super();
|
|
442
|
+
proto3.util.initPartial(data, this);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
446
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.Parameters";
|
|
447
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
448
|
+
{ no: 1, name: "headers", kind: "message", T: HeaderParameter, repeated: true },
|
|
449
|
+
]);
|
|
450
|
+
|
|
451
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Parameters {
|
|
452
|
+
return new Parameters().fromBinary(bytes, options);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Parameters {
|
|
456
|
+
return new Parameters().fromJson(jsonValue, options);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Parameters {
|
|
460
|
+
return new Parameters().fromJsonString(jsonString, options);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
static equals(a: Parameters | PlainMessage<Parameters> | undefined, b: Parameters | PlainMessage<Parameters> | undefined): boolean {
|
|
464
|
+
return proto3.util.equals(Parameters, a, b);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* `HeaderParameter` a HTTP header parameter.
|
|
470
|
+
* See: https://swagger.io/specification/v2/#parameter-object
|
|
471
|
+
*
|
|
472
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter
|
|
473
|
+
*/
|
|
474
|
+
export class HeaderParameter extends Message<HeaderParameter> {
|
|
475
|
+
/**
|
|
476
|
+
* `Name` is the header name.
|
|
477
|
+
*
|
|
478
|
+
* @generated from field: string name = 1;
|
|
479
|
+
*/
|
|
480
|
+
name = "";
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* `Description` is a short description of the header.
|
|
484
|
+
*
|
|
485
|
+
* @generated from field: string description = 2;
|
|
486
|
+
*/
|
|
487
|
+
description = "";
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* `Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
|
|
491
|
+
* See: https://swagger.io/specification/v2/#parameterType.
|
|
492
|
+
*
|
|
493
|
+
* @generated from field: grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3;
|
|
494
|
+
*/
|
|
495
|
+
type = HeaderParameter_Type.UNKNOWN;
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* `Format` The extending format for the previously mentioned type.
|
|
499
|
+
*
|
|
500
|
+
* @generated from field: string format = 4;
|
|
501
|
+
*/
|
|
502
|
+
format = "";
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* `Required` indicates if the header is optional
|
|
506
|
+
*
|
|
507
|
+
* @generated from field: bool required = 5;
|
|
508
|
+
*/
|
|
509
|
+
required = false;
|
|
510
|
+
|
|
511
|
+
constructor(data?: PartialMessage<HeaderParameter>) {
|
|
512
|
+
super();
|
|
513
|
+
proto3.util.initPartial(data, this);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
517
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter";
|
|
518
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
519
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
520
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
521
|
+
{ no: 3, name: "type", kind: "enum", T: proto3.getEnumType(HeaderParameter_Type) },
|
|
522
|
+
{ no: 4, name: "format", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
523
|
+
{ no: 5, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
524
|
+
]);
|
|
525
|
+
|
|
526
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HeaderParameter {
|
|
527
|
+
return new HeaderParameter().fromBinary(bytes, options);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HeaderParameter {
|
|
531
|
+
return new HeaderParameter().fromJson(jsonValue, options);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HeaderParameter {
|
|
535
|
+
return new HeaderParameter().fromJsonString(jsonString, options);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
static equals(a: HeaderParameter | PlainMessage<HeaderParameter> | undefined, b: HeaderParameter | PlainMessage<HeaderParameter> | undefined): boolean {
|
|
539
|
+
return proto3.util.equals(HeaderParameter, a, b);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* `Type` is a a supported HTTP header type.
|
|
545
|
+
* See https://swagger.io/specification/v2/#parameterType.
|
|
546
|
+
*
|
|
547
|
+
* @generated from enum grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type
|
|
548
|
+
*/
|
|
549
|
+
export enum HeaderParameter_Type {
|
|
550
|
+
/**
|
|
551
|
+
* @generated from enum value: UNKNOWN = 0;
|
|
552
|
+
*/
|
|
553
|
+
UNKNOWN = 0,
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* @generated from enum value: STRING = 1;
|
|
557
|
+
*/
|
|
558
|
+
STRING = 1,
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* @generated from enum value: NUMBER = 2;
|
|
562
|
+
*/
|
|
563
|
+
NUMBER = 2,
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* @generated from enum value: INTEGER = 3;
|
|
567
|
+
*/
|
|
568
|
+
INTEGER = 3,
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* @generated from enum value: BOOLEAN = 4;
|
|
572
|
+
*/
|
|
573
|
+
BOOLEAN = 4,
|
|
574
|
+
}
|
|
575
|
+
// Retrieve enum metadata with: proto3.getEnumType(HeaderParameter_Type)
|
|
576
|
+
proto3.util.setEnumType(HeaderParameter_Type, "grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type", [
|
|
577
|
+
{ no: 0, name: "UNKNOWN" },
|
|
578
|
+
{ no: 1, name: "STRING" },
|
|
579
|
+
{ no: 2, name: "NUMBER" },
|
|
580
|
+
{ no: 3, name: "INTEGER" },
|
|
581
|
+
{ no: 4, name: "BOOLEAN" },
|
|
582
|
+
]);
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* `Header` is a representation of OpenAPI v2 specification's Header object.
|
|
586
|
+
*
|
|
587
|
+
* See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#headerObject
|
|
588
|
+
*
|
|
589
|
+
*
|
|
590
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.Header
|
|
591
|
+
*/
|
|
592
|
+
export class Header extends Message<Header> {
|
|
593
|
+
/**
|
|
594
|
+
* `Description` is a short description of the header.
|
|
595
|
+
*
|
|
596
|
+
* @generated from field: string description = 1;
|
|
597
|
+
*/
|
|
598
|
+
description = "";
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* The type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
|
|
602
|
+
*
|
|
603
|
+
* @generated from field: string type = 2;
|
|
604
|
+
*/
|
|
605
|
+
type = "";
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* `Format` The extending format for the previously mentioned type.
|
|
609
|
+
*
|
|
610
|
+
* @generated from field: string format = 3;
|
|
611
|
+
*/
|
|
612
|
+
format = "";
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* `Default` Declares the value of the header that the server will use if none is provided.
|
|
616
|
+
* See: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-6.2.
|
|
617
|
+
* Unlike JSON Schema this value MUST conform to the defined type for the header.
|
|
618
|
+
*
|
|
619
|
+
* @generated from field: string default = 6;
|
|
620
|
+
*/
|
|
621
|
+
default = "";
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* 'Pattern' See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3.
|
|
625
|
+
*
|
|
626
|
+
* @generated from field: string pattern = 13;
|
|
627
|
+
*/
|
|
628
|
+
pattern = "";
|
|
629
|
+
|
|
630
|
+
constructor(data?: PartialMessage<Header>) {
|
|
631
|
+
super();
|
|
632
|
+
proto3.util.initPartial(data, this);
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
636
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.Header";
|
|
637
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
638
|
+
{ no: 1, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
639
|
+
{ no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
640
|
+
{ no: 3, name: "format", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
641
|
+
{ no: 6, name: "default", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
642
|
+
{ no: 13, name: "pattern", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
643
|
+
]);
|
|
644
|
+
|
|
645
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Header {
|
|
646
|
+
return new Header().fromBinary(bytes, options);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Header {
|
|
650
|
+
return new Header().fromJson(jsonValue, options);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Header {
|
|
654
|
+
return new Header().fromJsonString(jsonString, options);
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
static equals(a: Header | PlainMessage<Header> | undefined, b: Header | PlainMessage<Header> | undefined): boolean {
|
|
658
|
+
return proto3.util.equals(Header, a, b);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* `Response` is a representation of OpenAPI v2 specification's Response object.
|
|
664
|
+
*
|
|
665
|
+
* See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#responseObject
|
|
666
|
+
*
|
|
667
|
+
*
|
|
668
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.Response
|
|
669
|
+
*/
|
|
670
|
+
export class Response extends Message<Response> {
|
|
671
|
+
/**
|
|
672
|
+
* `Description` is a short description of the response.
|
|
673
|
+
* GFM syntax can be used for rich text representation.
|
|
674
|
+
*
|
|
675
|
+
* @generated from field: string description = 1;
|
|
676
|
+
*/
|
|
677
|
+
description = "";
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* `Schema` optionally defines the structure of the response.
|
|
681
|
+
* If `Schema` is not provided, it means there is no content to the response.
|
|
682
|
+
*
|
|
683
|
+
* @generated from field: grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2;
|
|
684
|
+
*/
|
|
685
|
+
schema?: Schema;
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* `Headers` A list of headers that are sent with the response.
|
|
689
|
+
* `Header` name is expected to be a string in the canonical format of the MIME header key
|
|
690
|
+
* See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
|
|
691
|
+
*
|
|
692
|
+
* @generated from field: map<string, grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3;
|
|
693
|
+
*/
|
|
694
|
+
headers: { [key: string]: Header } = {};
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* `Examples` gives per-mimetype response examples.
|
|
698
|
+
* See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
|
|
699
|
+
*
|
|
700
|
+
* @generated from field: map<string, string> examples = 4;
|
|
701
|
+
*/
|
|
702
|
+
examples: { [key: string]: string } = {};
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* Custom properties that start with "x-" such as "x-foo" used to describe
|
|
706
|
+
* extra functionality that is not covered by the standard OpenAPI Specification.
|
|
707
|
+
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
|
|
708
|
+
*
|
|
709
|
+
* @generated from field: map<string, google.protobuf.Value> extensions = 5;
|
|
710
|
+
*/
|
|
711
|
+
extensions: { [key: string]: Value } = {};
|
|
712
|
+
|
|
713
|
+
constructor(data?: PartialMessage<Response>) {
|
|
714
|
+
super();
|
|
715
|
+
proto3.util.initPartial(data, this);
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
719
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.Response";
|
|
720
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
721
|
+
{ no: 1, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
722
|
+
{ no: 2, name: "schema", kind: "message", T: Schema },
|
|
723
|
+
{ no: 3, name: "headers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Header} },
|
|
724
|
+
{ no: 4, name: "examples", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
725
|
+
{ no: 5, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Value} },
|
|
726
|
+
]);
|
|
727
|
+
|
|
728
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Response {
|
|
729
|
+
return new Response().fromBinary(bytes, options);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Response {
|
|
733
|
+
return new Response().fromJson(jsonValue, options);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Response {
|
|
737
|
+
return new Response().fromJsonString(jsonString, options);
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
static equals(a: Response | PlainMessage<Response> | undefined, b: Response | PlainMessage<Response> | undefined): boolean {
|
|
741
|
+
return proto3.util.equals(Response, a, b);
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* `Info` is a representation of OpenAPI v2 specification's Info object.
|
|
747
|
+
*
|
|
748
|
+
* See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#infoObject
|
|
749
|
+
*
|
|
750
|
+
* Example:
|
|
751
|
+
*
|
|
752
|
+
* option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
|
|
753
|
+
* info: {
|
|
754
|
+
* title: "Echo API";
|
|
755
|
+
* version: "1.0";
|
|
756
|
+
* description: "";
|
|
757
|
+
* contact: {
|
|
758
|
+
* name: "gRPC-Gateway project";
|
|
759
|
+
* url: "https://github.com/grpc-ecosystem/grpc-gateway";
|
|
760
|
+
* email: "none@example.com";
|
|
761
|
+
* };
|
|
762
|
+
* license: {
|
|
763
|
+
* name: "BSD 3-Clause License";
|
|
764
|
+
* url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE";
|
|
765
|
+
* };
|
|
766
|
+
* };
|
|
767
|
+
* ...
|
|
768
|
+
* };
|
|
769
|
+
*
|
|
770
|
+
*
|
|
771
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.Info
|
|
772
|
+
*/
|
|
773
|
+
export class Info extends Message<Info> {
|
|
774
|
+
/**
|
|
775
|
+
* The title of the application.
|
|
776
|
+
*
|
|
777
|
+
* @generated from field: string title = 1;
|
|
778
|
+
*/
|
|
779
|
+
title = "";
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* A short description of the application. GFM syntax can be used for rich
|
|
783
|
+
* text representation.
|
|
784
|
+
*
|
|
785
|
+
* @generated from field: string description = 2;
|
|
786
|
+
*/
|
|
787
|
+
description = "";
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* The Terms of Service for the API.
|
|
791
|
+
*
|
|
792
|
+
* @generated from field: string terms_of_service = 3;
|
|
793
|
+
*/
|
|
794
|
+
termsOfService = "";
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* The contact information for the exposed API.
|
|
798
|
+
*
|
|
799
|
+
* @generated from field: grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4;
|
|
800
|
+
*/
|
|
801
|
+
contact?: Contact;
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* The license information for the exposed API.
|
|
805
|
+
*
|
|
806
|
+
* @generated from field: grpc.gateway.protoc_gen_openapiv2.options.License license = 5;
|
|
807
|
+
*/
|
|
808
|
+
license?: License;
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* Provides the version of the application API (not to be confused
|
|
812
|
+
* with the specification version).
|
|
813
|
+
*
|
|
814
|
+
* @generated from field: string version = 6;
|
|
815
|
+
*/
|
|
816
|
+
version = "";
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* Custom properties that start with "x-" such as "x-foo" used to describe
|
|
820
|
+
* extra functionality that is not covered by the standard OpenAPI Specification.
|
|
821
|
+
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
|
|
822
|
+
*
|
|
823
|
+
* @generated from field: map<string, google.protobuf.Value> extensions = 7;
|
|
824
|
+
*/
|
|
825
|
+
extensions: { [key: string]: Value } = {};
|
|
826
|
+
|
|
827
|
+
constructor(data?: PartialMessage<Info>) {
|
|
828
|
+
super();
|
|
829
|
+
proto3.util.initPartial(data, this);
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
833
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.Info";
|
|
834
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
835
|
+
{ no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
836
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
837
|
+
{ no: 3, name: "terms_of_service", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
838
|
+
{ no: 4, name: "contact", kind: "message", T: Contact },
|
|
839
|
+
{ no: 5, name: "license", kind: "message", T: License },
|
|
840
|
+
{ no: 6, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
841
|
+
{ no: 7, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Value} },
|
|
842
|
+
]);
|
|
843
|
+
|
|
844
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Info {
|
|
845
|
+
return new Info().fromBinary(bytes, options);
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Info {
|
|
849
|
+
return new Info().fromJson(jsonValue, options);
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Info {
|
|
853
|
+
return new Info().fromJsonString(jsonString, options);
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
static equals(a: Info | PlainMessage<Info> | undefined, b: Info | PlainMessage<Info> | undefined): boolean {
|
|
857
|
+
return proto3.util.equals(Info, a, b);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* `Contact` is a representation of OpenAPI v2 specification's Contact object.
|
|
863
|
+
*
|
|
864
|
+
* See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#contactObject
|
|
865
|
+
*
|
|
866
|
+
* Example:
|
|
867
|
+
*
|
|
868
|
+
* option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
|
|
869
|
+
* info: {
|
|
870
|
+
* ...
|
|
871
|
+
* contact: {
|
|
872
|
+
* name: "gRPC-Gateway project";
|
|
873
|
+
* url: "https://github.com/grpc-ecosystem/grpc-gateway";
|
|
874
|
+
* email: "none@example.com";
|
|
875
|
+
* };
|
|
876
|
+
* ...
|
|
877
|
+
* };
|
|
878
|
+
* ...
|
|
879
|
+
* };
|
|
880
|
+
*
|
|
881
|
+
*
|
|
882
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.Contact
|
|
883
|
+
*/
|
|
884
|
+
export class Contact extends Message<Contact> {
|
|
885
|
+
/**
|
|
886
|
+
* The identifying name of the contact person/organization.
|
|
887
|
+
*
|
|
888
|
+
* @generated from field: string name = 1;
|
|
889
|
+
*/
|
|
890
|
+
name = "";
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* The URL pointing to the contact information. MUST be in the format of a
|
|
894
|
+
* URL.
|
|
895
|
+
*
|
|
896
|
+
* @generated from field: string url = 2;
|
|
897
|
+
*/
|
|
898
|
+
url = "";
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* The email address of the contact person/organization. MUST be in the format
|
|
902
|
+
* of an email address.
|
|
903
|
+
*
|
|
904
|
+
* @generated from field: string email = 3;
|
|
905
|
+
*/
|
|
906
|
+
email = "";
|
|
907
|
+
|
|
908
|
+
constructor(data?: PartialMessage<Contact>) {
|
|
909
|
+
super();
|
|
910
|
+
proto3.util.initPartial(data, this);
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
914
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.Contact";
|
|
915
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
916
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
917
|
+
{ no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
918
|
+
{ no: 3, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
919
|
+
]);
|
|
920
|
+
|
|
921
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Contact {
|
|
922
|
+
return new Contact().fromBinary(bytes, options);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Contact {
|
|
926
|
+
return new Contact().fromJson(jsonValue, options);
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Contact {
|
|
930
|
+
return new Contact().fromJsonString(jsonString, options);
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
static equals(a: Contact | PlainMessage<Contact> | undefined, b: Contact | PlainMessage<Contact> | undefined): boolean {
|
|
934
|
+
return proto3.util.equals(Contact, a, b);
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* `License` is a representation of OpenAPI v2 specification's License object.
|
|
940
|
+
*
|
|
941
|
+
* See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#licenseObject
|
|
942
|
+
*
|
|
943
|
+
* Example:
|
|
944
|
+
*
|
|
945
|
+
* option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
|
|
946
|
+
* info: {
|
|
947
|
+
* ...
|
|
948
|
+
* license: {
|
|
949
|
+
* name: "BSD 3-Clause License";
|
|
950
|
+
* url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE";
|
|
951
|
+
* };
|
|
952
|
+
* ...
|
|
953
|
+
* };
|
|
954
|
+
* ...
|
|
955
|
+
* };
|
|
956
|
+
*
|
|
957
|
+
*
|
|
958
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.License
|
|
959
|
+
*/
|
|
960
|
+
export class License extends Message<License> {
|
|
961
|
+
/**
|
|
962
|
+
* The license name used for the API.
|
|
963
|
+
*
|
|
964
|
+
* @generated from field: string name = 1;
|
|
965
|
+
*/
|
|
966
|
+
name = "";
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* A URL to the license used for the API. MUST be in the format of a URL.
|
|
970
|
+
*
|
|
971
|
+
* @generated from field: string url = 2;
|
|
972
|
+
*/
|
|
973
|
+
url = "";
|
|
974
|
+
|
|
975
|
+
constructor(data?: PartialMessage<License>) {
|
|
976
|
+
super();
|
|
977
|
+
proto3.util.initPartial(data, this);
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
981
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.License";
|
|
982
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
983
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
984
|
+
{ no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
985
|
+
]);
|
|
986
|
+
|
|
987
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): License {
|
|
988
|
+
return new License().fromBinary(bytes, options);
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): License {
|
|
992
|
+
return new License().fromJson(jsonValue, options);
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): License {
|
|
996
|
+
return new License().fromJsonString(jsonString, options);
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
static equals(a: License | PlainMessage<License> | undefined, b: License | PlainMessage<License> | undefined): boolean {
|
|
1000
|
+
return proto3.util.equals(License, a, b);
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* `ExternalDocumentation` is a representation of OpenAPI v2 specification's
|
|
1006
|
+
* ExternalDocumentation object.
|
|
1007
|
+
*
|
|
1008
|
+
* See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#externalDocumentationObject
|
|
1009
|
+
*
|
|
1010
|
+
* Example:
|
|
1011
|
+
*
|
|
1012
|
+
* option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
|
|
1013
|
+
* ...
|
|
1014
|
+
* external_docs: {
|
|
1015
|
+
* description: "More about gRPC-Gateway";
|
|
1016
|
+
* url: "https://github.com/grpc-ecosystem/grpc-gateway";
|
|
1017
|
+
* }
|
|
1018
|
+
* ...
|
|
1019
|
+
* };
|
|
1020
|
+
*
|
|
1021
|
+
*
|
|
1022
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation
|
|
1023
|
+
*/
|
|
1024
|
+
export class ExternalDocumentation extends Message<ExternalDocumentation> {
|
|
1025
|
+
/**
|
|
1026
|
+
* A short description of the target documentation. GFM syntax can be used for
|
|
1027
|
+
* rich text representation.
|
|
1028
|
+
*
|
|
1029
|
+
* @generated from field: string description = 1;
|
|
1030
|
+
*/
|
|
1031
|
+
description = "";
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* The URL for the target documentation. Value MUST be in the format
|
|
1035
|
+
* of a URL.
|
|
1036
|
+
*
|
|
1037
|
+
* @generated from field: string url = 2;
|
|
1038
|
+
*/
|
|
1039
|
+
url = "";
|
|
1040
|
+
|
|
1041
|
+
constructor(data?: PartialMessage<ExternalDocumentation>) {
|
|
1042
|
+
super();
|
|
1043
|
+
proto3.util.initPartial(data, this);
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1047
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation";
|
|
1048
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1049
|
+
{ no: 1, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1050
|
+
{ no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1051
|
+
]);
|
|
1052
|
+
|
|
1053
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExternalDocumentation {
|
|
1054
|
+
return new ExternalDocumentation().fromBinary(bytes, options);
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExternalDocumentation {
|
|
1058
|
+
return new ExternalDocumentation().fromJson(jsonValue, options);
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExternalDocumentation {
|
|
1062
|
+
return new ExternalDocumentation().fromJsonString(jsonString, options);
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
static equals(a: ExternalDocumentation | PlainMessage<ExternalDocumentation> | undefined, b: ExternalDocumentation | PlainMessage<ExternalDocumentation> | undefined): boolean {
|
|
1066
|
+
return proto3.util.equals(ExternalDocumentation, a, b);
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* `Schema` is a representation of OpenAPI v2 specification's Schema object.
|
|
1072
|
+
*
|
|
1073
|
+
* See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
|
|
1074
|
+
*
|
|
1075
|
+
*
|
|
1076
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.Schema
|
|
1077
|
+
*/
|
|
1078
|
+
export class Schema extends Message<Schema> {
|
|
1079
|
+
/**
|
|
1080
|
+
* @generated from field: grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1;
|
|
1081
|
+
*/
|
|
1082
|
+
jsonSchema?: JSONSchema;
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* Adds support for polymorphism. The discriminator is the schema property
|
|
1086
|
+
* name that is used to differentiate between other schema that inherit this
|
|
1087
|
+
* schema. The property name used MUST be defined at this schema and it MUST
|
|
1088
|
+
* be in the required property list. When used, the value MUST be the name of
|
|
1089
|
+
* this schema or any schema that inherits it.
|
|
1090
|
+
*
|
|
1091
|
+
* @generated from field: string discriminator = 2;
|
|
1092
|
+
*/
|
|
1093
|
+
discriminator = "";
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* Relevant only for Schema "properties" definitions. Declares the property as
|
|
1097
|
+
* "read only". This means that it MAY be sent as part of a response but MUST
|
|
1098
|
+
* NOT be sent as part of the request. Properties marked as readOnly being
|
|
1099
|
+
* true SHOULD NOT be in the required list of the defined schema. Default
|
|
1100
|
+
* value is false.
|
|
1101
|
+
*
|
|
1102
|
+
* @generated from field: bool read_only = 3;
|
|
1103
|
+
*/
|
|
1104
|
+
readOnly = false;
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* Additional external documentation for this schema.
|
|
1108
|
+
*
|
|
1109
|
+
* @generated from field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5;
|
|
1110
|
+
*/
|
|
1111
|
+
externalDocs?: ExternalDocumentation;
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* A free-form property to include an example of an instance for this schema in JSON.
|
|
1115
|
+
* This is copied verbatim to the output.
|
|
1116
|
+
*
|
|
1117
|
+
* @generated from field: string example = 6;
|
|
1118
|
+
*/
|
|
1119
|
+
example = "";
|
|
1120
|
+
|
|
1121
|
+
constructor(data?: PartialMessage<Schema>) {
|
|
1122
|
+
super();
|
|
1123
|
+
proto3.util.initPartial(data, this);
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1127
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.Schema";
|
|
1128
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1129
|
+
{ no: 1, name: "json_schema", kind: "message", T: JSONSchema },
|
|
1130
|
+
{ no: 2, name: "discriminator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1131
|
+
{ no: 3, name: "read_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1132
|
+
{ no: 5, name: "external_docs", kind: "message", T: ExternalDocumentation },
|
|
1133
|
+
{ no: 6, name: "example", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1134
|
+
]);
|
|
1135
|
+
|
|
1136
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Schema {
|
|
1137
|
+
return new Schema().fromBinary(bytes, options);
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Schema {
|
|
1141
|
+
return new Schema().fromJson(jsonValue, options);
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Schema {
|
|
1145
|
+
return new Schema().fromJsonString(jsonString, options);
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
static equals(a: Schema | PlainMessage<Schema> | undefined, b: Schema | PlainMessage<Schema> | undefined): boolean {
|
|
1149
|
+
return proto3.util.equals(Schema, a, b);
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* `JSONSchema` represents properties from JSON Schema taken, and as used, in
|
|
1155
|
+
* the OpenAPI v2 spec.
|
|
1156
|
+
*
|
|
1157
|
+
* This includes changes made by OpenAPI v2.
|
|
1158
|
+
*
|
|
1159
|
+
* See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
|
|
1160
|
+
*
|
|
1161
|
+
* See also: https://cswr.github.io/JsonSchema/spec/basic_types/,
|
|
1162
|
+
* https://github.com/json-schema-org/json-schema-spec/blob/master/schemaon
|
|
1163
|
+
*
|
|
1164
|
+
* Example:
|
|
1165
|
+
*
|
|
1166
|
+
* message SimpleMessage {
|
|
1167
|
+
* option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
|
|
1168
|
+
* json_schema: {
|
|
1169
|
+
* title: "SimpleMessage"
|
|
1170
|
+
* description: "A simple message."
|
|
1171
|
+
* required: ["id"]
|
|
1172
|
+
* }
|
|
1173
|
+
* };
|
|
1174
|
+
*
|
|
1175
|
+
* // Id represents the message identifier.
|
|
1176
|
+
* string id = 1; [
|
|
1177
|
+
* (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
|
1178
|
+
* description: "The unique identifier of the simple message."
|
|
1179
|
+
* }];
|
|
1180
|
+
* }
|
|
1181
|
+
*
|
|
1182
|
+
*
|
|
1183
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.JSONSchema
|
|
1184
|
+
*/
|
|
1185
|
+
export class JSONSchema extends Message<JSONSchema> {
|
|
1186
|
+
/**
|
|
1187
|
+
* Ref is used to define an external reference to include in the message.
|
|
1188
|
+
* This could be a fully qualified proto message reference, and that type must
|
|
1189
|
+
* be imported into the protofile. If no message is identified, the Ref will
|
|
1190
|
+
* be used verbatim in the output.
|
|
1191
|
+
* For example:
|
|
1192
|
+
* `ref: ".google.protobuf.Timestamp"`.
|
|
1193
|
+
*
|
|
1194
|
+
* @generated from field: string ref = 3;
|
|
1195
|
+
*/
|
|
1196
|
+
ref = "";
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* The title of the schema.
|
|
1200
|
+
*
|
|
1201
|
+
* @generated from field: string title = 5;
|
|
1202
|
+
*/
|
|
1203
|
+
title = "";
|
|
1204
|
+
|
|
1205
|
+
/**
|
|
1206
|
+
* A short description of the schema.
|
|
1207
|
+
*
|
|
1208
|
+
* @generated from field: string description = 6;
|
|
1209
|
+
*/
|
|
1210
|
+
description = "";
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* @generated from field: string default = 7;
|
|
1214
|
+
*/
|
|
1215
|
+
default = "";
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* @generated from field: bool read_only = 8;
|
|
1219
|
+
*/
|
|
1220
|
+
readOnly = false;
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* A free-form property to include a JSON example of this field. This is copied
|
|
1224
|
+
* verbatim to the output swaggeron. Quotes must be escaped.
|
|
1225
|
+
* This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
|
|
1226
|
+
*
|
|
1227
|
+
* @generated from field: string example = 9;
|
|
1228
|
+
*/
|
|
1229
|
+
example = "";
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* @generated from field: double multiple_of = 10;
|
|
1233
|
+
*/
|
|
1234
|
+
multipleOf = 0;
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* Maximum represents an inclusive upper limit for a numeric instance. The
|
|
1238
|
+
* value of MUST be a number,
|
|
1239
|
+
*
|
|
1240
|
+
* @generated from field: double maximum = 11;
|
|
1241
|
+
*/
|
|
1242
|
+
maximum = 0;
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* @generated from field: bool exclusive_maximum = 12;
|
|
1246
|
+
*/
|
|
1247
|
+
exclusiveMaximum = false;
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* minimum represents an inclusive lower limit for a numeric instance. The
|
|
1251
|
+
* value of MUST be a number,
|
|
1252
|
+
*
|
|
1253
|
+
* @generated from field: double minimum = 13;
|
|
1254
|
+
*/
|
|
1255
|
+
minimum = 0;
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* @generated from field: bool exclusive_minimum = 14;
|
|
1259
|
+
*/
|
|
1260
|
+
exclusiveMinimum = false;
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* @generated from field: uint64 max_length = 15;
|
|
1264
|
+
*/
|
|
1265
|
+
maxLength = protoInt64.zero;
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* @generated from field: uint64 min_length = 16;
|
|
1269
|
+
*/
|
|
1270
|
+
minLength = protoInt64.zero;
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* @generated from field: string pattern = 17;
|
|
1274
|
+
*/
|
|
1275
|
+
pattern = "";
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* @generated from field: uint64 max_items = 20;
|
|
1279
|
+
*/
|
|
1280
|
+
maxItems = protoInt64.zero;
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* @generated from field: uint64 min_items = 21;
|
|
1284
|
+
*/
|
|
1285
|
+
minItems = protoInt64.zero;
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* @generated from field: bool unique_items = 22;
|
|
1289
|
+
*/
|
|
1290
|
+
uniqueItems = false;
|
|
1291
|
+
|
|
1292
|
+
/**
|
|
1293
|
+
* @generated from field: uint64 max_properties = 24;
|
|
1294
|
+
*/
|
|
1295
|
+
maxProperties = protoInt64.zero;
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* @generated from field: uint64 min_properties = 25;
|
|
1299
|
+
*/
|
|
1300
|
+
minProperties = protoInt64.zero;
|
|
1301
|
+
|
|
1302
|
+
/**
|
|
1303
|
+
* @generated from field: repeated string required = 26;
|
|
1304
|
+
*/
|
|
1305
|
+
required: string[] = [];
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* Items in 'array' must be unique.
|
|
1309
|
+
*
|
|
1310
|
+
* @generated from field: repeated string array = 34;
|
|
1311
|
+
*/
|
|
1312
|
+
array: string[] = [];
|
|
1313
|
+
|
|
1314
|
+
/**
|
|
1315
|
+
* @generated from field: repeated grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
|
|
1316
|
+
*/
|
|
1317
|
+
type: JSONSchema_JSONSchemaSimpleTypes[] = [];
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* `Format`
|
|
1321
|
+
*
|
|
1322
|
+
* @generated from field: string format = 36;
|
|
1323
|
+
*/
|
|
1324
|
+
format = "";
|
|
1325
|
+
|
|
1326
|
+
/**
|
|
1327
|
+
* Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
|
|
1328
|
+
*
|
|
1329
|
+
* @generated from field: repeated string enum = 46;
|
|
1330
|
+
*/
|
|
1331
|
+
enum: string[] = [];
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* Additional field level properties used when generating the OpenAPI v2 file.
|
|
1335
|
+
*
|
|
1336
|
+
* @generated from field: grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001;
|
|
1337
|
+
*/
|
|
1338
|
+
fieldConfiguration?: JSONSchema_FieldConfiguration;
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* Custom properties that start with "x-" such as "x-foo" used to describe
|
|
1342
|
+
* extra functionality that is not covered by the standard OpenAPI Specification.
|
|
1343
|
+
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
|
|
1344
|
+
*
|
|
1345
|
+
* @generated from field: map<string, google.protobuf.Value> extensions = 48;
|
|
1346
|
+
*/
|
|
1347
|
+
extensions: { [key: string]: Value } = {};
|
|
1348
|
+
|
|
1349
|
+
constructor(data?: PartialMessage<JSONSchema>) {
|
|
1350
|
+
super();
|
|
1351
|
+
proto3.util.initPartial(data, this);
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1355
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema";
|
|
1356
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1357
|
+
{ no: 3, name: "ref", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1358
|
+
{ no: 5, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1359
|
+
{ no: 6, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1360
|
+
{ no: 7, name: "default", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1361
|
+
{ no: 8, name: "read_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1362
|
+
{ no: 9, name: "example", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1363
|
+
{ no: 10, name: "multiple_of", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1364
|
+
{ no: 11, name: "maximum", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1365
|
+
{ no: 12, name: "exclusive_maximum", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1366
|
+
{ no: 13, name: "minimum", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1367
|
+
{ no: 14, name: "exclusive_minimum", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1368
|
+
{ no: 15, name: "max_length", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1369
|
+
{ no: 16, name: "min_length", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1370
|
+
{ no: 17, name: "pattern", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1371
|
+
{ no: 20, name: "max_items", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1372
|
+
{ no: 21, name: "min_items", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1373
|
+
{ no: 22, name: "unique_items", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1374
|
+
{ no: 24, name: "max_properties", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1375
|
+
{ no: 25, name: "min_properties", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1376
|
+
{ no: 26, name: "required", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1377
|
+
{ no: 34, name: "array", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1378
|
+
{ no: 35, name: "type", kind: "enum", T: proto3.getEnumType(JSONSchema_JSONSchemaSimpleTypes), repeated: true },
|
|
1379
|
+
{ no: 36, name: "format", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1380
|
+
{ no: 46, name: "enum", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1381
|
+
{ no: 1001, name: "field_configuration", kind: "message", T: JSONSchema_FieldConfiguration },
|
|
1382
|
+
{ no: 48, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Value} },
|
|
1383
|
+
]);
|
|
1384
|
+
|
|
1385
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JSONSchema {
|
|
1386
|
+
return new JSONSchema().fromBinary(bytes, options);
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JSONSchema {
|
|
1390
|
+
return new JSONSchema().fromJson(jsonValue, options);
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JSONSchema {
|
|
1394
|
+
return new JSONSchema().fromJsonString(jsonString, options);
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
static equals(a: JSONSchema | PlainMessage<JSONSchema> | undefined, b: JSONSchema | PlainMessage<JSONSchema> | undefined): boolean {
|
|
1398
|
+
return proto3.util.equals(JSONSchema, a, b);
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* @generated from enum grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes
|
|
1404
|
+
*/
|
|
1405
|
+
export enum JSONSchema_JSONSchemaSimpleTypes {
|
|
1406
|
+
/**
|
|
1407
|
+
* @generated from enum value: UNKNOWN = 0;
|
|
1408
|
+
*/
|
|
1409
|
+
UNKNOWN = 0,
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* @generated from enum value: ARRAY = 1;
|
|
1413
|
+
*/
|
|
1414
|
+
ARRAY = 1,
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* @generated from enum value: BOOLEAN = 2;
|
|
1418
|
+
*/
|
|
1419
|
+
BOOLEAN = 2,
|
|
1420
|
+
|
|
1421
|
+
/**
|
|
1422
|
+
* @generated from enum value: INTEGER = 3;
|
|
1423
|
+
*/
|
|
1424
|
+
INTEGER = 3,
|
|
1425
|
+
|
|
1426
|
+
/**
|
|
1427
|
+
* @generated from enum value: NULL = 4;
|
|
1428
|
+
*/
|
|
1429
|
+
NULL = 4,
|
|
1430
|
+
|
|
1431
|
+
/**
|
|
1432
|
+
* @generated from enum value: NUMBER = 5;
|
|
1433
|
+
*/
|
|
1434
|
+
NUMBER = 5,
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* @generated from enum value: OBJECT = 6;
|
|
1438
|
+
*/
|
|
1439
|
+
OBJECT = 6,
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* @generated from enum value: STRING = 7;
|
|
1443
|
+
*/
|
|
1444
|
+
STRING = 7,
|
|
1445
|
+
}
|
|
1446
|
+
// Retrieve enum metadata with: proto3.getEnumType(JSONSchema_JSONSchemaSimpleTypes)
|
|
1447
|
+
proto3.util.setEnumType(JSONSchema_JSONSchemaSimpleTypes, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes", [
|
|
1448
|
+
{ no: 0, name: "UNKNOWN" },
|
|
1449
|
+
{ no: 1, name: "ARRAY" },
|
|
1450
|
+
{ no: 2, name: "BOOLEAN" },
|
|
1451
|
+
{ no: 3, name: "INTEGER" },
|
|
1452
|
+
{ no: 4, name: "NULL" },
|
|
1453
|
+
{ no: 5, name: "NUMBER" },
|
|
1454
|
+
{ no: 6, name: "OBJECT" },
|
|
1455
|
+
{ no: 7, name: "STRING" },
|
|
1456
|
+
]);
|
|
1457
|
+
|
|
1458
|
+
/**
|
|
1459
|
+
* 'FieldConfiguration' provides additional field level properties used when generating the OpenAPI v2 file.
|
|
1460
|
+
* These properties are not defined by OpenAPIv2, but they are used to control the generation.
|
|
1461
|
+
*
|
|
1462
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration
|
|
1463
|
+
*/
|
|
1464
|
+
export class JSONSchema_FieldConfiguration extends Message<JSONSchema_FieldConfiguration> {
|
|
1465
|
+
/**
|
|
1466
|
+
* Alternative parameter name when used as path parameter. If set, this will
|
|
1467
|
+
* be used as the complete parameter name when this field is used as a path
|
|
1468
|
+
* parameter. Use this to avoid having auto generated path parameter names
|
|
1469
|
+
* for overlapping paths.
|
|
1470
|
+
*
|
|
1471
|
+
* @generated from field: string path_param_name = 47;
|
|
1472
|
+
*/
|
|
1473
|
+
pathParamName = "";
|
|
1474
|
+
|
|
1475
|
+
constructor(data?: PartialMessage<JSONSchema_FieldConfiguration>) {
|
|
1476
|
+
super();
|
|
1477
|
+
proto3.util.initPartial(data, this);
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1481
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration";
|
|
1482
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1483
|
+
{ no: 47, name: "path_param_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1484
|
+
]);
|
|
1485
|
+
|
|
1486
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JSONSchema_FieldConfiguration {
|
|
1487
|
+
return new JSONSchema_FieldConfiguration().fromBinary(bytes, options);
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JSONSchema_FieldConfiguration {
|
|
1491
|
+
return new JSONSchema_FieldConfiguration().fromJson(jsonValue, options);
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JSONSchema_FieldConfiguration {
|
|
1495
|
+
return new JSONSchema_FieldConfiguration().fromJsonString(jsonString, options);
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
static equals(a: JSONSchema_FieldConfiguration | PlainMessage<JSONSchema_FieldConfiguration> | undefined, b: JSONSchema_FieldConfiguration | PlainMessage<JSONSchema_FieldConfiguration> | undefined): boolean {
|
|
1499
|
+
return proto3.util.equals(JSONSchema_FieldConfiguration, a, b);
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* `Tag` is a representation of OpenAPI v2 specification's Tag object.
|
|
1505
|
+
*
|
|
1506
|
+
* See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#tagObject
|
|
1507
|
+
*
|
|
1508
|
+
*
|
|
1509
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.Tag
|
|
1510
|
+
*/
|
|
1511
|
+
export class Tag extends Message<Tag> {
|
|
1512
|
+
/**
|
|
1513
|
+
* The name of the tag. Use it to allow override of the name of a
|
|
1514
|
+
* global Tag object, then use that name to reference the tag throughout the
|
|
1515
|
+
* OpenAPI file.
|
|
1516
|
+
*
|
|
1517
|
+
* @generated from field: string name = 1;
|
|
1518
|
+
*/
|
|
1519
|
+
name = "";
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* A short description for the tag. GFM syntax can be used for rich text
|
|
1523
|
+
* representation.
|
|
1524
|
+
*
|
|
1525
|
+
* @generated from field: string description = 2;
|
|
1526
|
+
*/
|
|
1527
|
+
description = "";
|
|
1528
|
+
|
|
1529
|
+
/**
|
|
1530
|
+
* Additional external documentation for this tag.
|
|
1531
|
+
*
|
|
1532
|
+
* @generated from field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3;
|
|
1533
|
+
*/
|
|
1534
|
+
externalDocs?: ExternalDocumentation;
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* Custom properties that start with "x-" such as "x-foo" used to describe
|
|
1538
|
+
* extra functionality that is not covered by the standard OpenAPI Specification.
|
|
1539
|
+
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
|
|
1540
|
+
*
|
|
1541
|
+
* @generated from field: map<string, google.protobuf.Value> extensions = 4;
|
|
1542
|
+
*/
|
|
1543
|
+
extensions: { [key: string]: Value } = {};
|
|
1544
|
+
|
|
1545
|
+
constructor(data?: PartialMessage<Tag>) {
|
|
1546
|
+
super();
|
|
1547
|
+
proto3.util.initPartial(data, this);
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1551
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.Tag";
|
|
1552
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1553
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1554
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1555
|
+
{ no: 3, name: "external_docs", kind: "message", T: ExternalDocumentation },
|
|
1556
|
+
{ no: 4, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Value} },
|
|
1557
|
+
]);
|
|
1558
|
+
|
|
1559
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Tag {
|
|
1560
|
+
return new Tag().fromBinary(bytes, options);
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Tag {
|
|
1564
|
+
return new Tag().fromJson(jsonValue, options);
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Tag {
|
|
1568
|
+
return new Tag().fromJsonString(jsonString, options);
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
static equals(a: Tag | PlainMessage<Tag> | undefined, b: Tag | PlainMessage<Tag> | undefined): boolean {
|
|
1572
|
+
return proto3.util.equals(Tag, a, b);
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* `SecurityDefinitions` is a representation of OpenAPI v2 specification's
|
|
1578
|
+
* Security Definitions object.
|
|
1579
|
+
*
|
|
1580
|
+
* See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityDefinitionsObject
|
|
1581
|
+
*
|
|
1582
|
+
* A declaration of the security schemes available to be used in the
|
|
1583
|
+
* specification. This does not enforce the security schemes on the operations
|
|
1584
|
+
* and only serves to provide the relevant details for each scheme.
|
|
1585
|
+
*
|
|
1586
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions
|
|
1587
|
+
*/
|
|
1588
|
+
export class SecurityDefinitions extends Message<SecurityDefinitions> {
|
|
1589
|
+
/**
|
|
1590
|
+
* A single security scheme definition, mapping a "name" to the scheme it
|
|
1591
|
+
* defines.
|
|
1592
|
+
*
|
|
1593
|
+
* @generated from field: map<string, grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme> security = 1;
|
|
1594
|
+
*/
|
|
1595
|
+
security: { [key: string]: SecurityScheme } = {};
|
|
1596
|
+
|
|
1597
|
+
constructor(data?: PartialMessage<SecurityDefinitions>) {
|
|
1598
|
+
super();
|
|
1599
|
+
proto3.util.initPartial(data, this);
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1603
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions";
|
|
1604
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1605
|
+
{ no: 1, name: "security", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: SecurityScheme} },
|
|
1606
|
+
]);
|
|
1607
|
+
|
|
1608
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SecurityDefinitions {
|
|
1609
|
+
return new SecurityDefinitions().fromBinary(bytes, options);
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SecurityDefinitions {
|
|
1613
|
+
return new SecurityDefinitions().fromJson(jsonValue, options);
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SecurityDefinitions {
|
|
1617
|
+
return new SecurityDefinitions().fromJsonString(jsonString, options);
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
static equals(a: SecurityDefinitions | PlainMessage<SecurityDefinitions> | undefined, b: SecurityDefinitions | PlainMessage<SecurityDefinitions> | undefined): boolean {
|
|
1621
|
+
return proto3.util.equals(SecurityDefinitions, a, b);
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
/**
|
|
1626
|
+
* `SecurityScheme` is a representation of OpenAPI v2 specification's
|
|
1627
|
+
* Security Scheme object.
|
|
1628
|
+
*
|
|
1629
|
+
* See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securitySchemeObject
|
|
1630
|
+
*
|
|
1631
|
+
* Allows the definition of a security scheme that can be used by the
|
|
1632
|
+
* operations. Supported schemes are basic authentication, an API key (either as
|
|
1633
|
+
* a header or as a query parameter) and OAuth2's common flows (implicit,
|
|
1634
|
+
* password, application and access code).
|
|
1635
|
+
*
|
|
1636
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme
|
|
1637
|
+
*/
|
|
1638
|
+
export class SecurityScheme extends Message<SecurityScheme> {
|
|
1639
|
+
/**
|
|
1640
|
+
* The type of the security scheme. Valid values are "basic",
|
|
1641
|
+
* "apiKey" or "oauth2".
|
|
1642
|
+
*
|
|
1643
|
+
* @generated from field: grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1;
|
|
1644
|
+
*/
|
|
1645
|
+
type = SecurityScheme_Type.INVALID;
|
|
1646
|
+
|
|
1647
|
+
/**
|
|
1648
|
+
* A short description for security scheme.
|
|
1649
|
+
*
|
|
1650
|
+
* @generated from field: string description = 2;
|
|
1651
|
+
*/
|
|
1652
|
+
description = "";
|
|
1653
|
+
|
|
1654
|
+
/**
|
|
1655
|
+
* The name of the header or query parameter to be used.
|
|
1656
|
+
* Valid for apiKey.
|
|
1657
|
+
*
|
|
1658
|
+
* @generated from field: string name = 3;
|
|
1659
|
+
*/
|
|
1660
|
+
name = "";
|
|
1661
|
+
|
|
1662
|
+
/**
|
|
1663
|
+
* The location of the API key. Valid values are "query" or
|
|
1664
|
+
* "header".
|
|
1665
|
+
* Valid for apiKey.
|
|
1666
|
+
*
|
|
1667
|
+
* @generated from field: grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4;
|
|
1668
|
+
*/
|
|
1669
|
+
in = SecurityScheme_In.INVALID;
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* The flow used by the OAuth2 security scheme. Valid values are
|
|
1673
|
+
* "implicit", "password", "application" or "accessCode".
|
|
1674
|
+
* Valid for oauth2.
|
|
1675
|
+
*
|
|
1676
|
+
* @generated from field: grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5;
|
|
1677
|
+
*/
|
|
1678
|
+
flow = SecurityScheme_Flow.INVALID;
|
|
1679
|
+
|
|
1680
|
+
/**
|
|
1681
|
+
* The authorization URL to be used for this flow. This SHOULD be in
|
|
1682
|
+
* the form of a URL.
|
|
1683
|
+
* Valid for oauth2/implicit and oauth2/accessCode.
|
|
1684
|
+
*
|
|
1685
|
+
* @generated from field: string authorization_url = 6;
|
|
1686
|
+
*/
|
|
1687
|
+
authorizationUrl = "";
|
|
1688
|
+
|
|
1689
|
+
/**
|
|
1690
|
+
* The token URL to be used for this flow. This SHOULD be in the
|
|
1691
|
+
* form of a URL.
|
|
1692
|
+
* Valid for oauth2/password, oauth2/application and oauth2/accessCode.
|
|
1693
|
+
*
|
|
1694
|
+
* @generated from field: string token_url = 7;
|
|
1695
|
+
*/
|
|
1696
|
+
tokenUrl = "";
|
|
1697
|
+
|
|
1698
|
+
/**
|
|
1699
|
+
* The available scopes for the OAuth2 security scheme.
|
|
1700
|
+
* Valid for oauth2.
|
|
1701
|
+
*
|
|
1702
|
+
* @generated from field: grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8;
|
|
1703
|
+
*/
|
|
1704
|
+
scopes?: Scopes;
|
|
1705
|
+
|
|
1706
|
+
/**
|
|
1707
|
+
* Custom properties that start with "x-" such as "x-foo" used to describe
|
|
1708
|
+
* extra functionality that is not covered by the standard OpenAPI Specification.
|
|
1709
|
+
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
|
|
1710
|
+
*
|
|
1711
|
+
* @generated from field: map<string, google.protobuf.Value> extensions = 9;
|
|
1712
|
+
*/
|
|
1713
|
+
extensions: { [key: string]: Value } = {};
|
|
1714
|
+
|
|
1715
|
+
constructor(data?: PartialMessage<SecurityScheme>) {
|
|
1716
|
+
super();
|
|
1717
|
+
proto3.util.initPartial(data, this);
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1721
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme";
|
|
1722
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1723
|
+
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(SecurityScheme_Type) },
|
|
1724
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1725
|
+
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1726
|
+
{ no: 4, name: "in", kind: "enum", T: proto3.getEnumType(SecurityScheme_In) },
|
|
1727
|
+
{ no: 5, name: "flow", kind: "enum", T: proto3.getEnumType(SecurityScheme_Flow) },
|
|
1728
|
+
{ no: 6, name: "authorization_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1729
|
+
{ no: 7, name: "token_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1730
|
+
{ no: 8, name: "scopes", kind: "message", T: Scopes },
|
|
1731
|
+
{ no: 9, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Value} },
|
|
1732
|
+
]);
|
|
1733
|
+
|
|
1734
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SecurityScheme {
|
|
1735
|
+
return new SecurityScheme().fromBinary(bytes, options);
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SecurityScheme {
|
|
1739
|
+
return new SecurityScheme().fromJson(jsonValue, options);
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SecurityScheme {
|
|
1743
|
+
return new SecurityScheme().fromJsonString(jsonString, options);
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
static equals(a: SecurityScheme | PlainMessage<SecurityScheme> | undefined, b: SecurityScheme | PlainMessage<SecurityScheme> | undefined): boolean {
|
|
1747
|
+
return proto3.util.equals(SecurityScheme, a, b);
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
/**
|
|
1752
|
+
* The type of the security scheme. Valid values are "basic",
|
|
1753
|
+
* "apiKey" or "oauth2".
|
|
1754
|
+
*
|
|
1755
|
+
* @generated from enum grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type
|
|
1756
|
+
*/
|
|
1757
|
+
export enum SecurityScheme_Type {
|
|
1758
|
+
/**
|
|
1759
|
+
* @generated from enum value: TYPE_INVALID = 0;
|
|
1760
|
+
*/
|
|
1761
|
+
INVALID = 0,
|
|
1762
|
+
|
|
1763
|
+
/**
|
|
1764
|
+
* @generated from enum value: TYPE_BASIC = 1;
|
|
1765
|
+
*/
|
|
1766
|
+
BASIC = 1,
|
|
1767
|
+
|
|
1768
|
+
/**
|
|
1769
|
+
* @generated from enum value: TYPE_API_KEY = 2;
|
|
1770
|
+
*/
|
|
1771
|
+
API_KEY = 2,
|
|
1772
|
+
|
|
1773
|
+
/**
|
|
1774
|
+
* @generated from enum value: TYPE_OAUTH2 = 3;
|
|
1775
|
+
*/
|
|
1776
|
+
OAUTH2 = 3,
|
|
1777
|
+
}
|
|
1778
|
+
// Retrieve enum metadata with: proto3.getEnumType(SecurityScheme_Type)
|
|
1779
|
+
proto3.util.setEnumType(SecurityScheme_Type, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type", [
|
|
1780
|
+
{ no: 0, name: "TYPE_INVALID" },
|
|
1781
|
+
{ no: 1, name: "TYPE_BASIC" },
|
|
1782
|
+
{ no: 2, name: "TYPE_API_KEY" },
|
|
1783
|
+
{ no: 3, name: "TYPE_OAUTH2" },
|
|
1784
|
+
]);
|
|
1785
|
+
|
|
1786
|
+
/**
|
|
1787
|
+
* The location of the API key. Valid values are "query" or "header".
|
|
1788
|
+
*
|
|
1789
|
+
* @generated from enum grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In
|
|
1790
|
+
*/
|
|
1791
|
+
export enum SecurityScheme_In {
|
|
1792
|
+
/**
|
|
1793
|
+
* @generated from enum value: IN_INVALID = 0;
|
|
1794
|
+
*/
|
|
1795
|
+
INVALID = 0,
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* @generated from enum value: IN_QUERY = 1;
|
|
1799
|
+
*/
|
|
1800
|
+
QUERY = 1,
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* @generated from enum value: IN_HEADER = 2;
|
|
1804
|
+
*/
|
|
1805
|
+
HEADER = 2,
|
|
1806
|
+
}
|
|
1807
|
+
// Retrieve enum metadata with: proto3.getEnumType(SecurityScheme_In)
|
|
1808
|
+
proto3.util.setEnumType(SecurityScheme_In, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In", [
|
|
1809
|
+
{ no: 0, name: "IN_INVALID" },
|
|
1810
|
+
{ no: 1, name: "IN_QUERY" },
|
|
1811
|
+
{ no: 2, name: "IN_HEADER" },
|
|
1812
|
+
]);
|
|
1813
|
+
|
|
1814
|
+
/**
|
|
1815
|
+
* The flow used by the OAuth2 security scheme. Valid values are
|
|
1816
|
+
* "implicit", "password", "application" or "accessCode".
|
|
1817
|
+
*
|
|
1818
|
+
* @generated from enum grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow
|
|
1819
|
+
*/
|
|
1820
|
+
export enum SecurityScheme_Flow {
|
|
1821
|
+
/**
|
|
1822
|
+
* @generated from enum value: FLOW_INVALID = 0;
|
|
1823
|
+
*/
|
|
1824
|
+
INVALID = 0,
|
|
1825
|
+
|
|
1826
|
+
/**
|
|
1827
|
+
* @generated from enum value: FLOW_IMPLICIT = 1;
|
|
1828
|
+
*/
|
|
1829
|
+
IMPLICIT = 1,
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* @generated from enum value: FLOW_PASSWORD = 2;
|
|
1833
|
+
*/
|
|
1834
|
+
PASSWORD = 2,
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* @generated from enum value: FLOW_APPLICATION = 3;
|
|
1838
|
+
*/
|
|
1839
|
+
APPLICATION = 3,
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* @generated from enum value: FLOW_ACCESS_CODE = 4;
|
|
1843
|
+
*/
|
|
1844
|
+
ACCESS_CODE = 4,
|
|
1845
|
+
}
|
|
1846
|
+
// Retrieve enum metadata with: proto3.getEnumType(SecurityScheme_Flow)
|
|
1847
|
+
proto3.util.setEnumType(SecurityScheme_Flow, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow", [
|
|
1848
|
+
{ no: 0, name: "FLOW_INVALID" },
|
|
1849
|
+
{ no: 1, name: "FLOW_IMPLICIT" },
|
|
1850
|
+
{ no: 2, name: "FLOW_PASSWORD" },
|
|
1851
|
+
{ no: 3, name: "FLOW_APPLICATION" },
|
|
1852
|
+
{ no: 4, name: "FLOW_ACCESS_CODE" },
|
|
1853
|
+
]);
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* `SecurityRequirement` is a representation of OpenAPI v2 specification's
|
|
1857
|
+
* Security Requirement object.
|
|
1858
|
+
*
|
|
1859
|
+
* See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityRequirementObject
|
|
1860
|
+
*
|
|
1861
|
+
* Lists the required security schemes to execute this operation. The object can
|
|
1862
|
+
* have multiple security schemes declared in it which are all required (that
|
|
1863
|
+
* is, there is a logical AND between the schemes).
|
|
1864
|
+
*
|
|
1865
|
+
* The name used for each property MUST correspond to a security scheme
|
|
1866
|
+
* declared in the Security Definitions.
|
|
1867
|
+
*
|
|
1868
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement
|
|
1869
|
+
*/
|
|
1870
|
+
export class SecurityRequirement extends Message<SecurityRequirement> {
|
|
1871
|
+
/**
|
|
1872
|
+
* Each name must correspond to a security scheme which is declared in
|
|
1873
|
+
* the Security Definitions. If the security scheme is of type "oauth2",
|
|
1874
|
+
* then the value is a list of scope names required for the execution.
|
|
1875
|
+
* For other security scheme types, the array MUST be empty.
|
|
1876
|
+
*
|
|
1877
|
+
* @generated from field: map<string, grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1;
|
|
1878
|
+
*/
|
|
1879
|
+
securityRequirement: { [key: string]: SecurityRequirement_SecurityRequirementValue } = {};
|
|
1880
|
+
|
|
1881
|
+
constructor(data?: PartialMessage<SecurityRequirement>) {
|
|
1882
|
+
super();
|
|
1883
|
+
proto3.util.initPartial(data, this);
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1887
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement";
|
|
1888
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1889
|
+
{ no: 1, name: "security_requirement", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: SecurityRequirement_SecurityRequirementValue} },
|
|
1890
|
+
]);
|
|
1891
|
+
|
|
1892
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SecurityRequirement {
|
|
1893
|
+
return new SecurityRequirement().fromBinary(bytes, options);
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SecurityRequirement {
|
|
1897
|
+
return new SecurityRequirement().fromJson(jsonValue, options);
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SecurityRequirement {
|
|
1901
|
+
return new SecurityRequirement().fromJsonString(jsonString, options);
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
static equals(a: SecurityRequirement | PlainMessage<SecurityRequirement> | undefined, b: SecurityRequirement | PlainMessage<SecurityRequirement> | undefined): boolean {
|
|
1905
|
+
return proto3.util.equals(SecurityRequirement, a, b);
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
/**
|
|
1910
|
+
* If the security scheme is of type "oauth2", then the value is a list of
|
|
1911
|
+
* scope names required for the execution. For other security scheme types,
|
|
1912
|
+
* the array MUST be empty.
|
|
1913
|
+
*
|
|
1914
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue
|
|
1915
|
+
*/
|
|
1916
|
+
export class SecurityRequirement_SecurityRequirementValue extends Message<SecurityRequirement_SecurityRequirementValue> {
|
|
1917
|
+
/**
|
|
1918
|
+
* @generated from field: repeated string scope = 1;
|
|
1919
|
+
*/
|
|
1920
|
+
scope: string[] = [];
|
|
1921
|
+
|
|
1922
|
+
constructor(data?: PartialMessage<SecurityRequirement_SecurityRequirementValue>) {
|
|
1923
|
+
super();
|
|
1924
|
+
proto3.util.initPartial(data, this);
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1928
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue";
|
|
1929
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1930
|
+
{ no: 1, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1931
|
+
]);
|
|
1932
|
+
|
|
1933
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SecurityRequirement_SecurityRequirementValue {
|
|
1934
|
+
return new SecurityRequirement_SecurityRequirementValue().fromBinary(bytes, options);
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SecurityRequirement_SecurityRequirementValue {
|
|
1938
|
+
return new SecurityRequirement_SecurityRequirementValue().fromJson(jsonValue, options);
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SecurityRequirement_SecurityRequirementValue {
|
|
1942
|
+
return new SecurityRequirement_SecurityRequirementValue().fromJsonString(jsonString, options);
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
static equals(a: SecurityRequirement_SecurityRequirementValue | PlainMessage<SecurityRequirement_SecurityRequirementValue> | undefined, b: SecurityRequirement_SecurityRequirementValue | PlainMessage<SecurityRequirement_SecurityRequirementValue> | undefined): boolean {
|
|
1946
|
+
return proto3.util.equals(SecurityRequirement_SecurityRequirementValue, a, b);
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
/**
|
|
1951
|
+
* `Scopes` is a representation of OpenAPI v2 specification's Scopes object.
|
|
1952
|
+
*
|
|
1953
|
+
* See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#scopesObject
|
|
1954
|
+
*
|
|
1955
|
+
* Lists the available scopes for an OAuth2 security scheme.
|
|
1956
|
+
*
|
|
1957
|
+
* @generated from message grpc.gateway.protoc_gen_openapiv2.options.Scopes
|
|
1958
|
+
*/
|
|
1959
|
+
export class Scopes extends Message<Scopes> {
|
|
1960
|
+
/**
|
|
1961
|
+
* Maps between a name of a scope to a short description of it (as the value
|
|
1962
|
+
* of the property).
|
|
1963
|
+
*
|
|
1964
|
+
* @generated from field: map<string, string> scope = 1;
|
|
1965
|
+
*/
|
|
1966
|
+
scope: { [key: string]: string } = {};
|
|
1967
|
+
|
|
1968
|
+
constructor(data?: PartialMessage<Scopes>) {
|
|
1969
|
+
super();
|
|
1970
|
+
proto3.util.initPartial(data, this);
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1974
|
+
static readonly typeName = "grpc.gateway.protoc_gen_openapiv2.options.Scopes";
|
|
1975
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1976
|
+
{ no: 1, name: "scope", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
1977
|
+
]);
|
|
1978
|
+
|
|
1979
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Scopes {
|
|
1980
|
+
return new Scopes().fromBinary(bytes, options);
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Scopes {
|
|
1984
|
+
return new Scopes().fromJson(jsonValue, options);
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Scopes {
|
|
1988
|
+
return new Scopes().fromJsonString(jsonString, options);
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
static equals(a: Scopes | PlainMessage<Scopes> | undefined, b: Scopes | PlainMessage<Scopes> | undefined): boolean {
|
|
1992
|
+
return proto3.util.equals(Scopes, a, b);
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
|