Skip to content

Commit 4ebfc15

Browse files
committed
Regenerate with _manifest on saveFile payload
1 parent bf720e2 commit 4ebfc15

File tree

8 files changed

+50
-23
lines changed

8 files changed

+50
-23
lines changed

.speakeasy/gen.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 11c8545a-deb6-44f9-ba56-e71722af6a51
33
management:
4-
docChecksum: 1c118012fa9137969bd948e2375be0b5
4+
docChecksum: 1c56c7ca8bb88e9f3f0a7643ee3863a4
55
docVersion: 0.2.0
66
speakeasyVersion: 1.396.7
77
generationVersion: 2.415.6
8-
releaseVersion: 0.4.1
9-
configChecksum: 82a10c0503f9db25ac41c8bdc280746e
8+
releaseVersion: 0.4.2
9+
configChecksum: 122c582ae34924cbbbf36d5bcaf65981
1010
repoURL: https://github.com/epilot-dev/terraform-provider-epilot-file.git
1111
repoSubDirectory: .
1212
published: true
@@ -158,7 +158,7 @@ examples:
158158
query:
159159
activity_id: "01F130Q52Q6MWSNS8N2AVXV4JN"
160160
requestBody:
161-
application/json: {"_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8", "_purpose": ["8d396871-95a0-4c9d-bb4d-9eda9c35776c", "da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"], "_tags": ["tag1", "tag2"], "custom_download_url": "https://some-api-url.com/download?file_id=123", "filename": "document.pdf", "mime_type": "application/pdf", "relations": [], "source_url": "https://some-api-url.com/download?file_id=123", "s3ref": {"bucket": "epilot-prod-user-content", "key": "123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"}}
161+
application/json: {"_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8", "_manifest": ["123e4567-e89b-12d3-a456-426614174000"], "_purpose": ["8d396871-95a0-4c9d-bb4d-9eda9c35776c", "da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"], "_tags": ["tag1", "tag2"], "custom_download_url": "https://some-api-url.com/download?file_id=123", "filename": "document.pdf", "mime_type": "application/pdf", "relations": [], "source_url": "https://some-api-url.com/download?file_id=123", "s3ref": {"bucket": "epilot-prod-user-content", "key": "123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"}}
162162
responses:
163163
"201":
164164
application/json: {"_acl": {"delete": ["org:456"], "edit": ["org:456"], "view": ["org:456"]}, "_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8", "_manifest": ["123e4567-e89b-12d3-a456-426614174000"], "_org": "123", "_owners": [], "_purpose": ["8d396871-95a0-4c9d-bb4d-9eda9c35776c", "da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"], "_tags": ["tag1", "tag2"], "_title": "document.pdf", "custom_download_url": "https://some-api-url.com/download?file_id=123", "filename": "document.pdf", "mime_type": "application/pdf", "public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf", "readable_size": "1.2 MB", "s3ref": {"bucket": "epilot-prod-user-content", "key": "123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"}, "size_bytes": 1234, "source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf", "versions": []}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ terraform {
5959
required_providers {
6060
epilot-file = {
6161
source = "epilot-dev/epilot-file"
62-
version = "0.4.1"
62+
version = "0.4.2"
6363
}
6464
}
6565
}

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ terraform {
1717
required_providers {
1818
epilot-file = {
1919
source = "epilot-dev/epilot-file"
20-
version = "0.4.1"
20+
version = "0.4.2"
2121
}
2222
}
2323
}

examples/provider/provider.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
epilot-file = {
44
source = "epilot-dev/epilot-file"
5-
version = "0.4.1"
5+
version = "0.4.2"
66
}
77
}
88
}

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ go:
2727
outputModelSuffix: output
2828
packageName: openapi
2929
terraform:
30-
version: 0.4.1
30+
version: 0.4.2
3131
additionalDataSources: []
3232
additionalDependencies: {}
3333
additionalResources: []

internal/sdk/models/shared/savecustomfilepayload.go

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ func (e *SaveCustomFilePayloadAccessControl) UnmarshalJSON(data []byte) error {
3535
}
3636

3737
type SaveCustomFilePayload struct {
38-
AdditionalProperties any `additionalProperties:"true" json:"-"`
39-
ID *string `json:"_id,omitempty"`
40-
Purpose []string `json:"_purpose,omitempty"`
41-
Tags []string `json:"_tags,omitempty"`
42-
AccessControl *SaveCustomFilePayloadAccessControl `default:"private" json:"access_control"`
38+
AdditionalProperties any `additionalProperties:"true" json:"-"`
39+
ID *string `json:"_id,omitempty"`
40+
// Manifest ID used to create/update the entity
41+
Manifest []string `json:"_manifest,omitempty"`
42+
Purpose []string `json:"_purpose,omitempty"`
43+
Tags []string `json:"_tags,omitempty"`
44+
AccessControl *SaveCustomFilePayloadAccessControl `default:"private" json:"access_control"`
4345
// Custom external download url used for the file
4446
CustomDownloadURL *string `json:"custom_download_url,omitempty"`
4547
// Deprecated, use _id instead
@@ -79,6 +81,13 @@ func (o *SaveCustomFilePayload) GetID() *string {
7981
return o.ID
8082
}
8183

84+
func (o *SaveCustomFilePayload) GetManifest() []string {
85+
if o == nil {
86+
return nil
87+
}
88+
return o.Manifest
89+
}
90+
8291
func (o *SaveCustomFilePayload) GetPurpose() []string {
8392
if o == nil {
8493
return nil

internal/sdk/models/shared/savefilefromsourceurlpayload.go

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ func (e *SaveFileFromSourceURLPayloadAccessControl) UnmarshalJSON(data []byte) e
3535
}
3636

3737
type SaveFileFromSourceURLPayload struct {
38-
AdditionalProperties any `additionalProperties:"true" json:"-"`
39-
ID *string `json:"_id,omitempty"`
40-
Purpose []string `json:"_purpose,omitempty"`
41-
Tags []string `json:"_tags,omitempty"`
42-
AccessControl *SaveFileFromSourceURLPayloadAccessControl `default:"private" json:"access_control"`
38+
AdditionalProperties any `additionalProperties:"true" json:"-"`
39+
ID *string `json:"_id,omitempty"`
40+
// Manifest ID used to create/update the entity
41+
Manifest []string `json:"_manifest,omitempty"`
42+
Purpose []string `json:"_purpose,omitempty"`
43+
Tags []string `json:"_tags,omitempty"`
44+
AccessControl *SaveFileFromSourceURLPayloadAccessControl `default:"private" json:"access_control"`
4345
// Custom external download url used for the file
4446
CustomDownloadURL *string `json:"custom_download_url,omitempty"`
4547
// Deprecated, use _id instead
@@ -81,6 +83,13 @@ func (o *SaveFileFromSourceURLPayload) GetID() *string {
8183
return o.ID
8284
}
8385

86+
func (o *SaveFileFromSourceURLPayload) GetManifest() []string {
87+
if o == nil {
88+
return nil
89+
}
90+
return o.Manifest
91+
}
92+
8493
func (o *SaveFileFromSourceURLPayload) GetPurpose() []string {
8594
if o == nil {
8695
return nil

internal/sdk/models/shared/saves3filepayload.go

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ func (e *SaveS3FilePayloadAccessControl) UnmarshalJSON(data []byte) error {
3535
}
3636

3737
type SaveS3FilePayload struct {
38-
AdditionalProperties any `additionalProperties:"true" json:"-"`
39-
ID *string `json:"_id,omitempty"`
40-
Purpose []string `json:"_purpose,omitempty"`
41-
Tags []string `json:"_tags,omitempty"`
42-
AccessControl *SaveS3FilePayloadAccessControl `default:"private" json:"access_control"`
38+
AdditionalProperties any `additionalProperties:"true" json:"-"`
39+
ID *string `json:"_id,omitempty"`
40+
// Manifest ID used to create/update the entity
41+
Manifest []string `json:"_manifest,omitempty"`
42+
Purpose []string `json:"_purpose,omitempty"`
43+
Tags []string `json:"_tags,omitempty"`
44+
AccessControl *SaveS3FilePayloadAccessControl `default:"private" json:"access_control"`
4345
// Custom external download url used for the file
4446
CustomDownloadURL *string `json:"custom_download_url,omitempty"`
4547
// Deprecated, use _id instead
@@ -80,6 +82,13 @@ func (o *SaveS3FilePayload) GetID() *string {
8082
return o.ID
8183
}
8284

85+
func (o *SaveS3FilePayload) GetManifest() []string {
86+
if o == nil {
87+
return nil
88+
}
89+
return o.Manifest
90+
}
91+
8392
func (o *SaveS3FilePayload) GetPurpose() []string {
8493
if o == nil {
8594
return nil

0 commit comments

Comments
 (0)