@droz-js/sdk 0.2.9 → 0.2.11
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/chatwidget-ws.d.ts +30 -0
- package/src/chatwidget-ws.js +21 -0
- package/src/chatwidget.d.ts +31 -0
- package/src/chatwidget.js +21 -0
- package/src/client/helpers.js +1 -1
- package/src/client/http.d.ts +6 -3
- package/src/client/http.js +15 -4
- package/src/client/ws.js +2 -1
- package/src/drozbot.d.ts +9 -3
- package/src/drozchat-ws.d.ts +9 -0
- package/src/drozchat.d.ts +12 -3
- package/src/droznexo.d.ts +15 -15
- package/src/mercadolivre.d.ts +3 -3
- package/src/nucleus.d.ts +24 -3
- package/src/reclameaqui.d.ts +3 -3
- package/src/sdks/chatwidget.d.ts +248 -0
- package/src/sdks/chatwidget.js +118 -0
- package/src/sdks/drozbot.d.ts +49 -0
- package/src/sdks/drozbot.js +23 -1
- package/src/sdks/drozchat.d.ts +79 -23
- package/src/sdks/drozchat.js +47 -6
- package/src/sdks/droznexo.d.ts +70 -63
- package/src/sdks/droznexo.js +48 -46
- package/src/sdks/nucleus.d.ts +156 -32
- package/src/sdks/nucleus.js +101 -1
- package/src/zendesk.d.ts +3 -3
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -82,14 +82,31 @@ export type Scalars = {
|
|
|
82
82
|
output: void;
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
|
+
export type Agent = {
|
|
86
|
+
apps?: Maybe<Scalars['Set']['output']>;
|
|
87
|
+
cognitoUserStatus?: Maybe<Scalars['String']['output']>;
|
|
88
|
+
createdAt: Scalars['DateTime']['output'];
|
|
89
|
+
email: Scalars['EmailAddress']['output'];
|
|
90
|
+
emailVerified: Scalars['Boolean']['output'];
|
|
91
|
+
id: Scalars['ID']['output'];
|
|
92
|
+
name: Scalars['String']['output'];
|
|
93
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
94
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
95
|
+
};
|
|
96
|
+
export type AgentConnection = {
|
|
97
|
+
nodes: Array<Agent>;
|
|
98
|
+
pageInfo: PageInfo;
|
|
99
|
+
};
|
|
85
100
|
export type ApiKeyCredentials = {
|
|
86
101
|
apiKey: Scalars['String']['output'];
|
|
87
102
|
};
|
|
88
103
|
export type ApiKeyCredentialsType = ICredentials & {
|
|
104
|
+
createdAt: Scalars['DateTime']['output'];
|
|
89
105
|
credentials: ApiKeyCredentials;
|
|
90
106
|
description: Scalars['String']['output'];
|
|
91
107
|
id: Scalars['ID']['output'];
|
|
92
108
|
type: CredentialsType;
|
|
109
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
93
110
|
};
|
|
94
111
|
export type App = {
|
|
95
112
|
description?: Maybe<Scalars['String']['output']>;
|
|
@@ -102,9 +119,11 @@ export type AppInstance = {
|
|
|
102
119
|
app: App;
|
|
103
120
|
appId: Scalars['ID']['output'];
|
|
104
121
|
appType: AppType;
|
|
122
|
+
createdAt: Scalars['DateTime']['output'];
|
|
105
123
|
drn: Scalars['DRN']['output'];
|
|
106
124
|
name: Scalars['String']['output'];
|
|
107
125
|
transitions?: Maybe<Array<Scalars['String']['output']>>;
|
|
126
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
108
127
|
};
|
|
109
128
|
export declare enum AppType {
|
|
110
129
|
Regular = "Regular",
|
|
@@ -122,16 +141,22 @@ export type BasicCredentials = {
|
|
|
122
141
|
username: Scalars['String']['output'];
|
|
123
142
|
};
|
|
124
143
|
export type BasicCredentialsType = ICredentials & {
|
|
144
|
+
createdAt: Scalars['DateTime']['output'];
|
|
125
145
|
credentials: BasicCredentials;
|
|
126
146
|
description: Scalars['String']['output'];
|
|
127
147
|
id: Scalars['ID']['output'];
|
|
128
148
|
type: CredentialsType;
|
|
149
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
129
150
|
};
|
|
130
151
|
export type CognitoConfig = {
|
|
131
152
|
region: Scalars['String']['output'];
|
|
132
153
|
userPoolId: Scalars['String']['output'];
|
|
133
154
|
userPoolWebClientId: Scalars['String']['output'];
|
|
134
155
|
};
|
|
156
|
+
export type CreateAgentInput = {
|
|
157
|
+
email: Scalars['EmailAddress']['input'];
|
|
158
|
+
name: Scalars['String']['input'];
|
|
159
|
+
};
|
|
135
160
|
export type CreateCredentialsInput = {
|
|
136
161
|
credentials: Scalars['JSON']['input'];
|
|
137
162
|
description: Scalars['String']['input'];
|
|
@@ -182,11 +207,14 @@ export type EditStateMachineConfigInput = {
|
|
|
182
207
|
id: Scalars['ID']['input'];
|
|
183
208
|
};
|
|
184
209
|
export type ICredentials = {
|
|
210
|
+
createdAt: Scalars['DateTime']['output'];
|
|
185
211
|
description: Scalars['String']['output'];
|
|
186
212
|
id: Scalars['ID']['output'];
|
|
187
213
|
type: CredentialsType;
|
|
214
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
188
215
|
};
|
|
189
216
|
export type Mutation = {
|
|
217
|
+
createAgent?: Maybe<Agent>;
|
|
190
218
|
createCredentials: SafeCredentials;
|
|
191
219
|
createCronJob: CronJob;
|
|
192
220
|
createStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
@@ -194,17 +222,22 @@ export type Mutation = {
|
|
|
194
222
|
editStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
195
223
|
patchSessionData?: Maybe<Scalars['JSON']['output']>;
|
|
196
224
|
publishStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
225
|
+
removeAgent?: Maybe<Agent>;
|
|
197
226
|
removeCredentials?: Maybe<SafeCredentials>;
|
|
198
227
|
removeCronJob: CronJob;
|
|
199
228
|
removeStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
200
229
|
removeStateMachineConfigState?: Maybe<StateMachineConfig>;
|
|
201
230
|
setSessionData?: Maybe<Scalars['JSON']['output']>;
|
|
231
|
+
updateAgent?: Maybe<Agent>;
|
|
202
232
|
updateCredentials: SafeCredentials;
|
|
203
233
|
updateCronJob: CronJob;
|
|
204
234
|
updateStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
205
235
|
updateStateMachineConfigState?: Maybe<StateMachineConfig>;
|
|
206
236
|
version?: Maybe<Scalars['String']['output']>;
|
|
207
237
|
};
|
|
238
|
+
export type MutationCreateAgentArgs = {
|
|
239
|
+
input: CreateAgentInput;
|
|
240
|
+
};
|
|
208
241
|
export type MutationCreateCredentialsArgs = {
|
|
209
242
|
input: CreateCredentialsInput;
|
|
210
243
|
};
|
|
@@ -226,6 +259,9 @@ export type MutationPatchSessionDataArgs = {
|
|
|
226
259
|
export type MutationPublishStateMachineConfigArgs = {
|
|
227
260
|
input: PublishStateMachineConfigInput;
|
|
228
261
|
};
|
|
262
|
+
export type MutationRemoveAgentArgs = {
|
|
263
|
+
input: RemoveAgentInput;
|
|
264
|
+
};
|
|
229
265
|
export type MutationRemoveCredentialsArgs = {
|
|
230
266
|
input?: InputMaybe<RemoveCredentialsInput>;
|
|
231
267
|
};
|
|
@@ -241,6 +277,9 @@ export type MutationRemoveStateMachineConfigStateArgs = {
|
|
|
241
277
|
export type MutationSetSessionDataArgs = {
|
|
242
278
|
input: SetSessionDataInput;
|
|
243
279
|
};
|
|
280
|
+
export type MutationUpdateAgentArgs = {
|
|
281
|
+
input: UpdateAgentInput;
|
|
282
|
+
};
|
|
244
283
|
export type MutationUpdateCredentialsArgs = {
|
|
245
284
|
input: UpdateCredentialsInput;
|
|
246
285
|
};
|
|
@@ -258,10 +297,12 @@ export type OAuth2Credentials = {
|
|
|
258
297
|
clientSecret: Scalars['String']['output'];
|
|
259
298
|
};
|
|
260
299
|
export type OAuth2CredentialsType = ICredentials & {
|
|
300
|
+
createdAt: Scalars['DateTime']['output'];
|
|
261
301
|
credentials: OAuth2Credentials;
|
|
262
302
|
description: Scalars['String']['output'];
|
|
263
303
|
id: Scalars['ID']['output'];
|
|
264
304
|
type: CredentialsType;
|
|
305
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
265
306
|
};
|
|
266
307
|
export type PageInfo = {
|
|
267
308
|
hasNext: Scalars['Boolean']['output'];
|
|
@@ -289,8 +330,10 @@ export type PublishStateMachineConfigInput = {
|
|
|
289
330
|
versionId: Scalars['ID']['input'];
|
|
290
331
|
};
|
|
291
332
|
export type Query = {
|
|
333
|
+
amplifyConfig?: Maybe<Scalars['JSON']['output']>;
|
|
292
334
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
293
335
|
authInfo?: Maybe<AuthInfo>;
|
|
336
|
+
getAgent?: Maybe<Agent>;
|
|
294
337
|
getApp?: Maybe<App>;
|
|
295
338
|
getCredentials?: Maybe<SafeCredentials>;
|
|
296
339
|
getCredentialsSecret?: Maybe<Credentials>;
|
|
@@ -299,6 +342,7 @@ export type Query = {
|
|
|
299
342
|
getSessionData?: Maybe<Scalars['JSON']['output']>;
|
|
300
343
|
getStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
301
344
|
getXStateMachineConfig?: Maybe<Scalars['JSON']['output']>;
|
|
345
|
+
listAgents: AgentConnection;
|
|
302
346
|
listAppInstances: Array<AppInstance>;
|
|
303
347
|
listApps: Array<App>;
|
|
304
348
|
listCredentials: Array<SafeCredentials>;
|
|
@@ -310,6 +354,9 @@ export type Query = {
|
|
|
310
354
|
resolveSession?: Maybe<Session>;
|
|
311
355
|
version?: Maybe<Scalars['String']['output']>;
|
|
312
356
|
};
|
|
357
|
+
export type QueryGetAgentArgs = {
|
|
358
|
+
id: Scalars['ID']['input'];
|
|
359
|
+
};
|
|
313
360
|
export type QueryGetAppArgs = {
|
|
314
361
|
appId: Scalars['ID']['input'];
|
|
315
362
|
};
|
|
@@ -334,6 +381,9 @@ export type QueryGetXStateMachineConfigArgs = {
|
|
|
334
381
|
id: Scalars['ID']['input'];
|
|
335
382
|
versionId: Scalars['ID']['input'];
|
|
336
383
|
};
|
|
384
|
+
export type QueryListAgentsArgs = {
|
|
385
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
386
|
+
};
|
|
337
387
|
export type QueryListAppInstancesArgs = {
|
|
338
388
|
appId?: InputMaybe<Scalars['ID']['input']>;
|
|
339
389
|
appType?: InputMaybe<AppType>;
|
|
@@ -355,6 +405,9 @@ export type QueryResolveSessionArgs = {
|
|
|
355
405
|
triggerDrn: Scalars['DRN']['input'];
|
|
356
406
|
userId?: InputMaybe<Scalars['ID']['input']>;
|
|
357
407
|
};
|
|
408
|
+
export type RemoveAgentInput = {
|
|
409
|
+
id: Scalars['ID']['input'];
|
|
410
|
+
};
|
|
358
411
|
export type RemoveCredentialsInput = {
|
|
359
412
|
id: Scalars['ID']['input'];
|
|
360
413
|
};
|
|
@@ -371,9 +424,11 @@ export type RemoveStateMachineConfigStateInput = {
|
|
|
371
424
|
versionId: Scalars['ID']['input'];
|
|
372
425
|
};
|
|
373
426
|
export type SafeCredentials = ICredentials & {
|
|
427
|
+
createdAt: Scalars['DateTime']['output'];
|
|
374
428
|
description: Scalars['String']['output'];
|
|
375
429
|
id: Scalars['ID']['output'];
|
|
376
430
|
type: CredentialsType;
|
|
431
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
377
432
|
};
|
|
378
433
|
export type SecureCronJob = {
|
|
379
434
|
appId: Scalars['ID']['output'];
|
|
@@ -397,6 +452,7 @@ export type SetSessionDataInput = {
|
|
|
397
452
|
sessionId: Scalars['ID']['input'];
|
|
398
453
|
};
|
|
399
454
|
export type StateMachineConfig = {
|
|
455
|
+
createdAt: Scalars['DateTime']['output'];
|
|
400
456
|
description?: Maybe<Scalars['String']['output']>;
|
|
401
457
|
id: Scalars['ID']['output'];
|
|
402
458
|
stateMachineId: Scalars['ID']['output'];
|
|
@@ -404,6 +460,7 @@ export type StateMachineConfig = {
|
|
|
404
460
|
status: StateMachineConfigStatus;
|
|
405
461
|
title?: Maybe<Scalars['String']['output']>;
|
|
406
462
|
triggers?: Maybe<Scalars['Set']['output']>;
|
|
463
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
407
464
|
versionId: Scalars['ID']['output'];
|
|
408
465
|
};
|
|
409
466
|
export type StateMachineConfigConnection = {
|
|
@@ -429,6 +486,7 @@ export declare enum StateMachineConfigStatus {
|
|
|
429
486
|
Published = "Published"
|
|
430
487
|
}
|
|
431
488
|
export declare enum Typenames {
|
|
489
|
+
Agents = "Agents",
|
|
432
490
|
Any = "Any",
|
|
433
491
|
App = "App",
|
|
434
492
|
AppInstances = "AppInstances",
|
|
@@ -443,6 +501,11 @@ export declare enum Typenames {
|
|
|
443
501
|
SessionStorage = "SessionStorage",
|
|
444
502
|
Sessions = "Sessions"
|
|
445
503
|
}
|
|
504
|
+
export type UpdateAgentInput = {
|
|
505
|
+
email?: InputMaybe<Scalars['EmailAddress']['input']>;
|
|
506
|
+
id: Scalars['ID']['input'];
|
|
507
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
508
|
+
};
|
|
446
509
|
export type UpdateCredentialsInput = {
|
|
447
510
|
credentials: Scalars['JSON']['input'];
|
|
448
511
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -476,8 +539,42 @@ export type UpdateStateMachineConfigWithStateInput = {
|
|
|
476
539
|
on?: InputMaybe<Array<StateMachineConfigStatesOnInput>>;
|
|
477
540
|
stateId: Scalars['ID']['input'];
|
|
478
541
|
};
|
|
542
|
+
export type AgentFragment = Pick<Agent, 'id' | 'name' | 'createdAt' | 'updatedAt'>;
|
|
543
|
+
export type GetAgentQueryVariables = Exact<{
|
|
544
|
+
id: Scalars['ID']['input'];
|
|
545
|
+
}>;
|
|
546
|
+
export type GetAgentQuery = {
|
|
547
|
+
getAgent?: Maybe<AgentFragment>;
|
|
548
|
+
};
|
|
549
|
+
export type ListAgentsQueryVariables = Exact<{
|
|
550
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
551
|
+
}>;
|
|
552
|
+
export type ListAgentsQuery = {
|
|
553
|
+
listAgents: {
|
|
554
|
+
nodes: Array<AgentFragment>;
|
|
555
|
+
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
export type CreateAgentMutationVariables = Exact<{
|
|
559
|
+
input: CreateAgentInput;
|
|
560
|
+
}>;
|
|
561
|
+
export type CreateAgentMutation = {
|
|
562
|
+
createAgent?: Maybe<AgentFragment>;
|
|
563
|
+
};
|
|
564
|
+
export type UpdateAgentMutationVariables = Exact<{
|
|
565
|
+
input: UpdateAgentInput;
|
|
566
|
+
}>;
|
|
567
|
+
export type UpdateAgentMutation = {
|
|
568
|
+
updateAgent?: Maybe<AgentFragment>;
|
|
569
|
+
};
|
|
570
|
+
export type RemoveAgentMutationVariables = Exact<{
|
|
571
|
+
input: RemoveAgentInput;
|
|
572
|
+
}>;
|
|
573
|
+
export type RemoveAgentMutation = {
|
|
574
|
+
removeAgent?: Maybe<AgentFragment>;
|
|
575
|
+
};
|
|
479
576
|
export type AppFragment = Pick<App, 'id' | 'type' | 'name' | 'description'>;
|
|
480
|
-
export type AppInstanceFragment = Pick<AppInstance, 'appId' | 'appType' | 'drn' | 'name' | 'transitions'>;
|
|
577
|
+
export type AppInstanceFragment = Pick<AppInstance, 'appId' | 'appType' | 'drn' | 'name' | 'transitions' | 'createdAt' | 'updatedAt'>;
|
|
481
578
|
export type AppWithInstancesFragment = ({
|
|
482
579
|
instances: Array<AppInstanceFragment>;
|
|
483
580
|
} & AppFragment);
|
|
@@ -509,7 +606,19 @@ export type ListAppInstancesQuery = {
|
|
|
509
606
|
app?: AppFragment;
|
|
510
607
|
} & AppInstanceFragment)>;
|
|
511
608
|
};
|
|
512
|
-
export type
|
|
609
|
+
export type GetAmplifyConfigQueryVariables = Exact<{
|
|
610
|
+
[key: string]: never;
|
|
611
|
+
}>;
|
|
612
|
+
export type GetAmplifyConfigQuery = Pick<Query, 'amplifyConfig'>;
|
|
613
|
+
export type GetAuthInfoQueryVariables = Exact<{
|
|
614
|
+
[key: string]: never;
|
|
615
|
+
}>;
|
|
616
|
+
export type GetAuthInfoQuery = {
|
|
617
|
+
authInfo?: Maybe<(Pick<AuthInfo, 'authenticationEndpoint' | 'jwtIssuer' | 'loginUrl' | 'logoutUrl'> & {
|
|
618
|
+
cognitoConfig: Pick<CognitoConfig, 'region' | 'userPoolId' | 'userPoolWebClientId'>;
|
|
619
|
+
})>;
|
|
620
|
+
};
|
|
621
|
+
export type SafeCredentialsFragment = Pick<SafeCredentials, 'id' | 'type' | 'description' | 'createdAt' | 'updatedAt'>;
|
|
513
622
|
export type GetCredentialsQueryVariables = Exact<{
|
|
514
623
|
id: Scalars['ID']['input'];
|
|
515
624
|
}>;
|
|
@@ -520,11 +629,11 @@ export type GetCredentialsSecretQueryVariables = Exact<{
|
|
|
520
629
|
id: Scalars['ID']['input'];
|
|
521
630
|
}>;
|
|
522
631
|
export type GetCredentialsSecretQuery = {
|
|
523
|
-
getCredentialsSecret?: Maybe<(Pick<ApiKeyCredentialsType, 'id' | 'type' | 'description'> & {
|
|
632
|
+
getCredentialsSecret?: Maybe<(Pick<ApiKeyCredentialsType, 'id' | 'type' | 'description' | 'updatedAt' | 'createdAt'> & {
|
|
524
633
|
credentials: Pick<ApiKeyCredentials, 'apiKey'>;
|
|
525
|
-
}) | (Pick<BasicCredentialsType, 'id' | 'type' | 'description'> & {
|
|
634
|
+
}) | (Pick<BasicCredentialsType, 'id' | 'type' | 'description' | 'updatedAt' | 'createdAt'> & {
|
|
526
635
|
credentials: Pick<BasicCredentials, 'username' | 'password'>;
|
|
527
|
-
}) | (Pick<OAuth2CredentialsType, 'id' | 'type' | 'description'> & {
|
|
636
|
+
}) | (Pick<OAuth2CredentialsType, 'id' | 'type' | 'description' | 'updatedAt' | 'createdAt'> & {
|
|
528
637
|
credentials: Pick<OAuth2Credentials, 'clientId' | 'clientSecret'>;
|
|
529
638
|
})>;
|
|
530
639
|
};
|
|
@@ -608,7 +717,7 @@ export type StateMachineConfigStateOnFragment = Pick<StateMachineConfigStatesOn,
|
|
|
608
717
|
export type StateMachineConfigStateFragment = (Pick<StateMachineConfigState, 'stateId' | 'meta'> & {
|
|
609
718
|
on: Array<StateMachineConfigStateOnFragment>;
|
|
610
719
|
});
|
|
611
|
-
export type StateMachineConfigFragment = (Pick<StateMachineConfig, 'id' | 'versionId' | 'stateMachineId' | 'title' | 'description' | 'status' | 'triggers'> & {
|
|
720
|
+
export type StateMachineConfigFragment = (Pick<StateMachineConfig, 'id' | 'versionId' | 'stateMachineId' | 'title' | 'description' | 'status' | 'triggers' | 'createdAt' | 'updatedAt'> & {
|
|
612
721
|
states: Array<StateMachineConfigStateFragment>;
|
|
613
722
|
});
|
|
614
723
|
export type StateMachineConfigConnectionFragment = {
|
|
@@ -693,24 +802,32 @@ export type RemoveStateMachineConfigStateMutationVariables = Exact<{
|
|
|
693
802
|
export type RemoveStateMachineConfigStateMutation = {
|
|
694
803
|
removeStateMachineConfigState?: Maybe<StateMachineConfigFragment>;
|
|
695
804
|
};
|
|
805
|
+
export declare const AgentFragmentDoc = "\n fragment agent on Agent {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
696
806
|
export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type\n name\n description\n}\n ";
|
|
697
|
-
export declare const AppInstanceFragmentDoc = "\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n ";
|
|
698
|
-
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}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n ";
|
|
699
|
-
export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n}\n ";
|
|
807
|
+
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 ";
|
|
808
|
+
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}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
809
|
+
export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n createdAt\n updatedAt\n}\n ";
|
|
700
810
|
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 ";
|
|
701
811
|
export declare const StateMachineConfigStateOnFragmentDoc = "\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
702
812
|
export declare const StateMachineConfigStateFragmentDoc = "\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 ";
|
|
703
|
-
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}\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 ";
|
|
704
|
-
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}\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 ";
|
|
705
|
-
export declare const
|
|
706
|
-
export declare const
|
|
707
|
-
export declare const
|
|
708
|
-
export declare const
|
|
709
|
-
export declare const
|
|
710
|
-
export declare const
|
|
711
|
-
export declare const
|
|
712
|
-
export declare const
|
|
713
|
-
export declare const
|
|
813
|
+
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 ";
|
|
814
|
+
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 ";
|
|
815
|
+
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 createdAt\n updatedAt\n}\n ";
|
|
816
|
+
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 createdAt\n updatedAt\n}\n ";
|
|
817
|
+
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 createdAt\n updatedAt\n}\n ";
|
|
818
|
+
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 createdAt\n updatedAt\n}\n ";
|
|
819
|
+
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 createdAt\n updatedAt\n}\n ";
|
|
820
|
+
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}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
821
|
+
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}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
822
|
+
export declare const ListAppInstancesDocument = "\n query listAppInstances($appId: ID, $appType: AppType, $withApp: Boolean = false) {\n listAppInstances(appId: $appId, appType: $appType) {\n ...appInstance\n app @include(if: $withApp) {\n ...app\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 \n\n fragment app on App {\n id\n type\n name\n description\n}\n ";
|
|
823
|
+
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig {\n amplifyConfig\n}\n ";
|
|
824
|
+
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 ";
|
|
825
|
+
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 ";
|
|
826
|
+
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 ";
|
|
827
|
+
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 ";
|
|
828
|
+
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 ";
|
|
829
|
+
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 createdAt\n updatedAt\n}\n ";
|
|
830
|
+
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 createdAt\n updatedAt\n}\n ";
|
|
714
831
|
export declare const GetCronJobDocument = "\n query getCronJob($id: ID!) {\n getCronJob(id: $id) {\n ...cronJob\n }\n}\n \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 ";
|
|
715
832
|
export declare const ListCronJobsDocument = "\n query listCronJobs {\n listCronJobs {\n ...cronJob\n }\n}\n \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 ";
|
|
716
833
|
export declare const CreateCronJobDocument = "\n mutation createCronJob($input: CreateCronJobInput!) {\n createCronJob(input: $input) {\n ...cronJob\n }\n}\n \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 ";
|
|
@@ -720,24 +837,31 @@ export declare const ResolveSessionDocument = "\n query resolveSession($sessi
|
|
|
720
837
|
export declare const GetSessionDataDocument = "\n query getSessionData($sessionId: ID!, $namespace: ID) {\n getSessionData(sessionId: $sessionId, namespace: $namespace)\n}\n ";
|
|
721
838
|
export declare const SetSessionDataDocument = "\n mutation setSessionData($input: SetSessionDataInput!) {\n setSessionData(input: $input)\n}\n ";
|
|
722
839
|
export declare const PatchSessionDataDocument = "\n mutation patchSessionData($input: PatchSessionDataInput!) {\n patchSessionData(input: $input)\n}\n ";
|
|
723
|
-
export declare const GetStateMachineDocument = "\n query getStateMachine($id: ID!, $versionId: ID!) {\n getStateMachineConfig(id: $id, versionId: $versionId) {\n ...stateMachineConfig\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}\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 ";
|
|
724
|
-
export declare const ListLiveStateMachineConfigsDocument = "\n query listLiveStateMachineConfigs {\n listLiveStateMachineConfigs {\n ...stateMachineConfigConnection\n }\n}\n \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}\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 ";
|
|
725
|
-
export declare const ListDraftStateMachineConfigsDocument = "\n query listDraftStateMachineConfigs {\n listDraftStateMachineConfigs {\n ...stateMachineConfigConnection\n }\n}\n \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}\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 ";
|
|
726
|
-
export declare const ListStateMachineConfigVersionsDocument = "\n query listStateMachineConfigVersions($id: ID!) {\n listStateMachineConfigVersions(id: $id) {\n ...stateMachineConfig\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}\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 ";
|
|
840
|
+
export declare const GetStateMachineDocument = "\n query getStateMachine($id: ID!, $versionId: ID!) {\n getStateMachineConfig(id: $id, versionId: $versionId) {\n ...stateMachineConfig\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 ";
|
|
841
|
+
export declare const ListLiveStateMachineConfigsDocument = "\n query listLiveStateMachineConfigs {\n listLiveStateMachineConfigs {\n ...stateMachineConfigConnection\n }\n}\n \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 ";
|
|
842
|
+
export declare const ListDraftStateMachineConfigsDocument = "\n query listDraftStateMachineConfigs {\n listDraftStateMachineConfigs {\n ...stateMachineConfigConnection\n }\n}\n \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 ";
|
|
843
|
+
export declare const ListStateMachineConfigVersionsDocument = "\n query listStateMachineConfigVersions($id: ID!) {\n listStateMachineConfigVersions(id: $id) {\n ...stateMachineConfig\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 ";
|
|
727
844
|
export declare const GetXStateMachineConfigDocument = "\n query getXStateMachineConfig($id: ID!, $versionId: ID!) {\n getXStateMachineConfig(id: $id, versionId: $versionId)\n}\n ";
|
|
728
|
-
export declare const CreateStateMachineConfigDocument = "\n mutation createStateMachineConfig($input: CreateStateMachineConfigInput!) {\n createStateMachineConfig(input: $input) {\n ...stateMachineConfig\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}\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 ";
|
|
729
|
-
export declare const UpdateStateMachineConfigDocument = "\n mutation updateStateMachineConfig($input: UpdateStateMachineConfigInput!) {\n updateStateMachineConfig(input: $input) {\n ...stateMachineConfig\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}\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 ";
|
|
730
|
-
export declare const RemoveStateMachineConfigDocument = "\n mutation removeStateMachineConfig($input: RemoveStateMachineConfigInput!) {\n removeStateMachineConfig(input: $input) {\n ...stateMachineConfig\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}\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 ";
|
|
731
|
-
export declare const EditStateMachineConfigDocument = "\n mutation editStateMachineConfig($input: EditStateMachineConfigInput!) {\n editStateMachineConfig(input: $input) {\n ...stateMachineConfig\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}\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 ";
|
|
732
|
-
export declare const PublishStateMachineConfigDocument = "\n mutation publishStateMachineConfig($input: PublishStateMachineConfigInput!) {\n publishStateMachineConfig(input: $input) {\n ...stateMachineConfig\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}\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 ";
|
|
733
|
-
export declare const CreateStateMachineConfigStateDocument = "\n mutation createStateMachineConfigState($input: CreateStateMachineConfigStateInput!) {\n createStateMachineConfigState(input: $input) {\n ...stateMachineConfig\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}\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 ";
|
|
734
|
-
export declare const UpdateStateMachineConfigStateDocument = "\n mutation updateStateMachineConfigState($input: UpdateStateMachineConfigStateInput!) {\n updateStateMachineConfigState(input: $input) {\n ...stateMachineConfig\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}\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 ";
|
|
735
|
-
export declare const RemoveStateMachineConfigStateDocument = "\n mutation removeStateMachineConfigState($input: RemoveStateMachineConfigStateInput!) {\n removeStateMachineConfigState(input: $input) {\n ...stateMachineConfig\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}\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 ";
|
|
845
|
+
export declare const CreateStateMachineConfigDocument = "\n mutation createStateMachineConfig($input: CreateStateMachineConfigInput!) {\n createStateMachineConfig(input: $input) {\n ...stateMachineConfig\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 ";
|
|
846
|
+
export declare const UpdateStateMachineConfigDocument = "\n mutation updateStateMachineConfig($input: UpdateStateMachineConfigInput!) {\n updateStateMachineConfig(input: $input) {\n ...stateMachineConfig\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 ";
|
|
847
|
+
export declare const RemoveStateMachineConfigDocument = "\n mutation removeStateMachineConfig($input: RemoveStateMachineConfigInput!) {\n removeStateMachineConfig(input: $input) {\n ...stateMachineConfig\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 ";
|
|
848
|
+
export declare const EditStateMachineConfigDocument = "\n mutation editStateMachineConfig($input: EditStateMachineConfigInput!) {\n editStateMachineConfig(input: $input) {\n ...stateMachineConfig\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 ";
|
|
849
|
+
export declare const PublishStateMachineConfigDocument = "\n mutation publishStateMachineConfig($input: PublishStateMachineConfigInput!) {\n publishStateMachineConfig(input: $input) {\n ...stateMachineConfig\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 ";
|
|
850
|
+
export declare const CreateStateMachineConfigStateDocument = "\n mutation createStateMachineConfigState($input: CreateStateMachineConfigStateInput!) {\n createStateMachineConfigState(input: $input) {\n ...stateMachineConfig\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 ";
|
|
851
|
+
export declare const UpdateStateMachineConfigStateDocument = "\n mutation updateStateMachineConfigState($input: UpdateStateMachineConfigStateInput!) {\n updateStateMachineConfigState(input: $input) {\n ...stateMachineConfig\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 ";
|
|
852
|
+
export declare const RemoveStateMachineConfigStateDocument = "\n mutation removeStateMachineConfigState($input: RemoveStateMachineConfigStateInput!) {\n removeStateMachineConfigState(input: $input) {\n ...stateMachineConfig\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 ";
|
|
736
853
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
737
854
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
855
|
+
getAgent(variables: GetAgentQueryVariables, options?: C): Promise<GetAgentQuery>;
|
|
856
|
+
listAgents(variables?: ListAgentsQueryVariables, options?: C): Promise<ListAgentsQuery>;
|
|
857
|
+
createAgent(variables: CreateAgentMutationVariables, options?: C): Promise<CreateAgentMutation>;
|
|
858
|
+
updateAgent(variables: UpdateAgentMutationVariables, options?: C): Promise<UpdateAgentMutation>;
|
|
859
|
+
removeAgent(variables: RemoveAgentMutationVariables, options?: C): Promise<RemoveAgentMutation>;
|
|
738
860
|
getApp(variables: GetAppQueryVariables, options?: C): Promise<GetAppQuery>;
|
|
739
861
|
listApps(variables?: ListAppsQueryVariables, options?: C): Promise<ListAppsQuery>;
|
|
740
862
|
listAppInstances(variables?: ListAppInstancesQueryVariables, options?: C): Promise<ListAppInstancesQuery>;
|
|
863
|
+
getAmplifyConfig(variables?: GetAmplifyConfigQueryVariables, options?: C): Promise<GetAmplifyConfigQuery>;
|
|
864
|
+
getAuthInfo(variables?: GetAuthInfoQueryVariables, options?: C): Promise<GetAuthInfoQuery>;
|
|
741
865
|
getCredentials(variables: GetCredentialsQueryVariables, options?: C): Promise<GetCredentialsQuery>;
|
|
742
866
|
getCredentialsSecret(variables: GetCredentialsSecretQueryVariables, options?: C): Promise<GetCredentialsSecretQuery>;
|
|
743
867
|
listCredentials(variables?: ListCredentialsQueryVariables, options?: C): Promise<ListCredentialsQuery>;
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.PatchSessionDataDocument = exports.SetSessionDataDocument = exports.GetSessionDataDocument = exports.ResolveSessionDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.ListAppInstancesDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateAgentDocument = exports.ListAgentsDocument = exports.GetAgentDocument = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.CronJobFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CredentialsType = exports.AppType = void 0;
|
|
5
|
+
exports.serviceName = exports.getSdk = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = void 0;
|
|
5
6
|
var AppType;
|
|
6
7
|
(function (AppType) {
|
|
7
8
|
AppType["Regular"] = "Regular";
|
|
@@ -30,6 +31,7 @@ var StateMachineConfigStatus;
|
|
|
30
31
|
})(StateMachineConfigStatus || (exports.StateMachineConfigStatus = StateMachineConfigStatus = {}));
|
|
31
32
|
var Typenames;
|
|
32
33
|
(function (Typenames) {
|
|
34
|
+
Typenames["Agents"] = "Agents";
|
|
33
35
|
Typenames["Any"] = "Any";
|
|
34
36
|
Typenames["App"] = "App";
|
|
35
37
|
Typenames["AppInstances"] = "AppInstances";
|
|
@@ -44,6 +46,14 @@ var Typenames;
|
|
|
44
46
|
Typenames["SessionStorage"] = "SessionStorage";
|
|
45
47
|
Typenames["Sessions"] = "Sessions";
|
|
46
48
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
49
|
+
exports.AgentFragmentDoc = `
|
|
50
|
+
fragment agent on Agent {
|
|
51
|
+
id
|
|
52
|
+
name
|
|
53
|
+
createdAt
|
|
54
|
+
updatedAt
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
47
57
|
exports.AppFragmentDoc = `
|
|
48
58
|
fragment app on App {
|
|
49
59
|
id
|
|
@@ -59,6 +69,8 @@ exports.AppInstanceFragmentDoc = `
|
|
|
59
69
|
drn
|
|
60
70
|
name
|
|
61
71
|
transitions
|
|
72
|
+
createdAt
|
|
73
|
+
updatedAt
|
|
62
74
|
}
|
|
63
75
|
`;
|
|
64
76
|
exports.AppWithInstancesFragmentDoc = `
|
|
@@ -75,6 +87,8 @@ exports.SafeCredentialsFragmentDoc = `
|
|
|
75
87
|
id
|
|
76
88
|
type
|
|
77
89
|
description
|
|
90
|
+
createdAt
|
|
91
|
+
updatedAt
|
|
78
92
|
}
|
|
79
93
|
`;
|
|
80
94
|
exports.CronJobFragmentDoc = `
|
|
@@ -117,6 +131,8 @@ exports.StateMachineConfigFragmentDoc = `
|
|
|
117
131
|
states {
|
|
118
132
|
...stateMachineConfigState
|
|
119
133
|
}
|
|
134
|
+
createdAt
|
|
135
|
+
updatedAt
|
|
120
136
|
}
|
|
121
137
|
${exports.StateMachineConfigStateFragmentDoc}`;
|
|
122
138
|
exports.StateMachineConfigConnectionFragmentDoc = `
|
|
@@ -130,6 +146,47 @@ exports.StateMachineConfigConnectionFragmentDoc = `
|
|
|
130
146
|
}
|
|
131
147
|
}
|
|
132
148
|
${exports.StateMachineConfigFragmentDoc}`;
|
|
149
|
+
exports.GetAgentDocument = `
|
|
150
|
+
query getAgent($id: ID!) {
|
|
151
|
+
getAgent(id: $id) {
|
|
152
|
+
...agent
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
${exports.AgentFragmentDoc}`;
|
|
156
|
+
exports.ListAgentsDocument = `
|
|
157
|
+
query listAgents($next: Base64) {
|
|
158
|
+
listAgents(next: $next) {
|
|
159
|
+
nodes {
|
|
160
|
+
...agent
|
|
161
|
+
}
|
|
162
|
+
pageInfo {
|
|
163
|
+
hasNext
|
|
164
|
+
next
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
${exports.AgentFragmentDoc}`;
|
|
169
|
+
exports.CreateAgentDocument = `
|
|
170
|
+
mutation createAgent($input: CreateAgentInput!) {
|
|
171
|
+
createAgent(input: $input) {
|
|
172
|
+
...agent
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
${exports.AgentFragmentDoc}`;
|
|
176
|
+
exports.UpdateAgentDocument = `
|
|
177
|
+
mutation updateAgent($input: UpdateAgentInput!) {
|
|
178
|
+
updateAgent(input: $input) {
|
|
179
|
+
...agent
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
${exports.AgentFragmentDoc}`;
|
|
183
|
+
exports.RemoveAgentDocument = `
|
|
184
|
+
mutation removeAgent($input: RemoveAgentInput!) {
|
|
185
|
+
removeAgent(input: $input) {
|
|
186
|
+
...agent
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
${exports.AgentFragmentDoc}`;
|
|
133
190
|
exports.GetAppDocument = `
|
|
134
191
|
query getApp($appId: ID!, $withInstances: Boolean = false) {
|
|
135
192
|
getApp(appId: $appId) {
|
|
@@ -163,6 +220,26 @@ exports.ListAppInstancesDocument = `
|
|
|
163
220
|
}
|
|
164
221
|
${exports.AppInstanceFragmentDoc}
|
|
165
222
|
${exports.AppFragmentDoc}`;
|
|
223
|
+
exports.GetAmplifyConfigDocument = `
|
|
224
|
+
query getAmplifyConfig {
|
|
225
|
+
amplifyConfig
|
|
226
|
+
}
|
|
227
|
+
`;
|
|
228
|
+
exports.GetAuthInfoDocument = `
|
|
229
|
+
query getAuthInfo {
|
|
230
|
+
authInfo {
|
|
231
|
+
authenticationEndpoint
|
|
232
|
+
jwtIssuer
|
|
233
|
+
loginUrl
|
|
234
|
+
logoutUrl
|
|
235
|
+
cognitoConfig {
|
|
236
|
+
region
|
|
237
|
+
userPoolId
|
|
238
|
+
userPoolWebClientId
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
`;
|
|
166
243
|
exports.GetCredentialsDocument = `
|
|
167
244
|
query getCredentials($id: ID!) {
|
|
168
245
|
getCredentials(id: $id) {
|
|
@@ -177,6 +254,8 @@ exports.GetCredentialsSecretDocument = `
|
|
|
177
254
|
id
|
|
178
255
|
type
|
|
179
256
|
description
|
|
257
|
+
updatedAt
|
|
258
|
+
createdAt
|
|
180
259
|
}
|
|
181
260
|
... on BasicCredentialsType {
|
|
182
261
|
credentials {
|
|
@@ -377,6 +456,21 @@ exports.RemoveStateMachineConfigStateDocument = `
|
|
|
377
456
|
${exports.StateMachineConfigFragmentDoc}`;
|
|
378
457
|
function getSdk(requester) {
|
|
379
458
|
return {
|
|
459
|
+
getAgent(variables, options) {
|
|
460
|
+
return requester(exports.GetAgentDocument, variables, options);
|
|
461
|
+
},
|
|
462
|
+
listAgents(variables, options) {
|
|
463
|
+
return requester(exports.ListAgentsDocument, variables, options);
|
|
464
|
+
},
|
|
465
|
+
createAgent(variables, options) {
|
|
466
|
+
return requester(exports.CreateAgentDocument, variables, options);
|
|
467
|
+
},
|
|
468
|
+
updateAgent(variables, options) {
|
|
469
|
+
return requester(exports.UpdateAgentDocument, variables, options);
|
|
470
|
+
},
|
|
471
|
+
removeAgent(variables, options) {
|
|
472
|
+
return requester(exports.RemoveAgentDocument, variables, options);
|
|
473
|
+
},
|
|
380
474
|
getApp(variables, options) {
|
|
381
475
|
return requester(exports.GetAppDocument, variables, options);
|
|
382
476
|
},
|
|
@@ -386,6 +480,12 @@ function getSdk(requester) {
|
|
|
386
480
|
listAppInstances(variables, options) {
|
|
387
481
|
return requester(exports.ListAppInstancesDocument, variables, options);
|
|
388
482
|
},
|
|
483
|
+
getAmplifyConfig(variables, options) {
|
|
484
|
+
return requester(exports.GetAmplifyConfigDocument, variables, options);
|
|
485
|
+
},
|
|
486
|
+
getAuthInfo(variables, options) {
|
|
487
|
+
return requester(exports.GetAuthInfoDocument, variables, options);
|
|
488
|
+
},
|
|
389
489
|
getCredentials(variables, options) {
|
|
390
490
|
return requester(exports.GetCredentialsDocument, variables, options);
|
|
391
491
|
},
|
package/src/zendesk.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './sdks/zendesk';
|
|
2
|
-
export declare const Zendesk: new () => {
|
|
2
|
+
export declare const Zendesk: new (options?: import("./client/http").HttpClientOptions) => {
|
|
3
3
|
readonly http: any;
|
|
4
|
-
forTenant(tenant: string):
|
|
5
|
-
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider):
|
|
4
|
+
forTenant(tenant: string): any;
|
|
5
|
+
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
|
|
6
6
|
} & {
|
|
7
7
|
getZendeskInstance(variables: import("./sdks/zendesk").Exact<{
|
|
8
8
|
id: string;
|