@droz-js/sdk 0.6.3 → 0.6.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/drozchat-ws.d.ts +2 -2
- package/src/drozchat.d.ts +2 -2
- package/src/nucleus.d.ts +12 -0
- package/src/reclameaqui.d.ts +3 -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 +89 -25
- package/src/sdks/nucleus.js +45 -2
- package/src/sdks/reclameaqui.d.ts +51 -31
- package/src/sdks/reclameaqui.js +11 -1
- 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,7 +902,7 @@ 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'>;
|
|
905
|
+
export type AgentFragment = Pick<Agent, 'id' | 'name' | 'email' | 'emailVerified' | 'picture' | 'apps' | 'roles' | 'cognitoUserStatus' | 'systemAgent' | 'createdAt' | 'updatedAt'>;
|
|
874
906
|
export type ApiKeyFragment = (Pick<ApiKeyAgent, 'token'> & {
|
|
875
907
|
user: AgentFragment;
|
|
876
908
|
});
|
|
@@ -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 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 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 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 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,6 +81,7 @@ exports.AgentFragmentDoc = `
|
|
|
81
81
|
apps
|
|
82
82
|
roles
|
|
83
83
|
cognitoUserStatus
|
|
84
|
+
systemAgent
|
|
84
85
|
createdAt
|
|
85
86
|
updatedAt
|
|
86
87
|
}
|
|
@@ -134,6 +135,7 @@ exports.SafeCredentialsFragmentDoc = `
|
|
|
134
135
|
id
|
|
135
136
|
type
|
|
136
137
|
description
|
|
138
|
+
systemCredentials
|
|
137
139
|
createdAt
|
|
138
140
|
updatedAt
|
|
139
141
|
}
|
|
@@ -317,6 +319,13 @@ exports.CreateApiKeyAgentDocument = `
|
|
|
317
319
|
}
|
|
318
320
|
}
|
|
319
321
|
${exports.ApiKeyFragmentDoc}`;
|
|
322
|
+
exports.CreateSystemApiKeyAgentDocument = `
|
|
323
|
+
mutation createSystemApiKeyAgent($input: CreateApiKeyAgentInput!) {
|
|
324
|
+
createSystemApiKeyAgent(input: $input) {
|
|
325
|
+
...apiKey
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
${exports.ApiKeyFragmentDoc}`;
|
|
320
329
|
exports.UpdateAgentDocument = `
|
|
321
330
|
mutation updateAgent($input: UpdateAgentInput!) {
|
|
322
331
|
updateAgent(input: $input) {
|
|
@@ -331,6 +340,13 @@ exports.RemoveAgentDocument = `
|
|
|
331
340
|
}
|
|
332
341
|
}
|
|
333
342
|
${exports.AgentFragmentDoc}`;
|
|
343
|
+
exports.RemoveSystemApiKeyAgentDocument = `
|
|
344
|
+
mutation removeSystemApiKeyAgent($input: RemoveAgentInput!) {
|
|
345
|
+
removeSystemApiKeyAgent(input: $input) {
|
|
346
|
+
...apiKey
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
${exports.ApiKeyFragmentDoc}`;
|
|
334
350
|
exports.AddRoleToAgentDocument = `
|
|
335
351
|
mutation addRoleToAgent($input: AddRoleToAgentInput!) {
|
|
336
352
|
addRoleToAgent(input: $input) {
|
|
@@ -453,6 +469,7 @@ exports.GetCredentialsSecretDocument = `
|
|
|
453
469
|
id
|
|
454
470
|
type
|
|
455
471
|
description
|
|
472
|
+
systemCredentials
|
|
456
473
|
updatedAt
|
|
457
474
|
createdAt
|
|
458
475
|
}
|
|
@@ -495,6 +512,13 @@ exports.CreateCredentialsDocument = `
|
|
|
495
512
|
}
|
|
496
513
|
}
|
|
497
514
|
${exports.SafeCredentialsFragmentDoc}`;
|
|
515
|
+
exports.CreateSystemCredentialsDocument = `
|
|
516
|
+
mutation createSystemCredentials($input: CreateCredentialsInput!) {
|
|
517
|
+
createSystemCredentials(input: $input) {
|
|
518
|
+
...safeCredentials
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
${exports.SafeCredentialsFragmentDoc}`;
|
|
498
522
|
exports.UpdateCredentialsDocument = `
|
|
499
523
|
mutation updateCredentials($input: UpdateCredentialsInput!) {
|
|
500
524
|
updateCredentials(input: $input) {
|
|
@@ -509,6 +533,13 @@ exports.RemoveCredentialsDocument = `
|
|
|
509
533
|
}
|
|
510
534
|
}
|
|
511
535
|
${exports.SafeCredentialsFragmentDoc}`;
|
|
536
|
+
exports.RemoveSystemCredentialsDocument = `
|
|
537
|
+
mutation removeSystemCredentials($input: RemoveCredentialsInput!) {
|
|
538
|
+
removeSystemCredentials(input: $input) {
|
|
539
|
+
...safeCredentials
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
${exports.SafeCredentialsFragmentDoc}`;
|
|
512
543
|
exports.GetCustomerDocument = `
|
|
513
544
|
query getCustomer($identifier: ID!) {
|
|
514
545
|
getCustomer(identifier: $identifier) {
|
|
@@ -788,12 +819,18 @@ function getSdk(requester) {
|
|
|
788
819
|
createApiKeyAgent(variables, options) {
|
|
789
820
|
return requester(exports.CreateApiKeyAgentDocument, variables, options);
|
|
790
821
|
},
|
|
822
|
+
createSystemApiKeyAgent(variables, options) {
|
|
823
|
+
return requester(exports.CreateSystemApiKeyAgentDocument, variables, options);
|
|
824
|
+
},
|
|
791
825
|
updateAgent(variables, options) {
|
|
792
826
|
return requester(exports.UpdateAgentDocument, variables, options);
|
|
793
827
|
},
|
|
794
828
|
removeAgent(variables, options) {
|
|
795
829
|
return requester(exports.RemoveAgentDocument, variables, options);
|
|
796
830
|
},
|
|
831
|
+
removeSystemApiKeyAgent(variables, options) {
|
|
832
|
+
return requester(exports.RemoveSystemApiKeyAgentDocument, variables, options);
|
|
833
|
+
},
|
|
797
834
|
addRoleToAgent(variables, options) {
|
|
798
835
|
return requester(exports.AddRoleToAgentDocument, variables, options);
|
|
799
836
|
},
|
|
@@ -845,12 +882,18 @@ function getSdk(requester) {
|
|
|
845
882
|
createCredentials(variables, options) {
|
|
846
883
|
return requester(exports.CreateCredentialsDocument, variables, options);
|
|
847
884
|
},
|
|
885
|
+
createSystemCredentials(variables, options) {
|
|
886
|
+
return requester(exports.CreateSystemCredentialsDocument, variables, options);
|
|
887
|
+
},
|
|
848
888
|
updateCredentials(variables, options) {
|
|
849
889
|
return requester(exports.UpdateCredentialsDocument, variables, options);
|
|
850
890
|
},
|
|
851
891
|
removeCredentials(variables, options) {
|
|
852
892
|
return requester(exports.RemoveCredentialsDocument, variables, options);
|
|
853
893
|
},
|
|
894
|
+
removeSystemCredentials(variables, options) {
|
|
895
|
+
return requester(exports.RemoveSystemCredentialsDocument, variables, options);
|
|
896
|
+
},
|
|
854
897
|
getCustomer(variables, options) {
|
|
855
898
|
return requester(exports.GetCustomerDocument, variables, options);
|
|
856
899
|
},
|
|
@@ -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'];
|
|
@@ -184,6 +192,7 @@ export type Query = {
|
|
|
184
192
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
185
193
|
getReclameAquiBillingConfiguration: ReclameAquiBillingConfiguration;
|
|
186
194
|
getReclameAquiInstance?: Maybe<ReclameAquiInstance>;
|
|
195
|
+
getReclameAquiInstanceForSessionId?: Maybe<ReclameAquiInstance>;
|
|
187
196
|
listReclameAquiCompanies: Array<ReclameAquiCompany>;
|
|
188
197
|
listReclameAquiInstances: Array<ReclameAquiInstance>;
|
|
189
198
|
listReclameAquiModerationReasons: Array<ReclameAquiModerationReason>;
|
|
@@ -192,20 +201,23 @@ export type Query = {
|
|
|
192
201
|
export type QueryGetReclameAquiInstanceArgs = {
|
|
193
202
|
id: Scalars['ID']['input'];
|
|
194
203
|
};
|
|
204
|
+
export type QueryGetReclameAquiInstanceForSessionIdArgs = {
|
|
205
|
+
sessionId: Scalars['ID']['input'];
|
|
206
|
+
};
|
|
195
207
|
export type QueryListReclameAquiCompaniesArgs = {
|
|
196
208
|
credentialId: Scalars['ID']['input'];
|
|
197
209
|
};
|
|
198
210
|
export type ReclameAquiActionsTags = {
|
|
199
|
-
evaluationRequested?: Maybe<Scalars['
|
|
200
|
-
mediationAccepted?: Maybe<Scalars['
|
|
201
|
-
mediationDenied?: Maybe<Scalars['
|
|
202
|
-
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']>;
|
|
203
215
|
};
|
|
204
216
|
export type ReclameAquiActionsTagsInput = {
|
|
205
|
-
evaluationRequested?: InputMaybe<Scalars['
|
|
206
|
-
mediationAccepted?: InputMaybe<Scalars['
|
|
207
|
-
mediationDenied?: InputMaybe<Scalars['
|
|
208
|
-
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']>;
|
|
209
221
|
};
|
|
210
222
|
export type ReclameAquiBillingConfiguration = {
|
|
211
223
|
billingCutoffSyncDays: Scalars['Int']['output'];
|
|
@@ -227,7 +239,7 @@ export type ReclameAquiInstance = {
|
|
|
227
239
|
name: Scalars['String']['output'];
|
|
228
240
|
status?: Maybe<AppInstanceStatus>;
|
|
229
241
|
statusTags?: Maybe<ReclameAquiStatusTags>;
|
|
230
|
-
tags: Array<Scalars['
|
|
242
|
+
tags: Array<Scalars['Tag']['output']>;
|
|
231
243
|
updatedAt: Scalars['DateTime']['output'];
|
|
232
244
|
};
|
|
233
245
|
export type ReclameAquiModerationReason = {
|
|
@@ -238,28 +250,28 @@ export type ReclameAquiModerationResponse = {
|
|
|
238
250
|
success: Scalars['Boolean']['output'];
|
|
239
251
|
};
|
|
240
252
|
export type ReclameAquiStatusTags = {
|
|
241
|
-
answered?: Maybe<Scalars['
|
|
242
|
-
companyAnswer?: Maybe<Scalars['
|
|
243
|
-
consumerAnswer?: Maybe<Scalars['
|
|
244
|
-
disabledByConsumer?: Maybe<Scalars['
|
|
245
|
-
frozen?: Maybe<Scalars['
|
|
246
|
-
inactiveInReclameAqui?: Maybe<Scalars['
|
|
247
|
-
notAnswered?: Maybe<Scalars['
|
|
248
|
-
rated?: Maybe<Scalars['
|
|
249
|
-
ratedResolved?: Maybe<Scalars['
|
|
250
|
-
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']>;
|
|
251
263
|
};
|
|
252
264
|
export type ReclameAquiStatusTagsInput = {
|
|
253
|
-
answered?: InputMaybe<Scalars['
|
|
254
|
-
companyAnswer?: InputMaybe<Scalars['
|
|
255
|
-
consumerAnswer?: InputMaybe<Scalars['
|
|
256
|
-
disabledByConsumer?: InputMaybe<Scalars['
|
|
257
|
-
frozen?: InputMaybe<Scalars['
|
|
258
|
-
inactiveInReclameAqui?: InputMaybe<Scalars['
|
|
259
|
-
notAnswered?: InputMaybe<Scalars['
|
|
260
|
-
rated?: InputMaybe<Scalars['
|
|
261
|
-
ratedResolved?: InputMaybe<Scalars['
|
|
262
|
-
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']>;
|
|
263
275
|
};
|
|
264
276
|
export type ReclameAquiTicketEvaluationResponse = {
|
|
265
277
|
success: Scalars['Boolean']['output'];
|
|
@@ -319,7 +331,7 @@ export type UpdateReclameAquiInstanceInput = {
|
|
|
319
331
|
id: Scalars['ID']['input'];
|
|
320
332
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
321
333
|
statusTags?: InputMaybe<ReclameAquiStatusTagsInput>;
|
|
322
|
-
tags?: InputMaybe<Array<Scalars['
|
|
334
|
+
tags?: InputMaybe<Array<Scalars['Tag']['input']>>;
|
|
323
335
|
};
|
|
324
336
|
export type ReclameAquiInstanceFragment = (Pick<ReclameAquiInstance, 'id' | 'name' | 'credentialId' | 'companyId' | 'cronJobId' | 'status' | 'failingReason' | 'tags' | 'cutoffSyncDate' | 'createdAt' | 'updatedAt'> & {
|
|
325
337
|
statusTags?: Maybe<Pick<ReclameAquiStatusTags, 'notAnswered' | 'answered' | 'consumerAnswer' | 'companyAnswer' | 'rated' | 'frozen' | 'disabledByConsumer' | 'inactiveInReclameAqui' | 'ratedResolved' | 'ratedUnresolved'>>;
|
|
@@ -331,6 +343,12 @@ export type GetReclameAquiInstanceQueryVariables = Exact<{
|
|
|
331
343
|
export type GetReclameAquiInstanceQuery = {
|
|
332
344
|
getReclameAquiInstance?: Maybe<ReclameAquiInstanceFragment>;
|
|
333
345
|
};
|
|
346
|
+
export type GetReclameAquiInstanceForSessionIdQueryVariables = Exact<{
|
|
347
|
+
sessionId: Scalars['ID']['input'];
|
|
348
|
+
}>;
|
|
349
|
+
export type GetReclameAquiInstanceForSessionIdQuery = {
|
|
350
|
+
getReclameAquiInstanceForSessionId?: Maybe<ReclameAquiInstanceFragment>;
|
|
351
|
+
};
|
|
334
352
|
export type ListReclameAquiInstancesQueryVariables = Exact<{
|
|
335
353
|
[key: string]: never;
|
|
336
354
|
}>;
|
|
@@ -391,6 +409,7 @@ export type ForceReSyncReclameAquiTicketMutationVariables = Exact<{
|
|
|
391
409
|
export type ForceReSyncReclameAquiTicketMutation = Pick<Mutation, 'forceReSyncReclameAquiTicket'>;
|
|
392
410
|
export declare const ReclameAquiInstanceFragmentDoc = "\n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n cutoffSyncDate\n statusTags {\n notAnswered\n answered\n consumerAnswer\n companyAnswer\n rated\n frozen\n disabledByConsumer\n inactiveInReclameAqui\n ratedResolved\n ratedUnresolved\n }\n actionsTags {\n mediationRequested\n mediationDenied\n mediationAccepted\n evaluationRequested\n }\n createdAt\n updatedAt\n}\n ";
|
|
393
411
|
export declare const GetReclameAquiInstanceDocument = "\n query getReclameAquiInstance($id: ID!) {\n getReclameAquiInstance(id: $id) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n cutoffSyncDate\n statusTags {\n notAnswered\n answered\n consumerAnswer\n companyAnswer\n rated\n frozen\n disabledByConsumer\n inactiveInReclameAqui\n ratedResolved\n ratedUnresolved\n }\n actionsTags {\n mediationRequested\n mediationDenied\n mediationAccepted\n evaluationRequested\n }\n createdAt\n updatedAt\n}\n ";
|
|
412
|
+
export declare const GetReclameAquiInstanceForSessionIdDocument = "\n query getReclameAquiInstanceForSessionId($sessionId: ID!) {\n getReclameAquiInstanceForSessionId(sessionId: $sessionId) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n cutoffSyncDate\n statusTags {\n notAnswered\n answered\n consumerAnswer\n companyAnswer\n rated\n frozen\n disabledByConsumer\n inactiveInReclameAqui\n ratedResolved\n ratedUnresolved\n }\n actionsTags {\n mediationRequested\n mediationDenied\n mediationAccepted\n evaluationRequested\n }\n createdAt\n updatedAt\n}\n ";
|
|
394
413
|
export declare const ListReclameAquiInstancesDocument = "\n query listReclameAquiInstances {\n listReclameAquiInstances {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n cutoffSyncDate\n statusTags {\n notAnswered\n answered\n consumerAnswer\n companyAnswer\n rated\n frozen\n disabledByConsumer\n inactiveInReclameAqui\n ratedResolved\n ratedUnresolved\n }\n actionsTags {\n mediationRequested\n mediationDenied\n mediationAccepted\n evaluationRequested\n }\n createdAt\n updatedAt\n}\n ";
|
|
395
414
|
export declare const ListReclameAquiCompaniesDocument = "\n query listReclameAquiCompanies($credentialId: ID!) {\n listReclameAquiCompanies(credentialId: $credentialId) {\n companyId\n name\n }\n}\n ";
|
|
396
415
|
export declare const ListReclameAquiModerationReasonsDocument = "\n query listReclameAquiModerationReasons {\n listReclameAquiModerationReasons {\n code\n description\n }\n}\n ";
|
|
@@ -404,6 +423,7 @@ export declare const ForceReSyncReclameAquiTicketDocument = "\n mutation forc
|
|
|
404
423
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
405
424
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
406
425
|
getReclameAquiInstance(variables: GetReclameAquiInstanceQueryVariables, options?: C): Promise<GetReclameAquiInstanceQuery>;
|
|
426
|
+
getReclameAquiInstanceForSessionId(variables: GetReclameAquiInstanceForSessionIdQueryVariables, options?: C): Promise<GetReclameAquiInstanceForSessionIdQuery>;
|
|
407
427
|
listReclameAquiInstances(variables?: ListReclameAquiInstancesQueryVariables, options?: C): Promise<ListReclameAquiInstancesQuery>;
|
|
408
428
|
listReclameAquiCompanies(variables: ListReclameAquiCompaniesQueryVariables, options?: C): Promise<ListReclameAquiCompaniesQuery>;
|
|
409
429
|
listReclameAquiModerationReasons(variables?: ListReclameAquiModerationReasonsQueryVariables, options?: C): Promise<ListReclameAquiModerationReasonsQuery>;
|