From c702d00820eb1e9f20cd13a2f6f5f033676ca335 Mon Sep 17 00:00:00 2001 From: andrewblaney Date: Wed, 6 Nov 2024 13:24:36 +0000 Subject: [PATCH 1/2] update schema --- .changeset/clean-beers-smile.md | 12 ++ src/graphql/types.ts | 359 +++++++++++++++++++++++++------- 2 files changed, 295 insertions(+), 76 deletions(-) create mode 100644 .changeset/clean-beers-smile.md diff --git a/.changeset/clean-beers-smile.md b/.changeset/clean-beers-smile.md new file mode 100644 index 0000000..52e11d8 --- /dev/null +++ b/.changeset/clean-beers-smile.md @@ -0,0 +1,12 @@ +--- +'@team-plain/typescript-sdk': major +--- + +Breaking changes: +- `IndexedDocument.lastIndexedAt` removed. +- `Thread.externalChannelDetails` has been removed. Use `Thread.channelDetails`. + +Deprecations: +- `DoneStatusDetail.TimerExpired` is deprecated. Use `DoneAutomaticallySet`. +- `StatusDetailType.TimerExpired` is deprecated. Use `DoneAutomaticallySet` . + diff --git a/src/graphql/types.ts b/src/graphql/types.ts index 307d1f6..4b0b9ce 100644 --- a/src/graphql/types.ts +++ b/src/graphql/types.ts @@ -26,6 +26,18 @@ export type AcceptWorkspaceInviteOutput = { export type Actor = CustomerActor | DeletedCustomerActor | MachineUserActor | SystemActor | UserActor; +export type AddAdditionalAssigneesInput = { + machineUserIds?: InputMaybe>; + threadId: Scalars['ID']; + userIds?: InputMaybe>; +}; + +export type AddAdditionalAssigneesOutput = { + __typename?: 'AddAdditionalAssigneesOutput'; + error: Maybe; + thread: Maybe; +}; + export type AddCustomerToCustomerGroupsInput = { customerGroupIdentifiers: Array; customerId: Scalars['ID']; @@ -222,10 +234,11 @@ export type AutoresponderBusinessHoursCondition = { isOutsideBusinessHours: Scalars['Boolean']; }; -export type AutoresponderCondition = AutoresponderBusinessHoursCondition | AutoresponderSupportEmailsCondition | AutoresponderTierCondition; +export type AutoresponderCondition = AutoresponderBusinessHoursCondition | AutoresponderLabelCondition | AutoresponderSupportEmailsCondition | AutoresponderTierCondition; export type AutoresponderConditionInput = { isOutsideBusinessHours?: InputMaybe; + labelTypeIds?: InputMaybe>; supportEmailAddresses?: InputMaybe>; tierId?: InputMaybe; }; @@ -242,8 +255,14 @@ export type AutoresponderEdge = { node: Autoresponder; }; +export type AutoresponderLabelCondition = { + __typename?: 'AutoresponderLabelCondition'; + labelTypeIds: Array; +}; + export enum AutoresponderMessageSource { Api = 'API', + Chat = 'CHAT', Email = 'EMAIL', MsTeams = 'MS_TEAMS', Slack = 'SLACK' @@ -579,6 +598,11 @@ export type ChatEntry = { text: Maybe; }; +export type ChatThreadChannelDetails = { + __typename?: 'ChatThreadChannelDetails'; + customerReadAt: DateTime; +}; + export type CompaniesFilter = { companyIds?: InputMaybe>; }; @@ -598,10 +622,10 @@ export type Company = { createdAt: DateTime; createdBy: InternalActor; domainName: Scalars['String']; - externalChannelAssociations: Array; id: Scalars['ID']; logoUrl: Maybe; name: Scalars['String']; + threadChannelAssociations: Array; tier: Maybe; updatedAt: DateTime; updatedBy: InternalActor; @@ -659,7 +683,13 @@ export type CompanyTierMembership = { updatedBy: InternalActor; }; +export type CompleteJiraAuthorizationInput = { + refreshToken: Scalars['String']; + siteId: Scalars['String']; +}; + export type CompleteServiceAuthorizationInput = { + jira?: InputMaybe; serviceAuthorizationId: Scalars['ID']; }; @@ -884,7 +914,6 @@ export enum ComponentTextSize { export type ConnectedSlackChannel = { __typename?: 'ConnectedSlackChannel'; - associations: Array; channelType: ConnectedSlackChannelType; createdAt: DateTime; createdBy: InternalActor; @@ -893,6 +922,7 @@ export type ConnectedSlackChannel = { name: Scalars['String']; slackChannelId: Scalars['String']; slackTeamId: Scalars['String']; + threadChannelAssociations: Array; updatedAt: DateTime; updatedBy: InternalActor; }; @@ -1083,18 +1113,8 @@ export type CreateEmailPreviewUrlOutput = { error: Maybe; }; -export type CreateExternalChannelAssociationInput = { - companyIdentifier: CompanyIdentifierInput; - connectedSlackChannelId?: InputMaybe; -}; - -export type CreateExternalChannelAssociationOutput = { - __typename?: 'CreateExternalChannelAssociationOutput'; - error: Maybe; - externalChannelAssociation: Maybe; -}; - export type CreateIndexedDocumentInput = { + labelTypeIds?: InputMaybe>; url: Scalars['String']; }; @@ -1202,6 +1222,17 @@ export type CreateThreadAssignedToInput = { userId?: InputMaybe; }; +export type CreateThreadChannelAssociationInput = { + companyIdentifier: CompanyIdentifierInput; + connectedSlackChannelId?: InputMaybe; +}; + +export type CreateThreadChannelAssociationOutput = { + __typename?: 'CreateThreadChannelAssociationOutput'; + error: Maybe; + threadChannelAssociation: Maybe; +}; + export type CreateThreadDiscussionInput = { connectedSlackChannelId: Scalars['ID']; markdownContent: Scalars['String']; @@ -1241,6 +1272,7 @@ export type CreateThreadFieldOnThreadInput = { export type CreateThreadFieldSchemaInput = { defaultBooleanValue?: InputMaybe; defaultStringValue?: InputMaybe; + dependsOnLabelTypeIds?: InputMaybe>; dependsOnThreadField?: InputMaybe; description: Scalars['String']; enumValues: Array; @@ -1288,6 +1320,7 @@ export type CreateThreadInput = { export type CreateThreadLinkInput = { linearIssue?: InputMaybe; + plainThread?: InputMaybe; threadId: Scalars['ID']; }; @@ -1991,6 +2024,12 @@ export type DatetimeFilter = { before?: InputMaybe; }; +export type DefaultServiceIntegration = ServiceIntegration & { + __typename?: 'DefaultServiceIntegration'; + key: Scalars['String']; + name: Scalars['String']; +}; + export type DeleteApiKeyInput = { apiKeyId: Scalars['ID']; }; @@ -2062,12 +2101,12 @@ export type DeleteCustomerOutput = { error: Maybe; }; -export type DeleteExternalChannelAssociationInput = { - externalChannelAssociationId: Scalars['ID']; +export type DeleteIndexedDocumentInput = { + indexedDocumentId: Scalars['ID']; }; -export type DeleteExternalChannelAssociationOutput = { - __typename?: 'DeleteExternalChannelAssociationOutput'; +export type DeleteIndexedDocumentOutput = { + __typename?: 'DeleteIndexedDocumentOutput'; error: Maybe; }; @@ -2136,6 +2175,15 @@ export type DeleteSnippetOutput = { snippet: Maybe; }; +export type DeleteThreadChannelAssociationInput = { + threadChannelAssociationId: Scalars['ID']; +}; + +export type DeleteThreadChannelAssociationOutput = { + __typename?: 'DeleteThreadChannelAssociationOutput'; + error: Maybe; +}; + export type DeleteThreadFieldInput = { threadFieldId: Scalars['ID']; }; @@ -2274,6 +2322,11 @@ export type DeletedCustomerEmailActor = { customerId: Scalars['ID']; }; +export type DependsOnLabelType = { + __typename?: 'DependsOnLabelType'; + labelTypeId: Scalars['ID']; +}; + export type DependsOnThreadFieldInput = { threadFieldSchemaId: Scalars['ID']; threadFieldSchemaValue: Scalars['String']; @@ -2296,8 +2349,10 @@ export type DnsRecord = { }; export enum DoneStatusDetail { + DoneAutomaticallySet = 'DONE_AUTOMATICALLY_SET', DoneManuallySet = 'DONE_MANUALLY_SET', Ignored = 'IGNORED', + /** @deprecated Use DONE_AUTOMATICALLY_SET instead. */ TimerExpired = 'TIMER_EXPIRED' } @@ -2427,7 +2482,7 @@ export type EmailSignature = { }; /** A union of all possible entries that can appear in a timeline. */ -export type Entry = ChatEntry | CustomEntry | CustomerEventEntry | EmailEntry | LinearIssueThreadLinkStateTransitionedEntry | MsTeamsMessageEntry | NoteEntry | ServiceLevelAgreementStatusTransitionedEntry | SlackMessageEntry | SlackReplyEntry | ThreadAssignmentTransitionedEntry | ThreadDiscussionEntry | ThreadDiscussionResolvedEntry | ThreadEventEntry | ThreadLabelsChangedEntry | ThreadPriorityChangedEntry | ThreadStatusTransitionedEntry; +export type Entry = ChatEntry | CustomEntry | CustomerEventEntry | EmailEntry | LinearIssueThreadLinkStateTransitionedEntry | MsTeamsMessageEntry | NoteEntry | ServiceLevelAgreementStatusTransitionedEntry | SlackMessageEntry | SlackReplyEntry | ThreadAdditionalAssigneesTransitionedEntry | ThreadAssignmentTransitionedEntry | ThreadDiscussionEntry | ThreadDiscussionResolvedEntry | ThreadEventEntry | ThreadLabelsChangedEntry | ThreadLinkUpdatedEntry | ThreadPriorityChangedEntry | ThreadStatusTransitionedEntry; export type EventComponent = ComponentBadge | ComponentCopyButton | ComponentDivider | ComponentLinkButton | ComponentPlainText | ComponentRow | ComponentSpacer | ComponentText; @@ -2442,15 +2497,6 @@ export type EventComponentInput = { componentText?: InputMaybe; }; -export type ExternalChannelAssociation = { - companyId: Maybe; - createdAt: DateTime; - createdBy: InternalActor; - id: Scalars['ID']; - updatedAt: DateTime; - updatedBy: InternalActor; -}; - export enum FeatureKey { BillingRotaSeats = 'BILLING_ROTA_SEATS', BusinessHours = 'BUSINESS_HOURS', @@ -2498,6 +2544,11 @@ export type ForkThreadOutput = { thread: Maybe; }; +export type GeneratedReply = { + __typename?: 'GeneratedReply'; + text: Scalars['String']; +}; + export type ImpersonationInput = { asCustomer: CustomerImpersonationInput; }; @@ -2507,12 +2558,24 @@ export type IndexedDocument = { createdAt: DateTime; createdBy: InternalActor; id: Scalars['ID']; - lastIndexedAt: Maybe; + labelTypes: Array; updatedAt: DateTime; updatedBy: InternalActor; url: Scalars['String']; }; +export type IndexedDocumentConnection = { + __typename?: 'IndexedDocumentConnection'; + edges: Array; + pageInfo: PageInfo; +}; + +export type IndexedDocumentEdge = { + __typename?: 'IndexedDocumentEdge'; + cursor: Scalars['String']; + node: IndexedDocument; +}; + export type IntArrayInput = { value: Array; }; @@ -2537,6 +2600,26 @@ export type InviteUserToWorkspaceOutput = { invite: Maybe; }; +export type JiraIntegrationToken = { + __typename?: 'JiraIntegrationToken'; + token: Scalars['String']; +}; + +export type JiraSite = { + __typename?: 'JiraSite'; + avatarUrl: Maybe; + id: Scalars['ID']; + name: Scalars['String']; + url: Scalars['String']; +}; + +export type JiraSiteIntegration = ServiceIntegration & { + __typename?: 'JiraSiteIntegration'; + key: Scalars['String']; + name: Scalars['String']; + site: JiraSite; +}; + export type Label = { __typename?: 'Label'; createdAt: DateTime; @@ -2793,6 +2876,7 @@ export enum MetricDimensionType { export type Mutation = { __typename?: 'Mutation'; acceptWorkspaceInvite: AcceptWorkspaceInviteOutput; + addAdditionalAssignees: AddAdditionalAssigneesOutput; /** Add a customer to a customer group. */ addCustomerToCustomerGroups: AddCustomerToCustomerGroupsOutput; addCustomerToTenants: AddCustomerToTenantsOutput; @@ -2824,7 +2908,6 @@ export type Mutation = { /** Create a new customer group. */ createCustomerGroup: CreateCustomerGroupOutput; createEmailPreviewUrl: CreateEmailPreviewUrlOutput; - createExternalChannelAssociation: CreateExternalChannelAssociationOutput; createIndexedDocument: CreateIndexedDocumentOutput; createLabelType: CreateLabelTypeOutput; createMachineUser: CreateMachineUserOutput; @@ -2835,6 +2918,7 @@ export type Mutation = { createServiceLevelAgreement: CreateServiceLevelAgreementOutput; createSnippet: CreateSnippetOutput; createThread: CreateThreadOutput; + createThreadChannelAssociation: CreateThreadChannelAssociationOutput; createThreadDiscussion: CreateThreadDiscussionOutput; /** Create a new thread event. */ createThreadEvent: CreateThreadEventOutput; @@ -2864,7 +2948,7 @@ export type Mutation = { deleteCustomerCardConfig: DeleteCustomerCardConfigOutput; /** Delete a customer group by ID. */ deleteCustomerGroup: DeleteCustomerGroupOutput; - deleteExternalChannelAssociation: DeleteExternalChannelAssociationOutput; + deleteIndexedDocument: DeleteIndexedDocumentOutput; deleteMachineUser: DeleteMachineUserOutput; deleteMyLinearIntegration: DeleteMyLinearIntegrationOutput; deleteMyMSTeamsIntegration: DeleteMyMsTeamsIntegrationOutput; @@ -2873,6 +2957,7 @@ export type Mutation = { deleteServiceAuthorization: DeleteServiceAuthorizationOutput; deleteServiceLevelAgreement: DeleteServiceLevelAgreementOutput; deleteSnippet: DeleteSnippetOutput; + deleteThreadChannelAssociation: DeleteThreadChannelAssociationOutput; deleteThreadField: DeleteThreadFieldOutput; deleteThreadFieldSchema: DeleteThreadFieldSchemaOutput; deleteThreadLink: DeleteThreadLinkOutput; @@ -2903,6 +2988,7 @@ export type Mutation = { * Will discard whatever is in the cache and reload it from the configured API URL. */ reloadCustomerCardInstance: ReloadCustomerCardInstanceOutput; + removeAdditionalAssignees: RemoveAdditionalAssigneesOutput; /** Remove a customer from a customer group. */ removeCustomerFromCustomerGroups: RemoveCustomerFromCustomerGroupsOutput; removeCustomerFromTenants: RemoveCustomerFromTenantsOutput; @@ -2993,6 +3079,11 @@ export type MutationAcceptWorkspaceInviteArgs = { }; +export type MutationAddAdditionalAssigneesArgs = { + input: AddAdditionalAssigneesInput; +}; + + export type MutationAddCustomerToCustomerGroupsArgs = { input: AddCustomerToCustomerGroupsInput; }; @@ -3123,11 +3214,6 @@ export type MutationCreateEmailPreviewUrlArgs = { }; -export type MutationCreateExternalChannelAssociationArgs = { - input: CreateExternalChannelAssociationInput; -}; - - export type MutationCreateIndexedDocumentArgs = { input: CreateIndexedDocumentInput; }; @@ -3178,6 +3264,11 @@ export type MutationCreateThreadArgs = { }; +export type MutationCreateThreadChannelAssociationArgs = { + input: CreateThreadChannelAssociationInput; +}; + + export type MutationCreateThreadDiscussionArgs = { input: CreateThreadDiscussionInput; }; @@ -3288,8 +3379,8 @@ export type MutationDeleteCustomerGroupArgs = { }; -export type MutationDeleteExternalChannelAssociationArgs = { - input: DeleteExternalChannelAssociationInput; +export type MutationDeleteIndexedDocumentArgs = { + input: DeleteIndexedDocumentInput; }; @@ -3318,6 +3409,11 @@ export type MutationDeleteSnippetArgs = { }; +export type MutationDeleteThreadChannelAssociationArgs = { + input: DeleteThreadChannelAssociationInput; +}; + + export type MutationDeleteThreadFieldArgs = { input: DeleteThreadFieldInput; }; @@ -3423,6 +3519,11 @@ export type MutationReloadCustomerCardInstanceArgs = { }; +export type MutationRemoveAdditionalAssigneesArgs = { + input: RemoveAdditionalAssigneesInput; +}; + + export type MutationRemoveCustomerFromCustomerGroupsArgs = { input: RemoveCustomerFromCustomerGroupsInput; }; @@ -3841,6 +3942,26 @@ export type Permissions = { permissions: Array; }; +export type PlainThreadLinkInput = { + plainThreadId: Scalars['ID']; +}; + +export type PlainThreadThreadLink = ThreadLink & { + __typename?: 'PlainThreadThreadLink'; + createdAt: DateTime; + createdBy: InternalActor; + description: Maybe; + id: Scalars['ID']; + plainThreadId: Scalars['ID']; + plainThreadStatusDetailType: StatusDetailType; + status: ThreadLinkStatus; + threadId: Scalars['ID']; + title: Scalars['String']; + updatedAt: DateTime; + updatedBy: InternalActor; + url: Scalars['String']; +}; + export type PreviewBillingPlanChangeInput = { intervalUnit?: InputMaybe; planKey: BillingPlanKey; @@ -3881,6 +4002,7 @@ export type Query = { chatApps: ChatAppConnection; companies: CompanyConnection; company: Maybe; + connectedSlackChannel: Maybe; /** Gets all slack channels for this workspace, which match the specified filters. */ connectedSlackChannels: ConnectedSlackChannelConnection; customer: Maybe; @@ -3904,6 +4026,9 @@ export type Query = { /** Get a paginated list of customer groups. */ customerGroups: CustomerGroupConnection; customers: CustomerConnection; + /** This API is in beta and may change without notice. */ + generateReply: GeneratedReply; + indexedDocuments: IndexedDocumentConnection; labelType: Maybe; labelTypes: LabelTypeConnection; machineUser: Maybe; @@ -3911,6 +4036,7 @@ export type Query = { myBillingRota: Maybe; myBillingSubscription: Maybe; myEmailSignature: Maybe; + myJiraIntegrationToken: Maybe; myLinearInstallationInfo: UserLinearInstallationInfo; myLinearIntegration: Maybe; myLinearIntegrationToken: Maybe; @@ -3959,8 +4085,6 @@ export type Query = { snippets: SnippetConnection; /** List all the events types you can subscribe to. */ subscriptionEventTypes: Array; - /** This API is in beta and may change without notice. */ - suggestResponse: Maybe; tenant: Maybe; tenants: TenantConnection; /** Get a thread by its ID. */ @@ -4073,6 +4197,11 @@ export type QueryCompanyArgs = { }; +export type QueryConnectedSlackChannelArgs = { + connectedSlackChannelId: Scalars['ID']; +}; + + export type QueryConnectedSlackChannelsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -4132,6 +4261,20 @@ export type QueryCustomersArgs = { }; +export type QueryGenerateReplyArgs = { + prompt?: InputMaybe; + threadId: Scalars['ID']; +}; + + +export type QueryIndexedDocumentsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + + export type QueryLabelTypeArgs = { labelTypeId: Scalars['ID']; }; @@ -4269,6 +4412,7 @@ export type QueryServiceAuthorizationArgs = { export type QueryServiceAuthorizationsArgs = { after?: InputMaybe; before?: InputMaybe; + filters?: InputMaybe; first?: InputMaybe; last?: InputMaybe; }; @@ -4306,12 +4450,6 @@ export type QuerySnippetsArgs = { }; -export type QuerySuggestResponseArgs = { - prompt?: InputMaybe; - threadId: Scalars['ID']; -}; - - export type QueryTenantArgs = { tenantId: Scalars['ID']; }; @@ -4578,6 +4716,18 @@ export type ReloadCustomerCardInstanceOutput = { error: Maybe; }; +export type RemoveAdditionalAssigneesInput = { + machineUserIds?: InputMaybe>; + threadId: Scalars['ID']; + userIds?: InputMaybe>; +}; + +export type RemoveAdditionalAssigneesOutput = { + __typename?: 'RemoveAdditionalAssigneesOutput'; + error: Maybe; + thread: Maybe; +}; + export type RemoveCustomerFromCustomerGroupsInput = { customerGroupIdentifiers: Array; customerId: Scalars['ID']; @@ -4856,10 +5006,13 @@ export type SendThreadDiscussionMessageOutput = { export type ServiceAuthorization = { __typename?: 'ServiceAuthorization'; + connectedAt: DateTime; + connectedBy: InternalActor; createdAt: DateTime; createdBy: InternalActor; id: Scalars['ID']; serviceIntegration: ServiceIntegration; + status: ServiceAuthorizationStatus; updatedAt: DateTime; updatedBy: InternalActor; }; @@ -4874,6 +5027,7 @@ export type ServiceAuthorizationConnectionDetails = { __typename?: 'ServiceAuthorizationConnectionDetails'; hmacDigest: Scalars['String']; serviceAuthorizationId: Scalars['ID']; + /** One of: zendesk, salesforce, freshdesk, helpscout-mailbox, hubspot, jira. */ serviceIntegrationKey: Scalars['String']; }; @@ -4883,8 +5037,39 @@ export type ServiceAuthorizationEdge = { node: ServiceAuthorization; }; +/** + * The status of the service authorization. The status transitions are as follows: + * PENDING_AUTH → COMPLETE_AUTH → CONNECTED ↔ REINSTALL_REQUIRED + * + * There is no + */ +export enum ServiceAuthorizationStatus { + /** + * User has completed the service authorization, but the service is not yet ready for use. + * This happens when the service requires additional configuration (e.g. creating webhooks + * in the service). + * This is a transient state that typically lasts for a few seconds. Plain will automatically + * attempt to configure the service, and transition to CONNECTED or REINSTALL_REQUIRED. + */ + CompletedAuth = 'COMPLETED_AUTH', + /** Service authorization is connected and ready for use. */ + Connected = 'CONNECTED', + /** Service authorization was requested, but the user has not yet completed the authorization. */ + PendingAuth = 'PENDING_AUTH', + /** + * Service authorization was revoked, this typically happen when the Plain integration is removed + * from the service. Plain keeps the service authorization to allow for reconnection without + * losing the service's configuration. + */ + ReinstallRequired = 'REINSTALL_REQUIRED' +} + +export type ServiceAuthorizationsFilter = { + /** One of: zendesk, salesforce, freshdesk, helpscout-mailbox, hubspot, jira. */ + serviceIntegrationKey?: InputMaybe; +}; + export type ServiceIntegration = { - __typename?: 'ServiceIntegration'; key: Scalars['String']; name: Scalars['String']; }; @@ -5018,6 +5203,11 @@ export type SettingScopeInput = { /** An enum to describe the type of scope the setting is for. */ export enum SettingScopeType { + /** + * Scope for any chat application settings + * An `id` is mandatory and should be a chat application id (`liveChatApp_123`) + */ + Chat = 'CHAT', /** * Scope for any user level settings * An `id` is not needed as it will implicitly be the authenticated user's id. @@ -5097,17 +5287,6 @@ export type SingleValueMetricValue = { value: Maybe; }; -export type SlackExternalChannelAssociation = ExternalChannelAssociation & { - __typename?: 'SlackExternalChannelAssociation'; - companyId: Maybe; - connectedSlackChannelId: Maybe; - createdAt: DateTime; - createdBy: InternalActor; - id: Scalars['ID']; - updatedAt: DateTime; - updatedBy: InternalActor; -}; - export type SlackMessageEntry = { __typename?: 'SlackMessageEntry'; attachments: Array; @@ -5143,16 +5322,19 @@ export type SlackReplyEntry = { text: Scalars['String']; }; -export type SlackThreadChannelDetails = { - __typename?: 'SlackThreadChannelDetails'; - slackChannelId: Scalars['String']; - slackChannelName: Scalars['String']; - slackTeamId: Scalars['String']; - slackTeamName: Scalars['String']; +export type SlackThreadChannelAssociation = ThreadChannelAssociation & { + __typename?: 'SlackThreadChannelAssociation'; + companyId: Maybe; + connectedSlackChannelId: Scalars['ID']; + createdAt: DateTime; + createdBy: InternalActor; + id: Scalars['ID']; + updatedAt: DateTime; + updatedBy: InternalActor; }; -export type SlackThreadExternalChannelDetails = { - __typename?: 'SlackThreadExternalChannelDetails'; +export type SlackThreadChannelDetails = { + __typename?: 'SlackThreadChannelDetails'; slackChannelId: Scalars['String']; slackChannelName: Scalars['String']; slackTeamId: Scalars['String']; @@ -5241,6 +5423,7 @@ export enum SortDirection { } export type StartServiceAuthorizationInput = { + /** One of: zendesk, salesforce, freshdesk, helpscout-mailbox, hubspot, jira. */ serviceIntegrationKey: Scalars['String']; }; @@ -5252,12 +5435,14 @@ export type StartServiceAuthorizationOutput = { export enum StatusDetailType { Created = 'CREATED', + DoneAutomaticallySet = 'DONE_AUTOMATICALLY_SET', DoneManuallySet = 'DONE_MANUALLY_SET', Ignored = 'IGNORED', InProgress = 'IN_PROGRESS', NewReply = 'NEW_REPLY', ThreadDiscussionResolved = 'THREAD_DISCUSSION_RESOLVED', ThreadLinkUpdated = 'THREAD_LINK_UPDATED', + /** @deprecated Use DONE_AUTOMATICALLY_SET instead. */ TimerExpired = 'TIMER_EXPIRED', WaitingForCustomer = 'WAITING_FOR_CUSTOMER', WaitingForDuration = 'WAITING_FOR_DURATION' @@ -5329,11 +5514,6 @@ export type SubscriptionEventType = { eventType: Scalars['String']; }; -export type SuggestedResponse = { - __typename?: 'SuggestedResponse'; - response: Scalars['String']; -}; - export type SupportEmailAddressEmailActor = { __typename?: 'SupportEmailAddressEmailActor'; supportEmailAddress: Scalars['String']; @@ -5430,6 +5610,8 @@ export type TenantsSearchQuery = { /** A thread represents a conversation with a customer, around a specific topic. */ export type Thread = { __typename?: 'Thread'; + /** Additional assignees for this thread. */ + additionalAssignees: Array; /** The datetime when this thread was last assigned to someone or something. */ assignedAt: Maybe; /** Who or what this thread is assigned to. */ @@ -5446,8 +5628,6 @@ export type Thread = { customer: Customer; /** The description of this thread. */ description: Maybe; - /** @deprecated Use channelDetails instead */ - externalChannelDetails: Maybe; /** The external ID of this thread. You can use this field to store your own unique identifier for this thread. */ externalId: Maybe; /** First inbound message on the thread. */ @@ -5516,10 +5696,17 @@ export type ThreadLinksArgs = { export type ThreadTimelineEntriesArgs = { after?: InputMaybe; before?: InputMaybe; + filters?: InputMaybe; first?: InputMaybe; last?: InputMaybe; }; +export type ThreadAdditionalAssigneesTransitionedEntry = { + __typename?: 'ThreadAdditionalAssigneesTransitionedEntry'; + nextAssignees: Array; + previousAssignees: Array; +}; + export type ThreadAssignee = MachineUser | System | User; export type ThreadAssignmentTransitionedEntry = { @@ -5542,7 +5729,16 @@ export enum ThreadChannel { Slack = 'SLACK' } -export type ThreadChannelDetails = SlackThreadChannelDetails; +export type ThreadChannelAssociation = { + companyId: Maybe; + createdAt: DateTime; + createdBy: InternalActor; + id: Scalars['ID']; + updatedAt: DateTime; + updatedBy: InternalActor; +}; + +export type ThreadChannelDetails = ChatThreadChannelDetails | SlackThreadChannelDetails; export type ThreadCluster = { __typename?: 'ThreadCluster'; @@ -5677,8 +5873,6 @@ export type ThreadEventEntry = TimelineEventEntry & { title: Scalars['String']; }; -export type ThreadExternalChannelDetails = SlackThreadExternalChannelDetails; - export type ThreadField = { __typename?: 'ThreadField'; booleanValue: Maybe; @@ -5706,6 +5900,7 @@ export type ThreadFieldSchema = { createdBy: InternalActor; defaultBooleanValue: Maybe; defaultStringValue: Maybe; + dependsOnLabels: Array; dependsOnThreadField: Maybe; description: Scalars['String']; enumValues: Array; @@ -5891,6 +6086,12 @@ export enum ThreadLinkStatus { Unknown = 'UNKNOWN' } +export type ThreadLinkUpdatedEntry = { + __typename?: 'ThreadLinkUpdatedEntry'; + previousThreadLink: ThreadLink; + threadLink: ThreadLink; +}; + export type ThreadMessageInfo = { __typename?: 'ThreadMessageInfo'; /** The source through which the message came through. */ @@ -6033,6 +6234,11 @@ export type ThreadStatusTransitionedEntry = { previousStatusDetail: Maybe; }; +export type ThreadTimelineEntriesFilter = { + /** Only return message timeline entries. */ + isMessage?: InputMaybe; +}; + export type ThreadWithDistance = { __typename?: 'ThreadWithDistance'; distance: Scalars['Float']; @@ -6524,6 +6730,7 @@ export type UpdateTenantTierOutput = { export type UpdateThreadFieldSchemaInput = { defaultBooleanValue?: InputMaybe; defaultStringValue?: InputMaybe; + dependsOnLabelTypeIds?: InputMaybe>; dependsOnThreadField?: InputMaybe; description?: InputMaybe; enumValues?: InputMaybe>; From e5511820fe2ddc8867ab986c6fb8ff1403eca615 Mon Sep 17 00:00:00 2001 From: andrewblaney Date: Wed, 6 Nov 2024 13:37:51 +0000 Subject: [PATCH 2/2] update changeset --- .changeset/clean-beers-smile.md | 12 ------------ .changeset/hip-ties-rush.md | 6 ++++++ 2 files changed, 6 insertions(+), 12 deletions(-) delete mode 100644 .changeset/clean-beers-smile.md create mode 100644 .changeset/hip-ties-rush.md diff --git a/.changeset/clean-beers-smile.md b/.changeset/clean-beers-smile.md deleted file mode 100644 index 52e11d8..0000000 --- a/.changeset/clean-beers-smile.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@team-plain/typescript-sdk': major ---- - -Breaking changes: -- `IndexedDocument.lastIndexedAt` removed. -- `Thread.externalChannelDetails` has been removed. Use `Thread.channelDetails`. - -Deprecations: -- `DoneStatusDetail.TimerExpired` is deprecated. Use `DoneAutomaticallySet`. -- `StatusDetailType.TimerExpired` is deprecated. Use `DoneAutomaticallySet` . - diff --git a/.changeset/hip-ties-rush.md b/.changeset/hip-ties-rush.md new file mode 100644 index 0000000..6ea223d --- /dev/null +++ b/.changeset/hip-ties-rush.md @@ -0,0 +1,6 @@ +--- +'@team-plain/typescript-sdk': minor +--- + +Regenerate GraphQL Schema +- Allow labelTypeIds to be passed to `indexDocument` mutation \ No newline at end of file