@legendsoflearning/lol-sdk-core 0.0.2 → 0.0.4

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.
@@ -129,6 +129,22 @@ type AgentsAdmin = {
129
129
  role: AdminRole;
130
130
  updatedAt: Scalars['DateTime']['output'];
131
131
  };
132
+ /** Error from authentication */
133
+ type AuthError = {
134
+ __typename?: 'AuthError';
135
+ /** Field that caused the error */
136
+ field: Scalars['String']['output'];
137
+ /** Error message */
138
+ message: Scalars['String']['output'];
139
+ };
140
+ /** Minimal user info returned from sign-in */
141
+ type AuthUser = {
142
+ __typename?: 'AuthUser';
143
+ email: Scalars['String']['output'];
144
+ firstName?: Maybe<Scalars['String']['output']>;
145
+ id: Scalars['ID']['output'];
146
+ lastName?: Maybe<Scalars['String']['output']>;
147
+ };
132
148
  type Conversation = {
133
149
  __typename?: 'Conversation';
134
150
  agent?: Maybe<Agent>;
@@ -225,6 +241,11 @@ declare enum MessageRole {
225
241
  ToolResult = "TOOL_RESULT",
226
242
  User = "USER"
227
243
  }
244
+ /** OAuth providers */
245
+ declare enum OauthProvider {
246
+ /** Google OAuth */
247
+ Google = "GOOGLE"
248
+ }
228
249
  type RootMutationType = {
229
250
  __typename?: 'RootMutationType';
230
251
  /** Archive an agent */
@@ -257,6 +278,16 @@ type RootMutationType = {
257
278
  disableAgentsSchedule?: Maybe<Schedule>;
258
279
  /** Enable a schedule */
259
280
  enableAgentsSchedule?: Maybe<Schedule>;
281
+ /**
282
+ * Exchange an OAuth authorization code for a session token.
283
+ *
284
+ * After the user authenticates with an OAuth provider (e.g., Google),
285
+ * the frontend receives an authorization code. This mutation exchanges
286
+ * that code for user info and returns a session token with all roles.
287
+ *
288
+ * This is a public endpoint - no authentication required.
289
+ */
290
+ exchangeOauthCode?: Maybe<SignInResult>;
260
291
  /** Reject a tool call that requires confirmation */
261
292
  rejectAgentsToolCall?: Maybe<Scalars['Boolean']['output']>;
262
293
  /** Remove a tool from an agent */
@@ -265,6 +296,18 @@ type RootMutationType = {
265
296
  restoreAgent?: Maybe<Agent>;
266
297
  /** Send a message to a conversation */
267
298
  sendAgentsMessage?: Maybe<Message>;
299
+ /**
300
+ * Sign in with email/password.
301
+ *
302
+ * Validates credentials against the users table. Returns a session token
303
+ * that includes all roles the user qualifies for.
304
+ *
305
+ * The optional `role` parameter can verify the user has a specific role,
306
+ * but the token will always contain ALL roles regardless.
307
+ *
308
+ * This is a public endpoint - no authentication required.
309
+ */
310
+ signIn?: Maybe<SignInResult>;
268
311
  /** Update an existing agent */
269
312
  updateAgent?: Maybe<Agent>;
270
313
  /** Update an agents admin */
@@ -320,6 +363,11 @@ type RootMutationTypeDisableAgentsScheduleArgs = {
320
363
  type RootMutationTypeEnableAgentsScheduleArgs = {
321
364
  id: Scalars['ID']['input'];
322
365
  };
366
+ type RootMutationTypeExchangeOauthCodeArgs = {
367
+ code: Scalars['String']['input'];
368
+ provider: OauthProvider;
369
+ redirectUri: Scalars['String']['input'];
370
+ };
323
371
  type RootMutationTypeRejectAgentsToolCallArgs = {
324
372
  id: Scalars['ID']['input'];
325
373
  };
@@ -333,6 +381,11 @@ type RootMutationTypeRestoreAgentArgs = {
333
381
  type RootMutationTypeSendAgentsMessageArgs = {
334
382
  input: SendMessageInput;
335
383
  };
384
+ type RootMutationTypeSignInArgs = {
385
+ email: Scalars['String']['input'];
386
+ password: Scalars['String']['input'];
387
+ role?: InputMaybe<SignInRole>;
388
+ };
336
389
  type RootMutationTypeUpdateAgentArgs = {
337
390
  id: Scalars['ID']['input'];
338
391
  input: UpdateAgentInput;
@@ -495,6 +548,43 @@ type SendMessageInput = {
495
548
  content: Scalars['String']['input'];
496
549
  conversationId: Scalars['ID']['input'];
497
550
  };
551
+ /** Result of sign-in mutation */
552
+ type SignInResult = {
553
+ __typename?: 'SignInResult';
554
+ /** Any errors that occurred */
555
+ errors: Array<Maybe<AuthError>>;
556
+ /** All roles this user has */
557
+ roles?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
558
+ /** JWT token for subsequent requests */
559
+ sessionToken?: Maybe<Scalars['String']['output']>;
560
+ /** Whether authentication succeeded */
561
+ success: Scalars['Boolean']['output'];
562
+ /** Authenticated user info */
563
+ user?: Maybe<AuthUser>;
564
+ };
565
+ /** Available roles for sign-in verification */
566
+ declare enum SignInRole {
567
+ /** Super admin - internal users */
568
+ Admin = "ADMIN",
569
+ /** Agents dashboard access */
570
+ AgentsAdmin = "AGENTS_ADMIN",
571
+ /** Content admin - is_content_admin flag */
572
+ ContentAdmin = "CONTENT_ADMIN",
573
+ /** District admin - enterprise customers */
574
+ DistrictAdmin = "DISTRICT_ADMIN",
575
+ /** Game developer role - requires game_developer_id on user */
576
+ GameDeveloper = "GAME_DEVELOPER",
577
+ /** Parent role - requires parent_id on user */
578
+ Parent = "PARENT",
579
+ /** Question editor - can_edit_questions flag */
580
+ QuestionEditor = "QUESTION_EDITOR",
581
+ /** School admin - enterprise customers */
582
+ SchoolAdmin = "SCHOOL_ADMIN",
583
+ /** Student role - requires student_id on user */
584
+ Student = "STUDENT",
585
+ /** Teacher role - requires teacher_id on user */
586
+ Teacher = "TEACHER"
587
+ }
498
588
  type ToolCall = {
499
589
  __typename?: 'ToolCall';
500
590
  cacheHit: Scalars['Boolean']['output'];
@@ -641,6 +731,58 @@ type UsageStats = {
641
731
  totalRuns?: Maybe<Scalars['Int']['output']>;
642
732
  totalToolCalls?: Maybe<Scalars['Int']['output']>;
643
733
  };
734
+ type SignInMutationVariables = Exact<{
735
+ email: Scalars['String']['input'];
736
+ password: Scalars['String']['input'];
737
+ role?: InputMaybe<SignInRole>;
738
+ }>;
739
+ type SignInMutation = {
740
+ __typename?: 'RootMutationType';
741
+ signIn?: {
742
+ __typename?: 'SignInResult';
743
+ success: boolean;
744
+ sessionToken?: string | null;
745
+ roles?: Array<string | null> | null;
746
+ user?: {
747
+ __typename?: 'AuthUser';
748
+ id: string;
749
+ email: string;
750
+ firstName?: string | null;
751
+ lastName?: string | null;
752
+ } | null;
753
+ errors: Array<{
754
+ __typename?: 'AuthError';
755
+ field: string;
756
+ message: string;
757
+ } | null>;
758
+ } | null;
759
+ };
760
+ type ExchangeOauthCodeMutationVariables = Exact<{
761
+ code: Scalars['String']['input'];
762
+ provider: OauthProvider;
763
+ redirectUri: Scalars['String']['input'];
764
+ }>;
765
+ type ExchangeOauthCodeMutation = {
766
+ __typename?: 'RootMutationType';
767
+ exchangeOauthCode?: {
768
+ __typename?: 'SignInResult';
769
+ success: boolean;
770
+ sessionToken?: string | null;
771
+ roles?: Array<string | null> | null;
772
+ user?: {
773
+ __typename?: 'AuthUser';
774
+ id: string;
775
+ email: string;
776
+ firstName?: string | null;
777
+ lastName?: string | null;
778
+ } | null;
779
+ errors: Array<{
780
+ __typename?: 'AuthError';
781
+ field: string;
782
+ message: string;
783
+ } | null>;
784
+ } | null;
785
+ };
644
786
  type CreateAgentMutationVariables = Exact<{
645
787
  input: CreateAgentInput;
646
788
  }>;
@@ -1216,6 +1358,7 @@ type GetAgentsScheduleQuery = {
1216
1358
  type GetAgentsConversationsQueryVariables = Exact<{
1217
1359
  agentId?: InputMaybe<Scalars['ID']['input']>;
1218
1360
  status?: InputMaybe<ConversationStatus>;
1361
+ limit?: InputMaybe<Scalars['Int']['input']>;
1219
1362
  }>;
1220
1363
  type GetAgentsConversationsQuery = {
1221
1364
  __typename?: 'RootQueryType';
@@ -1286,6 +1429,7 @@ type GetAgentsRunsQueryVariables = Exact<{
1286
1429
  agentId?: InputMaybe<Scalars['ID']['input']>;
1287
1430
  conversationId?: InputMaybe<Scalars['ID']['input']>;
1288
1431
  status?: InputMaybe<RunStatus>;
1432
+ limit?: InputMaybe<Scalars['Int']['input']>;
1289
1433
  }>;
1290
1434
  type GetAgentsRunsQuery = {
1291
1435
  __typename?: 'RootQueryType';
@@ -1459,6 +1603,8 @@ type GetAgentsCurrentAdminQuery = {
1459
1603
  updatedAt: any;
1460
1604
  } | null;
1461
1605
  };
1606
+ declare const SignInDocument: TypedDocumentNode<SignInMutation, SignInMutationVariables>;
1607
+ declare const ExchangeOauthCodeDocument: TypedDocumentNode<ExchangeOauthCodeMutation, ExchangeOauthCodeMutationVariables>;
1462
1608
  declare const CreateAgentDocument: TypedDocumentNode<CreateAgentMutation, CreateAgentMutationVariables>;
1463
1609
  declare const UpdateAgentDocument: TypedDocumentNode<UpdateAgentMutation, UpdateAgentMutationVariables>;
1464
1610
  declare const ArchiveAgentDocument: TypedDocumentNode<ArchiveAgentMutation, ArchiveAgentMutationVariables>;
@@ -1529,6 +1675,8 @@ declare function isFragmentReady<TQuery, TFrag>(queryNode: DocumentTypeDecoratio
1529
1675
  * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
1530
1676
  */
1531
1677
  type Documents = {
1678
+ "\n mutation SignIn($email: String!, $password: String!, $role: SignInRole) {\n signIn(email: $email, password: $password, role: $role) {\n success\n sessionToken\n roles\n user {\n id\n email\n firstName\n lastName\n }\n errors {\n field\n message\n }\n }\n }\n": typeof SignInDocument;
1679
+ "\n mutation ExchangeOauthCode($code: String!, $provider: OauthProvider!, $redirectUri: String!) {\n exchangeOauthCode(code: $code, provider: $provider, redirectUri: $redirectUri) {\n success\n sessionToken\n roles\n user {\n id\n email\n firstName\n lastName\n }\n errors {\n field\n message\n }\n }\n }\n": typeof ExchangeOauthCodeDocument;
1532
1680
  "\n mutation CreateAgent($input: CreateAgentInput!) {\n createAgent(input: $input) {\n id\n slug\n name\n role\n status\n description\n systemPrompt\n model\n temperature\n maxTokens\n avatarUrl\n isPublic\n insertedAt\n updatedAt\n }\n }\n": typeof CreateAgentDocument;
1533
1681
  "\n mutation UpdateAgent($id: ID!, $input: UpdateAgentInput!) {\n updateAgent(id: $id, input: $input) {\n id\n slug\n name\n role\n status\n statusMessage\n description\n systemPrompt\n model\n temperature\n maxTokens\n avatarUrl\n isPublic\n lastActiveAt\n updatedAt\n }\n }\n": typeof UpdateAgentDocument;
1534
1682
  "\n mutation ArchiveAgent($id: ID!) {\n archiveAgent(id: $id) {\n id\n archivedAt\n }\n }\n": typeof ArchiveAgentDocument;
@@ -1560,9 +1708,9 @@ type Documents = {
1560
1708
  "\n query GetAgentsToolCategories {\n agentsToolCategories {\n id\n name\n description\n insertedAt\n updatedAt\n }\n }\n": typeof GetAgentsToolCategoriesDocument;
1561
1709
  "\n query GetAgentsSchedules($agentId: ID, $enabledOnly: Boolean) {\n agentsSchedules(agentId: $agentId, enabledOnly: $enabledOnly) {\n id\n name\n description\n cronExpression\n timezone\n enabled\n lastRunAt\n lastRunStatus\n lastError\n nextRunAt\n taskType\n maxDurationSeconds\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n }\n }\n": typeof GetAgentsSchedulesDocument;
1562
1710
  "\n query GetAgentsSchedule($id: ID!) {\n agentsSchedule(id: $id) {\n id\n name\n description\n cronExpression\n timezone\n enabled\n lastRunAt\n lastRunStatus\n lastError\n nextRunAt\n initialMessage\n taskType\n taskConfig\n maxDurationSeconds\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n }\n }\n": typeof GetAgentsScheduleDocument;
1563
- "\n query GetAgentsConversations($agentId: ID, $status: ConversationStatus) {\n agentsConversations(agentId: $agentId, status: $status) {\n id\n title\n summary\n status\n contextType\n contextId\n isPublic\n pinned\n archivedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n }\n }\n": typeof GetAgentsConversationsDocument;
1711
+ "\n query GetAgentsConversations($agentId: ID, $status: ConversationStatus, $limit: Int) {\n agentsConversations(agentId: $agentId, status: $status, limit: $limit) {\n id\n title\n summary\n status\n contextType\n contextId\n isPublic\n pinned\n archivedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n }\n }\n": typeof GetAgentsConversationsDocument;
1564
1712
  "\n query GetAgentsConversation($id: ID!) {\n agentsConversation(id: $id) {\n id\n title\n summary\n status\n contextType\n contextId\n isPublic\n pinned\n archivedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n messages {\n id\n role\n content\n contentType\n insertedAt\n }\n runs {\n id\n status\n modelUsed\n startedAt\n completedAt\n }\n }\n }\n": typeof GetAgentsConversationDocument;
1565
- "\n query GetAgentsRuns($agentId: ID, $conversationId: ID, $status: RunStatus) {\n agentsRuns(agentId: $agentId, conversationId: $conversationId, status: $status) {\n id\n status\n triggerType\n modelUsed\n inputTokens\n outputTokens\n cacheReadTokens\n cacheWriteTokens\n costCents\n toolsDiscovered\n toolsUsed\n error\n errorCode\n startedAt\n completedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n conversation {\n id\n title\n }\n }\n }\n": typeof GetAgentsRunsDocument;
1713
+ "\n query GetAgentsRuns($agentId: ID, $conversationId: ID, $status: RunStatus, $limit: Int) {\n agentsRuns(agentId: $agentId, conversationId: $conversationId, status: $status, limit: $limit) {\n id\n status\n triggerType\n modelUsed\n inputTokens\n outputTokens\n cacheReadTokens\n cacheWriteTokens\n costCents\n toolsDiscovered\n toolsUsed\n error\n errorCode\n startedAt\n completedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n conversation {\n id\n title\n }\n }\n }\n": typeof GetAgentsRunsDocument;
1566
1714
  "\n query GetAgentsRun($id: ID!) {\n agentsRun(id: $id) {\n id\n status\n triggerType\n modelUsed\n inputTokens\n outputTokens\n cacheReadTokens\n cacheWriteTokens\n costCents\n toolsDiscovered\n toolsUsed\n error\n errorCode\n startedAt\n completedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n conversation {\n id\n title\n }\n toolCalls {\n id\n toolName\n toolCallId\n status\n input\n output\n outputTruncated\n error\n errorType\n cacheHit\n durationMs\n requiresConfirmation\n confirmedAt\n startedAt\n completedAt\n }\n }\n }\n": typeof GetAgentsRunDocument;
1567
1715
  "\n query GetAgentsUsageStats($agentId: ID, $startDate: Date, $endDate: Date) {\n agentsUsageStats(agentId: $agentId, startDate: $startDate, endDate: $endDate) {\n totalRuns\n totalMessages\n totalInputTokens\n totalOutputTokens\n totalCostCents\n totalToolCalls\n totalErrors\n }\n }\n": typeof GetAgentsUsageStatsDocument;
1568
1716
  "\n query GetAgentsUsageDaily($agentId: ID, $startDate: Date, $endDate: Date) {\n agentsUsageDaily(agentId: $agentId, startDate: $startDate, endDate: $endDate) {\n id\n date\n agentId\n runCount\n messageCount\n inputTokens\n outputTokens\n cacheReadTokens\n cacheWriteTokens\n costCents\n toolCallCount\n errorCount\n insertedAt\n updatedAt\n }\n }\n": typeof GetAgentsUsageDailyDocument;
@@ -1583,6 +1731,14 @@ declare const documents: Documents;
1583
1731
  * Please regenerate the types.
1584
1732
  */
1585
1733
  declare function graphql(source: string): unknown;
1734
+ /**
1735
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
1736
+ */
1737
+ declare function graphql(source: "\n mutation SignIn($email: String!, $password: String!, $role: SignInRole) {\n signIn(email: $email, password: $password, role: $role) {\n success\n sessionToken\n roles\n user {\n id\n email\n firstName\n lastName\n }\n errors {\n field\n message\n }\n }\n }\n"): (typeof documents)["\n mutation SignIn($email: String!, $password: String!, $role: SignInRole) {\n signIn(email: $email, password: $password, role: $role) {\n success\n sessionToken\n roles\n user {\n id\n email\n firstName\n lastName\n }\n errors {\n field\n message\n }\n }\n }\n"];
1738
+ /**
1739
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
1740
+ */
1741
+ declare function graphql(source: "\n mutation ExchangeOauthCode($code: String!, $provider: OauthProvider!, $redirectUri: String!) {\n exchangeOauthCode(code: $code, provider: $provider, redirectUri: $redirectUri) {\n success\n sessionToken\n roles\n user {\n id\n email\n firstName\n lastName\n }\n errors {\n field\n message\n }\n }\n }\n"): (typeof documents)["\n mutation ExchangeOauthCode($code: String!, $provider: OauthProvider!, $redirectUri: String!) {\n exchangeOauthCode(code: $code, provider: $provider, redirectUri: $redirectUri) {\n success\n sessionToken\n roles\n user {\n id\n email\n firstName\n lastName\n }\n errors {\n field\n message\n }\n }\n }\n"];
1586
1742
  /**
1587
1743
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
1588
1744
  */
@@ -1710,7 +1866,7 @@ declare function graphql(source: "\n query GetAgentsSchedule($id: ID!) {\n a
1710
1866
  /**
1711
1867
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
1712
1868
  */
1713
- declare function graphql(source: "\n query GetAgentsConversations($agentId: ID, $status: ConversationStatus) {\n agentsConversations(agentId: $agentId, status: $status) {\n id\n title\n summary\n status\n contextType\n contextId\n isPublic\n pinned\n archivedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n }\n }\n"): (typeof documents)["\n query GetAgentsConversations($agentId: ID, $status: ConversationStatus) {\n agentsConversations(agentId: $agentId, status: $status) {\n id\n title\n summary\n status\n contextType\n contextId\n isPublic\n pinned\n archivedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n }\n }\n"];
1869
+ declare function graphql(source: "\n query GetAgentsConversations($agentId: ID, $status: ConversationStatus, $limit: Int) {\n agentsConversations(agentId: $agentId, status: $status, limit: $limit) {\n id\n title\n summary\n status\n contextType\n contextId\n isPublic\n pinned\n archivedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n }\n }\n"): (typeof documents)["\n query GetAgentsConversations($agentId: ID, $status: ConversationStatus, $limit: Int) {\n agentsConversations(agentId: $agentId, status: $status, limit: $limit) {\n id\n title\n summary\n status\n contextType\n contextId\n isPublic\n pinned\n archivedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n }\n }\n"];
1714
1870
  /**
1715
1871
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
1716
1872
  */
@@ -1718,7 +1874,7 @@ declare function graphql(source: "\n query GetAgentsConversation($id: ID!) {\n
1718
1874
  /**
1719
1875
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
1720
1876
  */
1721
- declare function graphql(source: "\n query GetAgentsRuns($agentId: ID, $conversationId: ID, $status: RunStatus) {\n agentsRuns(agentId: $agentId, conversationId: $conversationId, status: $status) {\n id\n status\n triggerType\n modelUsed\n inputTokens\n outputTokens\n cacheReadTokens\n cacheWriteTokens\n costCents\n toolsDiscovered\n toolsUsed\n error\n errorCode\n startedAt\n completedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n conversation {\n id\n title\n }\n }\n }\n"): (typeof documents)["\n query GetAgentsRuns($agentId: ID, $conversationId: ID, $status: RunStatus) {\n agentsRuns(agentId: $agentId, conversationId: $conversationId, status: $status) {\n id\n status\n triggerType\n modelUsed\n inputTokens\n outputTokens\n cacheReadTokens\n cacheWriteTokens\n costCents\n toolsDiscovered\n toolsUsed\n error\n errorCode\n startedAt\n completedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n conversation {\n id\n title\n }\n }\n }\n"];
1877
+ declare function graphql(source: "\n query GetAgentsRuns($agentId: ID, $conversationId: ID, $status: RunStatus, $limit: Int) {\n agentsRuns(agentId: $agentId, conversationId: $conversationId, status: $status, limit: $limit) {\n id\n status\n triggerType\n modelUsed\n inputTokens\n outputTokens\n cacheReadTokens\n cacheWriteTokens\n costCents\n toolsDiscovered\n toolsUsed\n error\n errorCode\n startedAt\n completedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n conversation {\n id\n title\n }\n }\n }\n"): (typeof documents)["\n query GetAgentsRuns($agentId: ID, $conversationId: ID, $status: RunStatus, $limit: Int) {\n agentsRuns(agentId: $agentId, conversationId: $conversationId, status: $status, limit: $limit) {\n id\n status\n triggerType\n modelUsed\n inputTokens\n outputTokens\n cacheReadTokens\n cacheWriteTokens\n costCents\n toolsDiscovered\n toolsUsed\n error\n errorCode\n startedAt\n completedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n conversation {\n id\n title\n }\n }\n }\n"];
1722
1878
  /**
1723
1879
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
1724
1880
  */
@@ -1741,4 +1897,4 @@ declare function graphql(source: "\n query GetAgentsAdmins {\n agentsAdmins
1741
1897
  declare function graphql(source: "\n query GetAgentsCurrentAdmin {\n agentsCurrentAdmin {\n id\n email\n role\n canManageAgents\n canManageTools\n canManageAdmins\n canViewAllConversations\n expiresAt\n lastAccessedAt\n insertedAt\n updatedAt\n }\n }\n"): (typeof documents)["\n query GetAgentsCurrentAdmin {\n agentsCurrentAdmin {\n id\n email\n role\n canManageAgents\n canManageTools\n canManageAdmins\n canViewAllConversations\n expiresAt\n lastAccessedAt\n insertedAt\n updatedAt\n }\n }\n"];
1742
1898
  type DocumentType<TDocumentNode extends TypedDocumentNode<any, any>> = TDocumentNode extends TypedDocumentNode<infer TType, any> ? TType : never;
1743
1899
 
1744
- export { AdminRole, type Agent, AgentRole, AgentStatus, type AgentsAdmin, ArchiveAgentDocument, type ArchiveAgentMutation, type ArchiveAgentMutationVariables, ArchiveAgentsConversationDocument, type ArchiveAgentsConversationMutation, type ArchiveAgentsConversationMutationVariables, AssignToolToAgentDocument, type AssignToolToAgentMutation, type AssignToolToAgentMutationVariables, CancelAgentsRunDocument, type CancelAgentsRunMutation, type CancelAgentsRunMutationVariables, ConfirmAgentsToolCallDocument, type ConfirmAgentsToolCallMutation, type ConfirmAgentsToolCallMutationVariables, type Conversation, ConversationStatus, type CreateAdminInput, CreateAgentDocument, type CreateAgentInput, type CreateAgentMutation, type CreateAgentMutationVariables, CreateAgentsAdminDocument, type CreateAgentsAdminMutation, type CreateAgentsAdminMutationVariables, CreateAgentsConversationDocument, type CreateAgentsConversationMutation, type CreateAgentsConversationMutationVariables, CreateAgentsScheduleDocument, type CreateAgentsScheduleMutation, type CreateAgentsScheduleMutationVariables, CreateAgentsToolDocument, type CreateAgentsToolMutation, type CreateAgentsToolMutationVariables, type CreateConversationInput, type CreateScheduleInput, type CreateToolInput, DeleteAgentsAdminDocument, type DeleteAgentsAdminMutation, type DeleteAgentsAdminMutationVariables, DeleteAgentsScheduleDocument, type DeleteAgentsScheduleMutation, type DeleteAgentsScheduleMutationVariables, DeleteAgentsToolDocument, type DeleteAgentsToolMutation, type DeleteAgentsToolMutationVariables, DisableAgentsScheduleDocument, type DisableAgentsScheduleMutation, type DisableAgentsScheduleMutationVariables, type DocumentType, EnableAgentsScheduleDocument, type EnableAgentsScheduleMutation, type EnableAgentsScheduleMutationVariables, type Exact, type FragmentType, GetAgentDocument, type GetAgentQuery, type GetAgentQueryVariables, GetAgentsAdminsDocument, type GetAgentsAdminsQuery, type GetAgentsAdminsQueryVariables, GetAgentsConversationDocument, type GetAgentsConversationQuery, type GetAgentsConversationQueryVariables, GetAgentsConversationsDocument, type GetAgentsConversationsQuery, type GetAgentsConversationsQueryVariables, GetAgentsCurrentAdminDocument, type GetAgentsCurrentAdminQuery, type GetAgentsCurrentAdminQueryVariables, GetAgentsDocument, type GetAgentsQuery, type GetAgentsQueryVariables, GetAgentsRunDocument, type GetAgentsRunQuery, type GetAgentsRunQueryVariables, GetAgentsRunsDocument, type GetAgentsRunsQuery, type GetAgentsRunsQueryVariables, GetAgentsScheduleDocument, type GetAgentsScheduleQuery, type GetAgentsScheduleQueryVariables, GetAgentsSchedulesDocument, type GetAgentsSchedulesQuery, type GetAgentsSchedulesQueryVariables, GetAgentsToolCategoriesDocument, type GetAgentsToolCategoriesQuery, type GetAgentsToolCategoriesQueryVariables, GetAgentsToolDocument, type GetAgentsToolQuery, type GetAgentsToolQueryVariables, GetAgentsToolSourcesDocument, type GetAgentsToolSourcesQuery, type GetAgentsToolSourcesQueryVariables, GetAgentsToolsDocument, type GetAgentsToolsQuery, type GetAgentsToolsQueryVariables, GetAgentsUsageDailyDocument, type GetAgentsUsageDailyQuery, type GetAgentsUsageDailyQueryVariables, GetAgentsUsageStatsDocument, type GetAgentsUsageStatsQuery, type GetAgentsUsageStatsQueryVariables, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, type Maybe, type Message, MessageRole, RejectAgentsToolCallDocument, type RejectAgentsToolCallMutation, type RejectAgentsToolCallMutationVariables, RemoveToolFromAgentDocument, type RemoveToolFromAgentMutation, type RemoveToolFromAgentMutationVariables, RestoreAgentDocument, type RestoreAgentMutation, type RestoreAgentMutationVariables, type RootMutationType, type RootMutationTypeArchiveAgentArgs, type RootMutationTypeArchiveAgentsConversationArgs, type RootMutationTypeAssignToolToAgentArgs, type RootMutationTypeCancelAgentsRunArgs, type RootMutationTypeConfirmAgentsToolCallArgs, type RootMutationTypeCreateAgentArgs, type RootMutationTypeCreateAgentsAdminArgs, type RootMutationTypeCreateAgentsConversationArgs, type RootMutationTypeCreateAgentsScheduleArgs, type RootMutationTypeCreateAgentsToolArgs, type RootMutationTypeDeleteAgentsAdminArgs, type RootMutationTypeDeleteAgentsScheduleArgs, type RootMutationTypeDeleteAgentsToolArgs, type RootMutationTypeDisableAgentsScheduleArgs, type RootMutationTypeEnableAgentsScheduleArgs, type RootMutationTypeRejectAgentsToolCallArgs, type RootMutationTypeRemoveToolFromAgentArgs, type RootMutationTypeRestoreAgentArgs, type RootMutationTypeSendAgentsMessageArgs, type RootMutationTypeUpdateAgentArgs, type RootMutationTypeUpdateAgentsAdminArgs, type RootMutationTypeUpdateAgentsScheduleArgs, type RootMutationTypeUpdateAgentsToolArgs, type RootQueryType, type RootQueryTypeAgentArgs, type RootQueryTypeAgentsArgs, type RootQueryTypeAgentsConversationArgs, type RootQueryTypeAgentsConversationsArgs, type RootQueryTypeAgentsRunArgs, type RootQueryTypeAgentsRunsArgs, type RootQueryTypeAgentsScheduleArgs, type RootQueryTypeAgentsSchedulesArgs, type RootQueryTypeAgentsToolArgs, type RootQueryTypeAgentsToolsArgs, type RootQueryTypeAgentsUsageDailyArgs, type RootQueryTypeAgentsUsageStatsArgs, type Run, RunStatus, type Scalars, type Schedule, ScheduleTaskType, SendAgentsMessageDocument, type SendAgentsMessageMutation, type SendAgentsMessageMutationVariables, type SendMessageInput, type ToolCall, ToolCallStatus, type ToolCategory, type ToolRegistry, type ToolSource, type UpdateAdminInput, UpdateAgentDocument, type UpdateAgentInput, type UpdateAgentMutation, type UpdateAgentMutationVariables, UpdateAgentsAdminDocument, type UpdateAgentsAdminMutation, type UpdateAgentsAdminMutationVariables, UpdateAgentsScheduleDocument, type UpdateAgentsScheduleMutation, type UpdateAgentsScheduleMutationVariables, UpdateAgentsToolDocument, type UpdateAgentsToolMutation, type UpdateAgentsToolMutationVariables, type UpdateScheduleInput, type UpdateToolInput, type UsageDaily, type UsageStats, graphql, isFragmentReady, makeFragmentData, useFragment };
1900
+ export { AdminRole, type Agent, AgentRole, AgentStatus, type AgentsAdmin, ArchiveAgentDocument, type ArchiveAgentMutation, type ArchiveAgentMutationVariables, ArchiveAgentsConversationDocument, type ArchiveAgentsConversationMutation, type ArchiveAgentsConversationMutationVariables, AssignToolToAgentDocument, type AssignToolToAgentMutation, type AssignToolToAgentMutationVariables, type AuthError, type AuthUser, CancelAgentsRunDocument, type CancelAgentsRunMutation, type CancelAgentsRunMutationVariables, ConfirmAgentsToolCallDocument, type ConfirmAgentsToolCallMutation, type ConfirmAgentsToolCallMutationVariables, type Conversation, ConversationStatus, type CreateAdminInput, CreateAgentDocument, type CreateAgentInput, type CreateAgentMutation, type CreateAgentMutationVariables, CreateAgentsAdminDocument, type CreateAgentsAdminMutation, type CreateAgentsAdminMutationVariables, CreateAgentsConversationDocument, type CreateAgentsConversationMutation, type CreateAgentsConversationMutationVariables, CreateAgentsScheduleDocument, type CreateAgentsScheduleMutation, type CreateAgentsScheduleMutationVariables, CreateAgentsToolDocument, type CreateAgentsToolMutation, type CreateAgentsToolMutationVariables, type CreateConversationInput, type CreateScheduleInput, type CreateToolInput, DeleteAgentsAdminDocument, type DeleteAgentsAdminMutation, type DeleteAgentsAdminMutationVariables, DeleteAgentsScheduleDocument, type DeleteAgentsScheduleMutation, type DeleteAgentsScheduleMutationVariables, DeleteAgentsToolDocument, type DeleteAgentsToolMutation, type DeleteAgentsToolMutationVariables, DisableAgentsScheduleDocument, type DisableAgentsScheduleMutation, type DisableAgentsScheduleMutationVariables, type DocumentType, EnableAgentsScheduleDocument, type EnableAgentsScheduleMutation, type EnableAgentsScheduleMutationVariables, type Exact, ExchangeOauthCodeDocument, type ExchangeOauthCodeMutation, type ExchangeOauthCodeMutationVariables, type FragmentType, GetAgentDocument, type GetAgentQuery, type GetAgentQueryVariables, GetAgentsAdminsDocument, type GetAgentsAdminsQuery, type GetAgentsAdminsQueryVariables, GetAgentsConversationDocument, type GetAgentsConversationQuery, type GetAgentsConversationQueryVariables, GetAgentsConversationsDocument, type GetAgentsConversationsQuery, type GetAgentsConversationsQueryVariables, GetAgentsCurrentAdminDocument, type GetAgentsCurrentAdminQuery, type GetAgentsCurrentAdminQueryVariables, GetAgentsDocument, type GetAgentsQuery, type GetAgentsQueryVariables, GetAgentsRunDocument, type GetAgentsRunQuery, type GetAgentsRunQueryVariables, GetAgentsRunsDocument, type GetAgentsRunsQuery, type GetAgentsRunsQueryVariables, GetAgentsScheduleDocument, type GetAgentsScheduleQuery, type GetAgentsScheduleQueryVariables, GetAgentsSchedulesDocument, type GetAgentsSchedulesQuery, type GetAgentsSchedulesQueryVariables, GetAgentsToolCategoriesDocument, type GetAgentsToolCategoriesQuery, type GetAgentsToolCategoriesQueryVariables, GetAgentsToolDocument, type GetAgentsToolQuery, type GetAgentsToolQueryVariables, GetAgentsToolSourcesDocument, type GetAgentsToolSourcesQuery, type GetAgentsToolSourcesQueryVariables, GetAgentsToolsDocument, type GetAgentsToolsQuery, type GetAgentsToolsQueryVariables, GetAgentsUsageDailyDocument, type GetAgentsUsageDailyQuery, type GetAgentsUsageDailyQueryVariables, GetAgentsUsageStatsDocument, type GetAgentsUsageStatsQuery, type GetAgentsUsageStatsQueryVariables, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, type Maybe, type Message, MessageRole, OauthProvider, RejectAgentsToolCallDocument, type RejectAgentsToolCallMutation, type RejectAgentsToolCallMutationVariables, RemoveToolFromAgentDocument, type RemoveToolFromAgentMutation, type RemoveToolFromAgentMutationVariables, RestoreAgentDocument, type RestoreAgentMutation, type RestoreAgentMutationVariables, type RootMutationType, type RootMutationTypeArchiveAgentArgs, type RootMutationTypeArchiveAgentsConversationArgs, type RootMutationTypeAssignToolToAgentArgs, type RootMutationTypeCancelAgentsRunArgs, type RootMutationTypeConfirmAgentsToolCallArgs, type RootMutationTypeCreateAgentArgs, type RootMutationTypeCreateAgentsAdminArgs, type RootMutationTypeCreateAgentsConversationArgs, type RootMutationTypeCreateAgentsScheduleArgs, type RootMutationTypeCreateAgentsToolArgs, type RootMutationTypeDeleteAgentsAdminArgs, type RootMutationTypeDeleteAgentsScheduleArgs, type RootMutationTypeDeleteAgentsToolArgs, type RootMutationTypeDisableAgentsScheduleArgs, type RootMutationTypeEnableAgentsScheduleArgs, type RootMutationTypeExchangeOauthCodeArgs, type RootMutationTypeRejectAgentsToolCallArgs, type RootMutationTypeRemoveToolFromAgentArgs, type RootMutationTypeRestoreAgentArgs, type RootMutationTypeSendAgentsMessageArgs, type RootMutationTypeSignInArgs, type RootMutationTypeUpdateAgentArgs, type RootMutationTypeUpdateAgentsAdminArgs, type RootMutationTypeUpdateAgentsScheduleArgs, type RootMutationTypeUpdateAgentsToolArgs, type RootQueryType, type RootQueryTypeAgentArgs, type RootQueryTypeAgentsArgs, type RootQueryTypeAgentsConversationArgs, type RootQueryTypeAgentsConversationsArgs, type RootQueryTypeAgentsRunArgs, type RootQueryTypeAgentsRunsArgs, type RootQueryTypeAgentsScheduleArgs, type RootQueryTypeAgentsSchedulesArgs, type RootQueryTypeAgentsToolArgs, type RootQueryTypeAgentsToolsArgs, type RootQueryTypeAgentsUsageDailyArgs, type RootQueryTypeAgentsUsageStatsArgs, type Run, RunStatus, type Scalars, type Schedule, ScheduleTaskType, SendAgentsMessageDocument, type SendAgentsMessageMutation, type SendAgentsMessageMutationVariables, type SendMessageInput, SignInDocument, type SignInMutation, type SignInMutationVariables, type SignInResult, SignInRole, type ToolCall, ToolCallStatus, type ToolCategory, type ToolRegistry, type ToolSource, type UpdateAdminInput, UpdateAgentDocument, type UpdateAgentInput, type UpdateAgentMutation, type UpdateAgentMutationVariables, UpdateAgentsAdminDocument, type UpdateAgentsAdminMutation, type UpdateAgentsAdminMutationVariables, UpdateAgentsScheduleDocument, type UpdateAgentsScheduleMutation, type UpdateAgentsScheduleMutationVariables, UpdateAgentsToolDocument, type UpdateAgentsToolMutation, type UpdateAgentsToolMutationVariables, type UpdateScheduleInput, type UpdateToolInput, type UsageDaily, type UsageStats, graphql, isFragmentReady, makeFragmentData, useFragment };
@@ -129,6 +129,22 @@ type AgentsAdmin = {
129
129
  role: AdminRole;
130
130
  updatedAt: Scalars['DateTime']['output'];
131
131
  };
132
+ /** Error from authentication */
133
+ type AuthError = {
134
+ __typename?: 'AuthError';
135
+ /** Field that caused the error */
136
+ field: Scalars['String']['output'];
137
+ /** Error message */
138
+ message: Scalars['String']['output'];
139
+ };
140
+ /** Minimal user info returned from sign-in */
141
+ type AuthUser = {
142
+ __typename?: 'AuthUser';
143
+ email: Scalars['String']['output'];
144
+ firstName?: Maybe<Scalars['String']['output']>;
145
+ id: Scalars['ID']['output'];
146
+ lastName?: Maybe<Scalars['String']['output']>;
147
+ };
132
148
  type Conversation = {
133
149
  __typename?: 'Conversation';
134
150
  agent?: Maybe<Agent>;
@@ -225,6 +241,11 @@ declare enum MessageRole {
225
241
  ToolResult = "TOOL_RESULT",
226
242
  User = "USER"
227
243
  }
244
+ /** OAuth providers */
245
+ declare enum OauthProvider {
246
+ /** Google OAuth */
247
+ Google = "GOOGLE"
248
+ }
228
249
  type RootMutationType = {
229
250
  __typename?: 'RootMutationType';
230
251
  /** Archive an agent */
@@ -257,6 +278,16 @@ type RootMutationType = {
257
278
  disableAgentsSchedule?: Maybe<Schedule>;
258
279
  /** Enable a schedule */
259
280
  enableAgentsSchedule?: Maybe<Schedule>;
281
+ /**
282
+ * Exchange an OAuth authorization code for a session token.
283
+ *
284
+ * After the user authenticates with an OAuth provider (e.g., Google),
285
+ * the frontend receives an authorization code. This mutation exchanges
286
+ * that code for user info and returns a session token with all roles.
287
+ *
288
+ * This is a public endpoint - no authentication required.
289
+ */
290
+ exchangeOauthCode?: Maybe<SignInResult>;
260
291
  /** Reject a tool call that requires confirmation */
261
292
  rejectAgentsToolCall?: Maybe<Scalars['Boolean']['output']>;
262
293
  /** Remove a tool from an agent */
@@ -265,6 +296,18 @@ type RootMutationType = {
265
296
  restoreAgent?: Maybe<Agent>;
266
297
  /** Send a message to a conversation */
267
298
  sendAgentsMessage?: Maybe<Message>;
299
+ /**
300
+ * Sign in with email/password.
301
+ *
302
+ * Validates credentials against the users table. Returns a session token
303
+ * that includes all roles the user qualifies for.
304
+ *
305
+ * The optional `role` parameter can verify the user has a specific role,
306
+ * but the token will always contain ALL roles regardless.
307
+ *
308
+ * This is a public endpoint - no authentication required.
309
+ */
310
+ signIn?: Maybe<SignInResult>;
268
311
  /** Update an existing agent */
269
312
  updateAgent?: Maybe<Agent>;
270
313
  /** Update an agents admin */
@@ -320,6 +363,11 @@ type RootMutationTypeDisableAgentsScheduleArgs = {
320
363
  type RootMutationTypeEnableAgentsScheduleArgs = {
321
364
  id: Scalars['ID']['input'];
322
365
  };
366
+ type RootMutationTypeExchangeOauthCodeArgs = {
367
+ code: Scalars['String']['input'];
368
+ provider: OauthProvider;
369
+ redirectUri: Scalars['String']['input'];
370
+ };
323
371
  type RootMutationTypeRejectAgentsToolCallArgs = {
324
372
  id: Scalars['ID']['input'];
325
373
  };
@@ -333,6 +381,11 @@ type RootMutationTypeRestoreAgentArgs = {
333
381
  type RootMutationTypeSendAgentsMessageArgs = {
334
382
  input: SendMessageInput;
335
383
  };
384
+ type RootMutationTypeSignInArgs = {
385
+ email: Scalars['String']['input'];
386
+ password: Scalars['String']['input'];
387
+ role?: InputMaybe<SignInRole>;
388
+ };
336
389
  type RootMutationTypeUpdateAgentArgs = {
337
390
  id: Scalars['ID']['input'];
338
391
  input: UpdateAgentInput;
@@ -495,6 +548,43 @@ type SendMessageInput = {
495
548
  content: Scalars['String']['input'];
496
549
  conversationId: Scalars['ID']['input'];
497
550
  };
551
+ /** Result of sign-in mutation */
552
+ type SignInResult = {
553
+ __typename?: 'SignInResult';
554
+ /** Any errors that occurred */
555
+ errors: Array<Maybe<AuthError>>;
556
+ /** All roles this user has */
557
+ roles?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
558
+ /** JWT token for subsequent requests */
559
+ sessionToken?: Maybe<Scalars['String']['output']>;
560
+ /** Whether authentication succeeded */
561
+ success: Scalars['Boolean']['output'];
562
+ /** Authenticated user info */
563
+ user?: Maybe<AuthUser>;
564
+ };
565
+ /** Available roles for sign-in verification */
566
+ declare enum SignInRole {
567
+ /** Super admin - internal users */
568
+ Admin = "ADMIN",
569
+ /** Agents dashboard access */
570
+ AgentsAdmin = "AGENTS_ADMIN",
571
+ /** Content admin - is_content_admin flag */
572
+ ContentAdmin = "CONTENT_ADMIN",
573
+ /** District admin - enterprise customers */
574
+ DistrictAdmin = "DISTRICT_ADMIN",
575
+ /** Game developer role - requires game_developer_id on user */
576
+ GameDeveloper = "GAME_DEVELOPER",
577
+ /** Parent role - requires parent_id on user */
578
+ Parent = "PARENT",
579
+ /** Question editor - can_edit_questions flag */
580
+ QuestionEditor = "QUESTION_EDITOR",
581
+ /** School admin - enterprise customers */
582
+ SchoolAdmin = "SCHOOL_ADMIN",
583
+ /** Student role - requires student_id on user */
584
+ Student = "STUDENT",
585
+ /** Teacher role - requires teacher_id on user */
586
+ Teacher = "TEACHER"
587
+ }
498
588
  type ToolCall = {
499
589
  __typename?: 'ToolCall';
500
590
  cacheHit: Scalars['Boolean']['output'];
@@ -641,6 +731,58 @@ type UsageStats = {
641
731
  totalRuns?: Maybe<Scalars['Int']['output']>;
642
732
  totalToolCalls?: Maybe<Scalars['Int']['output']>;
643
733
  };
734
+ type SignInMutationVariables = Exact<{
735
+ email: Scalars['String']['input'];
736
+ password: Scalars['String']['input'];
737
+ role?: InputMaybe<SignInRole>;
738
+ }>;
739
+ type SignInMutation = {
740
+ __typename?: 'RootMutationType';
741
+ signIn?: {
742
+ __typename?: 'SignInResult';
743
+ success: boolean;
744
+ sessionToken?: string | null;
745
+ roles?: Array<string | null> | null;
746
+ user?: {
747
+ __typename?: 'AuthUser';
748
+ id: string;
749
+ email: string;
750
+ firstName?: string | null;
751
+ lastName?: string | null;
752
+ } | null;
753
+ errors: Array<{
754
+ __typename?: 'AuthError';
755
+ field: string;
756
+ message: string;
757
+ } | null>;
758
+ } | null;
759
+ };
760
+ type ExchangeOauthCodeMutationVariables = Exact<{
761
+ code: Scalars['String']['input'];
762
+ provider: OauthProvider;
763
+ redirectUri: Scalars['String']['input'];
764
+ }>;
765
+ type ExchangeOauthCodeMutation = {
766
+ __typename?: 'RootMutationType';
767
+ exchangeOauthCode?: {
768
+ __typename?: 'SignInResult';
769
+ success: boolean;
770
+ sessionToken?: string | null;
771
+ roles?: Array<string | null> | null;
772
+ user?: {
773
+ __typename?: 'AuthUser';
774
+ id: string;
775
+ email: string;
776
+ firstName?: string | null;
777
+ lastName?: string | null;
778
+ } | null;
779
+ errors: Array<{
780
+ __typename?: 'AuthError';
781
+ field: string;
782
+ message: string;
783
+ } | null>;
784
+ } | null;
785
+ };
644
786
  type CreateAgentMutationVariables = Exact<{
645
787
  input: CreateAgentInput;
646
788
  }>;
@@ -1216,6 +1358,7 @@ type GetAgentsScheduleQuery = {
1216
1358
  type GetAgentsConversationsQueryVariables = Exact<{
1217
1359
  agentId?: InputMaybe<Scalars['ID']['input']>;
1218
1360
  status?: InputMaybe<ConversationStatus>;
1361
+ limit?: InputMaybe<Scalars['Int']['input']>;
1219
1362
  }>;
1220
1363
  type GetAgentsConversationsQuery = {
1221
1364
  __typename?: 'RootQueryType';
@@ -1286,6 +1429,7 @@ type GetAgentsRunsQueryVariables = Exact<{
1286
1429
  agentId?: InputMaybe<Scalars['ID']['input']>;
1287
1430
  conversationId?: InputMaybe<Scalars['ID']['input']>;
1288
1431
  status?: InputMaybe<RunStatus>;
1432
+ limit?: InputMaybe<Scalars['Int']['input']>;
1289
1433
  }>;
1290
1434
  type GetAgentsRunsQuery = {
1291
1435
  __typename?: 'RootQueryType';
@@ -1459,6 +1603,8 @@ type GetAgentsCurrentAdminQuery = {
1459
1603
  updatedAt: any;
1460
1604
  } | null;
1461
1605
  };
1606
+ declare const SignInDocument: TypedDocumentNode<SignInMutation, SignInMutationVariables>;
1607
+ declare const ExchangeOauthCodeDocument: TypedDocumentNode<ExchangeOauthCodeMutation, ExchangeOauthCodeMutationVariables>;
1462
1608
  declare const CreateAgentDocument: TypedDocumentNode<CreateAgentMutation, CreateAgentMutationVariables>;
1463
1609
  declare const UpdateAgentDocument: TypedDocumentNode<UpdateAgentMutation, UpdateAgentMutationVariables>;
1464
1610
  declare const ArchiveAgentDocument: TypedDocumentNode<ArchiveAgentMutation, ArchiveAgentMutationVariables>;
@@ -1529,6 +1675,8 @@ declare function isFragmentReady<TQuery, TFrag>(queryNode: DocumentTypeDecoratio
1529
1675
  * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
1530
1676
  */
1531
1677
  type Documents = {
1678
+ "\n mutation SignIn($email: String!, $password: String!, $role: SignInRole) {\n signIn(email: $email, password: $password, role: $role) {\n success\n sessionToken\n roles\n user {\n id\n email\n firstName\n lastName\n }\n errors {\n field\n message\n }\n }\n }\n": typeof SignInDocument;
1679
+ "\n mutation ExchangeOauthCode($code: String!, $provider: OauthProvider!, $redirectUri: String!) {\n exchangeOauthCode(code: $code, provider: $provider, redirectUri: $redirectUri) {\n success\n sessionToken\n roles\n user {\n id\n email\n firstName\n lastName\n }\n errors {\n field\n message\n }\n }\n }\n": typeof ExchangeOauthCodeDocument;
1532
1680
  "\n mutation CreateAgent($input: CreateAgentInput!) {\n createAgent(input: $input) {\n id\n slug\n name\n role\n status\n description\n systemPrompt\n model\n temperature\n maxTokens\n avatarUrl\n isPublic\n insertedAt\n updatedAt\n }\n }\n": typeof CreateAgentDocument;
1533
1681
  "\n mutation UpdateAgent($id: ID!, $input: UpdateAgentInput!) {\n updateAgent(id: $id, input: $input) {\n id\n slug\n name\n role\n status\n statusMessage\n description\n systemPrompt\n model\n temperature\n maxTokens\n avatarUrl\n isPublic\n lastActiveAt\n updatedAt\n }\n }\n": typeof UpdateAgentDocument;
1534
1682
  "\n mutation ArchiveAgent($id: ID!) {\n archiveAgent(id: $id) {\n id\n archivedAt\n }\n }\n": typeof ArchiveAgentDocument;
@@ -1560,9 +1708,9 @@ type Documents = {
1560
1708
  "\n query GetAgentsToolCategories {\n agentsToolCategories {\n id\n name\n description\n insertedAt\n updatedAt\n }\n }\n": typeof GetAgentsToolCategoriesDocument;
1561
1709
  "\n query GetAgentsSchedules($agentId: ID, $enabledOnly: Boolean) {\n agentsSchedules(agentId: $agentId, enabledOnly: $enabledOnly) {\n id\n name\n description\n cronExpression\n timezone\n enabled\n lastRunAt\n lastRunStatus\n lastError\n nextRunAt\n taskType\n maxDurationSeconds\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n }\n }\n": typeof GetAgentsSchedulesDocument;
1562
1710
  "\n query GetAgentsSchedule($id: ID!) {\n agentsSchedule(id: $id) {\n id\n name\n description\n cronExpression\n timezone\n enabled\n lastRunAt\n lastRunStatus\n lastError\n nextRunAt\n initialMessage\n taskType\n taskConfig\n maxDurationSeconds\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n }\n }\n": typeof GetAgentsScheduleDocument;
1563
- "\n query GetAgentsConversations($agentId: ID, $status: ConversationStatus) {\n agentsConversations(agentId: $agentId, status: $status) {\n id\n title\n summary\n status\n contextType\n contextId\n isPublic\n pinned\n archivedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n }\n }\n": typeof GetAgentsConversationsDocument;
1711
+ "\n query GetAgentsConversations($agentId: ID, $status: ConversationStatus, $limit: Int) {\n agentsConversations(agentId: $agentId, status: $status, limit: $limit) {\n id\n title\n summary\n status\n contextType\n contextId\n isPublic\n pinned\n archivedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n }\n }\n": typeof GetAgentsConversationsDocument;
1564
1712
  "\n query GetAgentsConversation($id: ID!) {\n agentsConversation(id: $id) {\n id\n title\n summary\n status\n contextType\n contextId\n isPublic\n pinned\n archivedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n messages {\n id\n role\n content\n contentType\n insertedAt\n }\n runs {\n id\n status\n modelUsed\n startedAt\n completedAt\n }\n }\n }\n": typeof GetAgentsConversationDocument;
1565
- "\n query GetAgentsRuns($agentId: ID, $conversationId: ID, $status: RunStatus) {\n agentsRuns(agentId: $agentId, conversationId: $conversationId, status: $status) {\n id\n status\n triggerType\n modelUsed\n inputTokens\n outputTokens\n cacheReadTokens\n cacheWriteTokens\n costCents\n toolsDiscovered\n toolsUsed\n error\n errorCode\n startedAt\n completedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n conversation {\n id\n title\n }\n }\n }\n": typeof GetAgentsRunsDocument;
1713
+ "\n query GetAgentsRuns($agentId: ID, $conversationId: ID, $status: RunStatus, $limit: Int) {\n agentsRuns(agentId: $agentId, conversationId: $conversationId, status: $status, limit: $limit) {\n id\n status\n triggerType\n modelUsed\n inputTokens\n outputTokens\n cacheReadTokens\n cacheWriteTokens\n costCents\n toolsDiscovered\n toolsUsed\n error\n errorCode\n startedAt\n completedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n conversation {\n id\n title\n }\n }\n }\n": typeof GetAgentsRunsDocument;
1566
1714
  "\n query GetAgentsRun($id: ID!) {\n agentsRun(id: $id) {\n id\n status\n triggerType\n modelUsed\n inputTokens\n outputTokens\n cacheReadTokens\n cacheWriteTokens\n costCents\n toolsDiscovered\n toolsUsed\n error\n errorCode\n startedAt\n completedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n conversation {\n id\n title\n }\n toolCalls {\n id\n toolName\n toolCallId\n status\n input\n output\n outputTruncated\n error\n errorType\n cacheHit\n durationMs\n requiresConfirmation\n confirmedAt\n startedAt\n completedAt\n }\n }\n }\n": typeof GetAgentsRunDocument;
1567
1715
  "\n query GetAgentsUsageStats($agentId: ID, $startDate: Date, $endDate: Date) {\n agentsUsageStats(agentId: $agentId, startDate: $startDate, endDate: $endDate) {\n totalRuns\n totalMessages\n totalInputTokens\n totalOutputTokens\n totalCostCents\n totalToolCalls\n totalErrors\n }\n }\n": typeof GetAgentsUsageStatsDocument;
1568
1716
  "\n query GetAgentsUsageDaily($agentId: ID, $startDate: Date, $endDate: Date) {\n agentsUsageDaily(agentId: $agentId, startDate: $startDate, endDate: $endDate) {\n id\n date\n agentId\n runCount\n messageCount\n inputTokens\n outputTokens\n cacheReadTokens\n cacheWriteTokens\n costCents\n toolCallCount\n errorCount\n insertedAt\n updatedAt\n }\n }\n": typeof GetAgentsUsageDailyDocument;
@@ -1583,6 +1731,14 @@ declare const documents: Documents;
1583
1731
  * Please regenerate the types.
1584
1732
  */
1585
1733
  declare function graphql(source: string): unknown;
1734
+ /**
1735
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
1736
+ */
1737
+ declare function graphql(source: "\n mutation SignIn($email: String!, $password: String!, $role: SignInRole) {\n signIn(email: $email, password: $password, role: $role) {\n success\n sessionToken\n roles\n user {\n id\n email\n firstName\n lastName\n }\n errors {\n field\n message\n }\n }\n }\n"): (typeof documents)["\n mutation SignIn($email: String!, $password: String!, $role: SignInRole) {\n signIn(email: $email, password: $password, role: $role) {\n success\n sessionToken\n roles\n user {\n id\n email\n firstName\n lastName\n }\n errors {\n field\n message\n }\n }\n }\n"];
1738
+ /**
1739
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
1740
+ */
1741
+ declare function graphql(source: "\n mutation ExchangeOauthCode($code: String!, $provider: OauthProvider!, $redirectUri: String!) {\n exchangeOauthCode(code: $code, provider: $provider, redirectUri: $redirectUri) {\n success\n sessionToken\n roles\n user {\n id\n email\n firstName\n lastName\n }\n errors {\n field\n message\n }\n }\n }\n"): (typeof documents)["\n mutation ExchangeOauthCode($code: String!, $provider: OauthProvider!, $redirectUri: String!) {\n exchangeOauthCode(code: $code, provider: $provider, redirectUri: $redirectUri) {\n success\n sessionToken\n roles\n user {\n id\n email\n firstName\n lastName\n }\n errors {\n field\n message\n }\n }\n }\n"];
1586
1742
  /**
1587
1743
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
1588
1744
  */
@@ -1710,7 +1866,7 @@ declare function graphql(source: "\n query GetAgentsSchedule($id: ID!) {\n a
1710
1866
  /**
1711
1867
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
1712
1868
  */
1713
- declare function graphql(source: "\n query GetAgentsConversations($agentId: ID, $status: ConversationStatus) {\n agentsConversations(agentId: $agentId, status: $status) {\n id\n title\n summary\n status\n contextType\n contextId\n isPublic\n pinned\n archivedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n }\n }\n"): (typeof documents)["\n query GetAgentsConversations($agentId: ID, $status: ConversationStatus) {\n agentsConversations(agentId: $agentId, status: $status) {\n id\n title\n summary\n status\n contextType\n contextId\n isPublic\n pinned\n archivedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n }\n }\n"];
1869
+ declare function graphql(source: "\n query GetAgentsConversations($agentId: ID, $status: ConversationStatus, $limit: Int) {\n agentsConversations(agentId: $agentId, status: $status, limit: $limit) {\n id\n title\n summary\n status\n contextType\n contextId\n isPublic\n pinned\n archivedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n }\n }\n"): (typeof documents)["\n query GetAgentsConversations($agentId: ID, $status: ConversationStatus, $limit: Int) {\n agentsConversations(agentId: $agentId, status: $status, limit: $limit) {\n id\n title\n summary\n status\n contextType\n contextId\n isPublic\n pinned\n archivedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n }\n }\n"];
1714
1870
  /**
1715
1871
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
1716
1872
  */
@@ -1718,7 +1874,7 @@ declare function graphql(source: "\n query GetAgentsConversation($id: ID!) {\n
1718
1874
  /**
1719
1875
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
1720
1876
  */
1721
- declare function graphql(source: "\n query GetAgentsRuns($agentId: ID, $conversationId: ID, $status: RunStatus) {\n agentsRuns(agentId: $agentId, conversationId: $conversationId, status: $status) {\n id\n status\n triggerType\n modelUsed\n inputTokens\n outputTokens\n cacheReadTokens\n cacheWriteTokens\n costCents\n toolsDiscovered\n toolsUsed\n error\n errorCode\n startedAt\n completedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n conversation {\n id\n title\n }\n }\n }\n"): (typeof documents)["\n query GetAgentsRuns($agentId: ID, $conversationId: ID, $status: RunStatus) {\n agentsRuns(agentId: $agentId, conversationId: $conversationId, status: $status) {\n id\n status\n triggerType\n modelUsed\n inputTokens\n outputTokens\n cacheReadTokens\n cacheWriteTokens\n costCents\n toolsDiscovered\n toolsUsed\n error\n errorCode\n startedAt\n completedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n conversation {\n id\n title\n }\n }\n }\n"];
1877
+ declare function graphql(source: "\n query GetAgentsRuns($agentId: ID, $conversationId: ID, $status: RunStatus, $limit: Int) {\n agentsRuns(agentId: $agentId, conversationId: $conversationId, status: $status, limit: $limit) {\n id\n status\n triggerType\n modelUsed\n inputTokens\n outputTokens\n cacheReadTokens\n cacheWriteTokens\n costCents\n toolsDiscovered\n toolsUsed\n error\n errorCode\n startedAt\n completedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n conversation {\n id\n title\n }\n }\n }\n"): (typeof documents)["\n query GetAgentsRuns($agentId: ID, $conversationId: ID, $status: RunStatus, $limit: Int) {\n agentsRuns(agentId: $agentId, conversationId: $conversationId, status: $status, limit: $limit) {\n id\n status\n triggerType\n modelUsed\n inputTokens\n outputTokens\n cacheReadTokens\n cacheWriteTokens\n costCents\n toolsDiscovered\n toolsUsed\n error\n errorCode\n startedAt\n completedAt\n insertedAt\n updatedAt\n agent {\n id\n name\n slug\n }\n conversation {\n id\n title\n }\n }\n }\n"];
1722
1878
  /**
1723
1879
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
1724
1880
  */
@@ -1741,4 +1897,4 @@ declare function graphql(source: "\n query GetAgentsAdmins {\n agentsAdmins
1741
1897
  declare function graphql(source: "\n query GetAgentsCurrentAdmin {\n agentsCurrentAdmin {\n id\n email\n role\n canManageAgents\n canManageTools\n canManageAdmins\n canViewAllConversations\n expiresAt\n lastAccessedAt\n insertedAt\n updatedAt\n }\n }\n"): (typeof documents)["\n query GetAgentsCurrentAdmin {\n agentsCurrentAdmin {\n id\n email\n role\n canManageAgents\n canManageTools\n canManageAdmins\n canViewAllConversations\n expiresAt\n lastAccessedAt\n insertedAt\n updatedAt\n }\n }\n"];
1742
1898
  type DocumentType<TDocumentNode extends TypedDocumentNode<any, any>> = TDocumentNode extends TypedDocumentNode<infer TType, any> ? TType : never;
1743
1899
 
1744
- export { AdminRole, type Agent, AgentRole, AgentStatus, type AgentsAdmin, ArchiveAgentDocument, type ArchiveAgentMutation, type ArchiveAgentMutationVariables, ArchiveAgentsConversationDocument, type ArchiveAgentsConversationMutation, type ArchiveAgentsConversationMutationVariables, AssignToolToAgentDocument, type AssignToolToAgentMutation, type AssignToolToAgentMutationVariables, CancelAgentsRunDocument, type CancelAgentsRunMutation, type CancelAgentsRunMutationVariables, ConfirmAgentsToolCallDocument, type ConfirmAgentsToolCallMutation, type ConfirmAgentsToolCallMutationVariables, type Conversation, ConversationStatus, type CreateAdminInput, CreateAgentDocument, type CreateAgentInput, type CreateAgentMutation, type CreateAgentMutationVariables, CreateAgentsAdminDocument, type CreateAgentsAdminMutation, type CreateAgentsAdminMutationVariables, CreateAgentsConversationDocument, type CreateAgentsConversationMutation, type CreateAgentsConversationMutationVariables, CreateAgentsScheduleDocument, type CreateAgentsScheduleMutation, type CreateAgentsScheduleMutationVariables, CreateAgentsToolDocument, type CreateAgentsToolMutation, type CreateAgentsToolMutationVariables, type CreateConversationInput, type CreateScheduleInput, type CreateToolInput, DeleteAgentsAdminDocument, type DeleteAgentsAdminMutation, type DeleteAgentsAdminMutationVariables, DeleteAgentsScheduleDocument, type DeleteAgentsScheduleMutation, type DeleteAgentsScheduleMutationVariables, DeleteAgentsToolDocument, type DeleteAgentsToolMutation, type DeleteAgentsToolMutationVariables, DisableAgentsScheduleDocument, type DisableAgentsScheduleMutation, type DisableAgentsScheduleMutationVariables, type DocumentType, EnableAgentsScheduleDocument, type EnableAgentsScheduleMutation, type EnableAgentsScheduleMutationVariables, type Exact, type FragmentType, GetAgentDocument, type GetAgentQuery, type GetAgentQueryVariables, GetAgentsAdminsDocument, type GetAgentsAdminsQuery, type GetAgentsAdminsQueryVariables, GetAgentsConversationDocument, type GetAgentsConversationQuery, type GetAgentsConversationQueryVariables, GetAgentsConversationsDocument, type GetAgentsConversationsQuery, type GetAgentsConversationsQueryVariables, GetAgentsCurrentAdminDocument, type GetAgentsCurrentAdminQuery, type GetAgentsCurrentAdminQueryVariables, GetAgentsDocument, type GetAgentsQuery, type GetAgentsQueryVariables, GetAgentsRunDocument, type GetAgentsRunQuery, type GetAgentsRunQueryVariables, GetAgentsRunsDocument, type GetAgentsRunsQuery, type GetAgentsRunsQueryVariables, GetAgentsScheduleDocument, type GetAgentsScheduleQuery, type GetAgentsScheduleQueryVariables, GetAgentsSchedulesDocument, type GetAgentsSchedulesQuery, type GetAgentsSchedulesQueryVariables, GetAgentsToolCategoriesDocument, type GetAgentsToolCategoriesQuery, type GetAgentsToolCategoriesQueryVariables, GetAgentsToolDocument, type GetAgentsToolQuery, type GetAgentsToolQueryVariables, GetAgentsToolSourcesDocument, type GetAgentsToolSourcesQuery, type GetAgentsToolSourcesQueryVariables, GetAgentsToolsDocument, type GetAgentsToolsQuery, type GetAgentsToolsQueryVariables, GetAgentsUsageDailyDocument, type GetAgentsUsageDailyQuery, type GetAgentsUsageDailyQueryVariables, GetAgentsUsageStatsDocument, type GetAgentsUsageStatsQuery, type GetAgentsUsageStatsQueryVariables, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, type Maybe, type Message, MessageRole, RejectAgentsToolCallDocument, type RejectAgentsToolCallMutation, type RejectAgentsToolCallMutationVariables, RemoveToolFromAgentDocument, type RemoveToolFromAgentMutation, type RemoveToolFromAgentMutationVariables, RestoreAgentDocument, type RestoreAgentMutation, type RestoreAgentMutationVariables, type RootMutationType, type RootMutationTypeArchiveAgentArgs, type RootMutationTypeArchiveAgentsConversationArgs, type RootMutationTypeAssignToolToAgentArgs, type RootMutationTypeCancelAgentsRunArgs, type RootMutationTypeConfirmAgentsToolCallArgs, type RootMutationTypeCreateAgentArgs, type RootMutationTypeCreateAgentsAdminArgs, type RootMutationTypeCreateAgentsConversationArgs, type RootMutationTypeCreateAgentsScheduleArgs, type RootMutationTypeCreateAgentsToolArgs, type RootMutationTypeDeleteAgentsAdminArgs, type RootMutationTypeDeleteAgentsScheduleArgs, type RootMutationTypeDeleteAgentsToolArgs, type RootMutationTypeDisableAgentsScheduleArgs, type RootMutationTypeEnableAgentsScheduleArgs, type RootMutationTypeRejectAgentsToolCallArgs, type RootMutationTypeRemoveToolFromAgentArgs, type RootMutationTypeRestoreAgentArgs, type RootMutationTypeSendAgentsMessageArgs, type RootMutationTypeUpdateAgentArgs, type RootMutationTypeUpdateAgentsAdminArgs, type RootMutationTypeUpdateAgentsScheduleArgs, type RootMutationTypeUpdateAgentsToolArgs, type RootQueryType, type RootQueryTypeAgentArgs, type RootQueryTypeAgentsArgs, type RootQueryTypeAgentsConversationArgs, type RootQueryTypeAgentsConversationsArgs, type RootQueryTypeAgentsRunArgs, type RootQueryTypeAgentsRunsArgs, type RootQueryTypeAgentsScheduleArgs, type RootQueryTypeAgentsSchedulesArgs, type RootQueryTypeAgentsToolArgs, type RootQueryTypeAgentsToolsArgs, type RootQueryTypeAgentsUsageDailyArgs, type RootQueryTypeAgentsUsageStatsArgs, type Run, RunStatus, type Scalars, type Schedule, ScheduleTaskType, SendAgentsMessageDocument, type SendAgentsMessageMutation, type SendAgentsMessageMutationVariables, type SendMessageInput, type ToolCall, ToolCallStatus, type ToolCategory, type ToolRegistry, type ToolSource, type UpdateAdminInput, UpdateAgentDocument, type UpdateAgentInput, type UpdateAgentMutation, type UpdateAgentMutationVariables, UpdateAgentsAdminDocument, type UpdateAgentsAdminMutation, type UpdateAgentsAdminMutationVariables, UpdateAgentsScheduleDocument, type UpdateAgentsScheduleMutation, type UpdateAgentsScheduleMutationVariables, UpdateAgentsToolDocument, type UpdateAgentsToolMutation, type UpdateAgentsToolMutationVariables, type UpdateScheduleInput, type UpdateToolInput, type UsageDaily, type UsageStats, graphql, isFragmentReady, makeFragmentData, useFragment };
1900
+ export { AdminRole, type Agent, AgentRole, AgentStatus, type AgentsAdmin, ArchiveAgentDocument, type ArchiveAgentMutation, type ArchiveAgentMutationVariables, ArchiveAgentsConversationDocument, type ArchiveAgentsConversationMutation, type ArchiveAgentsConversationMutationVariables, AssignToolToAgentDocument, type AssignToolToAgentMutation, type AssignToolToAgentMutationVariables, type AuthError, type AuthUser, CancelAgentsRunDocument, type CancelAgentsRunMutation, type CancelAgentsRunMutationVariables, ConfirmAgentsToolCallDocument, type ConfirmAgentsToolCallMutation, type ConfirmAgentsToolCallMutationVariables, type Conversation, ConversationStatus, type CreateAdminInput, CreateAgentDocument, type CreateAgentInput, type CreateAgentMutation, type CreateAgentMutationVariables, CreateAgentsAdminDocument, type CreateAgentsAdminMutation, type CreateAgentsAdminMutationVariables, CreateAgentsConversationDocument, type CreateAgentsConversationMutation, type CreateAgentsConversationMutationVariables, CreateAgentsScheduleDocument, type CreateAgentsScheduleMutation, type CreateAgentsScheduleMutationVariables, CreateAgentsToolDocument, type CreateAgentsToolMutation, type CreateAgentsToolMutationVariables, type CreateConversationInput, type CreateScheduleInput, type CreateToolInput, DeleteAgentsAdminDocument, type DeleteAgentsAdminMutation, type DeleteAgentsAdminMutationVariables, DeleteAgentsScheduleDocument, type DeleteAgentsScheduleMutation, type DeleteAgentsScheduleMutationVariables, DeleteAgentsToolDocument, type DeleteAgentsToolMutation, type DeleteAgentsToolMutationVariables, DisableAgentsScheduleDocument, type DisableAgentsScheduleMutation, type DisableAgentsScheduleMutationVariables, type DocumentType, EnableAgentsScheduleDocument, type EnableAgentsScheduleMutation, type EnableAgentsScheduleMutationVariables, type Exact, ExchangeOauthCodeDocument, type ExchangeOauthCodeMutation, type ExchangeOauthCodeMutationVariables, type FragmentType, GetAgentDocument, type GetAgentQuery, type GetAgentQueryVariables, GetAgentsAdminsDocument, type GetAgentsAdminsQuery, type GetAgentsAdminsQueryVariables, GetAgentsConversationDocument, type GetAgentsConversationQuery, type GetAgentsConversationQueryVariables, GetAgentsConversationsDocument, type GetAgentsConversationsQuery, type GetAgentsConversationsQueryVariables, GetAgentsCurrentAdminDocument, type GetAgentsCurrentAdminQuery, type GetAgentsCurrentAdminQueryVariables, GetAgentsDocument, type GetAgentsQuery, type GetAgentsQueryVariables, GetAgentsRunDocument, type GetAgentsRunQuery, type GetAgentsRunQueryVariables, GetAgentsRunsDocument, type GetAgentsRunsQuery, type GetAgentsRunsQueryVariables, GetAgentsScheduleDocument, type GetAgentsScheduleQuery, type GetAgentsScheduleQueryVariables, GetAgentsSchedulesDocument, type GetAgentsSchedulesQuery, type GetAgentsSchedulesQueryVariables, GetAgentsToolCategoriesDocument, type GetAgentsToolCategoriesQuery, type GetAgentsToolCategoriesQueryVariables, GetAgentsToolDocument, type GetAgentsToolQuery, type GetAgentsToolQueryVariables, GetAgentsToolSourcesDocument, type GetAgentsToolSourcesQuery, type GetAgentsToolSourcesQueryVariables, GetAgentsToolsDocument, type GetAgentsToolsQuery, type GetAgentsToolsQueryVariables, GetAgentsUsageDailyDocument, type GetAgentsUsageDailyQuery, type GetAgentsUsageDailyQueryVariables, GetAgentsUsageStatsDocument, type GetAgentsUsageStatsQuery, type GetAgentsUsageStatsQueryVariables, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, type Maybe, type Message, MessageRole, OauthProvider, RejectAgentsToolCallDocument, type RejectAgentsToolCallMutation, type RejectAgentsToolCallMutationVariables, RemoveToolFromAgentDocument, type RemoveToolFromAgentMutation, type RemoveToolFromAgentMutationVariables, RestoreAgentDocument, type RestoreAgentMutation, type RestoreAgentMutationVariables, type RootMutationType, type RootMutationTypeArchiveAgentArgs, type RootMutationTypeArchiveAgentsConversationArgs, type RootMutationTypeAssignToolToAgentArgs, type RootMutationTypeCancelAgentsRunArgs, type RootMutationTypeConfirmAgentsToolCallArgs, type RootMutationTypeCreateAgentArgs, type RootMutationTypeCreateAgentsAdminArgs, type RootMutationTypeCreateAgentsConversationArgs, type RootMutationTypeCreateAgentsScheduleArgs, type RootMutationTypeCreateAgentsToolArgs, type RootMutationTypeDeleteAgentsAdminArgs, type RootMutationTypeDeleteAgentsScheduleArgs, type RootMutationTypeDeleteAgentsToolArgs, type RootMutationTypeDisableAgentsScheduleArgs, type RootMutationTypeEnableAgentsScheduleArgs, type RootMutationTypeExchangeOauthCodeArgs, type RootMutationTypeRejectAgentsToolCallArgs, type RootMutationTypeRemoveToolFromAgentArgs, type RootMutationTypeRestoreAgentArgs, type RootMutationTypeSendAgentsMessageArgs, type RootMutationTypeSignInArgs, type RootMutationTypeUpdateAgentArgs, type RootMutationTypeUpdateAgentsAdminArgs, type RootMutationTypeUpdateAgentsScheduleArgs, type RootMutationTypeUpdateAgentsToolArgs, type RootQueryType, type RootQueryTypeAgentArgs, type RootQueryTypeAgentsArgs, type RootQueryTypeAgentsConversationArgs, type RootQueryTypeAgentsConversationsArgs, type RootQueryTypeAgentsRunArgs, type RootQueryTypeAgentsRunsArgs, type RootQueryTypeAgentsScheduleArgs, type RootQueryTypeAgentsSchedulesArgs, type RootQueryTypeAgentsToolArgs, type RootQueryTypeAgentsToolsArgs, type RootQueryTypeAgentsUsageDailyArgs, type RootQueryTypeAgentsUsageStatsArgs, type Run, RunStatus, type Scalars, type Schedule, ScheduleTaskType, SendAgentsMessageDocument, type SendAgentsMessageMutation, type SendAgentsMessageMutationVariables, type SendMessageInput, SignInDocument, type SignInMutation, type SignInMutationVariables, type SignInResult, SignInRole, type ToolCall, ToolCallStatus, type ToolCategory, type ToolRegistry, type ToolSource, type UpdateAdminInput, UpdateAgentDocument, type UpdateAgentInput, type UpdateAgentMutation, type UpdateAgentMutationVariables, UpdateAgentsAdminDocument, type UpdateAgentsAdminMutation, type UpdateAgentsAdminMutationVariables, UpdateAgentsScheduleDocument, type UpdateAgentsScheduleMutation, type UpdateAgentsScheduleMutationVariables, UpdateAgentsToolDocument, type UpdateAgentsToolMutation, type UpdateAgentsToolMutationVariables, type UpdateScheduleInput, type UpdateToolInput, type UsageDaily, type UsageStats, graphql, isFragmentReady, makeFragmentData, useFragment };