diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index bc650bfe..93b55023 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 0359d4fe-2923-46fc-aaca-cf70b48dcfa1 management: - docChecksum: ba76322a279d357942029f1599c8ad4d + docChecksum: 11234d282481d3710e009ee7857573b0 docVersion: 0.9.0 - speakeasyVersion: 1.625.0 - generationVersion: 2.715.0 - releaseVersion: 0.9.0 - configChecksum: b2c6ed49416bb781d969855af4673e6c + speakeasyVersion: 1.628.2 + generationVersion: 2.716.3 + releaseVersion: 0.9.1 + configChecksum: 3fef262a245d1cac085d36de8dce197a repoURL: https://github.com/gleanwork/api-client-java.git published: true features: @@ -26,7 +26,7 @@ features: mockServer: 0.1.1 nameOverrides: 2.81.3 sdkHooks: 1.1.0 - tests: 0.9.2 + tests: 0.9.3 unions: 0.0.6 uploadStreams: 0.1.0 generatedFiles: @@ -3557,4 +3557,6 @@ generatedTests: get_/rest/api/v1/tools/list: "2025-06-09T18:03:44Z" post_/rest/api/v1/tools/call: "2025-06-09T18:03:44Z" listpolicies: "2025-06-09T18:03:44Z" -releaseNotes: "## Java SDK Changes Detected:\n* `glean.client.documents.summarize()`: \n * `request.documentSpecs.[].[class]` **Changed** **Breaking** :warning:\n* `glean.client.documents.retrieve()`: \n * `request.documentSpecs.[].[class]` **Changed** **Breaking** :warning:\n * `response.documents.{}.[document].metadata.author.relatedDocuments.[]` **Changed**\n* `glean.client.answers.create()`: \n * `request.data.addedRoles.[]` **Changed** **Breaking** :warning:\n * `response.addedroles.[]` **Changed**\n* `glean.client.answers.update()`: \n * `request.addedRoles.[]` **Changed** **Breaking** :warning:\n * `response.addedroles.[]` **Changed**\n* `glean.client.shortcuts.update()`: \n * `request.addedRoles.[]` **Changed** **Breaking** :warning:\n * `response.shortcut.addedRoles.[]` **Changed**\n* `glean.client.shortcuts.create()`: \n * `request.data.addedRoles.[]` **Changed** **Breaking** :warning:\n * `response.shortcut.addedRoles.[]` **Changed**\n* `glean.client.chat.create()`: \n * `request.chatrequest.messages.[]` **Changed** **Breaking** :warning:\n * `response.messages.[]` **Changed**\n* `glean.client.search.query()`: \n * `request.sourceDocument.metadata.author.relatedDocuments.[]` **Changed** **Breaking** :warning:\n * `response.results.[].structuredResults.[].document.metadata` **Changed**\n* `glean.client.search.recommendations()`: \n * `request.sourceDocument.metadata.author.relatedDocuments.[]` **Changed** **Breaking** :warning:\n * `response.results.[].structuredResults.[].document.metadata` **Changed**\n* `glean.client.search.queryAsAdmin()`: \n * `request.sourceDocument.metadata.author.relatedDocuments.[]` **Changed** **Breaking** :warning:\n * `response.results.[].structuredResults.[].document.metadata` **Changed**\n* `glean.client.chat.createStream()`: \n * `request.chatrequest.messages.[]` **Changed** **Breaking** :warning:\n* `glean.client.announcements.create()`: \n * `request.body.structuredList.[].document.metadata.author.relatedDocuments.[]` **Changed** **Breaking** :warning:\n * `response.body.structuredList.[].document.metadata.author.relatedDocuments.[]` **Changed**\n* `glean.client.collections.create()`: \n * `request.addedRoles.[]` **Changed** **Breaking** :warning:\n * `response` **Changed** **Breaking** :warning:\n* `glean.client.announcements.update()`: \n * `request.body.structuredList.[].document.metadata.author.relatedDocuments.[]` **Changed** **Breaking** :warning:\n * `response.body.structuredList.[].document.metadata.author.relatedDocuments.[]` **Changed**\n* `glean.client.collections.update()`: \n * `request.addedRoles.[]` **Changed** **Breaking** :warning:\n * `response.addedroles.[]` **Changed**\n* `glean.client.collections.addItems()`: `response.collection.addedRoles.[]` **Changed**\n* `glean.client.search.autocomplete()`: `response.results.[].document.metadata.author.relatedDocuments.[]` **Changed**\n* `glean.client.collections.list()`: `response.collections.[].addedRoles.[]` **Changed**\n* `glean.client.collections.updateItem()`: `response.collection.addedRoles.[]` **Changed**\n* `glean.client.documents.retrieveByFacets()`: `response.documents.[].metadata.author.relatedDocuments.[]` **Changed**\n* `glean.client.collections.deleteItem()`: `response.collection.addedRoles.[]` **Changed**\n* `glean.client.insights.retrieve()`: `response.users.activityInsights.[].user.relatedDocuments.[].querySuggestion` **Changed**\n* `glean.client.messages.retrieve()`: `response.searchresponse.results.[].structuredResults.[].document.metadata` **Changed**\n* `glean.client.pins.update()`: `response.attribution.relatedDocuments.[].querySuggestion` **Changed**\n* `glean.client.pins.retrieve()`: `response.pin.attribution.relatedDocuments.[].querySuggestion` **Changed**\n* `glean.client.pins.list()`: `response.pins.[].attribution.relatedDocuments.[].querySuggestion` **Changed**\n* `glean.client.pins.create()`: `response.attribution.relatedDocuments.[].querySuggestion` **Changed**\n* `glean.client.chat.retrieveFiles()`: \n * `request.getchatfilesrequest.chatId` **Added**\n* `glean.client.collections.retrieve()`: `response.collection.addedRoles.[]` **Changed**\n* `glean.client.search.retrieveFeed()`: `response.results.[].primaryEntry` **Changed**\n* `glean.client.chat.list()`: `response.chatresults.[].chat.createdBy.relatedDocuments.[].querySuggestion` **Changed**\n* `glean.client.chat.retrieve()`: `response.chatresult.chat` **Changed**\n* `glean.client.entities.list()`: `response.results.[].relatedDocuments.[].querySuggestion` **Changed**\n* `glean.client.entities.readPeople()`: `response.results.[].relatedDocuments.[].querySuggestion` **Changed**\n* `glean.client.answers.list()`: `response.answerresults.[].answer.addedRoles.[]` **Changed**\n* `glean.client.shortcuts.retrieve()`: `response.shortcut.addedRoles.[]` **Changed**\n* `glean.client.shortcuts.list()`: `response.shortcuts.[].addedRoles.[]` **Changed**\n* `glean.client.answers.retrieve()`: `response.answerresult.answer.addedRoles.[]` **Changed**\n* `glean.client.verification.addReminder()`: `response.metadata.lastVerifier.relatedDocuments.[].querySuggestion` **Changed**\n* `glean.client.verification.list()`: `response.documents.[].metadata.lastVerifier.relatedDocuments.[].querySuggestion` **Changed**\n* `glean.client.verification.verify()`: `response.metadata.lastVerifier.relatedDocuments.[].querySuggestion` **Changed**\n" +releaseNotes: | + ## Java SDK Changes Detected: + * `glean.client.search.retrieveFeed()`: `response.results.[].primaryEntry.digest.sections.[].channelType` **Added** diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index a9467e0a..e0c3a387 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -22,7 +22,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 0.9.0 + version: 0.9.1 additionalDependencies: [] additionalPlugins: [] artifactID: glean-api-client diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 7a87e86a..2114919e 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -9430,6 +9430,11 @@ components: channelName: type: string description: Name of the channel (applicable for CHANNEL type sections). Used to display in the frontend. + channelType: + type: string + description: | + Channel visibility/type for CHANNEL sections. For Slack this is typically one of + PublicChannel, PrivateChannel. Omit if not applicable or unknown. instanceId: type: string description: Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend. diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 3f5c0ad5..610f27ad 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,12 +1,12 @@ -speakeasyVersion: 1.625.0 +speakeasyVersion: 1.628.2 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:a9b49b3146d88faffb25761f988ab0445ed0366b84774a13d4754cb0eb7a3b9b - sourceBlobDigest: sha256:4408853be9bce04865c08fd37b8c11320ffd3b79ef0c70ca8fa1791df0679b1f + sourceRevisionDigest: sha256:3dba87a7b61abaf1f2a6b645c2c9d1c5d79481f48ff3d57b2f1a864b8c8aa02f + sourceBlobDigest: sha256:49403d59f8446958ed5e813bbf322fda12ae91ed0991975bb0f24de0a189f74e tags: - latest - - speakeasy-sdk-regen-1758751980 + - speakeasy-sdk-regen-1758790487 Glean-OAS: sourceNamespace: glean-oas sourceRevisionDigest: sha256:8841834dd58ddd4e2dcf98fc90fbd06fbf3626a29df941503cce55b9548a5317 @@ -18,10 +18,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:a9b49b3146d88faffb25761f988ab0445ed0366b84774a13d4754cb0eb7a3b9b - sourceBlobDigest: sha256:4408853be9bce04865c08fd37b8c11320ffd3b79ef0c70ca8fa1791df0679b1f + sourceRevisionDigest: sha256:3dba87a7b61abaf1f2a6b645c2c9d1c5d79481f48ff3d57b2f1a864b8c8aa02f + sourceBlobDigest: sha256:49403d59f8446958ed5e813bbf322fda12ae91ed0991975bb0f24de0a189f74e codeSamplesNamespace: glean-api-specs-java-code-samples - codeSamplesRevisionDigest: sha256:c3c55caaa1b1a73bebecf700f844ac1297cd8b9cfe05af2e96def4b62243b444 + codeSamplesRevisionDigest: sha256:958bb890a154a7a14a8790d775d8939bb49f3c732c63fa6138440774a623c0f6 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 71c50d6b..97b5d69a 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.glean.api-client:glean-api-client:0.9.0' +implementation 'com.glean.api-client:glean-api-client:0.9.1' ``` Maven: @@ -72,7 +72,7 @@ Maven: com.glean.api-client glean-api-client - 0.9.0 + 0.9.1 ``` diff --git a/RELEASES.md b/RELEASES.md index 40b78b2b..07eb6be0 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -198,4 +198,14 @@ Based on: ### Generated - [java v0.9.0] . ### Releases -- [Maven Central v0.9.0] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.9.0 - . \ No newline at end of file +- [Maven Central v0.9.0] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.9.0 - . + +## 2025-09-25 08:54:21 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.628.2 (2.716.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.9.1] . +### Releases +- [Maven Central v0.9.1] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.9.1 - . \ No newline at end of file diff --git a/docs/models/components/DigestSection.md b/docs/models/components/DigestSection.md index ae6f7db4..e9ce777c 100644 --- a/docs/models/components/DigestSection.md +++ b/docs/models/components/DigestSection.md @@ -3,12 +3,13 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | Unique identifier for the digest section. | -| `type` | [SectionType](../../models/components/SectionType.md) | :heavy_check_mark: | Type of the section. This defines how the section should be interpreted and rendered in the digest. | -| `displayName` | *Optional\* | :heavy_minus_sign: | Human-readable name for the digest section. | -| `channelName` | *Optional\* | :heavy_minus_sign: | Name of the channel (applicable for CHANNEL type sections). Used to display in the frontend. | -| `instanceId` | *Optional\* | :heavy_minus_sign: | Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend. | -| `url` | *Optional\* | :heavy_minus_sign: | Optional URL for the digest section. Should be populated only if the section is a CHANNEL type section. | -| `updates` | List\<[DigestUpdate](../../models/components/DigestUpdate.md)> | :heavy_check_mark: | List of updates within this digest section. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | Unique identifier for the digest section. | +| `type` | [SectionType](../../models/components/SectionType.md) | :heavy_check_mark: | Type of the section. This defines how the section should be interpreted and rendered in the digest. | +| `displayName` | *Optional\* | :heavy_minus_sign: | Human-readable name for the digest section. | +| `channelName` | *Optional\* | :heavy_minus_sign: | Name of the channel (applicable for CHANNEL type sections). Used to display in the frontend. | +| `channelType` | *Optional\* | :heavy_minus_sign: | Channel visibility/type for CHANNEL sections. For Slack this is typically one of
PublicChannel, PrivateChannel. Omit if not applicable or unknown.
| +| `instanceId` | *Optional\* | :heavy_minus_sign: | Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend. | +| `url` | *Optional\* | :heavy_minus_sign: | Optional URL for the digest section. Should be populated only if the section is a CHANNEL type section. | +| `updates` | List\<[DigestUpdate](../../models/components/DigestUpdate.md)> | :heavy_check_mark: | List of updates within this digest section. | \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index c3808622..05e743c1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.glean.api-client artifactId=glean-api-client -version=0.9.0 +version=0.9.1 org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java b/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java index f604edf0..a39ea93c 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java +++ b/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java @@ -24,8 +24,8 @@ public class SDKConfiguration { private static final String LANGUAGE = "java"; public static final String OPENAPI_DOC_VERSION = "0.9.0"; - public static final String SDK_VERSION = "0.9.0"; - public static final String GEN_VERSION = "2.715.0"; + public static final String SDK_VERSION = "0.9.1"; + public static final String GEN_VERSION = "2.716.3"; private static final String BASE_PACKAGE = "com.glean.api_client.glean_api_client"; public static final String USER_AGENT = String.format("speakeasy-sdk/%s %s %s %s %s", diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DigestSection.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DigestSection.java index 005ce9ae..b6d1de4e 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DigestSection.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DigestSection.java @@ -42,6 +42,14 @@ public class DigestSection { @JsonProperty("channelName") private Optional channelName; + /** + * Channel visibility/type for CHANNEL sections. For Slack this is typically one of + * PublicChannel, PrivateChannel. Omit if not applicable or unknown. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("channelType") + private Optional channelType; + /** * Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend. */ @@ -68,6 +76,7 @@ public DigestSection( @JsonProperty("type") SectionType type, @JsonProperty("displayName") Optional displayName, @JsonProperty("channelName") Optional channelName, + @JsonProperty("channelType") Optional channelType, @JsonProperty("instanceId") Optional instanceId, @JsonProperty("url") Optional url, @JsonProperty("updates") List updates) { @@ -75,6 +84,7 @@ public DigestSection( Utils.checkNotNull(type, "type"); Utils.checkNotNull(displayName, "displayName"); Utils.checkNotNull(channelName, "channelName"); + Utils.checkNotNull(channelType, "channelType"); Utils.checkNotNull(instanceId, "instanceId"); Utils.checkNotNull(url, "url"); Utils.checkNotNull(updates, "updates"); @@ -82,6 +92,7 @@ public DigestSection( this.type = type; this.displayName = displayName; this.channelName = channelName; + this.channelType = channelType; this.instanceId = instanceId; this.url = url; this.updates = updates; @@ -93,7 +104,7 @@ public DigestSection( List updates) { this(id, type, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), - updates); + Optional.empty(), updates); } /** @@ -128,6 +139,15 @@ public Optional channelName() { return channelName; } + /** + * Channel visibility/type for CHANNEL sections. For Slack this is typically one of + * PublicChannel, PrivateChannel. Omit if not applicable or unknown. + */ + @JsonIgnore + public Optional channelType() { + return channelType; + } + /** * Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend. */ @@ -213,6 +233,27 @@ public DigestSection withChannelName(Optional channelName) { return this; } + /** + * Channel visibility/type for CHANNEL sections. For Slack this is typically one of + * PublicChannel, PrivateChannel. Omit if not applicable or unknown. + */ + public DigestSection withChannelType(String channelType) { + Utils.checkNotNull(channelType, "channelType"); + this.channelType = Optional.ofNullable(channelType); + return this; + } + + + /** + * Channel visibility/type for CHANNEL sections. For Slack this is typically one of + * PublicChannel, PrivateChannel. Omit if not applicable or unknown. + */ + public DigestSection withChannelType(Optional channelType) { + Utils.checkNotNull(channelType, "channelType"); + this.channelType = channelType; + return this; + } + /** * Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend. */ @@ -274,6 +315,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.type, other.type) && Utils.enhancedDeepEquals(this.displayName, other.displayName) && Utils.enhancedDeepEquals(this.channelName, other.channelName) && + Utils.enhancedDeepEquals(this.channelType, other.channelType) && Utils.enhancedDeepEquals(this.instanceId, other.instanceId) && Utils.enhancedDeepEquals(this.url, other.url) && Utils.enhancedDeepEquals(this.updates, other.updates); @@ -283,8 +325,8 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Utils.enhancedHash( id, type, displayName, - channelName, instanceId, url, - updates); + channelName, channelType, instanceId, + url, updates); } @Override @@ -294,6 +336,7 @@ public String toString() { "type", type, "displayName", displayName, "channelName", channelName, + "channelType", channelType, "instanceId", instanceId, "url", url, "updates", updates); @@ -310,6 +353,8 @@ public final static class Builder { private Optional channelName = Optional.empty(); + private Optional channelType = Optional.empty(); + private Optional instanceId = Optional.empty(); private Optional url = Optional.empty(); @@ -379,6 +424,27 @@ public Builder channelName(Optional channelName) { } + /** + * Channel visibility/type for CHANNEL sections. For Slack this is typically one of + * PublicChannel, PrivateChannel. Omit if not applicable or unknown. + */ + public Builder channelType(String channelType) { + Utils.checkNotNull(channelType, "channelType"); + this.channelType = Optional.ofNullable(channelType); + return this; + } + + /** + * Channel visibility/type for CHANNEL sections. For Slack this is typically one of + * PublicChannel, PrivateChannel. Omit if not applicable or unknown. + */ + public Builder channelType(Optional channelType) { + Utils.checkNotNull(channelType, "channelType"); + this.channelType = channelType; + return this; + } + + /** * Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend. */ @@ -430,8 +496,8 @@ public DigestSection build() { return new DigestSection( id, type, displayName, - channelName, instanceId, url, - updates); + channelName, channelType, instanceId, + url, updates); } } diff --git a/src/test/java/com/glean/api_client/glean_api_client/ClientChatTests.java b/src/test/java/com/glean/api_client/glean_api_client/ClientChatTests.java index a2542438..f0c7bf68 100644 --- a/src/test/java/com/glean/api_client/glean_api_client/ClientChatTests.java +++ b/src/test/java/com/glean/api_client/glean_api_client/ClientChatTests.java @@ -58,7 +58,8 @@ import com.glean.api_client.glean_api_client.models.components.DocumentInteractions; import com.glean.api_client.glean_api_client.models.components.DocumentMetadata; import com.glean.api_client.glean_api_client.models.components.DocumentSection; -import com.glean.api_client.glean_api_client.models.components.DocumentSpec2; +import com.glean.api_client.glean_api_client.models.components.DocumentSpec3; +import com.glean.api_client.glean_api_client.models.components.DocumentSpecUgcType1; import com.glean.api_client.glean_api_client.models.components.DocumentSpecUnion; import com.glean.api_client.glean_api_client.models.components.EntityType; import com.glean.api_client.glean_api_client.models.components.ExtractedQnA; @@ -745,8 +746,9 @@ public void testClientChat_Getchat() throws Exception { .question("") .bodyText("") .boardId(933583L) - .sourceDocumentSpec(DocumentSpecUnion.of(DocumentSpec2.builder() - .id("") + .sourceDocumentSpec(DocumentSpecUnion.of(DocumentSpec3.builder() + .ugcType(DocumentSpecUgcType1.SHORTCUTS) + .contentId(602763L) .build())) .sourceType(AnswerSourceType.ASSISTANT) .combinedAnswerText(StructuredText.builder() diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go index f8469b5b..35e69d35 100644 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go +++ b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go @@ -628,8 +628,8 @@ func testGetchatGetchat0(w http.ResponseWriter, req *http.Request) { Roles: []components.UserRoleSpecification{}, SourceDocumentSpec: types.Pointer(components.CreateDocumentSpecUnionDocumentSpec3( components.DocumentSpec3{ - UgcType: components.DocumentSpecUgcType1Announcements, - ContentID: 848009, + UgcType: components.DocumentSpecUgcType1Shortcuts, + ContentID: 602763, }, )), SourceType: components.AnswerSourceTypeAssistant.ToPointer(), diff --git a/tests/mockserver/internal/sdk/models/components/digestsection.go b/tests/mockserver/internal/sdk/models/components/digestsection.go index da5e9a2f..e316597e 100644 --- a/tests/mockserver/internal/sdk/models/components/digestsection.go +++ b/tests/mockserver/internal/sdk/models/components/digestsection.go @@ -11,6 +11,10 @@ type DigestSection struct { DisplayName *string `json:"displayName,omitempty"` // Name of the channel (applicable for CHANNEL type sections). Used to display in the frontend. ChannelName *string `json:"channelName,omitempty"` + // Channel visibility/type for CHANNEL sections. For Slack this is typically one of + // PublicChannel, PrivateChannel. Omit if not applicable or unknown. + // + ChannelType *string `json:"channelType,omitempty"` // Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend. InstanceID *string `json:"instanceId,omitempty"` // Optional URL for the digest section. Should be populated only if the section is a CHANNEL type section. @@ -47,6 +51,13 @@ func (o *DigestSection) GetChannelName() *string { return o.ChannelName } +func (o *DigestSection) GetChannelType() *string { + if o == nil { + return nil + } + return o.ChannelType +} + func (o *DigestSection) GetInstanceID() *string { if o == nil { return nil