@droz-js/sdk 0.3.4 → 0.3.5
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/package.json +1 -1
- package/src/nucleus.d.ts +3 -0
- package/src/sdks/drozchat.d.ts +1 -1
- package/src/sdks/drozchat.js +1 -1
- package/src/sdks/nucleus.d.ts +16 -0
- package/src/sdks/nucleus.js +12 -2
package/package.json
CHANGED
package/src/nucleus.d.ts
CHANGED
|
@@ -17,6 +17,9 @@ export declare const Nucleus: new (options?: import("./client/http").HttpClientO
|
|
|
17
17
|
listApiKeyAgents(variables?: import("./sdks/nucleus").Exact<{
|
|
18
18
|
next?: object;
|
|
19
19
|
}>, options?: unknown): Promise<import("./sdks/nucleus").ListApiKeyAgentsQuery>;
|
|
20
|
+
updateMyProfile(variables: import("./sdks/nucleus").Exact<{
|
|
21
|
+
input: import("./sdks/nucleus").UpdateMyProfileInput;
|
|
22
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").UpdateMyProfileMutation>;
|
|
20
23
|
createAgent(variables: import("./sdks/nucleus").Exact<{
|
|
21
24
|
input: import("./sdks/nucleus").CreateAgentInput;
|
|
22
25
|
}>, options?: unknown): Promise<import("./sdks/nucleus").CreateAgentMutation>;
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -324,7 +324,7 @@ export type TicketsConnection = {
|
|
|
324
324
|
};
|
|
325
325
|
export declare enum Typenames {
|
|
326
326
|
Any = "Any",
|
|
327
|
-
|
|
327
|
+
Channels = "Channels",
|
|
328
328
|
GraphqlConnections = "GraphqlConnections",
|
|
329
329
|
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
330
330
|
TicketMappings = "TicketMappings",
|
package/src/sdks/drozchat.js
CHANGED
|
@@ -45,7 +45,7 @@ var TicketStatus;
|
|
|
45
45
|
var Typenames;
|
|
46
46
|
(function (Typenames) {
|
|
47
47
|
Typenames["Any"] = "Any";
|
|
48
|
-
Typenames["
|
|
48
|
+
Typenames["Channels"] = "Channels";
|
|
49
49
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
50
50
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
51
51
|
Typenames["TicketMappings"] = "TicketMappings";
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -286,6 +286,7 @@ export type Mutation = {
|
|
|
286
286
|
updateAgent?: Maybe<Agent>;
|
|
287
287
|
updateCredentials: SafeCredentials;
|
|
288
288
|
updateCronJob: CronJob;
|
|
289
|
+
updateMyProfile?: Maybe<Agent>;
|
|
289
290
|
updateStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
290
291
|
updateStateMachineConfigState?: Maybe<StateMachineConfig>;
|
|
291
292
|
version?: Maybe<Scalars['String']['output']>;
|
|
@@ -362,6 +363,9 @@ export type MutationUpdateCredentialsArgs = {
|
|
|
362
363
|
export type MutationUpdateCronJobArgs = {
|
|
363
364
|
input: UpdateCronJobInput;
|
|
364
365
|
};
|
|
366
|
+
export type MutationUpdateMyProfileArgs = {
|
|
367
|
+
input: UpdateMyProfileInput;
|
|
368
|
+
};
|
|
365
369
|
export type MutationUpdateStateMachineConfigArgs = {
|
|
366
370
|
input: UpdateStateMachineConfigInput;
|
|
367
371
|
};
|
|
@@ -652,6 +656,10 @@ export type UpdateCronJobInput = {
|
|
|
652
656
|
id: Scalars['ID']['input'];
|
|
653
657
|
payload: Scalars['JSON']['input'];
|
|
654
658
|
};
|
|
659
|
+
export type UpdateMyProfileInput = {
|
|
660
|
+
email?: InputMaybe<Scalars['EmailAddress']['input']>;
|
|
661
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
662
|
+
};
|
|
655
663
|
export type UpdateStateMachineConfigInput = {
|
|
656
664
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
657
665
|
id: Scalars['ID']['input'];
|
|
@@ -703,6 +711,12 @@ export type ListApiKeyAgentsQuery = {
|
|
|
703
711
|
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
704
712
|
};
|
|
705
713
|
};
|
|
714
|
+
export type UpdateMyProfileMutationVariables = Exact<{
|
|
715
|
+
input: UpdateMyProfileInput;
|
|
716
|
+
}>;
|
|
717
|
+
export type UpdateMyProfileMutation = {
|
|
718
|
+
updateMyProfile?: Maybe<AgentFragment>;
|
|
719
|
+
};
|
|
706
720
|
export type CreateAgentMutationVariables = Exact<{
|
|
707
721
|
input: CreateAgentInput;
|
|
708
722
|
}>;
|
|
@@ -1048,6 +1062,7 @@ export declare const GetMeDocument = "\n query getMe {\n getMe {\n ...age
|
|
|
1048
1062
|
export declare const GetAgentDocument = "\n query getAgent($id: ID!) {\n getAgent(id: $id) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
|
|
1049
1063
|
export declare const ListAgentsDocument = "\n query listAgents($next: Base64) {\n listAgents(next: $next) {\n nodes {\n ...agent\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
|
|
1050
1064
|
export declare const ListApiKeyAgentsDocument = "\n query listApiKeyAgents($next: Base64) {\n listApiKeyAgents(next: $next) {\n nodes {\n ...agent\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
|
|
1065
|
+
export declare const UpdateMyProfileDocument = "\n mutation updateMyProfile($input: UpdateMyProfileInput!) {\n updateMyProfile(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
|
|
1051
1066
|
export declare const CreateAgentDocument = "\n mutation createAgent($input: CreateAgentInput!) {\n createAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
|
|
1052
1067
|
export declare const UpdateAgentDocument = "\n mutation updateAgent($input: UpdateAgentInput!) {\n updateAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
|
|
1053
1068
|
export declare const RemoveAgentDocument = "\n mutation removeAgent($input: RemoveAgentInput!) {\n removeAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n createdAt\n updatedAt\n}\n ";
|
|
@@ -1100,6 +1115,7 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
|
1100
1115
|
getAgent(variables: GetAgentQueryVariables, options?: C): Promise<GetAgentQuery>;
|
|
1101
1116
|
listAgents(variables?: ListAgentsQueryVariables, options?: C): Promise<ListAgentsQuery>;
|
|
1102
1117
|
listApiKeyAgents(variables?: ListApiKeyAgentsQueryVariables, options?: C): Promise<ListApiKeyAgentsQuery>;
|
|
1118
|
+
updateMyProfile(variables: UpdateMyProfileMutationVariables, options?: C): Promise<UpdateMyProfileMutation>;
|
|
1103
1119
|
createAgent(variables: CreateAgentMutationVariables, options?: C): Promise<CreateAgentMutation>;
|
|
1104
1120
|
updateAgent(variables: UpdateAgentMutationVariables, options?: C): Promise<UpdateAgentMutation>;
|
|
1105
1121
|
removeAgent(variables: RemoveAgentMutationVariables, options?: C): Promise<RemoveAgentMutation>;
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.serviceName = exports.getSdk = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = void 0;
|
|
4
|
+
exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.ListAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.AppType = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.serviceName = exports.getSdk = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = void 0;
|
|
6
6
|
var AppInstanceStatus;
|
|
7
7
|
(function (AppInstanceStatus) {
|
|
8
8
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -245,6 +245,13 @@ exports.ListApiKeyAgentsDocument = `
|
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
${exports.AgentFragmentDoc}`;
|
|
248
|
+
exports.UpdateMyProfileDocument = `
|
|
249
|
+
mutation updateMyProfile($input: UpdateMyProfileInput!) {
|
|
250
|
+
updateMyProfile(input: $input) {
|
|
251
|
+
...agent
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
${exports.AgentFragmentDoc}`;
|
|
248
255
|
exports.CreateAgentDocument = `
|
|
249
256
|
mutation createAgent($input: CreateAgentInput!) {
|
|
250
257
|
createAgent(input: $input) {
|
|
@@ -637,6 +644,9 @@ function getSdk(requester) {
|
|
|
637
644
|
listApiKeyAgents(variables, options) {
|
|
638
645
|
return requester(exports.ListApiKeyAgentsDocument, variables, options);
|
|
639
646
|
},
|
|
647
|
+
updateMyProfile(variables, options) {
|
|
648
|
+
return requester(exports.UpdateMyProfileDocument, variables, options);
|
|
649
|
+
},
|
|
640
650
|
createAgent(variables, options) {
|
|
641
651
|
return requester(exports.CreateAgentDocument, variables, options);
|
|
642
652
|
},
|