@legendsoflearning/lol-sdk-core 0.0.3 → 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.
- package/dist/generated/agents/index.d.mts +155 -1
- package/dist/generated/agents/index.d.ts +155 -1
- package/dist/generated/agents/index.js +25 -0
- package/dist/generated/agents/index.js.map +1 -1
- package/dist/generated/agents/index.mjs +22 -1
- package/dist/generated/agents/index.mjs.map +1 -1
- package/package.json +13 -13
|
@@ -53,6 +53,10 @@ var MessageRole = /* @__PURE__ */ ((MessageRole2) => {
|
|
|
53
53
|
MessageRole2["User"] = "USER";
|
|
54
54
|
return MessageRole2;
|
|
55
55
|
})(MessageRole || {});
|
|
56
|
+
var OauthProvider = /* @__PURE__ */ ((OauthProvider2) => {
|
|
57
|
+
OauthProvider2["Google"] = "GOOGLE";
|
|
58
|
+
return OauthProvider2;
|
|
59
|
+
})(OauthProvider || {});
|
|
56
60
|
var RunStatus = /* @__PURE__ */ ((RunStatus2) => {
|
|
57
61
|
RunStatus2["Cancelled"] = "CANCELLED";
|
|
58
62
|
RunStatus2["Completed"] = "COMPLETED";
|
|
@@ -68,6 +72,19 @@ var ScheduleTaskType = /* @__PURE__ */ ((ScheduleTaskType2) => {
|
|
|
68
72
|
ScheduleTaskType2["Report"] = "REPORT";
|
|
69
73
|
return ScheduleTaskType2;
|
|
70
74
|
})(ScheduleTaskType || {});
|
|
75
|
+
var SignInRole = /* @__PURE__ */ ((SignInRole2) => {
|
|
76
|
+
SignInRole2["Admin"] = "ADMIN";
|
|
77
|
+
SignInRole2["AgentsAdmin"] = "AGENTS_ADMIN";
|
|
78
|
+
SignInRole2["ContentAdmin"] = "CONTENT_ADMIN";
|
|
79
|
+
SignInRole2["DistrictAdmin"] = "DISTRICT_ADMIN";
|
|
80
|
+
SignInRole2["GameDeveloper"] = "GAME_DEVELOPER";
|
|
81
|
+
SignInRole2["Parent"] = "PARENT";
|
|
82
|
+
SignInRole2["QuestionEditor"] = "QUESTION_EDITOR";
|
|
83
|
+
SignInRole2["SchoolAdmin"] = "SCHOOL_ADMIN";
|
|
84
|
+
SignInRole2["Student"] = "STUDENT";
|
|
85
|
+
SignInRole2["Teacher"] = "TEACHER";
|
|
86
|
+
return SignInRole2;
|
|
87
|
+
})(SignInRole || {});
|
|
71
88
|
var ToolCallStatus = /* @__PURE__ */ ((ToolCallStatus2) => {
|
|
72
89
|
ToolCallStatus2["AwaitingConfirmation"] = "AWAITING_CONFIRMATION";
|
|
73
90
|
ToolCallStatus2["Cancelled"] = "CANCELLED";
|
|
@@ -77,6 +94,8 @@ var ToolCallStatus = /* @__PURE__ */ ((ToolCallStatus2) => {
|
|
|
77
94
|
ToolCallStatus2["Running"] = "RUNNING";
|
|
78
95
|
return ToolCallStatus2;
|
|
79
96
|
})(ToolCallStatus || {});
|
|
97
|
+
var SignInDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "SignIn" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "email" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "password" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "role" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "SignInRole" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "signIn" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "email" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "email" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "password" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "password" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "role" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "role" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "success" } }, { "kind": "Field", "name": { "kind": "Name", "value": "sessionToken" } }, { "kind": "Field", "name": { "kind": "Name", "value": "roles" } }, { "kind": "Field", "name": { "kind": "Name", "value": "user" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "firstName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "lastName" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "errors" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "field" } }, { "kind": "Field", "name": { "kind": "Name", "value": "message" } }] } }] } }] } }] };
|
|
98
|
+
var ExchangeOauthCodeDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "ExchangeOauthCode" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "code" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "provider" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "OauthProvider" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "redirectUri" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "exchangeOauthCode" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "code" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "code" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "provider" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "provider" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "redirectUri" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "redirectUri" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "success" } }, { "kind": "Field", "name": { "kind": "Name", "value": "sessionToken" } }, { "kind": "Field", "name": { "kind": "Name", "value": "roles" } }, { "kind": "Field", "name": { "kind": "Name", "value": "user" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "firstName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "lastName" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "errors" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "field" } }, { "kind": "Field", "name": { "kind": "Name", "value": "message" } }] } }] } }] } }] };
|
|
80
99
|
var CreateAgentDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "CreateAgent" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "CreateAgentInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "createAgent" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "slug" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "role" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "systemPrompt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "model" } }, { "kind": "Field", "name": { "kind": "Name", "value": "temperature" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxTokens" } }, { "kind": "Field", "name": { "kind": "Name", "value": "avatarUrl" } }, { "kind": "Field", "name": { "kind": "Name", "value": "isPublic" } }, { "kind": "Field", "name": { "kind": "Name", "value": "insertedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }] } }] };
|
|
81
100
|
var UpdateAgentDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "UpdateAgent" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "id" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "UpdateAgentInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "updateAgent" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "id" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "id" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "slug" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "role" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "statusMessage" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "systemPrompt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "model" } }, { "kind": "Field", "name": { "kind": "Name", "value": "temperature" } }, { "kind": "Field", "name": { "kind": "Name", "value": "maxTokens" } }, { "kind": "Field", "name": { "kind": "Name", "value": "avatarUrl" } }, { "kind": "Field", "name": { "kind": "Name", "value": "isPublic" } }, { "kind": "Field", "name": { "kind": "Name", "value": "lastActiveAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }] } }] } }] };
|
|
82
101
|
var ArchiveAgentDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "ArchiveAgent" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "id" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "archiveAgent" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "id" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "id" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "archivedAt" } }] } }] } }] };
|
|
@@ -119,6 +138,8 @@ var GetAgentsCurrentAdminDocument = { "kind": "Document", "definitions": [{ "kin
|
|
|
119
138
|
|
|
120
139
|
// src/generated/agents/gql.ts
|
|
121
140
|
var documents = {
|
|
141
|
+
"\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": SignInDocument,
|
|
142
|
+
"\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": ExchangeOauthCodeDocument,
|
|
122
143
|
"\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": CreateAgentDocument,
|
|
123
144
|
"\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": UpdateAgentDocument,
|
|
124
145
|
"\n mutation ArchiveAgent($id: ID!) {\n archiveAgent(id: $id) {\n id\n archivedAt\n }\n }\n": ArchiveAgentDocument,
|
|
@@ -163,6 +184,6 @@ function graphql(source) {
|
|
|
163
184
|
return documents[source] ?? {};
|
|
164
185
|
}
|
|
165
186
|
|
|
166
|
-
export { AdminRole, AgentRole, AgentStatus, ArchiveAgentDocument, ArchiveAgentsConversationDocument, AssignToolToAgentDocument, CancelAgentsRunDocument, ConfirmAgentsToolCallDocument, ConversationStatus, CreateAgentDocument, CreateAgentsAdminDocument, CreateAgentsConversationDocument, CreateAgentsScheduleDocument, CreateAgentsToolDocument, DeleteAgentsAdminDocument, DeleteAgentsScheduleDocument, DeleteAgentsToolDocument, DisableAgentsScheduleDocument, EnableAgentsScheduleDocument, GetAgentDocument, GetAgentsAdminsDocument, GetAgentsConversationDocument, GetAgentsConversationsDocument, GetAgentsCurrentAdminDocument, GetAgentsDocument, GetAgentsRunDocument, GetAgentsRunsDocument, GetAgentsScheduleDocument, GetAgentsSchedulesDocument, GetAgentsToolCategoriesDocument, GetAgentsToolDocument, GetAgentsToolSourcesDocument, GetAgentsToolsDocument, GetAgentsUsageDailyDocument, GetAgentsUsageStatsDocument, MessageRole, RejectAgentsToolCallDocument, RemoveToolFromAgentDocument, RestoreAgentDocument, RunStatus, ScheduleTaskType, SendAgentsMessageDocument, ToolCallStatus, UpdateAgentDocument, UpdateAgentsAdminDocument, UpdateAgentsScheduleDocument, UpdateAgentsToolDocument, graphql, isFragmentReady, makeFragmentData, useFragment };
|
|
187
|
+
export { AdminRole, AgentRole, AgentStatus, ArchiveAgentDocument, ArchiveAgentsConversationDocument, AssignToolToAgentDocument, CancelAgentsRunDocument, ConfirmAgentsToolCallDocument, ConversationStatus, CreateAgentDocument, CreateAgentsAdminDocument, CreateAgentsConversationDocument, CreateAgentsScheduleDocument, CreateAgentsToolDocument, DeleteAgentsAdminDocument, DeleteAgentsScheduleDocument, DeleteAgentsToolDocument, DisableAgentsScheduleDocument, EnableAgentsScheduleDocument, ExchangeOauthCodeDocument, GetAgentDocument, GetAgentsAdminsDocument, GetAgentsConversationDocument, GetAgentsConversationsDocument, GetAgentsCurrentAdminDocument, GetAgentsDocument, GetAgentsRunDocument, GetAgentsRunsDocument, GetAgentsScheduleDocument, GetAgentsSchedulesDocument, GetAgentsToolCategoriesDocument, GetAgentsToolDocument, GetAgentsToolSourcesDocument, GetAgentsToolsDocument, GetAgentsUsageDailyDocument, GetAgentsUsageStatsDocument, MessageRole, OauthProvider, RejectAgentsToolCallDocument, RemoveToolFromAgentDocument, RestoreAgentDocument, RunStatus, ScheduleTaskType, SendAgentsMessageDocument, SignInDocument, SignInRole, ToolCallStatus, UpdateAgentDocument, UpdateAgentsAdminDocument, UpdateAgentsScheduleDocument, UpdateAgentsToolDocument, graphql, isFragmentReady, makeFragmentData, useFragment };
|
|
167
188
|
//# sourceMappingURL=index.mjs.map
|
|
168
189
|
//# sourceMappingURL=index.mjs.map
|