diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..f1b224f --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "temporal-api"] + path = temporal-api + url = https://github.com/temporalio/api.git diff --git a/Makefile b/Makefile index cf901cd..b324dc2 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,18 @@ openapiv2-install: printf $(COLOR) "Install/update openapiv2 protoc gen..." go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v2.16.2 +PROTO_ROOT := temporal-api + +##### Import Proto files ##### +install-proto-submodule: + @printf $(COLOR) "Install proto submodule..." + git submodule update --init $(PROTO_ROOT) + +update-proto-submodule: + @printf $(COLOR) "Update proto submodule from remote..." + git submodule update --force --remote $(PROTO_ROOT) + + ##### Linters ##### buf-lint: printf $(COLOR) "Run buf linter..." diff --git a/buf.lock b/buf.lock index 3435191..6c4355d 100644 --- a/buf.lock +++ b/buf.lock @@ -4,5 +4,5 @@ deps: - remote: buf.build owner: googleapis repository: googleapis - commit: 711e289f6a384c4caeebaff7c6931ade - digest: shake256:e08fb55dad7469f69df00304eed31427d2d1576e9aab31e6bf86642688e04caaf0372f15fe6974cf79432779a635b3ea401ca69c943976dc42749524e4c25d94 + commit: 28151c0d0a1641bf938a7672c500e01d + digest: shake256:49215edf8ef57f7863004539deff8834cfb2195113f0b890dd1f67815d9353e28e668019165b9d872395871eeafcbab3ccfdb2b5f11734d3cca95be9e8d139de diff --git a/buf.yaml b/buf.yaml index 69baf0f..724289a 100644 --- a/buf.yaml +++ b/buf.yaml @@ -4,6 +4,12 @@ deps: breaking: use: - FILE +build: + excludes: + - temporal-api/google lint: use: - DEFAULT + ignore: + - temporal-api # don't lint temporal-api + diff --git a/temporal-api b/temporal-api new file mode 160000 index 0000000..66df148 --- /dev/null +++ b/temporal-api @@ -0,0 +1 @@ +Subproject commit 66df148533a971f58fc0fec79bf25ab175ec1b78 diff --git a/temporal/api/cloud/export/exported_workflow.proto b/temporal/api/cloud/export/exported_workflow.proto new file mode 100644 index 0000000..08d096e --- /dev/null +++ b/temporal/api/cloud/export/exported_workflow.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +package temporal.api.cloud.namespace.export.v1; + +import "temporal/api/history/v1/message.proto"; + +message ExportedWorkflows{ + repeated ExportedWorkflow workflows = 1; +} + +message ExportedWorkflow{ + temporal.api.history.v1.History history = 1; +} \ No newline at end of file