@bcrumbs.net/inbox 0.0.66 → 0.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -191,6 +191,11 @@ export type AgentCreateInput = {
191
191
  export type AgentCreateWithApiKeyInput = {
192
192
  /** Optional. Defaults to a label that includes the agent name and surname when provided (e.g. "API key · Jane Doe"). */
193
193
  apiKeyLabel?: InputMaybe<Scalars['String']['input']>;
194
+ /**
195
+ * Optional. The role the API key acts with: MANAGER, AGENT_PLUS or AGENT. Can't be higher than your own role.
196
+ * If omitted, the key acts as AGENT_PLUS when an email is provided. The role can't be changed later; create a new key instead.
197
+ */
198
+ apiKeyRole?: InputMaybe<Role>;
194
199
  /**
195
200
  * Optional. If omitted, stored as an empty string (API-key-only / non-login agents).
196
201
  * If this field is provided and the email is invited to the workspace, the agent will be linked to the invited user automatically after accessing the workspace.
@@ -319,6 +324,8 @@ export type ApiKey = {
319
324
  key?: Maybe<Scalars['String']['output']>;
320
325
  /** The label of the API key. */
321
326
  label: Scalars['String']['output'];
327
+ /** The role the key acts with (MANAGER, AGENT_PLUS or AGENT). Null for workspace keys, which are not scoped to an agent and have full workspace access. */
328
+ role?: Maybe<Role>;
322
329
  workspaceId: Scalars['Int']['output'];
323
330
  };
324
331
  /** ApiKeyDeleteInput is an input of the api key delete mutation. */
@@ -331,6 +338,11 @@ export type ApiKeyGenInput = {
331
338
  agentId?: InputMaybe<Scalars['ID']['input']>;
332
339
  /** The label of the API key. */
333
340
  label: Scalars['String']['input'];
341
+ /**
342
+ * Optional. The role the key acts with: MANAGER, AGENT_PLUS or AGENT. Requires agentId and can't be higher than your own role.
343
+ * If omitted, keys linked to an agent with an email act as AGENT_PLUS. The role can't be changed later; create a new key instead.
344
+ */
345
+ role?: InputMaybe<Role>;
334
346
  workspaceId: Scalars['Int']['input'];
335
347
  };
336
348
  /** ApiKeysInput is an input of the api keys query. */
@@ -2644,6 +2656,8 @@ export type Mutation = {
2644
2656
  * Removes core data, then calls internal endpoints on bot, billing, and auth to remove related data.
2645
2657
  */
2646
2658
  deleteWorkspace: DeleteWorkspaceResult;
2659
+ /** Stop a WhatsApp number from controlling this workspace. You should have the MANAGE_WORKSPACE permission. */
2660
+ disableWorkspaceControl: WorkspaceControlContact;
2647
2661
  /** Finish or dismiss the checklist so it stops being shown. Idempotent. */
2648
2662
  dismissWorkspaceOnboarding: WorkspaceOnboarding;
2649
2663
  /** End a conversation. If you don't have the MANAGE_CONVS permission, you can only end the conversation you are assigned to. */
@@ -2706,6 +2720,8 @@ export type Mutation = {
2706
2720
  * the new conversation is assigned to the starting agent when applicable.
2707
2721
  */
2708
2722
  startConv: Conversation;
2723
+ /** Create a one-time code to connect a WhatsApp number to this workspace (admin-level control through the Bread Crumbs WhatsApp number). The number connects by sending "LINK <code>". Signed-in portal users with the MANAGE_WORKSPACE permission only. */
2724
+ startWorkspaceControlLink: WorkspaceControlLink;
2709
2725
  /** Tag a client. You should have the MANAGE_CLIENTS permission to tag a client. */
2710
2726
  tagClient: Client;
2711
2727
  /** Tag a conversation. */
@@ -2866,6 +2882,9 @@ export type MutationDeleteWebhookArgs = {
2866
2882
  export type MutationDeleteWorkspaceArgs = {
2867
2883
  input: DeleteWorkspaceInput;
2868
2884
  };
2885
+ export type MutationDisableWorkspaceControlArgs = {
2886
+ input: WorkspaceControlInput;
2887
+ };
2869
2888
  export type MutationDismissWorkspaceOnboardingArgs = {
2870
2889
  input: WorkspaceOnboardingInput;
2871
2890
  };
@@ -2954,6 +2973,9 @@ export type MutationSendNotificationAndWaitArgs = {
2954
2973
  export type MutationStartConvArgs = {
2955
2974
  input: ConvStartInput;
2956
2975
  };
2976
+ export type MutationStartWorkspaceControlLinkArgs = {
2977
+ input: WorkspaceControlLinkInput;
2978
+ };
2957
2979
  export type MutationTagClientArgs = {
2958
2980
  input: ClientTagInput;
2959
2981
  };
@@ -3294,6 +3316,8 @@ export type Query = {
3294
3316
  webhooks: WebhooksPayload;
3295
3317
  /** Paginated message statuses for broadcasts in a date range, plus messages without a broadcast in the same period. You should have the MANAGE_CONVS permission. */
3296
3318
  workspaceBroadcastMessageStatuses: BroadcastMessageStatusesPayload;
3319
+ /** WhatsApp numbers that can control this workspace. You should have the MANAGE_WORKSPACE permission. */
3320
+ workspaceControlContacts: WorkspaceControlContactsPayload;
3297
3321
  /**
3298
3322
  * List pending/approved invitations for a workspace. Empty when Clerk is off.
3299
3323
  * Caller must be a member.
@@ -3474,6 +3498,9 @@ export type QueryWorkspaceBroadcastMessageStatusesArgs = {
3474
3498
  input: WorkspaceBroadcastMessageStatusesInput;
3475
3499
  pageInfo?: InputMaybe<PageInfoInput>;
3476
3500
  };
3501
+ export type QueryWorkspaceControlContactsArgs = {
3502
+ input: WorkspaceControlContactsInput;
3503
+ };
3477
3504
  export type QueryWorkspaceInvitationsArgs = {
3478
3505
  workspaceId: Scalars['Int']['input'];
3479
3506
  };
@@ -4096,6 +4123,36 @@ export type WorkspaceBroadcastMessageStatusesInput = {
4096
4123
  templateName?: InputMaybe<Scalars['String']['input']>;
4097
4124
  workspaceId: Scalars['Int']['input'];
4098
4125
  };
4126
+ /** A WhatsApp contact that can control a workspace through the Bread Crumbs WhatsApp number. */
4127
+ export type WorkspaceControlContact = {
4128
+ __typename?: 'WorkspaceControlContact';
4129
+ name?: Maybe<Scalars['String']['output']>;
4130
+ phone?: Maybe<Scalars['String']['output']>;
4131
+ workspaceId: Scalars['Int']['output'];
4132
+ };
4133
+ export type WorkspaceControlContactsInput = {
4134
+ workspaceId: Scalars['Int']['input'];
4135
+ };
4136
+ export type WorkspaceControlContactsPayload = {
4137
+ __typename?: 'WorkspaceControlContactsPayload';
4138
+ nodes: Array<WorkspaceControlContact>;
4139
+ };
4140
+ export type WorkspaceControlInput = {
4141
+ /** WhatsApp number that controls the workspace. */
4142
+ phone: Scalars['String']['input'];
4143
+ workspaceId: Scalars['Int']['input'];
4144
+ };
4145
+ /** One-time code to connect a WhatsApp number: send "LINK <code>" from that number to the Bread Crumbs WhatsApp number before it expires. */
4146
+ export type WorkspaceControlLink = {
4147
+ __typename?: 'WorkspaceControlLink';
4148
+ code: Scalars['String']['output'];
4149
+ expiresAt: Scalars['DateTime']['output'];
4150
+ /** The Bread Crumbs WhatsApp number to send the code to. */
4151
+ whatsappNumber?: Maybe<Scalars['String']['output']>;
4152
+ };
4153
+ export type WorkspaceControlLinkInput = {
4154
+ workspaceId: Scalars['Int']['input'];
4155
+ };
4099
4156
  /** Pending or approved workspace invitation (Clerk invite flow). */
4100
4157
  export type WorkspaceInvitation = {
4101
4158
  __typename?: 'WorkspaceInvitation';
@@ -4309,6 +4366,19 @@ export type AiFragment = {
4309
4366
  }> | null;
4310
4367
  } | null;
4311
4368
  };
4369
+ export type QaEntryFieldsFragment = {
4370
+ __typename?: 'QaEntry';
4371
+ workspaceId: number;
4372
+ id: string;
4373
+ question: string;
4374
+ answer: string;
4375
+ status: QaStatus;
4376
+ origin: QaOrigin;
4377
+ messageId?: string | null;
4378
+ conversationId?: string | null;
4379
+ createdAt: any;
4380
+ patchedAt?: any | null;
4381
+ };
4312
4382
  export type AiQueryVariables = Exact<{
4313
4383
  input: AiInput;
4314
4384
  }>;
@@ -4484,6 +4554,25 @@ export type CreateAiMutation = {
4484
4554
  } | null;
4485
4555
  };
4486
4556
  };
4557
+ export type CreateQaMutationVariables = Exact<{
4558
+ input: QaCreateInput;
4559
+ }>;
4560
+ export type CreateQaMutation = {
4561
+ __typename?: 'Mutation';
4562
+ createQa: {
4563
+ __typename?: 'QaEntry';
4564
+ workspaceId: number;
4565
+ id: string;
4566
+ question: string;
4567
+ answer: string;
4568
+ status: QaStatus;
4569
+ origin: QaOrigin;
4570
+ messageId?: string | null;
4571
+ conversationId?: string | null;
4572
+ createdAt: any;
4573
+ patchedAt?: any | null;
4574
+ };
4575
+ };
4487
4576
  export type CreateSourceMutationVariables = Exact<{
4488
4577
  input: SourceCreateInput;
4489
4578
  }>;
@@ -4552,6 +4641,25 @@ export type DeleteAiMutation = {
4552
4641
  } | null;
4553
4642
  };
4554
4643
  };
4644
+ export type DeleteQaMutationVariables = Exact<{
4645
+ input: QaIdInput;
4646
+ }>;
4647
+ export type DeleteQaMutation = {
4648
+ __typename?: 'Mutation';
4649
+ deleteQa: {
4650
+ __typename?: 'QaEntry';
4651
+ workspaceId: number;
4652
+ id: string;
4653
+ question: string;
4654
+ answer: string;
4655
+ status: QaStatus;
4656
+ origin: QaOrigin;
4657
+ messageId?: string | null;
4658
+ conversationId?: string | null;
4659
+ createdAt: any;
4660
+ patchedAt?: any | null;
4661
+ };
4662
+ };
4555
4663
  export type DeleteSourceMutationVariables = Exact<{
4556
4664
  input: SourceDeleteInput;
4557
4665
  }>;
@@ -4635,6 +4743,69 @@ export type PatchSourceMutation = {
4635
4743
  createdAt: any;
4636
4744
  };
4637
4745
  };
4746
+ export type PublishQaMutationVariables = Exact<{
4747
+ input: QaIdInput;
4748
+ }>;
4749
+ export type PublishQaMutation = {
4750
+ __typename?: 'Mutation';
4751
+ publishQa: {
4752
+ __typename?: 'QaEntry';
4753
+ workspaceId: number;
4754
+ id: string;
4755
+ question: string;
4756
+ answer: string;
4757
+ status: QaStatus;
4758
+ origin: QaOrigin;
4759
+ messageId?: string | null;
4760
+ conversationId?: string | null;
4761
+ createdAt: any;
4762
+ patchedAt?: any | null;
4763
+ };
4764
+ };
4765
+ export type QaEntriesQueryVariables = Exact<{
4766
+ input: QaEntriesInput;
4767
+ }>;
4768
+ export type QaEntriesQuery = {
4769
+ __typename?: 'Query';
4770
+ qaEntries: {
4771
+ __typename?: 'QaEntriesPayload';
4772
+ nodes?: Array<{
4773
+ __typename?: 'QaEntry';
4774
+ workspaceId: number;
4775
+ id: string;
4776
+ question: string;
4777
+ answer: string;
4778
+ status: QaStatus;
4779
+ origin: QaOrigin;
4780
+ messageId?: string | null;
4781
+ conversationId?: string | null;
4782
+ createdAt: any;
4783
+ patchedAt?: any | null;
4784
+ }> | null;
4785
+ };
4786
+ };
4787
+ export type SimilarQaQueryVariables = Exact<{
4788
+ input: SimilarQaInput;
4789
+ }>;
4790
+ export type SimilarQaQuery = {
4791
+ __typename?: 'Query';
4792
+ similarQa: {
4793
+ __typename?: 'SimilarQaPayload';
4794
+ entry?: {
4795
+ __typename?: 'QaEntry';
4796
+ workspaceId: number;
4797
+ id: string;
4798
+ question: string;
4799
+ answer: string;
4800
+ status: QaStatus;
4801
+ origin: QaOrigin;
4802
+ messageId?: string | null;
4803
+ conversationId?: string | null;
4804
+ createdAt: any;
4805
+ patchedAt?: any | null;
4806
+ } | null;
4807
+ };
4808
+ };
4638
4809
  export type SourcesQueryVariables = Exact<{
4639
4810
  input: SourcesInput;
4640
4811
  }>;
@@ -4699,6 +4870,44 @@ export type TokenUsageTotalQuery = {
4699
4870
  totalCachedInputTokens: number;
4700
4871
  };
4701
4872
  };
4873
+ export type UnpublishQaMutationVariables = Exact<{
4874
+ input: QaIdInput;
4875
+ }>;
4876
+ export type UnpublishQaMutation = {
4877
+ __typename?: 'Mutation';
4878
+ unpublishQa: {
4879
+ __typename?: 'QaEntry';
4880
+ workspaceId: number;
4881
+ id: string;
4882
+ question: string;
4883
+ answer: string;
4884
+ status: QaStatus;
4885
+ origin: QaOrigin;
4886
+ messageId?: string | null;
4887
+ conversationId?: string | null;
4888
+ createdAt: any;
4889
+ patchedAt?: any | null;
4890
+ };
4891
+ };
4892
+ export type UpdateQaMutationVariables = Exact<{
4893
+ input: QaUpdateInput;
4894
+ }>;
4895
+ export type UpdateQaMutation = {
4896
+ __typename?: 'Mutation';
4897
+ updateQa: {
4898
+ __typename?: 'QaEntry';
4899
+ workspaceId: number;
4900
+ id: string;
4901
+ question: string;
4902
+ answer: string;
4903
+ status: QaStatus;
4904
+ origin: QaOrigin;
4905
+ messageId?: string | null;
4906
+ conversationId?: string | null;
4907
+ createdAt: any;
4908
+ patchedAt?: any | null;
4909
+ };
4910
+ };
4702
4911
  export type UserFragment = {
4703
4912
  __typename?: 'User';
4704
4913
  id: string;
@@ -7793,6 +8002,7 @@ export type ApiKeyFragment = {
7793
8002
  id: string;
7794
8003
  label: string;
7795
8004
  agentId?: string | null;
8005
+ role?: Role | null;
7796
8006
  createdAt: any;
7797
8007
  };
7798
8008
  export type IntegrationFragment = {
@@ -7833,6 +8043,7 @@ export type ApiKeysQuery = {
7833
8043
  id: string;
7834
8044
  label: string;
7835
8045
  agentId?: string | null;
8046
+ role?: Role | null;
7836
8047
  createdAt: any;
7837
8048
  }> | null;
7838
8049
  };
@@ -7871,6 +8082,7 @@ export type CreateAgentWithApiKeyMutation = {
7871
8082
  key?: string | null;
7872
8083
  label: string;
7873
8084
  agentId?: string | null;
8085
+ role?: Role | null;
7874
8086
  createdAt: any;
7875
8087
  };
7876
8088
  };
@@ -7936,6 +8148,7 @@ export type DeleteApiKeyMutation = {
7936
8148
  id: string;
7937
8149
  label: string;
7938
8150
  agentId?: string | null;
8151
+ role?: Role | null;
7939
8152
  createdAt: any;
7940
8153
  };
7941
8154
  };
@@ -8001,6 +8214,7 @@ export type GenApiKeyMutation = {
8001
8214
  key?: string | null;
8002
8215
  label: string;
8003
8216
  agentId?: string | null;
8217
+ role?: Role | null;
8004
8218
  createdAt: any;
8005
8219
  };
8006
8220
  };
@@ -8368,6 +8582,7 @@ export type WorkspacesQuery = {
8368
8582
  };
8369
8583
  };
8370
8584
  export declare const AiFragmentDoc: Apollo.DocumentNode;
8585
+ export declare const QaEntryFieldsFragmentDoc: Apollo.DocumentNode;
8371
8586
  export declare const UserFragmentDoc: Apollo.DocumentNode;
8372
8587
  export declare const UserRoleFragmentDoc: Apollo.DocumentNode;
8373
8588
  export declare const BroadcastFragmentDoc: Apollo.DocumentNode;
@@ -8540,6 +8755,31 @@ export declare function useCreateAiMutation(baseOptions?: Apollo.MutationHookOpt
8540
8755
  export type CreateAiMutationHookResult = ReturnType<typeof useCreateAiMutation>;
8541
8756
  export type CreateAiMutationResult = Apollo.MutationResult<CreateAiMutation>;
8542
8757
  export type CreateAiMutationOptions = Apollo.BaseMutationOptions<CreateAiMutation, CreateAiMutationVariables>;
8758
+ export declare const CreateQaDocument: Apollo.DocumentNode;
8759
+ export type CreateQaMutationFn = Apollo.MutationFunction<CreateQaMutation, CreateQaMutationVariables>;
8760
+ /**
8761
+ * __useCreateQaMutation__
8762
+ *
8763
+ * To run a mutation, you first call `useCreateQaMutation` within a React component and pass it any options that fit your needs.
8764
+ * When your component renders, `useCreateQaMutation` returns a tuple that includes:
8765
+ * - A mutate function that you can call at any time to execute the mutation
8766
+ * - An object with fields that represent the current status of the mutation's execution
8767
+ *
8768
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
8769
+ *
8770
+ * @example
8771
+ * const [createQaMutation, { data, loading, error }] = useCreateQaMutation({
8772
+ * variables: {
8773
+ * input: // value for 'input'
8774
+ * },
8775
+ * });
8776
+ */
8777
+ export declare function useCreateQaMutation(baseOptions?: Apollo.MutationHookOptions<CreateQaMutation, CreateQaMutationVariables>): Apollo.MutationTuple<CreateQaMutation, Exact<{
8778
+ input: QaCreateInput;
8779
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
8780
+ export type CreateQaMutationHookResult = ReturnType<typeof useCreateQaMutation>;
8781
+ export type CreateQaMutationResult = Apollo.MutationResult<CreateQaMutation>;
8782
+ export type CreateQaMutationOptions = Apollo.BaseMutationOptions<CreateQaMutation, CreateQaMutationVariables>;
8543
8783
  export declare const CreateSourceDocument: Apollo.DocumentNode;
8544
8784
  export type CreateSourceMutationFn = Apollo.MutationFunction<CreateSourceMutation, CreateSourceMutationVariables>;
8545
8785
  /**
@@ -8590,6 +8830,31 @@ export declare function useDeleteAiMutation(baseOptions?: Apollo.MutationHookOpt
8590
8830
  export type DeleteAiMutationHookResult = ReturnType<typeof useDeleteAiMutation>;
8591
8831
  export type DeleteAiMutationResult = Apollo.MutationResult<DeleteAiMutation>;
8592
8832
  export type DeleteAiMutationOptions = Apollo.BaseMutationOptions<DeleteAiMutation, DeleteAiMutationVariables>;
8833
+ export declare const DeleteQaDocument: Apollo.DocumentNode;
8834
+ export type DeleteQaMutationFn = Apollo.MutationFunction<DeleteQaMutation, DeleteQaMutationVariables>;
8835
+ /**
8836
+ * __useDeleteQaMutation__
8837
+ *
8838
+ * To run a mutation, you first call `useDeleteQaMutation` within a React component and pass it any options that fit your needs.
8839
+ * When your component renders, `useDeleteQaMutation` returns a tuple that includes:
8840
+ * - A mutate function that you can call at any time to execute the mutation
8841
+ * - An object with fields that represent the current status of the mutation's execution
8842
+ *
8843
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
8844
+ *
8845
+ * @example
8846
+ * const [deleteQaMutation, { data, loading, error }] = useDeleteQaMutation({
8847
+ * variables: {
8848
+ * input: // value for 'input'
8849
+ * },
8850
+ * });
8851
+ */
8852
+ export declare function useDeleteQaMutation(baseOptions?: Apollo.MutationHookOptions<DeleteQaMutation, DeleteQaMutationVariables>): Apollo.MutationTuple<DeleteQaMutation, Exact<{
8853
+ input: QaIdInput;
8854
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
8855
+ export type DeleteQaMutationHookResult = ReturnType<typeof useDeleteQaMutation>;
8856
+ export type DeleteQaMutationResult = Apollo.MutationResult<DeleteQaMutation>;
8857
+ export type DeleteQaMutationOptions = Apollo.BaseMutationOptions<DeleteQaMutation, DeleteQaMutationVariables>;
8593
8858
  export declare const DeleteSourceDocument: Apollo.DocumentNode;
8594
8859
  export type DeleteSourceMutationFn = Apollo.MutationFunction<DeleteSourceMutation, DeleteSourceMutationVariables>;
8595
8860
  /**
@@ -8665,6 +8930,113 @@ export declare function usePatchSourceMutation(baseOptions?: Apollo.MutationHook
8665
8930
  export type PatchSourceMutationHookResult = ReturnType<typeof usePatchSourceMutation>;
8666
8931
  export type PatchSourceMutationResult = Apollo.MutationResult<PatchSourceMutation>;
8667
8932
  export type PatchSourceMutationOptions = Apollo.BaseMutationOptions<PatchSourceMutation, PatchSourceMutationVariables>;
8933
+ export declare const PublishQaDocument: Apollo.DocumentNode;
8934
+ export type PublishQaMutationFn = Apollo.MutationFunction<PublishQaMutation, PublishQaMutationVariables>;
8935
+ /**
8936
+ * __usePublishQaMutation__
8937
+ *
8938
+ * To run a mutation, you first call `usePublishQaMutation` within a React component and pass it any options that fit your needs.
8939
+ * When your component renders, `usePublishQaMutation` returns a tuple that includes:
8940
+ * - A mutate function that you can call at any time to execute the mutation
8941
+ * - An object with fields that represent the current status of the mutation's execution
8942
+ *
8943
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
8944
+ *
8945
+ * @example
8946
+ * const [publishQaMutation, { data, loading, error }] = usePublishQaMutation({
8947
+ * variables: {
8948
+ * input: // value for 'input'
8949
+ * },
8950
+ * });
8951
+ */
8952
+ export declare function usePublishQaMutation(baseOptions?: Apollo.MutationHookOptions<PublishQaMutation, PublishQaMutationVariables>): Apollo.MutationTuple<PublishQaMutation, Exact<{
8953
+ input: QaIdInput;
8954
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
8955
+ export type PublishQaMutationHookResult = ReturnType<typeof usePublishQaMutation>;
8956
+ export type PublishQaMutationResult = Apollo.MutationResult<PublishQaMutation>;
8957
+ export type PublishQaMutationOptions = Apollo.BaseMutationOptions<PublishQaMutation, PublishQaMutationVariables>;
8958
+ export declare const QaEntriesDocument: Apollo.DocumentNode;
8959
+ /**
8960
+ * __useQaEntriesQuery__
8961
+ *
8962
+ * To run a query within a React component, call `useQaEntriesQuery` and pass it any options that fit your needs.
8963
+ * When your component renders, `useQaEntriesQuery` returns an object from Apollo Client that contains loading, error, and data properties
8964
+ * you can use to render your UI.
8965
+ *
8966
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
8967
+ *
8968
+ * @example
8969
+ * const { data, loading, error } = useQaEntriesQuery({
8970
+ * variables: {
8971
+ * input: // value for 'input'
8972
+ * },
8973
+ * });
8974
+ */
8975
+ export declare function useQaEntriesQuery(baseOptions: Apollo.QueryHookOptions<QaEntriesQuery, QaEntriesQueryVariables> & ({
8976
+ variables: QaEntriesQueryVariables;
8977
+ skip?: boolean;
8978
+ } | {
8979
+ skip: boolean;
8980
+ })): Apollo.QueryResult<QaEntriesQuery, Exact<{
8981
+ input: QaEntriesInput;
8982
+ }>>;
8983
+ export declare function useQaEntriesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<QaEntriesQuery, QaEntriesQueryVariables>): Apollo.LazyQueryResultTuple<QaEntriesQuery, Exact<{
8984
+ input: QaEntriesInput;
8985
+ }>>;
8986
+ export declare function useQaEntriesSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<QaEntriesQuery, QaEntriesQueryVariables>): Apollo.UseSuspenseQueryResult<QaEntriesQuery | undefined, Exact<{
8987
+ input: QaEntriesInput;
8988
+ }>>;
8989
+ export type QaEntriesQueryHookResult = ReturnType<typeof useQaEntriesQuery>;
8990
+ export type QaEntriesLazyQueryHookResult = ReturnType<typeof useQaEntriesLazyQuery>;
8991
+ export type QaEntriesSuspenseQueryHookResult = ReturnType<typeof useQaEntriesSuspenseQuery>;
8992
+ export type QaEntriesQueryResult = Apollo.QueryResult<QaEntriesQuery, QaEntriesQueryVariables>;
8993
+ export declare function refetchQaEntriesQuery(variables: QaEntriesQueryVariables): {
8994
+ query: Apollo.DocumentNode;
8995
+ variables: Exact<{
8996
+ input: QaEntriesInput;
8997
+ }>;
8998
+ };
8999
+ export declare const SimilarQaDocument: Apollo.DocumentNode;
9000
+ /**
9001
+ * __useSimilarQaQuery__
9002
+ *
9003
+ * To run a query within a React component, call `useSimilarQaQuery` and pass it any options that fit your needs.
9004
+ * When your component renders, `useSimilarQaQuery` returns an object from Apollo Client that contains loading, error, and data properties
9005
+ * you can use to render your UI.
9006
+ *
9007
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
9008
+ *
9009
+ * @example
9010
+ * const { data, loading, error } = useSimilarQaQuery({
9011
+ * variables: {
9012
+ * input: // value for 'input'
9013
+ * },
9014
+ * });
9015
+ */
9016
+ export declare function useSimilarQaQuery(baseOptions: Apollo.QueryHookOptions<SimilarQaQuery, SimilarQaQueryVariables> & ({
9017
+ variables: SimilarQaQueryVariables;
9018
+ skip?: boolean;
9019
+ } | {
9020
+ skip: boolean;
9021
+ })): Apollo.QueryResult<SimilarQaQuery, Exact<{
9022
+ input: SimilarQaInput;
9023
+ }>>;
9024
+ export declare function useSimilarQaLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SimilarQaQuery, SimilarQaQueryVariables>): Apollo.LazyQueryResultTuple<SimilarQaQuery, Exact<{
9025
+ input: SimilarQaInput;
9026
+ }>>;
9027
+ export declare function useSimilarQaSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<SimilarQaQuery, SimilarQaQueryVariables>): Apollo.UseSuspenseQueryResult<SimilarQaQuery | undefined, Exact<{
9028
+ input: SimilarQaInput;
9029
+ }>>;
9030
+ export type SimilarQaQueryHookResult = ReturnType<typeof useSimilarQaQuery>;
9031
+ export type SimilarQaLazyQueryHookResult = ReturnType<typeof useSimilarQaLazyQuery>;
9032
+ export type SimilarQaSuspenseQueryHookResult = ReturnType<typeof useSimilarQaSuspenseQuery>;
9033
+ export type SimilarQaQueryResult = Apollo.QueryResult<SimilarQaQuery, SimilarQaQueryVariables>;
9034
+ export declare function refetchSimilarQaQuery(variables: SimilarQaQueryVariables): {
9035
+ query: Apollo.DocumentNode;
9036
+ variables: Exact<{
9037
+ input: SimilarQaInput;
9038
+ }>;
9039
+ };
8668
9040
  export declare const SourcesDocument: Apollo.DocumentNode;
8669
9041
  /**
8670
9042
  * __useSourcesQuery__
@@ -8793,6 +9165,56 @@ export declare function refetchTokenUsageTotalQuery(variables: TokenUsageTotalQu
8793
9165
  input: TokenUsageTotalInput;
8794
9166
  }>;
8795
9167
  };
9168
+ export declare const UnpublishQaDocument: Apollo.DocumentNode;
9169
+ export type UnpublishQaMutationFn = Apollo.MutationFunction<UnpublishQaMutation, UnpublishQaMutationVariables>;
9170
+ /**
9171
+ * __useUnpublishQaMutation__
9172
+ *
9173
+ * To run a mutation, you first call `useUnpublishQaMutation` within a React component and pass it any options that fit your needs.
9174
+ * When your component renders, `useUnpublishQaMutation` returns a tuple that includes:
9175
+ * - A mutate function that you can call at any time to execute the mutation
9176
+ * - An object with fields that represent the current status of the mutation's execution
9177
+ *
9178
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
9179
+ *
9180
+ * @example
9181
+ * const [unpublishQaMutation, { data, loading, error }] = useUnpublishQaMutation({
9182
+ * variables: {
9183
+ * input: // value for 'input'
9184
+ * },
9185
+ * });
9186
+ */
9187
+ export declare function useUnpublishQaMutation(baseOptions?: Apollo.MutationHookOptions<UnpublishQaMutation, UnpublishQaMutationVariables>): Apollo.MutationTuple<UnpublishQaMutation, Exact<{
9188
+ input: QaIdInput;
9189
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
9190
+ export type UnpublishQaMutationHookResult = ReturnType<typeof useUnpublishQaMutation>;
9191
+ export type UnpublishQaMutationResult = Apollo.MutationResult<UnpublishQaMutation>;
9192
+ export type UnpublishQaMutationOptions = Apollo.BaseMutationOptions<UnpublishQaMutation, UnpublishQaMutationVariables>;
9193
+ export declare const UpdateQaDocument: Apollo.DocumentNode;
9194
+ export type UpdateQaMutationFn = Apollo.MutationFunction<UpdateQaMutation, UpdateQaMutationVariables>;
9195
+ /**
9196
+ * __useUpdateQaMutation__
9197
+ *
9198
+ * To run a mutation, you first call `useUpdateQaMutation` within a React component and pass it any options that fit your needs.
9199
+ * When your component renders, `useUpdateQaMutation` returns a tuple that includes:
9200
+ * - A mutate function that you can call at any time to execute the mutation
9201
+ * - An object with fields that represent the current status of the mutation's execution
9202
+ *
9203
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
9204
+ *
9205
+ * @example
9206
+ * const [updateQaMutation, { data, loading, error }] = useUpdateQaMutation({
9207
+ * variables: {
9208
+ * input: // value for 'input'
9209
+ * },
9210
+ * });
9211
+ */
9212
+ export declare function useUpdateQaMutation(baseOptions?: Apollo.MutationHookOptions<UpdateQaMutation, UpdateQaMutationVariables>): Apollo.MutationTuple<UpdateQaMutation, Exact<{
9213
+ input: QaUpdateInput;
9214
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
9215
+ export type UpdateQaMutationHookResult = ReturnType<typeof useUpdateQaMutation>;
9216
+ export type UpdateQaMutationResult = Apollo.MutationResult<UpdateQaMutation>;
9217
+ export type UpdateQaMutationOptions = Apollo.BaseMutationOptions<UpdateQaMutation, UpdateQaMutationVariables>;
8796
9218
  export declare const AssignOwnerDocument: Apollo.DocumentNode;
8797
9219
  export type AssignOwnerMutationFn = Apollo.MutationFunction<AssignOwnerMutation, AssignOwnerMutationVariables>;
8798
9220
  /**
@@ -0,0 +1,7 @@
1
+ export declare const loadInboxPage: () => Promise<typeof import("../app/inbox/pages/InboxPage")>;
2
+ /**
3
+ * Starts the inbox route chunks while the app shell still waits on its startup
4
+ * gates (feature flags, theme config, workspaces, current user). Otherwise the
5
+ * chunks only start to download after all of those gates resolve.
6
+ */
7
+ export declare function prefetchLandingRoute(): void;