Skip to content

Commit

Permalink
Update openapi spec with live prod version
Browse files Browse the repository at this point in the history
  • Loading branch information
blomqma committed Sep 16, 2024
1 parent a1f4b2c commit 8e93ec1
Show file tree
Hide file tree
Showing 30 changed files with 1,397 additions and 1,209 deletions.
241 changes: 168 additions & 73 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 1afd37bc-cea9-4679-ac40-35ad5de414fc
management:
docChecksum: b9a09d98391fd5759e163be37edd17bc
docChecksum: 3901f7467d14573d45f36f2600928081
docVersion: 1.0.0
speakeasyVersion: 1.381.1
generationVersion: 2.404.9
releaseVersion: 0.4.0
configChecksum: f83f174849770bbe062f6cc92d3b40f9
speakeasyVersion: 1.396.7
generationVersion: 2.415.6
releaseVersion: 0.5.0
configChecksum: 591bb96d74dcfe2214dad3c54e33a388
repoURL: https://github.com/epilot-dev/terraform-provider-epilot-journey.git
repoSubDirectory: .
published: true
Expand All @@ -15,63 +15,23 @@ features:
additionalDependencies: 0.1.0
additionalProperties: 0.1.2
constsAndDefaults: 0.1.4
core: 3.24.7
core: 3.24.11
deprecations: 2.81.1
envVarSecurityUsage: 0.1.0
globalSecurity: 2.81.8
globalServerURLs: 2.82.1
methodSecurity: 2.82.1
nullables: 0.0.0
retries: 2.81.1
generatedFiles:
- internal/sdk/journeys.go
- internal/sdk/journeysv2.go
- internal/sdk/sdk.go
- internal/sdk/models/errors/sdkerror.go
- internal/sdk/retry/config.go
- internal/sdk/types/bigint.go
- internal/sdk/types/date.go
- internal/sdk/types/datetime.go
- internal/sdk/types/decimal.go
- internal/sdk/types/pointers.go
- internal/sdk/internal/utils/contenttype.go
- internal/sdk/internal/utils/form.go
- internal/sdk/internal/utils/headers.go
- internal/sdk/internal/utils/json.go
- internal/sdk/internal/utils/pathparams.go
- internal/sdk/internal/utils/queryparams.go
- internal/sdk/internal/utils/requestbody.go
- internal/sdk/internal/utils/retries.go
- internal/sdk/internal/utils/security.go
- internal/sdk/internal/utils/utils.go
- internal/sdk/models/operations/createjourney.go
- internal/sdk/models/operations/getjourney.go
- internal/sdk/models/operations/getjourneyproducts.go
- internal/sdk/models/operations/getjourneysbyorgid.go
- internal/sdk/models/operations/patchupdatejourney.go
- internal/sdk/models/operations/removejourney.go
- internal/sdk/models/operations/searchjourneys.go
- internal/sdk/models/operations/updatejourney.go
- internal/sdk/models/operations/createjourneyv2.go
- internal/sdk/models/operations/getjourneyv2.go
- internal/sdk/models/operations/patchupdatejourneyv2.go
- internal/sdk/models/operations/removejourneyv2.go
- internal/sdk/models/operations/updatejourneyv2.go
- internal/sdk/models/shared/journey.go
- internal/sdk/models/shared/journeycreationrequest.go
- internal/sdk/models/shared/journeyproductsresponse.go
- internal/sdk/models/shared/getjourneysresponse.go
- internal/sdk/models/shared/journeyresponse.go
- internal/sdk/models/shared/patchupdatejourneyrequest.go
- internal/sdk/models/shared/searchjourneysresponse.go
- internal/sdk/models/shared/searchjourneysqueryrequest.go
- internal/sdk/models/shared/journeycreationrequestv2.go
- internal/sdk/models/shared/security.go
- internal/sdk/.gitignore
- internal/sdk/models/operations/options.go
- internal/sdk/.gitattributes
- internal/sdk/internal/hooks/hooks.go
- internal/sdk/CONTRIBUTING.md
- .gitattributes
- CONTRIBUTING.md
- USAGE.md
- examples/README.md
- examples/data-sources/epilot-journey_journey/data-source.tf
- examples/provider/provider.tf
- examples/resources/epilot-journey_journey/import.sh
- examples/resources/epilot-journey_journey/resource.tf
- go.mod
- go.sum
- internal/planmodifiers/boolplanmodifier/suppress_diff.go
Expand All @@ -84,6 +44,11 @@ generatedFiles:
- internal/planmodifiers/setplanmodifier/suppress_diff.go
- internal/planmodifiers/stringplanmodifier/suppress_diff.go
- internal/planmodifiers/utils/state_check.go
- internal/provider/journey_data_source.go
- internal/provider/journey_data_source_sdk.go
- internal/provider/journey_resource.go
- internal/provider/journey_resource_sdk.go
- internal/provider/provider.go
- internal/provider/reflect/diags.go
- internal/provider/reflect/doc.go
- internal/provider/reflect/generic_attr_value.go
Expand All @@ -98,7 +63,67 @@ generatedFiles:
- internal/provider/reflect/primitive.go
- internal/provider/reflect/slice.go
- internal/provider/reflect/struct.go
- internal/provider/types/journey_creation_request_v2_button.go
- internal/provider/types/journey_creation_request_v2_context_schema.go
- internal/provider/types/journey_creation_request_v2_design.go
- internal/provider/types/journey_creation_request_v2_embed_options.go
- internal/provider/types/journey_creation_request_v2_logics.go
- internal/provider/types/journey_creation_request_v2_rules.go
- internal/provider/types/journey_creation_request_v2_settings.go
- internal/provider/utils.go
- internal/sdk/.gitattributes
- internal/sdk/.gitignore
- internal/sdk/CONTRIBUTING.md
- internal/sdk/internal/hooks/hooks.go
- internal/sdk/internal/utils/contenttype.go
- internal/sdk/internal/utils/form.go
- internal/sdk/internal/utils/headers.go
- internal/sdk/internal/utils/json.go
- internal/sdk/internal/utils/pathparams.go
- internal/sdk/internal/utils/queryparams.go
- internal/sdk/internal/utils/requestbody.go
- internal/sdk/internal/utils/retries.go
- internal/sdk/internal/utils/security.go
- internal/sdk/internal/utils/utils.go
- internal/sdk/journeys.go
- internal/sdk/journeysv2.go
- internal/sdk/models/errors/sdkerror.go
- internal/sdk/models/operations/createjourney.go
- internal/sdk/models/operations/createjourneyv2.go
- internal/sdk/models/operations/generatedocument.go
- internal/sdk/models/operations/getjourney.go
- internal/sdk/models/operations/getjourneyproducts.go
- internal/sdk/models/operations/getjourneysbyorgid.go
- internal/sdk/models/operations/getjourneyv2.go
- internal/sdk/models/operations/options.go
- internal/sdk/models/operations/patchupdatejourney.go
- internal/sdk/models/operations/patchupdatejourneyv2.go
- internal/sdk/models/operations/removejourney.go
- internal/sdk/models/operations/removejourneyv2.go
- internal/sdk/models/operations/searchjourneys.go
- internal/sdk/models/operations/updatejourney.go
- internal/sdk/models/operations/updatejourneyv2.go
- internal/sdk/models/shared/generatedocumentrequest.go
- internal/sdk/models/shared/generatedocumentresponse.go
- internal/sdk/models/shared/getjourneysresponse.go
- internal/sdk/models/shared/journey.go
- internal/sdk/models/shared/journeycreationrequest.go
- internal/sdk/models/shared/journeycreationrequestv2.go
- internal/sdk/models/shared/journeyproductsresponse.go
- internal/sdk/models/shared/journeyresponse.go
- internal/sdk/models/shared/patchupdatejourneyrequest.go
- internal/sdk/models/shared/s3reference.go
- internal/sdk/models/shared/searchjourneysqueryrequest.go
- internal/sdk/models/shared/searchjourneysresponse.go
- internal/sdk/models/shared/security.go
- internal/sdk/models/shared/templatesettings.go
- internal/sdk/retry/config.go
- internal/sdk/sdk.go
- internal/sdk/types/bigint.go
- internal/sdk/types/date.go
- internal/sdk/types/datetime.go
- internal/sdk/types/decimal.go
- internal/sdk/types/pointers.go
- internal/validators/DateValidator.go
- internal/validators/ExactlyOneChild.go
- internal/validators/JSONParseValidator.go
Expand All @@ -115,22 +140,92 @@ generatedFiles:
- main.go
- terraform-registry-manifest.json
- tools/tools.go
- internal/provider/types/journey_creation_request_v2_context_schema.go
- internal/provider/types/journey_creation_request_v2_design.go
- internal/provider/types/journey_creation_request_v2_logics.go
- internal/provider/types/journey_creation_request_v2_rules.go
- internal/provider/types/journey_creation_request_v2_button.go
- internal/provider/types/journey_creation_request_v2_embed_options.go
- internal/provider/types/journey_creation_request_v2_settings.go
- USAGE.md
- internal/provider/provider.go
- examples/provider/provider.tf
- examples/resources/epilot-journey_journey/import.sh
- internal/provider/journey_resource.go
- internal/provider/journey_resource_sdk.go
- examples/resources/epilot-journey_journey/resource.tf
- internal/provider/journey_data_source.go
- internal/provider/journey_data_source_sdk.go
- examples/data-sources/epilot-journey_journey/data-source.tf
- .gitattributes
- CONTRIBUTING.md
examples:
createJourney:
speakeasy-default-create-journey:
parameters:
query:
skipAutomation: "true"
responses:
"201":
application/json: {"0": "<", "1": "v", "2": "a", "3": "l", "4": "u", "5": "e", "6": ">", "createdAt": "<value>", "lastModifiedAt": "<value>", "name": "<value>", "organizationId": "<value>", "revisions": "988.35", "steps": [], "version": "5568.25"}
generateDocument:
speakeasy-default-generate-document:
requestBody:
application/json: {"file_id": "1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p", "language": "de"}
responses:
"200":
application/json: {"docx_output": {"output_document": {"filename": "my-template-OR-001.docx", "s3ref": {"bucket": "document-api-preview-prod", "key": "preview/my-template.docx"}}, "preview_url": "https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.docx"}, "pdf_output": {"output_document": {"filename": "my-template-OR-001.pdf", "s3ref": {"bucket": "document-api-preview-prod", "key": "preview/my-template.pdf"}}, "preview_url": "https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf"}, "template_settings": {"custom_margins": {"bottom": 2.54, "top": 2.54}, "display_margin_guidelines": true, "enable_data_table_margin_autofix": false, "enabled_template_settings_persistence": false, "file_entity_id": "1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p", "misconfigured_margins": false, "suggested_margins": {"bottom": 2.54, "top": 2.54}, "template_with_datatable": false}}
getJourney:
speakeasy-default-get-journey:
parameters:
path:
id: "509cdffe-424f-457a-95c2-9708c304ce77"
query: {}
responses:
"200":
application/json: {"0": "<", "1": "v", "2": "a", "3": "l", "4": "u", "5": "e", "6": ">", "createdAt": "<value>", "lastModifiedAt": "<value>", "name": "<value>", "organizationId": "<value>", "revisions": "6940.07", "steps": [], "version": "4044.02"}
getJourneyProducts:
speakeasy-default-get-journey-products:
parameters:
path:
id: "509cdffe-424f-457a-95c2-9708c304ce77"
query: {}
responses:
"200":
application/json: []
getJourneysByOrgId:
speakeasy-default-get-journeys-by-org-id:
parameters:
path:
id: "123"
query:
hydrate: "true"
patchUpdateJourney:
"":
requestBody:
application/json: {"journeyId": "509cdffe-424f-457a-95c2-9708c304ce77", "name": "New Journey Name", "steps[0].uischema.elements[0].products": ["123456", "654321"]}
removeJourney:
speakeasy-default-remove-journey:
parameters:
path:
id: "509cdffe-424f-457a-95c2-9708c304ce77"
searchJourneys:
speakeasy-default-search-journeys:
requestBody:
application/json: {"from": 0, "q": "_tags:*Flex*", "size": 25, "sort": "_created_at:desc"}
responses:
"200":
application/json: {"hits": 1, "results": []}
updateJourney:
speakeasy-default-update-journey: {}
createJourneyV2:
speakeasy-default-create-journey-v2:
responses:
"201":
application/json: {"name": "<value>", "steps": "<value>"}
getJourneyV2:
speakeasy-default-get-journey-v2:
parameters:
path:
id: "509cdffe-424f-457a-95c2-9708c304ce77"
responses:
"200":
application/json: {"name": "<value>", "steps": "<value>"}
patchUpdateJourneyV2:
"":
requestBody:
application/json: {"journeyId": "509cdffe-424f-457a-95c2-9708c304ce77", "name": "New Journey Name", "steps[0].uischema.elements[0].products": ["123456", "654321"]}
responses:
"200":
application/json: {"name": "<value>", "steps": "<value>"}
removeJourneyV2:
speakeasy-default-remove-journey-v2:
parameters:
path:
id: "509cdffe-424f-457a-95c2-9708c304ce77"
updateJourneyV2:
speakeasy-default-update-journey-v2:
responses:
"200":
application/json: {"name": "<value>", "steps": "<value>"}
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
all: speakeasy docs

original.yaml:
# curl https://docs.api.epilot.io/file.yaml > original.yaml
cp openapi.yml original.yaml
curl https://docs.api.epilot.io/journey-config.yaml > original.yaml
# cp openapi.yml original.yaml

original_modified.yaml: original.yaml overlay.yaml
speakeasy overlay apply -s original.yaml -o overlay.yaml > original_modified.yaml
Expand All @@ -13,8 +13,8 @@ overlay.yaml:

speakeasy:
$(eval TMP := $(shell mktemp -d))
# curl https://docs.api.epilot.io/file.yaml > $(TMP)/openapi.yaml
cp openapi.yml $(TMP)/openapi.yaml
curl https://docs.api.epilot.io/journey-config.yaml > $(TMP)/openapi.yaml
# cp openapi.yml $(TMP)/openapi.yaml
speakeasy overlay apply -s $(TMP)/openapi.yaml -o overlay.yaml > $(TMP)/final.yaml
speakeasy generate sdk --lang terraform -o . -s $(TMP)/final.yaml

Expand Down
Loading

0 comments on commit 8e93ec1

Please sign in to comment.