From 2e3a7d38de57dcb9f38d3de89d709cf6b86b78d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Vall=C3=A9s?= Date: Wed, 7 Feb 2024 14:31:42 +0100 Subject: [PATCH 1/3] chore: update component Include changes to display new definition fields in the VIEW_BASIC view in the component definition list --- go.mod | 4 ++-- go.sum | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index f908c3b..30cd32b 100644 --- a/go.mod +++ b/go.mod @@ -16,8 +16,8 @@ require ( github.com/gocolly/colly/v2 v2.1.0 github.com/gofrs/uuid v4.4.0+incompatible github.com/h2non/filetype v1.1.3 - github.com/instill-ai/component v0.10.0-beta - github.com/instill-ai/protogen-go v0.3.3-alpha.0.20240105094938-3a71d8f7a812 + github.com/instill-ai/component v0.10.0-beta.0.20240206082535-b067f9cbaa98 + github.com/instill-ai/protogen-go v0.3.3-alpha.0.20240206062817-a862071d8ece github.com/instill-ai/x v0.3.0-alpha.0.20231219052200-6230a89e386c github.com/redis/go-redis/v9 v9.3.0 go.uber.org/zap v1.26.0 diff --git a/go.sum b/go.sum index 2da6498..d809242 100644 --- a/go.sum +++ b/go.sum @@ -145,10 +145,10 @@ github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.2 h1:I/pwhnUln5wbMnTyRbzswA0/JxpK github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.2/go.mod h1:lsuH8kb4GlMdSlI4alNIBBSAt5CHJtg3i+0WuN9J5YM= github.com/h2non/filetype v1.1.3 h1:FKkx9QbD7HR/zjK1Ia5XiBsq9zdLi5Kf3zGyFTAFkGg= github.com/h2non/filetype v1.1.3/go.mod h1:319b3zT68BvV+WRj7cwy856M2ehB3HqNOt6sy1HndBY= -github.com/instill-ai/component v0.10.0-beta h1:cmYZnIqihVMF96lY2alAZEVjmDwBzw54fq8b2j0a4O4= -github.com/instill-ai/component v0.10.0-beta/go.mod h1:Vx/D38SiH2gukPSI6FCr6wnhofPSapL0V3uxDHbUyi8= -github.com/instill-ai/protogen-go v0.3.3-alpha.0.20240105094938-3a71d8f7a812 h1:n1EQFT0NeXkmiCD/YtoLG+b/OPo2tNg7MVK0dHNFlvk= -github.com/instill-ai/protogen-go v0.3.3-alpha.0.20240105094938-3a71d8f7a812/go.mod h1:jhEL0SauySMoPLVvx105DWyThju9sYTbsXIySVCArmM= +github.com/instill-ai/component v0.10.0-beta.0.20240206082535-b067f9cbaa98 h1:3B9NVpATwjMuOXA3YXDcofZXZscaezxZir4D1NbGQFw= +github.com/instill-ai/component v0.10.0-beta.0.20240206082535-b067f9cbaa98/go.mod h1:THyROt2dqqge2lDc+PVzm/+LueG4dBtxpLzSjl+T83A= +github.com/instill-ai/protogen-go v0.3.3-alpha.0.20240206062817-a862071d8ece h1:Zs8zy+ZgLe8bWRh9E48JaPTB+iS2E7f27OiD0Jjjld8= +github.com/instill-ai/protogen-go v0.3.3-alpha.0.20240206062817-a862071d8ece/go.mod h1:jhEL0SauySMoPLVvx105DWyThju9sYTbsXIySVCArmM= github.com/instill-ai/x v0.3.0-alpha.0.20231219052200-6230a89e386c h1:a2RVkpIV2QcrGnSHAou+t/L+vBsaIfFvk5inVg5Uh4s= github.com/instill-ai/x v0.3.0-alpha.0.20231219052200-6230a89e386c/go.mod h1:L6jmDPrUou6XskaLXZuK/gDeitdoPa9yE8ONKt1ZwCw= github.com/jawher/mow.cli v1.1.0/go.mod h1:aNaQlc7ozF3vw6IJ2dHjp2ZFiA4ozMIYY6PyuRJwlUg= From 726325c9581a47d309ab8deee0c38ff7a404511a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Vall=C3=A9s?= Date: Wed, 7 Feb 2024 11:51:35 +0100 Subject: [PATCH 2/3] feat: set component versions to 1.0.0-alpha --- pkg/airbyte/{ => v1}/airbyte.go | 0 pkg/airbyte/{ => v1}/config/definitions.json | 12 ++++---- .../config/seed/generate_definitions.py | 0 pkg/airbyte/{ => v1}/config/tasks.json | 0 pkg/airbyte/{ => v1}/main.go | 0 pkg/archetypeai/{ => v1}/client.go | 0 .../{ => v1}/config/definitions.json | 4 ++- pkg/archetypeai/{ => v1}/config/tasks.json | 0 pkg/archetypeai/{ => v1}/connector_test.go | 0 pkg/archetypeai/{ => v1}/main.go | 0 pkg/archetypeai/{ => v1}/structs.go | 0 pkg/bigquery/{ => v1}/config/definitions.json | 4 ++- pkg/bigquery/{ => v1}/config/tasks.json | 0 pkg/bigquery/{ => v1}/insert.go | 0 pkg/bigquery/{ => v1}/main.go | 0 .../{ => v1}/config/definitions.json | 4 ++- .../{ => v1}/config/tasks.json | 0 pkg/googlecloudstorage/{ => v1}/main.go | 0 pkg/googlecloudstorage/{ => v1}/upload.go | 0 .../{ => v1}/config/definitions.json | 4 ++- pkg/googlesearch/{ => v1}/config/tasks.json | 0 pkg/googlesearch/{ => v1}/main.go | 0 pkg/googlesearch/{ => v1}/search.go | 0 pkg/huggingface/{ => v1}/client.go | 0 .../{ => v1}/config/definitions.json | 4 ++- pkg/huggingface/{ => v1}/config/tasks.json | 0 pkg/huggingface/{ => v1}/connector_test.go | 0 pkg/huggingface/{ => v1}/main.go | 0 pkg/huggingface/{ => v1}/structs.go | 0 pkg/instill/{ => v1}/client.go | 0 pkg/instill/{ => v1}/config/definitions.json | 4 ++- pkg/instill/{ => v1}/config/tasks.json | 0 pkg/instill/{ => v1}/image_classification.go | 0 pkg/instill/{ => v1}/image_to_image.go | 0 pkg/instill/{ => v1}/instance_segmentation.go | 0 pkg/instill/{ => v1}/keypoint_detection.go | 0 pkg/instill/{ => v1}/llm_utils.go | 0 pkg/instill/{ => v1}/main.go | 0 pkg/instill/{ => v1}/object_detection.go | 0 pkg/instill/{ => v1}/ocr.go | 0 pkg/instill/{ => v1}/semantic_segmentation.go | 0 pkg/instill/{ => v1}/text_generation.go | 0 pkg/instill/{ => v1}/text_generation_chat.go | 0 pkg/instill/{ => v1}/text_to_image.go | 0 pkg/instill/{ => v1}/unspecified.go | 0 .../{ => v1}/visual_question_answering.go | 0 pkg/integration_test.go | 2 +- pkg/main.go | 28 +++++++++---------- pkg/numbers/{ => v1}/config/definitions.json | 4 ++- pkg/numbers/{ => v1}/config/tasks.json | 0 pkg/numbers/{ => v1}/main.go | 0 pkg/openai/{ => v1}/audio_transcriptions.go | 0 pkg/openai/{ => v1}/client.go | 0 pkg/openai/{ => v1}/config/definitions.json | 4 ++- pkg/openai/{ => v1}/config/openai.json | 0 pkg/openai/{ => v1}/config/tasks.json | 0 pkg/openai/{ => v1}/connector_test.go | 0 pkg/openai/{ => v1}/list_models.go | 0 pkg/openai/{ => v1}/main.go | 0 pkg/openai/{ => v1}/text_embeddings.go | 0 pkg/openai/{ => v1}/text_generation.go | 0 pkg/openai/{ => v1}/text_to_image.go | 0 pkg/openai/{ => v1}/text_to_speech.go | 0 pkg/pinecone/{ => v1}/config/definitions.json | 4 ++- pkg/pinecone/{ => v1}/config/tasks.json | 0 pkg/pinecone/{ => v1}/connector_test.go | 0 pkg/pinecone/{ => v1}/main.go | 0 pkg/pinecone/{ => v1}/structs.go | 0 pkg/redis/{ => v1}/chat_history.go | 0 pkg/redis/{ => v1}/client.go | 0 pkg/redis/{ => v1}/config/definitions.json | 4 ++- pkg/redis/{ => v1}/config/tasks.json | 0 pkg/redis/{ => v1}/main.go | 0 pkg/restapi/{ => v1}/auth.go | 0 pkg/restapi/{ => v1}/client.go | 0 pkg/restapi/{ => v1}/config/definitions.json | 4 ++- pkg/restapi/{ => v1}/config/tasks.json | 0 pkg/restapi/{ => v1}/connector_test.go | 0 pkg/restapi/{ => v1}/main.go | 0 pkg/stabilityai/{ => v1}/client.go | 0 .../{ => v1}/config/definitions.json | 4 ++- .../{ => v1}/config/stabilityai.json | 0 pkg/stabilityai/{ => v1}/config/tasks.json | 0 pkg/stabilityai/{ => v1}/connector_test.go | 0 pkg/stabilityai/{ => v1}/image_to_image.go | 0 pkg/stabilityai/{ => v1}/list_engines.go | 0 pkg/stabilityai/{ => v1}/main.go | 0 pkg/stabilityai/{ => v1}/text_to_image.go | 0 pkg/website/{ => v1}/config/definitions.json | 4 ++- pkg/website/{ => v1}/config/tasks.json | 0 pkg/website/{ => v1}/main.go | 0 pkg/website/{ => v1}/scrape_website.go | 0 92 files changed, 61 insertions(+), 33 deletions(-) rename pkg/airbyte/{ => v1}/airbyte.go (100%) rename pkg/airbyte/{ => v1}/config/definitions.json (99%) rename pkg/airbyte/{ => v1}/config/seed/generate_definitions.py (100%) rename pkg/airbyte/{ => v1}/config/tasks.json (100%) rename pkg/airbyte/{ => v1}/main.go (100%) rename pkg/archetypeai/{ => v1}/client.go (100%) rename pkg/archetypeai/{ => v1}/config/definitions.json (87%) rename pkg/archetypeai/{ => v1}/config/tasks.json (100%) rename pkg/archetypeai/{ => v1}/connector_test.go (100%) rename pkg/archetypeai/{ => v1}/main.go (100%) rename pkg/archetypeai/{ => v1}/structs.go (100%) rename pkg/bigquery/{ => v1}/config/definitions.json (92%) rename pkg/bigquery/{ => v1}/config/tasks.json (100%) rename pkg/bigquery/{ => v1}/insert.go (100%) rename pkg/bigquery/{ => v1}/main.go (100%) rename pkg/googlecloudstorage/{ => v1}/config/definitions.json (90%) rename pkg/googlecloudstorage/{ => v1}/config/tasks.json (100%) rename pkg/googlecloudstorage/{ => v1}/main.go (100%) rename pkg/googlecloudstorage/{ => v1}/upload.go (100%) rename pkg/googlesearch/{ => v1}/config/definitions.json (92%) rename pkg/googlesearch/{ => v1}/config/tasks.json (100%) rename pkg/googlesearch/{ => v1}/main.go (100%) rename pkg/googlesearch/{ => v1}/search.go (100%) rename pkg/huggingface/{ => v1}/client.go (100%) rename pkg/huggingface/{ => v1}/config/definitions.json (94%) rename pkg/huggingface/{ => v1}/config/tasks.json (100%) rename pkg/huggingface/{ => v1}/connector_test.go (100%) rename pkg/huggingface/{ => v1}/main.go (100%) rename pkg/huggingface/{ => v1}/structs.go (100%) rename pkg/instill/{ => v1}/client.go (100%) rename pkg/instill/{ => v1}/config/definitions.json (94%) rename pkg/instill/{ => v1}/config/tasks.json (100%) rename pkg/instill/{ => v1}/image_classification.go (100%) rename pkg/instill/{ => v1}/image_to_image.go (100%) rename pkg/instill/{ => v1}/instance_segmentation.go (100%) rename pkg/instill/{ => v1}/keypoint_detection.go (100%) rename pkg/instill/{ => v1}/llm_utils.go (100%) rename pkg/instill/{ => v1}/main.go (100%) rename pkg/instill/{ => v1}/object_detection.go (100%) rename pkg/instill/{ => v1}/ocr.go (100%) rename pkg/instill/{ => v1}/semantic_segmentation.go (100%) rename pkg/instill/{ => v1}/text_generation.go (100%) rename pkg/instill/{ => v1}/text_generation_chat.go (100%) rename pkg/instill/{ => v1}/text_to_image.go (100%) rename pkg/instill/{ => v1}/unspecified.go (100%) rename pkg/instill/{ => v1}/visual_question_answering.go (100%) rename pkg/numbers/{ => v1}/config/definitions.json (89%) rename pkg/numbers/{ => v1}/config/tasks.json (100%) rename pkg/numbers/{ => v1}/main.go (100%) rename pkg/openai/{ => v1}/audio_transcriptions.go (100%) rename pkg/openai/{ => v1}/client.go (100%) rename pkg/openai/{ => v1}/config/definitions.json (91%) rename pkg/openai/{ => v1}/config/openai.json (100%) rename pkg/openai/{ => v1}/config/tasks.json (100%) rename pkg/openai/{ => v1}/connector_test.go (100%) rename pkg/openai/{ => v1}/list_models.go (100%) rename pkg/openai/{ => v1}/main.go (100%) rename pkg/openai/{ => v1}/text_embeddings.go (100%) rename pkg/openai/{ => v1}/text_generation.go (100%) rename pkg/openai/{ => v1}/text_to_image.go (100%) rename pkg/openai/{ => v1}/text_to_speech.go (100%) rename pkg/pinecone/{ => v1}/config/definitions.json (91%) rename pkg/pinecone/{ => v1}/config/tasks.json (100%) rename pkg/pinecone/{ => v1}/connector_test.go (100%) rename pkg/pinecone/{ => v1}/main.go (100%) rename pkg/pinecone/{ => v1}/structs.go (100%) rename pkg/redis/{ => v1}/chat_history.go (100%) rename pkg/redis/{ => v1}/client.go (100%) rename pkg/redis/{ => v1}/config/definitions.json (97%) rename pkg/redis/{ => v1}/config/tasks.json (100%) rename pkg/redis/{ => v1}/main.go (100%) rename pkg/restapi/{ => v1}/auth.go (100%) rename pkg/restapi/{ => v1}/client.go (100%) rename pkg/restapi/{ => v1}/config/definitions.json (97%) rename pkg/restapi/{ => v1}/config/tasks.json (100%) rename pkg/restapi/{ => v1}/connector_test.go (100%) rename pkg/restapi/{ => v1}/main.go (100%) rename pkg/stabilityai/{ => v1}/client.go (100%) rename pkg/stabilityai/{ => v1}/config/definitions.json (88%) rename pkg/stabilityai/{ => v1}/config/stabilityai.json (100%) rename pkg/stabilityai/{ => v1}/config/tasks.json (100%) rename pkg/stabilityai/{ => v1}/connector_test.go (100%) rename pkg/stabilityai/{ => v1}/image_to_image.go (100%) rename pkg/stabilityai/{ => v1}/list_engines.go (100%) rename pkg/stabilityai/{ => v1}/main.go (100%) rename pkg/stabilityai/{ => v1}/text_to_image.go (100%) rename pkg/website/{ => v1}/config/definitions.json (83%) rename pkg/website/{ => v1}/config/tasks.json (100%) rename pkg/website/{ => v1}/main.go (100%) rename pkg/website/{ => v1}/scrape_website.go (100%) diff --git a/pkg/airbyte/airbyte.go b/pkg/airbyte/v1/airbyte.go similarity index 100% rename from pkg/airbyte/airbyte.go rename to pkg/airbyte/v1/airbyte.go diff --git a/pkg/airbyte/config/definitions.json b/pkg/airbyte/v1/config/definitions.json similarity index 99% rename from pkg/airbyte/config/definitions.json rename to pkg/airbyte/v1/config/definitions.json index ae020b7..b0b08cc 100644 --- a/pkg/airbyte/config/definitions.json +++ b/pkg/airbyte/v1/config/definitions.json @@ -729,7 +729,7 @@ }, "transformation_priority": { "default": "interactive", - "description": "Interactive run type means that the query is executed as soon as possible, and these queries count towards concurrent rate limit and daily limit. Read more about interactive run type here. Batch queries are queued and started as soon as idle resources are available in the BigQuery shared resource pool, which usually occurs within a few minutes. Batch queries don\u2019t count towards your concurrent rate limit. Read more about batch queries here. The default \"interactive\" value is used if not set explicitly.", + "description": "Interactive run type means that the query is executed as soon as possible, and these queries count towards concurrent rate limit and daily limit. Read more about interactive run type here. Batch queries are queued and started as soon as idle resources are available in the BigQuery shared resource pool, which usually occurs within a few minutes. Batch queries don’t count towards your concurrent rate limit. Read more about batch queries here. The default \"interactive\" value is used if not set explicitly.", "enum": [ "interactive", "batch" @@ -3484,7 +3484,7 @@ "title": "HiveCatalog: Use Apache Hive MetaStore" }, { - "description": "A Hadoop catalog doesn\u2019t need to connect to a Hive MetaStore, but can only be used with HDFS or similar file systems that support atomic rename.", + "description": "A Hadoop catalog doesn’t need to connect to a Hive MetaStore, but can only be used with HDFS or similar file systems that support atomic rename.", "properties": { "catalog_type": { "default": "Hadoop", @@ -4203,7 +4203,7 @@ "endpoint": { "description": "AWS Kinesis endpoint.", "examples": [ - "kinesis.us\u2011west\u20111.amazonaws.com" + "kinesis.us‑west‑1.amazonaws.com" ], "order": 0, "title": "Endpoint", @@ -4219,7 +4219,7 @@ "region": { "description": "AWS region. Your account determines the Regions that are available to you.", "examples": [ - "us\u2011west\u20111" + "us‑west‑1" ], "order": 1, "title": "Region", @@ -11926,6 +11926,8 @@ "airbyte-destination-xata": "airbyte/destination-xata:0.1.1", "airbyte-destination-yugabytedb": "airbyte/destination-yugabytedb:0.1.1", "airbyte-devmate-cloud": "ghcr.io/devmate-cloud/streamr-airbyte-connectors:0.0.1" - } + }, + "version": "1.0.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/airbyte/v1" } ] diff --git a/pkg/airbyte/config/seed/generate_definitions.py b/pkg/airbyte/v1/config/seed/generate_definitions.py similarity index 100% rename from pkg/airbyte/config/seed/generate_definitions.py rename to pkg/airbyte/v1/config/seed/generate_definitions.py diff --git a/pkg/airbyte/config/tasks.json b/pkg/airbyte/v1/config/tasks.json similarity index 100% rename from pkg/airbyte/config/tasks.json rename to pkg/airbyte/v1/config/tasks.json diff --git a/pkg/airbyte/main.go b/pkg/airbyte/v1/main.go similarity index 100% rename from pkg/airbyte/main.go rename to pkg/airbyte/v1/main.go diff --git a/pkg/archetypeai/client.go b/pkg/archetypeai/v1/client.go similarity index 100% rename from pkg/archetypeai/client.go rename to pkg/archetypeai/v1/client.go diff --git a/pkg/archetypeai/config/definitions.json b/pkg/archetypeai/v1/config/definitions.json similarity index 87% rename from pkg/archetypeai/config/definitions.json rename to pkg/archetypeai/v1/config/definitions.json index baedfdb..afc53e5 100644 --- a/pkg/archetypeai/config/definitions.json +++ b/pkg/archetypeai/v1/config/definitions.json @@ -36,6 +36,8 @@ "type": "CONNECTOR_TYPE_AI", "uid": "e414a1f8-5fdf-4292-b050-9f9176254a4b", "vendor": "Archetype AI", - "vendor_attributes": {} + "vendor_attributes": {}, + "version": "1.0.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/archetypeai/v1" } ] diff --git a/pkg/archetypeai/config/tasks.json b/pkg/archetypeai/v1/config/tasks.json similarity index 100% rename from pkg/archetypeai/config/tasks.json rename to pkg/archetypeai/v1/config/tasks.json diff --git a/pkg/archetypeai/connector_test.go b/pkg/archetypeai/v1/connector_test.go similarity index 100% rename from pkg/archetypeai/connector_test.go rename to pkg/archetypeai/v1/connector_test.go diff --git a/pkg/archetypeai/main.go b/pkg/archetypeai/v1/main.go similarity index 100% rename from pkg/archetypeai/main.go rename to pkg/archetypeai/v1/main.go diff --git a/pkg/archetypeai/structs.go b/pkg/archetypeai/v1/structs.go similarity index 100% rename from pkg/archetypeai/structs.go rename to pkg/archetypeai/v1/structs.go diff --git a/pkg/bigquery/config/definitions.json b/pkg/bigquery/v1/config/definitions.json similarity index 92% rename from pkg/bigquery/config/definitions.json rename to pkg/bigquery/v1/config/definitions.json index d7b4ce5..5bc4594 100644 --- a/pkg/bigquery/config/definitions.json +++ b/pkg/bigquery/v1/config/definitions.json @@ -56,6 +56,8 @@ "type": "CONNECTOR_TYPE_DATA", "uid": "e2ffe076-ab2c-4e5e-9587-a613a6b1c146", "vendor": "Google", - "vendor_attributes": {} + "vendor_attributes": {}, + "version": "1.0.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/bigquery/v1" } ] diff --git a/pkg/bigquery/config/tasks.json b/pkg/bigquery/v1/config/tasks.json similarity index 100% rename from pkg/bigquery/config/tasks.json rename to pkg/bigquery/v1/config/tasks.json diff --git a/pkg/bigquery/insert.go b/pkg/bigquery/v1/insert.go similarity index 100% rename from pkg/bigquery/insert.go rename to pkg/bigquery/v1/insert.go diff --git a/pkg/bigquery/main.go b/pkg/bigquery/v1/main.go similarity index 100% rename from pkg/bigquery/main.go rename to pkg/bigquery/v1/main.go diff --git a/pkg/googlecloudstorage/config/definitions.json b/pkg/googlecloudstorage/v1/config/definitions.json similarity index 90% rename from pkg/googlecloudstorage/config/definitions.json rename to pkg/googlecloudstorage/v1/config/definitions.json index d7e11b6..d80de3a 100644 --- a/pkg/googlecloudstorage/config/definitions.json +++ b/pkg/googlecloudstorage/v1/config/definitions.json @@ -43,6 +43,8 @@ "type": "CONNECTOR_TYPE_DATA", "uid": "205cbeff-6f45-4abe-b0a8-cec1a310137f", "vendor": "Google", - "vendor_attributes": {} + "vendor_attributes": {}, + "version": "1.0.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/googlecloudstorage/v1" } ] diff --git a/pkg/googlecloudstorage/config/tasks.json b/pkg/googlecloudstorage/v1/config/tasks.json similarity index 100% rename from pkg/googlecloudstorage/config/tasks.json rename to pkg/googlecloudstorage/v1/config/tasks.json diff --git a/pkg/googlecloudstorage/main.go b/pkg/googlecloudstorage/v1/main.go similarity index 100% rename from pkg/googlecloudstorage/main.go rename to pkg/googlecloudstorage/v1/main.go diff --git a/pkg/googlecloudstorage/upload.go b/pkg/googlecloudstorage/v1/upload.go similarity index 100% rename from pkg/googlecloudstorage/upload.go rename to pkg/googlecloudstorage/v1/upload.go diff --git a/pkg/googlesearch/config/definitions.json b/pkg/googlesearch/v1/config/definitions.json similarity index 92% rename from pkg/googlesearch/config/definitions.json rename to pkg/googlesearch/v1/config/definitions.json index dd727c4..0496da0 100644 --- a/pkg/googlesearch/config/definitions.json +++ b/pkg/googlesearch/v1/config/definitions.json @@ -42,6 +42,8 @@ "type": "CONNECTOR_TYPE_DATA", "uid": "2b1da686-878a-462c-b2c6-a9690199939c", "vendor": "Google", - "vendor_attributes": {} + "vendor_attributes": {}, + "version": "1.0.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/googlesearch/v1" } ] diff --git a/pkg/googlesearch/config/tasks.json b/pkg/googlesearch/v1/config/tasks.json similarity index 100% rename from pkg/googlesearch/config/tasks.json rename to pkg/googlesearch/v1/config/tasks.json diff --git a/pkg/googlesearch/main.go b/pkg/googlesearch/v1/main.go similarity index 100% rename from pkg/googlesearch/main.go rename to pkg/googlesearch/v1/main.go diff --git a/pkg/googlesearch/search.go b/pkg/googlesearch/v1/search.go similarity index 100% rename from pkg/googlesearch/search.go rename to pkg/googlesearch/v1/search.go diff --git a/pkg/huggingface/client.go b/pkg/huggingface/v1/client.go similarity index 100% rename from pkg/huggingface/client.go rename to pkg/huggingface/v1/client.go diff --git a/pkg/huggingface/config/definitions.json b/pkg/huggingface/v1/config/definitions.json similarity index 94% rename from pkg/huggingface/config/definitions.json rename to pkg/huggingface/v1/config/definitions.json index bc2664e..710f795 100644 --- a/pkg/huggingface/config/definitions.json +++ b/pkg/huggingface/v1/config/definitions.json @@ -68,6 +68,8 @@ "type": "CONNECTOR_TYPE_AI", "uid": "0255ef87-33ce-4f88-b9db-8897f8c17233", "vendor": "Hugging Face", - "vendor_attributes": {} + "vendor_attributes": {}, + "version": "1.0.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/huggingface/v1" } ] diff --git a/pkg/huggingface/config/tasks.json b/pkg/huggingface/v1/config/tasks.json similarity index 100% rename from pkg/huggingface/config/tasks.json rename to pkg/huggingface/v1/config/tasks.json diff --git a/pkg/huggingface/connector_test.go b/pkg/huggingface/v1/connector_test.go similarity index 100% rename from pkg/huggingface/connector_test.go rename to pkg/huggingface/v1/connector_test.go diff --git a/pkg/huggingface/main.go b/pkg/huggingface/v1/main.go similarity index 100% rename from pkg/huggingface/main.go rename to pkg/huggingface/v1/main.go diff --git a/pkg/huggingface/structs.go b/pkg/huggingface/v1/structs.go similarity index 100% rename from pkg/huggingface/structs.go rename to pkg/huggingface/v1/structs.go diff --git a/pkg/instill/client.go b/pkg/instill/v1/client.go similarity index 100% rename from pkg/instill/client.go rename to pkg/instill/v1/client.go diff --git a/pkg/instill/config/definitions.json b/pkg/instill/v1/config/definitions.json similarity index 94% rename from pkg/instill/config/definitions.json rename to pkg/instill/v1/config/definitions.json index 861ae0e..2c024d4 100644 --- a/pkg/instill/config/definitions.json +++ b/pkg/instill/v1/config/definitions.json @@ -68,6 +68,8 @@ "type": "CONNECTOR_TYPE_AI", "uid": "ddcf42c3-4c30-4c65-9585-25f1c89b2b48", "vendor": "Instill", - "vendor_attributes": {} + "vendor_attributes": {}, + "version": "1.0.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/instill/v1" } ] diff --git a/pkg/instill/config/tasks.json b/pkg/instill/v1/config/tasks.json similarity index 100% rename from pkg/instill/config/tasks.json rename to pkg/instill/v1/config/tasks.json diff --git a/pkg/instill/image_classification.go b/pkg/instill/v1/image_classification.go similarity index 100% rename from pkg/instill/image_classification.go rename to pkg/instill/v1/image_classification.go diff --git a/pkg/instill/image_to_image.go b/pkg/instill/v1/image_to_image.go similarity index 100% rename from pkg/instill/image_to_image.go rename to pkg/instill/v1/image_to_image.go diff --git a/pkg/instill/instance_segmentation.go b/pkg/instill/v1/instance_segmentation.go similarity index 100% rename from pkg/instill/instance_segmentation.go rename to pkg/instill/v1/instance_segmentation.go diff --git a/pkg/instill/keypoint_detection.go b/pkg/instill/v1/keypoint_detection.go similarity index 100% rename from pkg/instill/keypoint_detection.go rename to pkg/instill/v1/keypoint_detection.go diff --git a/pkg/instill/llm_utils.go b/pkg/instill/v1/llm_utils.go similarity index 100% rename from pkg/instill/llm_utils.go rename to pkg/instill/v1/llm_utils.go diff --git a/pkg/instill/main.go b/pkg/instill/v1/main.go similarity index 100% rename from pkg/instill/main.go rename to pkg/instill/v1/main.go diff --git a/pkg/instill/object_detection.go b/pkg/instill/v1/object_detection.go similarity index 100% rename from pkg/instill/object_detection.go rename to pkg/instill/v1/object_detection.go diff --git a/pkg/instill/ocr.go b/pkg/instill/v1/ocr.go similarity index 100% rename from pkg/instill/ocr.go rename to pkg/instill/v1/ocr.go diff --git a/pkg/instill/semantic_segmentation.go b/pkg/instill/v1/semantic_segmentation.go similarity index 100% rename from pkg/instill/semantic_segmentation.go rename to pkg/instill/v1/semantic_segmentation.go diff --git a/pkg/instill/text_generation.go b/pkg/instill/v1/text_generation.go similarity index 100% rename from pkg/instill/text_generation.go rename to pkg/instill/v1/text_generation.go diff --git a/pkg/instill/text_generation_chat.go b/pkg/instill/v1/text_generation_chat.go similarity index 100% rename from pkg/instill/text_generation_chat.go rename to pkg/instill/v1/text_generation_chat.go diff --git a/pkg/instill/text_to_image.go b/pkg/instill/v1/text_to_image.go similarity index 100% rename from pkg/instill/text_to_image.go rename to pkg/instill/v1/text_to_image.go diff --git a/pkg/instill/unspecified.go b/pkg/instill/v1/unspecified.go similarity index 100% rename from pkg/instill/unspecified.go rename to pkg/instill/v1/unspecified.go diff --git a/pkg/instill/visual_question_answering.go b/pkg/instill/v1/visual_question_answering.go similarity index 100% rename from pkg/instill/visual_question_answering.go rename to pkg/instill/v1/visual_question_answering.go diff --git a/pkg/integration_test.go b/pkg/integration_test.go index b168c4c..e01ee08 100644 --- a/pkg/integration_test.go +++ b/pkg/integration_test.go @@ -12,7 +12,7 @@ import ( "google.golang.org/protobuf/types/known/structpb" "github.com/instill-ai/component/pkg/base" - "github.com/instill-ai/connector/pkg/openai" + "github.com/instill-ai/connector/pkg/openai/v1" "github.com/instill-ai/x/errmsg" ) diff --git a/pkg/main.go b/pkg/main.go index d7ccf8a..7feceb2 100644 --- a/pkg/main.go +++ b/pkg/main.go @@ -8,20 +8,20 @@ import ( "google.golang.org/protobuf/types/known/structpb" "github.com/instill-ai/component/pkg/base" - "github.com/instill-ai/connector/pkg/airbyte" - "github.com/instill-ai/connector/pkg/archetypeai" - "github.com/instill-ai/connector/pkg/bigquery" - "github.com/instill-ai/connector/pkg/googlecloudstorage" - "github.com/instill-ai/connector/pkg/googlesearch" - "github.com/instill-ai/connector/pkg/huggingface" - "github.com/instill-ai/connector/pkg/instill" - "github.com/instill-ai/connector/pkg/numbers" - "github.com/instill-ai/connector/pkg/openai" - "github.com/instill-ai/connector/pkg/pinecone" - "github.com/instill-ai/connector/pkg/redis" - "github.com/instill-ai/connector/pkg/restapi" - "github.com/instill-ai/connector/pkg/stabilityai" - "github.com/instill-ai/connector/pkg/website" + "github.com/instill-ai/connector/pkg/airbyte/v1" + "github.com/instill-ai/connector/pkg/archetypeai/v1" + "github.com/instill-ai/connector/pkg/bigquery/v1" + "github.com/instill-ai/connector/pkg/googlecloudstorage/v1" + "github.com/instill-ai/connector/pkg/googlesearch/v1" + "github.com/instill-ai/connector/pkg/huggingface/v1" + "github.com/instill-ai/connector/pkg/instill/v1" + "github.com/instill-ai/connector/pkg/numbers/v1" + "github.com/instill-ai/connector/pkg/openai/v1" + "github.com/instill-ai/connector/pkg/pinecone/v1" + "github.com/instill-ai/connector/pkg/redis/v1" + "github.com/instill-ai/connector/pkg/restapi/v1" + "github.com/instill-ai/connector/pkg/stabilityai/v1" + "github.com/instill-ai/connector/pkg/website/v1" pipelinePB "github.com/instill-ai/protogen-go/vdp/pipeline/v1beta" ) diff --git a/pkg/numbers/config/definitions.json b/pkg/numbers/v1/config/definitions.json similarity index 89% rename from pkg/numbers/config/definitions.json rename to pkg/numbers/v1/config/definitions.json index 2d3d63d..f2217b5 100644 --- a/pkg/numbers/config/definitions.json +++ b/pkg/numbers/v1/config/definitions.json @@ -34,6 +34,8 @@ "type": "CONNECTOR_TYPE_BLOCKCHAIN", "uid": "70d8664a-d512-4517-a5e8-5d4da81756a7", "vendor": "Numbers Protocol", - "vendor_attributes": {} + "vendor_attributes": {}, + "version": "1.0.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/numbers/v1" } ] diff --git a/pkg/numbers/config/tasks.json b/pkg/numbers/v1/config/tasks.json similarity index 100% rename from pkg/numbers/config/tasks.json rename to pkg/numbers/v1/config/tasks.json diff --git a/pkg/numbers/main.go b/pkg/numbers/v1/main.go similarity index 100% rename from pkg/numbers/main.go rename to pkg/numbers/v1/main.go diff --git a/pkg/openai/audio_transcriptions.go b/pkg/openai/v1/audio_transcriptions.go similarity index 100% rename from pkg/openai/audio_transcriptions.go rename to pkg/openai/v1/audio_transcriptions.go diff --git a/pkg/openai/client.go b/pkg/openai/v1/client.go similarity index 100% rename from pkg/openai/client.go rename to pkg/openai/v1/client.go diff --git a/pkg/openai/config/definitions.json b/pkg/openai/v1/config/definitions.json similarity index 91% rename from pkg/openai/config/definitions.json rename to pkg/openai/v1/config/definitions.json index 46342e2..26af81c 100644 --- a/pkg/openai/config/definitions.json +++ b/pkg/openai/v1/config/definitions.json @@ -43,6 +43,8 @@ "type": "CONNECTOR_TYPE_AI", "uid": "9fb6a2cb-bff5-4c69-bc6d-4538dd8e3362", "vendor": "OpenAI", - "vendor_attributes": {} + "vendor_attributes": {}, + "version": "1.0.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/openai/v1" } ] diff --git a/pkg/openai/config/openai.json b/pkg/openai/v1/config/openai.json similarity index 100% rename from pkg/openai/config/openai.json rename to pkg/openai/v1/config/openai.json diff --git a/pkg/openai/config/tasks.json b/pkg/openai/v1/config/tasks.json similarity index 100% rename from pkg/openai/config/tasks.json rename to pkg/openai/v1/config/tasks.json diff --git a/pkg/openai/connector_test.go b/pkg/openai/v1/connector_test.go similarity index 100% rename from pkg/openai/connector_test.go rename to pkg/openai/v1/connector_test.go diff --git a/pkg/openai/list_models.go b/pkg/openai/v1/list_models.go similarity index 100% rename from pkg/openai/list_models.go rename to pkg/openai/v1/list_models.go diff --git a/pkg/openai/main.go b/pkg/openai/v1/main.go similarity index 100% rename from pkg/openai/main.go rename to pkg/openai/v1/main.go diff --git a/pkg/openai/text_embeddings.go b/pkg/openai/v1/text_embeddings.go similarity index 100% rename from pkg/openai/text_embeddings.go rename to pkg/openai/v1/text_embeddings.go diff --git a/pkg/openai/text_generation.go b/pkg/openai/v1/text_generation.go similarity index 100% rename from pkg/openai/text_generation.go rename to pkg/openai/v1/text_generation.go diff --git a/pkg/openai/text_to_image.go b/pkg/openai/v1/text_to_image.go similarity index 100% rename from pkg/openai/text_to_image.go rename to pkg/openai/v1/text_to_image.go diff --git a/pkg/openai/text_to_speech.go b/pkg/openai/v1/text_to_speech.go similarity index 100% rename from pkg/openai/text_to_speech.go rename to pkg/openai/v1/text_to_speech.go diff --git a/pkg/pinecone/config/definitions.json b/pkg/pinecone/v1/config/definitions.json similarity index 91% rename from pkg/pinecone/config/definitions.json rename to pkg/pinecone/v1/config/definitions.json index 11ac81e..09215b7 100644 --- a/pkg/pinecone/config/definitions.json +++ b/pkg/pinecone/v1/config/definitions.json @@ -43,6 +43,8 @@ "type": "CONNECTOR_TYPE_DATA", "uid": "4b1dcf82-e134-4ba7-992f-f9a02536ec2b", "vendor": "Pinecone", - "vendor_attributes": {} + "vendor_attributes": {}, + "version": "1.0.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/pinecone/v1" } ] diff --git a/pkg/pinecone/config/tasks.json b/pkg/pinecone/v1/config/tasks.json similarity index 100% rename from pkg/pinecone/config/tasks.json rename to pkg/pinecone/v1/config/tasks.json diff --git a/pkg/pinecone/connector_test.go b/pkg/pinecone/v1/connector_test.go similarity index 100% rename from pkg/pinecone/connector_test.go rename to pkg/pinecone/v1/connector_test.go diff --git a/pkg/pinecone/main.go b/pkg/pinecone/v1/main.go similarity index 100% rename from pkg/pinecone/main.go rename to pkg/pinecone/v1/main.go diff --git a/pkg/pinecone/structs.go b/pkg/pinecone/v1/structs.go similarity index 100% rename from pkg/pinecone/structs.go rename to pkg/pinecone/v1/structs.go diff --git a/pkg/redis/chat_history.go b/pkg/redis/v1/chat_history.go similarity index 100% rename from pkg/redis/chat_history.go rename to pkg/redis/v1/chat_history.go diff --git a/pkg/redis/client.go b/pkg/redis/v1/client.go similarity index 100% rename from pkg/redis/client.go rename to pkg/redis/v1/client.go diff --git a/pkg/redis/config/definitions.json b/pkg/redis/v1/config/definitions.json similarity index 97% rename from pkg/redis/config/definitions.json rename to pkg/redis/v1/config/definitions.json index 44c734e..35c3661 100644 --- a/pkg/redis/config/definitions.json +++ b/pkg/redis/v1/config/definitions.json @@ -154,6 +154,8 @@ "type": "CONNECTOR_TYPE_DATA", "uid": "fd0ad325-f2f7-41f3-b247-6c71d571b1b8", "vendor": "Redis Labs", - "vendor_attributes": {} + "vendor_attributes": {}, + "version": "1.0.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/redis/v1" } ] diff --git a/pkg/redis/config/tasks.json b/pkg/redis/v1/config/tasks.json similarity index 100% rename from pkg/redis/config/tasks.json rename to pkg/redis/v1/config/tasks.json diff --git a/pkg/redis/main.go b/pkg/redis/v1/main.go similarity index 100% rename from pkg/redis/main.go rename to pkg/redis/v1/main.go diff --git a/pkg/restapi/auth.go b/pkg/restapi/v1/auth.go similarity index 100% rename from pkg/restapi/auth.go rename to pkg/restapi/v1/auth.go diff --git a/pkg/restapi/client.go b/pkg/restapi/v1/client.go similarity index 100% rename from pkg/restapi/client.go rename to pkg/restapi/v1/client.go diff --git a/pkg/restapi/config/definitions.json b/pkg/restapi/v1/config/definitions.json similarity index 97% rename from pkg/restapi/config/definitions.json rename to pkg/restapi/v1/config/definitions.json index a7c2c43..850faeb 100644 --- a/pkg/restapi/config/definitions.json +++ b/pkg/restapi/v1/config/definitions.json @@ -159,6 +159,8 @@ "type": "CONNECTOR_TYPE_DATA", "uid": "5ee55a5c-6e30-4c7a-80e8-90165a729e0a", "vendor": "", - "vendor_attributes": {} + "vendor_attributes": {}, + "version": "1.0.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/restapi/v1" } ] diff --git a/pkg/restapi/config/tasks.json b/pkg/restapi/v1/config/tasks.json similarity index 100% rename from pkg/restapi/config/tasks.json rename to pkg/restapi/v1/config/tasks.json diff --git a/pkg/restapi/connector_test.go b/pkg/restapi/v1/connector_test.go similarity index 100% rename from pkg/restapi/connector_test.go rename to pkg/restapi/v1/connector_test.go diff --git a/pkg/restapi/main.go b/pkg/restapi/v1/main.go similarity index 100% rename from pkg/restapi/main.go rename to pkg/restapi/v1/main.go diff --git a/pkg/stabilityai/client.go b/pkg/stabilityai/v1/client.go similarity index 100% rename from pkg/stabilityai/client.go rename to pkg/stabilityai/v1/client.go diff --git a/pkg/stabilityai/config/definitions.json b/pkg/stabilityai/v1/config/definitions.json similarity index 88% rename from pkg/stabilityai/config/definitions.json rename to pkg/stabilityai/v1/config/definitions.json index b5cc8e5..4c0f0ee 100644 --- a/pkg/stabilityai/config/definitions.json +++ b/pkg/stabilityai/v1/config/definitions.json @@ -35,6 +35,8 @@ "type": "CONNECTOR_TYPE_AI", "uid": "c86a95cc-7d32-4e22-a290-8c699f6705a4", "vendor": "Stability AI", - "vendor_attributes": {} + "vendor_attributes": {}, + "version": "1.0.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/stabilityai/v1" } ] diff --git a/pkg/stabilityai/config/stabilityai.json b/pkg/stabilityai/v1/config/stabilityai.json similarity index 100% rename from pkg/stabilityai/config/stabilityai.json rename to pkg/stabilityai/v1/config/stabilityai.json diff --git a/pkg/stabilityai/config/tasks.json b/pkg/stabilityai/v1/config/tasks.json similarity index 100% rename from pkg/stabilityai/config/tasks.json rename to pkg/stabilityai/v1/config/tasks.json diff --git a/pkg/stabilityai/connector_test.go b/pkg/stabilityai/v1/connector_test.go similarity index 100% rename from pkg/stabilityai/connector_test.go rename to pkg/stabilityai/v1/connector_test.go diff --git a/pkg/stabilityai/image_to_image.go b/pkg/stabilityai/v1/image_to_image.go similarity index 100% rename from pkg/stabilityai/image_to_image.go rename to pkg/stabilityai/v1/image_to_image.go diff --git a/pkg/stabilityai/list_engines.go b/pkg/stabilityai/v1/list_engines.go similarity index 100% rename from pkg/stabilityai/list_engines.go rename to pkg/stabilityai/v1/list_engines.go diff --git a/pkg/stabilityai/main.go b/pkg/stabilityai/v1/main.go similarity index 100% rename from pkg/stabilityai/main.go rename to pkg/stabilityai/v1/main.go diff --git a/pkg/stabilityai/text_to_image.go b/pkg/stabilityai/v1/text_to_image.go similarity index 100% rename from pkg/stabilityai/text_to_image.go rename to pkg/stabilityai/v1/text_to_image.go diff --git a/pkg/website/config/definitions.json b/pkg/website/v1/config/definitions.json similarity index 83% rename from pkg/website/config/definitions.json rename to pkg/website/v1/config/definitions.json index cd00656..e20d382 100644 --- a/pkg/website/config/definitions.json +++ b/pkg/website/v1/config/definitions.json @@ -23,6 +23,8 @@ "type": "CONNECTOR_TYPE_DATA", "uid": "98909958-db7d-4dfe-9858-7761904be17e", "vendor": "", - "vendor_attributes": {} + "vendor_attributes": {}, + "version": "1.0.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/website/v1" } ] diff --git a/pkg/website/config/tasks.json b/pkg/website/v1/config/tasks.json similarity index 100% rename from pkg/website/config/tasks.json rename to pkg/website/v1/config/tasks.json diff --git a/pkg/website/main.go b/pkg/website/v1/main.go similarity index 100% rename from pkg/website/main.go rename to pkg/website/v1/main.go diff --git a/pkg/website/scrape_website.go b/pkg/website/v1/scrape_website.go similarity index 100% rename from pkg/website/scrape_website.go rename to pkg/website/v1/scrape_website.go From de14d324ba84935e140b574e2ea7b792a19c2143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Vall=C3=A9s?= Date: Thu, 8 Feb 2024 09:25:34 +0100 Subject: [PATCH 3/3] fix: set initial version to v0.1.0-alpha --- pkg/airbyte/{v1 => v0}/airbyte.go | 0 .../{v1 => v0}/config/definitions.json | 4 +-- .../config/seed/generate_definitions.py | 0 pkg/airbyte/{v1 => v0}/config/tasks.json | 0 pkg/airbyte/{v1 => v0}/main.go | 0 pkg/archetypeai/{v1 => v0}/client.go | 0 .../{v1 => v0}/config/definitions.json | 4 +-- pkg/archetypeai/{v1 => v0}/config/tasks.json | 0 pkg/archetypeai/{v1 => v0}/connector_test.go | 0 pkg/archetypeai/{v1 => v0}/main.go | 0 pkg/archetypeai/{v1 => v0}/structs.go | 0 .../{v1 => v0}/config/definitions.json | 4 +-- pkg/bigquery/{v1 => v0}/config/tasks.json | 0 pkg/bigquery/{v1 => v0}/insert.go | 0 pkg/bigquery/{v1 => v0}/main.go | 0 .../{v1 => v0}/config/definitions.json | 4 +-- .../{v1 => v0}/config/tasks.json | 0 pkg/googlecloudstorage/{v1 => v0}/main.go | 0 pkg/googlecloudstorage/{v1 => v0}/upload.go | 0 .../{v1 => v0}/config/definitions.json | 4 +-- pkg/googlesearch/{v1 => v0}/config/tasks.json | 0 pkg/googlesearch/{v1 => v0}/main.go | 0 pkg/googlesearch/{v1 => v0}/search.go | 0 pkg/huggingface/{v1 => v0}/client.go | 0 .../{v1 => v0}/config/definitions.json | 4 +-- pkg/huggingface/{v1 => v0}/config/tasks.json | 0 pkg/huggingface/{v1 => v0}/connector_test.go | 0 pkg/huggingface/{v1 => v0}/main.go | 0 pkg/huggingface/{v1 => v0}/structs.go | 0 pkg/instill/{v1 => v0}/client.go | 0 .../{v1 => v0}/config/definitions.json | 4 +-- pkg/instill/{v1 => v0}/config/tasks.json | 0 .../{v1 => v0}/image_classification.go | 0 pkg/instill/{v1 => v0}/image_to_image.go | 0 .../{v1 => v0}/instance_segmentation.go | 0 pkg/instill/{v1 => v0}/keypoint_detection.go | 0 pkg/instill/{v1 => v0}/llm_utils.go | 0 pkg/instill/{v1 => v0}/main.go | 0 pkg/instill/{v1 => v0}/object_detection.go | 0 pkg/instill/{v1 => v0}/ocr.go | 0 .../{v1 => v0}/semantic_segmentation.go | 0 pkg/instill/{v1 => v0}/text_generation.go | 0 .../{v1 => v0}/text_generation_chat.go | 0 pkg/instill/{v1 => v0}/text_to_image.go | 0 pkg/instill/{v1 => v0}/unspecified.go | 0 .../{v1 => v0}/visual_question_answering.go | 0 pkg/integration_test.go | 2 +- pkg/main.go | 28 +++++++++---------- .../{v1 => v0}/config/definitions.json | 4 +-- pkg/numbers/{v1 => v0}/config/tasks.json | 0 pkg/numbers/{v1 => v0}/main.go | 0 pkg/openai/{v1 => v0}/audio_transcriptions.go | 0 pkg/openai/{v1 => v0}/client.go | 0 pkg/openai/{v1 => v0}/config/definitions.json | 4 +-- pkg/openai/{v1 => v0}/config/openai.json | 0 pkg/openai/{v1 => v0}/config/tasks.json | 0 pkg/openai/{v1 => v0}/connector_test.go | 0 pkg/openai/{v1 => v0}/list_models.go | 0 pkg/openai/{v1 => v0}/main.go | 0 pkg/openai/{v1 => v0}/text_embeddings.go | 0 pkg/openai/{v1 => v0}/text_generation.go | 0 pkg/openai/{v1 => v0}/text_to_image.go | 0 pkg/openai/{v1 => v0}/text_to_speech.go | 0 .../{v1 => v0}/config/definitions.json | 4 +-- pkg/pinecone/{v1 => v0}/config/tasks.json | 0 pkg/pinecone/{v1 => v0}/connector_test.go | 0 pkg/pinecone/{v1 => v0}/main.go | 0 pkg/pinecone/{v1 => v0}/structs.go | 0 pkg/redis/{v1 => v0}/chat_history.go | 0 pkg/redis/{v1 => v0}/client.go | 0 pkg/redis/{v1 => v0}/config/definitions.json | 4 +-- pkg/redis/{v1 => v0}/config/tasks.json | 0 pkg/redis/{v1 => v0}/main.go | 0 pkg/restapi/{v1 => v0}/auth.go | 0 pkg/restapi/{v1 => v0}/client.go | 0 .../{v1 => v0}/config/definitions.json | 4 +-- pkg/restapi/{v1 => v0}/config/tasks.json | 0 pkg/restapi/{v1 => v0}/connector_test.go | 0 pkg/restapi/{v1 => v0}/main.go | 0 pkg/stabilityai/{v1 => v0}/client.go | 0 .../{v1 => v0}/config/definitions.json | 4 +-- .../{v1 => v0}/config/stabilityai.json | 0 pkg/stabilityai/{v1 => v0}/config/tasks.json | 0 pkg/stabilityai/{v1 => v0}/connector_test.go | 0 pkg/stabilityai/{v1 => v0}/image_to_image.go | 0 pkg/stabilityai/{v1 => v0}/list_engines.go | 0 pkg/stabilityai/{v1 => v0}/main.go | 0 pkg/stabilityai/{v1 => v0}/text_to_image.go | 0 .../{v1 => v0}/config/definitions.json | 4 +-- pkg/website/{v1 => v0}/config/tasks.json | 0 pkg/website/{v1 => v0}/main.go | 0 pkg/website/{v1 => v0}/scrape_website.go | 0 92 files changed, 43 insertions(+), 43 deletions(-) rename pkg/airbyte/{v1 => v0}/airbyte.go (100%) rename pkg/airbyte/{v1 => v0}/config/definitions.json (99%) rename pkg/airbyte/{v1 => v0}/config/seed/generate_definitions.py (100%) rename pkg/airbyte/{v1 => v0}/config/tasks.json (100%) rename pkg/airbyte/{v1 => v0}/main.go (100%) rename pkg/archetypeai/{v1 => v0}/client.go (100%) rename pkg/archetypeai/{v1 => v0}/config/definitions.json (95%) rename pkg/archetypeai/{v1 => v0}/config/tasks.json (100%) rename pkg/archetypeai/{v1 => v0}/connector_test.go (100%) rename pkg/archetypeai/{v1 => v0}/main.go (100%) rename pkg/archetypeai/{v1 => v0}/structs.go (100%) rename pkg/bigquery/{v1 => v0}/config/definitions.json (97%) rename pkg/bigquery/{v1 => v0}/config/tasks.json (100%) rename pkg/bigquery/{v1 => v0}/insert.go (100%) rename pkg/bigquery/{v1 => v0}/main.go (100%) rename pkg/googlecloudstorage/{v1 => v0}/config/definitions.json (96%) rename pkg/googlecloudstorage/{v1 => v0}/config/tasks.json (100%) rename pkg/googlecloudstorage/{v1 => v0}/main.go (100%) rename pkg/googlecloudstorage/{v1 => v0}/upload.go (100%) rename pkg/googlesearch/{v1 => v0}/config/definitions.json (97%) rename pkg/googlesearch/{v1 => v0}/config/tasks.json (100%) rename pkg/googlesearch/{v1 => v0}/main.go (100%) rename pkg/googlesearch/{v1 => v0}/search.go (100%) rename pkg/huggingface/{v1 => v0}/client.go (100%) rename pkg/huggingface/{v1 => v0}/config/definitions.json (98%) rename pkg/huggingface/{v1 => v0}/config/tasks.json (100%) rename pkg/huggingface/{v1 => v0}/connector_test.go (100%) rename pkg/huggingface/{v1 => v0}/main.go (100%) rename pkg/huggingface/{v1 => v0}/structs.go (100%) rename pkg/instill/{v1 => v0}/client.go (100%) rename pkg/instill/{v1 => v0}/config/definitions.json (98%) rename pkg/instill/{v1 => v0}/config/tasks.json (100%) rename pkg/instill/{v1 => v0}/image_classification.go (100%) rename pkg/instill/{v1 => v0}/image_to_image.go (100%) rename pkg/instill/{v1 => v0}/instance_segmentation.go (100%) rename pkg/instill/{v1 => v0}/keypoint_detection.go (100%) rename pkg/instill/{v1 => v0}/llm_utils.go (100%) rename pkg/instill/{v1 => v0}/main.go (100%) rename pkg/instill/{v1 => v0}/object_detection.go (100%) rename pkg/instill/{v1 => v0}/ocr.go (100%) rename pkg/instill/{v1 => v0}/semantic_segmentation.go (100%) rename pkg/instill/{v1 => v0}/text_generation.go (100%) rename pkg/instill/{v1 => v0}/text_generation_chat.go (100%) rename pkg/instill/{v1 => v0}/text_to_image.go (100%) rename pkg/instill/{v1 => v0}/unspecified.go (100%) rename pkg/instill/{v1 => v0}/visual_question_answering.go (100%) rename pkg/numbers/{v1 => v0}/config/definitions.json (96%) rename pkg/numbers/{v1 => v0}/config/tasks.json (100%) rename pkg/numbers/{v1 => v0}/main.go (100%) rename pkg/openai/{v1 => v0}/audio_transcriptions.go (100%) rename pkg/openai/{v1 => v0}/client.go (100%) rename pkg/openai/{v1 => v0}/config/definitions.json (97%) rename pkg/openai/{v1 => v0}/config/openai.json (100%) rename pkg/openai/{v1 => v0}/config/tasks.json (100%) rename pkg/openai/{v1 => v0}/connector_test.go (100%) rename pkg/openai/{v1 => v0}/list_models.go (100%) rename pkg/openai/{v1 => v0}/main.go (100%) rename pkg/openai/{v1 => v0}/text_embeddings.go (100%) rename pkg/openai/{v1 => v0}/text_generation.go (100%) rename pkg/openai/{v1 => v0}/text_to_image.go (100%) rename pkg/openai/{v1 => v0}/text_to_speech.go (100%) rename pkg/pinecone/{v1 => v0}/config/definitions.json (97%) rename pkg/pinecone/{v1 => v0}/config/tasks.json (100%) rename pkg/pinecone/{v1 => v0}/connector_test.go (100%) rename pkg/pinecone/{v1 => v0}/main.go (100%) rename pkg/pinecone/{v1 => v0}/structs.go (100%) rename pkg/redis/{v1 => v0}/chat_history.go (100%) rename pkg/redis/{v1 => v0}/client.go (100%) rename pkg/redis/{v1 => v0}/config/definitions.json (99%) rename pkg/redis/{v1 => v0}/config/tasks.json (100%) rename pkg/redis/{v1 => v0}/main.go (100%) rename pkg/restapi/{v1 => v0}/auth.go (100%) rename pkg/restapi/{v1 => v0}/client.go (100%) rename pkg/restapi/{v1 => v0}/config/definitions.json (99%) rename pkg/restapi/{v1 => v0}/config/tasks.json (100%) rename pkg/restapi/{v1 => v0}/connector_test.go (100%) rename pkg/restapi/{v1 => v0}/main.go (100%) rename pkg/stabilityai/{v1 => v0}/client.go (100%) rename pkg/stabilityai/{v1 => v0}/config/definitions.json (96%) rename pkg/stabilityai/{v1 => v0}/config/stabilityai.json (100%) rename pkg/stabilityai/{v1 => v0}/config/tasks.json (100%) rename pkg/stabilityai/{v1 => v0}/connector_test.go (100%) rename pkg/stabilityai/{v1 => v0}/image_to_image.go (100%) rename pkg/stabilityai/{v1 => v0}/list_engines.go (100%) rename pkg/stabilityai/{v1 => v0}/main.go (100%) rename pkg/stabilityai/{v1 => v0}/text_to_image.go (100%) rename pkg/website/{v1 => v0}/config/definitions.json (94%) rename pkg/website/{v1 => v0}/config/tasks.json (100%) rename pkg/website/{v1 => v0}/main.go (100%) rename pkg/website/{v1 => v0}/scrape_website.go (100%) diff --git a/pkg/airbyte/v1/airbyte.go b/pkg/airbyte/v0/airbyte.go similarity index 100% rename from pkg/airbyte/v1/airbyte.go rename to pkg/airbyte/v0/airbyte.go diff --git a/pkg/airbyte/v1/config/definitions.json b/pkg/airbyte/v0/config/definitions.json similarity index 99% rename from pkg/airbyte/v1/config/definitions.json rename to pkg/airbyte/v0/config/definitions.json index b0b08cc..5ba6765 100644 --- a/pkg/airbyte/v1/config/definitions.json +++ b/pkg/airbyte/v0/config/definitions.json @@ -11927,7 +11927,7 @@ "airbyte-destination-yugabytedb": "airbyte/destination-yugabytedb:0.1.1", "airbyte-devmate-cloud": "ghcr.io/devmate-cloud/streamr-airbyte-connectors:0.0.1" }, - "version": "1.0.0-alpha", - "source_url": "github.com/instill-ai/connector/blob/main/pkg/airbyte/v1" + "version": "0.1.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/airbyte/v0" } ] diff --git a/pkg/airbyte/v1/config/seed/generate_definitions.py b/pkg/airbyte/v0/config/seed/generate_definitions.py similarity index 100% rename from pkg/airbyte/v1/config/seed/generate_definitions.py rename to pkg/airbyte/v0/config/seed/generate_definitions.py diff --git a/pkg/airbyte/v1/config/tasks.json b/pkg/airbyte/v0/config/tasks.json similarity index 100% rename from pkg/airbyte/v1/config/tasks.json rename to pkg/airbyte/v0/config/tasks.json diff --git a/pkg/airbyte/v1/main.go b/pkg/airbyte/v0/main.go similarity index 100% rename from pkg/airbyte/v1/main.go rename to pkg/airbyte/v0/main.go diff --git a/pkg/archetypeai/v1/client.go b/pkg/archetypeai/v0/client.go similarity index 100% rename from pkg/archetypeai/v1/client.go rename to pkg/archetypeai/v0/client.go diff --git a/pkg/archetypeai/v1/config/definitions.json b/pkg/archetypeai/v0/config/definitions.json similarity index 95% rename from pkg/archetypeai/v1/config/definitions.json rename to pkg/archetypeai/v0/config/definitions.json index afc53e5..1c553a8 100644 --- a/pkg/archetypeai/v1/config/definitions.json +++ b/pkg/archetypeai/v0/config/definitions.json @@ -37,7 +37,7 @@ "uid": "e414a1f8-5fdf-4292-b050-9f9176254a4b", "vendor": "Archetype AI", "vendor_attributes": {}, - "version": "1.0.0-alpha", - "source_url": "github.com/instill-ai/connector/blob/main/pkg/archetypeai/v1" + "version": "0.1.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/archetypeai/v0" } ] diff --git a/pkg/archetypeai/v1/config/tasks.json b/pkg/archetypeai/v0/config/tasks.json similarity index 100% rename from pkg/archetypeai/v1/config/tasks.json rename to pkg/archetypeai/v0/config/tasks.json diff --git a/pkg/archetypeai/v1/connector_test.go b/pkg/archetypeai/v0/connector_test.go similarity index 100% rename from pkg/archetypeai/v1/connector_test.go rename to pkg/archetypeai/v0/connector_test.go diff --git a/pkg/archetypeai/v1/main.go b/pkg/archetypeai/v0/main.go similarity index 100% rename from pkg/archetypeai/v1/main.go rename to pkg/archetypeai/v0/main.go diff --git a/pkg/archetypeai/v1/structs.go b/pkg/archetypeai/v0/structs.go similarity index 100% rename from pkg/archetypeai/v1/structs.go rename to pkg/archetypeai/v0/structs.go diff --git a/pkg/bigquery/v1/config/definitions.json b/pkg/bigquery/v0/config/definitions.json similarity index 97% rename from pkg/bigquery/v1/config/definitions.json rename to pkg/bigquery/v0/config/definitions.json index 5bc4594..8ece819 100644 --- a/pkg/bigquery/v1/config/definitions.json +++ b/pkg/bigquery/v0/config/definitions.json @@ -57,7 +57,7 @@ "uid": "e2ffe076-ab2c-4e5e-9587-a613a6b1c146", "vendor": "Google", "vendor_attributes": {}, - "version": "1.0.0-alpha", - "source_url": "github.com/instill-ai/connector/blob/main/pkg/bigquery/v1" + "version": "0.1.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/bigquery/v0" } ] diff --git a/pkg/bigquery/v1/config/tasks.json b/pkg/bigquery/v0/config/tasks.json similarity index 100% rename from pkg/bigquery/v1/config/tasks.json rename to pkg/bigquery/v0/config/tasks.json diff --git a/pkg/bigquery/v1/insert.go b/pkg/bigquery/v0/insert.go similarity index 100% rename from pkg/bigquery/v1/insert.go rename to pkg/bigquery/v0/insert.go diff --git a/pkg/bigquery/v1/main.go b/pkg/bigquery/v0/main.go similarity index 100% rename from pkg/bigquery/v1/main.go rename to pkg/bigquery/v0/main.go diff --git a/pkg/googlecloudstorage/v1/config/definitions.json b/pkg/googlecloudstorage/v0/config/definitions.json similarity index 96% rename from pkg/googlecloudstorage/v1/config/definitions.json rename to pkg/googlecloudstorage/v0/config/definitions.json index d80de3a..ccd56cf 100644 --- a/pkg/googlecloudstorage/v1/config/definitions.json +++ b/pkg/googlecloudstorage/v0/config/definitions.json @@ -44,7 +44,7 @@ "uid": "205cbeff-6f45-4abe-b0a8-cec1a310137f", "vendor": "Google", "vendor_attributes": {}, - "version": "1.0.0-alpha", - "source_url": "github.com/instill-ai/connector/blob/main/pkg/googlecloudstorage/v1" + "version": "0.1.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/googlecloudstorage/v0" } ] diff --git a/pkg/googlecloudstorage/v1/config/tasks.json b/pkg/googlecloudstorage/v0/config/tasks.json similarity index 100% rename from pkg/googlecloudstorage/v1/config/tasks.json rename to pkg/googlecloudstorage/v0/config/tasks.json diff --git a/pkg/googlecloudstorage/v1/main.go b/pkg/googlecloudstorage/v0/main.go similarity index 100% rename from pkg/googlecloudstorage/v1/main.go rename to pkg/googlecloudstorage/v0/main.go diff --git a/pkg/googlecloudstorage/v1/upload.go b/pkg/googlecloudstorage/v0/upload.go similarity index 100% rename from pkg/googlecloudstorage/v1/upload.go rename to pkg/googlecloudstorage/v0/upload.go diff --git a/pkg/googlesearch/v1/config/definitions.json b/pkg/googlesearch/v0/config/definitions.json similarity index 97% rename from pkg/googlesearch/v1/config/definitions.json rename to pkg/googlesearch/v0/config/definitions.json index 0496da0..c6f48db 100644 --- a/pkg/googlesearch/v1/config/definitions.json +++ b/pkg/googlesearch/v0/config/definitions.json @@ -43,7 +43,7 @@ "uid": "2b1da686-878a-462c-b2c6-a9690199939c", "vendor": "Google", "vendor_attributes": {}, - "version": "1.0.0-alpha", - "source_url": "github.com/instill-ai/connector/blob/main/pkg/googlesearch/v1" + "version": "0.1.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/googlesearch/v0" } ] diff --git a/pkg/googlesearch/v1/config/tasks.json b/pkg/googlesearch/v0/config/tasks.json similarity index 100% rename from pkg/googlesearch/v1/config/tasks.json rename to pkg/googlesearch/v0/config/tasks.json diff --git a/pkg/googlesearch/v1/main.go b/pkg/googlesearch/v0/main.go similarity index 100% rename from pkg/googlesearch/v1/main.go rename to pkg/googlesearch/v0/main.go diff --git a/pkg/googlesearch/v1/search.go b/pkg/googlesearch/v0/search.go similarity index 100% rename from pkg/googlesearch/v1/search.go rename to pkg/googlesearch/v0/search.go diff --git a/pkg/huggingface/v1/client.go b/pkg/huggingface/v0/client.go similarity index 100% rename from pkg/huggingface/v1/client.go rename to pkg/huggingface/v0/client.go diff --git a/pkg/huggingface/v1/config/definitions.json b/pkg/huggingface/v0/config/definitions.json similarity index 98% rename from pkg/huggingface/v1/config/definitions.json rename to pkg/huggingface/v0/config/definitions.json index 710f795..d8bddf5 100644 --- a/pkg/huggingface/v1/config/definitions.json +++ b/pkg/huggingface/v0/config/definitions.json @@ -69,7 +69,7 @@ "uid": "0255ef87-33ce-4f88-b9db-8897f8c17233", "vendor": "Hugging Face", "vendor_attributes": {}, - "version": "1.0.0-alpha", - "source_url": "github.com/instill-ai/connector/blob/main/pkg/huggingface/v1" + "version": "0.1.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/huggingface/v0" } ] diff --git a/pkg/huggingface/v1/config/tasks.json b/pkg/huggingface/v0/config/tasks.json similarity index 100% rename from pkg/huggingface/v1/config/tasks.json rename to pkg/huggingface/v0/config/tasks.json diff --git a/pkg/huggingface/v1/connector_test.go b/pkg/huggingface/v0/connector_test.go similarity index 100% rename from pkg/huggingface/v1/connector_test.go rename to pkg/huggingface/v0/connector_test.go diff --git a/pkg/huggingface/v1/main.go b/pkg/huggingface/v0/main.go similarity index 100% rename from pkg/huggingface/v1/main.go rename to pkg/huggingface/v0/main.go diff --git a/pkg/huggingface/v1/structs.go b/pkg/huggingface/v0/structs.go similarity index 100% rename from pkg/huggingface/v1/structs.go rename to pkg/huggingface/v0/structs.go diff --git a/pkg/instill/v1/client.go b/pkg/instill/v0/client.go similarity index 100% rename from pkg/instill/v1/client.go rename to pkg/instill/v0/client.go diff --git a/pkg/instill/v1/config/definitions.json b/pkg/instill/v0/config/definitions.json similarity index 98% rename from pkg/instill/v1/config/definitions.json rename to pkg/instill/v0/config/definitions.json index 2c024d4..fc251bb 100644 --- a/pkg/instill/v1/config/definitions.json +++ b/pkg/instill/v0/config/definitions.json @@ -69,7 +69,7 @@ "uid": "ddcf42c3-4c30-4c65-9585-25f1c89b2b48", "vendor": "Instill", "vendor_attributes": {}, - "version": "1.0.0-alpha", - "source_url": "github.com/instill-ai/connector/blob/main/pkg/instill/v1" + "version": "0.1.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/instill/v0" } ] diff --git a/pkg/instill/v1/config/tasks.json b/pkg/instill/v0/config/tasks.json similarity index 100% rename from pkg/instill/v1/config/tasks.json rename to pkg/instill/v0/config/tasks.json diff --git a/pkg/instill/v1/image_classification.go b/pkg/instill/v0/image_classification.go similarity index 100% rename from pkg/instill/v1/image_classification.go rename to pkg/instill/v0/image_classification.go diff --git a/pkg/instill/v1/image_to_image.go b/pkg/instill/v0/image_to_image.go similarity index 100% rename from pkg/instill/v1/image_to_image.go rename to pkg/instill/v0/image_to_image.go diff --git a/pkg/instill/v1/instance_segmentation.go b/pkg/instill/v0/instance_segmentation.go similarity index 100% rename from pkg/instill/v1/instance_segmentation.go rename to pkg/instill/v0/instance_segmentation.go diff --git a/pkg/instill/v1/keypoint_detection.go b/pkg/instill/v0/keypoint_detection.go similarity index 100% rename from pkg/instill/v1/keypoint_detection.go rename to pkg/instill/v0/keypoint_detection.go diff --git a/pkg/instill/v1/llm_utils.go b/pkg/instill/v0/llm_utils.go similarity index 100% rename from pkg/instill/v1/llm_utils.go rename to pkg/instill/v0/llm_utils.go diff --git a/pkg/instill/v1/main.go b/pkg/instill/v0/main.go similarity index 100% rename from pkg/instill/v1/main.go rename to pkg/instill/v0/main.go diff --git a/pkg/instill/v1/object_detection.go b/pkg/instill/v0/object_detection.go similarity index 100% rename from pkg/instill/v1/object_detection.go rename to pkg/instill/v0/object_detection.go diff --git a/pkg/instill/v1/ocr.go b/pkg/instill/v0/ocr.go similarity index 100% rename from pkg/instill/v1/ocr.go rename to pkg/instill/v0/ocr.go diff --git a/pkg/instill/v1/semantic_segmentation.go b/pkg/instill/v0/semantic_segmentation.go similarity index 100% rename from pkg/instill/v1/semantic_segmentation.go rename to pkg/instill/v0/semantic_segmentation.go diff --git a/pkg/instill/v1/text_generation.go b/pkg/instill/v0/text_generation.go similarity index 100% rename from pkg/instill/v1/text_generation.go rename to pkg/instill/v0/text_generation.go diff --git a/pkg/instill/v1/text_generation_chat.go b/pkg/instill/v0/text_generation_chat.go similarity index 100% rename from pkg/instill/v1/text_generation_chat.go rename to pkg/instill/v0/text_generation_chat.go diff --git a/pkg/instill/v1/text_to_image.go b/pkg/instill/v0/text_to_image.go similarity index 100% rename from pkg/instill/v1/text_to_image.go rename to pkg/instill/v0/text_to_image.go diff --git a/pkg/instill/v1/unspecified.go b/pkg/instill/v0/unspecified.go similarity index 100% rename from pkg/instill/v1/unspecified.go rename to pkg/instill/v0/unspecified.go diff --git a/pkg/instill/v1/visual_question_answering.go b/pkg/instill/v0/visual_question_answering.go similarity index 100% rename from pkg/instill/v1/visual_question_answering.go rename to pkg/instill/v0/visual_question_answering.go diff --git a/pkg/integration_test.go b/pkg/integration_test.go index e01ee08..1945355 100644 --- a/pkg/integration_test.go +++ b/pkg/integration_test.go @@ -12,7 +12,7 @@ import ( "google.golang.org/protobuf/types/known/structpb" "github.com/instill-ai/component/pkg/base" - "github.com/instill-ai/connector/pkg/openai/v1" + "github.com/instill-ai/connector/pkg/openai/v0" "github.com/instill-ai/x/errmsg" ) diff --git a/pkg/main.go b/pkg/main.go index 7feceb2..5daa547 100644 --- a/pkg/main.go +++ b/pkg/main.go @@ -8,20 +8,20 @@ import ( "google.golang.org/protobuf/types/known/structpb" "github.com/instill-ai/component/pkg/base" - "github.com/instill-ai/connector/pkg/airbyte/v1" - "github.com/instill-ai/connector/pkg/archetypeai/v1" - "github.com/instill-ai/connector/pkg/bigquery/v1" - "github.com/instill-ai/connector/pkg/googlecloudstorage/v1" - "github.com/instill-ai/connector/pkg/googlesearch/v1" - "github.com/instill-ai/connector/pkg/huggingface/v1" - "github.com/instill-ai/connector/pkg/instill/v1" - "github.com/instill-ai/connector/pkg/numbers/v1" - "github.com/instill-ai/connector/pkg/openai/v1" - "github.com/instill-ai/connector/pkg/pinecone/v1" - "github.com/instill-ai/connector/pkg/redis/v1" - "github.com/instill-ai/connector/pkg/restapi/v1" - "github.com/instill-ai/connector/pkg/stabilityai/v1" - "github.com/instill-ai/connector/pkg/website/v1" + "github.com/instill-ai/connector/pkg/airbyte/v0" + "github.com/instill-ai/connector/pkg/archetypeai/v0" + "github.com/instill-ai/connector/pkg/bigquery/v0" + "github.com/instill-ai/connector/pkg/googlecloudstorage/v0" + "github.com/instill-ai/connector/pkg/googlesearch/v0" + "github.com/instill-ai/connector/pkg/huggingface/v0" + "github.com/instill-ai/connector/pkg/instill/v0" + "github.com/instill-ai/connector/pkg/numbers/v0" + "github.com/instill-ai/connector/pkg/openai/v0" + "github.com/instill-ai/connector/pkg/pinecone/v0" + "github.com/instill-ai/connector/pkg/redis/v0" + "github.com/instill-ai/connector/pkg/restapi/v0" + "github.com/instill-ai/connector/pkg/stabilityai/v0" + "github.com/instill-ai/connector/pkg/website/v0" pipelinePB "github.com/instill-ai/protogen-go/vdp/pipeline/v1beta" ) diff --git a/pkg/numbers/v1/config/definitions.json b/pkg/numbers/v0/config/definitions.json similarity index 96% rename from pkg/numbers/v1/config/definitions.json rename to pkg/numbers/v0/config/definitions.json index f2217b5..25922b5 100644 --- a/pkg/numbers/v1/config/definitions.json +++ b/pkg/numbers/v0/config/definitions.json @@ -35,7 +35,7 @@ "uid": "70d8664a-d512-4517-a5e8-5d4da81756a7", "vendor": "Numbers Protocol", "vendor_attributes": {}, - "version": "1.0.0-alpha", - "source_url": "github.com/instill-ai/connector/blob/main/pkg/numbers/v1" + "version": "0.1.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/numbers/v0" } ] diff --git a/pkg/numbers/v1/config/tasks.json b/pkg/numbers/v0/config/tasks.json similarity index 100% rename from pkg/numbers/v1/config/tasks.json rename to pkg/numbers/v0/config/tasks.json diff --git a/pkg/numbers/v1/main.go b/pkg/numbers/v0/main.go similarity index 100% rename from pkg/numbers/v1/main.go rename to pkg/numbers/v0/main.go diff --git a/pkg/openai/v1/audio_transcriptions.go b/pkg/openai/v0/audio_transcriptions.go similarity index 100% rename from pkg/openai/v1/audio_transcriptions.go rename to pkg/openai/v0/audio_transcriptions.go diff --git a/pkg/openai/v1/client.go b/pkg/openai/v0/client.go similarity index 100% rename from pkg/openai/v1/client.go rename to pkg/openai/v0/client.go diff --git a/pkg/openai/v1/config/definitions.json b/pkg/openai/v0/config/definitions.json similarity index 97% rename from pkg/openai/v1/config/definitions.json rename to pkg/openai/v0/config/definitions.json index 26af81c..39d6724 100644 --- a/pkg/openai/v1/config/definitions.json +++ b/pkg/openai/v0/config/definitions.json @@ -44,7 +44,7 @@ "uid": "9fb6a2cb-bff5-4c69-bc6d-4538dd8e3362", "vendor": "OpenAI", "vendor_attributes": {}, - "version": "1.0.0-alpha", - "source_url": "github.com/instill-ai/connector/blob/main/pkg/openai/v1" + "version": "0.1.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/openai/v0" } ] diff --git a/pkg/openai/v1/config/openai.json b/pkg/openai/v0/config/openai.json similarity index 100% rename from pkg/openai/v1/config/openai.json rename to pkg/openai/v0/config/openai.json diff --git a/pkg/openai/v1/config/tasks.json b/pkg/openai/v0/config/tasks.json similarity index 100% rename from pkg/openai/v1/config/tasks.json rename to pkg/openai/v0/config/tasks.json diff --git a/pkg/openai/v1/connector_test.go b/pkg/openai/v0/connector_test.go similarity index 100% rename from pkg/openai/v1/connector_test.go rename to pkg/openai/v0/connector_test.go diff --git a/pkg/openai/v1/list_models.go b/pkg/openai/v0/list_models.go similarity index 100% rename from pkg/openai/v1/list_models.go rename to pkg/openai/v0/list_models.go diff --git a/pkg/openai/v1/main.go b/pkg/openai/v0/main.go similarity index 100% rename from pkg/openai/v1/main.go rename to pkg/openai/v0/main.go diff --git a/pkg/openai/v1/text_embeddings.go b/pkg/openai/v0/text_embeddings.go similarity index 100% rename from pkg/openai/v1/text_embeddings.go rename to pkg/openai/v0/text_embeddings.go diff --git a/pkg/openai/v1/text_generation.go b/pkg/openai/v0/text_generation.go similarity index 100% rename from pkg/openai/v1/text_generation.go rename to pkg/openai/v0/text_generation.go diff --git a/pkg/openai/v1/text_to_image.go b/pkg/openai/v0/text_to_image.go similarity index 100% rename from pkg/openai/v1/text_to_image.go rename to pkg/openai/v0/text_to_image.go diff --git a/pkg/openai/v1/text_to_speech.go b/pkg/openai/v0/text_to_speech.go similarity index 100% rename from pkg/openai/v1/text_to_speech.go rename to pkg/openai/v0/text_to_speech.go diff --git a/pkg/pinecone/v1/config/definitions.json b/pkg/pinecone/v0/config/definitions.json similarity index 97% rename from pkg/pinecone/v1/config/definitions.json rename to pkg/pinecone/v0/config/definitions.json index 09215b7..4af5aca 100644 --- a/pkg/pinecone/v1/config/definitions.json +++ b/pkg/pinecone/v0/config/definitions.json @@ -44,7 +44,7 @@ "uid": "4b1dcf82-e134-4ba7-992f-f9a02536ec2b", "vendor": "Pinecone", "vendor_attributes": {}, - "version": "1.0.0-alpha", - "source_url": "github.com/instill-ai/connector/blob/main/pkg/pinecone/v1" + "version": "0.1.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/pinecone/v0" } ] diff --git a/pkg/pinecone/v1/config/tasks.json b/pkg/pinecone/v0/config/tasks.json similarity index 100% rename from pkg/pinecone/v1/config/tasks.json rename to pkg/pinecone/v0/config/tasks.json diff --git a/pkg/pinecone/v1/connector_test.go b/pkg/pinecone/v0/connector_test.go similarity index 100% rename from pkg/pinecone/v1/connector_test.go rename to pkg/pinecone/v0/connector_test.go diff --git a/pkg/pinecone/v1/main.go b/pkg/pinecone/v0/main.go similarity index 100% rename from pkg/pinecone/v1/main.go rename to pkg/pinecone/v0/main.go diff --git a/pkg/pinecone/v1/structs.go b/pkg/pinecone/v0/structs.go similarity index 100% rename from pkg/pinecone/v1/structs.go rename to pkg/pinecone/v0/structs.go diff --git a/pkg/redis/v1/chat_history.go b/pkg/redis/v0/chat_history.go similarity index 100% rename from pkg/redis/v1/chat_history.go rename to pkg/redis/v0/chat_history.go diff --git a/pkg/redis/v1/client.go b/pkg/redis/v0/client.go similarity index 100% rename from pkg/redis/v1/client.go rename to pkg/redis/v0/client.go diff --git a/pkg/redis/v1/config/definitions.json b/pkg/redis/v0/config/definitions.json similarity index 99% rename from pkg/redis/v1/config/definitions.json rename to pkg/redis/v0/config/definitions.json index 35c3661..905c373 100644 --- a/pkg/redis/v1/config/definitions.json +++ b/pkg/redis/v0/config/definitions.json @@ -155,7 +155,7 @@ "uid": "fd0ad325-f2f7-41f3-b247-6c71d571b1b8", "vendor": "Redis Labs", "vendor_attributes": {}, - "version": "1.0.0-alpha", - "source_url": "github.com/instill-ai/connector/blob/main/pkg/redis/v1" + "version": "0.1.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/redis/v0" } ] diff --git a/pkg/redis/v1/config/tasks.json b/pkg/redis/v0/config/tasks.json similarity index 100% rename from pkg/redis/v1/config/tasks.json rename to pkg/redis/v0/config/tasks.json diff --git a/pkg/redis/v1/main.go b/pkg/redis/v0/main.go similarity index 100% rename from pkg/redis/v1/main.go rename to pkg/redis/v0/main.go diff --git a/pkg/restapi/v1/auth.go b/pkg/restapi/v0/auth.go similarity index 100% rename from pkg/restapi/v1/auth.go rename to pkg/restapi/v0/auth.go diff --git a/pkg/restapi/v1/client.go b/pkg/restapi/v0/client.go similarity index 100% rename from pkg/restapi/v1/client.go rename to pkg/restapi/v0/client.go diff --git a/pkg/restapi/v1/config/definitions.json b/pkg/restapi/v0/config/definitions.json similarity index 99% rename from pkg/restapi/v1/config/definitions.json rename to pkg/restapi/v0/config/definitions.json index 850faeb..d0bc495 100644 --- a/pkg/restapi/v1/config/definitions.json +++ b/pkg/restapi/v0/config/definitions.json @@ -160,7 +160,7 @@ "uid": "5ee55a5c-6e30-4c7a-80e8-90165a729e0a", "vendor": "", "vendor_attributes": {}, - "version": "1.0.0-alpha", - "source_url": "github.com/instill-ai/connector/blob/main/pkg/restapi/v1" + "version": "0.1.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/restapi/v0" } ] diff --git a/pkg/restapi/v1/config/tasks.json b/pkg/restapi/v0/config/tasks.json similarity index 100% rename from pkg/restapi/v1/config/tasks.json rename to pkg/restapi/v0/config/tasks.json diff --git a/pkg/restapi/v1/connector_test.go b/pkg/restapi/v0/connector_test.go similarity index 100% rename from pkg/restapi/v1/connector_test.go rename to pkg/restapi/v0/connector_test.go diff --git a/pkg/restapi/v1/main.go b/pkg/restapi/v0/main.go similarity index 100% rename from pkg/restapi/v1/main.go rename to pkg/restapi/v0/main.go diff --git a/pkg/stabilityai/v1/client.go b/pkg/stabilityai/v0/client.go similarity index 100% rename from pkg/stabilityai/v1/client.go rename to pkg/stabilityai/v0/client.go diff --git a/pkg/stabilityai/v1/config/definitions.json b/pkg/stabilityai/v0/config/definitions.json similarity index 96% rename from pkg/stabilityai/v1/config/definitions.json rename to pkg/stabilityai/v0/config/definitions.json index 4c0f0ee..bbf8c6d 100644 --- a/pkg/stabilityai/v1/config/definitions.json +++ b/pkg/stabilityai/v0/config/definitions.json @@ -36,7 +36,7 @@ "uid": "c86a95cc-7d32-4e22-a290-8c699f6705a4", "vendor": "Stability AI", "vendor_attributes": {}, - "version": "1.0.0-alpha", - "source_url": "github.com/instill-ai/connector/blob/main/pkg/stabilityai/v1" + "version": "0.1.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/stabilityai/v0" } ] diff --git a/pkg/stabilityai/v1/config/stabilityai.json b/pkg/stabilityai/v0/config/stabilityai.json similarity index 100% rename from pkg/stabilityai/v1/config/stabilityai.json rename to pkg/stabilityai/v0/config/stabilityai.json diff --git a/pkg/stabilityai/v1/config/tasks.json b/pkg/stabilityai/v0/config/tasks.json similarity index 100% rename from pkg/stabilityai/v1/config/tasks.json rename to pkg/stabilityai/v0/config/tasks.json diff --git a/pkg/stabilityai/v1/connector_test.go b/pkg/stabilityai/v0/connector_test.go similarity index 100% rename from pkg/stabilityai/v1/connector_test.go rename to pkg/stabilityai/v0/connector_test.go diff --git a/pkg/stabilityai/v1/image_to_image.go b/pkg/stabilityai/v0/image_to_image.go similarity index 100% rename from pkg/stabilityai/v1/image_to_image.go rename to pkg/stabilityai/v0/image_to_image.go diff --git a/pkg/stabilityai/v1/list_engines.go b/pkg/stabilityai/v0/list_engines.go similarity index 100% rename from pkg/stabilityai/v1/list_engines.go rename to pkg/stabilityai/v0/list_engines.go diff --git a/pkg/stabilityai/v1/main.go b/pkg/stabilityai/v0/main.go similarity index 100% rename from pkg/stabilityai/v1/main.go rename to pkg/stabilityai/v0/main.go diff --git a/pkg/stabilityai/v1/text_to_image.go b/pkg/stabilityai/v0/text_to_image.go similarity index 100% rename from pkg/stabilityai/v1/text_to_image.go rename to pkg/stabilityai/v0/text_to_image.go diff --git a/pkg/website/v1/config/definitions.json b/pkg/website/v0/config/definitions.json similarity index 94% rename from pkg/website/v1/config/definitions.json rename to pkg/website/v0/config/definitions.json index e20d382..1453395 100644 --- a/pkg/website/v1/config/definitions.json +++ b/pkg/website/v0/config/definitions.json @@ -24,7 +24,7 @@ "uid": "98909958-db7d-4dfe-9858-7761904be17e", "vendor": "", "vendor_attributes": {}, - "version": "1.0.0-alpha", - "source_url": "github.com/instill-ai/connector/blob/main/pkg/website/v1" + "version": "0.1.0-alpha", + "source_url": "github.com/instill-ai/connector/blob/main/pkg/website/v0" } ] diff --git a/pkg/website/v1/config/tasks.json b/pkg/website/v0/config/tasks.json similarity index 100% rename from pkg/website/v1/config/tasks.json rename to pkg/website/v0/config/tasks.json diff --git a/pkg/website/v1/main.go b/pkg/website/v0/main.go similarity index 100% rename from pkg/website/v1/main.go rename to pkg/website/v0/main.go diff --git a/pkg/website/v1/scrape_website.go b/pkg/website/v0/scrape_website.go similarity index 100% rename from pkg/website/v1/scrape_website.go rename to pkg/website/v0/scrape_website.go