@droz-js/sdk 0.7.1 → 0.7.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@droz-js/sdk",
3
3
  "description": "Droz SDK",
4
- "version": "0.7.1",
4
+ "version": "0.7.3",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -74,6 +74,9 @@ declare const DrozAdmin_base: new (options?: import("./client/http").HttpClientO
74
74
  removeTenant(variables: import("./sdks/drozcommons").Exact<{
75
75
  input: import("./sdks/drozcommons").RemoveTenantInput;
76
76
  }>, options?: unknown): Promise<import("./sdks/drozcommons").RemoveTenantMutation>;
77
+ joinTenantAsSuperAdmin(variables: import("./sdks/drozcommons").Exact<{
78
+ input: import("./sdks/drozcommons").JoinTenantAsSuperAdminInput;
79
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").JoinTenantAsSuperAdminMutation>;
77
80
  };
78
81
  export declare class DrozAdmin extends DrozAdmin_base {
79
82
  }
package/src/droznexo.d.ts CHANGED
@@ -14,7 +14,7 @@ declare const DrozNexo_base: new (options?: import("./client/http").HttpClientOp
14
14
  versionId: string;
15
15
  }>, options?: unknown): Promise<import("./sdks/droznexo").GetFlowQuery>;
16
16
  listFlows(variables?: import("./sdks/droznexo").Exact<{
17
- statuses?: import("./sdks/droznexo").FlowStatus | import("./sdks/droznexo").FlowStatus[];
17
+ status?: import("./sdks/droznexo").FlowStatus;
18
18
  next?: object;
19
19
  }>, options?: unknown): Promise<import("./sdks/droznexo").ListFlowsQuery>;
20
20
  listSimpleSuggestions(variables?: import("./sdks/droznexo").Exact<{
package/src/nucleus.d.ts CHANGED
@@ -14,6 +14,9 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
14
14
  getAgent(variables: import("./sdks/nucleus").Exact<{
15
15
  id: string;
16
16
  }>, options?: unknown): Promise<import("./sdks/nucleus").GetAgentQuery>;
17
+ getAgentByEmail(variables: import("./sdks/nucleus").Exact<{
18
+ email: string;
19
+ }>, options?: unknown): Promise<import("./sdks/nucleus").GetAgentByEmailQuery>;
17
20
  getAgents(variables: import("./sdks/nucleus").Exact<{
18
21
  ids: string | string[];
19
22
  }>, options?: unknown): Promise<import("./sdks/nucleus").GetAgentsQuery>;
@@ -50,6 +53,9 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
50
53
  removeRoleFromAgent(variables: import("./sdks/nucleus").Exact<{
51
54
  input: import("./sdks/nucleus").RemoveRoleFromAgentInput;
52
55
  }>, options?: unknown): Promise<import("./sdks/nucleus").RemoveRoleFromAgentMutation>;
56
+ joinAsSuperAdmin(variables: import("./sdks/nucleus").Exact<{
57
+ input: import("./sdks/nucleus").JoinAsSuperAdminInput;
58
+ }>, options?: unknown): Promise<import("./sdks/nucleus").JoinAsSuperAdminMutation>;
53
59
  getApp(variables: import("./sdks/nucleus").Exact<{
54
60
  appId: string;
55
61
  withInstances?: boolean;
@@ -202,7 +208,7 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
202
208
  }>, options?: unknown): Promise<import("./sdks/nucleus").ListDraftStateMachineConfigsQuery>;
203
209
  listStateMachineConfigsByStatus(variables?: import("./sdks/nucleus").Exact<{
204
210
  createdByAppId?: string;
205
- statuses?: string | string[];
211
+ status?: import("./sdks/nucleus").StateMachineConfigStatus;
206
212
  next?: object;
207
213
  }>, options?: unknown): Promise<import("./sdks/nucleus").ListStateMachineConfigsByStatusQuery>;
208
214
  listStateMachineConfigVersions(variables: import("./sdks/nucleus").Exact<{
package/src/sdks/ai.d.ts CHANGED
@@ -101,6 +101,10 @@ export type Scalars = {
101
101
  input: string;
102
102
  output: string;
103
103
  };
104
+ TenantId: {
105
+ input: string;
106
+ output: string;
107
+ };
104
108
  Timezone: {
105
109
  input: string;
106
110
  output: string;
@@ -101,6 +101,10 @@ export type Scalars = {
101
101
  input: string;
102
102
  output: string;
103
103
  };
104
+ TenantId: {
105
+ input: string;
106
+ output: string;
107
+ };
104
108
  Timezone: {
105
109
  input: string;
106
110
  output: string;
@@ -101,6 +101,10 @@ export type Scalars = {
101
101
  input: string;
102
102
  output: string;
103
103
  };
104
+ TenantId: {
105
+ input: string;
106
+ output: string;
107
+ };
104
108
  Timezone: {
105
109
  input: string;
106
110
  output: string;
@@ -101,6 +101,10 @@ export type Scalars = {
101
101
  input: string;
102
102
  output: string;
103
103
  };
104
+ TenantId: {
105
+ input: string;
106
+ output: string;
107
+ };
104
108
  Timezone: {
105
109
  input: string;
106
110
  output: string;
@@ -101,6 +101,10 @@ export type Scalars = {
101
101
  input: string;
102
102
  output: string;
103
103
  };
104
+ TenantId: {
105
+ input: string;
106
+ output: string;
107
+ };
104
108
  Timezone: {
105
109
  input: string;
106
110
  output: string;
@@ -101,6 +101,10 @@ export type Scalars = {
101
101
  input: string;
102
102
  output: string;
103
103
  };
104
+ TenantId: {
105
+ input: string;
106
+ output: string;
107
+ };
104
108
  Timezone: {
105
109
  input: string;
106
110
  output: string;
@@ -188,7 +192,7 @@ export type CreateTenantInput = {
188
192
  billing?: InputMaybe<TenantBillingInput>;
189
193
  name?: InputMaybe<Scalars['String']['input']>;
190
194
  region?: InputMaybe<Scalars['String']['input']>;
191
- tenantId: Scalars['Tag']['input'];
195
+ tenantId: Scalars['TenantId']['input'];
192
196
  };
193
197
  export type DeployInput = {
194
198
  branch: Scalars['String']['input'];
@@ -248,11 +252,15 @@ export type I18nTextInput = {
248
252
  lang: Scalars['Locale']['input'];
249
253
  value: Scalars['String']['input'];
250
254
  };
255
+ export type JoinTenantAsSuperAdminInput = {
256
+ tenantId: Scalars['TenantId']['input'];
257
+ };
251
258
  export type Mutation = {
252
259
  batchDeploy: Array<Deployment>;
253
260
  createTenant: Tenant;
254
261
  deploy: Deployment;
255
262
  destroy: Deployment;
263
+ joinTenantAsSuperAdmin?: Maybe<Scalars['String']['output']>;
256
264
  removeTenant: Tenant;
257
265
  updateAccountParameters: AwsAccount;
258
266
  updateTenant: Tenant;
@@ -270,6 +278,9 @@ export type MutationDeployArgs = {
270
278
  export type MutationDestroyArgs = {
271
279
  input: DestroyInput;
272
280
  };
281
+ export type MutationJoinTenantAsSuperAdminArgs = {
282
+ input: JoinTenantAsSuperAdminInput;
283
+ };
273
284
  export type MutationRemoveTenantArgs = {
274
285
  input: RemoveTenantInput;
275
286
  };
@@ -332,7 +343,7 @@ export type QueryGetDeploymentArgs = {
332
343
  tenantId: Scalars['ID']['input'];
333
344
  };
334
345
  export type QueryGetTenantArgs = {
335
- tenantId: Scalars['Tag']['input'];
346
+ tenantId: Scalars['TenantId']['input'];
336
347
  };
337
348
  export type QueryListDeploymentsArgs = {
338
349
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -346,7 +357,7 @@ export type QueryListServicesArgs = {
346
357
  };
347
358
  export type QuerySearchSessionsOnTenantArgs = {
348
359
  q?: InputMaybe<Scalars['String']['input']>;
349
- tenantId: Scalars['Tag']['input'];
360
+ tenantId: Scalars['TenantId']['input'];
350
361
  };
351
362
  export type ReclameAquiBilling = {
352
363
  cutoffSyncDays?: Maybe<Scalars['Float']['output']>;
@@ -358,7 +369,7 @@ export type Region = {
358
369
  name: Scalars['String']['output'];
359
370
  };
360
371
  export type RemoveTenantInput = {
361
- tenantId: Scalars['Tag']['input'];
372
+ tenantId: Scalars['TenantId']['input'];
362
373
  };
363
374
  export type SearchResultsFacet = {
364
375
  name: Scalars['String']['output'];
@@ -425,7 +436,7 @@ export type Tenant = {
425
436
  name?: Maybe<Scalars['String']['output']>;
426
437
  region: Scalars['String']['output'];
427
438
  services: Array<Maybe<Service>>;
428
- tenantId: Scalars['Tag']['output'];
439
+ tenantId: Scalars['TenantId']['output'];
429
440
  updatedAt: Scalars['DateTime']['output'];
430
441
  };
431
442
  export type TenantBillingInput = {
@@ -455,7 +466,7 @@ export type UpdateAccountParametersInput = {
455
466
  export type UpdateTenantInput = {
456
467
  billing?: InputMaybe<TenantBillingInput>;
457
468
  name?: InputMaybe<Scalars['String']['input']>;
458
- tenantId: Scalars['Tag']['input'];
469
+ tenantId: Scalars['TenantId']['input'];
459
470
  };
460
471
  export type AwsAccountFragment = (Pick<AwsAccount, 'id' | 'name' | 'tenantsCount'> & {
461
472
  availableRegions: Array<RegionFragment>;
@@ -567,7 +578,7 @@ export type TenantFragment = (Pick<Tenant, 'accountId' | 'tenantId' | 'name' | '
567
578
  account: Pick<AwsAccount, 'id' | 'name'>;
568
579
  });
569
580
  export type GetTenantQueryVariables = Exact<{
570
- tenantId: Scalars['Tag']['input'];
581
+ tenantId: Scalars['TenantId']['input'];
571
582
  withServices?: InputMaybe<Scalars['Boolean']['input']>;
572
583
  withDeployments?: InputMaybe<Scalars['Boolean']['input']>;
573
584
  }>;
@@ -588,7 +599,7 @@ export type ListTenantsQuery = {
588
599
  } & TenantFragment)>>;
589
600
  };
590
601
  export type SearchSessionsOnTenantQueryVariables = Exact<{
591
- tenantId: Scalars['Tag']['input'];
602
+ tenantId: Scalars['TenantId']['input'];
592
603
  q?: InputMaybe<Scalars['String']['input']>;
593
604
  }>;
594
605
  export type SearchSessionsOnTenantQuery = Pick<Query, 'searchSessionsOnTenant'>;
@@ -610,6 +621,10 @@ export type RemoveTenantMutationVariables = Exact<{
610
621
  export type RemoveTenantMutation = {
611
622
  removeTenant: TenantFragment;
612
623
  };
624
+ export type JoinTenantAsSuperAdminMutationVariables = Exact<{
625
+ input: JoinTenantAsSuperAdminInput;
626
+ }>;
627
+ export type JoinTenantAsSuperAdminMutation = Pick<Mutation, 'joinTenantAsSuperAdmin'>;
613
628
  export declare const RegionFragmentDoc = "\n fragment region on Region {\n name\n}\n ";
614
629
  export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n administrativeApiSecret\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n metaSystemUserId\n metaSystemUserToken\n mercadoLivreClientId\n mercadoLivreClientSecret\n }\n}\n ";
615
630
  export declare const DeploymentFragmentDoc = "\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
@@ -631,12 +646,13 @@ export declare const DeployDocument = "\n mutation deploy($input: DeployInput
631
646
  export declare const DestroyDocument = "\n mutation destroy($input: DestroyInput!) {\n destroy(input: $input) {\n ...deployment\n }\n}\n \n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
632
647
  export declare const BatchDeployDocument = "\n mutation batchDeploy($input: BatchDeployInput!) {\n batchDeploy(input: $input) {\n ...deployment\n }\n}\n \n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
633
648
  export declare const ListServicesDocument = "\n query listServices($tenantId: ID!) {\n listServices(tenantId: $tenantId) {\n ...service\n }\n}\n \n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
634
- export declare const GetTenantDocument = "\n query getTenant($tenantId: Tag!, $withServices: Boolean = true, $withDeployments: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
649
+ export declare const GetTenantDocument = "\n query getTenant($tenantId: TenantId!, $withServices: Boolean = true, $withDeployments: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
635
650
  export declare const ListTenantsDocument = "\n query listTenants($withServices: Boolean = false, $withDeployments: Boolean = false) {\n listTenants {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
636
- export declare const SearchSessionsOnTenantDocument = "\n query searchSessionsOnTenant($tenantId: Tag!, $q: String) {\n searchSessionsOnTenant(tenantId: $tenantId, q: $q)\n}\n ";
651
+ export declare const SearchSessionsOnTenantDocument = "\n query searchSessionsOnTenant($tenantId: TenantId!, $q: String) {\n searchSessionsOnTenant(tenantId: $tenantId, q: $q)\n}\n ";
637
652
  export declare const CreateTenantDocument = "\n mutation createTenant($input: CreateTenantInput!) {\n createTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n}\n ";
638
653
  export declare const UpdateTenantDocument = "\n mutation updateTenant($input: UpdateTenantInput!) {\n updateTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n}\n ";
639
654
  export declare const RemoveTenantDocument = "\n mutation removeTenant($input: RemoveTenantInput!) {\n removeTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n}\n ";
655
+ export declare const JoinTenantAsSuperAdminDocument = "\n mutation joinTenantAsSuperAdmin($input: JoinTenantAsSuperAdminInput!) {\n joinTenantAsSuperAdmin(input: $input)\n}\n ";
640
656
  export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
641
657
  export declare function getSdk<C>(requester: Requester<C>): {
642
658
  listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>;
@@ -659,6 +675,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
659
675
  createTenant(variables: CreateTenantMutationVariables, options?: C): Promise<CreateTenantMutation>;
660
676
  updateTenant(variables: UpdateTenantMutationVariables, options?: C): Promise<UpdateTenantMutation>;
661
677
  removeTenant(variables: RemoveTenantMutationVariables, options?: C): Promise<RemoveTenantMutation>;
678
+ joinTenantAsSuperAdmin(variables: JoinTenantAsSuperAdminMutationVariables, options?: C): Promise<JoinTenantAsSuperAdminMutation>;
662
679
  };
663
680
  export type Sdk = ReturnType<typeof getSdk>;
664
681
  export declare const serviceName = "@droz/drozcommons";
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /* istanbul ignore file */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.serviceName = exports.getSdk = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.SearchSessionsOnTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UpdateAccountParametersDocument = exports.ListRegionsDocument = exports.ListAccountsDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.AwsAccountFragmentDoc = exports.RegionFragmentDoc = exports.Typenames = exports.DeploymentStatus = exports.DeploymentCommands = exports.Can = exports.AppInstanceStatus = void 0;
4
+ exports.serviceName = exports.getSdk = exports.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.SearchSessionsOnTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UpdateAccountParametersDocument = exports.ListRegionsDocument = exports.ListAccountsDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.AwsAccountFragmentDoc = exports.RegionFragmentDoc = exports.Typenames = exports.DeploymentStatus = exports.DeploymentCommands = exports.Can = exports.AppInstanceStatus = void 0;
5
5
  var AppInstanceStatus;
6
6
  (function (AppInstanceStatus) {
7
7
  AppInstanceStatus["Active"] = "Active";
@@ -239,7 +239,7 @@ exports.ListServicesDocument = `
239
239
  }
240
240
  ${exports.ServiceFragmentDoc}`;
241
241
  exports.GetTenantDocument = `
242
- query getTenant($tenantId: Tag!, $withServices: Boolean = true, $withDeployments: Boolean = true) {
242
+ query getTenant($tenantId: TenantId!, $withServices: Boolean = true, $withDeployments: Boolean = true) {
243
243
  getTenant(tenantId: $tenantId) {
244
244
  ...tenant
245
245
  services @include(if: $withServices) {
@@ -269,7 +269,7 @@ exports.ListTenantsDocument = `
269
269
  ${exports.ServiceFragmentDoc}
270
270
  ${exports.DeploymentFragmentDoc}`;
271
271
  exports.SearchSessionsOnTenantDocument = `
272
- query searchSessionsOnTenant($tenantId: Tag!, $q: String) {
272
+ query searchSessionsOnTenant($tenantId: TenantId!, $q: String) {
273
273
  searchSessionsOnTenant(tenantId: $tenantId, q: $q)
274
274
  }
275
275
  `;
@@ -294,6 +294,11 @@ exports.RemoveTenantDocument = `
294
294
  }
295
295
  }
296
296
  ${exports.TenantFragmentDoc}`;
297
+ exports.JoinTenantAsSuperAdminDocument = `
298
+ mutation joinTenantAsSuperAdmin($input: JoinTenantAsSuperAdminInput!) {
299
+ joinTenantAsSuperAdmin(input: $input)
300
+ }
301
+ `;
297
302
  function getSdk(requester) {
298
303
  return {
299
304
  listAccounts(variables, options) {
@@ -355,6 +360,9 @@ function getSdk(requester) {
355
360
  },
356
361
  removeTenant(variables, options) {
357
362
  return requester(exports.RemoveTenantDocument, variables, options);
363
+ },
364
+ joinTenantAsSuperAdmin(variables, options) {
365
+ return requester(exports.JoinTenantAsSuperAdminDocument, variables, options);
358
366
  }
359
367
  };
360
368
  }
@@ -101,6 +101,10 @@ export type Scalars = {
101
101
  input: string;
102
102
  output: string;
103
103
  };
104
+ TenantId: {
105
+ input: string;
106
+ output: string;
107
+ };
104
108
  Timezone: {
105
109
  input: string;
106
110
  output: string;
@@ -202,6 +206,7 @@ export type EditFlowInput = {
202
206
  export type Flow = {
203
207
  createdAt: Scalars['DateTime']['output'];
204
208
  createdBy?: Maybe<AgentInfo>;
209
+ createdByAppId?: Maybe<Scalars['ID']['output']>;
205
210
  description?: Maybe<Scalars['String']['output']>;
206
211
  edges: Array<Edge>;
207
212
  id: Scalars['ID']['output'];
@@ -321,7 +326,7 @@ export type QueryGetFlowArgs = {
321
326
  };
322
327
  export type QueryListFlowsArgs = {
323
328
  next?: InputMaybe<Scalars['Base64']['input']>;
324
- statuses?: InputMaybe<Array<InputMaybe<FlowStatus>>>;
329
+ status?: InputMaybe<FlowStatus>;
325
330
  };
326
331
  export type QueryListSimpleConnectionsArgs = {
327
332
  next?: InputMaybe<Scalars['Base64']['input']>;
@@ -360,6 +365,7 @@ export type SearchResultsStats = {
360
365
  };
361
366
  export type SimpleConnection = {
362
367
  createdAt: Scalars['DateTime']['output'];
368
+ createdByAppId?: Maybe<Scalars['ID']['output']>;
363
369
  description?: Maybe<Scalars['String']['output']>;
364
370
  destination: AppAndAppInstance;
365
371
  id: Scalars['ID']['output'];
@@ -420,7 +426,7 @@ export type UpdateFlowInput = {
420
426
  description?: InputMaybe<Scalars['String']['input']>;
421
427
  edges: Array<EdgeInput>;
422
428
  id: Scalars['ID']['input'];
423
- languages?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
429
+ languages?: InputMaybe<Array<Scalars['String']['input']>>;
424
430
  nodes: Array<NodeInput>;
425
431
  title?: InputMaybe<Scalars['String']['input']>;
426
432
  triggers?: InputMaybe<Scalars['Set']['input']>;
@@ -434,7 +440,7 @@ export type SimpleConnectionSuggestionFragment = (Pick<SimpleConnectionSuggestio
434
440
  trigger: AppAndAppInstanceFragment;
435
441
  destination: AppAndAppInstanceFragment;
436
442
  });
437
- export type SimpleConnectionFragment = (Pick<SimpleConnection, 'id' | 'versionId' | 'title' | 'description' | 'createdAt' | 'updatedAt'> & {
443
+ export type SimpleConnectionFragment = (Pick<SimpleConnection, 'id' | 'versionId' | 'title' | 'description' | 'createdAt' | 'updatedAt' | 'createdByAppId'> & {
438
444
  trigger: AppAndAppInstanceFragment;
439
445
  destination: AppAndAppInstanceFragment;
440
446
  });
@@ -442,7 +448,7 @@ export type NodeFragment = (Pick<Node, 'id' | 'type' | 'uidata'> & {
442
448
  data: AppAndAppInstanceFragment;
443
449
  });
444
450
  export type EdgeFragment = Pick<Edge, 'id' | 'source' | 'target' | 'targetType' | 'type' | 'sourceHandle' | 'uidata'>;
445
- export type FlowFragment = (Pick<Flow, 'id' | 'versionId' | 'title' | 'description' | 'status' | 'languages' | 'createdAt' | 'updatedAt'> & {
451
+ export type FlowFragment = (Pick<Flow, 'id' | 'versionId' | 'title' | 'description' | 'status' | 'languages' | 'createdAt' | 'updatedAt' | 'createdByAppId'> & {
446
452
  createdBy?: Maybe<Pick<AgentInfo, 'id' | 'name' | 'picture'>>;
447
453
  triggers: Array<AppAndAppInstanceFragment>;
448
454
  nodes: Array<NodeFragment>;
@@ -462,7 +468,7 @@ export type GetFlowQuery = {
462
468
  getFlow: FlowFragment;
463
469
  };
464
470
  export type ListFlowsQueryVariables = Exact<{
465
- statuses?: InputMaybe<Array<InputMaybe<FlowStatus>> | InputMaybe<FlowStatus>>;
471
+ status?: InputMaybe<FlowStatus>;
466
472
  next?: InputMaybe<Scalars['Base64']['input']>;
467
473
  }>;
468
474
  export type ListFlowsQuery = {
@@ -547,23 +553,23 @@ export type GetLicenceQuery = {
547
553
  };
548
554
  export declare const AppAndAppInstanceFragmentDoc = "\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
549
555
  export declare const SimpleConnectionSuggestionFragmentDoc = "\n fragment simpleConnectionSuggestion on SimpleConnectionSuggestion {\n title\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n}\n ";
550
- export declare const SimpleConnectionFragmentDoc = "\n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n}\n ";
556
+ export declare const SimpleConnectionFragmentDoc = "\n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n createdByAppId\n}\n ";
551
557
  export declare const NodeFragmentDoc = "\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n ";
552
558
  export declare const EdgeFragmentDoc = "\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
553
- export declare const FlowFragmentDoc = "\n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n ";
559
+ export declare const FlowFragmentDoc = "\n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n createdByAppId\n}\n ";
554
560
  export declare const GetUsageStatisticsDocument = "\n query getUsageStatistics {\n getUsageStatistics {\n totalSecrets\n totalAppInstances\n totalConnections\n }\n}\n ";
555
- export declare const GetFlowDocument = "\n query getFlow($id: ID!, $versionId: ID!) {\n getFlow(id: $id, versionId: $versionId) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
556
- export declare const ListFlowsDocument = "\n query listFlows($statuses: [FlowStatus], $next: Base64) {\n listFlows(next: $next, statuses: $statuses) {\n nodes {\n ...flow\n }\n pageInfo {\n next\n hasNext\n }\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
561
+ export declare const GetFlowDocument = "\n query getFlow($id: ID!, $versionId: ID!) {\n getFlow(id: $id, versionId: $versionId) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n createdByAppId\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
562
+ export declare const ListFlowsDocument = "\n query listFlows($status: FlowStatus, $next: Base64) {\n listFlows(next: $next, status: $status) {\n nodes {\n ...flow\n }\n pageInfo {\n next\n hasNext\n }\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n createdByAppId\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
557
563
  export declare const ListSimpleSuggestionsDocument = "\n query listSimpleSuggestions {\n listSimpleConnectionSuggestions {\n ...simpleConnectionSuggestion\n }\n}\n \n fragment simpleConnectionSuggestion on SimpleConnectionSuggestion {\n title\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
558
- export declare const ListSimpleConnectionsDocument = "\n query listSimpleConnections($next: Base64) {\n listSimpleConnections(next: $next) {\n nodes {\n ...simpleConnection\n }\n pageInfo {\n next\n hasNext\n }\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
559
- export declare const CreateFlowDocument = "\n mutation createFlow($input: CreateFlowInput!) {\n createFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
560
- export declare const EditFlowDocument = "\n mutation editFlow($input: EditFlowInput!) {\n editFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
561
- export declare const UpdateFlowDocument = "\n mutation updateFlow($input: UpdateFlowInput!) {\n updateFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
562
- export declare const PublishFlowDocument = "\n mutation publishFlow($input: PublishFlowInput!) {\n publishFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
564
+ export declare const ListSimpleConnectionsDocument = "\n query listSimpleConnections($next: Base64) {\n listSimpleConnections(next: $next) {\n nodes {\n ...simpleConnection\n }\n pageInfo {\n next\n hasNext\n }\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n createdByAppId\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
565
+ export declare const CreateFlowDocument = "\n mutation createFlow($input: CreateFlowInput!) {\n createFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n createdByAppId\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
566
+ export declare const EditFlowDocument = "\n mutation editFlow($input: EditFlowInput!) {\n editFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n createdByAppId\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
567
+ export declare const UpdateFlowDocument = "\n mutation updateFlow($input: UpdateFlowInput!) {\n updateFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n createdByAppId\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
568
+ export declare const PublishFlowDocument = "\n mutation publishFlow($input: PublishFlowInput!) {\n publishFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n createdByAppId\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
563
569
  export declare const TestFlowDocument = "\n mutation testFlow($input: TestFlowInput!) {\n testFlow(input: $input) {\n sessionId\n }\n}\n ";
564
- export declare const RemoveFlowDocument = "\n mutation removeFlow($input: RemoveFlowInput!) {\n removeFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
565
- export declare const CreateSimpleConnectionDocument = "\n mutation createSimpleConnection($input: CreateSimpleConnectionInput!) {\n createSimpleConnection(input: $input) {\n ...simpleConnection\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
566
- export declare const RemoveSimpleConnectionDocument = "\n mutation removeSimpleConnection($input: RemoveSimpleConnectionInput!) {\n removeSimpleConnection(input: $input) {\n ...simpleConnection\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
570
+ export declare const RemoveFlowDocument = "\n mutation removeFlow($input: RemoveFlowInput!) {\n removeFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n createdByAppId\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
571
+ export declare const CreateSimpleConnectionDocument = "\n mutation createSimpleConnection($input: CreateSimpleConnectionInput!) {\n createSimpleConnection(input: $input) {\n ...simpleConnection\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n createdByAppId\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
572
+ export declare const RemoveSimpleConnectionDocument = "\n mutation removeSimpleConnection($input: RemoveSimpleConnectionInput!) {\n removeSimpleConnection(input: $input) {\n ...simpleConnection\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n createdByAppId\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
567
573
  export declare const GetLicenceDocument = "\n query getLicence {\n getLicence {\n tenantId\n name\n billing {\n automate {\n isEnabled\n }\n reclameaqui {\n cutoffSyncDays\n }\n }\n }\n}\n ";
568
574
  export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
569
575
  export declare function getSdk<C>(requester: Requester<C>): {
@@ -70,6 +70,7 @@ exports.SimpleConnectionFragmentDoc = `
70
70
  }
71
71
  createdAt
72
72
  updatedAt
73
+ createdByAppId
73
74
  }
74
75
  `;
75
76
  exports.NodeFragmentDoc = `
@@ -117,6 +118,7 @@ exports.FlowFragmentDoc = `
117
118
  }
118
119
  createdAt
119
120
  updatedAt
121
+ createdByAppId
120
122
  }
121
123
  `;
122
124
  exports.GetUsageStatisticsDocument = `
@@ -139,8 +141,8 @@ ${exports.AppAndAppInstanceFragmentDoc}
139
141
  ${exports.NodeFragmentDoc}
140
142
  ${exports.EdgeFragmentDoc}`;
141
143
  exports.ListFlowsDocument = `
142
- query listFlows($statuses: [FlowStatus], $next: Base64) {
143
- listFlows(next: $next, statuses: $statuses) {
144
+ query listFlows($status: FlowStatus, $next: Base64) {
145
+ listFlows(next: $next, status: $status) {
144
146
  nodes {
145
147
  ...flow
146
148
  }
@@ -101,6 +101,10 @@ export type Scalars = {
101
101
  input: string;
102
102
  output: string;
103
103
  };
104
+ TenantId: {
105
+ input: string;
106
+ output: string;
107
+ };
104
108
  Timezone: {
105
109
  input: string;
106
110
  output: string;
@@ -101,6 +101,10 @@ export type Scalars = {
101
101
  input: string;
102
102
  output: string;
103
103
  };
104
+ TenantId: {
105
+ input: string;
106
+ output: string;
107
+ };
104
108
  Timezone: {
105
109
  input: string;
106
110
  output: string;
@@ -101,6 +101,10 @@ export type Scalars = {
101
101
  input: string;
102
102
  output: string;
103
103
  };
104
+ TenantId: {
105
+ input: string;
106
+ output: string;
107
+ };
104
108
  Timezone: {
105
109
  input: string;
106
110
  output: string;
@@ -274,6 +278,7 @@ export type CreatePresignedUploadUrlInput = {
274
278
  fileName: Scalars['String']['input'];
275
279
  };
276
280
  export type CreateStateMachineConfigInput = {
281
+ createdByAppId?: InputMaybe<Scalars['ID']['input']>;
277
282
  description?: InputMaybe<Scalars['String']['input']>;
278
283
  states?: InputMaybe<Array<CreateStateMachineConfigWithStateInput>>;
279
284
  title?: InputMaybe<Scalars['String']['input']>;
@@ -379,6 +384,10 @@ export type IndexedSession = {
379
384
  status: SessionStatus;
380
385
  triggerDrn: Scalars['ID']['output'];
381
386
  };
387
+ export type JoinAsSuperAdminInput = {
388
+ email: Scalars['EmailAddress']['input'];
389
+ name: Scalars['String']['input'];
390
+ };
382
391
  export type MercadoLivreAuthInfo = {
383
392
  authUrl: Scalars['String']['output'];
384
393
  };
@@ -427,6 +436,7 @@ export type Mutation = {
427
436
  createSystemCredentials: SafeCredentials;
428
437
  editStateMachineConfig?: Maybe<StateMachineConfig>;
429
438
  getOrCreateCustomer: Customer;
439
+ joinAsSuperAdmin?: Maybe<Scalars['String']['output']>;
430
440
  patchSessionAttributes?: Maybe<Scalars['JSON']['output']>;
431
441
  publishStateMachineConfig?: Maybe<StateMachineConfig>;
432
442
  registerAppInstance: AppInstance;
@@ -490,6 +500,9 @@ export type MutationEditStateMachineConfigArgs = {
490
500
  export type MutationGetOrCreateCustomerArgs = {
491
501
  input: GetOrCreateCustomerInput;
492
502
  };
503
+ export type MutationJoinAsSuperAdminArgs = {
504
+ input: JoinAsSuperAdminInput;
505
+ };
493
506
  export type MutationPatchSessionAttributesArgs = {
494
507
  input: PatchSessionAttributesInput;
495
508
  };
@@ -627,6 +640,7 @@ export type Query = {
627
640
  countCredentials: Scalars['Int']['output'];
628
641
  countLiveStateMachineConfigs: Scalars['Int']['output'];
629
642
  getAgent?: Maybe<Agent>;
643
+ getAgentByEmail?: Maybe<Agent>;
630
644
  getAgents: Array<Maybe<Agent>>;
631
645
  getApp?: Maybe<App>;
632
646
  getAppInstance?: Maybe<AppInstance>;
@@ -673,6 +687,9 @@ export type QueryCheckPermissionsArgs = {
673
687
  export type QueryGetAgentArgs = {
674
688
  id: Scalars['ID']['input'];
675
689
  };
690
+ export type QueryGetAgentByEmailArgs = {
691
+ email: Scalars['EmailAddress']['input'];
692
+ };
676
693
  export type QueryGetAgentsArgs = {
677
694
  ids: Array<Scalars['ID']['input']>;
678
695
  };
@@ -760,7 +777,7 @@ export type QueryListStateMachineConfigVersionsArgs = {
760
777
  export type QueryListStateMachineConfigsByStatusArgs = {
761
778
  createdByAppId?: InputMaybe<Scalars['ID']['input']>;
762
779
  next?: InputMaybe<Scalars['Base64']['input']>;
763
- statuses?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
780
+ status?: InputMaybe<StateMachineConfigStatus>;
764
781
  };
765
782
  export type QuerySearchSessionsArgs = {
766
783
  q?: InputMaybe<Scalars['String']['input']>;
@@ -1039,6 +1056,12 @@ export type GetAgentQueryVariables = Exact<{
1039
1056
  export type GetAgentQuery = {
1040
1057
  getAgent?: Maybe<AgentFragment>;
1041
1058
  };
1059
+ export type GetAgentByEmailQueryVariables = Exact<{
1060
+ email: Scalars['EmailAddress']['input'];
1061
+ }>;
1062
+ export type GetAgentByEmailQuery = {
1063
+ getAgentByEmail?: Maybe<AgentFragment>;
1064
+ };
1042
1065
  export type GetAgentsQueryVariables = Exact<{
1043
1066
  ids: Array<Scalars['ID']['input']> | Scalars['ID']['input'];
1044
1067
  }>;
@@ -1117,6 +1140,10 @@ export type RemoveRoleFromAgentMutationVariables = Exact<{
1117
1140
  export type RemoveRoleFromAgentMutation = {
1118
1141
  removeRoleFromAgent?: Maybe<AgentFragment>;
1119
1142
  };
1143
+ export type JoinAsSuperAdminMutationVariables = Exact<{
1144
+ input: JoinAsSuperAdminInput;
1145
+ }>;
1146
+ export type JoinAsSuperAdminMutation = Pick<Mutation, 'joinAsSuperAdmin'>;
1120
1147
  export type AppFragment = (Pick<App, 'id' | 'type' | 'name' | 'description' | 'color'> & {
1121
1148
  channels?: Maybe<Array<Pick<AppChannel, 'id' | 'sources' | 'main' | 'readonly' | 'hidden'>>>;
1122
1149
  });
@@ -1454,7 +1481,7 @@ export type ListDraftStateMachineConfigsQuery = {
1454
1481
  };
1455
1482
  export type ListStateMachineConfigsByStatusQueryVariables = Exact<{
1456
1483
  createdByAppId?: InputMaybe<Scalars['ID']['input']>;
1457
- statuses?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>> | InputMaybe<Scalars['String']['input']>>;
1484
+ status?: InputMaybe<StateMachineConfigStatus>;
1458
1485
  next?: InputMaybe<Scalars['Base64']['input']>;
1459
1486
  }>;
1460
1487
  export type ListStateMachineConfigsByStatusQuery = {
@@ -1556,6 +1583,7 @@ export declare const StateMachineConfigConnectionFragmentDoc = "\n fragment s
1556
1583
  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 ";
1557
1584
  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 removed\n createdAt\n updatedAt\n}\n ";
1558
1585
  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 removed\n createdAt\n updatedAt\n}\n ";
1586
+ export declare const GetAgentByEmailDocument = "\n query getAgentByEmail($email: EmailAddress!) {\n getAgentByEmail(email: $email) {\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 removed\n createdAt\n updatedAt\n}\n ";
1559
1587
  export declare const GetAgentsDocument = "\n query getAgents($ids: [ID!]!) {\n getAgents(ids: $ids) {\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 removed\n createdAt\n updatedAt\n}\n ";
1560
1588
  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 removed\n createdAt\n updatedAt\n}\n ";
1561
1589
  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 removed\n createdAt\n updatedAt\n}\n ";
@@ -1568,6 +1596,7 @@ export declare const RemoveAgentDocument = "\n mutation removeAgent($input: R
1568
1596
  export declare const RemoveSystemApiKeyAgentDocument = "\n mutation removeSystemApiKeyAgent($input: RemoveAgentInput!) {\n removeSystemApiKeyAgent(input: $input) {\n ...apiKey\n }\n}\n \n fragment apiKey on ApiKeyAgent {\n email\n password\n token\n user {\n ...agent\n }\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n removed\n createdAt\n updatedAt\n}\n ";
1569
1597
  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 removed\n createdAt\n updatedAt\n}\n ";
1570
1598
  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 removed\n createdAt\n updatedAt\n}\n ";
1599
+ export declare const JoinAsSuperAdminDocument = "\n mutation joinAsSuperAdmin($input: JoinAsSuperAdminInput!) {\n joinAsSuperAdmin(input: $input)\n}\n ";
1571
1600
  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 ";
1572
1601
  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 ";
1573
1602
  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 ";
@@ -1614,7 +1643,7 @@ export declare const GetStateMachineDocument = "\n query getStateMachine($id:
1614
1643
  export declare const CountLiveStateMachineConfigsDocument = "\n query countLiveStateMachineConfigs {\n countLiveStateMachineConfigs\n}\n ";
1615
1644
  export declare const ListLiveStateMachineConfigsDocument = "\n query listLiveStateMachineConfigs($createdByAppId: ID, $next: Base64) {\n listLiveStateMachineConfigs(createdByAppId: $createdByAppId, next: $next) {\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\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\n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
1616
1645
  export declare const ListDraftStateMachineConfigsDocument = "\n query listDraftStateMachineConfigs($createdByAppId: ID, $next: Base64) {\n listDraftStateMachineConfigs(createdByAppId: $createdByAppId, next: $next) {\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\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\n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
1617
- export declare const ListStateMachineConfigsByStatusDocument = "\n query listStateMachineConfigsByStatus($createdByAppId: ID, $statuses: [String], $next: Base64) {\n listStateMachineConfigsByStatus(\n createdByAppId: $createdByAppId\n statuses: $statuses\n next: $next\n ) {\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\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\n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
1646
+ export declare const ListStateMachineConfigsByStatusDocument = "\n query listStateMachineConfigsByStatus($createdByAppId: ID, $status: StateMachineConfigStatus, $next: Base64) {\n listStateMachineConfigsByStatus(\n createdByAppId: $createdByAppId\n status: $status\n next: $next\n ) {\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\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\n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
1618
1647
  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\n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
1619
1648
  export declare const GetXStateMachineConfigDocument = "\n query getXStateMachineConfig($id: ID!, $versionId: ID!) {\n getXStateMachineConfig(id: $id, versionId: $versionId)\n}\n ";
1620
1649
  export declare const IsAppInstanceInUseDocument = "\n query isAppInstanceInUse($drn: DRN!) {\n isAppInstanceInUse(drn: $drn)\n}\n ";
@@ -1632,6 +1661,7 @@ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Pr
1632
1661
  export declare function getSdk<C>(requester: Requester<C>): {
1633
1662
  getMe(variables?: GetMeQueryVariables, options?: C): Promise<GetMeQuery>;
1634
1663
  getAgent(variables: GetAgentQueryVariables, options?: C): Promise<GetAgentQuery>;
1664
+ getAgentByEmail(variables: GetAgentByEmailQueryVariables, options?: C): Promise<GetAgentByEmailQuery>;
1635
1665
  getAgents(variables: GetAgentsQueryVariables, options?: C): Promise<GetAgentsQuery>;
1636
1666
  listAgents(variables?: ListAgentsQueryVariables, options?: C): Promise<ListAgentsQuery>;
1637
1667
  listApiKeyAgents(variables?: ListApiKeyAgentsQueryVariables, options?: C): Promise<ListApiKeyAgentsQuery>;
@@ -1644,6 +1674,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
1644
1674
  removeSystemApiKeyAgent(variables: RemoveSystemApiKeyAgentMutationVariables, options?: C): Promise<RemoveSystemApiKeyAgentMutation>;
1645
1675
  addRoleToAgent(variables: AddRoleToAgentMutationVariables, options?: C): Promise<AddRoleToAgentMutation>;
1646
1676
  removeRoleFromAgent(variables: RemoveRoleFromAgentMutationVariables, options?: C): Promise<RemoveRoleFromAgentMutation>;
1677
+ joinAsSuperAdmin(variables: JoinAsSuperAdminMutationVariables, options?: C): Promise<JoinAsSuperAdminMutation>;
1647
1678
  getApp(variables: GetAppQueryVariables, options?: C): Promise<GetAppQuery>;
1648
1679
  listApps(variables?: ListAppsQueryVariables, options?: C): Promise<ListAppsQuery>;
1649
1680
  getAppInstance(variables: GetAppInstanceQueryVariables, options?: C): Promise<GetAppInstanceQuery>;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  /* istanbul ignore file */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- 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.GetAgentsDocument = 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.CredentialsWithSecretFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.SessionStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = void 0;
5
- 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.ListStateMachineConfigsByStatusDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.SearchSessionsDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartCustomSessionDocument = 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.GetMercadoLivreAuthInfoDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetMetaAuthInfoDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = void 0;
6
- exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = void 0;
4
+ exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.JoinAsSuperAdminDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentsDocument = exports.GetAgentByEmailDocument = 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.CredentialsWithSecretFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.SessionStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = void 0;
5
+ exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListStateMachineConfigsByStatusDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.SearchSessionsDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartCustomSessionDocument = 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.GetMercadoLivreAuthInfoDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetMetaAuthInfoDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = void 0;
6
+ exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = void 0;
7
7
  var AppInstanceStatus;
8
8
  (function (AppInstanceStatus) {
9
9
  AppInstanceStatus["Active"] = "Active";
@@ -329,6 +329,13 @@ exports.GetAgentDocument = `
329
329
  }
330
330
  }
331
331
  ${exports.AgentFragmentDoc}`;
332
+ exports.GetAgentByEmailDocument = `
333
+ query getAgentByEmail($email: EmailAddress!) {
334
+ getAgentByEmail(email: $email) {
335
+ ...agent
336
+ }
337
+ }
338
+ ${exports.AgentFragmentDoc}`;
332
339
  exports.GetAgentsDocument = `
333
340
  query getAgents($ids: [ID!]!) {
334
341
  getAgents(ids: $ids) {
@@ -428,6 +435,11 @@ exports.RemoveRoleFromAgentDocument = `
428
435
  }
429
436
  }
430
437
  ${exports.AgentFragmentDoc}`;
438
+ exports.JoinAsSuperAdminDocument = `
439
+ mutation joinAsSuperAdmin($input: JoinAsSuperAdminInput!) {
440
+ joinAsSuperAdmin(input: $input)
441
+ }
442
+ `;
431
443
  exports.GetAppDocument = `
432
444
  query getApp($appId: ID!, $withInstances: Boolean = false) {
433
445
  getApp(appId: $appId) {
@@ -796,10 +808,10 @@ ${exports.StateMachineConfigFragmentDoc}
796
808
  ${exports.StateMachineConfigStateFragmentDoc}
797
809
  ${exports.StateMachineConfigStateOnFragmentDoc}`;
798
810
  exports.ListStateMachineConfigsByStatusDocument = `
799
- query listStateMachineConfigsByStatus($createdByAppId: ID, $statuses: [String], $next: Base64) {
811
+ query listStateMachineConfigsByStatus($createdByAppId: ID, $status: StateMachineConfigStatus, $next: Base64) {
800
812
  listStateMachineConfigsByStatus(
801
813
  createdByAppId: $createdByAppId
802
- statuses: $statuses
814
+ status: $status
803
815
  next: $next
804
816
  ) {
805
817
  ...stateMachineConfigConnection
@@ -925,6 +937,9 @@ function getSdk(requester) {
925
937
  getAgent(variables, options) {
926
938
  return requester(exports.GetAgentDocument, variables, options);
927
939
  },
940
+ getAgentByEmail(variables, options) {
941
+ return requester(exports.GetAgentByEmailDocument, variables, options);
942
+ },
928
943
  getAgents(variables, options) {
929
944
  return requester(exports.GetAgentsDocument, variables, options);
930
945
  },
@@ -961,6 +976,9 @@ function getSdk(requester) {
961
976
  removeRoleFromAgent(variables, options) {
962
977
  return requester(exports.RemoveRoleFromAgentDocument, variables, options);
963
978
  },
979
+ joinAsSuperAdmin(variables, options) {
980
+ return requester(exports.JoinAsSuperAdminDocument, variables, options);
981
+ },
964
982
  getApp(variables, options) {
965
983
  return requester(exports.GetAppDocument, variables, options);
966
984
  },
@@ -101,6 +101,10 @@ export type Scalars = {
101
101
  input: string;
102
102
  output: string;
103
103
  };
104
+ TenantId: {
105
+ input: string;
106
+ output: string;
107
+ };
104
108
  Timezone: {
105
109
  input: string;
106
110
  output: string;
@@ -101,6 +101,10 @@ export type Scalars = {
101
101
  input: string;
102
102
  output: string;
103
103
  };
104
+ TenantId: {
105
+ input: string;
106
+ output: string;
107
+ };
104
108
  Timezone: {
105
109
  input: string;
106
110
  output: string;
@@ -101,6 +101,10 @@ export type Scalars = {
101
101
  input: string;
102
102
  output: string;
103
103
  };
104
+ TenantId: {
105
+ input: string;
106
+ output: string;
107
+ };
104
108
  Timezone: {
105
109
  input: string;
106
110
  output: string;
@@ -101,6 +101,10 @@ export type Scalars = {
101
101
  input: string;
102
102
  output: string;
103
103
  };
104
+ TenantId: {
105
+ input: string;
106
+ output: string;
107
+ };
104
108
  Timezone: {
105
109
  input: string;
106
110
  output: string;