Skip to content

Commit

Permalink
[VET-5225] add success to voicebox conversation query (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticfalconvt authored Dec 11, 2024
1 parent f4f46e2 commit 116ba96
Show file tree
Hide file tree
Showing 2 changed files with 163 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/sdk/documents/getVoiceboxConversation.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ query getVoiceboxConversation($conversation_id: String!) {
label
value
}
success
}
}
}
Expand Down
162 changes: 162 additions & 0 deletions src/sdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export type Scalars = {
Boolean: boolean;
Int: number;
Float: number;
Base64Bytes: any;
Datetime: string;
PositiveInt: any;
};
Expand All @@ -31,6 +32,12 @@ export type AddConnectionInput = {
username?: InputMaybe<Scalars['String']>;
};

export type AddSsoConnectionInput = {
connection_name: Scalars['String'];
provider_name: Scalars['String'];
stardog_endpoint: Scalars['String'];
};

export type ApiToken = {
__typename?: 'ApiToken';
created: Scalars['Datetime'];
Expand Down Expand Up @@ -119,6 +126,7 @@ export type Connection = {
token?: Maybe<Scalars['String']>;
type?: Maybe<Scalars['String']>;
useBrowserAuth?: Maybe<Scalars['Boolean']>;
useConnectionSSO?: Maybe<Scalars['Boolean']>;
useSSO?: Maybe<Scalars['Boolean']>;
user?: Maybe<User>;
username?: Maybe<Scalars['String']>;
Expand Down Expand Up @@ -161,6 +169,43 @@ export type DeletionResponse = {
success: Scalars['Boolean'];
};

export type DesignerProject = {
__typename?: 'DesignerProject';
content: Scalars['Base64Bytes'];
created_at: Scalars['Datetime'];
id: Scalars['ID'];
owner: User;
roles: Array<DesignerProjectRole>;
updated_at: Scalars['Datetime'];
};

export type DesignerProjectInvitation = {
__typename?: 'DesignerProjectInvitation';
accepted_at?: Maybe<Scalars['Datetime']>;
created_at: Scalars['Datetime'];
id: Scalars['ID'];
invitee: User;
is_accepted: Scalars['Boolean'];
project: DesignerProject;
role: DesignerProjectRoleChoices;
updated_at: Scalars['Datetime'];
};

export type DesignerProjectRole = {
__typename?: 'DesignerProjectRole';
created_at: Scalars['Datetime'];
id: Scalars['ID'];
project: DesignerProject;
role: DesignerProjectRoleChoices;
updated_at: Scalars['Datetime'];
user: User;
};

export enum DesignerProjectRoleChoices {
Editor = 'EDITOR',
Viewer = 'VIEWER',
}

export type EditApiTokenInput = {
id: Scalars['ID'];
name?: InputMaybe<Scalars['String']>;
Expand Down Expand Up @@ -232,6 +277,10 @@ export type ItemCount = {
count?: Maybe<Scalars['Int']>;
};

export type LogoutSsoConnectionInput = {
connection_id: Scalars['String'];
};

export type MarketplaceSettings = {
__typename?: 'MarketplaceSettings';
marketplaceDatabase: Scalars['String'];
Expand All @@ -243,28 +292,47 @@ export type MarketplaceSettings = {
/** Root Mutation Type */
export type Mutation = {
__typename?: 'Mutation';
/** Accept an incoming Designer project invitation. */
acceptDesignerProjectInvitation: Scalars['ID'];
acceptInvitation?: Maybe<GenericResponse>;
addConnection?: Maybe<Connection>;
addInvitation?: Maybe<GenericResponse>;
addSSOConnection?: Maybe<SsoConnectionRedirectResponse>;
addShare?: Maybe<Share>;
cancelCloud?: Maybe<GenericResponse>;
changeDesignerProjectRole: Scalars['ID'];
checkoutCart?: Maybe<BillingSession>;
createApiToken?: Maybe<CreateApiTokenResult>;
createDesignerProject: Scalars['ID'];
createVoiceboxApp?: Maybe<GenericResponse>;
deleteAccount?: Maybe<DeletionResponse>;
deleteApiToken?: Maybe<GenericResponse>;
deleteCloud?: Maybe<DeletionResponse>;
deleteConnection?: Maybe<DeletionResponse>;
deleteDesignerProject: Scalars['ID'];
deleteVoiceboxApp?: Maybe<GenericResponse>;
deleteVoiceboxConversation?: Maybe<GenericResponse>;
editApiToken?: Maybe<GenericResponse>;
editConnection?: Maybe<Connection>;
editVoiceboxConversation?: Maybe<GenericResponse>;
generateConfiguration?: Maybe<ExampleConfig>;
getStripeSessionUrl?: Maybe<BillingSession>;
logoutSSOConnection?: Maybe<GenericResponse>;
reauthenticateSSOConnection?: Maybe<SsoConnectionRedirectResponse>;
removePartnerConnection?: Maybe<GenericResponse>;
resendEmail?: Maybe<GenericResponse>;
/** Revoke an outgoing Designer project invitation, or reject an invitation sent to you. */
revokeDesignerProjectInvitation: Scalars['ID'];
/** Revoke a given role, or leave a role given to you. */
revokeDesignerProjectRole: Scalars['ID'];
/**
* Send a Designer project invitation.
*
* (you cannot send an invitation to someone who already has a role)
*/
sendDesignerProjectInvitation: Scalars['ID'];
trackEvent?: Maybe<GenericResponse>;
updateDesignerProject: Scalars['ID'];
updatePartnerConnection?: Maybe<GenericResponse>;
updateProfile?: Maybe<User>;
updateUserFeatures?: Maybe<User>;
Expand All @@ -273,6 +341,11 @@ export type Mutation = {
verifyInvitation?: Maybe<GenericResponse>;
};

/** Root Mutation Type */
export type MutationAcceptDesignerProjectInvitationArgs = {
invitation_id: Scalars['ID'];
};

/** Root Mutation Type */
export type MutationAcceptInvitationArgs = {
input: InvitationFlagInput;
Expand All @@ -288,6 +361,11 @@ export type MutationAddInvitationArgs = {
input: InvitationInput;
};

/** Root Mutation Type */
export type MutationAddSsoConnectionArgs = {
input: AddSsoConnectionInput;
};

/** Root Mutation Type */
export type MutationAddShareArgs = {
input: ShareInput;
Expand All @@ -298,6 +376,12 @@ export type MutationCancelCloudArgs = {
input: CancelCloudInput;
};

/** Root Mutation Type */
export type MutationChangeDesignerProjectRoleArgs = {
role: DesignerProjectRoleChoices;
role_id: Scalars['ID'];
};

/** Root Mutation Type */
export type MutationCheckoutCartArgs = {
addOns?: InputMaybe<Array<InputMaybe<CheckoutLineItem>>>;
Expand All @@ -309,6 +393,11 @@ export type MutationCreateApiTokenArgs = {
input: CreateApiTokenInput;
};

/** Root Mutation Type */
export type MutationCreateDesignerProjectArgs = {
content: Scalars['Base64Bytes'];
};

/** Root Mutation Type */
export type MutationCreateVoiceboxAppArgs = {
input: CreateVoiceboxAppInput;
Expand All @@ -329,6 +418,11 @@ export type MutationDeleteConnectionArgs = {
name: Scalars['String'];
};

/** Root Mutation Type */
export type MutationDeleteDesignerProjectArgs = {
project_id: Scalars['ID'];
};

/** Root Mutation Type */
export type MutationDeleteVoiceboxAppArgs = {
id: Scalars['ID'];
Expand Down Expand Up @@ -359,16 +453,49 @@ export type MutationGenerateConfigurationArgs = {
endpoint: Scalars['String'];
};

/** Root Mutation Type */
export type MutationLogoutSsoConnectionArgs = {
input: LogoutSsoConnectionInput;
};

/** Root Mutation Type */
export type MutationReauthenticateSsoConnectionArgs = {
input: ReauthenticateSsoConnectionInput;
};

/** Root Mutation Type */
export type MutationRemovePartnerConnectionArgs = {
input: RemovePartnerConnectionInput;
};

/** Root Mutation Type */
export type MutationRevokeDesignerProjectInvitationArgs = {
invitation_id?: InputMaybe<Scalars['ID']>;
};

/** Root Mutation Type */
export type MutationRevokeDesignerProjectRoleArgs = {
role_id: Scalars['ID'];
};

/** Root Mutation Type */
export type MutationSendDesignerProjectInvitationArgs = {
invitee_id: Scalars['ID'];
project_id: Scalars['ID'];
role: DesignerProjectRoleChoices;
};

/** Root Mutation Type */
export type MutationTrackEventArgs = {
input: TrackEventInput;
};

/** Root Mutation Type */
export type MutationUpdateDesignerProjectArgs = {
content: Scalars['Base64Bytes'];
project_id: Scalars['ID'];
};

/** Root Mutation Type */
export type MutationUpdatePartnerConnectionArgs = {
input: UpdatePartnerConnectionInput;
Expand Down Expand Up @@ -475,7 +602,14 @@ export type Query = {
generateToken?: Maybe<OAuthToken>;
getConnection?: Maybe<Connection>;
getConnectionByIndex?: Maybe<Connection>;
/** Retrieve a single Designer project. */
getDesignerProject: DesignerProject;
/** List both incoming and outgoing Designer project invitations. */
getDesignerProjectInvitations: Array<DesignerProjectInvitation>;
/** List all Designer projects you own, as well as any projects shared with you. */
getDesignerProjects: Array<DesignerProject>;
getInvitation?: Maybe<Invitation>;
getSSOConnectionRegistry?: Maybe<Array<Maybe<SsoConnectionRegistration>>>;
getShareByShortHash?: Maybe<Share>;
getStardogCloud?: Maybe<StardogCloud>;
getStripePrices?: Maybe<Array<Maybe<StripePrice>>>;
Expand Down Expand Up @@ -535,6 +669,11 @@ export type QueryGetConnectionByIndexArgs = {
index: Scalars['Int'];
};

/** Root Query Type */
export type QueryGetDesignerProjectArgs = {
project_id: Scalars['ID'];
};

/** Root Query Type */
export type QueryGetInvitationArgs = {
id: Scalars['ID'];
Expand Down Expand Up @@ -641,10 +780,26 @@ export type Quota = {
total?: Maybe<Scalars['Int']>;
};

export type ReauthenticateSsoConnectionInput = {
connection_id: Scalars['String'];
};

export type RemovePartnerConnectionInput = {
connection_id: Scalars['String'];
};

export type SsoConnectionRedirectResponse = {
__typename?: 'SSOConnectionRedirectResponse';
redirect_url: Scalars['String'];
};

export type SsoConnectionRegistration = {
__typename?: 'SSOConnectionRegistration';
display_provider_name: Scalars['String'];
provider_name: Scalars['String'];
stardog_endpoint?: Maybe<Scalars['String']>;
};

/** Settings, these are settings that control the front end display */
export type Settings = {
__typename?: 'Settings';
Expand Down Expand Up @@ -739,6 +894,7 @@ export type SystemVoiceboxMessageContext = {
actions?: Maybe<Array<Maybe<VoicboxSystemMessageAction>>>;
followup_examples?: Maybe<Array<Maybe<Scalars['String']>>>;
id: Scalars['ID'];
success?: Maybe<Scalars['Boolean']>;
};

export type TrackEventInput = {
Expand Down Expand Up @@ -781,6 +937,7 @@ export type User = {
id?: Maybe<Scalars['ID']>;
industry?: Maybe<Scalars['String']>;
is_authenticated: Scalars['Boolean'];
is_blocked_email?: Maybe<Scalars['Boolean']>;
is_databricks_user?: Maybe<Scalars['Boolean']>;
is_ephemeral?: Maybe<Scalars['Boolean']>;
is_partner_user?: Maybe<Scalars['Boolean']>;
Expand All @@ -790,6 +947,7 @@ export type User = {
is_studio_voicebox_enabled?: Maybe<Scalars['Boolean']>;
is_superuser?: Maybe<Scalars['Boolean']>;
is_verified?: Maybe<Scalars['Boolean']>;
is_voicebox_api_access_enabled?: Maybe<Scalars['Boolean']>;
is_voicebox_enabled?: Maybe<Scalars['Boolean']>;
last_login?: Maybe<Scalars['String']>;
last_name?: Maybe<Scalars['String']>;
Expand All @@ -805,6 +963,7 @@ export type User = {

export type UserFeaturesInput = {
is_static_voicebox?: InputMaybe<Scalars['Boolean']>;
is_voicebox_api_access_enabled?: InputMaybe<Scalars['Boolean']>;
is_voicebox_enabled?: InputMaybe<Scalars['Boolean']>;
};

Expand All @@ -815,6 +974,7 @@ export type UserSearchDetails = {

export type UserSearchFiltersInput = {
is_staff?: InputMaybe<Scalars['Boolean']>;
is_voicebox_api_access_enabled?: InputMaybe<Scalars['Boolean']>;
is_voicebox_enabled?: InputMaybe<Scalars['Boolean']>;
};

Expand Down Expand Up @@ -936,6 +1096,7 @@ export type GetVoiceboxConversationQuery = {
system_message_context?: {
__typename?: 'SystemVoiceboxMessageContext';
followup_examples?: Array<string | null> | null;
success?: boolean | null;
actions?: Array<{
__typename?: 'VoicboxSystemMessageAction';
type?: string | null;
Expand Down Expand Up @@ -1075,6 +1236,7 @@ export const GetVoiceboxConversationDocument = `
label
value
}
success
}
}
}
Expand Down

0 comments on commit 116ba96

Please sign in to comment.