@droz-js/sdk 0.6.4 → 0.6.6
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/drozchat-ws.d.ts +2 -2
- package/src/drozchat.d.ts +2 -2
- package/src/nucleus.d.ts +12 -0
- package/src/sdks/ai.d.ts +11 -3
- package/src/sdks/casasbahia.d.ts +8 -0
- package/src/sdks/chatwidget.d.ts +8 -0
- package/src/sdks/drozbot.d.ts +8 -0
- package/src/sdks/drozchat.d.ts +35 -27
- package/src/sdks/drozchat.js +3 -3
- package/src/sdks/drozcommons.d.ts +8 -0
- package/src/sdks/droznexo.d.ts +8 -0
- package/src/sdks/logger.d.ts +8 -0
- package/src/sdks/nucleus.d.ts +90 -26
- package/src/sdks/nucleus.js +47 -2
- package/src/sdks/reclameaqui.d.ts +39 -31
- package/src/sdks/utilities.d.ts +25 -17
- package/src/sdks/utilities.js +1 -1
- package/src/sdks/whatsapp.d.ts +266 -0
- package/src/sdks/whatsapp.js +78 -0
- package/src/sdks/zendesk.d.ts +8 -0
- package/src/whatsapp.d.ts +21 -0
- package/src/whatsapp.js +21 -0
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -93,6 +93,10 @@ export type Scalars = {
|
|
|
93
93
|
input: any;
|
|
94
94
|
output: any[];
|
|
95
95
|
};
|
|
96
|
+
Tag: {
|
|
97
|
+
input: string;
|
|
98
|
+
output: string;
|
|
99
|
+
};
|
|
96
100
|
Timezone: {
|
|
97
101
|
input: string;
|
|
98
102
|
output: string;
|
|
@@ -101,6 +105,10 @@ export type Scalars = {
|
|
|
101
105
|
input: string;
|
|
102
106
|
output: string;
|
|
103
107
|
};
|
|
108
|
+
VariableName: {
|
|
109
|
+
input: string;
|
|
110
|
+
output: string;
|
|
111
|
+
};
|
|
104
112
|
Void: {
|
|
105
113
|
input: void;
|
|
106
114
|
output: void;
|
|
@@ -124,6 +132,7 @@ export type Agent = {
|
|
|
124
132
|
name: Scalars['String']['output'];
|
|
125
133
|
picture?: Maybe<Scalars['String']['output']>;
|
|
126
134
|
roles?: Maybe<Scalars['Set']['output']>;
|
|
135
|
+
systemAgent?: Maybe<Scalars['Boolean']['output']>;
|
|
127
136
|
updatedAt: Scalars['DateTime']['output'];
|
|
128
137
|
};
|
|
129
138
|
export type AgentConnection = {
|
|
@@ -131,6 +140,8 @@ export type AgentConnection = {
|
|
|
131
140
|
pageInfo: PageInfo;
|
|
132
141
|
};
|
|
133
142
|
export type ApiKeyAgent = {
|
|
143
|
+
email: Scalars['EmailAddress']['output'];
|
|
144
|
+
password: Scalars['String']['output'];
|
|
134
145
|
token: Scalars['String']['output'];
|
|
135
146
|
user: Agent;
|
|
136
147
|
};
|
|
@@ -142,6 +153,7 @@ export type ApiKeyCredentialsType = ICredentials & {
|
|
|
142
153
|
credentials: ApiKeyCredentials;
|
|
143
154
|
description: Scalars['String']['output'];
|
|
144
155
|
id: Scalars['ID']['output'];
|
|
156
|
+
systemCredentials?: Maybe<Scalars['Boolean']['output']>;
|
|
145
157
|
type: CredentialsType;
|
|
146
158
|
updatedAt: Scalars['DateTime']['output'];
|
|
147
159
|
};
|
|
@@ -205,6 +217,7 @@ export type BasicCredentialsType = ICredentials & {
|
|
|
205
217
|
credentials: BasicCredentials;
|
|
206
218
|
description: Scalars['String']['output'];
|
|
207
219
|
id: Scalars['ID']['output'];
|
|
220
|
+
systemCredentials?: Maybe<Scalars['Boolean']['output']>;
|
|
208
221
|
type: CredentialsType;
|
|
209
222
|
updatedAt: Scalars['DateTime']['output'];
|
|
210
223
|
};
|
|
@@ -331,6 +344,7 @@ export type ICredentials = {
|
|
|
331
344
|
createdAt: Scalars['DateTime']['output'];
|
|
332
345
|
description: Scalars['String']['output'];
|
|
333
346
|
id: Scalars['ID']['output'];
|
|
347
|
+
systemCredentials?: Maybe<Scalars['Boolean']['output']>;
|
|
334
348
|
type: CredentialsType;
|
|
335
349
|
updatedAt: Scalars['DateTime']['output'];
|
|
336
350
|
};
|
|
@@ -344,6 +358,8 @@ export type Mutation = {
|
|
|
344
358
|
createPresignedUploadUrl: CreatePresignedUploadUrl;
|
|
345
359
|
createStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
346
360
|
createStateMachineConfigState?: Maybe<StateMachineConfig>;
|
|
361
|
+
createSystemApiKeyAgent?: Maybe<ApiKeyAgent>;
|
|
362
|
+
createSystemCredentials: SafeCredentials;
|
|
347
363
|
editStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
348
364
|
getOrCreateCustomer: Customer;
|
|
349
365
|
patchSessionAttributes?: Maybe<Scalars['JSON']['output']>;
|
|
@@ -355,6 +371,8 @@ export type Mutation = {
|
|
|
355
371
|
removeRoleFromAgent?: Maybe<Agent>;
|
|
356
372
|
removeStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
357
373
|
removeStateMachineConfigState?: Maybe<StateMachineConfig>;
|
|
374
|
+
removeSystemApiKeyAgent?: Maybe<ApiKeyAgent>;
|
|
375
|
+
removeSystemCredentials?: Maybe<SafeCredentials>;
|
|
358
376
|
removeTagsFromSessionAttributes?: Maybe<Scalars['JSON']['output']>;
|
|
359
377
|
setSessionAttribute?: Maybe<Scalars['JSON']['output']>;
|
|
360
378
|
startSession?: Maybe<Session>;
|
|
@@ -394,6 +412,12 @@ export type MutationCreateStateMachineConfigArgs = {
|
|
|
394
412
|
export type MutationCreateStateMachineConfigStateArgs = {
|
|
395
413
|
input: CreateStateMachineConfigStateInput;
|
|
396
414
|
};
|
|
415
|
+
export type MutationCreateSystemApiKeyAgentArgs = {
|
|
416
|
+
input: CreateApiKeyAgentInput;
|
|
417
|
+
};
|
|
418
|
+
export type MutationCreateSystemCredentialsArgs = {
|
|
419
|
+
input: CreateCredentialsInput;
|
|
420
|
+
};
|
|
397
421
|
export type MutationEditStateMachineConfigArgs = {
|
|
398
422
|
input: EditStateMachineConfigInput;
|
|
399
423
|
};
|
|
@@ -427,6 +451,12 @@ export type MutationRemoveStateMachineConfigArgs = {
|
|
|
427
451
|
export type MutationRemoveStateMachineConfigStateArgs = {
|
|
428
452
|
input: RemoveStateMachineConfigStateInput;
|
|
429
453
|
};
|
|
454
|
+
export type MutationRemoveSystemApiKeyAgentArgs = {
|
|
455
|
+
input: RemoveAgentInput;
|
|
456
|
+
};
|
|
457
|
+
export type MutationRemoveSystemCredentialsArgs = {
|
|
458
|
+
input?: InputMaybe<RemoveCredentialsInput>;
|
|
459
|
+
};
|
|
430
460
|
export type MutationRemoveTagsFromSessionAttributesArgs = {
|
|
431
461
|
input: RemoveTagsFromSessionAttributesInput;
|
|
432
462
|
};
|
|
@@ -475,6 +505,7 @@ export type OAuth2CredentialsType = ICredentials & {
|
|
|
475
505
|
credentials: OAuth2Credentials;
|
|
476
506
|
description: Scalars['String']['output'];
|
|
477
507
|
id: Scalars['ID']['output'];
|
|
508
|
+
systemCredentials?: Maybe<Scalars['Boolean']['output']>;
|
|
478
509
|
type: CredentialsType;
|
|
479
510
|
updatedAt: Scalars['DateTime']['output'];
|
|
480
511
|
};
|
|
@@ -680,6 +711,7 @@ export type SafeCredentials = ICredentials & {
|
|
|
680
711
|
createdAt: Scalars['DateTime']['output'];
|
|
681
712
|
description: Scalars['String']['output'];
|
|
682
713
|
id: Scalars['ID']['output'];
|
|
714
|
+
systemCredentials?: Maybe<Scalars['Boolean']['output']>;
|
|
683
715
|
type: CredentialsType;
|
|
684
716
|
updatedAt: Scalars['DateTime']['output'];
|
|
685
717
|
};
|
|
@@ -870,8 +902,8 @@ export type UpdateStateMachineConfigWithStateInput = {
|
|
|
870
902
|
on?: InputMaybe<Array<StateMachineConfigStatesOnInput>>;
|
|
871
903
|
stateId: Scalars['ID']['input'];
|
|
872
904
|
};
|
|
873
|
-
export type AgentFragment = Pick<Agent, 'id' | 'name' | 'email' | 'emailVerified' | 'picture' | 'apps' | 'roles' | 'cognitoUserStatus' | 'createdAt' | 'updatedAt'>;
|
|
874
|
-
export type ApiKeyFragment = (Pick<ApiKeyAgent, 'token'> & {
|
|
905
|
+
export type AgentFragment = Pick<Agent, 'id' | 'name' | 'email' | 'emailVerified' | 'picture' | 'apps' | 'roles' | 'cognitoUserStatus' | 'systemAgent' | 'createdAt' | 'updatedAt'>;
|
|
906
|
+
export type ApiKeyFragment = (Pick<ApiKeyAgent, 'email' | 'password' | 'token'> & {
|
|
875
907
|
user: AgentFragment;
|
|
876
908
|
});
|
|
877
909
|
export type GetMeQueryVariables = Exact<{
|
|
@@ -922,6 +954,12 @@ export type CreateApiKeyAgentMutationVariables = Exact<{
|
|
|
922
954
|
export type CreateApiKeyAgentMutation = {
|
|
923
955
|
createApiKeyAgent?: Maybe<ApiKeyFragment>;
|
|
924
956
|
};
|
|
957
|
+
export type CreateSystemApiKeyAgentMutationVariables = Exact<{
|
|
958
|
+
input: CreateApiKeyAgentInput;
|
|
959
|
+
}>;
|
|
960
|
+
export type CreateSystemApiKeyAgentMutation = {
|
|
961
|
+
createSystemApiKeyAgent?: Maybe<ApiKeyFragment>;
|
|
962
|
+
};
|
|
925
963
|
export type UpdateAgentMutationVariables = Exact<{
|
|
926
964
|
input: UpdateAgentInput;
|
|
927
965
|
}>;
|
|
@@ -934,6 +972,12 @@ export type RemoveAgentMutationVariables = Exact<{
|
|
|
934
972
|
export type RemoveAgentMutation = {
|
|
935
973
|
removeAgent?: Maybe<AgentFragment>;
|
|
936
974
|
};
|
|
975
|
+
export type RemoveSystemApiKeyAgentMutationVariables = Exact<{
|
|
976
|
+
input: RemoveAgentInput;
|
|
977
|
+
}>;
|
|
978
|
+
export type RemoveSystemApiKeyAgentMutation = {
|
|
979
|
+
removeSystemApiKeyAgent?: Maybe<ApiKeyFragment>;
|
|
980
|
+
};
|
|
937
981
|
export type AddRoleToAgentMutationVariables = Exact<{
|
|
938
982
|
input: AddRoleToAgentInput;
|
|
939
983
|
}>;
|
|
@@ -1024,7 +1068,7 @@ export type GetAuthInfoQuery = {
|
|
|
1024
1068
|
cognitoConfig: Pick<CognitoConfig, 'region' | 'userPoolId' | 'userPoolWebClientId'>;
|
|
1025
1069
|
})>;
|
|
1026
1070
|
};
|
|
1027
|
-
export type SafeCredentialsFragment = Pick<SafeCredentials, 'id' | 'type' | 'description' | 'createdAt' | 'updatedAt'>;
|
|
1071
|
+
export type SafeCredentialsFragment = Pick<SafeCredentials, 'id' | 'type' | 'description' | 'systemCredentials' | 'createdAt' | 'updatedAt'>;
|
|
1028
1072
|
export type GetCredentialsQueryVariables = Exact<{
|
|
1029
1073
|
id: Scalars['ID']['input'];
|
|
1030
1074
|
}>;
|
|
@@ -1035,11 +1079,11 @@ export type GetCredentialsSecretQueryVariables = Exact<{
|
|
|
1035
1079
|
id: Scalars['ID']['input'];
|
|
1036
1080
|
}>;
|
|
1037
1081
|
export type GetCredentialsSecretQuery = {
|
|
1038
|
-
getCredentialsSecret?: Maybe<(Pick<ApiKeyCredentialsType, 'id' | 'type' | 'description' | 'updatedAt' | 'createdAt'> & {
|
|
1082
|
+
getCredentialsSecret?: Maybe<(Pick<ApiKeyCredentialsType, 'id' | 'type' | 'description' | 'systemCredentials' | 'updatedAt' | 'createdAt'> & {
|
|
1039
1083
|
credentials: Pick<ApiKeyCredentials, 'apiKey'>;
|
|
1040
|
-
}) | (Pick<BasicCredentialsType, 'id' | 'type' | 'description' | 'updatedAt' | 'createdAt'> & {
|
|
1084
|
+
}) | (Pick<BasicCredentialsType, 'id' | 'type' | 'description' | 'systemCredentials' | 'updatedAt' | 'createdAt'> & {
|
|
1041
1085
|
credentials: Pick<BasicCredentials, 'username' | 'password'>;
|
|
1042
|
-
}) | (Pick<OAuth2CredentialsType, 'id' | 'type' | 'description' | 'updatedAt' | 'createdAt'> & {
|
|
1086
|
+
}) | (Pick<OAuth2CredentialsType, 'id' | 'type' | 'description' | 'systemCredentials' | 'updatedAt' | 'createdAt'> & {
|
|
1043
1087
|
credentials: Pick<OAuth2Credentials, 'clientId' | 'clientSecret'>;
|
|
1044
1088
|
})>;
|
|
1045
1089
|
};
|
|
@@ -1059,6 +1103,12 @@ export type CreateCredentialsMutationVariables = Exact<{
|
|
|
1059
1103
|
export type CreateCredentialsMutation = {
|
|
1060
1104
|
createCredentials: SafeCredentialsFragment;
|
|
1061
1105
|
};
|
|
1106
|
+
export type CreateSystemCredentialsMutationVariables = Exact<{
|
|
1107
|
+
input: CreateCredentialsInput;
|
|
1108
|
+
}>;
|
|
1109
|
+
export type CreateSystemCredentialsMutation = {
|
|
1110
|
+
createSystemCredentials: SafeCredentialsFragment;
|
|
1111
|
+
};
|
|
1062
1112
|
export type UpdateCredentialsMutationVariables = Exact<{
|
|
1063
1113
|
input: UpdateCredentialsInput;
|
|
1064
1114
|
}>;
|
|
@@ -1071,6 +1121,12 @@ export type RemoveCredentialsMutationVariables = Exact<{
|
|
|
1071
1121
|
export type RemoveCredentialsMutation = {
|
|
1072
1122
|
removeCredentials?: Maybe<SafeCredentialsFragment>;
|
|
1073
1123
|
};
|
|
1124
|
+
export type RemoveSystemCredentialsMutationVariables = Exact<{
|
|
1125
|
+
input: RemoveCredentialsInput;
|
|
1126
|
+
}>;
|
|
1127
|
+
export type RemoveSystemCredentialsMutation = {
|
|
1128
|
+
removeSystemCredentials?: Maybe<SafeCredentialsFragment>;
|
|
1129
|
+
};
|
|
1074
1130
|
export type CustomerFragment = (Pick<Customer, 'id' | 'name' | 'alternateName' | 'email' | 'phone' | 'document' | 'createdAt' | 'updatedAt'> & {
|
|
1075
1131
|
apps?: Maybe<Array<Pick<App, 'id' | 'name'>>>;
|
|
1076
1132
|
});
|
|
@@ -1311,12 +1367,12 @@ export type CreatePresignedUploadUrlMutationVariables = Exact<{
|
|
|
1311
1367
|
export type CreatePresignedUploadUrlMutation = {
|
|
1312
1368
|
createPresignedUploadUrl: Pick<CreatePresignedUploadUrl, 'method' | 'url' | 'fields' | 'cdnUrl'>;
|
|
1313
1369
|
};
|
|
1314
|
-
export declare const AgentFragmentDoc = "\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 ";
|
|
1315
|
-
export declare const ApiKeyFragmentDoc = "\n fragment apiKey on ApiKeyAgent {\n token\n user {\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 ";
|
|
1370
|
+
export declare const AgentFragmentDoc = "\n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1371
|
+
export declare const ApiKeyFragmentDoc = "\n fragment apiKey on ApiKeyAgent {\n email\n password\n token\n user {\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 systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1316
1372
|
export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
1317
1373
|
export declare const AppInstanceFragmentDoc = "\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1318
1374
|
export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1319
|
-
export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n createdAt\n updatedAt\n}\n ";
|
|
1375
|
+
export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1320
1376
|
export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1321
1377
|
export declare const CronJobFragmentDoc = "\n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
|
|
1322
1378
|
export declare const PolicyFragmentDoc = "\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
@@ -1328,17 +1384,19 @@ export declare const StateMachineConfigStateFragmentDoc = "\n fragment stateM
|
|
|
1328
1384
|
export declare const StateMachineConfigFragmentDoc = "\n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n createdAt\n updatedAt\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
1329
1385
|
export declare const StateMachineConfigConnectionFragmentDoc = "\n fragment stateMachineConfigConnection on StateMachineConfigConnection {\n nodes {\n ...stateMachineConfig\n }\n pageInfo {\n hasNext\n next\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n createdAt\n updatedAt\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
1330
1386
|
export declare const StorageFragmentDoc = "\n fragment storage on Storage {\n key\n versionId\n name\n contentType\n size\n eTag\n cdnUrl\n createdAt\n updatedAt\n}\n ";
|
|
1331
|
-
export declare const GetMeDocument = "\n query getMe {\n getMe {\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 ";
|
|
1332
|
-
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 ";
|
|
1333
|
-
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 ";
|
|
1334
|
-
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 ";
|
|
1335
|
-
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 ";
|
|
1336
|
-
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 ";
|
|
1337
|
-
export declare const CreateApiKeyAgentDocument = "\n mutation createApiKeyAgent($input: CreateApiKeyAgentInput!) {\n createApiKeyAgent(input: $input) {\n ...apiKey\n }\n}\n \n fragment apiKey on ApiKeyAgent {\n token\n user {\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 ";
|
|
1338
|
-
export declare const
|
|
1339
|
-
export declare const
|
|
1340
|
-
export declare const
|
|
1341
|
-
export declare const
|
|
1387
|
+
export declare const GetMeDocument = "\n query getMe {\n getMe {\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 systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1388
|
+
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 systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1389
|
+
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 systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1390
|
+
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 systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1391
|
+
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 systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1392
|
+
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 systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1393
|
+
export declare const CreateApiKeyAgentDocument = "\n mutation createApiKeyAgent($input: CreateApiKeyAgentInput!) {\n createApiKeyAgent(input: $input) {\n ...apiKey\n }\n}\n \n fragment apiKey on ApiKeyAgent {\n email\n password\n token\n user {\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 systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1394
|
+
export declare const CreateSystemApiKeyAgentDocument = "\n mutation createSystemApiKeyAgent($input: CreateApiKeyAgentInput!) {\n createSystemApiKeyAgent(input: $input) {\n ...apiKey\n }\n}\n \n fragment apiKey on ApiKeyAgent {\n email\n password\n token\n user {\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 systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1395
|
+
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 systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1396
|
+
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 systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1397
|
+
export declare const RemoveSystemApiKeyAgentDocument = "\n mutation removeSystemApiKeyAgent($input: RemoveAgentInput!) {\n removeSystemApiKeyAgent(input: $input) {\n ...apiKey\n }\n}\n \n fragment apiKey on ApiKeyAgent {\n email\n password\n token\n user {\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 systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1398
|
+
export declare const AddRoleToAgentDocument = "\n mutation addRoleToAgent($input: AddRoleToAgentInput!) {\n addRoleToAgent(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 systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1399
|
+
export declare const RemoveRoleFromAgentDocument = "\n mutation removeRoleFromAgent($input: RemoveRoleFromAgentInput!) {\n removeRoleFromAgent(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 systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1342
1400
|
export declare const GetAppDocument = "\n query getApp($appId: ID!, $withInstances: Boolean = false) {\n getApp(appId: $appId) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1343
1401
|
export declare const ListAppsDocument = "\n query listApps($type: AppType, $withInstances: Boolean = false) {\n listApps(type: $type) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1344
1402
|
export declare const GetAppInstanceDocument = "\n query getAppInstance($drn: ID!) {\n appInstance: getAppInstance(drn: $drn) {\n ...appInstance\n }\n app: getApp(appId: $drn) {\n ...app\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
@@ -1349,13 +1407,15 @@ export declare const RegisterAppInstanceDocument = "\n mutation registerAppIn
|
|
|
1349
1407
|
export declare const UnregisterAppInstanceDocument = "\n mutation unregisterAppInstance($input: UnregisterAppInstanceInput!) {\n unregisterAppInstance(input: $input) {\n ...appInstance\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1350
1408
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig {\n amplifyConfig\n}\n ";
|
|
1351
1409
|
export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInfo {\n authenticationEndpoint\n jwtIssuer\n loginUrl\n logoutUrl\n cognitoConfig {\n region\n userPoolId\n userPoolWebClientId\n }\n }\n}\n ";
|
|
1352
|
-
export declare const GetCredentialsDocument = "\n query getCredentials($id: ID!) {\n getCredentials(id: $id) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n createdAt\n updatedAt\n}\n ";
|
|
1353
|
-
export declare const GetCredentialsSecretDocument = "\n query getCredentialsSecret($id: ID!) {\n getCredentialsSecret(id: $id) {\n ... on ICredentials {\n id\n type\n description\n updatedAt\n createdAt\n }\n ... on BasicCredentialsType {\n credentials {\n username\n password\n }\n }\n ... on ApiKeyCredentialsType {\n credentials {\n apiKey\n }\n }\n ... on OAuth2CredentialsType {\n credentials {\n clientId\n clientSecret\n }\n }\n }\n}\n ";
|
|
1354
|
-
export declare const ListCredentialsDocument = "\n query listCredentials($type: CredentialsType) {\n listCredentials(type: $type) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n createdAt\n updatedAt\n}\n ";
|
|
1410
|
+
export declare const GetCredentialsDocument = "\n query getCredentials($id: ID!) {\n getCredentials(id: $id) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1411
|
+
export declare const GetCredentialsSecretDocument = "\n query getCredentialsSecret($id: ID!) {\n getCredentialsSecret(id: $id) {\n ... on ICredentials {\n id\n type\n description\n systemCredentials\n updatedAt\n createdAt\n }\n ... on BasicCredentialsType {\n credentials {\n username\n password\n }\n }\n ... on ApiKeyCredentialsType {\n credentials {\n apiKey\n }\n }\n ... on OAuth2CredentialsType {\n credentials {\n clientId\n clientSecret\n }\n }\n }\n}\n ";
|
|
1412
|
+
export declare const ListCredentialsDocument = "\n query listCredentials($type: CredentialsType) {\n listCredentials(type: $type) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1355
1413
|
export declare const CountCredentialsDocument = "\n query countCredentials {\n countCredentials\n}\n ";
|
|
1356
|
-
export declare const CreateCredentialsDocument = "\n mutation createCredentials($input: CreateCredentialsInput!) {\n createCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n createdAt\n updatedAt\n}\n ";
|
|
1357
|
-
export declare const
|
|
1358
|
-
export declare const
|
|
1414
|
+
export declare const CreateCredentialsDocument = "\n mutation createCredentials($input: CreateCredentialsInput!) {\n createCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1415
|
+
export declare const CreateSystemCredentialsDocument = "\n mutation createSystemCredentials($input: CreateCredentialsInput!) {\n createSystemCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1416
|
+
export declare const UpdateCredentialsDocument = "\n mutation updateCredentials($input: UpdateCredentialsInput!) {\n updateCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1417
|
+
export declare const RemoveCredentialsDocument = "\n mutation removeCredentials($input: RemoveCredentialsInput!) {\n removeCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1418
|
+
export declare const RemoveSystemCredentialsDocument = "\n mutation removeSystemCredentials($input: RemoveCredentialsInput!) {\n removeSystemCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1359
1419
|
export declare const GetCustomerDocument = "\n query getCustomer($identifier: ID!) {\n getCustomer(identifier: $identifier) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1360
1420
|
export declare const ListCustomersDocument = "\n query listCustomers($next: Base64) {\n listCustomers(next: $next) {\n nodes {\n ...customer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1361
1421
|
export declare const GetOrCreateCustomerDocument = "\n mutation getOrCreateCustomer($input: GetOrCreateCustomerInput!) {\n getOrCreateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
@@ -1401,8 +1461,10 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1401
1461
|
updateMyProfile(variables: UpdateMyProfileMutationVariables, options?: C): Promise<UpdateMyProfileMutation>;
|
|
1402
1462
|
createAgent(variables: CreateAgentMutationVariables, options?: C): Promise<CreateAgentMutation>;
|
|
1403
1463
|
createApiKeyAgent(variables: CreateApiKeyAgentMutationVariables, options?: C): Promise<CreateApiKeyAgentMutation>;
|
|
1464
|
+
createSystemApiKeyAgent(variables: CreateSystemApiKeyAgentMutationVariables, options?: C): Promise<CreateSystemApiKeyAgentMutation>;
|
|
1404
1465
|
updateAgent(variables: UpdateAgentMutationVariables, options?: C): Promise<UpdateAgentMutation>;
|
|
1405
1466
|
removeAgent(variables: RemoveAgentMutationVariables, options?: C): Promise<RemoveAgentMutation>;
|
|
1467
|
+
removeSystemApiKeyAgent(variables: RemoveSystemApiKeyAgentMutationVariables, options?: C): Promise<RemoveSystemApiKeyAgentMutation>;
|
|
1406
1468
|
addRoleToAgent(variables: AddRoleToAgentMutationVariables, options?: C): Promise<AddRoleToAgentMutation>;
|
|
1407
1469
|
removeRoleFromAgent(variables: RemoveRoleFromAgentMutationVariables, options?: C): Promise<RemoveRoleFromAgentMutation>;
|
|
1408
1470
|
getApp(variables: GetAppQueryVariables, options?: C): Promise<GetAppQuery>;
|
|
@@ -1420,8 +1482,10 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1420
1482
|
listCredentials(variables?: ListCredentialsQueryVariables, options?: C): Promise<ListCredentialsQuery>;
|
|
1421
1483
|
countCredentials(variables?: CountCredentialsQueryVariables, options?: C): Promise<CountCredentialsQuery>;
|
|
1422
1484
|
createCredentials(variables: CreateCredentialsMutationVariables, options?: C): Promise<CreateCredentialsMutation>;
|
|
1485
|
+
createSystemCredentials(variables: CreateSystemCredentialsMutationVariables, options?: C): Promise<CreateSystemCredentialsMutation>;
|
|
1423
1486
|
updateCredentials(variables: UpdateCredentialsMutationVariables, options?: C): Promise<UpdateCredentialsMutation>;
|
|
1424
1487
|
removeCredentials(variables: RemoveCredentialsMutationVariables, options?: C): Promise<RemoveCredentialsMutation>;
|
|
1488
|
+
removeSystemCredentials(variables: RemoveSystemCredentialsMutationVariables, options?: C): Promise<RemoveSystemCredentialsMutation>;
|
|
1425
1489
|
getCustomer(variables: GetCustomerQueryVariables, options?: C): Promise<GetCustomerQuery>;
|
|
1426
1490
|
listCustomers(variables?: ListCustomersQueryVariables, options?: C): Promise<ListCustomersQuery>;
|
|
1427
1491
|
getOrCreateCustomer(variables: GetOrCreateCustomerMutationVariables, options?: C): Promise<GetOrCreateCustomerMutation>;
|
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.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = void 0;
|
|
4
|
+
exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionSchemaFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = void 0;
|
|
6
6
|
var AppInstanceStatus;
|
|
7
7
|
(function (AppInstanceStatus) {
|
|
8
8
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -81,12 +81,15 @@ exports.AgentFragmentDoc = `
|
|
|
81
81
|
apps
|
|
82
82
|
roles
|
|
83
83
|
cognitoUserStatus
|
|
84
|
+
systemAgent
|
|
84
85
|
createdAt
|
|
85
86
|
updatedAt
|
|
86
87
|
}
|
|
87
88
|
`;
|
|
88
89
|
exports.ApiKeyFragmentDoc = `
|
|
89
90
|
fragment apiKey on ApiKeyAgent {
|
|
91
|
+
email
|
|
92
|
+
password
|
|
90
93
|
token
|
|
91
94
|
user {
|
|
92
95
|
...agent
|
|
@@ -134,6 +137,7 @@ exports.SafeCredentialsFragmentDoc = `
|
|
|
134
137
|
id
|
|
135
138
|
type
|
|
136
139
|
description
|
|
140
|
+
systemCredentials
|
|
137
141
|
createdAt
|
|
138
142
|
updatedAt
|
|
139
143
|
}
|
|
@@ -317,6 +321,13 @@ exports.CreateApiKeyAgentDocument = `
|
|
|
317
321
|
}
|
|
318
322
|
}
|
|
319
323
|
${exports.ApiKeyFragmentDoc}`;
|
|
324
|
+
exports.CreateSystemApiKeyAgentDocument = `
|
|
325
|
+
mutation createSystemApiKeyAgent($input: CreateApiKeyAgentInput!) {
|
|
326
|
+
createSystemApiKeyAgent(input: $input) {
|
|
327
|
+
...apiKey
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
${exports.ApiKeyFragmentDoc}`;
|
|
320
331
|
exports.UpdateAgentDocument = `
|
|
321
332
|
mutation updateAgent($input: UpdateAgentInput!) {
|
|
322
333
|
updateAgent(input: $input) {
|
|
@@ -331,6 +342,13 @@ exports.RemoveAgentDocument = `
|
|
|
331
342
|
}
|
|
332
343
|
}
|
|
333
344
|
${exports.AgentFragmentDoc}`;
|
|
345
|
+
exports.RemoveSystemApiKeyAgentDocument = `
|
|
346
|
+
mutation removeSystemApiKeyAgent($input: RemoveAgentInput!) {
|
|
347
|
+
removeSystemApiKeyAgent(input: $input) {
|
|
348
|
+
...apiKey
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
${exports.ApiKeyFragmentDoc}`;
|
|
334
352
|
exports.AddRoleToAgentDocument = `
|
|
335
353
|
mutation addRoleToAgent($input: AddRoleToAgentInput!) {
|
|
336
354
|
addRoleToAgent(input: $input) {
|
|
@@ -453,6 +471,7 @@ exports.GetCredentialsSecretDocument = `
|
|
|
453
471
|
id
|
|
454
472
|
type
|
|
455
473
|
description
|
|
474
|
+
systemCredentials
|
|
456
475
|
updatedAt
|
|
457
476
|
createdAt
|
|
458
477
|
}
|
|
@@ -495,6 +514,13 @@ exports.CreateCredentialsDocument = `
|
|
|
495
514
|
}
|
|
496
515
|
}
|
|
497
516
|
${exports.SafeCredentialsFragmentDoc}`;
|
|
517
|
+
exports.CreateSystemCredentialsDocument = `
|
|
518
|
+
mutation createSystemCredentials($input: CreateCredentialsInput!) {
|
|
519
|
+
createSystemCredentials(input: $input) {
|
|
520
|
+
...safeCredentials
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
${exports.SafeCredentialsFragmentDoc}`;
|
|
498
524
|
exports.UpdateCredentialsDocument = `
|
|
499
525
|
mutation updateCredentials($input: UpdateCredentialsInput!) {
|
|
500
526
|
updateCredentials(input: $input) {
|
|
@@ -509,6 +535,13 @@ exports.RemoveCredentialsDocument = `
|
|
|
509
535
|
}
|
|
510
536
|
}
|
|
511
537
|
${exports.SafeCredentialsFragmentDoc}`;
|
|
538
|
+
exports.RemoveSystemCredentialsDocument = `
|
|
539
|
+
mutation removeSystemCredentials($input: RemoveCredentialsInput!) {
|
|
540
|
+
removeSystemCredentials(input: $input) {
|
|
541
|
+
...safeCredentials
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
${exports.SafeCredentialsFragmentDoc}`;
|
|
512
545
|
exports.GetCustomerDocument = `
|
|
513
546
|
query getCustomer($identifier: ID!) {
|
|
514
547
|
getCustomer(identifier: $identifier) {
|
|
@@ -788,12 +821,18 @@ function getSdk(requester) {
|
|
|
788
821
|
createApiKeyAgent(variables, options) {
|
|
789
822
|
return requester(exports.CreateApiKeyAgentDocument, variables, options);
|
|
790
823
|
},
|
|
824
|
+
createSystemApiKeyAgent(variables, options) {
|
|
825
|
+
return requester(exports.CreateSystemApiKeyAgentDocument, variables, options);
|
|
826
|
+
},
|
|
791
827
|
updateAgent(variables, options) {
|
|
792
828
|
return requester(exports.UpdateAgentDocument, variables, options);
|
|
793
829
|
},
|
|
794
830
|
removeAgent(variables, options) {
|
|
795
831
|
return requester(exports.RemoveAgentDocument, variables, options);
|
|
796
832
|
},
|
|
833
|
+
removeSystemApiKeyAgent(variables, options) {
|
|
834
|
+
return requester(exports.RemoveSystemApiKeyAgentDocument, variables, options);
|
|
835
|
+
},
|
|
797
836
|
addRoleToAgent(variables, options) {
|
|
798
837
|
return requester(exports.AddRoleToAgentDocument, variables, options);
|
|
799
838
|
},
|
|
@@ -845,12 +884,18 @@ function getSdk(requester) {
|
|
|
845
884
|
createCredentials(variables, options) {
|
|
846
885
|
return requester(exports.CreateCredentialsDocument, variables, options);
|
|
847
886
|
},
|
|
887
|
+
createSystemCredentials(variables, options) {
|
|
888
|
+
return requester(exports.CreateSystemCredentialsDocument, variables, options);
|
|
889
|
+
},
|
|
848
890
|
updateCredentials(variables, options) {
|
|
849
891
|
return requester(exports.UpdateCredentialsDocument, variables, options);
|
|
850
892
|
},
|
|
851
893
|
removeCredentials(variables, options) {
|
|
852
894
|
return requester(exports.RemoveCredentialsDocument, variables, options);
|
|
853
895
|
},
|
|
896
|
+
removeSystemCredentials(variables, options) {
|
|
897
|
+
return requester(exports.RemoveSystemCredentialsDocument, variables, options);
|
|
898
|
+
},
|
|
854
899
|
getCustomer(variables, options) {
|
|
855
900
|
return requester(exports.GetCustomerDocument, variables, options);
|
|
856
901
|
},
|
|
@@ -93,6 +93,10 @@ export type Scalars = {
|
|
|
93
93
|
input: any;
|
|
94
94
|
output: any[];
|
|
95
95
|
};
|
|
96
|
+
Tag: {
|
|
97
|
+
input: string;
|
|
98
|
+
output: string;
|
|
99
|
+
};
|
|
96
100
|
Timezone: {
|
|
97
101
|
input: string;
|
|
98
102
|
output: string;
|
|
@@ -101,6 +105,10 @@ export type Scalars = {
|
|
|
101
105
|
input: string;
|
|
102
106
|
output: string;
|
|
103
107
|
};
|
|
108
|
+
VariableName: {
|
|
109
|
+
input: string;
|
|
110
|
+
output: string;
|
|
111
|
+
};
|
|
104
112
|
Void: {
|
|
105
113
|
input: void;
|
|
106
114
|
output: void;
|
|
@@ -124,7 +132,7 @@ export type CreateReclameAquiInstanceInput = {
|
|
|
124
132
|
cutoffSyncDate: Scalars['Date']['input'];
|
|
125
133
|
name: Scalars['String']['input'];
|
|
126
134
|
statusTags?: InputMaybe<ReclameAquiStatusTagsInput>;
|
|
127
|
-
tags?: InputMaybe<Array<Scalars['
|
|
135
|
+
tags?: InputMaybe<Array<Scalars['Tag']['input']>>;
|
|
128
136
|
};
|
|
129
137
|
export type ForceReSyncReclameAquiTicketInput = {
|
|
130
138
|
instanceId: Scalars['ID']['input'];
|
|
@@ -200,16 +208,16 @@ export type QueryListReclameAquiCompaniesArgs = {
|
|
|
200
208
|
credentialId: Scalars['ID']['input'];
|
|
201
209
|
};
|
|
202
210
|
export type ReclameAquiActionsTags = {
|
|
203
|
-
evaluationRequested?: Maybe<Scalars['
|
|
204
|
-
mediationAccepted?: Maybe<Scalars['
|
|
205
|
-
mediationDenied?: Maybe<Scalars['
|
|
206
|
-
mediationRequested?: Maybe<Scalars['
|
|
211
|
+
evaluationRequested?: Maybe<Scalars['Tag']['output']>;
|
|
212
|
+
mediationAccepted?: Maybe<Scalars['Tag']['output']>;
|
|
213
|
+
mediationDenied?: Maybe<Scalars['Tag']['output']>;
|
|
214
|
+
mediationRequested?: Maybe<Scalars['Tag']['output']>;
|
|
207
215
|
};
|
|
208
216
|
export type ReclameAquiActionsTagsInput = {
|
|
209
|
-
evaluationRequested?: InputMaybe<Scalars['
|
|
210
|
-
mediationAccepted?: InputMaybe<Scalars['
|
|
211
|
-
mediationDenied?: InputMaybe<Scalars['
|
|
212
|
-
mediationRequested?: InputMaybe<Scalars['
|
|
217
|
+
evaluationRequested?: InputMaybe<Scalars['Tag']['input']>;
|
|
218
|
+
mediationAccepted?: InputMaybe<Scalars['Tag']['input']>;
|
|
219
|
+
mediationDenied?: InputMaybe<Scalars['Tag']['input']>;
|
|
220
|
+
mediationRequested?: InputMaybe<Scalars['Tag']['input']>;
|
|
213
221
|
};
|
|
214
222
|
export type ReclameAquiBillingConfiguration = {
|
|
215
223
|
billingCutoffSyncDays: Scalars['Int']['output'];
|
|
@@ -231,7 +239,7 @@ export type ReclameAquiInstance = {
|
|
|
231
239
|
name: Scalars['String']['output'];
|
|
232
240
|
status?: Maybe<AppInstanceStatus>;
|
|
233
241
|
statusTags?: Maybe<ReclameAquiStatusTags>;
|
|
234
|
-
tags: Array<Scalars['
|
|
242
|
+
tags: Array<Scalars['Tag']['output']>;
|
|
235
243
|
updatedAt: Scalars['DateTime']['output'];
|
|
236
244
|
};
|
|
237
245
|
export type ReclameAquiModerationReason = {
|
|
@@ -242,28 +250,28 @@ export type ReclameAquiModerationResponse = {
|
|
|
242
250
|
success: Scalars['Boolean']['output'];
|
|
243
251
|
};
|
|
244
252
|
export type ReclameAquiStatusTags = {
|
|
245
|
-
answered?: Maybe<Scalars['
|
|
246
|
-
companyAnswer?: Maybe<Scalars['
|
|
247
|
-
consumerAnswer?: Maybe<Scalars['
|
|
248
|
-
disabledByConsumer?: Maybe<Scalars['
|
|
249
|
-
frozen?: Maybe<Scalars['
|
|
250
|
-
inactiveInReclameAqui?: Maybe<Scalars['
|
|
251
|
-
notAnswered?: Maybe<Scalars['
|
|
252
|
-
rated?: Maybe<Scalars['
|
|
253
|
-
ratedResolved?: Maybe<Scalars['
|
|
254
|
-
ratedUnresolved?: Maybe<Scalars['
|
|
253
|
+
answered?: Maybe<Scalars['Tag']['output']>;
|
|
254
|
+
companyAnswer?: Maybe<Scalars['Tag']['output']>;
|
|
255
|
+
consumerAnswer?: Maybe<Scalars['Tag']['output']>;
|
|
256
|
+
disabledByConsumer?: Maybe<Scalars['Tag']['output']>;
|
|
257
|
+
frozen?: Maybe<Scalars['Tag']['output']>;
|
|
258
|
+
inactiveInReclameAqui?: Maybe<Scalars['Tag']['output']>;
|
|
259
|
+
notAnswered?: Maybe<Scalars['Tag']['output']>;
|
|
260
|
+
rated?: Maybe<Scalars['Tag']['output']>;
|
|
261
|
+
ratedResolved?: Maybe<Scalars['Tag']['output']>;
|
|
262
|
+
ratedUnresolved?: Maybe<Scalars['Tag']['output']>;
|
|
255
263
|
};
|
|
256
264
|
export type ReclameAquiStatusTagsInput = {
|
|
257
|
-
answered?: InputMaybe<Scalars['
|
|
258
|
-
companyAnswer?: InputMaybe<Scalars['
|
|
259
|
-
consumerAnswer?: InputMaybe<Scalars['
|
|
260
|
-
disabledByConsumer?: InputMaybe<Scalars['
|
|
261
|
-
frozen?: InputMaybe<Scalars['
|
|
262
|
-
inactiveInReclameAqui?: InputMaybe<Scalars['
|
|
263
|
-
notAnswered?: InputMaybe<Scalars['
|
|
264
|
-
rated?: InputMaybe<Scalars['
|
|
265
|
-
ratedResolved?: InputMaybe<Scalars['
|
|
266
|
-
ratedUnresolved?: InputMaybe<Scalars['
|
|
265
|
+
answered?: InputMaybe<Scalars['Tag']['input']>;
|
|
266
|
+
companyAnswer?: InputMaybe<Scalars['Tag']['input']>;
|
|
267
|
+
consumerAnswer?: InputMaybe<Scalars['Tag']['input']>;
|
|
268
|
+
disabledByConsumer?: InputMaybe<Scalars['Tag']['input']>;
|
|
269
|
+
frozen?: InputMaybe<Scalars['Tag']['input']>;
|
|
270
|
+
inactiveInReclameAqui?: InputMaybe<Scalars['Tag']['input']>;
|
|
271
|
+
notAnswered?: InputMaybe<Scalars['Tag']['input']>;
|
|
272
|
+
rated?: InputMaybe<Scalars['Tag']['input']>;
|
|
273
|
+
ratedResolved?: InputMaybe<Scalars['Tag']['input']>;
|
|
274
|
+
ratedUnresolved?: InputMaybe<Scalars['Tag']['input']>;
|
|
267
275
|
};
|
|
268
276
|
export type ReclameAquiTicketEvaluationResponse = {
|
|
269
277
|
success: Scalars['Boolean']['output'];
|
|
@@ -323,7 +331,7 @@ export type UpdateReclameAquiInstanceInput = {
|
|
|
323
331
|
id: Scalars['ID']['input'];
|
|
324
332
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
325
333
|
statusTags?: InputMaybe<ReclameAquiStatusTagsInput>;
|
|
326
|
-
tags?: InputMaybe<Array<Scalars['
|
|
334
|
+
tags?: InputMaybe<Array<Scalars['Tag']['input']>>;
|
|
327
335
|
};
|
|
328
336
|
export type ReclameAquiInstanceFragment = (Pick<ReclameAquiInstance, 'id' | 'name' | 'credentialId' | 'companyId' | 'cronJobId' | 'status' | 'failingReason' | 'tags' | 'cutoffSyncDate' | 'createdAt' | 'updatedAt'> & {
|
|
329
337
|
statusTags?: Maybe<Pick<ReclameAquiStatusTags, 'notAnswered' | 'answered' | 'consumerAnswer' | 'companyAnswer' | 'rated' | 'frozen' | 'disabledByConsumer' | 'inactiveInReclameAqui' | 'ratedResolved' | 'ratedUnresolved'>>;
|