@droz-js/sdk 0.8.8 → 0.9.1

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.8.8",
4
+ "version": "0.9.1",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -12,9 +12,9 @@ declare const DrozAdmin_base: new (options?: import("./client/http").HttpClientO
12
12
  listRegions(variables?: import("./sdks/drozcommons").Exact<{
13
13
  [key: string]: never;
14
14
  }>, options?: unknown): Promise<import("./sdks/drozcommons").ListRegionsQuery>;
15
- updateAccountParameters(variables: import("./sdks/drozcommons").Exact<{
16
- input: import("./sdks/drozcommons").UpdateAccountParametersInput;
17
- }>, options?: unknown): Promise<import("./sdks/drozcommons").UpdateAccountParametersMutation>;
15
+ updateAccount(variables: import("./sdks/drozcommons").Exact<{
16
+ input: import("./sdks/drozcommons").UpdateAccountInput;
17
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").UpdateAccountMutation>;
18
18
  getAmplifyConfig(variables?: import("./sdks/drozcommons").Exact<{
19
19
  forDev?: import("./sdks/drozcommons").InputMaybe<import("./sdks/drozcommons").Scalars["Boolean"]["input"]>;
20
20
  }>, options?: unknown): Promise<import("./sdks/drozcommons").GetAmplifyConfigQuery>;
@@ -49,9 +49,44 @@ declare const DrozAdmin_base: new (options?: import("./client/http").HttpClientO
49
49
  batchDeploy(variables: import("./sdks/drozcommons").Exact<{
50
50
  input: import("./sdks/drozcommons").BatchDeployInput;
51
51
  }>, options?: unknown): Promise<import("./sdks/drozcommons").BatchDeployMutation>;
52
- updateGlobalSecrets(variables: import("./sdks/drozcommons").Exact<{
53
- input: import("./sdks/drozcommons").UpdateGlobalSecretsInput;
54
- }>, options?: unknown): Promise<import("./sdks/drozcommons").UpdateGlobalSecretsMutation>;
52
+ listTenantParameters(variables: import("./sdks/drozcommons").Exact<{
53
+ tenantId: import("./sdks/drozcommons").Scalars["String"]["input"];
54
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").ListTenantParametersQuery>;
55
+ getTenantParameter(variables: import("./sdks/drozcommons").Exact<{
56
+ tenantId: import("./sdks/drozcommons").Scalars["String"]["input"];
57
+ name: import("./sdks/drozcommons").Scalars["String"]["input"];
58
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").GetTenantParameterQuery>;
59
+ listAccountParameters(variables: import("./sdks/drozcommons").Exact<{
60
+ accountId: import("./sdks/drozcommons").Scalars["String"]["input"];
61
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").ListAccountParametersQuery>;
62
+ getAccountParameter(variables: import("./sdks/drozcommons").Exact<{
63
+ accountId: import("./sdks/drozcommons").Scalars["String"]["input"];
64
+ name: import("./sdks/drozcommons").Scalars["String"]["input"];
65
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").GetAccountParameterQuery>;
66
+ listGlobalParameters(variables?: import("./sdks/drozcommons").Exact<{
67
+ [key: string]: never;
68
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").ListGlobalParametersQuery>;
69
+ getGlobalParameter(variables: import("./sdks/drozcommons").Exact<{
70
+ name: import("./sdks/drozcommons").Scalars["String"]["input"];
71
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").GetGlobalParameterQuery>;
72
+ setTenantParameter(variables: import("./sdks/drozcommons").Exact<{
73
+ input: import("./sdks/drozcommons").SetTenantParameterInput;
74
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").SetTenantParameterMutation>;
75
+ removeTenantParameter(variables: import("./sdks/drozcommons").Exact<{
76
+ input: import("./sdks/drozcommons").RemoveTenantParameterInput;
77
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").RemoveTenantParameterMutation>;
78
+ setAccountParameter(variables: import("./sdks/drozcommons").Exact<{
79
+ input: import("./sdks/drozcommons").SetAccountParameterInput;
80
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").SetAccountParameterMutation>;
81
+ removeAccountParameter(variables: import("./sdks/drozcommons").Exact<{
82
+ input: import("./sdks/drozcommons").RemoveAccountParameterInput;
83
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").RemoveAccountParameterMutation>;
84
+ setGlobalParameter(variables: import("./sdks/drozcommons").Exact<{
85
+ input: import("./sdks/drozcommons").SetGlobalParameterInput;
86
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").SetGlobalParameterMutation>;
87
+ removeGlobalParameter(variables: import("./sdks/drozcommons").Exact<{
88
+ input: import("./sdks/drozcommons").RemoveGlobalParameterInput;
89
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").RemoveGlobalParameterMutation>;
55
90
  listServices(variables: import("./sdks/drozcommons").Exact<{
56
91
  tenantId: import("./sdks/drozcommons").Scalars["ID"]["input"];
57
92
  }>, options?: unknown): Promise<import("./sdks/drozcommons").ListServicesQuery>;
@@ -82,4 +117,5 @@ declare const DrozAdmin_base: new (options?: import("./client/http").HttpClientO
82
117
  }>, options?: unknown): Promise<import("./sdks/drozcommons").JoinTenantAsSuperAdminMutation>;
83
118
  };
84
119
  export declare class DrozAdmin extends DrozAdmin_base {
120
+ constructor();
85
121
  }
package/src/drozadmin.js CHANGED
@@ -19,5 +19,9 @@ const http_1 = require("./client/http");
19
19
  const drozcommons_1 = require("./sdks/drozcommons");
20
20
  __exportStar(require("./sdks/drozcommons"), exports);
21
21
  class DrozAdmin extends (0, http_1.HttpClientBuilder)(drozcommons_1.serviceName, drozcommons_1.getSdk) {
22
+ constructor() {
23
+ super();
24
+ this.forTenant('core');
25
+ }
22
26
  }
23
27
  exports.DrozAdmin = DrozAdmin;
@@ -139,43 +139,18 @@ export type AuthInfo = {
139
139
  loginUrl: Scalars['String']['output'];
140
140
  logoutUrl: Scalars['String']['output'];
141
141
  };
142
- export type AutomateBilling = {
143
- isEnabled?: Maybe<Scalars['Boolean']['output']>;
144
- };
145
- export type AutomateBillingInput = {
146
- isEnabled?: InputMaybe<Scalars['Boolean']['input']>;
147
- };
148
142
  export type AwsAccount = {
149
143
  availableRegions: Array<Region>;
150
144
  id: Scalars['ID']['output'];
151
145
  name: Scalars['String']['output'];
152
- parameters: AwsAccountParameters;
153
146
  tenants: Array<Maybe<Tenant>>;
154
147
  tenantsCount: Scalars['Int']['output'];
155
148
  };
156
- export type AwsAccountParameters = {
157
- administrativeApiSecret?: Maybe<Scalars['String']['output']>;
158
- mercadoLivreClientId?: Maybe<Scalars['String']['output']>;
159
- mercadoLivreClientSecret?: Maybe<Scalars['String']['output']>;
160
- metaAppId?: Maybe<Scalars['String']['output']>;
161
- metaClientSecret?: Maybe<Scalars['String']['output']>;
162
- metaConfigurationId?: Maybe<Scalars['String']['output']>;
163
- metaSystemUserId?: Maybe<Scalars['String']['output']>;
164
- metaSystemUserToken?: Maybe<Scalars['String']['output']>;
165
- metaWebhookVerificationToken?: Maybe<Scalars['String']['output']>;
166
- openAIApiKey?: Maybe<Scalars['String']['output']>;
167
- typesenseApiKey?: Maybe<Scalars['String']['output']>;
168
- typesenseNodes?: Maybe<Scalars['String']['output']>;
169
- };
170
149
  export type BatchDeployInput = {
171
150
  branch: Scalars['String']['input'];
172
151
  gitRepository: Scalars['String']['input'];
173
152
  tenantIds: Array<Scalars['ID']['input']>;
174
153
  };
175
- export type Billing = {
176
- automate?: Maybe<AutomateBilling>;
177
- reclameaqui?: Maybe<ReclameAquiBilling>;
178
- };
179
154
  export declare enum Can {
180
155
  Manage = "manage",
181
156
  Read = "read",
@@ -189,7 +164,6 @@ export type CognitoConfig = {
189
164
  };
190
165
  export type CreateTenantInput = {
191
166
  accountId: Scalars['ID']['input'];
192
- billing?: InputMaybe<TenantBillingInput>;
193
167
  name?: InputMaybe<Scalars['String']['input']>;
194
168
  region?: InputMaybe<Scalars['String']['input']>;
195
169
  tenantId: Scalars['TenantId']['input'];
@@ -244,9 +218,6 @@ export type GitRepository = {
244
218
  id: Scalars['ID']['output'];
245
219
  name: Scalars['String']['output'];
246
220
  };
247
- export type GlobalSecrets = {
248
- crossServiceJwtSignKey?: Maybe<Scalars['String']['output']>;
249
- };
250
221
  export type I18nText = {
251
222
  lang: Scalars['Locale']['output'];
252
223
  value: Scalars['String']['output'];
@@ -264,9 +235,14 @@ export type Mutation = {
264
235
  deploy: Deployment;
265
236
  destroy: Deployment;
266
237
  joinTenantAsSuperAdmin?: Maybe<Scalars['String']['output']>;
238
+ removeAccountParameter?: Maybe<Parameter>;
239
+ removeGlobalParameter?: Maybe<Parameter>;
267
240
  removeTenant: Tenant;
268
- updateAccountParameters: AwsAccount;
269
- updateGlobalSecrets: GlobalSecrets;
241
+ removeTenantParameter?: Maybe<Parameter>;
242
+ setAccountParameter: Parameter;
243
+ setGlobalParameter: Parameter;
244
+ setTenantParameter: Parameter;
245
+ updateAccount: AwsAccount;
270
246
  updateTenant: Tenant;
271
247
  version?: Maybe<Scalars['String']['output']>;
272
248
  };
@@ -285,14 +261,29 @@ export type MutationDestroyArgs = {
285
261
  export type MutationJoinTenantAsSuperAdminArgs = {
286
262
  input: JoinTenantAsSuperAdminInput;
287
263
  };
264
+ export type MutationRemoveAccountParameterArgs = {
265
+ input: RemoveAccountParameterInput;
266
+ };
267
+ export type MutationRemoveGlobalParameterArgs = {
268
+ input: RemoveGlobalParameterInput;
269
+ };
288
270
  export type MutationRemoveTenantArgs = {
289
271
  input: RemoveTenantInput;
290
272
  };
291
- export type MutationUpdateAccountParametersArgs = {
292
- input: UpdateAccountParametersInput;
273
+ export type MutationRemoveTenantParameterArgs = {
274
+ input: RemoveTenantParameterInput;
293
275
  };
294
- export type MutationUpdateGlobalSecretsArgs = {
295
- input: UpdateGlobalSecretsInput;
276
+ export type MutationSetAccountParameterArgs = {
277
+ input: SetAccountParameterInput;
278
+ };
279
+ export type MutationSetGlobalParameterArgs = {
280
+ input: SetGlobalParameterInput;
281
+ };
282
+ export type MutationSetTenantParameterArgs = {
283
+ input: SetTenantParameterInput;
284
+ };
285
+ export type MutationUpdateAccountArgs = {
286
+ input: UpdateAccountInput;
296
287
  };
297
288
  export type MutationUpdateTenantArgs = {
298
289
  input: UpdateTenantInput;
@@ -319,20 +310,38 @@ export type PageInfo = {
319
310
  hasNext: Scalars['Boolean']['output'];
320
311
  next?: Maybe<Scalars['Base64']['output']>;
321
312
  };
313
+ export type Parameter = {
314
+ name: Scalars['String']['output'];
315
+ namespace: Scalars['String']['output'];
316
+ type: ParameterType;
317
+ value?: Maybe<Scalars['String']['output']>;
318
+ };
319
+ export declare enum ParameterType {
320
+ Array = "array",
321
+ Boolean = "boolean",
322
+ Number = "number",
323
+ String = "string"
324
+ }
322
325
  export type Query = {
323
326
  amplifyConfig?: Maybe<Scalars['JSON']['output']>;
324
327
  app?: Maybe<Scalars['DRN']['output']>;
325
328
  authInfo?: Maybe<AuthInfo>;
326
329
  deploymentLogs: DeploymentLogConnection;
330
+ getAccountParameter?: Maybe<Parameter>;
327
331
  getDeployment: Deployment;
332
+ getGlobalParameter?: Maybe<Parameter>;
328
333
  getHttpEndpoint?: Maybe<Scalars['String']['output']>;
329
334
  getTenant?: Maybe<Tenant>;
335
+ getTenantParameter?: Maybe<Parameter>;
336
+ listAccountParameters?: Maybe<Array<Parameter>>;
330
337
  listAccounts: Array<AwsAccount>;
331
338
  listDeployments: Array<Deployment>;
332
339
  listGitBranches: Array<GitBranch>;
333
340
  listGitRepositories: Array<GitRepository>;
341
+ listGlobalParameters?: Maybe<Array<Parameter>>;
334
342
  listRegions: Array<Region>;
335
343
  listServices: Array<Maybe<Service>>;
344
+ listTenantParameters?: Maybe<Array<Parameter>>;
336
345
  listTenants: Array<Maybe<Tenant>>;
337
346
  searchSessionsOnTenant: Array<Maybe<Scalars['JSON']['output']>>;
338
347
  version?: Maybe<Scalars['String']['output']>;
@@ -345,13 +354,27 @@ export type QueryDeploymentLogsArgs = {
345
354
  next?: InputMaybe<Scalars['Base64']['input']>;
346
355
  tenantId: Scalars['ID']['input'];
347
356
  };
357
+ export type QueryGetAccountParameterArgs = {
358
+ accountId: Scalars['String']['input'];
359
+ name: Scalars['String']['input'];
360
+ };
348
361
  export type QueryGetDeploymentArgs = {
349
362
  deploymentId: Scalars['ID']['input'];
350
363
  tenantId: Scalars['ID']['input'];
351
364
  };
365
+ export type QueryGetGlobalParameterArgs = {
366
+ name: Scalars['String']['input'];
367
+ };
352
368
  export type QueryGetTenantArgs = {
353
369
  tenantId: Scalars['TenantId']['input'];
354
370
  };
371
+ export type QueryGetTenantParameterArgs = {
372
+ name: Scalars['String']['input'];
373
+ tenantId: Scalars['String']['input'];
374
+ };
375
+ export type QueryListAccountParametersArgs = {
376
+ accountId: Scalars['String']['input'];
377
+ };
355
378
  export type QueryListDeploymentsArgs = {
356
379
  limit?: InputMaybe<Scalars['Int']['input']>;
357
380
  tenantId: Scalars['ID']['input'];
@@ -362,22 +385,30 @@ export type QueryListGitBranchesArgs = {
362
385
  export type QueryListServicesArgs = {
363
386
  tenantId: Scalars['ID']['input'];
364
387
  };
388
+ export type QueryListTenantParametersArgs = {
389
+ tenantId: Scalars['String']['input'];
390
+ };
365
391
  export type QuerySearchSessionsOnTenantArgs = {
366
392
  q?: InputMaybe<Scalars['String']['input']>;
367
393
  tenantId: Scalars['TenantId']['input'];
368
394
  };
369
- export type ReclameAquiBilling = {
370
- cutoffSyncDays?: Maybe<Scalars['Float']['output']>;
371
- };
372
- export type ReclameAquiBillingInput = {
373
- cutoffSyncDays?: InputMaybe<Scalars['Float']['input']>;
374
- };
375
395
  export type Region = {
376
396
  name: Scalars['String']['output'];
377
397
  };
398
+ export type RemoveAccountParameterInput = {
399
+ accountId: Scalars['String']['input'];
400
+ name: Scalars['String']['input'];
401
+ };
402
+ export type RemoveGlobalParameterInput = {
403
+ name: Scalars['String']['input'];
404
+ };
378
405
  export type RemoveTenantInput = {
379
406
  tenantId: Scalars['TenantId']['input'];
380
407
  };
408
+ export type RemoveTenantParameterInput = {
409
+ name: Scalars['String']['input'];
410
+ tenantId: Scalars['String']['input'];
411
+ };
381
412
  export type SearchResultsFacet = {
382
413
  name: Scalars['String']['output'];
383
414
  stats?: Maybe<SearchResultsFacetStats>;
@@ -406,6 +437,23 @@ export type Service = {
406
437
  tenantId: Scalars['ID']['output'];
407
438
  type: Scalars['String']['output'];
408
439
  };
440
+ export type SetAccountParameterInput = {
441
+ accountId: Scalars['String']['input'];
442
+ name: Scalars['String']['input'];
443
+ type?: InputMaybe<ParameterType>;
444
+ value: Scalars['String']['input'];
445
+ };
446
+ export type SetGlobalParameterInput = {
447
+ name: Scalars['String']['input'];
448
+ type?: InputMaybe<ParameterType>;
449
+ value: Scalars['String']['input'];
450
+ };
451
+ export type SetTenantParameterInput = {
452
+ name: Scalars['String']['input'];
453
+ tenantId: Scalars['String']['input'];
454
+ type?: InputMaybe<ParameterType>;
455
+ value: Scalars['String']['input'];
456
+ };
409
457
  export type StringMatcher = {
410
458
  btw?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
411
459
  ct?: Maybe<Scalars['String']['output']>;
@@ -435,53 +483,33 @@ export type StringMatcherInput = {
435
483
  export type Tenant = {
436
484
  account: AwsAccount;
437
485
  accountId: Scalars['ID']['output'];
438
- billing?: Maybe<Billing>;
439
486
  createdAt: Scalars['DateTime']['output'];
440
487
  deployedVersions?: Maybe<Scalars['JSON']['output']>;
441
488
  deployments: Array<Deployment>;
442
489
  disabled?: Maybe<Scalars['Boolean']['output']>;
443
- globalSecrets?: Maybe<GlobalSecrets>;
444
490
  name?: Maybe<Scalars['String']['output']>;
445
491
  region: Scalars['String']['output'];
446
492
  services: Array<Maybe<Service>>;
447
493
  tenantId: Scalars['TenantId']['output'];
448
494
  updatedAt: Scalars['DateTime']['output'];
449
495
  };
450
- export type TenantBillingInput = {
451
- automate?: InputMaybe<AutomateBillingInput>;
452
- reclameaqui?: InputMaybe<ReclameAquiBillingInput>;
453
- };
454
496
  export declare enum Typenames {
455
497
  Any = "Any",
456
498
  GraphqlConnections = "GraphqlConnections",
457
- GraphqlSubscriptions = "GraphqlSubscriptions"
499
+ GraphqlSubscriptions = "GraphqlSubscriptions",
500
+ Parameters = "Parameters",
501
+ Tenants = "Tenants"
458
502
  }
459
- export type UpdateAccountParametersInput = {
460
- administrativeApiSecret?: InputMaybe<Scalars['String']['input']>;
503
+ export type UpdateAccountInput = {
461
504
  id: Scalars['ID']['input'];
462
- mercadoLivreClientId?: InputMaybe<Scalars['String']['input']>;
463
- mercadoLivreClientSecret?: InputMaybe<Scalars['String']['input']>;
464
- metaAppId?: InputMaybe<Scalars['String']['input']>;
465
- metaClientSecret?: InputMaybe<Scalars['String']['input']>;
466
- metaConfigurationId?: InputMaybe<Scalars['String']['input']>;
467
- metaSystemUserId?: InputMaybe<Scalars['String']['input']>;
468
- metaSystemUserToken?: InputMaybe<Scalars['String']['input']>;
469
- metaWebhookVerificationToken?: InputMaybe<Scalars['String']['input']>;
470
- openAIApiKey?: InputMaybe<Scalars['String']['input']>;
471
- typesenseApiKey?: InputMaybe<Scalars['String']['input']>;
472
- typesenseNodes?: InputMaybe<Scalars['String']['input']>;
473
- };
474
- export type UpdateGlobalSecretsInput = {
475
- crossServiceJwtSignKey?: InputMaybe<Scalars['String']['input']>;
505
+ name: Scalars['String']['input'];
476
506
  };
477
507
  export type UpdateTenantInput = {
478
- billing?: InputMaybe<TenantBillingInput>;
479
508
  name?: InputMaybe<Scalars['String']['input']>;
480
509
  tenantId: Scalars['TenantId']['input'];
481
510
  };
482
511
  export type AwsAccountFragment = (Pick<AwsAccount, 'id' | 'name' | 'tenantsCount'> & {
483
512
  availableRegions: Array<RegionFragment>;
484
- parameters: Pick<AwsAccountParameters, 'administrativeApiSecret' | 'typesenseNodes' | 'typesenseApiKey' | 'openAIApiKey' | 'metaAppId' | 'metaClientSecret' | 'metaConfigurationId' | 'metaWebhookVerificationToken' | 'metaSystemUserId' | 'metaSystemUserToken' | 'mercadoLivreClientId' | 'mercadoLivreClientSecret'>;
485
513
  });
486
514
  export type RegionFragment = Pick<Region, 'name'>;
487
515
  export type ListAccountsQueryVariables = Exact<{
@@ -496,11 +524,11 @@ export type ListRegionsQueryVariables = Exact<{
496
524
  export type ListRegionsQuery = {
497
525
  listRegions: Array<RegionFragment>;
498
526
  };
499
- export type UpdateAccountParametersMutationVariables = Exact<{
500
- input: UpdateAccountParametersInput;
527
+ export type UpdateAccountMutationVariables = Exact<{
528
+ input: UpdateAccountInput;
501
529
  }>;
502
- export type UpdateAccountParametersMutation = {
503
- updateAccountParameters: AwsAccountFragment;
530
+ export type UpdateAccountMutation = {
531
+ updateAccount: AwsAccountFragment;
504
532
  };
505
533
  export type GetAmplifyConfigQueryVariables = Exact<{
506
534
  forDev?: InputMaybe<Scalars['Boolean']['input']>;
@@ -574,11 +602,80 @@ export type BatchDeployMutationVariables = Exact<{
574
602
  export type BatchDeployMutation = {
575
603
  batchDeploy: Array<DeploymentFragment>;
576
604
  };
577
- export type UpdateGlobalSecretsMutationVariables = Exact<{
578
- input: UpdateGlobalSecretsInput;
605
+ export type ParameterFragment = Pick<Parameter, 'namespace' | 'name' | 'value' | 'type'>;
606
+ export type ListTenantParametersQueryVariables = Exact<{
607
+ tenantId: Scalars['String']['input'];
608
+ }>;
609
+ export type ListTenantParametersQuery = {
610
+ listTenantParameters?: Maybe<Array<ParameterFragment>>;
611
+ };
612
+ export type GetTenantParameterQueryVariables = Exact<{
613
+ tenantId: Scalars['String']['input'];
614
+ name: Scalars['String']['input'];
615
+ }>;
616
+ export type GetTenantParameterQuery = {
617
+ getTenantParameter?: Maybe<ParameterFragment>;
618
+ };
619
+ export type ListAccountParametersQueryVariables = Exact<{
620
+ accountId: Scalars['String']['input'];
621
+ }>;
622
+ export type ListAccountParametersQuery = {
623
+ listAccountParameters?: Maybe<Array<ParameterFragment>>;
624
+ };
625
+ export type GetAccountParameterQueryVariables = Exact<{
626
+ accountId: Scalars['String']['input'];
627
+ name: Scalars['String']['input'];
628
+ }>;
629
+ export type GetAccountParameterQuery = {
630
+ getAccountParameter?: Maybe<ParameterFragment>;
631
+ };
632
+ export type ListGlobalParametersQueryVariables = Exact<{
633
+ [key: string]: never;
634
+ }>;
635
+ export type ListGlobalParametersQuery = {
636
+ listGlobalParameters?: Maybe<Array<ParameterFragment>>;
637
+ };
638
+ export type GetGlobalParameterQueryVariables = Exact<{
639
+ name: Scalars['String']['input'];
640
+ }>;
641
+ export type GetGlobalParameterQuery = {
642
+ getGlobalParameter?: Maybe<ParameterFragment>;
643
+ };
644
+ export type SetTenantParameterMutationVariables = Exact<{
645
+ input: SetTenantParameterInput;
646
+ }>;
647
+ export type SetTenantParameterMutation = {
648
+ setTenantParameter: ParameterFragment;
649
+ };
650
+ export type RemoveTenantParameterMutationVariables = Exact<{
651
+ input: RemoveTenantParameterInput;
652
+ }>;
653
+ export type RemoveTenantParameterMutation = {
654
+ removeTenantParameter?: Maybe<ParameterFragment>;
655
+ };
656
+ export type SetAccountParameterMutationVariables = Exact<{
657
+ input: SetAccountParameterInput;
658
+ }>;
659
+ export type SetAccountParameterMutation = {
660
+ setAccountParameter: ParameterFragment;
661
+ };
662
+ export type RemoveAccountParameterMutationVariables = Exact<{
663
+ input: RemoveAccountParameterInput;
664
+ }>;
665
+ export type RemoveAccountParameterMutation = {
666
+ removeAccountParameter?: Maybe<ParameterFragment>;
667
+ };
668
+ export type SetGlobalParameterMutationVariables = Exact<{
669
+ input: SetGlobalParameterInput;
670
+ }>;
671
+ export type SetGlobalParameterMutation = {
672
+ setGlobalParameter: ParameterFragment;
673
+ };
674
+ export type RemoveGlobalParameterMutationVariables = Exact<{
675
+ input: RemoveGlobalParameterInput;
579
676
  }>;
580
- export type UpdateGlobalSecretsMutation = {
581
- updateGlobalSecrets: Pick<GlobalSecrets, 'crossServiceJwtSignKey'>;
677
+ export type RemoveGlobalParameterMutation = {
678
+ removeGlobalParameter?: Maybe<ParameterFragment>;
582
679
  };
583
680
  export type ServiceFragment = Pick<Service, 'accountId' | 'tenantId' | 'serviceId' | 'type' | 'endpoint'>;
584
681
  export type ListServicesQueryVariables = Exact<{
@@ -588,12 +685,7 @@ export type ListServicesQuery = {
588
685
  listServices: Array<Maybe<ServiceFragment>>;
589
686
  };
590
687
  export type TenantFragment = (Pick<Tenant, 'accountId' | 'tenantId' | 'name' | 'deployedVersions' | 'disabled' | 'createdAt' | 'updatedAt'> & {
591
- billing?: Maybe<{
592
- reclameaqui?: Maybe<Pick<ReclameAquiBilling, 'cutoffSyncDays'>>;
593
- automate?: Maybe<Pick<AutomateBilling, 'isEnabled'>>;
594
- }>;
595
688
  account: Pick<AwsAccount, 'id' | 'name'>;
596
- globalSecrets?: Maybe<Pick<GlobalSecrets, 'crossServiceJwtSignKey'>>;
597
689
  });
598
690
  export type GetTenantQueryVariables = Exact<{
599
691
  tenantId: Scalars['TenantId']['input'];
@@ -644,15 +736,16 @@ export type JoinTenantAsSuperAdminMutationVariables = Exact<{
644
736
  }>;
645
737
  export type JoinTenantAsSuperAdminMutation = Pick<Mutation, 'joinTenantAsSuperAdmin'>;
646
738
  export declare const RegionFragmentDoc = "\n fragment region on Region {\n name\n}\n ";
647
- 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 ";
739
+ export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n}\n ";
648
740
  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 ";
649
741
  export declare const GitBranchFragmentDoc = "\n fragment gitBranch on GitBranch {\n name\n}\n ";
650
742
  export declare const GitRepositoryFragmentDoc = "\n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n ";
743
+ export declare const ParameterFragmentDoc = "\n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
651
744
  export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
652
- export declare const TenantFragmentDoc = "\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 globalSecrets {\n crossServiceJwtSignKey\n }\n}\n ";
653
- export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \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 \n\n fragment region on Region {\n name\n}\n ";
745
+ export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n account {\n id\n name\n }\n}\n ";
746
+ export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n}\n \n\n fragment region on Region {\n name\n}\n ";
654
747
  export declare const ListRegionsDocument = "\n query listRegions {\n listRegions {\n ...region\n }\n}\n \n fragment region on Region {\n name\n}\n ";
655
- export declare const UpdateAccountParametersDocument = "\n mutation updateAccountParameters($input: UpdateAccountParametersInput!) {\n updateAccountParameters(input: $input) {\n ...awsAccount\n }\n}\n \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 \n\n fragment region on Region {\n name\n}\n ";
748
+ export declare const UpdateAccountDocument = "\n mutation updateAccount($input: UpdateAccountInput!) {\n updateAccount(input: $input) {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n}\n \n\n fragment region on Region {\n name\n}\n ";
656
749
  export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean) {\n amplifyConfig(forDev: $forDev)\n}\n ";
657
750
  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 ";
658
751
  export declare const ListGitRepositoriesDocument = "\n query listGitRepositories {\n listGitRepositories {\n ...gitRepository\n }\n}\n \n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n \n\n fragment gitBranch on GitBranch {\n name\n}\n ";
@@ -663,20 +756,31 @@ export declare const DeploymentLogsDocument = "\n query deploymentLogs($tenan
663
756
  export declare const DeployDocument = "\n mutation deploy($input: DeployInput!) {\n deploy(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 ";
664
757
  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 ";
665
758
  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 ";
666
- export declare const UpdateGlobalSecretsDocument = "\n mutation updateGlobalSecrets($input: UpdateGlobalSecretsInput!) {\n updateGlobalSecrets(input: $input) {\n crossServiceJwtSignKey\n }\n}\n ";
759
+ export declare const ListTenantParametersDocument = "\n query listTenantParameters($tenantId: String!) {\n listTenantParameters(tenantId: $tenantId) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
760
+ export declare const GetTenantParameterDocument = "\n query getTenantParameter($tenantId: String!, $name: String!) {\n getTenantParameter(tenantId: $tenantId, name: $name) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
761
+ export declare const ListAccountParametersDocument = "\n query listAccountParameters($accountId: String!) {\n listAccountParameters(accountId: $accountId) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
762
+ export declare const GetAccountParameterDocument = "\n query getAccountParameter($accountId: String!, $name: String!) {\n getAccountParameter(accountId: $accountId, name: $name) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
763
+ export declare const ListGlobalParametersDocument = "\n query listGlobalParameters {\n listGlobalParameters {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
764
+ export declare const GetGlobalParameterDocument = "\n query getGlobalParameter($name: String!) {\n getGlobalParameter(name: $name) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
765
+ export declare const SetTenantParameterDocument = "\n mutation setTenantParameter($input: SetTenantParameterInput!) {\n setTenantParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
766
+ export declare const RemoveTenantParameterDocument = "\n mutation removeTenantParameter($input: RemoveTenantParameterInput!) {\n removeTenantParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
767
+ export declare const SetAccountParameterDocument = "\n mutation setAccountParameter($input: SetAccountParameterInput!) {\n setAccountParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
768
+ export declare const RemoveAccountParameterDocument = "\n mutation removeAccountParameter($input: RemoveAccountParameterInput!) {\n removeAccountParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
769
+ export declare const SetGlobalParameterDocument = "\n mutation setGlobalParameter($input: SetGlobalParameterInput!) {\n setGlobalParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
770
+ export declare const RemoveGlobalParameterDocument = "\n mutation removeGlobalParameter($input: RemoveGlobalParameterInput!) {\n removeGlobalParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
667
771
  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 ";
668
- 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 globalSecrets {\n crossServiceJwtSignKey\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 ";
669
- 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 globalSecrets {\n crossServiceJwtSignKey\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 ";
772
+ 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 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 ";
773
+ 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 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 ";
670
774
  export declare const SearchSessionsOnTenantDocument = "\n query searchSessionsOnTenant($tenantId: TenantId!, $q: String) {\n searchSessionsOnTenant(tenantId: $tenantId, q: $q)\n}\n ";
671
- 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 globalSecrets {\n crossServiceJwtSignKey\n }\n}\n ";
672
- 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 globalSecrets {\n crossServiceJwtSignKey\n }\n}\n ";
673
- 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 globalSecrets {\n crossServiceJwtSignKey\n }\n}\n ";
775
+ 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 account {\n id\n name\n }\n}\n ";
776
+ 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 account {\n id\n name\n }\n}\n ";
777
+ 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 account {\n id\n name\n }\n}\n ";
674
778
  export declare const JoinTenantAsSuperAdminDocument = "\n mutation joinTenantAsSuperAdmin($input: JoinTenantAsSuperAdminInput!) {\n joinTenantAsSuperAdmin(input: $input)\n}\n ";
675
779
  export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
676
780
  export declare function getSdk<C>(requester: Requester<C>): {
677
781
  listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>;
678
782
  listRegions(variables?: ListRegionsQueryVariables, options?: C): Promise<ListRegionsQuery>;
679
- updateAccountParameters(variables: UpdateAccountParametersMutationVariables, options?: C): Promise<UpdateAccountParametersMutation>;
783
+ updateAccount(variables: UpdateAccountMutationVariables, options?: C): Promise<UpdateAccountMutation>;
680
784
  getAmplifyConfig(variables?: GetAmplifyConfigQueryVariables, options?: C): Promise<GetAmplifyConfigQuery>;
681
785
  getAuthInfo(variables?: GetAuthInfoQueryVariables, options?: C): Promise<GetAuthInfoQuery>;
682
786
  listGitRepositories(variables?: ListGitRepositoriesQueryVariables, options?: C): Promise<ListGitRepositoriesQuery>;
@@ -687,7 +791,18 @@ export declare function getSdk<C>(requester: Requester<C>): {
687
791
  deploy(variables: DeployMutationVariables, options?: C): Promise<DeployMutation>;
688
792
  destroy(variables: DestroyMutationVariables, options?: C): Promise<DestroyMutation>;
689
793
  batchDeploy(variables: BatchDeployMutationVariables, options?: C): Promise<BatchDeployMutation>;
690
- updateGlobalSecrets(variables: UpdateGlobalSecretsMutationVariables, options?: C): Promise<UpdateGlobalSecretsMutation>;
794
+ listTenantParameters(variables: ListTenantParametersQueryVariables, options?: C): Promise<ListTenantParametersQuery>;
795
+ getTenantParameter(variables: GetTenantParameterQueryVariables, options?: C): Promise<GetTenantParameterQuery>;
796
+ listAccountParameters(variables: ListAccountParametersQueryVariables, options?: C): Promise<ListAccountParametersQuery>;
797
+ getAccountParameter(variables: GetAccountParameterQueryVariables, options?: C): Promise<GetAccountParameterQuery>;
798
+ listGlobalParameters(variables?: ListGlobalParametersQueryVariables, options?: C): Promise<ListGlobalParametersQuery>;
799
+ getGlobalParameter(variables: GetGlobalParameterQueryVariables, options?: C): Promise<GetGlobalParameterQuery>;
800
+ setTenantParameter(variables: SetTenantParameterMutationVariables, options?: C): Promise<SetTenantParameterMutation>;
801
+ removeTenantParameter(variables: RemoveTenantParameterMutationVariables, options?: C): Promise<RemoveTenantParameterMutation>;
802
+ setAccountParameter(variables: SetAccountParameterMutationVariables, options?: C): Promise<SetAccountParameterMutation>;
803
+ removeAccountParameter(variables: RemoveAccountParameterMutationVariables, options?: C): Promise<RemoveAccountParameterMutation>;
804
+ setGlobalParameter(variables: SetGlobalParameterMutationVariables, options?: C): Promise<SetGlobalParameterMutation>;
805
+ removeGlobalParameter(variables: RemoveGlobalParameterMutationVariables, options?: C): Promise<RemoveGlobalParameterMutation>;
691
806
  listServices(variables: ListServicesQueryVariables, options?: C): Promise<ListServicesQuery>;
692
807
  getTenant(variables: GetTenantQueryVariables, options?: C): Promise<GetTenantQuery>;
693
808
  listTenants(variables?: ListTenantsQueryVariables, options?: C): Promise<ListTenantsQuery>;
@@ -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.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.SearchSessionsOnTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.UpdateGlobalSecretsDocument = 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.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.SearchSessionsOnTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.RemoveGlobalParameterDocument = exports.SetGlobalParameterDocument = exports.RemoveAccountParameterDocument = exports.SetAccountParameterDocument = exports.RemoveTenantParameterDocument = exports.SetTenantParameterDocument = exports.GetGlobalParameterDocument = exports.ListGlobalParametersDocument = exports.GetAccountParameterDocument = exports.ListAccountParametersDocument = exports.GetTenantParameterDocument = exports.ListTenantParametersDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UpdateAccountDocument = exports.ListRegionsDocument = exports.ListAccountsDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.ParameterFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.AwsAccountFragmentDoc = exports.RegionFragmentDoc = exports.Typenames = exports.ParameterType = exports.DeploymentStatus = exports.DeploymentCommands = exports.Can = exports.AppInstanceStatus = void 0;
5
5
  exports.getSdk = getSdk;
6
6
  var AppInstanceStatus;
7
7
  (function (AppInstanceStatus) {
@@ -28,11 +28,20 @@ var DeploymentStatus;
28
28
  DeploymentStatus["InQueue"] = "IN_QUEUE";
29
29
  DeploymentStatus["Succeeded"] = "SUCCEEDED";
30
30
  })(DeploymentStatus || (exports.DeploymentStatus = DeploymentStatus = {}));
31
+ var ParameterType;
32
+ (function (ParameterType) {
33
+ ParameterType["Array"] = "array";
34
+ ParameterType["Boolean"] = "boolean";
35
+ ParameterType["Number"] = "number";
36
+ ParameterType["String"] = "string";
37
+ })(ParameterType || (exports.ParameterType = ParameterType = {}));
31
38
  var Typenames;
32
39
  (function (Typenames) {
33
40
  Typenames["Any"] = "Any";
34
41
  Typenames["GraphqlConnections"] = "GraphqlConnections";
35
42
  Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
43
+ Typenames["Parameters"] = "Parameters";
44
+ Typenames["Tenants"] = "Tenants";
36
45
  })(Typenames || (exports.Typenames = Typenames = {}));
37
46
  exports.RegionFragmentDoc = `
38
47
  fragment region on Region {
@@ -47,20 +56,6 @@ exports.AwsAccountFragmentDoc = `
47
56
  availableRegions {
48
57
  ...region
49
58
  }
50
- parameters {
51
- administrativeApiSecret
52
- typesenseNodes
53
- typesenseApiKey
54
- openAIApiKey
55
- metaAppId
56
- metaClientSecret
57
- metaConfigurationId
58
- metaWebhookVerificationToken
59
- metaSystemUserId
60
- metaSystemUserToken
61
- mercadoLivreClientId
62
- mercadoLivreClientSecret
63
- }
64
59
  }
65
60
  `;
66
61
  exports.DeploymentFragmentDoc = `
@@ -91,6 +86,14 @@ exports.GitRepositoryFragmentDoc = `
91
86
  }
92
87
  }
93
88
  `;
89
+ exports.ParameterFragmentDoc = `
90
+ fragment parameter on Parameter {
91
+ namespace
92
+ name
93
+ value
94
+ type
95
+ }
96
+ `;
94
97
  exports.ServiceFragmentDoc = `
95
98
  fragment service on Service {
96
99
  accountId
@@ -109,21 +112,10 @@ exports.TenantFragmentDoc = `
109
112
  disabled
110
113
  createdAt
111
114
  updatedAt
112
- billing {
113
- reclameaqui {
114
- cutoffSyncDays
115
- }
116
- automate {
117
- isEnabled
118
- }
119
- }
120
115
  account {
121
116
  id
122
117
  name
123
118
  }
124
- globalSecrets {
125
- crossServiceJwtSignKey
126
- }
127
119
  }
128
120
  `;
129
121
  exports.ListAccountsDocument = `
@@ -141,9 +133,9 @@ exports.ListRegionsDocument = `
141
133
  }
142
134
  }
143
135
  ${exports.RegionFragmentDoc}`;
144
- exports.UpdateAccountParametersDocument = `
145
- mutation updateAccountParameters($input: UpdateAccountParametersInput!) {
146
- updateAccountParameters(input: $input) {
136
+ exports.UpdateAccountDocument = `
137
+ mutation updateAccount($input: UpdateAccountInput!) {
138
+ updateAccount(input: $input) {
147
139
  ...awsAccount
148
140
  }
149
141
  }
@@ -235,13 +227,90 @@ exports.BatchDeployDocument = `
235
227
  }
236
228
  }
237
229
  ${exports.DeploymentFragmentDoc}`;
238
- exports.UpdateGlobalSecretsDocument = `
239
- mutation updateGlobalSecrets($input: UpdateGlobalSecretsInput!) {
240
- updateGlobalSecrets(input: $input) {
241
- crossServiceJwtSignKey
230
+ exports.ListTenantParametersDocument = `
231
+ query listTenantParameters($tenantId: String!) {
232
+ listTenantParameters(tenantId: $tenantId) {
233
+ ...parameter
242
234
  }
243
235
  }
244
- `;
236
+ ${exports.ParameterFragmentDoc}`;
237
+ exports.GetTenantParameterDocument = `
238
+ query getTenantParameter($tenantId: String!, $name: String!) {
239
+ getTenantParameter(tenantId: $tenantId, name: $name) {
240
+ ...parameter
241
+ }
242
+ }
243
+ ${exports.ParameterFragmentDoc}`;
244
+ exports.ListAccountParametersDocument = `
245
+ query listAccountParameters($accountId: String!) {
246
+ listAccountParameters(accountId: $accountId) {
247
+ ...parameter
248
+ }
249
+ }
250
+ ${exports.ParameterFragmentDoc}`;
251
+ exports.GetAccountParameterDocument = `
252
+ query getAccountParameter($accountId: String!, $name: String!) {
253
+ getAccountParameter(accountId: $accountId, name: $name) {
254
+ ...parameter
255
+ }
256
+ }
257
+ ${exports.ParameterFragmentDoc}`;
258
+ exports.ListGlobalParametersDocument = `
259
+ query listGlobalParameters {
260
+ listGlobalParameters {
261
+ ...parameter
262
+ }
263
+ }
264
+ ${exports.ParameterFragmentDoc}`;
265
+ exports.GetGlobalParameterDocument = `
266
+ query getGlobalParameter($name: String!) {
267
+ getGlobalParameter(name: $name) {
268
+ ...parameter
269
+ }
270
+ }
271
+ ${exports.ParameterFragmentDoc}`;
272
+ exports.SetTenantParameterDocument = `
273
+ mutation setTenantParameter($input: SetTenantParameterInput!) {
274
+ setTenantParameter(input: $input) {
275
+ ...parameter
276
+ }
277
+ }
278
+ ${exports.ParameterFragmentDoc}`;
279
+ exports.RemoveTenantParameterDocument = `
280
+ mutation removeTenantParameter($input: RemoveTenantParameterInput!) {
281
+ removeTenantParameter(input: $input) {
282
+ ...parameter
283
+ }
284
+ }
285
+ ${exports.ParameterFragmentDoc}`;
286
+ exports.SetAccountParameterDocument = `
287
+ mutation setAccountParameter($input: SetAccountParameterInput!) {
288
+ setAccountParameter(input: $input) {
289
+ ...parameter
290
+ }
291
+ }
292
+ ${exports.ParameterFragmentDoc}`;
293
+ exports.RemoveAccountParameterDocument = `
294
+ mutation removeAccountParameter($input: RemoveAccountParameterInput!) {
295
+ removeAccountParameter(input: $input) {
296
+ ...parameter
297
+ }
298
+ }
299
+ ${exports.ParameterFragmentDoc}`;
300
+ exports.SetGlobalParameterDocument = `
301
+ mutation setGlobalParameter($input: SetGlobalParameterInput!) {
302
+ setGlobalParameter(input: $input) {
303
+ ...parameter
304
+ }
305
+ }
306
+ ${exports.ParameterFragmentDoc}`;
307
+ exports.RemoveGlobalParameterDocument = `
308
+ mutation removeGlobalParameter($input: RemoveGlobalParameterInput!) {
309
+ removeGlobalParameter(input: $input) {
310
+ ...parameter
311
+ }
312
+ }
313
+ ${exports.ParameterFragmentDoc}`;
245
314
  exports.ListServicesDocument = `
246
315
  query listServices($tenantId: ID!) {
247
316
  listServices(tenantId: $tenantId) {
@@ -318,8 +387,8 @@ function getSdk(requester) {
318
387
  listRegions(variables, options) {
319
388
  return requester(exports.ListRegionsDocument, variables, options);
320
389
  },
321
- updateAccountParameters(variables, options) {
322
- return requester(exports.UpdateAccountParametersDocument, variables, options);
390
+ updateAccount(variables, options) {
391
+ return requester(exports.UpdateAccountDocument, variables, options);
323
392
  },
324
393
  getAmplifyConfig(variables, options) {
325
394
  return requester(exports.GetAmplifyConfigDocument, variables, options);
@@ -351,8 +420,41 @@ function getSdk(requester) {
351
420
  batchDeploy(variables, options) {
352
421
  return requester(exports.BatchDeployDocument, variables, options);
353
422
  },
354
- updateGlobalSecrets(variables, options) {
355
- return requester(exports.UpdateGlobalSecretsDocument, variables, options);
423
+ listTenantParameters(variables, options) {
424
+ return requester(exports.ListTenantParametersDocument, variables, options);
425
+ },
426
+ getTenantParameter(variables, options) {
427
+ return requester(exports.GetTenantParameterDocument, variables, options);
428
+ },
429
+ listAccountParameters(variables, options) {
430
+ return requester(exports.ListAccountParametersDocument, variables, options);
431
+ },
432
+ getAccountParameter(variables, options) {
433
+ return requester(exports.GetAccountParameterDocument, variables, options);
434
+ },
435
+ listGlobalParameters(variables, options) {
436
+ return requester(exports.ListGlobalParametersDocument, variables, options);
437
+ },
438
+ getGlobalParameter(variables, options) {
439
+ return requester(exports.GetGlobalParameterDocument, variables, options);
440
+ },
441
+ setTenantParameter(variables, options) {
442
+ return requester(exports.SetTenantParameterDocument, variables, options);
443
+ },
444
+ removeTenantParameter(variables, options) {
445
+ return requester(exports.RemoveTenantParameterDocument, variables, options);
446
+ },
447
+ setAccountParameter(variables, options) {
448
+ return requester(exports.SetAccountParameterDocument, variables, options);
449
+ },
450
+ removeAccountParameter(variables, options) {
451
+ return requester(exports.RemoveAccountParameterDocument, variables, options);
452
+ },
453
+ setGlobalParameter(variables, options) {
454
+ return requester(exports.SetGlobalParameterDocument, variables, options);
455
+ },
456
+ removeGlobalParameter(variables, options) {
457
+ return requester(exports.RemoveGlobalParameterDocument, variables, options);
356
458
  },
357
459
  listServices(variables, options) {
358
460
  return requester(exports.ListServicesDocument, variables, options);
@@ -175,6 +175,7 @@ export type DrozNexoBilling = {
175
175
  };
176
176
  export type DrozNexoLicence = {
177
177
  billing: DrozNexoBilling;
178
+ /** @deprecated Use tenantId instead */
178
179
  name: Scalars['String']['output'];
179
180
  tenantId: Scalars['String']['output'];
180
181
  };
@@ -544,7 +545,7 @@ export type GetLicenceQueryVariables = Exact<{
544
545
  [key: string]: never;
545
546
  }>;
546
547
  export type GetLicenceQuery = {
547
- getLicence?: Maybe<(Pick<DrozNexoLicence, 'tenantId' | 'name'> & {
548
+ getLicence?: Maybe<(Pick<DrozNexoLicence, 'tenantId'> & {
548
549
  billing: {
549
550
  automate: Pick<AutomateConfiguration, 'isEnabled'>;
550
551
  reclameaqui: Pick<ReclameAquiConfiguration, 'cutoffSyncDays'>;
@@ -570,7 +571,7 @@ export declare const TestFlowDocument = "\n mutation testFlow($input: TestFlo
570
571
  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 instanceId\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n instanceId\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
571
572
  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 instanceId\n transitions\n createdAt\n updatedAt\n }\n}\n ";
572
573
  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 instanceId\n transitions\n createdAt\n updatedAt\n }\n}\n ";
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 ";
574
+ export declare const GetLicenceDocument = "\n query getLicence {\n getLicence {\n tenantId\n billing {\n automate {\n isEnabled\n }\n reclameaqui {\n cutoffSyncDays\n }\n }\n }\n}\n ";
574
575
  export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
575
576
  export declare function getSdk<C>(requester: Requester<C>): {
576
577
  getUsageStatistics(variables?: GetUsageStatisticsQueryVariables, options?: C): Promise<GetUsageStatisticsQuery>;
@@ -257,7 +257,6 @@ exports.GetLicenceDocument = `
257
257
  query getLicence {
258
258
  getLicence {
259
259
  tenantId
260
- name
261
260
  billing {
262
261
  automate {
263
262
  isEnabled