@code0-tech/sagittarius-graphql-types 0.0.0-56198dce107a9c09cc5eca0773f239d9c3eba598 → 0.0.0-625a1038b022ac5f60370cc4ba77beba858c86a6

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.
Files changed (2) hide show
  1. package/index.d.ts +430 -20
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -91,8 +91,12 @@ export type Authentication = UserSession;
91
91
  /** Represents a DataType */
92
92
  export interface DataType {
93
93
  __typename?: 'DataType';
94
+ /** Name of the function */
95
+ aliases?: Maybe<TranslationConnection>;
94
96
  /** Time when this DataType was created */
95
97
  createdAt?: Maybe<Scalars['Time']['output']>;
98
+ /** Display message of the function */
99
+ displayMessages?: Maybe<TranslationConnection>;
96
100
  /** Generic keys of the datatype */
97
101
  genericKeys?: Maybe<Array<Scalars['String']['output']>>;
98
102
  /** Global ID of this DataType */
@@ -112,6 +116,24 @@ export interface DataType {
112
116
  }
113
117
 
114
118
 
119
+ /** Represents a DataType */
120
+ export interface DataTypeAliasesArgs {
121
+ after?: InputMaybe<Scalars['String']['input']>;
122
+ before?: InputMaybe<Scalars['String']['input']>;
123
+ first?: InputMaybe<Scalars['Int']['input']>;
124
+ last?: InputMaybe<Scalars['Int']['input']>;
125
+ }
126
+
127
+
128
+ /** Represents a DataType */
129
+ export interface DataTypeDisplayMessagesArgs {
130
+ after?: InputMaybe<Scalars['String']['input']>;
131
+ before?: InputMaybe<Scalars['String']['input']>;
132
+ first?: InputMaybe<Scalars['Int']['input']>;
133
+ last?: InputMaybe<Scalars['Int']['input']>;
134
+ }
135
+
136
+
115
137
  /** Represents a DataType */
116
138
  export interface DataTypeNameArgs {
117
139
  after?: InputMaybe<Scalars['String']['input']>;
@@ -327,6 +349,9 @@ export const enum DataTypeVariant {
327
349
  Type = 'TYPE'
328
350
  }
329
351
 
352
+ /** Represents a detailed error with either a message or an active model error */
353
+ export type DetailedError = ActiveModelError | FlowValidationError | MessageError;
354
+
330
355
  /** Autogenerated input type of Echo */
331
356
  export interface EchoInput {
332
357
  /** A unique identifier for the client performing the mutation. */
@@ -347,12 +372,11 @@ export interface EchoPayload {
347
372
  }
348
373
 
349
374
  /** Objects that can present an error */
350
- export type Error = ActiveModelError | ErrorCode | MessageError;
351
-
352
- /** Represents an error code */
353
- export interface ErrorCode {
354
- __typename?: 'ErrorCode';
355
- /** The error code */
375
+ export interface Error {
376
+ __typename?: 'Error';
377
+ /** Detailed validation errors if applicable */
378
+ details?: Maybe<Array<DetailedError>>;
379
+ /** The code representing the error type */
356
380
  errorCode?: Maybe<ErrorCodeEnum>;
357
381
  }
358
382
 
@@ -360,50 +384,118 @@ export interface ErrorCode {
360
384
  export const enum ErrorCodeEnum {
361
385
  /** This action would remove the last administrative role */
362
386
  CannotDeleteLastAdminRole = 'CANNOT_DELETE_LAST_ADMIN_ROLE',
387
+ /** Only administrators can modify admin status of users */
388
+ CannotModifyAdmin = 'CANNOT_MODIFY_ADMIN',
389
+ /** Users cannot modify their own admin status */
390
+ CannotModifyOwnAdmin = 'CANNOT_MODIFY_OWN_ADMIN',
363
391
  /** This action would remove the last administrator */
364
392
  CannotRemoveLastAdministrator = 'CANNOT_REMOVE_LAST_ADMINISTRATOR',
365
393
  /** This action would remove the last administrative ability */
366
394
  CannotRemoveLastAdminAbility = 'CANNOT_REMOVE_LAST_ADMIN_ABILITY',
395
+ /** Failed to send the email verification */
396
+ EmailVerificationSendFailed = 'EMAIL_VERIFICATION_SEND_FAILED',
367
397
  /** This external identity does not exist */
368
398
  ExternalIdentityDoesNotExist = 'EXTERNAL_IDENTITY_DOES_NOT_EXIST',
369
399
  /** The old backup codes could not be deleted */
370
400
  FailedToInvalidateOldBackupCodes = 'FAILED_TO_INVALIDATE_OLD_BACKUP_CODES',
401
+ /** Failed to reset the user password */
402
+ FailedToResetPassword = 'FAILED_TO_RESET_PASSWORD',
371
403
  /** The new backup codes could not be saved */
372
404
  FailedToSaveValidBackupCode = 'FAILED_TO_SAVE_VALID_BACKUP_CODE',
405
+ /** The flow with the given identifier was not found */
406
+ FlowNotFound = 'FLOW_NOT_FOUND',
407
+ /** The flow type with the given identifier was not found */
408
+ FlowTypeNotFound = 'FLOW_TYPE_NOT_FOUND',
409
+ /** The flow validation has failed */
410
+ FlowValidationFailed = 'FLOW_VALIDATION_FAILED',
373
411
  /** The given key was not found in the data type */
374
412
  GenericKeyNotFound = 'GENERIC_KEY_NOT_FOUND',
413
+ /** The external identity with the given identifier was not found */
414
+ IdentityNotFound = 'IDENTITY_NOT_FOUND',
375
415
  /** Failed to validate the external identity */
376
416
  IdentityValidationFailed = 'IDENTITY_VALIDATION_FAILED',
377
417
  /** Resources are from different namespaces */
378
418
  InconsistentNamespace = 'INCONSISTENT_NAMESPACE',
419
+ /** The attachment is invalid because of active model errors */
420
+ InvalidAttachment = 'INVALID_ATTACHMENT',
379
421
  /** This external identity is invalid */
380
422
  InvalidExternalIdentity = 'INVALID_EXTERNAL_IDENTITY',
423
+ /** The flow is invalid because of active model errors */
424
+ InvalidFlow = 'INVALID_FLOW',
425
+ /** The flow setting is invalid because of active model errors */
426
+ InvalidFlowSetting = 'INVALID_FLOW_SETTING',
381
427
  /** Invalid login data provided */
382
428
  InvalidLoginData = 'INVALID_LOGIN_DATA',
429
+ /** The namespace license is invalid because of active model errors */
430
+ InvalidNamespaceLicense = 'INVALID_NAMESPACE_LICENSE',
431
+ /** The namespace member is invalid because of active model errors */
432
+ InvalidNamespaceMember = 'INVALID_NAMESPACE_MEMBER',
433
+ /** The namespace project is invalid because of active model errors */
434
+ InvalidNamespaceProject = 'INVALID_NAMESPACE_PROJECT',
435
+ /** The namespace role is invalid because of active model errors */
436
+ InvalidNamespaceRole = 'INVALID_NAMESPACE_ROLE',
437
+ /** The organization is invalid because of active model errors */
438
+ InvalidOrganization = 'INVALID_ORGANIZATION',
439
+ /** The provided password repeat does not match the password */
440
+ InvalidPasswordRepeat = 'INVALID_PASSWORD_REPEAT',
441
+ /** The runtime is invalid because of active model errors */
442
+ InvalidRuntime = 'INVALID_RUNTIME',
383
443
  /** Invalid setting provided */
384
444
  InvalidSetting = 'INVALID_SETTING',
445
+ /** The TOTP secret is invalid or cannot be verified */
446
+ InvalidTotpSecret = 'INVALID_TOTP_SECRET',
447
+ /** The user is invalid because of active model errors */
448
+ InvalidUser = 'INVALID_USER',
449
+ /** The user identity is invalid because of active model errors */
450
+ InvalidUserIdentity = 'INVALID_USER_IDENTITY',
451
+ /** The user session is invalid because of active model errors */
452
+ InvalidUserSession = 'INVALID_USER_SESSION',
385
453
  /** Invalid verification code provided */
386
454
  InvalidVerificationCode = 'INVALID_VERIFICATION_CODE',
455
+ /** The namespace license with the given identifier was not found */
456
+ LicenseNotFound = 'LICENSE_NOT_FOUND',
457
+ /** Failed to load user identity from external provider */
458
+ LoadingIdentityFailed = 'LOADING_IDENTITY_FAILED',
387
459
  /** Invalid MFA data provided */
388
460
  MfaFailed = 'MFA_FAILED',
389
461
  /** MFA is required */
390
462
  MfaRequired = 'MFA_REQUIRED',
463
+ /** The primary runtime has more definitions than this one */
464
+ MissingDefinition = 'MISSING_DEFINITION',
391
465
  /** This external identity is missing data */
392
466
  MissingIdentityData = 'MISSING_IDENTITY_DATA',
393
467
  /** Not all required parameters are present */
394
468
  MissingParameter = 'MISSING_PARAMETER',
395
469
  /** The user is not permitted to perform this operation */
396
470
  MissingPermission = 'MISSING_PERMISSION',
471
+ /** The project is missing a primary runtime */
472
+ MissingPrimaryRuntime = 'MISSING_PRIMARY_RUNTIME',
473
+ /** The namespace member with the given identifier was not found */
474
+ NamespaceMemberNotFound = 'NAMESPACE_MEMBER_NOT_FOUND',
475
+ /** The namespace with the given identifier was not found */
476
+ NamespaceNotFound = 'NAMESPACE_NOT_FOUND',
477
+ /** The namespace project with the given identifier was not found */
478
+ NamespaceProjectNotFound = 'NAMESPACE_PROJECT_NOT_FOUND',
479
+ /** The namespace role with the given identifier was not found */
480
+ NamespaceRoleNotFound = 'NAMESPACE_ROLE_NOT_FOUND',
397
481
  /** There are no free license seats to complete this operation */
398
482
  NoFreeLicenseSeats = 'NO_FREE_LICENSE_SEATS',
399
483
  /** The project does not have a primary runtime */
400
484
  NoPrimaryRuntime = 'NO_PRIMARY_RUNTIME',
485
+ /** The organization with the given identifier was not found */
486
+ OrganizationNotFound = 'ORGANIZATION_NOT_FOUND',
487
+ /** The primary runtime has a newer definition than this one */
488
+ OutdatedDefinition = 'OUTDATED_DEFINITION',
401
489
  /** @deprecated Outdated concept */
402
490
  PrimaryLevelNotFound = 'PRIMARY_LEVEL_NOT_FOUND',
491
+ /** The namespace project with the given identifier was not found */
492
+ ProjectNotFound = 'PROJECT_NOT_FOUND',
403
493
  /** Self-registration is disabled */
404
494
  RegistrationDisabled = 'REGISTRATION_DISABLED',
405
495
  /** Resources are from different runtimes */
406
496
  RuntimeMismatch = 'RUNTIME_MISMATCH',
497
+ /** The runtime with the given identifier was not found */
498
+ RuntimeNotFound = 'RUNTIME_NOT_FOUND',
407
499
  /** @deprecated Outdated concept */
408
500
  SecondaryLevelNotFound = 'SECONDARY_LEVEL_NOT_FOUND',
409
501
  /** @deprecated Outdated concept */
@@ -412,6 +504,10 @@ export const enum ErrorCodeEnum {
412
504
  TotpSecretAlreadySet = 'TOTP_SECRET_ALREADY_SET',
413
505
  /** The user is not permitted to modify this field */
414
506
  UnmodifiableField = 'UNMODIFIABLE_FIELD',
507
+ /** The user with the given identifier was not found */
508
+ UserNotFound = 'USER_NOT_FOUND',
509
+ /** The user session with the given identifier was not found */
510
+ UserSessionNotFound = 'USER_SESSION_NOT_FOUND',
415
511
  /** Invalid TOTP code provided */
416
512
  WrongTotp = 'WRONG_TOTP'
417
513
  }
@@ -425,6 +521,8 @@ export interface Flow {
425
521
  id?: Maybe<Scalars['FlowID']['output']>;
426
522
  /** The input data type of the flow */
427
523
  inputType?: Maybe<DataType>;
524
+ /** Name of the flow */
525
+ name?: Maybe<Scalars['String']['output']>;
428
526
  /** Nodes of the flow */
429
527
  nodes?: Maybe<NodeFunctionConnection>;
430
528
  /** The return data type of the flow */
@@ -437,6 +535,8 @@ export interface Flow {
437
535
  type?: Maybe<FlowType>;
438
536
  /** Time when this Flow was last updated */
439
537
  updatedAt?: Maybe<Scalars['Time']['output']>;
538
+ /** Abilities for the current user on this Flow */
539
+ userAbilities?: Maybe<FlowUserAbilities>;
440
540
  }
441
541
 
442
542
 
@@ -481,10 +581,14 @@ export interface FlowEdge {
481
581
 
482
582
  /** Input type for creating or updating a flow */
483
583
  export interface FlowInput {
584
+ /** The name of the flow */
585
+ name: Scalars['String']['input'];
586
+ /** The node functions of the flow */
587
+ nodes: Array<NodeFunctionInput>;
484
588
  /** The settings of the flow */
485
589
  settings?: InputMaybe<Array<FlowSettingInput>>;
486
590
  /** The starting node of the flow */
487
- startingNode: NodeFunctionInput;
591
+ startingNodeId: Scalars['NodeFunctionID']['input'];
488
592
  /** The identifier of the flow type */
489
593
  type: Scalars['FlowTypeID']['input'];
490
594
  }
@@ -529,18 +633,22 @@ export interface FlowSettingEdge {
529
633
  /** Input type for flow settings */
530
634
  export interface FlowSettingInput {
531
635
  /** The identifier (not database id) of the flow setting */
532
- flowSettingId: Scalars['String']['input'];
636
+ flowSettingIdentifier: Scalars['String']['input'];
533
637
  /** The value of the flow setting */
534
- object: Scalars['JSON']['input'];
638
+ value: Scalars['JSON']['input'];
535
639
  }
536
640
 
537
641
  /** Represents a flow type */
538
642
  export interface FlowType {
539
643
  __typename?: 'FlowType';
644
+ /** Name of the function */
645
+ aliases?: Maybe<TranslationConnection>;
540
646
  /** Time when this FlowType was created */
541
647
  createdAt?: Maybe<Scalars['Time']['output']>;
542
648
  /** Descriptions of the flow type */
543
649
  descriptions?: Maybe<TranslationConnection>;
650
+ /** Display message of the function */
651
+ displayMessages?: Maybe<TranslationConnection>;
544
652
  /** Editable status of the flow type */
545
653
  editable?: Maybe<Scalars['Boolean']['output']>;
546
654
  /** Flow type settings of the flow type */
@@ -560,6 +668,15 @@ export interface FlowType {
560
668
  }
561
669
 
562
670
 
671
+ /** Represents a flow type */
672
+ export interface FlowTypeAliasesArgs {
673
+ after?: InputMaybe<Scalars['String']['input']>;
674
+ before?: InputMaybe<Scalars['String']['input']>;
675
+ first?: InputMaybe<Scalars['Int']['input']>;
676
+ last?: InputMaybe<Scalars['Int']['input']>;
677
+ }
678
+
679
+
563
680
  /** Represents a flow type */
564
681
  export interface FlowTypeDescriptionsArgs {
565
682
  after?: InputMaybe<Scalars['String']['input']>;
@@ -569,6 +686,15 @@ export interface FlowTypeDescriptionsArgs {
569
686
  }
570
687
 
571
688
 
689
+ /** Represents a flow type */
690
+ export interface FlowTypeDisplayMessagesArgs {
691
+ after?: InputMaybe<Scalars['String']['input']>;
692
+ before?: InputMaybe<Scalars['String']['input']>;
693
+ first?: InputMaybe<Scalars['Int']['input']>;
694
+ last?: InputMaybe<Scalars['Int']['input']>;
695
+ }
696
+
697
+
572
698
  /** Represents a flow type */
573
699
  export interface FlowTypeNamesArgs {
574
700
  after?: InputMaybe<Scalars['String']['input']>;
@@ -640,15 +766,69 @@ export interface FlowTypeSettingNamesArgs {
640
766
  last?: InputMaybe<Scalars['Int']['input']>;
641
767
  }
642
768
 
769
+ /** Abilities for the current user on this Flow */
770
+ export interface FlowUserAbilities {
771
+ __typename?: 'FlowUserAbilities';
772
+ /** Shows if the current user has the `delete_flow` ability on this Flow */
773
+ deleteFlow?: Maybe<Scalars['Boolean']['output']>;
774
+ }
775
+
776
+ /** Represents a flow validation error */
777
+ export interface FlowValidationError {
778
+ __typename?: 'FlowValidationError';
779
+ /** Additional details about the validation error */
780
+ details?: Maybe<ActiveModelError>;
781
+ /** The code representing the validation error type */
782
+ errorCode?: Maybe<FlowValidationErrorCodeEnum>;
783
+ /** The severity of the validation error */
784
+ severity?: Maybe<FlowValidationSeverityEnum>;
785
+ }
786
+
787
+ /** Represents the available error responses */
788
+ export const enum FlowValidationErrorCodeEnum {
789
+ /** The generic key for the data type identifier was not found. */
790
+ DataTypeIdentifierGenericKeyNotFound = 'DATA_TYPE_IDENTIFIER_GENERIC_KEY_NOT_FOUND',
791
+ /** The data type identifier runtime does not match the flow type runtime. */
792
+ DataTypeIdentifierRuntimeMismatch = 'DATA_TYPE_IDENTIFIER_RUNTIME_MISMATCH',
793
+ /** The data type rule model is invalid. */
794
+ DataTypeRuleModelInvalid = 'DATA_TYPE_RULE_MODEL_INVALID',
795
+ /** The data type runtime does not match the flow type runtime. */
796
+ DataTypeRuntimeMismatch = 'DATA_TYPE_RUNTIME_MISMATCH',
797
+ /** The flow setting model is invalid. */
798
+ FlowSettingModelInvalid = 'FLOW_SETTING_MODEL_INVALID',
799
+ /** The flow type runtime does not match the project primary runtime. */
800
+ FlowTypeRuntimeMismatch = 'FLOW_TYPE_RUNTIME_MISMATCH',
801
+ /** The node function runtime does not match the project primary runtime. */
802
+ NodeFunctionRuntimeMismatch = 'NODE_FUNCTION_RUNTIME_MISMATCH',
803
+ /** The project does not have a primary runtime set. */
804
+ NoPrimaryRuntime = 'NO_PRIMARY_RUNTIME'
805
+ }
806
+
807
+ /** Represents the severity of a flow validation error */
808
+ export const enum FlowValidationSeverityEnum {
809
+ /** A blocking validation error */
810
+ Error = 'ERROR',
811
+ /** A minor typographical issue can also be blocking */
812
+ Typo = 'TYPO',
813
+ /** A non-blocking validation warning */
814
+ Warning = 'WARNING',
815
+ /** A weak validation issue that may not need to be addressed */
816
+ Weak = 'WEAK'
817
+ }
818
+
643
819
  /** Represents a function definition */
644
820
  export interface FunctionDefinition {
645
821
  __typename?: 'FunctionDefinition';
822
+ /** Name of the function */
823
+ aliases?: Maybe<TranslationConnection>;
646
824
  /** Time when this FunctionDefinition was created */
647
825
  createdAt?: Maybe<Scalars['Time']['output']>;
648
826
  /** Deprecation message of the function */
649
827
  deprecationMessages?: Maybe<TranslationConnection>;
650
828
  /** Description of the function */
651
829
  descriptions?: Maybe<TranslationConnection>;
830
+ /** Display message of the function */
831
+ displayMessages?: Maybe<TranslationConnection>;
652
832
  /** Documentation of the function */
653
833
  documentations?: Maybe<TranslationConnection>;
654
834
  /** Generic keys of the function */
@@ -672,6 +852,15 @@ export interface FunctionDefinition {
672
852
  }
673
853
 
674
854
 
855
+ /** Represents a function definition */
856
+ export interface FunctionDefinitionAliasesArgs {
857
+ after?: InputMaybe<Scalars['String']['input']>;
858
+ before?: InputMaybe<Scalars['String']['input']>;
859
+ first?: InputMaybe<Scalars['Int']['input']>;
860
+ last?: InputMaybe<Scalars['Int']['input']>;
861
+ }
862
+
863
+
675
864
  /** Represents a function definition */
676
865
  export interface FunctionDefinitionDeprecationMessagesArgs {
677
866
  after?: InputMaybe<Scalars['String']['input']>;
@@ -690,6 +879,15 @@ export interface FunctionDefinitionDescriptionsArgs {
690
879
  }
691
880
 
692
881
 
882
+ /** Represents a function definition */
883
+ export interface FunctionDefinitionDisplayMessagesArgs {
884
+ after?: InputMaybe<Scalars['String']['input']>;
885
+ before?: InputMaybe<Scalars['String']['input']>;
886
+ first?: InputMaybe<Scalars['Int']['input']>;
887
+ last?: InputMaybe<Scalars['Int']['input']>;
888
+ }
889
+
890
+
693
891
  /** Represents a function definition */
694
892
  export interface FunctionDefinitionDocumentationsArgs {
695
893
  after?: InputMaybe<Scalars['String']['input']>;
@@ -781,7 +979,7 @@ export interface GenericMapper {
781
979
  /** Input type for generic mappers */
782
980
  export interface GenericMapperInput {
783
981
  /** The source data type identifier for the mapper */
784
- sources: Array<DataTypeIdentifierInput>;
982
+ sourceDataTypeIdentifiers: Array<DataTypeIdentifierInput>;
785
983
  /** The target data type identifier for the mapper */
786
984
  target: Scalars['String']['input'];
787
985
  }
@@ -815,6 +1013,23 @@ export interface IdentityInput {
815
1013
  code?: InputMaybe<Scalars['String']['input']>;
816
1014
  }
817
1015
 
1016
+ /** Abilities for the current user on this Instance */
1017
+ export interface InstanceUserAbilities {
1018
+ __typename?: 'InstanceUserAbilities';
1019
+ /** Shows if the current user has the `create_organization` ability on this Instance */
1020
+ createOrganization?: Maybe<Scalars['Boolean']['output']>;
1021
+ /** Shows if the current user has the `create_runtime` ability on this Instance */
1022
+ createRuntime?: Maybe<Scalars['Boolean']['output']>;
1023
+ /** Shows if the current user has the `delete_runtime` ability on this Instance */
1024
+ deleteRuntime?: Maybe<Scalars['Boolean']['output']>;
1025
+ /** Shows if the current user has the `rotate_runtime_token` ability on this Instance */
1026
+ rotateRuntimeToken?: Maybe<Scalars['Boolean']['output']>;
1027
+ /** Shows if the current user has the `update_application_setting` ability on this Instance */
1028
+ updateApplicationSetting?: Maybe<Scalars['Boolean']['output']>;
1029
+ /** Shows if the current user has the `update_runtime` ability on this Instance */
1030
+ updateRuntime?: Maybe<Scalars['Boolean']['output']>;
1031
+ }
1032
+
818
1033
  /** Represents a literal value, such as a string or number. */
819
1034
  export interface LiteralValue {
820
1035
  __typename?: 'LiteralValue';
@@ -833,6 +1048,15 @@ export interface MessageError {
833
1048
  message?: Maybe<Scalars['String']['output']>;
834
1049
  }
835
1050
 
1051
+ /** Application metadata */
1052
+ export interface Metadata {
1053
+ __typename?: 'Metadata';
1054
+ /** List of loaded extensions */
1055
+ extensions?: Maybe<Array<Scalars['String']['output']>>;
1056
+ /** Application version */
1057
+ version?: Maybe<Scalars['String']['output']>;
1058
+ }
1059
+
836
1060
  /** Represents the input for mfa authentication */
837
1061
  export interface MfaInput {
838
1062
  /** The type of the mfa authentication */
@@ -1177,6 +1401,8 @@ export interface Namespace {
1177
1401
  __typename?: 'Namespace';
1178
1402
  /** Time when this Namespace was created */
1179
1403
  createdAt?: Maybe<Scalars['Time']['output']>;
1404
+ /** (EE only) Currently active license of the namespace */
1405
+ currentNamespaceLicense?: Maybe<NamespaceLicense>;
1180
1406
  /** Global ID of this Namespace */
1181
1407
  id?: Maybe<Scalars['NamespaceID']['output']>;
1182
1408
  /** Members of the namespace */
@@ -1193,6 +1419,8 @@ export interface Namespace {
1193
1419
  runtimes?: Maybe<RuntimeConnection>;
1194
1420
  /** Time when this Namespace was last updated */
1195
1421
  updatedAt?: Maybe<Scalars['Time']['output']>;
1422
+ /** Abilities for the current user on this Namespace */
1423
+ userAbilities?: Maybe<NamespaceUserAbilities>;
1196
1424
  }
1197
1425
 
1198
1426
 
@@ -1257,6 +1485,8 @@ export interface NamespaceLicense {
1257
1485
  startDate?: Maybe<Scalars['Time']['output']>;
1258
1486
  /** Time when this NamespaceLicense was last updated */
1259
1487
  updatedAt?: Maybe<Scalars['Time']['output']>;
1488
+ /** Abilities for the current user on this NamespaceLicense */
1489
+ userAbilities?: Maybe<NamespaceLicenseUserAbilities>;
1260
1490
  }
1261
1491
 
1262
1492
  /** The connection type for NamespaceLicense. */
@@ -1281,6 +1511,13 @@ export interface NamespaceLicenseEdge {
1281
1511
  node?: Maybe<NamespaceLicense>;
1282
1512
  }
1283
1513
 
1514
+ /** Abilities for the current user on this NamespaceLicense */
1515
+ export interface NamespaceLicenseUserAbilities {
1516
+ __typename?: 'NamespaceLicenseUserAbilities';
1517
+ /** Shows if the current user has the `delete_namespace_license` ability on this NamespaceLicense */
1518
+ deleteNamespaceLicense?: Maybe<Scalars['Boolean']['output']>;
1519
+ }
1520
+
1284
1521
  /** Represents a namespace member */
1285
1522
  export interface NamespaceMember {
1286
1523
  __typename?: 'NamespaceMember';
@@ -1298,6 +1535,8 @@ export interface NamespaceMember {
1298
1535
  updatedAt?: Maybe<Scalars['Time']['output']>;
1299
1536
  /** User this member belongs to */
1300
1537
  user?: Maybe<User>;
1538
+ /** Abilities for the current user on this NamespaceMember */
1539
+ userAbilities?: Maybe<NamespaceMemberUserAbilities>;
1301
1540
  }
1302
1541
 
1303
1542
 
@@ -1377,6 +1616,15 @@ export interface NamespaceMemberRoleEdge {
1377
1616
  node?: Maybe<NamespaceMemberRole>;
1378
1617
  }
1379
1618
 
1619
+ /** Abilities for the current user on this NamespaceMember */
1620
+ export interface NamespaceMemberUserAbilities {
1621
+ __typename?: 'NamespaceMemberUserAbilities';
1622
+ /** Shows if the current user has the `assign_member_roles` ability on this NamespaceMember */
1623
+ assignMemberRoles?: Maybe<Scalars['Boolean']['output']>;
1624
+ /** Shows if the current user has the `delete_member` ability on this NamespaceMember */
1625
+ deleteMember?: Maybe<Scalars['Boolean']['output']>;
1626
+ }
1627
+
1380
1628
  /** Objects that can present a namespace */
1381
1629
  export type NamespaceParent = Organization | User;
1382
1630
 
@@ -1399,10 +1647,14 @@ export interface NamespaceProject {
1399
1647
  namespace?: Maybe<Namespace>;
1400
1648
  /** The primary runtime for the project */
1401
1649
  primaryRuntime?: Maybe<Runtime>;
1650
+ /** Roles assigned to this project */
1651
+ roles?: Maybe<NamespaceRoleConnection>;
1402
1652
  /** Runtimes assigned to this project */
1403
1653
  runtimes?: Maybe<RuntimeConnection>;
1404
1654
  /** Time when this NamespaceProject was last updated */
1405
1655
  updatedAt?: Maybe<Scalars['Time']['output']>;
1656
+ /** Abilities for the current user on this NamespaceProject */
1657
+ userAbilities?: Maybe<NamespaceProjectUserAbilities>;
1406
1658
  }
1407
1659
 
1408
1660
 
@@ -1421,6 +1673,15 @@ export interface NamespaceProjectFlowsArgs {
1421
1673
  }
1422
1674
 
1423
1675
 
1676
+ /** Represents a namespace project */
1677
+ export interface NamespaceProjectRolesArgs {
1678
+ after?: InputMaybe<Scalars['String']['input']>;
1679
+ before?: InputMaybe<Scalars['String']['input']>;
1680
+ first?: InputMaybe<Scalars['Int']['input']>;
1681
+ last?: InputMaybe<Scalars['Int']['input']>;
1682
+ }
1683
+
1684
+
1424
1685
  /** Represents a namespace project */
1425
1686
  export interface NamespaceProjectRuntimesArgs {
1426
1687
  after?: InputMaybe<Scalars['String']['input']>;
@@ -1451,6 +1712,19 @@ export interface NamespaceProjectEdge {
1451
1712
  node?: Maybe<NamespaceProject>;
1452
1713
  }
1453
1714
 
1715
+ /** Abilities for the current user on this NamespaceProject */
1716
+ export interface NamespaceProjectUserAbilities {
1717
+ __typename?: 'NamespaceProjectUserAbilities';
1718
+ /** Shows if the current user has the `assign_project_runtimes` ability on this NamespaceProject */
1719
+ assignProjectRuntimes?: Maybe<Scalars['Boolean']['output']>;
1720
+ /** Shows if the current user has the `create_flow` ability on this NamespaceProject */
1721
+ createFlow?: Maybe<Scalars['Boolean']['output']>;
1722
+ /** Shows if the current user has the `delete_namespace_project` ability on this NamespaceProject */
1723
+ deleteNamespaceProject?: Maybe<Scalars['Boolean']['output']>;
1724
+ /** Shows if the current user has the `update_namespace_project` ability on this NamespaceProject */
1725
+ updateNamespaceProject?: Maybe<Scalars['Boolean']['output']>;
1726
+ }
1727
+
1454
1728
  /** Represents a namespace role. */
1455
1729
  export interface NamespaceRole {
1456
1730
  __typename?: 'NamespaceRole';
@@ -1462,12 +1736,16 @@ export interface NamespaceRole {
1462
1736
  createdAt?: Maybe<Scalars['Time']['output']>;
1463
1737
  /** Global ID of this NamespaceRole */
1464
1738
  id?: Maybe<Scalars['NamespaceRoleID']['output']>;
1739
+ /** The members this role is assigned to */
1740
+ members?: Maybe<NamespaceMemberConnection>;
1465
1741
  /** The name of this role */
1466
1742
  name?: Maybe<Scalars['String']['output']>;
1467
1743
  /** The namespace where this role belongs to */
1468
1744
  namespace?: Maybe<Namespace>;
1469
1745
  /** Time when this NamespaceRole was last updated */
1470
1746
  updatedAt?: Maybe<Scalars['Time']['output']>;
1747
+ /** Abilities for the current user on this NamespaceRole */
1748
+ userAbilities?: Maybe<NamespaceRoleUserAbilities>;
1471
1749
  }
1472
1750
 
1473
1751
 
@@ -1479,6 +1757,15 @@ export interface NamespaceRoleAssignedProjectsArgs {
1479
1757
  last?: InputMaybe<Scalars['Int']['input']>;
1480
1758
  }
1481
1759
 
1760
+
1761
+ /** Represents a namespace role. */
1762
+ export interface NamespaceRoleMembersArgs {
1763
+ after?: InputMaybe<Scalars['String']['input']>;
1764
+ before?: InputMaybe<Scalars['String']['input']>;
1765
+ first?: InputMaybe<Scalars['Int']['input']>;
1766
+ last?: InputMaybe<Scalars['Int']['input']>;
1767
+ }
1768
+
1482
1769
  /** Represents abilities that can be granted to roles in namespaces. */
1483
1770
  export const enum NamespaceRoleAbility {
1484
1771
  /** Allows to change the roles of a namespace member */
@@ -1490,7 +1777,7 @@ export const enum NamespaceRoleAbility {
1490
1777
  /** Allows to change the assigned projects of a namespace role */
1491
1778
  AssignRoleProjects = 'ASSIGN_ROLE_PROJECTS',
1492
1779
  /** Allows to create flows in a namespace project */
1493
- CreateFlows = 'CREATE_FLOWS',
1780
+ CreateFlow = 'CREATE_FLOW',
1494
1781
  /** Allows to create a license for the namespace */
1495
1782
  CreateNamespaceLicense = 'CREATE_NAMESPACE_LICENSE',
1496
1783
  /** Allows to create a project in the namespace */
@@ -1500,7 +1787,7 @@ export const enum NamespaceRoleAbility {
1500
1787
  /** Allows to create a runtime globally or for the namespace */
1501
1788
  CreateRuntime = 'CREATE_RUNTIME',
1502
1789
  /** Allows to delete flows in a namespace project */
1503
- DeleteFlows = 'DELETE_FLOWS',
1790
+ DeleteFlow = 'DELETE_FLOW',
1504
1791
  /** Allows to remove members of a namespace */
1505
1792
  DeleteMember = 'DELETE_MEMBER',
1506
1793
  /** Allows to delete the license of the namespace */
@@ -1524,7 +1811,7 @@ export const enum NamespaceRoleAbility {
1524
1811
  /** Allows to regenerate a runtime token */
1525
1812
  RotateRuntimeToken = 'ROTATE_RUNTIME_TOKEN',
1526
1813
  /** Allows to update flows in the project */
1527
- UpdateFlows = 'UPDATE_FLOWS',
1814
+ UpdateFlow = 'UPDATE_FLOW',
1528
1815
  /** Allows to update the project of the namespace */
1529
1816
  UpdateNamespaceProject = 'UPDATE_NAMESPACE_PROJECT',
1530
1817
  /** Allows to update the namespace role */
@@ -1557,6 +1844,34 @@ export interface NamespaceRoleEdge {
1557
1844
  node?: Maybe<NamespaceRole>;
1558
1845
  }
1559
1846
 
1847
+ /** Abilities for the current user on this NamespaceRole */
1848
+ export interface NamespaceRoleUserAbilities {
1849
+ __typename?: 'NamespaceRoleUserAbilities';
1850
+ /** Shows if the current user has the `assign_role_abilities` ability on this NamespaceRole */
1851
+ assignRoleAbilities?: Maybe<Scalars['Boolean']['output']>;
1852
+ /** Shows if the current user has the `assign_role_projects` ability on this NamespaceRole */
1853
+ assignRoleProjects?: Maybe<Scalars['Boolean']['output']>;
1854
+ /** Shows if the current user has the `delete_namespace_role` ability on this NamespaceRole */
1855
+ deleteNamespaceRole?: Maybe<Scalars['Boolean']['output']>;
1856
+ /** Shows if the current user has the `update_namespace_role` ability on this NamespaceRole */
1857
+ updateNamespaceRole?: Maybe<Scalars['Boolean']['output']>;
1858
+ }
1859
+
1860
+ /** Abilities for the current user on this Namespace */
1861
+ export interface NamespaceUserAbilities {
1862
+ __typename?: 'NamespaceUserAbilities';
1863
+ /** Shows if the current user has the `create_namespace_license` ability on this Namespace */
1864
+ createNamespaceLicense?: Maybe<Scalars['Boolean']['output']>;
1865
+ /** Shows if the current user has the `create_namespace_project` ability on this Namespace */
1866
+ createNamespaceProject?: Maybe<Scalars['Boolean']['output']>;
1867
+ /** Shows if the current user has the `create_namespace_role` ability on this Namespace */
1868
+ createNamespaceRole?: Maybe<Scalars['Boolean']['output']>;
1869
+ /** Shows if the current user has the `create_runtime` ability on this Namespace */
1870
+ createRuntime?: Maybe<Scalars['Boolean']['output']>;
1871
+ /** Shows if the current user has the `invite_member` ability on this Namespace */
1872
+ inviteMember?: Maybe<Scalars['Boolean']['output']>;
1873
+ }
1874
+
1560
1875
  /** Autogenerated input type of NamespacesLicensesCreate */
1561
1876
  export interface NamespacesLicensesCreateInput {
1562
1877
  /** A unique identifier for the client performing the mutation. */
@@ -1945,8 +2260,10 @@ export interface NodeFunctionEdge {
1945
2260
 
1946
2261
  /** Input type for a Node Function */
1947
2262
  export interface NodeFunctionInput {
2263
+ /** The identifier of the Node Function used to create/update the flow */
2264
+ id: Scalars['NodeFunctionID']['input'];
1948
2265
  /** The next Node Function in the flow */
1949
- nextNode?: InputMaybe<NodeFunctionInput>;
2266
+ nextNodeId?: InputMaybe<Scalars['NodeFunctionID']['input']>;
1950
2267
  /** The parameters of the Node Function */
1951
2268
  parameters: Array<NodeParameterInput>;
1952
2269
  /** The identifier of the Runtime Function Definition */
@@ -2024,6 +2341,39 @@ export interface Organization {
2024
2341
  namespace?: Maybe<Namespace>;
2025
2342
  /** Time when this Organization was last updated */
2026
2343
  updatedAt?: Maybe<Scalars['Time']['output']>;
2344
+ /** Abilities for the current user on this Organization */
2345
+ userAbilities?: Maybe<OrganizationUserAbilities>;
2346
+ }
2347
+
2348
+ /** The connection type for Organization. */
2349
+ export interface OrganizationConnection {
2350
+ __typename?: 'OrganizationConnection';
2351
+ /** Total count of collection. */
2352
+ count?: Maybe<Scalars['Int']['output']>;
2353
+ /** A list of edges. */
2354
+ edges?: Maybe<Array<Maybe<OrganizationEdge>>>;
2355
+ /** A list of nodes. */
2356
+ nodes?: Maybe<Array<Maybe<Organization>>>;
2357
+ /** Information to aid in pagination. */
2358
+ pageInfo?: Maybe<PageInfo>;
2359
+ }
2360
+
2361
+ /** An edge in a connection. */
2362
+ export interface OrganizationEdge {
2363
+ __typename?: 'OrganizationEdge';
2364
+ /** A cursor for use in pagination. */
2365
+ cursor?: Maybe<Scalars['String']['output']>;
2366
+ /** The item at the end of the edge. */
2367
+ node?: Maybe<Organization>;
2368
+ }
2369
+
2370
+ /** Abilities for the current user on this Organization */
2371
+ export interface OrganizationUserAbilities {
2372
+ __typename?: 'OrganizationUserAbilities';
2373
+ /** Shows if the current user has the `delete_organization` ability on this Organization */
2374
+ deleteOrganization?: Maybe<Scalars['Boolean']['output']>;
2375
+ /** Shows if the current user has the `update_organization` ability on this Organization */
2376
+ updateOrganization?: Maybe<Scalars['Boolean']['output']>;
2027
2377
  }
2028
2378
 
2029
2379
  /** Autogenerated input type of OrganizationsCreate */
@@ -2181,6 +2531,8 @@ export interface Query {
2181
2531
  echo?: Maybe<Scalars['String']['output']>;
2182
2532
  /** Find runtimes */
2183
2533
  globalRuntimes?: Maybe<RuntimeConnection>;
2534
+ /** Get application metadata */
2535
+ metadata?: Maybe<Metadata>;
2184
2536
  /** Find a namespace */
2185
2537
  namespace?: Maybe<Namespace>;
2186
2538
  /** Fetches an object given its ID */
@@ -2189,6 +2541,12 @@ export interface Query {
2189
2541
  nodes?: Maybe<Array<Maybe<Node>>>;
2190
2542
  /** Find a organization */
2191
2543
  organization?: Maybe<Organization>;
2544
+ /** Find organizations */
2545
+ organizations?: Maybe<OrganizationConnection>;
2546
+ /** Find a user */
2547
+ user?: Maybe<User>;
2548
+ /** Abilities for the current user on this Instance */
2549
+ userAbilities?: Maybe<InstanceUserAbilities>;
2192
2550
  /** Find users */
2193
2551
  users?: Maybe<UserConnection>;
2194
2552
  }
@@ -2234,6 +2592,21 @@ export interface QueryOrganizationArgs {
2234
2592
  }
2235
2593
 
2236
2594
 
2595
+ /** Root Query type */
2596
+ export interface QueryOrganizationsArgs {
2597
+ after?: InputMaybe<Scalars['String']['input']>;
2598
+ before?: InputMaybe<Scalars['String']['input']>;
2599
+ first?: InputMaybe<Scalars['Int']['input']>;
2600
+ last?: InputMaybe<Scalars['Int']['input']>;
2601
+ }
2602
+
2603
+
2604
+ /** Root Query type */
2605
+ export interface QueryUserArgs {
2606
+ id: Scalars['UserID']['input'];
2607
+ }
2608
+
2609
+
2237
2610
  /** Root Query type */
2238
2611
  export interface QueryUsersArgs {
2239
2612
  after?: InputMaybe<Scalars['String']['input']>;
@@ -2278,6 +2651,8 @@ export interface ReferenceValue {
2278
2651
  id?: Maybe<Scalars['ReferenceValueID']['output']>;
2279
2652
  /** The node of the reference value. */
2280
2653
  node?: Maybe<Scalars['Int']['output']>;
2654
+ /** The referenced value. */
2655
+ nodeFunctionId?: Maybe<Scalars['NodeFunctionID']['output']>;
2281
2656
  /** The paths associated with this reference value. */
2282
2657
  referencePath?: Maybe<Array<ReferencePath>>;
2283
2658
  /** The scope of the reference value. */
@@ -2290,14 +2665,16 @@ export interface ReferenceValue {
2290
2665
  export interface ReferenceValueInput {
2291
2666
  /** The identifier of the data type this reference value belongs to */
2292
2667
  dataTypeIdentifier: DataTypeIdentifierInput;
2293
- /** The primary level of the reference value */
2294
- primaryLevel: Scalars['Int']['input'];
2668
+ /** The depth of the reference value */
2669
+ depth: Scalars['Int']['input'];
2670
+ /** The node of the reference */
2671
+ node: Scalars['Int']['input'];
2672
+ /** The referenced value */
2673
+ nodeFunctionId: Scalars['NodeFunctionID']['input'];
2295
2674
  /** The paths associated with this reference value */
2296
2675
  referencePath: Array<ReferencePathInput>;
2297
- /** The secondary level of the reference value */
2298
- secondaryLevel: Scalars['Int']['input'];
2299
- /** The tertiary level of the reference value */
2300
- tertiaryLevel?: InputMaybe<Scalars['Int']['input']>;
2676
+ /** The scope of the reference value */
2677
+ scope: Array<Scalars['Int']['input']>;
2301
2678
  }
2302
2679
 
2303
2680
  /** Represents a runtime */
@@ -2325,6 +2702,8 @@ export interface Runtime {
2325
2702
  token?: Maybe<Scalars['String']['output']>;
2326
2703
  /** Time when this Runtime was last updated */
2327
2704
  updatedAt?: Maybe<Scalars['Time']['output']>;
2705
+ /** Abilities for the current user on this Runtime */
2706
+ userAbilities?: Maybe<RuntimeUserAbilities>;
2328
2707
  }
2329
2708
 
2330
2709
 
@@ -2454,6 +2833,17 @@ export const enum RuntimeStatusType {
2454
2833
  Disconnected = 'DISCONNECTED'
2455
2834
  }
2456
2835
 
2836
+ /** Abilities for the current user on this Runtime */
2837
+ export interface RuntimeUserAbilities {
2838
+ __typename?: 'RuntimeUserAbilities';
2839
+ /** Shows if the current user has the `delete_runtime` ability on this Runtime */
2840
+ deleteRuntime?: Maybe<Scalars['Boolean']['output']>;
2841
+ /** Shows if the current user has the `rotate_runtime_token` ability on this Runtime */
2842
+ rotateRuntimeToken?: Maybe<Scalars['Boolean']['output']>;
2843
+ /** Shows if the current user has the `update_runtime` ability on this Runtime */
2844
+ updateRuntime?: Maybe<Scalars['Boolean']['output']>;
2845
+ }
2846
+
2457
2847
  /** Autogenerated input type of RuntimesCreate */
2458
2848
  export interface RuntimesCreateInput {
2459
2849
  /** A unique identifier for the client performing the mutation. */
@@ -2598,6 +2988,8 @@ export interface User {
2598
2988
  sessions?: Maybe<UserSessionConnection>;
2599
2989
  /** Time when this User was last updated */
2600
2990
  updatedAt?: Maybe<Scalars['Time']['output']>;
2991
+ /** Abilities for the current user on this User */
2992
+ userAbilities?: Maybe<UserUserAbilities>;
2601
2993
  /** Username of the user */
2602
2994
  username?: Maybe<Scalars['String']['output']>;
2603
2995
  }
@@ -2705,6 +3097,8 @@ export interface UserSession {
2705
3097
  updatedAt?: Maybe<Scalars['Time']['output']>;
2706
3098
  /** User that belongs to the session */
2707
3099
  user?: Maybe<User>;
3100
+ /** Abilities for the current user on this UserSession */
3101
+ userAbilities?: Maybe<UserSessionUserAbilities>;
2708
3102
  }
2709
3103
 
2710
3104
  /** The connection type for UserSession. */
@@ -2729,6 +3123,22 @@ export interface UserSessionEdge {
2729
3123
  node?: Maybe<UserSession>;
2730
3124
  }
2731
3125
 
3126
+ /** Abilities for the current user on this UserSession */
3127
+ export interface UserSessionUserAbilities {
3128
+ __typename?: 'UserSessionUserAbilities';
3129
+ /** Shows if the current user has the `logout_session` ability on this UserSession */
3130
+ logoutSession?: Maybe<Scalars['Boolean']['output']>;
3131
+ }
3132
+
3133
+ /** Abilities for the current user on this User */
3134
+ export interface UserUserAbilities {
3135
+ __typename?: 'UserUserAbilities';
3136
+ /** Shows if the current user has the `manage_mfa` ability on this User */
3137
+ manageMfa?: Maybe<Scalars['Boolean']['output']>;
3138
+ /** Shows if the current user has the `update_user` ability on this User */
3139
+ updateUser?: Maybe<Scalars['Boolean']['output']>;
3140
+ }
3141
+
2732
3142
  /** Autogenerated input type of UsersEmailVerification */
2733
3143
  export interface UsersEmailVerificationInput {
2734
3144
  /** A unique identifier for the client performing the mutation. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code0-tech/sagittarius-graphql-types",
3
- "version": "0.0.0-56198dce107a9c09cc5eca0773f239d9c3eba598",
3
+ "version": "0.0.0-625a1038b022ac5f60370cc4ba77beba858c86a6",
4
4
  "description": "",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",